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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Failed Converting CSV/...
Power Automate
Unanswered

Failed Converting CSV/Text File (via Get Attachment(V2)) to JSON Object using a Filter Array Action

(0) ShareShare
ReportReport
Posted on by

Hi!

 

I'm trying to create a flow that will get the attachment file (CSV) received via e-mail and apply a filter to get certain values on several columns before I put them on a SharePoint List.

So I got the error below for the Filter Array action using this Expression: 

json(split(base64ToString(outputs('Get_Attachment_(V2)')?['body/contentBytes']),outputs('New_Line')))


Error Details:

Unable to process template language expressions in action 'Filter_array_–_Convert_to_usable_form' inputs at line '0' and column '0': 'The template language function 'json' expects its parameter to be a string or an XML. The provided value is of type 'Array'. Please see https://aka.ms/logicexpressions#json for usage details.'.

 

JCast_0-1642928736101.png

 

Categories:
I have the same question (0)
  • Verified answer
    Ellis Karim Profile Picture
    11,681 Super User 2025 Season 2 on at

    Please see: Power Automate: How to parse a CSV File to create a JSON array

    "There are no built in actions in Power Automate to Parse a CSV File. There are external connectors which can do this for you, but this blog post will cover how to Parse a CSV in Power Automate without the use of any external connectors."

    The flow in the above post is a very simple flow can be easily recreated. 


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

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard