I am trying to import the data using bin/neo4j-admin database import full command with 2 node files with header files and 1 relationship with header file.
But facing error that we can't use :ID for more than 1 column. Can't we use more than one columns as primary key while importing using bulk load?
Tried:
CSV files I have used in command.
node1.csv
node1_header.csv
node2.csv
node2_header.csv
relation.csv
relation_header.csv
node1.csv data having a primary key with more than one propery(columns).
So I added :ID for those columns in node1_header.csv file.
Issue faced:
`java.lang.IllegalStateException: There are multiple :ID columns, but they are referring different groups`
Expectating the following:
My data having 6 columns as Unique key. I have to specify those columns as Unique key in node1_header file.
Note: I can create `UNIQUE` constarint from the UI using Cypher query. Problem while using only `neo4j-admin database import full` from command line.
Per the Neo4j Operations Manual here:
So if you are using a version of Neo4j 5.3+ then you should be able to declare "composite" node ids for the bulk import tool in your node header CSV files like this:
people.csvrelationships.csvYou could also create a named "ID Space" using multiple properties, see the documentation for more examples: https://neo4j.com/docs/operations-manual/current/tools/neo4j-admin/neo4j-admin-import/#import-tool-multiple-ids