I am trying to load a CSV file, but getting below error:
Neo.ClientError.Statement.SemanticError
Cannot merge the following node because of null property value for 'objectId': (:Object {objectId: null})
Query:
LOAD CSV WITH HEADERS
FROM 'Dropbox' AS row
FIELDTERMINATOR '|'
MERGE (o:Object {objectId: toInteger(row.ObjectId)})
SET
o.objectName = row.ObjectName,
o.objectApp = row.ObjectApp,
o.objectType = row.ObjectType
Sample Data:
ObjectId | ObjectApp | ObjectName | ObjectType | ObjectDDM | DBCreate | DBRead | DBUpdate | DBDelete | ETBT |
---|---|---|---|---|---|---|---|---|---|
1 | ABC | ADA001 | P | ABCD-INKASSO | Y | ||||
2 | ABC | ADA02N01 | N | ABCD-INKASSO | Y | ||||
3 | ABC | ADA02P01 | P | ||||||
4 | ABC | ADA10N06 | N | ABCD-UMSATZ | Y | ||||
5 | ABC | ADAA001 | P | ||||||
6 | ABC | ADAA0010 | P | Y | |||||
7 | ABC | ADAA002 | P | ||||||
8 | ABC | ADAA003 | P | ABCD-BEARBSCHR | Y | Y | |||
9 | ABC | ADAA009 | P | Y | |||||
10 | ABC | ADAA01 | P | ABCD-BEARBSCHR | ABCD-INKASSO | Y |
Initially I was below issue:
Neo.DatabaseError.Statement.ExecutionFailed
At Dropbox @ position 96538 - there's a field starting with a quote and whereas it ends that quote there seems to be characters in that field after that ending quote. That isn't supported. This is what I read: 'environment":'
For which I added
FIELDTERMINATOR '|'
Which resolve the error, but now I am facing null property error.
I am trying to create Nodes for all the object names.
Please suggest.
Thanks