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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Flows fails on differe...
Power Apps
Answered

Flows fails on different user logins

(0) ShareShare
ReportReport
Posted on by 1,119

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.

 

venka91_0-1656760657810.png

 

 

When i create a file, the flow looks good.

 

venka91_1-1656760716699.png

 

Can anyone please help what is wrong ?

Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    154,926 Most Valuable Professional on at

    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.

  • venka91 Profile Picture
    1,119 on at

    i am calling a flow from powerapps. And this is the flow step.

     

    venka91_1-1656927993060.png

     

     

    File content in flow i am writing the formula as :

    base64ToBinary(variables('Base64Audio'))

     

     

  • Verified answer
    WarrenBelz Profile Picture
    154,926 Most Valuable Professional on at

    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

    WarrenBelz_0-1657443308151.png

    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

     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 534

#2
WarrenBelz Profile Picture

WarrenBelz 416 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 306

Last 30 days Overall leaderboard