Problem with Auto-labeling in Form Recognizer (custom model)

Adrian Kieżel 5 Reputation points
2023-08-22T08:34:50.1066667+00:00

Hello! :)

I have a problem with running auto-labeling in Form Recognizer for our projects that are using custom models.

Using Azure Storage Explorer, I can connect to the blob that contains PDF files that we are using for training without any issues. I can also add new files, download, and delete them.

I can also see all the files on formrecognizer.appliedai.azure.com (custom model). I can create labels, train models, build composite models – in one word, everything works perfectly fine.

Except for one thing - when I try to auto-label a new PDF file based on the composite model that I created before, it fails.

Looking at my network tab on my browser, there's a GET request to URI https://formrecognizer.appliedai.azure.com/custom-model/projects/a154d943-9f9e-40e4-bfa0-0db910490c8f/autoLabel/operations/d0446a51-417d-47ae-b230-789bed6151e6 that fails with the response:

{
    "projectId": "a154d943-9f9e-40e4-bfa0-0db910490c8f",
    "operationId": "d0446a51-417d-47ae-b230-789bed6151e6",
    "createdTime": "2023-08-22T08:07:43.0470449Z",
    "status": "Failed",
    "error": "Failed to send analyze request to Form Recignizer service. Error: Cannot retrieve operation location. Status code: Forbidden",
    "fileList": [
        "1532347.pdf"
    ]
}

So, it seems that I don't have the necessary permissions to execute the operation for autoLabel. Honestly, I have no idea where I can find settings to change it (all firewall/access settings are managed by our admin team, so I can get access to this function; I just need some clues about where I can find the setting to change access to it).

Any pointers on how to fix this problem would be greatly appreciated.

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

1 answer

Sort by: Most helpful
  1. Matthew Burden 30 Reputation points
    2023-10-09T18:51:03.48+00:00

    I have spent all day working on this issue myself. The one thing that worked for me was to allow the IP of the Form Recognizer Studio through the firewall of the AI Document Intelligence and associated storage account. I know you mentioned that you do not have access to firewall settings so I would just send them the below link.

    Here is the IP: 20.3.165.95

    Here is where I found the answer: https://learn.microsoft.com/en-us/azure/ai-services/document-intelligence/faq?view=doc-intel-3.1.0#why-am-i-receiving-an-authorizationfailure-error-on-project-sharing--auto-label--or-ocr-upgrade-when-my-document-intelligence-or-storage-account-resource-is-configured-with-a-firewall-

    1 person found this answer helpful.
    0 comments No comments

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.