0

I'm trying to import an json file to neo4j, but it shows this error. I already changed the settings and imported the file to the right location. Can please someone help? Thank you in advance.

Cypher statement: //Load_JSON_Country

CALL apoc.load.json("file:///countries.json")
YIELD value

Settings: #apoc

apoc.import.file.enabled=true
apoc.import.file.use_neo4j_config=true

Error: Failed to invoke procedure apoc.load.json: Caused by: java.io.IOException: You're providing a directory outside the import directory defined into dbms.directories.import

4
  • where is the countries.json file located ? in the 'import' folder of neo4j or elsewhere ?
    – aldrin
    Nov 30, 2021 at 11:35
  • yes, in the import folder of neo4j Nov 30, 2021 at 11:39
  • check the config for this line: dbms.directories.import=import Dec 1, 2021 at 17:05
  • @DavidAStumpf the line is correct. I tried to comment but the error is still the same. Dec 2, 2021 at 11:09

1 Answer 1

0

The solution is on the following link! https://community.neo4j.com/t/youre-providing-a-directory-outside-the-import-directory-defined-into-dbms-directories-import/48562?u=mariana

1
  • 1
    As it’s currently written, your answer is unclear. Please edit to add additional details that will help others understand how this addresses the question asked. You can find more information on how to write good answers in the help center.
    – Community Bot
    Dec 6, 2021 at 18:31

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.