Community

Recognition Server Indexing Script

I'm trying to automate the indexing stage of a particular workflow. I have 3 meta-data fields that I want to fill in via script (UserName, InvoiceNum, UserNum). This would be filled in from information stored in a 2d (Data Matrix) barcode that is on the first page of the document. There is a second 1d barcode that should be ignored.

Can someone give me a short code example of how to access the indexing/meta-data fields programmatically, ideally in JavaScript? Thanks.

Was this article helpful?

0 out of 0 found this helpful

Comments

3 comments

  • Avatar
    Permanently deleted user

    Hello,

    Please read this topic from the Recognition Server Help: Creating a Script for Document Identification and Indexing. There are the code samples.

    0
  • Avatar
    Permanently deleted user

    Ekaterina,

    I've read the code samples. In the interest of troubleshooting I created a very simple script:

    Attributes.Item(0).Value = "test6";

    SkipManualIndexing = true;

    however I receive the following error in the output XML file:

     

    <Name>123.PDF</Name>   <UserName>unknown</UserName>   <UserProperty />   <VerificationUserName />   <IndexingUserName />

     

    - <Message Type="Error" Code="2" ComputerName="DOCUSHARE-RCG" Time="08.01.2017 13:15:25.655000">   <Params>Indexing Script: Invalid procedure call or argument (line 2, pos 1)</Params>   <Text>Processing error: Indexing Script: Invalid procedure call or argument (line 2, pos 1)</Text>   </Message>
    0
  • Avatar
    Permanently deleted user

    Hello,

    Please check the size of your Attributes collection to ensure that it contains any elements.

    0

Please sign in to leave a comment.