File Neo4j无法从本地磁盘(windows 7)加载csv

File Neo4j无法从本地磁盘(windows 7)加载csv,file,csv,neo4j,File,Csv,Neo4j,我是Neo4j新手,一直在尝试从本地磁盘加载CSV,但没有成功 LOAD CSV WITH HEADERS FROM "file:C:/Neo4j/Persons.csv" AS csvLine CREATE (p:Person { id: toInt(csvLine.id), name: csvLine.name }) 我得到了以下回应和错误 Couldn't load the external resource at: file:C:/Neo4j/Persons.csv Neo.Tran

我是Neo4j新手,一直在尝试从本地磁盘加载CSV,但没有成功

LOAD CSV WITH HEADERS FROM "file:C:/Neo4j/Persons.csv" AS csvLine
CREATE (p:Person { id: toInt(csvLine.id), name: csvLine.name })
我得到了以下回应和错误

Couldn't load the external resource at: file:C:/Neo4j/Persons.csv

Neo.TransientError.Statement.ExternalResourceFailure

您能验证文件是否在C:/Neo4j/目录中吗?

可能不是完美的解决方案,但可能适合您

你应该试试这个: 使用定期提交 加载带有标题的CSV 从“文件:C:/Neo4j/Persons.csv”作为csvLine 创建(:PERSONS{id:csvLine.id,name:csvLine.name})

但是您应该注意Persons.csv文件中的标题。 假设你的文件有这个头 id |名称| 在创建语句之前,必须使用此密码: 字段终止符“|”