Community

Document returned by getDocuments contains IsProcessd = false ?

Hi Team,

After creating a new Batch , I use AddNewImage method to add a pdf document tothe newly created batch 

now the code flow is 
1 Open Session

2. GetSesisonInfo

3. GetProjectsForUser

4. OpenProject

5. Create a New Batch

6. Open newly Created Batch

7. AddNewImage to the batch ( here a pdf file is added with session Id , batch id and filecontents ( byte Array)

8. ProcessBatch

9 GetBatchPercentCompletion

10 GetDocuments based on sessionId and BatchId

Now my question is documents returned by GetDocuments contain 

- Parent Document with parent id -1 which is an empty document

- Regular document with document id as 1 

and this regular document has IsProcess value as False 
Is this correct ?
now with this document when I make a call to LoadDocumentResult I get empty File Object as mentioned in the documentation LoadDocumentResult (abbyy.cn)
my second question is how to know the location of final xml generated ?

LoadDocumentResult

Was this article helpful?

0 out of 0 found this helpful

Comments

8 comments

  • Avatar
    Scott Chau

    Amit,

    Sounds like that document hasn't been processed yet so you can't get the result.  A good way to troubleshoot this is to open the project setup station and look at the batch.  What stage/status is it in. If its in Processed, you can get the result. If its in Verification or Exception, it needs someone to look at the document because of some rules or character confident issue.

     

    0
  • Avatar
    Amit Bas

    Thank you Scott, 
    Yep I got passed that issue and now the document / image says its got processed and exported and I have export setting set to DB so could you please tell me which Table the export results go to ? 
    also GetDocumentResultsList returns null not sure why .
    and what changes we need to do in order to get the below return populated with export file name ? 

    string[] GetDocumentResultsList( int sessionId, int batchId, int documentId );
    0
  • Avatar
    Scott Chau

    When you say exported to the DB, do you actually have it exported to another external DB?  Can you provide a screenshot of of your export setting?  It sounds like you have it exported outside of the FlexiCapture system.  In that case, you can call FlexiCapture to grab the results.

    You might want to also look at this sample project.  There is sample code for the web API and sample FlexiCapture project.  You will see in the sample FlexiCapture, it doesn't export out to any external location.  This export will go back to the FlexiCapture DB and the code can grab that results

    Example of automatic processing (abbyy.com)

    0
  • Avatar
    Amit Bas

    Thank you Scott , we are now want to export the XML to Azure File Storage that we have created and in this case what do we need to put under the export setting ie path etc ?

     

    0
  • Avatar
    Scott Chau

    In that case if you can mount the drive or if it has standard network you could set it to export to \\servername\folder.

    The issue is if you are using the API to call for the result, you won't get any results because it has been exported out of the system.  

    0
  • Avatar
    Amit Bas

    Thank you Scott , now my final question is 
    Is there a way any API to get page boundary information from Document ? 
    How to get page boundary information
    Many Thanks

    0
  • Avatar
    Scott Chau

    Amit,

    If you are talking about web API calls, those are very limited. Using the Web Services API of the ABBYY FlexiCapture Application Server.  There are workflow script to get page boundaries using IRECT in a workflow script IRect (abbyy.com)

    I guess if you need it as a web api call, you could record irect values to a field  and read the export value or create your own Verification station which will give you the result in an XML file.

    I've never done any of this so if you need help with this, it might best to talk with your ABBYY sales rep to setup a meeting with the Professional Service team which has experience in many customization with FlexiCapture.

    1
  • Avatar
    Amit Bas

    Thank you Scott for your time and answers.

    0

Please sign in to leave a comment.