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:
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
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.
Cheers,
Joshua
Michael E. Gernaey
798
Super User 2025 Season 2
Tomac
469
Moderator
Power Apps 1919
333