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 local xml files using APOC, how to give path?

I tried to import the local data to neo4j and it not taking the full path of the file

for ex:
call apoc.load.xml("file:///Users/n.k/Downloads/file.xml", '', {}, true)

it gives me the following error

Failed to invoke procedure apoc.load.xml: Caused by: java.io.FileNotFoundException: /Users/n.k/Library/Application Support/Neo4j Desktop/Application/neo4jDatabases/database-eaa8fb31-c5e2-4a92-917d-21062b851fea/installation-3.5.14/import/Users/n.k/Downloads/file.xml (No such file or directory)

1 REPLY 1

The apoc configuration options.
https://neo4j.com/docs/labs/apoc/current/config/

By default for security reasons, files must be relative to whatever the dbms.directories.import config directory in neo4j.conf. If my memory serves correctly, that is $NEO4J_HOME/import. The settings can be changed.