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

SharePoint Flow Bad gateway and error status code 500 or 502

I'm developing flows for our SharePoint site. The particular flow looks like the following image. A form is submitted, an existing item called and a variable incremented based on the "get item". A new item is then generated with user information from the form, an existing item updated and email sent to the appropriate person for action.

 

 

Until 1 day ago this Flow was operating as intended. I made some changes to the form by adding more questions, then added the same details to columns on a SharePoint list to accommodate the new answers. Then I modified the Flow to handle this information appropriately.

 

I only added 3 new pieces of information, all of which were text and I've reviewed the data types to ensure that I've not inadvertently set a data type to numerical or an integer or something silly.

 

The Flow will no longer run and it fails at the "create item" stage above - which is the list item receiving much of the data from the user form. 

 

Details are shown below - indicating a bad gateway and error code of 502. However some instances throw an error of 500. The error does not appear to be consistent.

 

 

 

In trying to remedy the issue I've;

- Modified data types throughout the form and list entries

- Tried not inputting any data into some fields in the form in case there was a data type mismatch

- Removed the new form questions, List columns and subsequently the new items added to the Flow

- Restarted my machine

- Cleared cache in Google Chrome (after reading other possible troubleshooting relating to cache and error 500/502)

 

None of these actions have provided any resolution, irrespective of changing back to the original configuration (which was working only 2 days ago).

 

Can I get more information on what is likely to cause a bad gateway, error 500 or error 502?

 

Thanks

4 REPLIES 4
v-zhos-msft
Level 10

Re: SharePoint Flow Bad gateway and error status code 500 or 502

Hi @NickAmos ,

If the error code 500 or 502 appears, the failure is temporary or transient.Click or tap Resubmit to try the flow again.

I suggest you reconfigure and save the flow.

Then take a test to check whether it will work.

Best Regards,

Community Support Team _ Zhongys

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

v-zhos-msft
Level 10

Re: SharePoint Flow Bad gateway and error status code 500 or 502

Hi @NickAmos ,

If the error code 500 or 502 appears, the failure is temporary or transient.Click or tap Resubmit to try the flow again.

I suggest you reconfigure and save the flow.

Then take a test to check whether it will work.

Best Regards,

Community Support Team _ Zhongys

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

NickAmos
Level: Powered On

Re: SharePoint Flow Bad gateway and error status code 500 or 502

Hi,

 

I've attempted to re-run the flow around 10 times. None of them are successful. I've also reverted the flow to the original condition, when it was last operational. This did not yield a result.

 

Neither of these courses of action provide any improvement.

 

What does error 500 / 502 actually mean? When you say it's a transient error - what do you actually mean? Is there a better course of action than "try turning it off and on again"?

Highlighted
NeilP
Level: Powered On

Re: SharePoint Flow Bad gateway and error status code 500 or 502

I'm having the same issues with my flows too yesterday and today. In my case I think it's that Flow isn't talking to OneDrive. Hopefully it gets resolved soon...

Helpful resources

Announcements
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 (3,639)