Azure Logic App集成Form Recognizer 2.0内置连接异常求助
Hey there, your suspicion is totally correct! I've dealt with this exact headache before when integrating Form Recognizer with Logic Apps. Let's break down what's happening and how to fix it:
The Core Issue
The built-in Form Recognizer connector in Logic Apps does default to the v1.0-preview API endpoint ({BaseURI}/formrecognizer/v1.0-preview/custom/models) for older versions of the connector. Since you trained your models using the v2.0-preview endpoint (which is what you're hitting successfully in Postman), the v1.0 endpoint can't access those newer models—hence the empty [] response you're seeing.
Fixes to Try Out
1. Use a Direct HTTP Action Instead of the Built-in Connector
This is the most reliable workaround if you can't get an updated connector:
- Add an HTTP action to your Logic App workflow
- Set the request method to
GET - Use the v2.0-preview endpoint as your URL:
{BaseURI}/formrecognizer/v2.0-preview/custom/models - Add a request header
Ocp-Apim-Subscription-Keywith your Form Recognizer subscription key as the value - Run the workflow, and you'll get the same full model list you see in Postman
2. Check for an Updated Connector Version
Microsoft periodically updates Logic Apps connectors to support newer API versions:
- When adding the Form Recognizer action, look for a version label (like "v2") next to the connector name
- If an updated connector exists, use it—it will automatically target the v2.0-preview (or newer) API, so you won't need to mess with manual HTTP calls
3. Confirm the API Version in Run History
To double-check your initial hunch, you can verify exactly what request Logic App is making:
- Go to your Logic App's Run History
- Click into the run where you called GetModels
- Expand the Form Recognizer action details, and look for the "Request URL" field—it will show you clearly which API version is being used
Quick Note on the C# SDK Parallel
You're spot-on about the C# SDK behavior—early versions did default to v1.0-preview. If you're still using that SDK, make sure you upgrade to the latest package (like Azure.AI.FormRecognizer) which uses newer API versions by default, or explicitly specify the API version when initializing the client.
Hope this gets you up and running smoothly!
内容的提问来源于stack exchange,提问作者Softveras

