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

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Issue with Flow in Tut...
Power Automate
Answered

Issue with Flow in Tutorial: Upload Files to Sharepoint

(0) ShareShare
ReportReport
Posted on by 7

Hello everyone, I am currently participating in the PowerUp program, and am having an early stumbling block in the form of a flow that just won't work as indicated in the tutorial. I am working on this exercise: https://learn.microsoft.com/en-us/training/modules/controls-canvas-apps/upload-file

 

The first stumbling block is that this is outdated info, as there's a new V2 trigger from PowerApps. I think I have sorted this out, but my flow is not executing properly. When I click on the upload button in my app it tries to execute the flow. Monitor shows me the following error: Unable to process template language expressions in action 'Datei_erstellen' 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.'.

 

I have attached a screenshot of the Flow, including the tooltip regarding the 'base64ToBinary' expression. I was following the tutorial 100%, so I am really confused where I must have gone wrong. Any help would be appreciated.

 

Cheers,

 

Andrea

pa-flow.png
Categories:
I have the same question (0)
  • cchannon Profile Picture
    4,702 Moderator on at

    You're trying to 'base64tobinary' a parameter that isn't in your trigger.

     

    Take a look at that line: 

    base64ToBinary(triggerBody()["text_1"])

    It's looking at your Trigger and trying to find a member there called "text_1"

     

    But now look at your trigger:

    cchannon_0-1699887090977.png

     

    There's nothing in there called "text_1". You do have a parameter called "FileContent" though. Try using that instead.

  • Verified answer
    Anchov Profile Picture
    1,986 on at

    It seems the tutorial you're following might be a bit dated. You likely no longer need to use the Base64toBinary function, but there might be other changes to consider. I recommend following Mathew Devaney's tutorial, as it has worked for me recently, is very clear, and uses the new v2 connector.
    https://www.matthewdevaney.com/power-apps-easiest-way-to-upload-files-to-a-sharepoint-document-library/

     


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

    Cheers!
    Rick Hurt

     

  • AndreaStadtfeld Profile Picture
    7 on at

    That's not the fix, unfortunately. The 'text_1' variable comes from the Dynamic Content when I add FileContent to the expression. When I make your suggested change, I get this error:

     

    AndreaStadtfeld_0-1699888577814.png

    I think text_1 is the correct variable.

  • AndreaStadtfeld Profile Picture
    7 on at

    Thanks for the excellent link. Following that blog post I was able to upload to Sharepoint from my canvas app.

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!

Leaderboard > Power Automate

#1
trice602 Profile Picture

trice602 239 Super User 2026 Season 1

#2
David_MA Profile Picture

David_MA 177 Super User 2026 Season 1

#3
Kalathiya Profile Picture

Kalathiya 97 Super User 2026 Season 1

Last 30 days Overall leaderboard