Showing results for 
Search instead for 
Did you mean: 
Regular Visitor

Problem with When a file is created or modified (properties only) - Sharepoint Online

Hi.  I'm making a flow with "When a File is created or modified (properties only)" to detect a file modification on specific file in specific sharepoint folder and send an e-mail notification.  I made a test with small dummy file (a few Kb), and all works well, but when I changed filename to real file that has 150 Mb, flow doesn't work.  Later, a message appeared on execution control, telling me that trigger event failed, and ask me to correct it.  On execution details of event, appears error 504 - Bad gateway.


Anyone knows what could be wrong? any advise?

Community Support
Community Support


Hi @lfalonso ,


It is worth noting that the maximum size of files that can be manipulated in Power Automate at present seems to be 50mb. Have you tested any files with a file size less than 50m?


If file size smaller than 50M can make Flow run normally, I think the problem you encountered should be related to the size of the file.

If you modify a file with a file size larger than 50m, such errors may occur.


In addition, recreating a new connection is also a useful method to solve this kind of problem. Please take a try


Best Regards,

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

Well, it's been happening for at least 3 weeks in a row for me - and creating a new SharePoint connection doesn't work! Every week I'm having to go in, fiddle with connections, and then it will suddenly work again 😞


I personally have full access permissions (I'm the admin!) and it keeps coming back to me with a 502 error. 😞


502 error502 errorNo amount of new connections will workNo amount of new connections will work

Helpful resources

UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Users online (1,658)