Load a File into a Table
Load a File into a Table reads a CSV, spreadsheet or XML file, or a table of a
SQLite database, and writes its rows straight into a table, reporting counts rather than the rows themselves.
You find it on the node picker’s Storage shelf.
The node has one input handle and one output handle.
When to use this instead of parsing
Section titled “When to use this instead of parsing”Read a File as Data followed by Table Store Insert does the same job, and for a few hundred rows it is the right answer: you can see the rows between the two steps.
It stops being the right answer at scale, because those rows become node output. A twenty-thousand-row price list is then written into the run log twice and the run report cannot open it. This node never emits the rows.
Configuration
Section titled “Configuration”

The form shows Table, File, Insert or update and Column map first. Match on and the settings for how the file is read (the sheet, the header row, the record element, the row limit, the number language, the date order and stopping on a bad row) sit under More settings.
| Field | Type | Default | Description |
|---|---|---|---|
Table (tableStoreId) | string ✦ (required) | — | The table to load the file into. |
File (source) | string ✦ (required) | — | The file to load: a stored file, an inbound email attachment, or raw text. |
Insert or update (mode) | one of insert, upsert ✦ (optional) |
insert |
Whether every row is new, or rows already present should be updated. |
Match on (matchOn) | string ✦ (optional) | — | When updating: the unique column that decides whether a row already exists. Needed only when the table has more than one unique column. |
Column map (columnMap) | header rows ✦ (optional) | — | How the file’s columns line up with the table’s: the file’s column name on the left, the table’s on the right. |
Sheet (sheet) | string ✦ (optional) | — | Which sheet of a workbook, or which table of a SQLite database, by name or by position. Leave empty for the first one. |
Header row (headerRow) | integer ✦ (optional) | — | Which row holds the column names, counting from 1. Set 0 for a file with no header row. |
Record element (recordElement) | string ✦ (optional) | — | For XML: the element that holds one record, e.g. BEGROTINGSREGEL. |
Row limit (maxRows) | integer ✦ (optional) | — | The most rows to load. Defaults to the platform limit. |
Number language (numberLocale) | string ✦ (optional) | — | The language the file writes its numbers in, e.g. nl for 1.289,50 or en for 1,289.50. |
Date order (dateOrder) | one of DMY, MDY, YMD ✦ (optional) |
— | Which way round the file writes its dates: DMY (31-12-2024), MDY (12/31/2024) or YMD (2024/12/31). |
Stop on a bad row (failOnBadRow) | boolean ✦ (optional) | — | Fail when a row cannot be read, rather than loading the rest. |
Fields marked ✦ accept expressions.
Try this node — run it once against your own workspace, with your credentials, without building a flow first.
source accepts a stored file, an inbound email attachment, or raw text. See
File Details for the ways a file can be named. The
file is recognised the way Read a File as Data
recognises it, so a semicolon CSV from Dutch Excel loads whatever type it was
stored or sent as.
In the node’s settings, File picks a stored file. Type part of its path, and
the field lists the matching files of every file store in your workspace as
Store › path, the newest first, 50 at most. A picked file is saved as its
object id. For an email attachment, raw text or a file another node produced,
click Insert a value ({x}) and write it there. A source typed in before the
field became a picker stays as it was.
Mapping columns
Section titled “Mapping columns”columnMap lines the file’s column names up with the table’s: the file’s name
on the left, the table’s on the right. Leave it empty when they already match.
A file column you did not map goes into the table column of the same name. If
there is none, it is matched ignoring case and surrounding spaces, against the
column’s name and then its label, so a header Prijs finds a column named
prijs, and a header Artikel finds a column labelled Artikel. A header that
could mean two columns is left unmatched rather than guessed.
The two directions are treated differently, on purpose:
- A file column with no matching table column is ignored, and reported. Real
exports carry columns nobody modelled, and refusing the file over them would
make the node useless against anything a client actually sends. The output
lists them under
unmappedColumns, and lists the table columns no file column reached underunfilledColumns, so a misspelled header shows up there instead of as an empty column. - Mapping onto a column the table does not have is an error. That is a typo, and a column silently missing from a load is invisible afterwards.
Map a column to an empty value to drop it on purpose.
Insert or upsert
Section titled “Insert or upsert”Insert or update (mode) decides what happens to a row that is already there.
insertwrites every row as new.upsertupdates rows that match and inserts the rest.
The match is made on the columns marked unique on the table, read from the table’s own definition rather than asked for here. A table with no unique column is refused in upsert mode rather than silently duplicating every row on each scheduled run.
In insert mode, a row whose unique value is already in the table fails the
node, and nothing is written. The error names the column and the value, so you
can switch to upsert or take the row out of the file.
In either mode, a file that gives one unique value to two of its rows fails the node before anything is written, naming the value and both rows: Rows 3 and 41 of the file both have code “A1”. Rows are counted from the first row of data, under the header. Only you can say which of the two is right, so the node does not keep either one. (Table Store Upsert, whose rows usually come from another node rather than a file, keeps the first instead and says so on the run.)
Numbers written the local way
Section titled “Numbers written the local way”numberLocale says how the file punctuates its numbers: nl reads 1.289,50
as one thousand two hundred and eighty-nine and a half, en reads 1,289.50 the
same way. Getting this wrong is quiet and expensive, because both files parse.
Dates written the local way
Section titled “Dates written the local way”Date order (dateOrder) says which way round the file writes its dates, for
the table’s date, date-time and timestamp columns:
DMYreads01/02/2024(or01-02-2024,01.02.2024) as 1 February.MDYreads the same text as 2 January.YMDreads2024/02/01.
Set it for any file whose dates are not ISO (2024-02-01). 01/02/2024 is a
real date either way round, and nothing in the file says which. Each date is read
strictly: 31/02/2024 is a bad row that names the row and the column, not
2 March. A date written as ISO is read as ISO whatever this says.
Left empty, only ISO dates are read. Any other date is a bad row that names the
row and the column, and tells you to set Date order: with nothing to say which
way round 01/02/2024 is, guessing would store the wrong date without a word.
Output
Section titled “Output”{ "tableStoreId": "01K1...", "mode": "upsert", "read": 1204, "written": 1204, "inserted": 37, "updated": 1167, "rejected": 2, "rejects": [ { "row": 88, "reason": "8 fields, but the header declares 7." } ], "unmappedColumns": ["Leverancier"], "unfilledColumns": []}With Stop on a bad row (failOnBadRow) on, the default, a bad row fails the
node and nothing is written. Turn it off to load the other rows and read the bad
ones from rejects.
inserted and updated are derived from the table’s row count either side of
the write, because the database reports how many rows were affected and not
which branch each one took. They are exact for the ordinary case and approximate
if something else writes the same table at the same time.
Limitations
Section titled “Limitations”- The row ceiling is 25 000 by default. A file with more rows is refused rather than truncated: a table half-loaded from a file you believe loaded whole is a green run over wrong data. A file of exactly the limit loads.
- Sheet positions count from 1. There is no sheet
0, and a workbook is read from the first sheet when you leavesheetempty. - The rows are not available to later nodes. If you need to see them, parse the file instead.
Related
Section titled “Related”- Write a Table to a File: the other direction.
- Read a File as Data: the same read, with the rows in hand.
- Table Store Upsert: the row-by-row equivalent.
- Tables: defining the table and its unique columns.
- Files: creating a store, retention, versions and sharing.