Error: 'Failed to invoke procedure apoc.export.cypher.all: Caused by: org.neo4j.token.api.TokenNotFoundException: Token for id 43' On Attempted Export

Trying to export to CSV using apoc.export.cypher.all but am getting the error:

Failed to invoke procedure apoc.export.cypher.all : Caused by: org.neo4j.token.api.TokenNotFoundException: Token for id 43

using 4.2.2

I'm guessing it's security - related but can't see what other options are missing:

  • dbms.security.procedures.unrestricted=jwt.security.*,apoc.*
  • apoc.export.file.enabled=true

The other odd thing is that it clearly starts the process - an small export file is created but this only holds the CYPHER CONSTRAINT statements. As it has access I can't see why it doesn't then export the remaining statements describing the graphs.

apoc.export.file.enabled=true

Would you be able to share your graph?

Best create this as an APOC github issue.