cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Kyle87
Level: Powered On

Vacation Request Flow Bad Gateway Error

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

1 ACCEPTED SOLUTION

Accepted Solutions
Kyle87
Level: Powered On

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

View solution in original post

10 REPLIES 10
Dual Super User
Dual Super User

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

Kyle87
Level: Powered On

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? 

Dual Super User
Dual Super User

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
Level: Powered On

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

Dual Super User
Dual Super User

Re: Vacation Request Flow Bad Gateway Error

Kyle87
Level: Powered On

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? 

Kyle87
Level: Powered On

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"
}
}
}
Community Support Team
Community Support Team

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
Level: Powered On

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. 

Kyle87
Level: Powered On

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

View solution in original post

Helpful resources

Announcements
firstImage

New Ranks and Rank Icons in April

Read the announcement for more information!

firstImage

Better Together Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Community Summit North America

The top training and networking event across the globe for Microsoft Business Applications

Top Kudoed Authors
Users online (3,778)