FlowmageDocs

Parse

Turns CSV text — a spreadsheet export — into rows the flow can read.

Settings

SettingWhat it is
CSV textThe text of the file — File — Read hands it over with this name.
Delimiter"auto" or "," or ";" or "\t" or "|"
First row is a headerOn: every row is an object keyed by the header names. Off: every row is a list of values.
EncodingUTF-8 drops a byte-order mark. Latin-1 reads the text as bytes, for older exports.
Convert typesNumbers and true/false become real values when they round-trip exactly. Leading zeros and long numbers always stay text.
Technical details
KeyValue
textany JSONits `{{ }}` must give a string
delimiter"auto" or "," or ";" or "\t" or "|", by default "auto"
headerstrue/false, by default true
encoding"utf-8" or "latin1", by default "utf-8"
convertTypestrue/false, by default false

Output

FieldType
rowsarray
headersColumn namesarray
rowCountnumber
delimiterDelimiter usedstring
Sample output, and the expression for each field
  • delimiter","
  • headers
    • [0]"name"
  • rowCount1
  • rows
    • [0]
      • name"Ada"

Errors

When a step of this node stops a run, the run page shows a code. Look it up:

Example step

The step as a flow file holds it. Replace each value in <…>.

{
  "config": {
    "convertTypes": false,
    "delimiter": "auto",
    "encoding": "utf-8",
    "headers": true,
    "text": "<csv text>"
  },
  "label": "Parse",
  "type": "csv.parse",
  "version": 1
}