Form recognizer analysis error V 2.0

theertha Padman 1 Reputation point
2020-10-18T17:46:25.857+00:00

I am getting the following error while running the python script to analyse a trained model with labels.

"The Form Recognizer API version used to create the model and the current API version used for analyze are incompatible.

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

2 answers

Sort by: Most helpful
  1. Barnett, Ian 11 Reputation points
    2021-04-20T10:45:14.733+00:00

    @theertha Padman I also ran into this issue

    I am using the current NPM SDK (v3.0.0) to access FormRecognizer, which targets the service API v2.0

    However when reading the docs here: https://learn.microsoft.com/en-us/azure/cognitive-services/form-recognizer/quickstarts/label-tool?tabs=v2-0 I found that there are two links with the same text (FOTT Website) but each has a different link value - this is where things went wrong for me:

    I was using the first one which is v2.1 (preview) so my API calls were failing expecting models trained using v2.0
    I switched to the non-preview FOTT Tool which is v2.0 and my API calls began working just fine (although the recognition accuracy drops off notably in v2.0)

    All the best!

    2 people found this answer helpful.
    0 comments No comments

  2. romungi-MSFT 42,321 Reputation points Microsoft Employee
    2020-10-22T17:21:41.517+00:00

    @theertha Padman If the model is trained with a different version than the one used for analyze API this message would be seen. You can use the same version of analyze API to ensure the response is successful.

    0 comments No comments