Re: [Neo4j] LOAD CSV: Ignore missing values.

321 views
Skip to first unread message

Michael Hunger

unread,
Mar 13, 2015, 5:04:51 PM3/13/15
to ne...@googlegroups.com
you have to be careful with typos:

USING PERIODIC COMMIT
LOAD CSV WITH HEADERS FROM 'file:/Users/sunitj/Neo4j/IMG/Staging/multiGene_scaffold_testRun2.tsv' AS line FIELDTERMINATOR '\t'
WITH line
WHERE line.Sci_Name IS NOT NULL
....
MERGE (org: Organism {name:LOWER(line.SciName)})

the header column is actually line.Sci_Name with an underscore

Am 13.03.2015 um 15:57 schrieb Sunit Jain <sun...@umich.edu>:

Hi
I'm trying to load a tab-delimited data set with some missing values to a neo4j database. I tried following Mike Hunger's blog on "LOAD CSV into Neo4j quickly and successfully", but I still get the following error:

LoadCsvStatusWrapCypherException: Cannot merge node using null property value for name (Failure when processing URL 'file:/Users/sunitj/Neo4j/IMG/Staging/multiGene_scaffold_testRun2.tsv' on line 2. No rows seem to have been committed. Note that this information might not be accurate.)


Any ideas what I might be doing wrong?

---------------------------
Mac OS X 10.10.2
RAM: 20GB
Intel core i7 processor
Neo4j v2.1.7
JVM 1.8

--
You received this message because you are subscribed to the Google Groups "Neo4j" group.
To unsubscribe from this group and stop receiving emails from it, send an email to neo4j+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Sunit Jain

unread,
Mar 18, 2015, 5:07:58 PM3/18/15
to ne...@googlegroups.com
I was able to correct it. Thanks!
Reply all
Reply to author
Forward
0 new messages