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.

CSV import error

I am trying to import a csv file using following script:

LOAD CSV WITH HEADERS FROM 'file:///import.csv’ AS line
CREATE (n:Node {ID:line.ID, Name:line.Name, Definition:line.Definition, DeviceOS:line.DeviceOS, Service:line.Service, Section: line.Section})
WITH n, line
CALL apoc.create.addLabels(n,[line.Label1, line.Label2]) YIELD node
WITH node
RETURN count(node)

But got error as below, please help.
Neo.ClientError.Statement.SyntaxError
Neo.ClientError.Statement.SyntaxError: Unexpected end of input: expected '', ANY or ''' (line 6, column 19 (offset: 344))
"RETURN count(node)"
^

1 REPLY 1

Had a typo, solved. Thanks