Failed to invoke procedure `gds.graph.project`: Caused by: java.lang.UnsupportedOperationException: Loading of values of type String is currently not supported

  • which OS do you use? Win 11
  • neo4j version, desktop version, browser version: Latest Freely available
  • what kind of API / driver do you use: Direct in Neo4J Browser
  • Plugins: Graph Data Science Library.

My data available in a csv:

scene_id,obj_type,lane
1,1,1
1,2,3
2,3,2
3,4,1
3,1,3
4,1,2
4,3,1
5,2,2
6,4,3
6,3,1
6,1,2

Query in Cypher for loading and creating nodes:

LOAD CSV WITH HEADERS FROM 'file:///modified_data.csv' AS row

MERGE (image:Image {scene_id: toFloat(row['scene_id'])})

MERGE (object:Object {obj_type: toFloat(row['obj_type'])})

MERGE (lane:Lane {direction: toFloat(row['lane'])})

MERGE (image)-[:CONTAINS]->(object)

MERGE (object)-[:IN_LANE]->(lane)

Query for graph projection which is causing the error:

CALL gds.graph.project(
'imgraph1',
{
Image: {properties: 'scene_id},
Object: {properties: 'obj_type'},
Lane: {properties: 'direction'}
},
['CONTAINS', 'IN_LANE']
)

Error:
Failed to invoke procedure gds.graph.project: Caused by: java.lang.UnsupportedOperationException: Loading of values of type String is currently not supported