Note that there are some explanatory texts on larger screens.

plurals
  1. PONeo4j exception when inserting data
    primarykey
    data
    text
    <p>I'm trying to insert bulk data into Neo4j using a script. After a while the script breaks with the following Exception.</p> <pre><code>PHP Fatal error: Uncaught exception 'Everyman\Neo4j\Exception' with message 'Unable to execute query [400]: Headers: Array ( [Content-Length] =&gt; 3031 [Content-Type] =&gt; application/json; charset=UTF-8 [Access-Control-Allow-Origin] =&gt; * [Server] =&gt; Jetty(6.1.25) ) Body: Array ( [message] =&gt; An identifier is used with different types. The identifier ` UNNAMED2` is used both as Relationship and as Collection [exception] =&gt; CypherTypeException [fullname] =&gt; org.neo4j.cypher.CypherTypeException [stacktrace] =&gt; Array ( [0] =&gt; org.neo4j.cypher.internal.symbols.SymbolTable.add(SymbolTable.scala:33) [1] =&gt; org.neo4j.cypher.internal.symbols.SymbolTable$$anonfun$checkNoOverlapsExist$1.apply(SymbolTable.scala:47) [2] =&gt; org.neo4j.cypher.internal.symbols.SymbolTable$$anonfun$checkNoOverlapsExist$1.apply(SymbolTable.scala:46) [3] =&gt; scala.collection.immutable.Map$Map1.foreach(Map.scala:109) [4] =&gt; org.neo4j.cypher.internal.symbols.Symbol in phar:///var/www/zomato9/application/library/neo4jphp.phar/lib/Everyman/Neo4j/Command.php on line 116 </code></pre> <p>The same query works from console and restarting the script from the same point where exception occurred works again for a while until it fails again. Catching the Exception and making the script sleep for few seconds does not break the script.</p> <p>Any suggestions on what might be happening here?</p> <p>UPDATE: Added a sample query</p> <pre><code>START a = node:?("?:?"), b = node:?("?:?") MATCH a-[c1:ACTIVITY_LIST*]-&gt;z, z-[r1:ACTIVITY_LIST]-&gt;y WHERE z.TIMESTAMP &gt;= '.$time.' AND y.TIMESTAMP &lt; '.$time.' CREATE n = {?}, clist = {COMMENT_ID: ''}, a-[:IN_?]-&gt;n, n-[:OUT_?]-&gt;b, n-[:COMMENT_LIST]-&gt;clist, z-[:ACTIVITY_LIST]-&gt;n, n-[:ACTIVITY_LIST]-&gt;y DELETE r1 RETURN n; </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload