Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
Answered

Vacation Request Flow Bad Gateway Error

(0) ShareShare
ReportReport
Posted on by 19

Been trying to figure out my request flow for hours. It keeps giving me bade gateway and error code 502 with status 500. It keeps popping up on the condition 2 side which is the rejection side even though I am approving the request. I have attempt to resubmit about 20 times since people have said the error is transient. 

Really at a loss at this point. Any help would be appreciate. flow1.jpgflow2.jpg

  • Verified answer
    Kyle87 Profile Picture
    19 on at
    Re: Vacation Request Flow Bad Gateway Error

    I did get it to work by finding a template and then editing it and removing some steps to get it to work the way I wanted with no Bad Gateway errors. 

    FLOW1.jpgFLOW2.jpg

  • Kyle87 Profile Picture
    19 on at
    Re: Vacation Request Flow Bad Gateway Error

    Hi @v-alzhan-msft 

     

    Is that for approving files?

    I am attempting to create a flow that approves or rejects vacation time requests and them posts onto the calendar. 

  • v-alzhan-msft Profile Picture
    on at
    Re: Vacation Request Flow Bad Gateway Error

    Hi @Kyle87 ,

     

    Please refer to screenshot below to create the flow and let me know if your problem could be solved:

    1.png

     

     

    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.

  • Kyle87 Profile Picture
    19 on at
    Re: Vacation Request Flow Bad Gateway Error

    Not sure if this might help anybody figure out what is wrong. 

    {
    "error": {
    "code": 502,
    "source": "canada-001.azure-apim.net",
    "clientRequestId": "dc8476f5-8c99-4c9c-9566-94debebc1c1d",
    "message": "BadGateway",
    "innerError": {
    "status": 500,
    "message": "Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))\r\nclientRequestId: dc8476f5-8c99-4c9c-9566-94debebc1c1d\r\nserviceRequestId: dc8476f5-8c99-4c9c-9566-94debebc1c1d"
    }
    }
    }
  • Kyle87 Profile Picture
    19 on at
    Re: Vacation Request Flow Bad Gateway Error

    Not sure what I need to set the Etag as. In the list you provided it says to set the Etag as Etag from the menu. Should I just type that in or should I be using a different Etag? 

  • RezaDorrani Profile Picture
    12,141 on at
    Re: Vacation Request Flow Bad Gateway Error

    @Kyle87 

     

    add the etag

     

    https://blog.leitwolf.io/approve-a-sharepoint-document-with-flow-set-content-approval/

  • Kyle87 Profile Picture
    19 on at
    Re: Vacation Request Flow Bad Gateway Error

    Ok I switched it to what you said. 

     

    Ran it and now instead of getting the error on the rejection side even when approving I am now getting the error on the approve side when approve things. So that's a change. 

     

    flow5.jpg

  • RezaDorrani Profile Picture
    12,141 on at
    Re: Vacation Request Flow Bad Gateway Error

    @Kyle87 

     

    Outcome is equal to Approve

     

    Just hardcode the word Approve in the righmost box of the condition

     

  • Kyle87 Profile Picture
    19 on at
    Re: Vacation Request Flow Bad Gateway Error

    Once approved it should flow into the connected calendar. If rejected that's where it stops. 

    I tried switching to the Outcome is equal to Approval ID from the popup menu. 

     

    flow3.jpg

    Still got the same error. 

     

    Could the bad gateway error be due to me not having a premium account? 

  • RezaDorrani Profile Picture
    12,141 on at
    Re: Vacation Request Flow Bad Gateway Error

    hI @Kyle87 

     

    I am assuming the condition is to check if Approved

     

    Use Outcome dynamic content 

    Outcome is equal to Approve

     

    Outcome - dynamic content

    is equal to - condition

    Approve - value hardcoded

     

    Regards,

    Reza Dorrani

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

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,524 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,906 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow