Community

failed to export, script execution time out (i can not find registry in win server)

Hi,

I am getting this exception when i try to export any doc , i am using export script (VB) . I know i can change that in registry.

I am using windows server 2012 and i can't find Controller or particular registry key in given path.


"


HKEY_CURRENT_USER\Software\ABBYY\FlexiCapture\10.0\Controller\ScriptSupport\DefaultScriptTimeout "

Can anyone help me out?

Thanks in advance

Was this article helpful?

0 out of 0 found this helpful

Comments

3 comments

  • Avatar
    Sushi
    Techuser,

    The path you listed is correct. The registry is not there by default. You need to create a new key for the Controller and ScriptSupport branches. Then create a new string value for the DefaultScripttimeout in the Scriptsupport branch
    0
  • Avatar
    Sushi
    Oh I also forgot. As long as you are using StandAlone or Project Setup Station, that registry will work. Remember that processing is done by the Processing station. So in that case, you need to check what account the processing station is running under and put the registry under there too. Check the Windows Services and find the SID for that user account. Or you can make is easy for yourself and use the same account you logged in with when you made the registry edit.
    0
  • Avatar
    techuser
    Thanks for your replies Sushi.

    I used only one account (admin) to install abbyy servers and use same account for form processing. I changed registry setting to DefaultExportScript = 50,000 (tried from 2 mins to 10 mins) , still i get error execution exception in script.
    My VB export script is 70 lines long (i am generating color OCRed PDF files and xml file )and i try to export 25 page doc. And every time i export same doc but the line where exception occurs differs, mostly occurs in bottom lines of script when i create xml file.

    part of script where problem occurs




    dim XMLfileName, XMLfile


    XMLfileName = fileName&".xml"


    Set XMLFile = fso.CreateTextFile(XMLfileName, True)





    XMLFile.WriteLine "ocuments xmlns:form="">ocuments>


    XMLFile.WriteLine "xmlns:addData=""http://www.abbyy.com/FlexiCapture/Schemas/Export/AdditionalFormData.xsd"">"


    XMLFile.WriteLine " <_doctypesdocdef:_doctypesdocdef adddata:imagepath="" "="" &="" filename="" &="" ".pdf"="" &="" """="">


    XMLFile.WriteLine "xmlns:_DocTypesDocDef=""http://www.abbyy.com/FlexiCapture/Schemas/Export/DocTypesDocDef.xsd"">"


    XMLFile.WriteLine " <_document_section_1>"


    XMLFile.WriteLine " <_staffid>"& RegParam & ""


    XMLFile.WriteLine " <_documenttype>" & folderNameLevel2 & ""


    XMLFile.WriteLine " "


    <_DocTypesDocDef:_DocTypesDocDef> XMLFile.WriteLine " "


    ocuments> XMLFile.WriteLine "ocuments>"


    XMLFile.Close





    'Set XMLFile = Nothing


    'Set fso = Nothing


    Attaching reg edit image for reference.
    0

Please sign in to leave a comment.