I am using Desktop 1.6.0 on Linux Arch and the project is using 5.26.4.
I have created a model of my graph in Neo4j Data Importer and generated the Cypher script to the file to load the data from my files. Two node files and three relationship files.
The cypher code looks straight forward and no problems. The generated script creates a param for file_path_root & file_(file name).
:param {
// Define the file path root and the individual file names required for loading.
// Default file locations - Operations Manual
file_path_root: "/home/dean/.config/Neo4j Desktop/Application/projects/project-0969176e-a5c9-4018-94d5-4884f84ae28f/", // Change this to the folder your script can access the files at.
file_0: 'aaaaaa.csv',
file_1: 'bbbbb.csv',
file_2: 'ccccccc.csv',
file_3: 'dddddd.csv',
file_4: 'eeeeeee.csv'
};
After opening terminal and connecting to the project (bin/cypher-shell -a bolt://localhost:7687 -u neo4j -p ***). With the ***.cypher file in the project folder, using the call i terminal:
:source /dean/.config/Neo4j Desktop/Application/projects/project****/***.cypher
returns:
Incorrect numbers of arguments.
Which seems to mean it doesn't like the space in the file's path. OK, I can run the .cypher file from a folder that doesn't have a space in the path. This then returns:
Invalid URL and points to an illegal character in the position of the space in the path.
This is the install path of Neo4j, I can't seem to change that. I've searched came across a solution of replacing the space in the call with %20.
returns:
Invalid URL and no protocol.
How am I supposed to call out these files. From Neo4j Browser you call out file:///aaaaaa.csv. In terminal this gives: Cannot find file.