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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Vacation Request Flow ...
Power Automate
Unanswered

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

Categories:
I have the same question (0)
  • RezaDorrani Profile Picture
    12,143 on at

    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

  • Kyle87 Profile Picture
    19 on at

    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,143 on at

    @Kyle87 

     

    Outcome is equal to Approve

     

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

     

  • Kyle87 Profile Picture
    19 on at

    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,143 on at
  • Kyle87 Profile Picture
    19 on at

    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? 

  • Kyle87 Profile Picture
    19 on at

    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"
    }
    }
    }
  • v-alzhan-msft Profile Picture
    on at

    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

    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. 

  • Verified answer
    Kyle87 Profile Picture
    19 on at

    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

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard