Error when calling `gds.graph.create.cypher` or `algo.dfs.stream`

When calling the following using gds 1.1 and neo4j 3.5.14:

CALL gds.graph.create.cypher(
    'project_name',
	'MATCH (p:Project{name:"project_name"})-[:HAS]->(s:Surface) where s.stable <> 0 return id(s) as id',
	'MATCH (p:Project{name:"project_name"})-[:HAS]->(s:Surface)-[c:CONFIDENCE]->(t:Surface) WHERE c.confidence <= 15.0 RETURN id(s) as source, id(t) as target'
)
YIELD graphName, nodeCount, relationshipCount, createMillis;

I get the error:

Neo.ClientError.Procedure.ProcedureCallFailed
Failed to invoke procedure `gds.graph.create.cypher`: Caused by: java.lang.IndexOutOfBoundsException: index 243

Also the same error for a similar call when using algo 3.5.14:

MATCH (p:Project {name: 'project_name'})-[:HAS_START]->(start:Surface)
CALL algo.dfs.stream(
'MATCH (p:Project{name:"project_name"})-[:HAS]->(s:Surface) where s.stable <> 0 return id(s) as id',
'MATCH (p:Project{name:"project_name"})-[:HAS]->(s:Surface)-[c:CONFIDENCE]->(t:Surface) WHERE c.confidence <= 15.0 RETURN id(s) as source, id(t) as target',
'>',
id(start),
{
  graph: 'cypher'
}
)
YIELD nodeIds

With the error:

Failed to invoke procedure `algo.dfs.stream`: Caused by: java.lang.IndexOutOfBoundsException: index 243

What is wrong here? Each of the MATCH queries works fine outside of the algo or gds call, and this calls work for some projects and not others.

hi @max.prokopenko, did you figure this out? I have the same issue

Hello @nabila.abraham, no I still have this issue, just working around it and hoping I don't see it again at the moment

I have exactly the same issue. Any ideas?

The easiest fix is to upgrade to Neo4j 4.3 (or anything in the 4.x series) and use the 1.6 version of the library.

If you're still running into this bug, and you can't upgrade from Neo4j 3.5, please test it with GDS 1.1.6 (the newest GDS 1.1 series patch).

The algos library, fwiw, is deprecated and no longer supported.