web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / BadGateway Error for S...
Power Automate
Answered

BadGateway Error for SharePoint Approval Flow

(0) ShareShare
ReportReport
Posted on by 52

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! 

Categories:
I have the same question (0)
  • v-alzhan-msft Profile Picture
    Microsoft Employee on at

    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.

  • Verified answer
    ari-cornish Profile Picture
    52 on at

    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-quot-for-run-only/m-p/376663

Under review

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

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 636

#2
Valantis Profile Picture

Valantis 372

#3
11manish Profile Picture

11manish 335

Last 30 days Overall leaderboard