question

RuchaSawarkar-5204 avatar image
0 Votes"
RuchaSawarkar-5204 asked ramr-msft answered

Form Recognizer API Compatibility Error 1027

I am getting below error. I have trained my model in labelling tool - https://fott-preview.azurewebsites.net/ .

with open(path_to_sample_content, "rb") as f:
poller = form_recognizer_client.begin_recognize_custom_forms(model_id = model_id, form = f)

When I run the code above getting below error.

HttpResponseError: (1027) The Form Recognizer API version used to create the model and the current API version used for analyze are incompatible.

azure-form-recognizer
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

ramr-msft avatar image
0 Votes"
ramr-msft answered

@RuchaSawarkar-5204 Thanks for the question. Can you please add more details about the trained FR model version and Analyzed API version that you are trying.

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.

· 4
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

I have used form recognizer labeling tool for training.

https://fott-preview.azurewebsites.net/ - This is API v2.1

In python, using below package

azure-ai-formrecognizer==3.1.0b3

poller = form_recognizer_client.begin_recognize_custom_forms(model_id = model_id, form = source)
result = poller.result()

Getting generic error:
"3014" "Generic error during prediction."





0 Votes 0 ·

@RuchaSawarkar-5204 Thanks for the details. Can you try with the version(v2.1) instead of other version. You can use the same version of analyze API to ensure the response is successful.

0 Votes 0 ·

I i used v2.1 only

0 Votes 0 ·
Show more comments