Skip to main content

Notifications

Power Automate - General Discussion
Under review by Community Managers

Under review

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

HTTP Request Error 422

Posted on by
I am currently helping a team with a Power Automate flow that uses an HTTP request to translate documents with Iliad API. The issue we are running into is “Error 400: Bad Request” or “Error 422: Unprocessable Entity”. It appears that the issue may lie in the Dynamic Content as the error indicates that there is no file listed, nor is there a target language listed (even though they are a part of the code). Does anyone have any ideas? I am attaching images of the flow, the HTTP request and the necessary syntax.
"body": {
        "detail": [
            {
                "type": "missing",
                "loc": [
                    "body",
                    "file"
                ],
                "msg": "Field required",
                "input": null,
                "url": "https://errors.pydantic.dev/2.7/v/missing"
            },
            {
                "type": "missing",
                "loc": [
                    "body",
                    "target_language"
                ],
                "msg": "Field required",
                "input": null,
                "url": "https://errors.pydantic.dev/2.7/v/missing"
            }
        ],
        "debugInfo": "clientRequestId: ddeacdf7-c295-4459-a4ea-1e05d0030937"
    }
 
Is it a syntax error? What should I change?
Categories:

Helpful resources

Quick Links

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,475

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,767

Leaderboard