Hello Power Automate Community,
I'm encountering an unexpected issue with my flow that was previously running without any problems. My flow uses the Analyze Document for Prebuilt or Custom models (v4.x API) action to process PDFs, but it now fails with the following error:
Error:
Action 'Analyze_Document_for_Prebuilt_or_Custom_models_(v4.x_API)' failed:
The API 'formrecognizer' returned an invalid response for workflow operation 'Analyze_Document_for_Prebuilt_or_Custom_models_(v4.x_API)' of type 'OpenApiConnection'.
Details: The API operation 'AnalyzeDocumentV40' requires the property 'body' to be of type 'Object' but is of type 'String'.
Flow Overview:
- Trigger: Recurrence
- Action 1: List files in a root folder
- Action 2: Filter for PDFs
- Action 3: For each PDF file:
- Extract JobID from filename
- Retrieve corresponding case data
- Get Content from PDF
- Analyze Document using Form Recognizer v4.x
JSON Snippet Being Passed:
Here's the JSON being used in the Analyze Document action:
Additional Troubleshooting:
To isolate the issue, I also tried using the file path from the filtered array as the input to the Analyze Document action,

Report
All responses (
Answers (