Search code examples
azureazure-cognitive-servicesazure-form-recognizer

Why am I getting error 2005 - unable to read file using Azure Form Recognizer?


Using Azure Form Recognizer v2.

Built model with files on azure blob.

As far as I can tell accounting for all items that are listed in various quickstarts.

When I do my GET with the Operation-Location uri to see results I receive error 2005 - Unable to read file.

Thinking access to blob somehow but I'm not seeing an issue.

Thanks

enter image description here


Solution

  • Were you able to successfully train a model? A valid model is required prior to posting an analyze request. For analyze requests, you have two options to specify your input file (single file, no batch mode):

    1. As a byte stream.
    2. Via a SAS URL in the body of the request.

    Which one did you try? Please refer to the quickstart for more details.

    https://learn.microsoft.com/en-us/azure/cognitive-services/form-recognizer/quickstarts/curl-train-extract#analyze-forms-for-key-value-pairs-and-tables