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.

Neo.ClientError.Statement.SemanticError: Cannot merge node using null property value for name

While performing below query in NEO4J getting error.

LOAD csv with headers from "file:///1Skills_data.csv" as Skills
MERGE (mis:MinorSkill {name:Skills.L3})
With Skills
MATCH (ms:MajorSkill {name:Skills.L2}),(mis:MinorSkill {name:Skills.L3})
MERGE (ms)-[r:HAS]->(mis)
RETURN ms,mis

error:- Neo.ClientError.Statement.SemanticError: Cannot merge node using null property value for name

Any suggestion please.

3 REPLIES 3

12kunal34
Graph Fellow

you must have problem with your csv data.could you please check the values of L3 column.

and could you please tell us what output you want after query execution ?

jsmccrumb
Graph Buddy

Along those lines, could you provide the first row of your CSV file?

ameyasoft
Graph Maven

With statement should follow the LOAD statement.

LOAD csv with headers from "file:///1Skills_data.csv" as Skills
With Skills

MERGE (mis:MinorSkill {name:Skills.L3})
MATCH (ms:MajorSkill {name:Skills.L2}),(mis:MinorSkill {name:Skills.L3})
MERGE (ms)-[r:HAS]->(mis)
RETURN ms,mis;