- Reference
- Version ยท 6.0.2
- Change Automation Reference
trim-load-data-file-header
Last updated: November 23, 2026
trim-load-data-file-header removes spaces around the column names in the header row of a CSV file that loadData or loadUpdateData reads.
Uses
A CSV file is read exactly as written, so a header such as id, first names a column called " first", with a leading space. That column name does not match a column definition named first, and the database rejects it. Set trim-load-data-file-header to true to trim the header names before Liquibase matches them, or remove the spaces from the file.
Default: false
Example: trim-load-data-file-header
liquibase --trim-load-data-file-header=true update
Syntax
You can set this parameter in the following ways:
Option | Syntax |
Liquibase properties file (defaults file) |
|
Global flow file argument |
|
Global CLI parameter |
|
JVM system property (JAVA_OPTS environment variable) |
|
Liquibase environment variable |
|