web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id : XcBxwl/EOTP3qeu05+Fpt5
Power Automate - Building Flows
Answered

Invalid language code argument with Form Recognizer

Like (0) ShareShare
ReportReport
Posted on 11 Dec 2022 23:15:15 by 15

Hey Power Automate community,

 

I am building an easy extraction flow for our localization project managers where they can submit a PDF via SharePoint and get it read by Form Recognizer using the prebuilt-read model.

 

My current flow is as follows:

 

jdvelasquez_0-1670800049709.png

 

I haven't reached the Create file step because my tests throw an error related to the LanguageCode parameter (i.e., en-US) as an "invalid argument."

 

What's interesting is that defining the locale is optional per documentation. However, the following happens when you don't specify it:

 

The API 'formrecognizer' returned an invalid response for workflow operation 'Analyze_Document_for_Prebuilt_or_Custom_models_(v3.0_API)' of type 'OpenApiConnection'. Error details: 'The API operation 'AnalyzeDocumentV30' is missing required property 'body/analyzeResult/languages/0/languageCode'.'

 

I have tried putting the value between double and single marks, and without them, without success.

 

Do you have any thoughts on what may be happening?

 

Best regards,

Joshua

I have the same question (0)
  • Verified answer
    jdvelasquez Profile Picture
    15 on 14 Dec 2022 at 23:47:19
    Re: Invalid language code argument with Form Recognizer

    In case someone has experienced something similar:

     

    The solution to this problem is to change the pre-built model to pre-built layout. For some reason the pre-build read model doesn't read the set locale.

     

    jdvelasquez_1-1671061613278.png

     

    Cheers,

    Joshua

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

MS.Ragavendar – Community Spotlight

We are honored to recognize Ragavendar Swaminatha Subramanian as our September…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 798 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 469 Moderator

#3
Power Apps 1919 Profile Picture

Power Apps 1919 333

Last 30 days Overall leaderboard
Loading complete