File - XLSX Read
Type identifier:
file:xlsx:readCategory: File Operations
Description
The File - XLSX Read node reads spreadsheet files (XLSX, CSV, TSV) with configurable parsing options and extracts data as an array of records. Each row becomes an object matching the configured Schema, with columns mapped to properties.
Input Handles
Handle | Type | Description |
|---|---|---|
|
| The spreadsheet file to read. |
|
| (Dynamic) Whether to skip empty lines. |
|
| (Dynamic, XLSX only) Name of the sheet to read. |
|
| (Dynamic, XLSX only) Cell range to read (for example, "A1:D10"). |
|
| (Dynamic, XLSX only) Whether to skip hidden rows. |
|
| (Dynamic, CSV/TSV only) Whether first row is header. |
|
| (Dynamic, CSV only) Field delimiter character. |
Note: Dynamic input handles only appear when the corresponding option is set to dynamic mode.
Output Handles
Handle | Type | Description |
|---|---|---|
|
| Array of records matching the configured Schema. |
|
| (XLSX only) Name of the sheet that was read. |
Configuration Options
Common Options
Option | Type | Default | Description |
|---|---|---|---|
File Format |
|
| Format of the input file. |
Skip Empty Lines |
|
| Skip rows where all cells are empty. |
Date Format |
| - | Format string for parsing date values. |
Schema | Schema config | - | Schema defining the structure of each row. |
XLSX-Specific Options
Option | Type | Default | Description |
|---|---|---|---|
Sheet Name |
| - | Name of the sheet to read (first sheet if omitted). |
Range |
| - | Cell range to read (for example, "A1:D10", entire sheet if omitted). |
Skip Hidden |
|
| Skip rows hidden in the spreadsheet. |
CSV/TSV-Specific Options
Option | Type | Default | Description |
|---|---|---|---|
Header |
|
| Treat first row as column headers. |
Delimiter |
|
| (CSV only) Field delimiter character. |
Behaviour
- Receives a spreadsheet file from the input handle
- Validates file belongs to the current Space
Detects format (XLSX, CSV, or TSV) and applies format-specific parsing:
- XLSX: Supports sheets and ranges
- CSV/TSV: Delimiter-separated values
- Maps columns to Schema properties based on headers
- Validates and converts each row against the Schema
- Returns array of validated records
Dynamic Options
Options can be configured as:
- Literal: Fixed value set in the node configuration
- Dynamic: Value provided via input handle at runtime
Date Handling
Date values in spreadsheets are parsed according to the configured date format or Excel's internal date system for XLSX files.
Examples
Read Customer Data from XLSX
Configuration:
- Format: XLSX
- Sheet Name: "Customers"
Schema:
{ type: "object", properties: { name: { type: "string" }, email: { type: "string" }, created: { type: "date" } } }
Output (data):
[
{ "name": "Alice", "email": "alice@example.com", "created": "2024-01-15" },
{ "name": "Bob", "email": "bob@example.com", "created": "2024-01-16" }
]Import CSV with Custom Delimiter
Configuration:
- Format: CSV
- Delimiter: ";" (semicolon)
- Header: true
Use case: Import European-style CSV files that use semicolons as delimiters.
Read Specific Range
Configuration:
- Format: XLSX
- Range: "B2:E50"
- Skip Hidden: true
Use case: Extract a specific table within a larger spreadsheet, ignoring hidden rows.