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 / 500 Bad Gateway, 502 A...
Power Automate
Unanswered

500 Bad Gateway, 502 Access Denied error on Set Content Approval action. I fixed it, but a week later it started again.

(0) ShareShare
ReportReport
Posted on by 145

All my flows are working in one library.  Last week I started adding flows for the first time to a different library.  I received the error below upon all Approve/Reject actions through Set Content Approval.  I had all my Etags in place correctly.  I looked at Library Permissions and noticed that I did not add the Owners permission group to this Library.  I fixed that, and then ran the flow successfully back on 9/1/2020.  Both Approve and Reject worked correctly.

 

Now today, 9/12/2020 I am having the same problem again, but I have not changed anything.  It reruns several times and then fails on the Set Content Approval action to Approve or Reject.  The Set content Approval actions to Draft and Publish are working fine.

 

The error and my flow are below:

ERROR:

{
  "error": {
    "code"502,
    "source""flow-apim-msmanaged-na-centralus-01.azure-apim.net",
    "clientRequestId""580083fc-b129-4bae-92d2-a610dbaf59a2",
    "message""BadGateway",
    "innerError": {
      "status"500,
      "message""Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))\r\nclientRequestId: 580083fc-b129-4bae-92d2-a610dbaf59a2\r\nserviceRequestId: 580083fc-b129-4bae-92d2-a610dbaf59a2"
    }
  }
 
MY FLOW:
 
 

screenshot1.GIFscreenshot2.GIFscreenshot3.GIF

Categories:
I have the same question (0)
  • CFernandes Profile Picture
    8,504 Most Valuable Professional on at

    @AntoinetteB If you resubmit the Power Automate(Flow) does it complete?

     

    According to Microsoft article: If the error code 500 or 502 appears, the failure is temporary or transient. Click or tap Resubmit to try the flow again.

     

    Referernce:

     

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

     

    Also have a look at the thread: 

     

    https://powerusers.microsoft.com/t5/Building-Flows/BadGateway-error-502-access-denied-in-approval-flows/td-p/267607#:~:text=Re%3A%20BadGateway%20error%20502%20(access%20denied)%20in%20approval%20flows&text=Please%20try%20to%20set%20users,error%20message%20will%20be%20returned

     

     

    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

     

     

  • AntoinetteB Profile Picture
    145 on at
    Thanks. Unfortunately in this case it did not solve my problem. Also, it stopped and started again 10 days later even though this time it continues. There are a number of people who have had this problem and solved it in some way by making some correction to their flow, but I have already tried all the suggestions I have been able to find through a Google search.

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 April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 796

#2
Valantis Profile Picture

Valantis 671

#3
Haque Profile Picture

Haque 551

Last 30 days Overall leaderboard