cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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
Highlighted
Community Support
Community Support

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

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

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

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

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

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

Highlighted
Advocate I
Advocate I

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

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.

Highlighted
New Member

BadGateway error creating SharePoint list item in list made from template that had metadata columns

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.

Highlighted
Administrator
Administrator

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

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
Microsoft Power Automate Community Manager
Are YOU a member of your local Power Automate User Group?
Fill out This Form to claim your Community User Group Member Badge!
Highlighted
New Member

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

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
firstImage

Now Live: Power Virtual Agents Community!

We are excited to announce the launch of Power Virtual Agents Community. Check it out now!

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!

Top Solution Authors
Top Kudoed Authors
Users online (10,124)