Script execution timeout error in custom workflow script

Symptoms

Task fails with the error:

Script execution timeout. (line 51, pos 9) error in custom workflow script

Cause

Script execution time limit reached.

The default timeouts are 30 seconds for export and 10 seconds for other scripts, which might not be enough.

Resolution

Extend script execution time limit.

To change the default script execution timeouts, use the string value in the registry at the machine where the script is executed for the user account on whose behalf the script is executed.

[HKEY_CURRENT_USER\Software\ABBYY\FlexiCapture\12.0\Controller\ScriptSupport]DefaultScriptTimeout

mceclip0.png

Important:

  • The registry key is absent by default and should be added manually.
  • The timeout value is specified in milliseconds.
  • Script execution timeout is only applied for scripts in JScript and VBScript.
  • To change timeouts for scripts executed under the Network Service (default for Processing Station) or other user account, it is required to modify the registry [HKEY_USERS] branch for the corresponding user profile.

For example, for Network Service account it is the registry key [HKEY_USERS\S-1-5-20\Software\ABBYY\FlexiCapture\12.0\Controller\ScriptSupport]DefaultScriptTimeout

Have more questions? Submit a request

Comments

0 comments

Please sign in to leave a comment.