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 / Using Split() on CSV f...
Power Automate
Answered

Using Split() on CSV file from SharePoint causing error

(0) ShareShare
ReportReport
Posted on by 76

Hi,

 

I was trying to use the split function to split CSV file content by commas.

The issue is that when I pass in the file content I get the following error:

"Unable to process template language expressions in action 'Split_CSV_into_array' inputs at line '0' and column '0': 'The template language function 'split' expects its first parameter to be of type string. The provided value is of type 'Object'."

 

The function I am using is below:

split(outputs('Get_ITP_Data_File_Content')?['body'], decodeUriComponent('%0D%0A'))
 
The file content is coming from the Get File Content With Path SharePoint action.
I have tried parsing the file content through Base64ToString first but get the same error from the Base64ToString function.
 
Thanks
Categories:
  • Verified answer
    Rhiassuring Profile Picture
    8,692 Moderator on at

    Hi there, 

     

    I tried out what you were trying and had the same issue.

     

    This is what worked for me:

     

     

     

    First Compose: 

    decodeBase64(outputs('Get_file_content_using_path')?['body/$content'])
     
     
    Second Compose: 
    split(outputs('Translate_Content_to_CSV'), ',')
     

    Rhiassuring_0-1680223537824.png

  • MFEProjects Profile Picture
    76 on at

    Thanks that worked great.

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 289

#2
11manish Profile Picture

11manish 282 Super User 2026 Season 2

#3
Henil Profile Picture

Henil 119

Last 30 days Overall leaderboard