Neo4j Version: 5.19.0
I'm using LOAD CSV to import some data in to Neo4j from CSV files.
I'm able to do it when I put the CSV files inside /var/lib/neo4j/import
, but I haven't been able to import CSV files when they're outside of this folder.
I've changed the following setting in neo4j.conf
:
#server.directories.import=/var/lib/neo4j/import
server.directories.import=/home/user/Desktop
I have also changed this setting:
dbms.security.allow_csv_import_from_file_urls=true
But I keep getting the following error:
Cannot load from URL 'file:///filename.csv': Couldn't load the external resource at: file:///filename.csv
Interestingly, even after changing this setting and doing sudo service neo4j restart
, the LOAD CSV command will still seem to only want to pick up CSV files from the /var/lib/neo4j/import
folder (even though I've changed the setting).
Where might I be going wrong?