Troubleshooting 'ModelNotFound' error for a custom model in Form Recognizer Studio (v3)

柳井康伸 0 Reputation points
2023-07-20T07:39:37.9466667+00:00

I have created a custom model with the ID 'DigiDev_Invoice_v2' in Form Recognizer Studio (v3).

Both the training and testing of this model were successfully performed within the studio, and the status is shown as 'succeeded' on the model screen.

However, when attempting to analyze a different file using the Python API, I encountered the following error message.

{"code": "ModelNotFound", "message": "The requested model was not found."}

Upon checking the project settings, I confirmed that the endpoint and API key values are identical to those specified in my Python code.

To further investigate this issue, I used the 'document_model_admin_client.list_document_models()' statement to retrieve a list of models available for the same endpoint and API key combination.

Surprisingly, the model 'DigiDev_Invoice_v2' was not listed.

I currently have two Form Recognizer resources set up. I also tried checking for the model in the other resource, but it was not found there either.

Given these circumstances, I am perplexed as to why the custom model 'DigiDev_Invoice_v2' works perfectly within the Form Recognizer Studio, but seems to be absent when accessed via the Python API.

Could anyone please provide insights on how to resolve this discrepancy?

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

4 answers

Sort by: Most helpful
  1. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

  2. 柳井康伸 0 Reputation points
    2023-07-21T00:36:45.29+00:00

    Dear romungi san, thank you for your reply.

    I attached the model screen shot.

    API version is 2022-08-31. So this seems not the problem.

    And I installed SDK V3.0.0b1 in my environment, and I got following erorr...

    ImportError: cannot import name 'DocumentModelAdministrationClient' from 'azure.ai.formrecognizer' (C:\Users\xxxx\PycharmProjects\azure_test\venv\lib\site-packages\azure\ai\formrecognizer_init_.py)

    My problem is not solved yet...

    (My python version is 3.7)

    0 comments No comments

  3. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

  4. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more