Articles in this section

Create a Data loader flow

Data loader is a flow whose source is a file you upload — a CSV, JSON, XLSX, or XML file from your computer or network — rather than an application. Use it for a one-time import into NetSuite, Salesforce, or any RESTful application: upload the file, tell integrator.io how to parse it, map its fields to the destination, and run. This article covers creating the flow and the settings that are specific to Data loader; parsing options and mapping are explained in the articles it links to.

A Data loader flow can't include a lookup step, and Data loader can't read files from an FTP server — upload the file directly.

Create the flow

  1. Go to Build build-icon.png > Flows, and then select Create > Load data.
  2. In Flow builder, select Add source. The Create export panel opens.
  3. Under How would you like to parse the file?, select the File type: CSV (or any delimited text file), JSON, XLSX, or XML. The type you choose decides how the file is parsed, whatever its extension — a .txt or .dat file is parsed as CSV if you choose CSV.
  4. In Sample file (that would be parsed), select Choose file and upload the file to load. It can't exceed 5 MB.
  5. Set the parsing options for the file type (see the next section), and then select Send in the Preview pane to check the Parsed output.
  6. Optionally, set How would you like to group and sort records?; see Sort and group records.
  7. Select Save & close, and then add the destination as for any flow; see Create a flow.
  8. Map the file's fields to the destination's; see Map data with Mapper 2.0.
  9. Run the flow; see Run a flow.

Parsing options by file type

File type Options
CSV Column delimiter (comma, pipe, semicolon, asterisk, space, tab, or any characters you enter), Row delimiter (CR, CRLF, LF, or custom), Trim spaces, Number of rows to skip (header rows that don't describe columns), File has header, and Disable quote validation and strip enclosing quotes. To load a record that spans several rows, see Load records that span several rows. For complex files, CSV parser helper > Launch opens the full editor.
JSON Resource path — the dot-notation path to the records, such as item.description; leave it empty when the records are at the root.
XLSX File has header. To load a record that spans several rows, see Load records that span several rows.
XML Resource path in slash notation, such as /item/description, and a Parse strategy: Automatic converts the XML to JSON as-is, Custom lets you trim spaces, strip newlines, prefix attribute names, rename the text node, choose list nodes, and include or exclude nodes. XML parser helper opens the full editor.

File exports use the same parsers; for each option in depth, see Export files from an FTP server.

Load records that span several rows

Files exported from accounting and order systems often spread one record across several rows — a journal entry with a row per line, or a sales order with a row per item — with the header fields repeated on every row. Parsed one record per row, the file produces one destination record per line: a seven-line journal entry becomes seven single-line entries, and NetSuite rejects each of them with The amounts in a journal entry must balance.

To load each group of rows as one record:

  1. Open the file and delete any blank or total rows at the end. Each one parses as a record of its own and breaks the grouping.
  2. In the parsing options, select File has header so the columns can be grouped by name.
  3. Expand How would you like to group and sort records? and, in Group records by fields, enter the column whose value identifies the record — Subsidiary for a journal entry, or an order number. Rows with the same value become one record that holds all of its lines; see Sort and group records.
  4. Map the grouped record's lines to the destination's line items; see Map data with Mapper 2.0.

Transform the records

To rename, drop, or restructure fields before mapping, select Transformation on the source step; see Transform data in integrator.io.