Showing results for 
Search instead for 
Did you mean: 
New Member

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

Process Advisor

Introducing Process Advisor

Check out the new Process Advisor community forum board!

MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

Users online (23,953)