在构建NODES的时候出现以下问题,求各位大神帮忙解答。
发布于 1 个月前 作者 loktarjason 108 次浏览 来自 问答

本人在构建NODES的时候,使用的是LOAD CSV的方式,但是报了以下错误:

Neo.ClientError.Statement.SyntaxError: Type mismatch: expected Node but was Map (line 4, column 207 (offset: 306))
"MERGE (p:credited_clients {id:line.mobile,name:line.name,credit_time:line.cdate,user_id:line.user_id,id_credit:line.id_credit,company_name:line.company_name,company_address:line.company_address,company_tel:line:company_tel,salesman_id:line.salesman_id,salesman_name:line.salesman_name,dept_code:line.dept_code,dept_name:line.dept_name})"

本人的写入代码为:

USING PERIODIC COMMIT 10000
LOAD CSV WITH HEADERS 
FROM "file:///cdsu.csv" AS line 
MERGE (p:credited_clients {id:line.mob,name:line.name,credit_time:line.cdate,user_id:line.user_id,id_credit:line.id_credit,company_name:line.company_name,company_address:line.company_add,company_tel:line:company_tel,salesman_id:line.salesman_id,salesman_name:line.salesman_name,dept_code:line.dept_code,dept_name:line.dept_name})
1 回复

CSV文件我已经通过TXT另存为保存为UTF-8的编码格式。

回到顶部