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 Automate / Help needed with base6...
Power Automate
Answered

Help needed with base64tobinary expression

(1) ShareShare
ReportReport
Posted on by 171

Hello everyone,

 

I have created a flow that triggers itself via a Power App. I give my flow a base64 text via PowerApps as a parameter.
In the flow I use a Compose action to convert the base64: base64ToBinary(triggerBody()['text'])

 

I have already checked whether it is actually a base64 and yes, it is. However, the flow always fails with the following error message: "InvalidTemplate. Unable to process template language expressions in action 'Compose' 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 need help with this to solve my problem.

Thanks in advance!

 

Screenshot 2024-07-05 150943.png

Categories:
  • Verified answer
    Nived_Nambiar Profile Picture
    18,138 Super User 2026 Season 1 on at

    Hi @Nico_0710 

     

    as per the error details- i think that string you have provided is not of base64 representation- could you ensure that it follows base64 pattern ?

    https://www.microfocus.com/documentation/enterprise-developer/ed60/ES-WIN/BKCJCJDEFNS009.html

     

    Thanks & Regards,

    Nived N 🚀

    LinkedIn: Nived N's LinkedIn
    YouTube: Nived N's YouTube Channel
    Blog: Nived Nambiar's Blogs

    🔍 Found my answer helpful? Please consider marking it as the solution!
    Your appreciation keeps me motivated. Thank you! 🙌

     

  • Nico_0710 Profile Picture
    171 on at

    I fixed it,

    I had an unnecessary part in my base64 string. I created a variable in Power Automate to cut that off and now its working fine.

     

    Thank you.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 432

#2
11manish Profile Picture

11manish 313 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 154

Last 30 days Overall leaderboard