cancel
Showing results for 
Search instead for 
Did you mean: 

Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.

EncoderException failed to write outbound message

Hello,

I'm using the Java neo4j driver, and I'm trying to call the apoc.refactor.mergeNodes function, but I keep running into this error:

org.neo4j.driver.internal.shaded.io.netty.handler.codec.EncoderException: Failed to write outbound message: RUN "CALL apoc.refactor.mergeNodes($nodes, {properties: 'discard', mergeRels:true}) YIELD node RETURN count(*)

The param I'm passing in is a List<Value>: {nodes=[[node<#########>, node<#########>, node<#########>], [...], [...], ...]}

Any tips on what I'm doing wrong?

Currently trying to debug:

@Override
public Integer execute(Transaction tx) {
List results = tx.run(cypher, parameters("nodes", params)).list();
System.out.println("Results " + results.get(0));
return 1;
}

Currently running this alongside liquibase, so it's kinda hard to debug compiled jar file

1 REPLY 1

You cannot send nodes as parameters, you need to send their id's or business keys and look them up again.

Nodes 2022
Nodes
NODES 2022, Neo4j Online Education Summit

All the sessions of the conference are now available online