APOC导入数据导入失败
已经在neo4j中设置了 dbms.security.procedures.unrestricted=apoc.* apoc.import.file.enabled=true apoc.export.file.enabled=true 也重启了neo4j
但运行程序时显示:
Failed to invoke procedure apoc.load.csv
: Caused by: java.lang.RuntimeException: Import from files not enabled, please set apoc.import.file.enabled=true in your neo4j.conf
8 回复
增加配置,把文件放在安装目录下的import文件下试试。
dbms.directories.import=import
文件目录格式参考:
using periodic commit 1000
load csv with headers from "file:///test.csv" as line with line
...
@Junssen 文件路径使用绝对路径试试 CALL apoc.periodic.iterate( ‘CALL apoc.load.csv(“file:/C:/Users/11416/.Neo4jDesktop/neo4jDatabases/database-06767a53-355b-44eb-b8a8-0156dff8f8e1/installation-3.4.1/import/test.csv”) yield map as row return row’,