Script execution timeout error

Symptoms

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

Cause

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

Resolution

Extending script run time

To change the default timeouts, specify the following value in the registry:

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

The value of a timeout in the registry is specified in milliseconds. If a script takes longer to execute than the specified timeout, it will be terminated and an error message will be returned "Script execution timeout". If the script is a part of an import, recognition, or export task, a similar error message will be recorded in the log.

Important! Script execution timeout applies for scripts written in JScript and VBScript only.

Important! To change timeouts for scripts executed under the NetworkService, you need to modify the registry branch for the corresponding user profile.



Registry

Value

HKEY_CURRENT_USER\Software\ABBYY\FlexiCapture\12.0\Controller\ScriptSupport


String Key: DefaultScriptTimeout

Value in Milliseconds

HKEY_USERS\<UserIdentifier>\Software\ABBYY\FlexiCapture\12.0\Controller\ScriptSupport


String Key: DefaultScriptTimeout


Note: NetworkService user is typically used to run ABBYY is identified as S-1-5-20

Value in Milliseconds

Was this article helpful?

0 out of 0 found this helpful

Have more questions? Submit a request

Comments

0 comments

Please sign in to leave a comment.

Recently viewed