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

BadGateway Error for SharePoint Approval Flow

Hello, 

I have a Flow that runs an approval process for files in a SharePoint Online document library. My users have been using this Flow for months without issue until this week. All of the Flow's runs keep failing with the following error: 

{
  "error": {
    "code"502,
    "source""flow-apim-msmanaged-na-northcentralus-01.azure-apim.net",
    "clientRequestId""b536d691-d87a-4634-9154-fbaad4c10d54",
    "message""BadGateway",
    "innerError": {
      "status"500,
      "message""Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))\r\nclientRequestId: b536d691-d87a-4634-9154-fbaad4c10d54\r\nserviceRequestId: b536d691-d87a-4634-9154-fbaad4c10d54"
    }
  }
}

 

I am an owner of the SharePoint site and Flow. Additionally, this is an Instant Flow. Has anyone know the best course of action to fix this error? 

 

Thank you! 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Frequent Visitor

Re: BadGateway Error for SharePoint Approval Flow

The error seemed to stem from the flow permissions. After going to manage run-users and selecting the SharePoint tab, I was able to give access to the corresponding document library and list. 

 

More information here: https://powerusers.microsoft.com/t5/Building-Flows/Set-Content-Approval-Status-quot-Access-Denied-qu...

View solution in original post

2 REPLIES 2
Highlighted
Community Support
Community Support

Re: BadGateway Error for SharePoint Approval Flow

Hi @ari-cornish ,

 

Does your issue still exists?

If the error code 500 or 502 appears, the failure is temporary or transient. Click or tap Resubmit to try the flow again to see if the issue still exists.

You could refer to link below to troubleshooting the flow:

https://docs.microsoft.com/en-us/power-automate/fix-flow-failures

 

Best regards,

Alice   

Community Support Team _ Alice Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Highlighted
Frequent Visitor

Re: BadGateway Error for SharePoint Approval Flow

The error seemed to stem from the flow permissions. After going to manage run-users and selecting the SharePoint tab, I was able to give access to the corresponding document library and list. 

 

More information here: https://powerusers.microsoft.com/t5/Building-Flows/Set-Content-Approval-Status-quot-Access-Denied-qu...

View solution in original post

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.

Upcoming Events

Experience what’s next for Power Automate

See the latest Power Automate innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Top Solution Authors
Top Kudoed Authors
Users online (6,111)