cancel
Showing results for 
Search instead for 
Did you mean: 

Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.

Problem with apoc procedures

madiskou
Graph Buddy

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.

1 ACCEPTED SOLUTION

madiskou
Graph Buddy

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.

View solution in original post

5 REPLIES 5

did you restart the graph after updating the conf ??

madiskou
Graph Buddy

Yes but i have the same error

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.

madiskou
Graph Buddy

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

madiskou
Graph Buddy

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.