An Azure search service with built-in artificial intelligence capabilities that enrich information to help identify and explore relevant content at scale.
Document Intelligence InternalServer Error
Hello!
When I am using document inteligence with a multipage document with 360 pages ( but the documentation is saying that the model can receive up to 2000 pages...) the AnalyzeDocumentAsync function error out with the InternalServerError like so:
at Azure.Core.OperationInternal1.GetResponseFromState(OperationState1 state)
at Azure.Core.OperationInternal`1.<UpdateStatusAsync>d__20.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Azure.Core.OperationInternalBase.<UpdateStatusAsync>d__13.MoveNext()
......
An unexpected error occurred.
Status: 200 (OK)
ErrorCode: InternalServerError
Additional Information:
AdditionInformation: InternalServerError: An unexpected error occurred.
Details:
InternalServerError: An unexpected error occurred.
Raw:
{"code":"InternalServerError","message":"An unexpected error occurred.","details":[{"code":"InternalServerError","message":"An unexpected error occurred."}]}
Content:
{"status":"failed","createdDateTime":"2026-06-30T06:07:45Z","lastUpdatedDateTime":"2026-06-30T06:07:45Z","error":{"code":"InternalServerError","message":"An unexpected error occurred.","details":[{"code":"InternalServerError","message":"An unexpected error occurred."}]}}
Headers:
x-envoy-upstream-service-time: 88
apim-request-id: a58c6bf9-bb37-466c-bde0-17489d08ff6b
Strict-Transport-Security: max-age=31536000; includeSubDomains; preload
x-content-type-options: nosniff
x-ms-region: REDACTED
Content-Length: 271
Content-Type: application/json; charset=utf-8
Date: Tue, 30 Jun 2026 08:07:47 GMT
It errors out after 2 hours of waiting for the result....
Also 2 hours to parse 360 pages it's outrageously a long time but to even error out after that ....
When i am using the rest api to get the result using the operation id ( 136f0a49-bbc3-4129-b7c6-6feef359fa2a ) i got:
{
"error": {
"code": "NotFound",
"message": "Resource not found.",
"innererror": {
"code": "OperationNotFound",
"message": "The requested operation was not found. The identifier may be invalid or the operation may have expired."
}
}
}
It doesn't even found the operation ...
What do we do in this situation , also the pages will be billed because the service didn't return any result but an error?
We should batch the analyze for 300 pages? Seems allot of code changes for not very big documents...
Thanks!