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 / Failed Converting CSV/...
Power Automate
Answered

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

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

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
    12,115 Super User 2026 Season 1 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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 419

#2
Vish WR Profile Picture

Vish WR 314

#3
David_MA Profile Picture

David_MA 260 Super User 2026 Season 1

Last 30 days Overall leaderboard