Datasets
Some steps can produce far more rows than fit comfortably in a step's output: a CSV export with a million lines, a big spreadsheet, a large JSON Lines download. When their rows add up to more than about 4 MB, these steps output a dataset instead of a list:
- Parse CSV — any input: text, a file from another step, or a stored file
- Spreadsheet File — reading a sheet
- Transform — an array map over a dataset
- HTTP Request — an NDJSON / JSON Lines response larger than 5 MB
Smaller results stay an ordinary list, so most workflows never see a dataset.
A dataset is the rows kept as a file in the run's temporary storage, plus what you need to work with it without opening the file: the number of rows, the column names and the first rows. The step's output stays small however many rows there are, so the run stays fast and within your plan's output limit. How many rows one step can write to a dataset, and how much temporary disk it can use while writing, depend on your plan (Files and data).
What a dataset looks like
In the run details and the node panel, rows shows the dataset's fields:
{
"rows": {
"fileName": "orders.csv.jsonl",
"contentType": "application/x-ndjson",
"rowCount": 3214557,
"columns": ["id", "email", "total"],
"preview": [
{ "id": 1, "email": "ada@example.com", "total": 42.5 },
{ "id": 2, "email": "alan@example.com", "total": 18 }
],
"pageSize": 1000,
"sizeBytes": 412345678
},
"count": 3214557
}
| Field | Meaning |
|---|---|
rowCount | How many rows the dataset has (the step's count says the same) |
columns | The column names, in order, from the first rows |
preview | The first rows, exactly as stored: up to 20 rows and 32 KB (wide rows mean fewer) |
fileName, contentType | The file the rows are kept in: JSON Lines, one row per line |
pageSize, sizeBytes | How the file is split into pages for reading, and its size |
In expressions
An expression treats a dataset like a list of rows, as far as the rows are loaded:
| Expression | Result |
|---|---|
{{ $nodes['Parse CSV'].rows[0].email }} | A field of the first row (any row in the preview works) |
{{ $nodes['Parse CSV'].rows.length }} | The number of all rows, e.g. 3214557 (same as .count and .rowCount) |
{{ $nodes['Parse CSV'].rows.preview }} | The first rows, as a real list: .preview.map(r => r.email) works |
{{ $nodes['Parse CSV'].rows.columns }} | The column names |
{{ $nodes['Parse CSV'].rows.isDataset }} | true (useful in an If/Else) |
{{ $nodes['Parse CSV'].rows }} | The dataset itself — use this as a Loop's Items |
A row past the preview is an error, not an empty value. rows[25] on a dataset whose preview has 20 rows stops
the step with a message such as:
RangeError: Row 25 isn't available in an expression: The dataset "orders.csv.jsonl" has 3,214,557 rows kept as a
file, and expressions only see the first 20 (rows 0–19, also under .preview). To use every row, loop over the whole
dataset with a Loop step …
List methods such as .map(), .filter() or .join() on the dataset itself fail the same way and point you at
.preview and the Loop step, because running them on the first 20 rows only would quietly give wrong answers. A row
number past the last row is undefined, as for any list.
In a Code step a dataset behaves the same: rows[0], rows.length and rows.preview work, and a
row past the preview throws.
Working with every row
To process all the rows, hand the whole dataset to a step that reads it row by row:
- Loop — set Items to
{{ $nodes['Parse CSV'].rows }}. Set a Batch size (for example 1,000) to get many rows per pass; each pass is one step, and your plan limits the steps per run. - Transform — an array map over the dataset maps every row and gives a new dataset (or a list, when the result is small).
- Spreadsheet File — Write a spreadsheet accepts a dataset as Rows.
Steps that need every row in memory at once (Filter, Sort, Limit, Remove Duplicates, Aggregate, Split Out, Merge and
the data table row steps) stop with a message saying the input is a dataset and to use them
inside a Loop with a batch size instead: in the loop body, {{ $currentItem }} is a list of up to that many rows.
In run logs
Open a step in a run's log and a dataset in its output shows as a card: the row count, columns, size and a table of the first rows. Download all rows (CSV) gives a spreadsheet-friendly file (nested values are written as JSON, and cells that would run as formulas are made safe); JSON Lines gives the rows exactly as stored, one per line. The CSV columns come from the first 1,000 rows. Downloads stream straight to your computer, whatever the size. Once the run's data has been deleted, the card says the dataset is no longer stored; run the workflow again to get its rows.
Where datasets are kept
A dataset's files are stored in your workspace's storage, in the project the run belongs to, and are deleted with the run: when the run's history passes your plan's log retention, when you delete the run, or straight away when the workflow keeps no run history. While they exist, they count towards your storage quota. Pinned data that points at a dataset stops working once that run is deleted; run the step again to get fresh rows.
:::note Runs from before datasets
Runs from older versions of Blokkio may show a large-file result as a plain file reference with a rowCount. Loops
and Transforms read those as before; in expressions, .length gives the row count and reading a row gives the error
above, since those files have no preview.
:::