Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
02-20-2020 12:48 AM
Hello,
I have the apoc jar in the plugins directory and file.cyp in the import directory.
I want to use call apoc.cypher.runFile("file.cyp");
to execute cypher from script file, and i have the configuration as below:
apoc.import.file.enabled=true
dbms.security.procedures.unrestricted=apoc.trigger.*,apoc.meta.*
dbms.security.procedures.whitelist=apoc.coll.*,apoc.load.*,apoc.cypher.*
When i run the call apoc.cypher.runFile("file.cyp");
i have this error:
Failed to invoke procedure `apoc.cypher.runFile`: Caused by: java.lang.RuntimeException: Import from files not enabled, please set apoc.import.file.enabled=true in your neo4j.conf
any help ?
Regards,
Mahdi.
Solved! Go to Solution.
02-24-2020 07:55 AM
Fixed, the version of apoc was not compatible with neo4j version.
I installed the last version apoc-4.0.0.0-all and it works.
02-20-2020 02:03 AM
did you restart the graph after updating the conf ??
02-20-2020 02:05 AM
Yes but i have the same error
02-20-2020 03:47 AM
Check if this property is at multiple places. And if it is in cluster, Make sure this property is added in all the instances and restarted.
Working file for me on neo4j community 3.5.14.
02-20-2020 04:47 AM
it was not in the conf and i add this line so its not in multiple places.
I am with neo4j entreprise 4.0.0 not in cluuster mode
02-24-2020 07:55 AM
Fixed, the version of apoc was not compatible with neo4j version.
I installed the last version apoc-4.0.0.0-all and it works.
All the sessions of the conference are now available online