Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

apoc.cypher.runFile fails when there is a empty transaction #1262

Closed
Dcanzano opened this issue Jul 22, 2019 · 0 comments · Fixed by #1349
Closed

apoc.cypher.runFile fails when there is a empty transaction #1262

Dcanzano opened this issue Jul 22, 2019 · 0 comments · Fixed by #1349

Comments

@Dcanzano
Copy link
Contributor

Dcanzano commented Jul 22, 2019

Guidelines

Expected Behavior (Mandatory)

apoc.cypher.runFile should be able to tolerate an empty txn

Actual Behavior (Mandatory)

stored proc fails, for example

neo4j> call apoc.cypher.runFile('/home/neo4j/neo4j-enterprise-3.5.5/import/chain.cleanup.cypher');

Failed to invoke procedure apoc.cypher.runFile: Caused by: org.neo4j.cypher.internal.v3_5.util.SyntaxException: Invalid input ':': expected (line 2, column 1 (offset: 1))

How to Reproduce the Problem

Create a file, named runFile.cyp with the following content

:begin
:commit

attempt to use apoc.cypher.runFile();

Specifications (Mandatory)

Currently used versions

Versions

  • OS: Ubuntu 18
  • Neo4j: 3.5.5
  • Neo4j-Apoc: apoc-3.5.0.3.jar
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
1 participant