Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
07-30-2020 09:52 AM
We are upgrading from Neo4j 3.5 to 4.X.
In version 3.5 we used to use the following command to import data into a new database:
neo4j-admin.bat import -f neo4j_config_import.txt
Where the neo4j_config_import.txt
would look like:
--database=myneo4j.db
--delimiter=|
--max-memeory=95%
--report-file=neo4j_report.txt
--nodes:Label1 "label1header.csv,label1_nodes.*.csv"
--nodes:Label2 "label2header.csv,label2_nodes.*.csv"
--relationships:REL1 "rel1header.csv,rel1_edges.*.csv"
--relationships:REL1 "rel2header.csv,rel2_edges.*.csv"
When running the following line :
neo4j-admin.bat import --additional-config neo4j_config_import.txt
We get the following error:
Missing required option '--nodes=[[:]...=]'
In Neo4j import documentation their is no example for a --additional-config
Can anyone share a valid import config file?
Thx
07-30-2020 11:19 AM
its --additional-config=somefile.txt
--additional-config is the option, then = then the filename
https://neo4j.com/docs/operations-manual/4.1/tools/import/options/
08-06-2020 11:24 PM
Thx @david.rosenblum for your reply -
I've added the '=' sign - but still getting the same error:
neo4j-admin.bat import --additional-config=neo4j_config_import.txt
Error
Missing required option '--nodes=[<label>[:<label>]...=]<files>'
We have tried various formats inside the config file - but without success e.g.:
(this worked in version 3.x)
--nodes:Label1 "label1header.csv,label1_nodes.*.csv"
or
--nodes=Label1="label1header.csv,label1_nodes.*.csv"
or
--nodes=Label1 "label1header.csv,label1_nodes.*.csv"
Do you have a valid example to share?
01-12-2022 06:54 AM
Did you got the solution as I am facing the same issue when upgraded to 4.x version
All the sessions of the conference are now available online