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.

Importing CSV doesn't work properly

Hey everyone ,

I am using this query to import my CSV file :

LOAD CSV WITH HEADERS FROM 'file:///Contrats2018.csv' AS Contracts FIELDTERMINATOR ';'
CREATE (c:Contrat18 { id:Contracts.contract_id , cpv:Contracts.contract_CPV_3_digits})

And after executing , I find the same number of nodes that I have in my file but for IDs they re just generated by neo4j for my nodes , and it doesn't import my properties .
Help please !!

1 ACCEPTED SOLUTION

exactly ! that's why I added FIELDTERMINATOR ';'

View solution in original post

4 REPLIES 4

Benoit
Graph Buddy

Can you give the result of this query : MATCH (c:Contrat18) RETURN c LIMIT 5 ?

Can you also share the header of your csv ?

Hey Benoit ,

Here is the file csv that I am using
2X_c_cc50c8cf1f784b7554ae8f795dcdf886fa75030f.png
and here is the result after importing in neo4j :

Knowing that I imported other nodes and I have all properties .

Hi mehdi ,

could you please open your file in notepad and share it.
i doubt that it is not ' ; ' separated

exactly ! that's why I added FIELDTERMINATOR ';'