I'm struggling a lot trying to LOAD csv file on a daily schedule...
I've created a file with the script like in neo4j browser ( :auto load csv from ...)
then I tried to execute cypher-shell and it doesn't work - "unknown command :auto".
so, after reading, i tried "apoc.periodic.iterate('call apoc.load.csv("file....)) and also doesn't work - also tried in browser... it says:
"Failed to invoke procedure 'apoc.periodic.iterate': Caused by: java.lang.RuntimeExcpetion: import from files not enabled, please set apoc.import.fileenabled=true in your apoc.conf."
I created a file "apoc.conf" and put it in the conf folder , near neo4j.conf
in the conf file i wrote the line: "apoc.import.file.enabled=true", restart the service and doesn't help.
I don't know what to do else.
Any ideas ?
Thanks
yes, i have index.
Maybe the server resources is not enough?
I have 16GB RAM
Also, in the conf file i set the memory heap to 16GB and other memory things to high
The cypher-shell worked for me and i made some progress...
Now, i want to load the data and handle errors with problematic rows.
I found some queries to do this, but again, have errors.
I'm trying in browser, not cypher-shell
so, i tried to simplify the query (without error handling) and came up with a shorter query ' just to check if it works, and it doesn't. still fail to invoke "apoc.periodic.iterate...", complaining on apoc.conf...
I'm using Neo4j 5.16, and also apoc plugins: core and extended 5.16. Also tried in Neo4j 5.20.
Here is the query: CALL apoc.periodic.iterate(
** "CALL apoc.load.csv('file:///TEST/Persons-Full.csv',**
** {header:true}) YIELD map AS row",**
** "MERGE (s:Person {idNumber: row.idNumber})",** {batchSize:10000, parallel:false} )
The Error: Failed to invoke procedure apoc.periodic.iterate: Caused by: java.lang.RuntimeException: Import from files not enabled, please set apoc.import.file.enabled=true in your apoc.conf
I created a file: apoc.conf
and put 1 line: apoc.import.file.enabled=true