web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / SharePoint Flow Bad ga...
Power Automate
Unanswered

SharePoint Flow Bad gateway and error status code 500 or 502

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

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

Categories:
I have the same question (0)
  • v-zhos-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous ,

    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 Profile Picture
    Microsoft Employee on at

    Hi @Anonymous ,

    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.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    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"?

  • NeilP Profile Picture
    8 on at

    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...

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 873

#2
Valantis Profile Picture

Valantis 813

#3
Haque Profile Picture

Haque 526

Last 30 days Overall leaderboard