Database: Import CSV to table

Import a CSV file into a database table.

Help Centre › Building Processes

Import a CSV file into a database table.

Add it to a process

In the process designer, open the Add step tab. Find Import CSV to table under Database › Bulk & Import/Export, or type its name in the search box, and drag it onto the canvas.

Fields

FieldRequiredWhat it does
File pathYesEnter the file path, or use a variable such as {folders::desktop::path}\file.txt.
VariableYesName of the variable where the result will be stored Default: imported_rows.
Connection nameYesConnection name
Table nameYesThe database table name
DelimiterNoThe CSV delimiter character Choices: Comma (,), Pipe (|), Semicolon (;), Tabs (\t). Default: ,.
Batch sizeNoThe number of rows to insert per batch Default: 1000.
First row contains headersNoThe first row of the CSV contains column headers Default: on.

What it gives back

  • {imported_rows} – Number of rows imported

See all Database steps.

Errors

ErrorDescription
File not foundThe specified CSV file does not exist at the given path
Table not foundThe specified table does not exist in the database
Column mismatchThe CSV columns do not match the table columns

Tips

  • Ensure CSV column names match the database table column names exactly
  • Use has_header=false for headerless CSV files – columns will be mapped by position
  • Use a semicolon delimiter for European-format CSV files

Related functions

Get started

See it working on your own data

Everything documented here ships with the platform – try the document tools free, or have your first automation working in 7 days.