cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Bad Gateway error - trigger When a file is created or modified (properties only)

I am trying to trigger a flow when a file modified, however the flow fails on the trigger - can someone advise?

 

2017-08-03_11-57-41.png

OUTPUTS

Headers
 
{ "Pragma": "no-cache", "x-ms-request-id": "19f3fef5-13e2-406a-87e3-1bf4c2c6598a", "Timing-Allow-Origin": "*", "Cache-Control": "no-cache", "Date": "Thu, 03 Aug 2017 10:40:33 GMT", "Set-Cookie": "ARRAffinity=6f8192aeb45a330cdb5f642ecc217dcd76db8eb70939a923860f458883127859;Path=/;HttpOnly;Domain=sharepointonlineconnectionprovider-westus.tip0-westus.p.azurewebsites.net", "Server": "Microsoft-IIS/8.0,Microsoft-HTTPAPI/2.0", "X-AspNet-Version": "4.0.30319", "X-Powered-By": "ASP.NET", "Content-Length": "293", "Content-Type": "application/json; charset=utf-8", "Expires": "-1" }
 
Body
 
{ "status": 502, "message": "Unknown Error\r\nclientRequestId: 19f3fef5-13e2-406a-87e3-1bf4c2c6598a", "source": "https://tenant.sharepoint.com/Documents/EH/_api/SP.APIHubConnector.GetUpdatedListItems", "errors": [ "-1", "Microsoft.SharePoint.Client.UnknownError" ] }
 

 

 

 

7 REPLIES 7
v-yamao-msft
Community Support
Community Support

Hi cc_onetowatch,

 

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


This documentation could be a reference for you:
https://flow.microsoft.com/en-us/documentation/fix-flow-failures/


I have tested this trigger on my side by creating a simple flow. The flow ran succeed when a file was created or modified.
3.PNG


Please also consider to delete the old SharePoint connection and recreate the connection to see if it will work. Please try it again on your side and feel free reply if you need more help.

 

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.
Anonymous
Not applicable

Thanks for your reply,

There is no option to resubmit and also the flow does not run every time the file is modified or created.
Anonymous
Not applicable

Hi @v-yamao-msft

Okay so this is not a solution but I created a new library and added a document - created the workflow which ran without errors - 

 

The library that I am working with has 5 managed metadata columns - couyld this be the cause of the issue and if so is there a fix/workaround??

The error(Bad gateway 500,502) might also occur when there is something missing or wrongly input into the different actions composing the flow. I for instance set a value that didn't exist in the corresponding Sharepoint list which made the flow fail with this error.

 

A tip: If a error occurs you can troubleshoot it inside the view looking at a more detailed error message. It's on the same page as the one where you resend the flow.

I had this same error when I tried to repoint a Flow to an identical list that I had created by saving the original list as a  template.   The problem came from the original list having metadata columns.  The BadGateway error was indicating the metadata columns were an issue in creating the item.   In the end I deleted all of those columns on the destination and recreated them, repointed them to the metadata, and then edited the flow and reselect everything.  This took hours to resolve because it was not clear from the error message what the problem was because the inner error was 500 and read like the parameters, or data, that I was trying to put in the destination metadata column was beyond what was allowed. I had to make step by step changes and though a process of elimination figured out what had to be the problem.  It was a very tedious process that took hours.

GabrielStJohn
Microsoft
Microsoft

Hello, @Anonymous!

Thank you for posting on the Flow Community Forum! Have you had an opportunity to apply @SPMPKC‘s recommendation to adapt your Flow? If yes, and you find that solution to be satisfactory, please go ahead and click “Accept as Solution” so that this thread will be marked for other users to easily identify!

Thank you for being an active member of the Flow Community!

-Gabriel
Flow Community Manager

- Gabriel
Community Manager
Power Automate | Power Virtual Agents
Super User Program Manager



Morning, 

 

I have  a flow that failed of bad gateway yesterday and today it's still trying to send a test flow. We're 20 minutes in. 

I know OneDrive and online word has been having issues since this morning but TEAMS and Onenote do not seem to be affected. Is this  all related to the issue with onedrive?

 

Thank you, 

~Amy

Helpful resources

Announcements
MPA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Users online (1,991)