Azure document Intelligence Custom classification model in logic app

Nipuna Weerasinghe 21 Reputation points
2024-05-14T07:28:32.8033333+00:00

Hi,

I have created an Azure document Intelligence Custom classification model called SLA and user Power Automate to classify documents in SharePoint Online without any issue, but I used HTTP POST and GET in the Power Automate.

But in Logic App I tried to scan documents in Azure File storage and I m getting an error as shown on the screenshot.

Error

I m pretty sure I have the correct Model name. Can someone please guide me on this.

My logic App as follows

Error1

Error2

Checked the Key and End point all are pointing to the correct resource.

Model as follows.

model1

Thanks.

Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
3,203 questions
Azure AI Document Intelligence
Azure AI Document Intelligence
An Azure service that turns documents into usable data. Previously known as Azure Form Recognizer.
1,711 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. LeelaRajeshSayana-MSFT 15,886 Reputation points Microsoft Employee
    2024-05-14T22:22:03.49+00:00

    Hi @Nipuna Weerasinghe Thank you for posting the question on this forum.

    Please try using the Action Trigger Classify document with document classifier (v3.1 API) to use the custom Classifier model.

    But in Logic App I tried to scan documents in Azure File storage and I m getting an error as shown on the screenshot.

    I have found in my testing that the action trigger Analyze Document for Prebuilt or Custom models (v3.x API) which you are trying to use is specifically compatible with Custom Extraction Models

    If you notice the API end points for these two custom models, you will see that they both use different end points. Hence, one trigger action would not work for the other. Please find the below image for reference

    User's image

    Here is a reference documentation to the API end points - Document Classifiers - Classify Document

    Once you use the Classify document with document classifier (v3.1 API) trigger, you should be able to execute the function without any issues.

    Hope this helps! Please let us know if you need any additional assistance in the comments below.


    If the response helped, please do click Accept Answer and Yes for the answer provided. Doing so would help other community members with similar issue identify the solution. I highly appreciate your contribution to the community.

    1 person found this answer helpful.

  2. Yevhenii Mamloienko 0 Reputation points
    2024-06-11T08:17:29.1233333+00:00

    Good morning ,
    You are using the name of the tenant not the model.
    Please try to use Model name (Model Id).
    User's image

    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.