Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
03-05-2021 03:10 AM
i use desktop version 4.2.1 in neo4j.I want to import the json file. it is showing me the error --
Neo.ClientError.Procedure.ProcedureCallFailed
Failed to invoke procedure apoc.import.json
: Caused by: java.lang.RuntimeException:
Import from files not enabled,
please set apoc.import.file.enabled=true in your apoc.conf
i have configured in the neo4j in settings and enabled it there but it is still not working.Then i saw in the apoc list that is is false?Can i change it here by some ways?
03-05-2021 03:58 AM
Hi @reeyarani17
Click "..." and select "Settings"
And add "apoc.import.file.enabled=true" to the last line.
#********************************************************************
# Other Neo4j system properties
#********************************************************************
apoc.import.file.enabled=true
Then restart the db.
03-05-2021 10:51 AM
i had tried this way but it did not work for me.
03-05-2021 04:08 AM
This is the best way to create the "apoc.conf" in conf folder.
And write "apoc.import.file.enabled=true" to the conf.
03-05-2021 10:58 AM
Am i doing it wrong?I am writing the file in notepad with correct extension and then adding files to the neo4j desktop!I tried invoking the json file by call apoc.load.json("file link ")
Now also the error is showing.
Failed to invoke procedure apoc.load.json
: Caused by: java.lang.RuntimeException: Import from files not enabled, please set apoc.import.file.enabled=true in your apoc.conf
I may be missing some minor point since i am new to this.
Thankyou so much for your response !
03-07-2021 01:43 AM
Hi @reeyarani17
Is the cause not restarting the DB?
My Environment
macOS BigSur
Neo4j Desktop 1.4.2
Neo4j 4.2.3
1: Created the DB
2: Check the status
CALL apoc.config.list
"apoc.import.file.enabled" "false"
3: CALL apoc.load.json
Failed to invoke procedure `apoc.load.json`: Caused by: java.lang.RuntimeException: Import from files not enabled, please set apoc.import.file.enabled=true in your apoc.conf
4: Add apoc.conf
Create ./conf/apoc.conf
apoc.import.file.enabled=true
6: Check the status
CALL apoc.config.list
"apoc.import.file.enabled" "true"
7: CALL apoc.load.json
05-05-2021 11:25 PM
thankyou for such a descriptive response
All the sessions of the conference are now available online