Showing results for 
Search instead for 
Did you mean: 
Advocate II
Advocate II

502 BadGateway On-premises data gateway SharePoint Create file

If we want to create a file in SharePoint in Flow, we get the error 502 BadGateway. For files under 4 MB it works. It does not work for files larger than 4 MB.

Gateway on endpoint '<ii>sb://[...][...]</ii>' is unreachable.
We tried it with the standard Action Create File and also with an HTTP request to SharePoint.
Community Support
Community Support

Hi @JE-ax ,


The link below about file size that File System service support with On-Premises data gateway for your reference:


Best regards,



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

Hi @v-alzhan-msft,


unfortunately, that's a different connector.

Is there a limit for the SharePoint Connector with an On-Premises data gateway?


Best regards


Advocate II
Advocate II

It's a limitation in for onprem sharepoint. You can only upload less than 4 MB. 

Helpful resources

Power Automate News & Announcements

Power Automate News & Announcements

Keep up to date with current events and community announcements in the Power Automate community.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

Top Kudoed Authors
Users online (3,511)