Hi there,
I am trying to upload a Audio File that is recorded by the user to sharepoint library. This is working for me as i am the creator of the app and sharepoint library. But when other user records the message and save, Flow fails. I have verified the permission and my users have access to create a file in the sharepoint library. All users have Contribute permission in sharepoint library.
Flow error message shows as :
Unable to process template language expressions in action 'Create_file' inputs at line '0' and column '0': 'The template language function 'base64ToBinary' was invoked with a parameter that is not valid. The value cannot be decoded from base64 representation.'.
When user creates a file the flow as below.
When i create a file, the flow looks good.
Can anyone please help what is wrong ?
Solved! Go to Solution.
Hi @venka91 ,
I must have missed your post - I have tested a sound example here and have this OnStop and it works perfectly
With(
{
wJSON: With(
{
wJSONI: JSON(
Self.Audio,
JSONFormat.IncludeBinaryData
)
},
Mid(
wJSONI,
Find(
",",
wJSONI
) + 1,
Len(wJSONI) - Find(
",",
wJSONI
) - 1
)
)
},
StoreSound.Run(
wJSON,
"TestSound1.wav"
)
)
then the Flow
Note you need to "Ask in Power Apps" in the Compose function first, delete that and replace with the code shown
Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.
Visit my blog Practical Power Apps
Hi @venka91 ,
Can you please include (in Text) the flow run code, in particular the JSON code where you are converting the file and also the base64ToBinary expression from your Flow.
i am calling a flow from powerapps. And this is the flow step.
File content in flow i am writing the formula as :
Hi @venka91 ,
I must have missed your post - I have tested a sound example here and have this OnStop and it works perfectly
With(
{
wJSON: With(
{
wJSONI: JSON(
Self.Audio,
JSONFormat.IncludeBinaryData
)
},
Mid(
wJSONI,
Find(
",",
wJSONI
) + 1,
Len(wJSONI) - Find(
",",
wJSONI
) - 1
)
)
},
StoreSound.Run(
wJSON,
"TestSound1.wav"
)
)
then the Flow
Note you need to "Ask in Power Apps" in the Compose function first, delete that and replace with the code shown
Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.
Visit my blog Practical Power Apps
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
User | Count |
---|---|
200 | |
100 | |
61 | |
59 | |
58 |
User | Count |
---|---|
254 | |
164 | |
90 | |
79 | |
70 |