Skip to main content
Community site session details

Community site session details

Session Id : xYJwpIIQJCeTlIM0bBAAXm
Power Automate - Using Flows
Unanswered

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

Like (0) ShareShare
ReportReport
Posted on 11 Sep 2020 20:22:17 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

  • AntoinetteB Profile Picture
    145 on 14 Sep 2020 at 12:01:47
    Re: 500 Bad Gateway, 502 Access Denied error on Set Content Approval action. I fixed it, but a week later it started again.
    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.
  • CFernandes Profile Picture
    8,295 Most Valuable Professional on 11 Sep 2020 at 20:37:40
    Re: 500 Bad Gateway, 502 Access Denied error on Set Content Approval action. I fixed it, but a week later it started again.

    @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!

     

     

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 1

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 1

Featured topics

Restore a deleted flow
Loading complete