cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Regular Visitor

Receiving 'InvalidContentRangeHeader' when saving file to sharepoint library using powerautomate: File is created but flow fails with this message.

I am receiving 'InvalidContentRangeHeader' when saving file to sharepoint library using powerautomate: File is created but flow fails with this message.

 

The flow is triggered by list item creation, the flow checks for attachments, and if true will iterate through them, get the file content, create a folder in the library based on metadata, then use the Create file method to save that file to the library. Everything works, but the flow ends in failure.  The document is created and can be opened.   In this case the file type is a word document (.docx).

 

Full Error:

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

 

File Content:

 

{
"$content-type": "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
"$content": "UEsDBBQABgAIAAAAIQA3Lma82AEAADAMAAATAAgCW0NvbnRlbnRfVHlwZXNdLnhtbCCiBAIooAACAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA....(TRUNCATED)"
}

1 REPLY 1
Highlighted
Microsoft
Microsoft

Re: Receiving 'InvalidContentRangeHeader' when saving file to sharepoint library using powerautomate: File is created but flow fails with this message.

Dear Partner,

Same issue has been reported in different thread, can you please open a case with Microsoft to take it forward.

https://powerusers.microsoft.com/t5/Building-Flows/Error-InvalidContentRangeHeader-when-creating-Sha...

 

Regards,

Mohamed Sanuj Basheer

 

 

Helpful resources

Announcements
firstImage

Super User Program Update

Three Super User rank tiers have been launched!

firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

firstImage

Join the new Power Virtual Agents Community!

We are excited to announce the launch of Power Virtual Agents Community. Check it out now!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

Top Solution Authors
Users online (5,499)