Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
01-23-2020 03:25 AM
I am using a Desktop version of Neo4j. I have imported a csv file and Neo4j somehow detects one column(text datatype) as null inspite of all my values being present. The column contains text data. Has somebody come across this issue. I have just begun exploring Neo4j, would appreciate the help.. Thanks in advance.
01-23-2020 04:51 AM
Hi @aaditmalikayil,
First welcome in our community and please more describe your problems. Maybe here: Null values in csv you found solution for your problem.
01-23-2020 10:44 PM
Hey @maciej.krzywdaa,
First of all, thanks for responding.
I have gone through the link above, but unfortunately I'm not able to find the right solution for my problem. In my case, the column does not have null values. Because of that, the column node in the graph made by neo4j only shows ID values. I am attaching some images that could give you a clear picture.
The red nodes display IDs. But I need the text values from the above column
01-23-2020 11:40 PM
You can configure which property is displayed as the value. Simply click on the red node,
01-23-2020 11:56 PM
hi @Luanne_Misquitta
tried that too..
just a silly doubt. could it be that because this column is my first column in the .csv it is taking it is index ?
Because, I already added an index col and the problem still persists.
01-26-2020 07:53 PM
Oh I see, the text value isn't even on your node. You'll have to provide more details about the format of the csv and how you imported it
01-29-2020 09:08 PM
So, this is my code:
LOAD CSV WITH HEADERS FROM "file:///win.csv" AS line
WITH line
WHERE line.Country is NOT NULL
MERGE (c:Country{Name:line.Country})
MERGE (p:Producer{Name:line.Producer})
CREATE (wn:WineN{name:line.WineName})
CREATE (r:Rating{Name:line.Rating})
CREATE(pr:Price{Name:line.Price})
MERGE (c)-[:has]->(p)
MERGE (p)-[:produces]->(wn)
MERGE (wn)-[:priced]->(pr)
MERGE (wn)-[:rated]->(r)
Also, I noticed that when I used CREATE for the WineName column, i get the error Cannot merge with null. However I did check and didnt find any null/empty cells.
Do tell me if my interpretation is wrong.
Thanks
All the sessions of the conference are now available online