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.

apoc.cypher.runSchemaFile not working

I'm running version 3.5.12 and am trying to use APOC to load in some data on database startup. The database starts and the log file shows it processing my startup cypher file but the nodes are not created. Inlining the same cypher in the config file directly works fine. Any suggestions?

neo4j.conf file entry:
apoc.initializer.cypher=CALL apoc.cypher.runSchemaFile("file:///c:/neo4j/conf/BrewBeer.cypher");

BrewBeer.cypher file contents:
MERGE (a:Beer{Style: 'IPA'});

debug.log file entry:
[a.c.CypherInitializer] successfully initialized: CALL apoc.cypher.runSchemaFile("file:///c:/neo4j/conf/BrewBeer.cypher");

1 ACCEPTED SOLUTION

runSchemaFile is for indexes and constraints. Not for data.
That's runFile afaik

View solution in original post

1 REPLY 1

runSchemaFile is for indexes and constraints. Not for data.
That's runFile afaik