(Batch Processing) InternalServerError : (FailedToSerializeAnalyzeResult) Failed to serialize analyze results

Dilip Jain 20 Reputation points
2025-12-06T09:17:45.7466667+00:00

I am encountering an intermittent InternalServerError when polling for batch analysis results from Azure Document Intelligence. The error occurs during the polling.result() phase when attempting to retrieve completed OCR/analysis results.

  • Operation: Batch document analysis using Azure Document Intelligence
  • SDK Version: azure-ai-documentintelligence==1.0.2 (Python 3.9)
  • Resource Tier: S0
  • Model: v4.0 (prebuilt-layout with DocumentAnalysisFeature.KEY_VALUE_PAIRS)
  • Scenario: Polling for batch process results using continuation token via get_analyze_batch_result()
  • Failure Point: while polling. poller.status() returns 'failed'.

Verification Steps Already Performed

  • ✅ Documents are not corrupted or encrypted.
  • ✅ Large documents split into chunks of 100 pages.
  • ✅ Blob storage paths exist and accessible (using SAS token).
  • ✅ Initial experiments with same documents worked.

Note: I cannot share the actual documents due to confidentiality constraints, but the documents have been validated and processed successfully in earlier runs.

Error Log:

File "/usr/local/lib/python3.9/site-packages/azure/core/polling/_poller.py", line 250, in _start self._polling_method.run() File "/usr/local/lib/python3.9/site-packages/azure/core/polling/base_polling.py", line 820, in run raise HttpResponseError(response=self._pipeline_response.http_response, error=err) from err azure.core.exceptions.HttpResponseError: (InternalServerError) An unexpected error occurred. Code: InternalServerError Message: An unexpected error occurred. Exception Details: (FailedToSerializeAnalyzeResult) Failed to serialize analyze results, please contact support. Code: FailedToSerializeAnalyzeResult Message: Failed to serialize analyze results, please contact support.

Azure AI Document Intelligence
0 comments No comments
{count} votes

Answer accepted by question author
  1. Anshika Varshney 4,425 Reputation points Microsoft External Staff Moderator
    2025-12-10T12:05:31.69+00:00

    Hi Dilip Jain,

    Thank you for reaching out on the Microsoft Q&A.
    I’ve seen this “(Batch Processing) InternalServerError : (FailedToSerializeAnalyzeResult)” error as well, and in many cases, it isn’t caused by the input documents. The issue is often due to a transient problem on the Azure backend during batch processing.

    Other users have confirmed that their documents were valid, not encrypted, and not corrupted. Even splitting large files into smaller batches doesn’t always prevent the error, which suggests the failure is coming from the service rather than the data.

    The most effective workaround is to retry the request after a short delay. These errors often succeed on the next attempt. It also helps to reduce the batch size, since smaller batches place less load on the service and tend to process more reliably.

    Please let me know if there are any remaining questions or additional details, I can help with, I’ll be glad to provide further clarification or guidance.

    Thankyou!


0 additional answers

Sort by: Most 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.