コミュニティ

Flexicapture LoadDocumentResult not returning data

LoadDocumentResult api method is not returning any data. Following is the code snippet I have. I read online that Flexicapture needs to point to database for LoadDocumentResult to return file data. However, we are still not getting anything back even after pointing Flexicapture to the database.

 

 var documents = client.GetDocuments(batchId);

 

                if (documents != null)

                {

                    var pageCount = 1;

 

                    foreach(Flexicapture.Document document in documents)

                    {

                        

                        Flexicapture.File attachedFile = client.LoadDocumentResult(document.Id, "MyResult.xml");

                        

                    }

             }

この記事は役に立ちましたか?

0人中0人がこの記事が役に立ったと言っています

コメント

3件のコメント

  • Avatar
    Permanently deleted user

    Hello,

    Please make sure that in your project FlexiCapture Web API is used as Web Reference, and not the Service Reference (Project → Add Service Reference → Advanced... → Add Web Reference... → insert URL+Enter → Add Reference).

    Also please clarify, do you export files to the database or to the filestorage? (go to the administration and monitoring console > service tab) 

    Note that it's not recommended to export documents to database for the large projects (as described in the FC11 System Administrator's Guide on pp.54-55)

    0
  • Avatar
    Permanently deleted user

    I removed the service reference and added a web reference and now I'm getting the following error when trying to open a session?

     

    SOAP Server Application Faulted

    from this line

    sessionId = service.OpenSession(roleType, stationType);

     

    please let me know if you need more details.

    0
  • Avatar
    Permanently deleted user

    Hello,

    The detailed code analysis is out of scope of this forum. Please contact to your regional support and send them your code samples.

    -1

サインインしてコメントを残してください。