How do I configure an Azure logic app to call a custom classification model

Steve Gostling 0 Reputation points
2023-08-18T21:38:26.11+00:00

When configuring the 'Analyze Document for Prebuilt or Custom models (v3.0 API)' in the Logic Apps Designer it requires a model id

Model Identifier modelId True string Prebuilt modelIds: prebuilt-read, prebuilt-layout, prebuilt-document, prebuilt-businessCard, prebuilt-idDocument, prebuilt-invoice, prebuilt-receipt, prebuilt-tax.us.w2, prebuilt-vaccinationCard, prebuilt-healthInsuranceCard.us. Custom modelId format - [a-zA-Z0-9][a-zA-Z0-9._~-]{1,63}. Unique model name.

I enter the name of my custom classification model, but when I execute the logic app it can never find the model.

Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
2,965 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,507 questions
{count} votes

1 answer

Sort by: Most helpful
  1. MayankBargali-MSFT 69,946 Reputation points
    2023-08-30T05:22:37.8833333+00:00

    @Steve Gostling Thanks for reaching out.

    As per the error the model was not found. Can you please navigate to your project setting and validate what the service resource you have specified and use the endpoint URL and account key for the same resource.

    As per the screenshot I can see that you are using the right Model identifier name but please confirm if the connection string is for the same resource that you have configured as I was able to reproduce the issue if I use the incorrect endpoint/string for my model that I have created.

    User's image

    The other reason I could think about would be using a different version other than v3.0 as documented here as it specifically calls out v3.0 API and no other.