Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
05-12-2021 03:42 AM
Hello,
When running the following code using a JS driver I get an exception Neo4JError: The transaction has been closed.
await session.run(CALL apoc.cypher.runFile('import.cypher')
);
The import.cypher contains
CREATE(n:Persona {code: 'person_1', name: 'Alexander Kirilov'})
RETURN n;
Please advise
05-13-2021 05:00 AM
There's not enough information to help out here.
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
All the sessions of the conference are now available online