Neo.ClientError.Transaction.TransactionHookFailed on a merge query

(Dave) #1

I am getting an error when trying to run a merge query via the javascript driver the query is

MERGE (p:Product {_id: $_id}) ON CREATE SET p = $newItem ON MATCH SET p = $newItem RETURN p

the error is as below

{ Neo4jError
    at captureStacktrace (...neo4j-driver/lib/v1/result.js:199:15)
    at new Result (...neo4j-driver/lib/v1/result.js:72:19)
    at Session._run (...neo4j-driver/lib/v1/session.js:116:14)
    at (...neo4j-driver/lib/v1/session.js:95:19)
  code: 'Neo.ClientError.Transaction.TransactionHookFailed',
  name: 'Neo4jError' }

All other queries it's just this one.

Any ideas anyone?

EDIT: Forgot to add the logs show nothing, both debug.log and neo4j.log