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.

Handle corrupt data in neo4j while importing

12kunal34
Graph Fellow

Hey ,

i am importing data from a csv file in a loop .it is taking one record in a time and importing it.
i have some dummy data in csv like /,-,'',""
how i can handle it while importing.??

2 REPLIES 2

ameyasoft
Graph Maven

Post one line from your .csv file for testing.

ameyasoft
Graph Maven

Solution:

FOREACH(ignoreMe IN CASE WHEN line.x <> y THEN [1] ELSE END |

//write your code

)

Here y is equal to say "/"
I recently posted this solution to a topic "CSV column with null values"