cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Frequent Visitor

502 BadGateway Error when creating OneDrive file

I have a flow which runs when an email is received and for each attachment it moves the attachment to a one drive folder.

This flow has been running for over 6 months (20,000+ runs) with no issue, today this flow wont work with the 502 BadGateway error on the create file step:Flow Error.PNG

The body is:

{
"error": {
"code": 502,
"source": "flow-apim-europe-001-francecentral-01.azure-apim.net",
"clientRequestId": "a6a09fd8-a5d8-4be8-ade5-2328ed890c6c",
"message": "BadGateway",
"innerError": {
"status": 502,
"message": "An unspecified error has occurred.",
"source": "api.connectorp.svc.ms"
}
}
}
21 REPLIES 21
Highlighted

I started receiving a 502 error today on the OneDrive for Business Extract Archive to Folder action. 

Worked yesterday. 

So far:

- Deleted, recreated action (no go)

- Deleted, recreated connection (no go)

Strangely, the action works (unzips a .zip folders contents to OneDrive for Business folder) but the Flow fails on this action with:

{
  "error": {
    "code": 502,
    "source": "flow-apim-msmanaged-na-eastus2-01.azure-apim.net",
    "clientRequestId": "9561a1ac-0b52-464d-9b77-ae1fb1285f89",
    "message": "BadGateway",
    "innerError": {
      "status": 502,
      "message": "Unable to upload contents of file '/Content/test-1.zip': One or more files failed to upload.",
      "source": "api.connectorp.svc.ms"
    }
  }
}

image.png

image.png

image.png

BUT THE ACTION IS COMPLETED!!

image.pngNeed help on this. Any ideas?

Highlighted

In analyzing this a bit closer, here is what I found:

  • 5 days ago the Flow ran without issue
    • All 18 files were extracted from the .zip file
  • Today, I noticed the 502 when testing (its a Button trigger)
    • There are 17/18 files extracted by the action; error above occurs on a .jpg within a nested folder
    • CONFIRMED by reviewing successfull runs from 5 days ago that the .jpg file within the same nested folder structure extracted without issue
    • If I remove the .jpg, the extraction is successful

Questions:

  • How could something that ran successfully 5 days ago, now not run successfully?
  • How do I fix this issue?

Thank you

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

Users online (12,166)