neo4j - Importing relationships result in error message "Mixing specified and unspecified group belongings in a single import isn't supported -


i'm trying import ~10 million rows neo4j database. i'm able import nodes labels , takes less 5 seconds. however, when i'm trying import relationships it's failing.

users.csv header

id,"first_name","last_name","email","phone1","phone2","password",is_locked,"created_at","updated_at" 

roles.csv header

"id","tenure_start","tenure_end" 

user_roles.csv header

:start_id(user),:end_id(role) 

this command i'm using import:

bin/neo4j-import --into data/databases/graph.db --multiline-fields=true \ --nodes:user import/users.csv \ --nodes:role import/roles.csv \ --relationships:has_role import/user_roles.csv 

as bruno , tom pointed out. structure must be

users.csv

id:id(user-id),"first_name","last_name","email","phone1","phone2","password",is_locked,"created_at","updated_at" 

roles.csv

id:id(role-id),"tenure_start","tenure_end" 

user_roles.csv

:start_id(user-id),:end_id(role-id) 

Comments

Popular posts from this blog

html - How to set bootstrap input responsive width? -

javascript - Highchart x and y axes data from json -

javascript - Get js console.log as python variable in QWebView pyqt -