Skip to main content

Notifications

Announcements

No record found.

Power Platform integration forum
Under review by Community Managers

Under review

Thank you for your post! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Power Automate Disapproves of my CVS file if base64ToString is used

Posted on by 2
I am attempting a Power Automate tutorial that is intended to read a CSV file into a SharePoint List.  The way it is being done is to create a new Power Automate flow and pick the /Instant cloud flow/ option and choose to
use the /Manually trigger a flow/ as the type.  We set up the first step of the flow to request the input data in the form of a CSV file from the user.
 
Then we add a step.  This step is a Compose Data Operation which uses the base64ToString expression.  The input to the base64ToString() expression, we add the Dynamic Content and I picked /Upload CSV/.
I should mention at this point that my UI is a little different from the UI of the tutorial.  I believe we are using different versions of Power Automate.  The instructor had a button /Upload CSV/ but I had to select this option from a list.
This screen shot shows the code that the generated when the instructor clicked on /Upload CSV/.
 
//
Notice that the generated string contains what seems to be a part: ['contains(collection, value)'] but it is not sure since we only see a small part of this display.
My experience is different, it lacks this /contains/ part:
 
 
//
 
I mention all this because it might have something to do with the error I get.  When I try to test my flow, the error I get says:
InvalidTemplate
Unable to process template language expressions  in action 'CSVData' inputs at line '0' and column '0'.  The template language function 'base64ToString' expects its parameter to ba a string.  The provided value is of type 'Object'.
Please see https://aka.ms/logicexpressions#base64ToString for usage details.
The webpage segment mentioned in the error message ( https://aka.ms/logicexpressions#base64ToString ) has an example where the base64-encoded string, /aGVsbG8=/ is converted to the string /hello/.  This might be my problem.  I am not sure if this csv file is base64.  So, how to I check this and how to I ensure it is converted?  Also, what should I make of the missing part of the command I have mentioned?
 

Helpful resources

Quick Links

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,622 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,354 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans