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 / Parsing a large CSV file
Power Automate
Suggested Answer

Parsing a large CSV file

(0) ShareShare
ReportReport
Posted on by 8
I am trying to parse a large CSV file (about 100,000 rows) but am having trouble getting the flow to complete. My first iteration of this flow was built with all "Compose" actions instead of variables so that concurrency could be turned on, but even with the concurrency turned up to 20, the flow was still not completing in over 24 hours. 
 
For the second iteration of the flow, I started using variables so that I could process the CSV in batches of 5,000 rows using the take(skip()) method: 
 
take(skip(outputs('SplitByNewLine'), variables('ChunkMulitplier')), variables('BatchSize'))
 
For each row that gets processed, I increment a "NumChunksProcessed" variable.
 
ChunkMultiplier = NumChunksProcessed * BatchSize, where BatchSize = 5,000. 
 
I have the "Apply to each CSV" control inside a "Do until" control. The "Do until" condition is process these batches of CSV rows until NumChunksProcessed =  number of CSV lines divided by the BatchSize. However, the steps inside the "Do until" control only run twice, even though they should run 20 times (100,000 / 5,000 = 20).
 
Does anyone have any advice on the processing large CSV files in chunks? Is 100,000 too many rows for Power Automate to handle?
Categories:
I have the same question (0)
  • VictorIvanidze Profile Picture
    13,079 on at
  • Suggested answer
    takolota1 Profile Picture
    4,980 Moderator on at
    You can parse a CSV to JSON (even with in-data commas) with a few standard actions with something like this template: https://community.powerplatform.com/galleries/gallery-posts/?postid=189733b3-bea9-41b3-bc01-ec0fa209005d
     
    Or if you are looking for something even more advanced & have access to Azure then you can use this Azure Function App that has a CSV parser in it:

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 605

#2
Valantis Profile Picture

Valantis 340

#3
11manish Profile Picture

11manish 284

Last 30 days Overall leaderboard