cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Regular Visitor

502 bad gateway

Hi,

 

I have a flow that I set up few months ago. However, it failed recently giving an error messge of BadGateway.

 

Capture.PNG

 

Interestingly, all my previously history are gone except those that fail.

 

How do i resolve this?

 

Thank you

Sandra Teh

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Support
Community Support

Re: 502 bad gateway

Hi @SandraTeh,

 

The run duration limitation for flow is 30 days. And max run history retention is 28 days. Your flow was created a few months ago, I am afraid that it has run out of limitation.

 

Please check the doc for more details:

https://docs.microsoft.com/en-us/flow/limits-and-config

 

Bad gateway means that the failure is temporary or transient, please try to resubmit the flow. If you are still having the issue, please try to recreate the flow to see if it will work.

 

 

Best regards,

Mabel Mao

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

6 REPLIES 6
Highlighted
Community Support
Community Support

Re: 502 bad gateway

Hi @SandraTeh,

 

The run duration limitation for flow is 30 days. And max run history retention is 28 days. Your flow was created a few months ago, I am afraid that it has run out of limitation.

 

Please check the doc for more details:

https://docs.microsoft.com/en-us/flow/limits-and-config

 

Bad gateway means that the failure is temporary or transient, please try to resubmit the flow. If you are still having the issue, please try to recreate the flow to see if it will work.

 

 

Best regards,

Mabel Mao

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Highlighted
Regular Visitor

Re: 502 bad gateway

Hi,

 

I created a new flow, deleted the old one and it is now working again.

Highlighted
Frequent Visitor

Re: 502 bad gateway

Hello @v-yamao-msft !

 

Unfortunately, your answer is not pleasant :

I have a flow with a lot of actions, nested in conditions or loops.

I can not redo everything the second flow decides to launch a 502 error.

 

I read somewhere (on this forum's threads mostly) that it could be caused by upgrades from MS Flow. Could you notify the dev team to do something ? Because for me it is a bug.

 

To avoid me the boring and long task to recreate my flow from scratch, I tried to export and import it, but it still prompts a 502 message.

 

Do you have any idea of a workaround please ? 

 

Thanks a lot.

Have a nice day.

Highlighted
Frequent Visitor

Re: 502 bad gateway

I agree this is not an acceptable process. The issue is with Microsoft and a fix should be made. It should not be expected that users have to recreate their flows every time this error occurs.

Highlighted
Frequent Visitor

Re: 502 bad gateway

Agreed! MSFT should release a fix to solve the issue. Expecting users to re-produce all flows are not practical. 

Highlighted
Regular Visitor

Re: 502 bad gateway

Agreed... I have very complex flows that are in production and rebuilding from scratch can cause room for error. This wouldn't allow me to rerun jobs either that has failed on the broken flow... Please provide better solution.

Helpful resources

Announcements
firstImage

Super User Program Update

Three Super User rank tiers have been launched!

firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

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!

Top Solution Authors
Users online (6,040)