Getting errorcode 2011 on performing GET operation from the trained model.

Sharad Chaurasia 1 Reputation point
2020-11-16T09:34:58.75+00:00

I am using Form Recognizer API. I performed post-operation to train the model. It has given me 201 response-code with the posted URL that includes the generated modelid.
But when I am performing GET request in that URL I am getting the below error.

{
"modelInfo": {
"modelId": "cf9f6d4b-e0a0-4a5d-86d6-613e7c294a1b",
"status": "invalid",
"createdDateTime": "2020-11-16T09:19:33Z",
"lastUpdatedDateTime": "2020-11-16T09:19:33Z"
},
"trainResult": {
"trainingDocuments": [],
"errors": [
{
"code": "2011",
"message": "Could not access Azure blob storage account."
}
]
}
}

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

2 answers

Sort by: Most helpful
  1. romungi-MSFT 43,701 Reputation points Microsoft Employee
    2020-11-16T13:45:27.453+00:00

    @Sharad Chaurasia The train request was submitted successfully but the train operation failed because your storage account is not configured correctly. Once you submit a train operation a model id is generated but this model is not trained successfully due to the error reason. Please check the storage settings and re-run the train operation and verify if the train request created a model successfully.


  2. Ohina 1 Reputation point
    2022-03-15T07:53:34.213+00:00

    You may need to grant Azure Cognitive Service (Azure Form Recognizer) a role that allows it to enable managed identity and access to storage.

    https://learn.microsoft.com/en-us/azure/applied-ai-services/form-recognizer/managed-identities

    0 comments No comments