Azure AI Document Intelligence invoice analysis fails with unexpected error for all PDF files

Palacký Martin 0 Reputation points
2026-05-18T22:42:04.8266667+00:00

Hello,

We are experiencing an issue with Azure AI Document Intelligence. When using the prebuilt Invoice model, analysis fails for every PDF invoice we test in the Azure portal Test tab. Error shown: "Analysis failed. Failed to analyze the file. An unexpected error occurred."

Details:

  • Service: Azure AI Document Intelligence
  • Model: Prebuilt Invoice
  • Happens for all invoice PDF files, not just one document
  • Occurs directly in Azure portal during testing image

Could you please confirm whether this is a known service issue or if there is a problem with the Document Intelligence service configuration?

Thank you.

Azure Document Intelligence in Foundry Tools

2 answers

Sort by: Most helpful
  1. Palacký Martin 0 Reputation points
    2026-05-21T19:22:16.08+00:00

    Hello,

    First of all, I apologize for the late reply. I missed it.

    Thank you for your response and for the suggested troubleshooting steps.

    I checked Azure Service Health, but I did not find any active incident or service degradation related to this issue.

    The issue started suddenly from one day to the next. The same setup and the same type of invoice documents had been working normally before.

    There was only a very minor change on our side: we corrected a typo in the description of the specific field that the model extracts. This was only a description correction and should not have changed the document structure, field definition, or extraction logic.

    I would also like to clarify that when using the API, the latest build before this update still works normally with the same documents. This suggests that the issue is unlikely to be caused by file upload, PDF corruption, encryption, or the general document format.

    I apologize, but I have not yet had time to test other prebuilt models such as prebuilt-layout or prebuilt-read, and I have not performed cross-region testing yet. However, for our use case we specifically need this custom invoice model, so testing other models or regions would mainly help isolate the issue, but would not be a practical replacement for our production workflow.

    Could you advise whether correcting a typo in a field description could impact the model analysis stage, or whether there is a way to restore/continue using the previous working build?

    Thank you.

    Best regards,

    Martin

    Was this answer helpful?


  2. Karnam Venkata Rajeswari 4,515 Reputation points Microsoft External Staff Moderator
    2026-05-19T00:07:37.5666667+00:00

    Hello @Palacký Martin

    Welcome to Microsoft Q&A .Thank you for reaching out to us.

     Thank you for sharing the detailed information and screenshot regarding the issue observed with the prebuilt Invoice model in Azure AI Document Intelligence.

    Based on the behavior described, the document upload and preview in the portal Test tab appear to be functioning as expected. However, the failure occurs during the document analysis stage with the message:

    “Analysis failed. Failed to analyze the file. An unexpected error occurred.”

    This indicates that the issue is likely occurring during backend processing rather than during file ingestion. Considering that the same behavior is reproducible across multiple PDF invoices, the scenario may be influenced by a combination of service conditions, model behavior or input characteristics.

    The observed behavior may be associated with one or more of the following:

    1. Temporary backend processing issue or service degradation
    2. Region-specific or model-specific performance limitations
    3. Input document characteristics affecting analysis
    4. Portal-specific limitations or transient UI behavior

    Please check if the following steps helps -

    1. Validating Service Health and Regional Status
      1. Review the current service status on
      2. This helps identify any regional or service-wide incidents impacting processing.
    2. Isolating model vs service scope Please test additional models within the same resource:
      • prebuilt-layout
      • prebuilt-read
      If these models succeed while Invoice fails, the issue is likely model-specific, else the issue may be service-level or configuration-related.
    3. Validating via REST API or SDK Consider executing the same PDF using REST API or SDK to check backend response details
      1. If the API succeeds but portal fails - Portal/UI limitation or transient issue
      2. If the API fails with same error - Backend, document, or configuration issue
    4. Validating Input PDF Characteristics Even when multiple files fail, validating input properties remains important:
      • Ensure PDF is:
      • Not encrypted or password-protected
      • Not corrupted
      • Confirm document meets supported limits:
      • Up to 500 MB and 2000 pages (Standard tier)
      • Please verify:
      • Single-invoice vs multi-invoice structure
      • Scanned vs digitally generated PDFs
    5. Validating region and deployment setup
      1. Please confirm the resource is deployed in a supported region
      2. Prebuilt models rely on regional availability and supported configurations
    6. Performing Cross-Region Testing Consider deploying a temporary resource in another region and retest the same PDFs If issue is not reproducible - likely region-specific behavior If issue persists - broader service or input-related condition

    The following references might be helpful , please check them out

    Please let us know if the response was helpful

    Thank you

    Was this answer helpful?


Your answer

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