How to fix missing language data from Form Recognizer Layout 3.1 Model running on container?

Kelvin Oo 5 Reputation points
2024-06-28T19:24:36.0133333+00:00

I'm trying out the Layout 3.1 container version of Document Intelligence's prebuilt-layout model, with the Python SDK package

azure-ai-formrecognizer = "3.3.0"

to analyze documents.

However, whenever I send a request to analyze a document using begin_analyze_document() , and parse the JSON response, the language data is always missing:

...

"languages": [],

    "pages": [

        {

...


This is the log from the Docker container:

azure-form-recognizer-layout  | StorageTimeToLiveInMinutes is set to 2880 minutes.

azure-form-recognizer-layout  |  Not a TIFF or MDI file, bad magic number 20517 (0x5025).

azure-form-recognizer-layout  | fail: formrecognizerlayout[0]

azure-form-recognizer-layout  |       Failed to track On-Premises Usage buildVersion='1.2.521.0-20240203.1-b0c0f5500a46efc1634694ae85c20587fa5d7ab0' hostId='5143f0834253' serviceName='formrecognizerlayout' requestId='6af7c387-2c81-4634-816f-4d36ba268fd8' tags='billing' namespace='vdi' Namesapce='vdi' billingUnit='1' errorCode='BillingInternalServerError'   


Azure AI Document Intelligence
Azure AI Document Intelligence
An Azure service that turns documents into usable data. Previously known as Azure Form Recognizer.
1,710 questions
{count} votes

1 answer

Sort by: Most helpful
  1. VasaviLankipalle-MSFT 17,476 Reputation points
    2024-06-28T23:47:43.0466667+00:00

    Hello @Kelvin Oo , I'm glad that you were able to resolve your issue and thank you for posting your solution so that others experiencing the same thing can easily reference this! Since the Microsoft Q&A community has a policy that "The question author cannot accept their own answer. They can only accept answers by others ", I'll repost your solution in case you'd like to "Accept "

    Issue: To fix missing language data from Form Recognizer Layout 3.1 Model running on container

    Solution: The issue was due to being connected to a VPN. Once disconnected, the language data was included, and the Docker container log errors disappeared.

    If you have any other questions or are still running into more issues, please let me know.

    Thank you again for your time and patience throughout this issue.

    Regards,
    Vasavi

    Please remember to "Accept Answer" if any answer/reply helped, so that others in the community facing similar issues can easily find the solution.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.