neo4j-contrib / neo4j-apoc-procedures

Awesome Procedures On Cypher for Neo4j - codenamed "apoc"                     If you like it, please ★ above ⇧            

Home Page:https://neo4j.com/labs/apoc

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

The apoc.bolt.* procedures fail together with the apoc.path.subgraphAll one

vga91 opened this issue · comments

See https://neo4j.slack.com/archives/C136J23GE/p1707239672283549

Expected Behavior (Mandatory)

Should return entities without any problem.

Actual Behavior (Mandatory)

Throw an error like:

Failed to invoke procedure `apoc.bolt.load`: Caused by: java.lang.IllegalArgumentException: Cannot convert node<172> of type org.neo4j.driver.internal.InternalNode to AnyValue, classloader=jdk.internal.loader.ClassLoaders$AppClassLoader@5bc2b487, classloader-name=app 

How to Reproduce the Problem

Create a node in a database

CREATE  (rootA:Person {name: 'Keanu Reeves'})

Connect to another database and connect with the first database using the apoc.bolt:

MERGE (rootB:Root {name:'root'})
WITH rootB
call apoc.bolt.load("bolt://username:password@hostFirstDatabase:port","
    MATCH  (rootA:Person {name: 'Keanu Reeves'})
    CALL apoc.path.subgraphAll(rootA, {relationshipFilter:'VIEWED>'})
    YIELD nodes, relationships
    RETURN nodes, relationships,rootA
", {databaseName:'neo4j', virtual: true}) YIELD row
WITH row, rootB
RETURN row

The conversion error will be thrown

Versions

  • OS: OSX
  • Neo4j: 5.16.0
  • Neo4j-Apoc: 5.16.0