Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
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.

(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

  • AntoinetteB Profile Picture
    145 on at
    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,283 Most Valuable Professional on at
    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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,679 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,015 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow