You are viewing limited content. For full access, please sign in.

Question

Question

Workflow stuck at SDK Activity

asked on October 5, 2016 Show version history

We have some workflows with SDK Script activities, However, all these workflows are getting stuck at these activities. Workflows that don't have SDK Script activities are working normally.

Checking all the instances of these workflows, many are still running or waiting, some of those were started last year and are still there.

Also, by checking the event viewer, we found an exception (Image attached).

Any ideas on how this can be solved?

Thank you.

Error Workflow.JPG
0 0

Replies

replied on October 5, 2016

The error in the screenshot is unrelated. It indicates the Workflow Subscriber couldn't connect to the Workflow Server. Based on the WF Server information message at the same time, probably because the server was restarted. The Subscriber has nothing to do with scripts.

What does your script do?

0 0
replied on October 7, 2016

The script is used to fill some word document Fields with information from the metadata using the Open XML library.

However in other cases we have simple scripts to format some information, scripts that don´t use external libraries or anything, but in these cases workflows are getting stuck on the SDK Script as well.

0 0
replied on October 7, 2016

Like I said, it's not possible to guess without seeing the scripts. However, there is a limit number of slots for script tasks to execute at any given time so if one (or more of them) are taken by long running scripts, it is possible for the other ones to queue up waiting for execution. Workflow will give up on long-running scripts after a while. You can double-check how long that is on the Performance tab under Security\Scripting in the WF Admin Console. The default is 2 minutes.

1 0
You are not allowed to follow up in this post.

Sign in to reply to this post.