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

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

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

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

SandraTeh
Level: Powered On

Re: 502 bad gateway

Hi,

 

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

Gaelle
Level: Powered On

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.

aeolus1987
Level: Powered On

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.

NoodleMan
Level: Powered On

Re: 502 bad gateway

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

dc932
Level: Powered On

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

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!

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Kudoed Authors (Last 30 Days)
Users online (4,283)