Hi,
I am puzzling over this exception in my logs and am not sure what is causing this because when I check the db after this, the node is present.
Here is the Cypher statement:
start
n=node:units(id={id}),
newType=node:types(id={newTypeId}),
newGroup=node:groups(id={newGroupId})
match
(g)<-[oldgroup?:has_group]-(n)-[old:has_type]->(oldType)
create (newGroup)<-[:has_group]-(n)-[:has_type]->(newType)
set
n.name={name}, n.uniqueId={uniqueId}
delete old, oldgroup
Params:
{id=21, newGroupId=3, name=Desc Chiller 1, newTypeId=11, uniqueId=Chiller 1_P1}
Exception:
Caused by: org.neo4j.graphdb.NotFoundException: Relationship[34] not found.
at org.neo4j.kernel.impl.core.NodeManager.getRelationshipForProxy(NodeManager.java:561) ~[neo4j-kernel-1.8.jar:1.8]
at org.neo4j.kernel.InternalAbstractGraphDatabase$3.lookupRelationship(InternalAbstractGraphDatabase.java:628) ~[neo4j-kernel-1.8.jar:1.8]
at org.neo4j.kernel.impl.core.RelationshipProxy.delete(RelationshipProxy.java:62) ~[neo4j-kernel-1.8.jar:1.8]
at
org.neo4j.cypher.internal.mutation.DeleteEntityAction.org$neo4j$cypher$internal$mutation$DeleteEntityAction$$delete(DeleteEntityAction.scala:54) ~[neo4j-cypher-1.8.jar:1.8]
at org.neo4j.cypher.internal.mutation.DeleteEntityAction.exec(DeleteEntityAction.scala:35) ~[neo4j-cypher-1.8.jar:1.8]
at org.neo4j.cypher.internal.mutation.DeleteEntityAction.exec(DeleteEntityAction.scala:30) ~[neo4j-cypher-1.8.jar:1.8]
at
org.neo4j.cypher.internal.pipes.ExecuteUpdateCommandsPipe.org$neo4j$cypher$internal$pipes$ExecuteUpdateCommandsPipe$$exec(ExecuteUpdateCommandsPipe.scala:52) ~[neo4j-cypher-1.8.jar:1.8]
at org.neo4j.cypher.internal.pipes.ExecuteUpdateCommandsPipe$$anonfun$org$neo4j$cypher$internal$pipes$ExecuteUpdateCommandsPipe$$executeMutationCommands$1$$anonfun$apply$1.apply(ExecuteUpdateCommandsPipe.scala:43) ~[neo4j-cypher-1.8.jar:1.8]
at org.neo4j.cypher.internal.pipes.ExecuteUpdateCommandsPipe$$anonfun$org$neo4j$cypher$internal$pipes$ExecuteUpdateCommandsPipe$$executeMutationCommands$1$$anonfun$apply$1.apply(ExecuteUpdateCommandsPipe.scala:43) ~[neo4j-cypher-1.8.jar:1.8]
at scala.collection.TraversableLike$$anonfun$flatMap$1.apply(TraversableLike.scala:200) ~[scala-library-2.9.1-1.jar:na]
at scala.collection.TraversableLike$$anonfun$flatMap$1.apply(TraversableLike.scala:200) ~[scala-library-2.9.1-1.jar:na]
at scala.collection.LinearSeqOptimized$class.foreach(LinearSeqOptimized.scala:59) ~[scala-library-2.9.1-1.jar:na]
at scala.collection.immutable.List.foreach(List.scala:45) ~[scala-library-2.9.1-1.jar:na]
at scala.collection.TraversableLike$class.flatMap(TraversableLike.scala:200) ~[scala-library-2.9.1-1.jar:na]
at scala.collection.immutable.List.flatMap(List.scala:45) ~[scala-library-2.9.1-1.jar:na]
at org.neo4j.cypher.internal.pipes.ExecuteUpdateCommandsPipe$$anonfun$org$neo4j$cypher$internal$pipes$ExecuteUpdateCommandsPipe$$executeMutationCommands$1.apply(ExecuteUpdateCommandsPipe.scala:43) ~[neo4j-cypher-1.8.jar:1.8]
at org.neo4j.cypher.internal.pipes.ExecuteUpdateCommandsPipe$$anonfun$org$neo4j$cypher$internal$pipes$ExecuteUpdateCommandsPipe$$executeMutationCommands$1.apply(ExecuteUpdateCommandsPipe.scala:43) ~[neo4j-cypher-1.8.jar:1.8]
at scala.collection.LinearSeqOptimized$class.foldLeft(LinearSeqOptimized.scala:111) ~[scala-library-2.9.1-1.jar:na]
at scala.collection.immutable.List.foldLeft(List.scala:45) ~[scala-library-2.9.1-1.jar:na]
at
org.neo4j.cypher.internal.pipes.ExecuteUpdateCommandsPipe.org$neo4j$cypher$internal$pipes$ExecuteUpdateCommandsPipe$$executeMutationCommands(ExecuteUpdateCommandsPipe.scala:43) ~[neo4j-cypher-1.8.jar:1.8]
at org.neo4j.cypher.internal.pipes.ExecuteUpdateCommandsPipe$$anonfun$createResults$1.apply(ExecuteUpdateCommandsPipe.scala:35) ~[neo4j-cypher-1.8.jar:1.8]
at org.neo4j.cypher.internal.pipes.ExecuteUpdateCommandsPipe$$anonfun$createResults$1.apply(ExecuteUpdateCommandsPipe.scala:34) ~[neo4j-cypher-1.8.jar:1.8]
at scala.collection.TraversableLike$$anonfun$flatMap$1.apply(TraversableLike.scala:200) ~[scala-library-2.9.1-1.jar:na]
at scala.collection.TraversableLike$$anonfun$flatMap$1.apply(TraversableLike.scala:200) ~[scala-library-2.9.1-1.jar:na]
at scala.collection.LinearSeqOptimized$class.foreach(LinearSeqOptimized.scala:59) ~[scala-library-2.9.1-1.jar:na]
at scala.collection.immutable.List.foreach(List.scala:45) ~[scala-library-2.9.1-1.jar:na]
at scala.collection.TraversableLike$class.flatMap(TraversableLike.scala:200) ~[scala-library-2.9.1-1.jar:na]
at scala.collection.immutable.List.flatMap(List.scala:45) ~[scala-library-2.9.1-1.jar:na]
at org.neo4j.cypher.internal.pipes.ExecuteUpdateCommandsPipe.createResults(ExecuteUpdateCommandsPipe.scala:34) ~[neo4j-cypher-1.8.jar:1.8]
at org.neo4j.cypher.internal.pipes.EmptyResultPipe.createResults(EmptyResultPipe.scala:28) ~[neo4j-cypher-1.8.jar:1.8]
at org.neo4j.cypher.internal.pipes.EmptyResultPipe.createResults(EmptyResultPipe.scala:24) ~[neo4j-cypher-1.8.jar:1.8]
at org.neo4j.cypher.internal.pipes.CommitPipe.createResults(CommitPipe.scala:36) ~[neo4j-cypher-1.8.jar:1.8]
at org.neo4j.cypher.internal.executionplan.ExecutionPlanImpl$$anonfun$5$$anonfun$apply$3.apply(ExecutionPlanImpl.scala:104) ~[neo4j-cypher-1.8.jar:1.8]
at org.neo4j.cypher.internal.executionplan.ExecutionPlanImpl$$anonfun$5$$anonfun$apply$3.apply(ExecutionPlanImpl.scala:104) ~[neo4j-cypher-1.8.jar:1.8]
at org.neo4j.cypher.PipeExecutionResult.immutableResult(PipeExecutionResult.scala:37) ~[neo4j-cypher-1.8.jar:1.8]
at org.neo4j.cypher.EagerPipeExecutionResult.<init>(EagerPipeExecutionResult.scala:44) ~[neo4j-cypher-1.8.jar:1.8]
at org.neo4j.cypher.internal.executionplan.ExecutionPlanImpl$$anonfun$5.apply(ExecutionPlanImpl.scala:104) ~[neo4j-cypher-1.8.jar:1.8]
at org.neo4j.cypher.internal.executionplan.ExecutionPlanImpl$$anonfun$5.apply(ExecutionPlanImpl.scala:102) ~[neo4j-cypher-1.8.jar:1.8]
at org.neo4j.cypher.internal.executionplan.ExecutionPlanImpl.execute(ExecutionPlanImpl.scala:34) ~[neo4j-cypher-1.8.jar:1.8]
at org.neo4j.cypher.ExecutionEngine.execute(ExecutionEngine.scala:55) ~[neo4j-cypher-1.8.jar:1.8]
at org.neo4j.cypher.ExecutionEngine.execute(ExecutionEngine.scala:58) ~[neo4j-cypher-1.8.jar:1.8]
at org.neo4j.cypher.javacompat.ExecutionEngine.execute(ExecutionEngine.java:86) ~[neo4j-cypher-1.8.jar:1.8]
Thanks
Luanne