In a Windows environment, I\'m trying to load a .csv file with statement:
LOAD CSV WITH HEADERS FROM \"file:///E:/Neo4j/customers.csv\" AS row
In addition after you run the line, you can analyze what is going wrong in the code section to get a better understanding
For the ubuntu system, I placed the file in /usr/lib/neo4j
which helped me solved the issue. On every other location, i tried giving full permissions(777) but the problem remains the same. After going through another stackoverflow post, i realized that the file should be kept in neo4j directory.
For macOS Mojave v 10.14.5
Actually, I had to uncomment dbms.directories.import=import
from ~/Library/Application Support/Neo4j Desktop/Application/neo4jDatabases/database-e2dd2a9c-d450-4639-861b-1e7e42b56b31/installation-3.5.5/conf/neo4j.conf
and restart the service. Then it worked. All files has to be placed in import
directory.
Run command LOAD CSV WITH HEADERS FROM 'FILE:/<yourCSV>.csv' as l return l