web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Simple File->Sharepoin...
Power Automate
Unanswered

Simple File->Sharepoint flow failing for files above ~22mb

(0) ShareShare
ReportReport
Posted on by 4

Hi All,

 

I have built a simple flow to take new and modified files from an on-prem file location and place in a Sharepoint Online folder. I seem to be hitting an filesize limit somewhere between 22mb and 24mb.

 

From what I have read I should be able to transfer files up to 50mb in this way.
I also tried creating a Logic App for the same process and it also fails.

My on-premises data gateway is of the current version at the time of this post.

Categories:
I have the same question (0)
  • v-bacao-msft Profile Picture
    Microsoft Employee on at

    Hi @tmrrow,

     

    Do you mean transferring files from Sharepoint on-prem to SharePoint online?

    Could you provide a screenshot of your Flow configuration?

    I did a test on my side, sorry that I don't have a SharePoint on-prem test environment. So I used the SharePoint onlie action throughout the testing process.

    SharePoint connector does not make a significant difference between On-prem and Online, the restrictions should be the same.

    I use Get file content-Create file to achieve the purpose of translating files.

    Flow configuration:

    43.PNG

    Flow is successfully run, and the file is successfully created. The file size exceeds 40M.

    The reason for adding Delay is that it takes time to create a file of such a large size, you can set a delay for a certain time, and then observe whether the file was created successfully.

    The file was successfully created and can be opened, as below:

    44.PNG45.PNG

    If you are not using this method, you can give it a try, or provide more details about your Flow configuration, we would provide a proper workaround for you.

     

    Best Regards,

    Barry

  • tmrrow Profile Picture
    4 on at

    Hi Barry,

     

    I was using the File System connectors and the On-Premises Data Gateway in order to access the on-prem file location. (an internal network share). The other side was Sharepoint Online.

    I'll try a 5minute delay and see if that helps. Thanks.

     

     

  • v-bacao-msft Profile Picture
    Microsoft Employee on at

    Hi @tmrrow,

     

    What is your current situation?

    This is my another test result. When the file size exceeds 30M, Get file content will not work properly.

    In conjunction with the previous test of SharePoint-Create file action, the possible file size limit may be due to File system-Get file action.

    48.PNG

    Best Regards,

    Barry

  • GabrielStJohn Profile Picture
    Microsoft Employee on at

    Hey, @tmrrow!

    Thank you for posting on the Flow Community Forum! It appears as though @v-bacao-msft would like some more information in order to further assist you properly with your issue. Please share any additional information that was requested in order to decrease the amount of time that it will take for you to be assisted!

    Thank you for being an active member of the Flow Community!

    -Gabriel
    Flow Community Manager

  • tmrrow Profile Picture
    4 on at

    Hi, I agree that there seems to be a limit on the 'Get file content' action in Flow.
    However I have hit this limit on files just above 22mb which is below 30mb.

    I have a repeatable test involving a 22,710KB file succeeding in 37seconds while a file 26,516KB causes 4 retries on 'Get File Content' and ultimately times out the flow after 10minutes.

     
        "code": 504,
        "message": "BadGateway",
        "status": 504,
        "message": "The request to the on-premises data gateway has timed out.

    Choosing a 49mb file fails as expected with your error.
      "status": 413,
      "message": "The file contains 48.693 megabytes which exceeds the maximum 30 megabytes.
     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 873

#2
Valantis Profile Picture

Valantis 813

#3
Haque Profile Picture

Haque 526

Last 30 days Overall leaderboard