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 / Error 'InvalidContentR...
Power Automate
Answered

Error 'InvalidContentRangeHeader' when creating SharePoint file with extension

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi,

I have a strange issue with Power Automate. When using the action to create a file in SharePoint, with the file extension .docx:

Filecreation.PNG

 

InvalidContentRangeHeader. The response to partial content upload request was not valid. The returned range header value 'bytes=0-91607' is not in the expected range of '0-89363' with unit set to 'bytes'.
 

Capture.PNG

 

But the file is created properly, only the flow fails. If I remove the .docx extension in the file name field, it works without any issue. The same type of set of actions is used in another flow and it works well. Any idea?

 

thank you

Categories:
I have the same question (0)
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    I have the exact same problem 😞

     

    About ½ year ago I build a flow that runs smooth and with no errors. I needed the same flow on another site collection and builded up the new flow exactly like the old flow, but it is making the same error, like yours, but the files is created anyway. 

    FlowError.PNG

     

    I need to continuing using the flow to update metadata, but that is not possible when the flow is failing :(. Could this be a bug?

     

    /Frank

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    It works with .doc for me, but this is not what I want.

    Same for me, other flows can run with no issue, looks indeed like a bug.

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    It is also a problem with Excel files. This is total crazy. Ask Microsoft and they say it is a feature!!! 😠

     

    /Frank

  • jcustancers Profile Picture
    13 on at

    I am seeing the same issue.  Flow fails but file created successfully.   This is kind of a problem that should be fixed.  I guess in the mean time i can add a check to be sure the file is there and notify me if it isn't, otherwise i'd need to check each run manually.

  • E Linton Profile Picture
    21 on at

    I'm also having this problem, and it works fine in my dev environment - I only got the error today when I deployed the flow to Test.  Does anyone have any idea how to work around it?

     

    ** edited to add that it works if I change the extension to doc instead of docx, but I need to convert the file from word to pdf later and that doesn't work with a .doc extension 😞

  • pnepal Profile Picture
    13 on at

    anyone figured out a solution to this yet? I am having same issues

  • Verified answer
    Community Power Platform Member Profile Picture
    Microsoft Employee on at

    check this article out.  I did what they suggest and it works https://powerusers.microsoft.com/t5/Building-Flows/Flow-Fails-on-Create-File-step/td-p/593639

     

    Be nice if all these questions and answers were in one place! 

  • E Linton Profile Picture
    21 on at

    Thank you I'll try that - I did notice that Microsoft says there is a support issue regarding Sharepoint in Europe so had assumed that was what was causing the issue!

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    That did it for me @Anonymous  - THX a lot 😎

     

    /Frank

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 April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 959

#2
Valantis Profile Picture

Valantis 872

#3
Haque Profile Picture

Haque 589

Last 30 days Overall leaderboard