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 / Unable to process temp...
Power Automate
Unanswered

Unable to process template language expressions in action 'Create_file' 'The template language function 'dataUriToBinary' expects its parameter to be formatted as a valid data URI.

(0) ShareShare
ReportReport
Posted on by

Hi,

 

I'm trying to upload files to sharepoint with the use of dataUriToBinary().

I managed to get the data uri from powerapps into flow with JSON but when I try to create a file with the function it gives me this error. 

 

I tried checking if the uri didn't come through correctly but when I paste it into notepad it doesn't seem to be cut short or missing any data

Link to testdata uri paste:

https://pastebin.com/VYR9debx

 

What could be going wrong here? Is this not the binary data I need to send?

 

Mikkiel_0-1629461426654.png

 

Categories:
I have the same question (0)
  • Ellis Karim Profile Picture
    11,691 Super User 2025 Season 2 on at

    Thanks for pasting the test data! This data (plain text CSV file) does not need to be encoded in order to save to SharePoint. I was able to decode the data and save it as a file in SharePoint:

    ekarim2020_0-1629662369811.png

    I took the encoded data

    ekarim2020_1-1629662540997.png

    Then decoded the data using the decodeBase64 function, then created a file in SharePoint:

    ekarim2020_3-1629662599949.png

    Here is the sample output:

    ekarim2020_4-1629662668845.png

    Ellis
    ____________________________________
    If I have answered your question, please mark the post as Solved.
    If you like my response, please give it a Thumbs Up.

     

     

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

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard