Ledger Assistant/Tracing/
csv-import
csv-import
ID
Name
Start Time
import_workflow
6/11/2026, 4:17…
Why does my upload keep failing when the first row of the CSV is empty? I get the same error every time.
The upload fails because the importer reads the first row as your column names, and a blank row gives it nothing to name the columns with.
With no keys to map values onto, the parser stops before it reaches a data row. Check the header before parsing the rest of the file:
header = next(reader, None) if header and any(h.strip() for h in header): rows = list(reader) else: raise ValueError("The first row has no column names.")
Strip the blank line, or skip it before parsing, and the import goes through.