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 / Parse CSV with Comment...
Power Automate
Unanswered

Parse CSV with Comments in file

(0) ShareShare
ReportReport
Posted on by 2

Hi All,

---First time posting here, so if I lack information or posted in a wrong location please let me know---

I'm working with a CSV file that is being emailed in to us from a vendor and I'm attempting to Parse this CSV file into our SQL server for use with Power Bi.  I was able to successfully parse the CSV file, however in some of the files I found commas that are throwing off the parse process, and this is where I've been stuck.  Where there is a cell with a comma in it I know the cell is wrapped with quotations (Ex.  "this is, an example"), and I haven't successfully found resolution here.  Conceptually my thought is to break the array into individual arrays ("child arrays"), find the object with a quotation, removing the quotations & comma, and then rebuild the "master" array and continue the process, but I haven't gotten this theory to work & I'm about to give up & move to Powershell.  Any solutions, insight, advice here?  Below is a screenshot of the process without the comma removal portion.  I will also note the data will always have 8 columns, but the row count will be dynamic.

Also note:  I'm working in Power Automate online version (not desktop) and I'm trying to do this with only Power Automate & not purchase a 3rd party connector,

 

JRadd_0-1671137614927.png

Thank you

 

Categories:
I have the same question (0)
  • JRadd Profile Picture
    2 on at

    Adding a note here - The Compose function at the top of the screenshot is converting the CSV attachment from Base64 to String, I was then appending this to an array which was indicating a length of 1.

     

    Instead I split the outputs of Compose, and then took the length of that output & am now getting a correct count of array elements.  Working on a Do-Until loop with that.

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