Read CSV in Power Automate

How to read a CSV file in Power Automate cloud and desktop flows, what each method changes in your data, and where naive parsing breaks down.

Reading a CSV file in Power Automate means turning delimited text into rows and fields that later steps can use. The right method depends on two things: whether you are building a cloud flow or a desktop flow, and how messy your CSV files are. This review covers what each approach does to your data, where it works well, and where it can quietly corrupt values. No hands-on test results were supplied for this article, so the guidance relies on documented behavior and general CSV principles. Run a sample of your own files through any method before you trust it.

Short answer: which approach suits your use

  • Desktop flows (Power Automate Desktop): use the built-in Read from CSV file action. It returns a data table and handles the delimiter, a header row and encoding through its settings. For most desktop automation, this is the simplest reliable option.
  • Cloud flows with simple, predictable files: get the file content, split it into lines and fields with expressions, and map the fields with a Select action. This works when no field contains the delimiter, quotes or line breaks.
  • Cloud flows with real-world exports: if fields can contain commas, quoted text or embedded line breaks, use an approach that understands CSV quoting. Options include an Office Script that parses the file in Excel, or a dedicated parsing connector. Splitting on commas will misread these files.
  • When not to parse at all: if you only need to move, archive or attach the file, keep it as plain text. Parsing adds failure points and has no benefit unless later steps need individual fields.

The main benefit of parsing is structured access to columns, so you can filter, look up or write rows to another system. The main tradeoff is fidelity. A simple split is fast to build but silently breaks on quoted fields. A quote-aware parser is more robust but adds a dependency on a script, a workbook or an external service.

What reading a CSV actually changes

A CSV file is plain text. Commas (or tabs, for TSV) separate fields, and line breaks separate records. Reading it in Power Automate does not change the stored file. It creates a new in-memory structure, either an array of lines and fields in a cloud flow or a data table in a desktop flow. Problems appear in that structure, not in the source file, so they are easy to miss until a downstream step writes bad data.

Watch for a common misunderstanding. The Data Operations action called Create CSV table works in the opposite direction: it builds CSV text from an array. It does not parse an existing CSV file into rows.

Cloud flows: the expression-based pattern

The usual cloud pattern has four steps. Retrieve the file with a storage connector such as OneDrive or SharePoint. Split the content on the line-break character. Skip the header line. Then use Select to split each line on the delimiter and map positions to named properties. The snippet below is illustrative only. The action names must match your flow, and it has not been tested against a specific file.

Lines (Compose):
skip(split(outputs('Get_file_content')?['body'], decodeUriComponent('%0A')), 1)

Select - From: outputs('Lines')
  Name:  split(item(), ',')[0]
  Email: split(item(), ',')[1]

This pattern makes three assumptions you should check against your files: each record sits on exactly one line, the delimiter never appears inside a value, and the file content arrives as text. Depending on the connector and its settings, file content can come back as a base64-encoded object instead of readable text. Inspect the output in the flow's run history before you build expressions on it.

Desktop flows: the Read from CSV file action

Power Automate Desktop includes a dedicated action that reads a CSV file into a data table. Its settings cover the file encoding, whether the first line contains column names, field trimming and the column separator, including custom separators for semicolon- or tab-delimited files. Because the action is designed for CSV, it is generally a better fit than hand-built splitting. Still, confirm how it treats quoted fields and embedded line breaks in your own exports, because this article has no test evidence on those cases.

Where the data stops being trustworthy

These issues follow from how CSV files are commonly produced and how text splitting works. They are not measured results from a particular flow.

Issue | What happens | What to do
Comma inside a quoted value | A naive split breaks one field into two, so every later column shifts | Use a quote-aware parser, or confirm the source never quotes fields
Windows line endings (CR LF) | Splitting on LF alone leaves a hidden CR at the end of the last field | Remove carriage returns before splitting, or split on CR LF
Line break inside a quoted value | One record becomes two broken records | Requires a quote-aware parser
Trailing empty line | An extra empty item causes index errors or blank rows | Filter out empty lines before mapping
Byte order mark at file start | The first header name gains an invisible character and stops matching | Strip it, or map columns by position rather than header text
Regional delimiters | Some locales export with semicolons, so splitting on commas returns one field per line | Confirm the delimiter from a real export
Numbers and dates | Values arrive as text and may use locale-specific formats | Convert explicitly and validate before writing to typed fields

Will the result stay usable after you share or reuse it?

Parsed data is only as usable as its weakest column mapping. If a column shifts by one position, every downstream system receives plausible-looking but wrong values. This is worse than an outright failure because nothing stops the flow. Before writing parsed rows to a list, database or email, add a check: confirm each line has the expected field count, and stop or log any line that doesn't.

If people will read the output, raw CSV pasted into an email or chat message is hard to scan. Screen reader users also hear it as an unbroken run of values and commas. Converting the parsed array into an HTML table, or attaching the original file next to a short summary, usually reads better. This article has no evidence on how specific email clients, chat apps or assistive technologies render these outputs, so check your destination before relying on it.

Keep the original file whenever accuracy matters. A plain-text copy lets you audit a parsing error after the fact, and it is the safest thing to share when recipients will open the data in their own tools.

Third-party parsing connectors

Several vendors offer connectors that parse CSV in cloud flows and handle quoting rules that expressions cannot. They can save significant build time on complex files. They may also require a premium license or a separate subscription, and they may send your file contents to the vendor's service. Their privacy and retention practices cannot be judged from marketing pages. Read each vendor's documented terms before sending sensitive data through them.

Evidence gaps

No confirmed test data, version details, licensing terms or performance measurements were available for this review. Statements about quoted fields, line endings and encoding come from general CSV behavior, not observed runs. Statements about specific actions reflect their documented purpose. Exact action settings, connector output formats and licensing can change, so check current Microsoft documentation and test against a representative sample of your own files.