You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Azure Logic App集成Form Recognizer 2.0内置连接异常求助

Solution for Logic App Form Recognizer GetModels Empty Response

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-Key with 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

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.07 13:02:46