Please post the full error message with stacktrace. Also, I think usually when you use runFile you need to specify some config to tell your system where to find the file, and this could be going wrong. Paste the appropriate neo4j config for cypher that you put, and try running the query in the browser too. I suspect that the file is not being found or something similar to this