I am following a tutorial to upload the base64 of a file uploaded from a PowerApp in to SharePoint using the create file automation. When I trigger the flow I get the following reason for failure:
Unable to process template language expressions in action 'Create_file' inputs at line '1' and column '8013': 'The template language function 'base64ToBinary' was invoked with a parameter that is not valid. The value cannot be decoded from base64 representation.'.
I have checked the expression (base64ToBinary(triggerBody()['Createfile_FileContent'])) and its exactly how the tutorial shows
Solved! Go to Solution.
Hi @philkky12 :
I've made a test but did not encountered the problem you mentioned.Here is my test for your reference:
Do you want to upload the photo taken over the phone to the SharePoint library?
If so,I've made a test for your reference:
1\Add a camera control(Camera1)
2\Create a flow('PowerAppV2->Compose,Createfile')
/*This flow's trigger is PowerAppV2*/
3\Add a button and set it's OnSelect property to:
Set(Thepic,JSON(Camera1.Photo,JSONFormat.IncludeBinaryData));
Set(Base64Only,Mid(Thepic,Find(",",Thepic)+1,Len(Thepic)-Find(",",Thepic)-1));
'PowerAppV2->Compose,Createfile'.Run("ThePic.jpg",Base64Only)
TheResult
I think these links will help you a lot:
Best Regards,
Bof
Hi @philkky12 :
I've made a test but did not encountered the problem you mentioned.Here is my test for your reference:
Do you want to upload the photo taken over the phone to the SharePoint library?
If so,I've made a test for your reference:
1\Add a camera control(Camera1)
2\Create a flow('PowerAppV2->Compose,Createfile')
/*This flow's trigger is PowerAppV2*/
3\Add a button and set it's OnSelect property to:
Set(Thepic,JSON(Camera1.Photo,JSONFormat.IncludeBinaryData));
Set(Base64Only,Mid(Thepic,Find(",",Thepic)+1,Len(Thepic)-Find(",",Thepic)-1));
'PowerAppV2->Compose,Createfile'.Run("ThePic.jpg",Base64Only)
TheResult
I think these links will help you a lot:
Best Regards,
Bof
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
Announcing a new way to share your feedback with the Power Automate Team.
Learn to digitize and optimize business processes and connect all your applications to share data in real time.
User | Count |
---|---|
5 | |
3 | |
2 | |
2 | |
2 |