cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
SandraTeh
Frequent 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
v-yamao-msft
Community Support
Community Support

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

9 REPLIES 9
v-yamao-msft
Community Support
Community Support

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.

Hi,

 

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

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.

Anonymous
Not applicable

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.

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

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.

Julien1
Helper I
Helper I

+1 same error, seems like not much has been done in 3 years

SzS
New Member

and still this problem after import

drewbty
Helper II
Helper II

Same issue here, some flows sporadically failing every few days with 502 'Bad Gateway'. Completely random. Boy have my eyes been opened up of how amateur Microsoft are since we moved onto Power Automate. So unacceptable to just say it's a 'transient issue' and not fix things...even years later

Helpful resources

Announcements
Power Automate News & Announcements

Power Automate News & Announcements

Keep up to date with current events and community announcements in the Power Automate community.

Community Calls Conversations

Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

Users online (2,799)