Showing results for 
Search instead for 
Did you mean: 
Kudo Kingpin
Kudo Kingpin

Create File on-prem using File system


I'm trying to create a excel file in a local system using data gateway connection. I'm using create file action of file system but unfortunately my flow did not create file which has size more than 2048 KB. i.e the file size is 4 mb, flow runs and file create in the folder is just 2048kb and flow fails with error of 504 bad gateway timeout error.

This is create file configuration.



the error I get when file size exceed 2048 KB

  "error": {
    "code": 504,
    "source": "",
    "clientRequestId": "67abb9cf-4e12-4e79-b258-302ee7cc0bce",
    "message": "BadGateway",
    "innerError": {
      "status": 504,
      "message": "The request to the on-premises data gateway has timed out.\r\nclientRequestId: 67abb9cf-4e12-4e79-b258-302ee7cc0bce",
      "error": {
        "message": "The request to the on-premises data gateway has timed out."
      "source": ""


Any Help would be appreciated.




Super User III
Super User III

Hi @Harry_G 


How long this process takes before it gets times out. Not sure the standard http time out is causing this.

Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up

Proud to be a Flownaut!

Learn more from my blogPower Automate Video Tutorials

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

Top Solution Authors
Top Kudoed Authors
Users online (31,485)