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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / How to calculate the p...
Power Automate
Unanswered

How to calculate the proper content-length of the body?

(0) ShareShare
ReportReport
Posted on by 174

Hey all,

 

in my case, I am struggeling with the update attachments on SharePoint API. I receive the attached error message. I guess I need some encoding, decoding in order to calculate the right Content Length. Who can share some docs on how to calucalte this, any hint is welcome... 

 

"innerError": {
	status ": 500,
	"message": "Bytes to be written to the stream exceed the Content-Length bytes size specified.\r\nclientRequestId: :{id}",
	"source": ":{source}",
	"errors": []
}

 

 

ApiTrader_0-1693322751240.png

 

Categories:
I have the same question (0)
  • Verified answer
    ApiTrader Profile Picture
    174 on at

    its just funny... each time after I post my question I will find the solution... 😛

     

    length(string(base64(triggerBody()?['file']?['content'])))

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard