Fixing neo4j-admin Import Error: Missing START_ID Header

Résumé

This Neo4j community discussion addresses a common error encountered when using neo4j-admin database import with compressed CSV files. The issue involves a 'Missing header of type START_ID' warning despite correct file formatting. This thread is essential for developers struggling with bulk import configurations and header mapping in Neo4j 2026.08.1.

fairknight-43 OP

Running with the image neo4j:2026.08.1-community-trixie

sfarnsworth@myvm:~/project$ gunzip -c ./data/foo/HAS_AUTHOR_rel_header.csv.gz 
:START_ID,:END_ID,:TYPE
START_ID,END_ID,TYPE

sfarnsworth@myvm:~/project$ gunzip -c ./data/foo/HAS_AUTHOR_rel.csv.gz  | head -n 3
START_ID,END_ID,TYPE
af8,af8-0,HAS_AUTHOR
f1d,8f1d-1,HAS_AUTHOR

Then I run this

'bin/neo4j-admin database import full '
'--dry-run=true '
'--path-pattern-style=glob '
'--nodes=Document=import/Document_node.csv.gz,import/Document_node_header.csv.gz '
'--nodes=Person=import/Person_node.csv.gz,import/Person_node_header.csv.gz '
'--relationships=HAS_AUTHOR=import/HAS_AUTHOR_rel.csv.gz,import/HAS_AUTHOR_rel_header.csv.gz '

And I get this

WARNING: Using incubator modules: jdk.incubator.vector
Neo4j version: 2026.08.1
Checking the contents of the following files:
Nodes:
  [Document]:
  /var/lib/neo4j/import/Document_node.csv.gz
  /var/lib/neo4j/import/Document_node_header.csv.gz

  [Person]:
  /var/lib/neo4j/import/Person_node.csv.gz
  /var/lib/neo4j/import/Person_node_header.csv.gz

Relationships:
  HAS_AUTHOR:
  /var/lib/neo4j/import/HAS_AUTHOR_rel.csv.gz
  /var/lib/neo4j/import/HAS_AUTHOR_rel_header.csv.gz


Available resources:
  Total machine memory: x
  Free machine memory: x
  Max heap memory : x
  Max worker threads: x
  Configured max memory: x
  High parallel IO: x

- ----------------------------------------------------
Command Failed
Error importing csv file.

Missing header of type START_ID, among entries [START_ID, END_ID, TYPE] in '/var/lib/neo4j/import/HAS_AUTHOR_rel.csv.gz'

I'm not sure how either HAS_AUTHOR file could possibly be wrong given my read of the documentation.

fairknight-43 OP

I have tried several permutations of including or omitting the second line of the header file, and including or omitting a header in the data file (HAS_AUTHOR_rel.csv.gz). I never get desired behavior.

fairknight-43 OP

I'm done working for today, but I copied this question as-is to ChatGPT, and it said that the header file needs to be listed first. I'll try that tomorrow.

If that's the solution, I think this should be easier to infer from the documentation, or maybe give a relevant warning in the output.

goldenquartz-17

any thoughts on this? Tagged under DevOps

fairknight-43 OP

What ChatGPT said was the solution.

goldenquartz-17

So you did find a solution>?

Les dernières actus de Neo4j