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 / Issue with creating ex...
Power Automate
Unanswered

Issue with creating excel file in SharePoint via HTTP.

(0) ShareShare
ReportReport
Posted on by 2

Hello everyone,

 

I currently have a script that converts an Excel file to a Base64 string and sends it to SharePoint via HTTP received trigger. The trigger is successful and the value is parsed correctly.

 

However, when using Base64tobinary and Create File, the resulting file is corrupt. Examining the input I can see that /n is being added to the file content string. For example:

 
{
  "$content-type": "application/octet-stream",
  "$content": "UEsDBBQABgAIAAAAIQA0fpDGiQEAAC4GAAATAAgCW0NvbnRlbnRfVHlwZXNdLnhtbCCiBAIo\noAAC"
}
 
 
I'm no sure if that is the issue or just a quirk of how things are displayed in Run History. If I write the value received to a txt file in sharepoint, and then convert the contents of the text file from base 64 using python, the generated Excel file opens just fine.
 
Any suggestions?
Categories:
I have the same question (0)
  • KindaClueless Profile Picture
    2 on at

    I've now also tried adding a Base64 encoded string to a static variable and using base64tobinary function within create file, same result. I know for a fact that it is a valid Base64 string but it looks like the base64tobinary expression or create file is somehow changing the string. 

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 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard