# Setting apoc.import.file.enabled=true in your neo4j.conf

**URL:** <https://community.neo4j.com/t/setting-apoc-import-file-enabled-true-in-your-neo4j-conf/4293>\
**Category:** Procedures & APOC\
**Created:** [January 10, 2019, 6:50am UTC](https://community.neo4j.com/t/setting-apoc-import-file-enabled-true-in-your-neo4j-conf/4293 "2019-01-10T06:50:16Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![dw222ek](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/dw222ek/32/2794_2.png) [@dw222ek](https://community.neo4j.com/u/dw222ek)\
**Post date:** [January 10, 2019, 6:50am UTC](https://community.neo4j.com/t/setting-apoc-import-file-enabled-true-in-your-neo4j-conf/4293/1 "2019-01-10T06:50:16Z")

</div>

I am all new to neo4j and have just downloaded the desktop version running on my Mac. When trying to load a json file with CALL apoc.load.json I get the error message:

Neo.ClientError.Procedure.ProcedureCallFailed: 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 neo4j.conf

But I cannot find any file named neo4j.conf on my Mac (or even any file/directory named neo4j or similar...) and I haven't found any documentation on how to actually find it and edit it so I hope that someone can help me with this...?

---

<div class="post-metadata">

**Author:** ![12kunal34](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/12kunal34/32/2617_2.png) [@12kunal34](https://community.neo4j.com/u/12kunal34)\
**Post date:** [January 10, 2019, 7:13am UTC](https://community.neo4j.com/t/setting-apoc-import-file-enabled-true-in-your-neo4j-conf/4293/2 "2019-01-10T07:13:33Z")

</div>

how is neo4j server running in your system ???  
basically in Windows , we have to start server from application and in this application we are having a options button .  
when you will click on it will get the neo4j config file option and you can start working on it.

for me it is in below location

```auto
AppData\Roaming\Neo4j Community Edition\neo4j.conf

```

---

<div class="post-metadata">

**Author:** ![ameyasoft](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/ameyasoft/32/32639_2.png) [@ameyasoft](https://community.neo4j.com/u/ameyasoft)\
**Post date:** [January 10, 2019, 8:13am UTC](https://community.neo4j.com/t/setting-apoc-import-file-enabled-true-in-your-neo4j-conf/4293/3 "2019-01-10T08:13:41Z")

</div>

Hi,

Launch Neo4j Desktop, click on'Manage' button. Click on the down arrow next to 'Open Folder'.

![neoconf](https://us1.discourse-cdn.com/flex021/uploads/neo4jcommunity/original/2X/7/7c72c29d3fd4725c3de8d9684f23b776ebb1b789.png)

From the drop down list select 'Configuration' and that will open the folder where neo4j.conf is located.

Copy and save the neo4j.conf file (before editing) as backup. Open with Notepad and uncomment this line (remove '#')

#dbms.security.procedures.unrestricted=apoc._,algo._

and save.

Restart Neo4j Desktop and try.

-Kamal

---

<div class="post-metadata">

**Author:** ![michael.hunger](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/michael.hunger/32/27377_2.png) [@michael.hunger](https://community.neo4j.com/u/michael.hunger)\
**Post date:** [January 10, 2019, 11:32am UTC](https://community.neo4j.com/t/setting-apoc-import-file-enabled-true-in-your-neo4j-conf/4293/4 "2019-01-10T11:32:45Z")

</div>

actually settings==neo4j.conf are directly manageable in neo4j desktop

 ![13-1](https://us1.discourse-cdn.com/flex021/uploads/neo4jcommunity/original/2X/0/09fac7912c197c84833b2cfe77545713ca0a90f7.jpeg)

---

<div class="post-metadata">

**Author:** ![dw222ek](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/dw222ek/32/2794_2.png) [@dw222ek](https://community.neo4j.com/u/dw222ek)\
**Post date:** [January 10, 2019, 11:54am UTC](https://community.neo4j.com/t/setting-apoc-import-file-enabled-true-in-your-neo4j-conf/4293/5 "2019-01-10T11:54:29Z")

</div>

Perfect thanks, you saved my day!

---

<div class="post-metadata">

**Author:** ![mckenzma](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/mckenzma/32/78_2.png) [@mckenzma](https://community.neo4j.com/u/mckenzma)\
**Post date:** [January 14, 2019, 11:43pm UTC](https://community.neo4j.com/t/setting-apoc-import-file-enabled-true-in-your-neo4j-conf/4293/6 "2019-01-14T23:43:02Z")

</div>

if i want to load a json file from a local folder, do I drop it in the "import" folder? I am trying

```auto
CALL apoc.load.json('financials.json')

```

and I get the error `Neo.ClientError.Procedure.ProcedureCallFailed: Failed to invoke procedure`apoc.load.json`: Caused by: java.lang.RuntimeException: Can't read url or key invalid URL (financials.json) as json: no protocol: financials.json`

This is the first time I have tried loading JSON and am just playing around.

---

<div class="post-metadata">

**Author:** ![dw222ek](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/dw222ek/32/2794_2.png) [@dw222ek](https://community.neo4j.com/u/dw222ek)\
**Post date:** [January 15, 2019, 2:33am UTC](https://community.neo4j.com/t/setting-apoc-import-file-enabled-true-in-your-neo4j-conf/4293/7 "2019-01-15T02:33:25Z")

</div>

I had the same problem (don’t understand why…) so I had to use the fully qualified name (starting from the Home directory) as in:

apoc.load.json("file:/users/myuser/desktop/python/wos/graph.json”)

Hope it works for you as well.

---

<div class="post-metadata">

**Author:** ![michael.hunger](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/michael.hunger/32/27377_2.png) [@michael.hunger](https://community.neo4j.com/u/michael.hunger)\
**Post date:** [January 15, 2019, 1:26pm UTC](https://community.neo4j.com/t/setting-apoc-import-file-enabled-true-in-your-neo4j-conf/4293/8 "2019-01-15T13:26:12Z")

</div>

For new questions please start a new topic @mckenzma

---

<div class="post-metadata">

**Author:** ![mckenzma](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/mckenzma/32/78_2.png) [@mckenzma](https://community.neo4j.com/u/mckenzma)\
**Post date:** [January 15, 2019, 1:36pm UTC](https://community.neo4j.com/t/setting-apoc-import-file-enabled-true-in-your-neo4j-conf/4293/9 "2019-01-15T13:36:12Z")

</div>

@michael.hunger I posted it here only because I thought it might be somewhat relevant. I will address future questions in separate posts.

---

<div class="post-metadata">

**Author:** ![venkatpoojari97](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/venkatpoojari97/32/5877_2.png) [@venkatpoojari97](https://community.neo4j.com/u/venkatpoojari97)\
**Post date:** [April 3, 2020, 4:26pm UTC](https://community.neo4j.com/t/setting-apoc-import-file-enabled-true-in-your-neo4j-conf/4293/10 "2020-04-03T16:26:50Z")

</div>

How will I able to this in GrapheneDB instance ?

---

<div class="post-metadata">

**Author:** ![sai1](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/sai1/32/11864_2.png) [@sai1](https://community.neo4j.com/u/sai1)\
**Post date:** [June 8, 2020, 1:44pm UTC](https://community.neo4j.com/t/setting-apoc-import-file-enabled-true-in-your-neo4j-conf/4293/11 "2020-06-08T13:44:58Z")

</div>

I just created a new Neo4j enterprise on GCP and I have a JSON file in **/var/lib/neo4j/import** folder. when I am trying to read a file using this code ( `call apoc.load.json("` `file://comments.json` `") yield value return value limit 5` ), i get the below error

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 could see `apoc.import.file.enabled=true` in neo4j.conf file but i am unable to find apoc.conf anywhere in server. The cluster where I am looking or running queries is the LEADER node. I didnt get this issue last time but today I just deleted the old cluster and re-created a new node from scratch and started facing this issue. Can someone please tell me what is that I am missing here.

---

<div class="post-metadata">

**Author:** ![michael.hunger](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/michael.hunger/32/27377_2.png) [@michael.hunger](https://community.neo4j.com/u/michael.hunger)\
**Post date:** [June 9, 2020, 12:39am UTC](https://community.neo4j.com/t/setting-apoc-import-file-enabled-true-in-your-neo4j-conf/4293/12 "2020-06-09T00:39:17Z")

</div>

What version of neo4j are you running? for 4.+ it's apoc.conf (you need to create it) and 3.5.x it's neo4j.conf

you also need three slashes file:///

---

<div class="post-metadata">

**Author:** ![onkarpathak833](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/onkarpathak833/32/12659_2.png) [@onkarpathak833](https://community.neo4j.com/u/onkarpathak833)\
**Post date:** [July 14, 2020, 12:22pm UTC](https://community.neo4j.com/t/setting-apoc-import-file-enabled-true-in-your-neo4j-conf/4293/13 "2020-07-14T12:22:16Z")

</div>

I am using neo4j 4.1. Should apoc.conf file be placed in the same folder as neo4j.conf file?

---

<div class="post-metadata">

**Author:** ![bill\_dickenson](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/bill_dickenson/32/4915_2.png) [@bill\_dickenson](https://community.neo4j.com/u/bill_dickenson)\
**Post date:** [July 21, 2020, 3:37pm UTC](https://community.neo4j.com/t/setting-apoc-import-file-enabled-true-in-your-neo4j-conf/4293/14 "2020-07-21T15:37:16Z")

</div>

This is still unanswered, correct ? Should we put it IN the neo4j file or in its own apoc.conf in the same directory

Thanks

---

<div class="post-metadata">

**Author:** ![bill\_dickenson](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/bill_dickenson/32/4915_2.png) [@bill\_dickenson](https://community.neo4j.com/u/bill_dickenson)\
**Post date:** [July 21, 2020, 3:50pm UTC](https://community.neo4j.com/t/setting-apoc-import-file-enabled-true-in-your-neo4j-conf/4293/15 "2020-07-21T15:50:07Z")

</div>

Still not working, and I am mildly confused.

I went ahead and added those 3 statements to neo4j.con - same error  
I created an apoc.conf with those. Same error.

Now I am lost. Any more thoughts ?

---

<div class="post-metadata">

**Author:** ![ameyasoft](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/ameyasoft/32/32639_2.png) [@ameyasoft](https://community.neo4j.com/u/ameyasoft)\
**Post date:** [July 21, 2020, 7:50pm UTC](https://community.neo4j.com/t/setting-apoc-import-file-enabled-true-in-your-neo4j-conf/4293/16 "2020-07-21T19:50:05Z")

</div>

After launching the Desktop you will see the database you created. At left top corner you will see three circles. Clicking on it displays the a list and select Manage. When it opens up you will Plugins. When clicked it shows the APOC and GDS library. Click on install one at a time and this will instal the libraries and updates the neo4j.conf file.

Once done click on Start button and it should start if everything goes well.

---

<div class="post-metadata">

**Author:** ![bill\_dickenson](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/bill_dickenson/32/4915_2.png) [@bill\_dickenson](https://community.neo4j.com/u/bill_dickenson)\
**Post date:** [July 21, 2020, 10:35pm UTC](https://community.neo4j.com/t/setting-apoc-import-file-enabled-true-in-your-neo4j-conf/4293/17 "2020-07-21T22:35:31Z")

</div>

No luck

Uninstalled APOC and GDS  
Reinstalled both  
apoc.conf was not created and my import failed  
but I got a new neo4j.conf so i added these lines  
#\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*

# Other Neo4j system properties

#\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
apoc.trigger.enabled=true  
apoc.ttl.enabled=true  
apoc.file.import.enabled=true

Still no luck

added apoc.conf to the same directory

No luck

---

<div class="post-metadata">

**Author:** ![Cobra](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/cobra/32/35243_2.png) [@Cobra](https://community.neo4j.com/u/Cobra)\
**Post date:** [July 21, 2020, 10:39pm UTC](https://community.neo4j.com/t/setting-apoc-import-file-enabled-true-in-your-neo4j-conf/4293/18 "2020-07-21T22:39:23Z")

</div>

Hello 🙂

Did you have a look at the [documentation](https://neo4j.com/docs/labs/apoc/current/config/)?  
[Options](https://neo4j.com/docs/labs/apoc/current/config/#config-reference) that can be added to the `apoc.conf` file.

Regards,  
Cobra

---

<div class="post-metadata">

**Author:** ![bill\_dickenson](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/bill_dickenson/32/4915_2.png) [@bill\_dickenson](https://community.neo4j.com/u/bill_dickenson)\
**Post date:** [July 21, 2020, 10:58pm UTC](https://community.neo4j.com/t/setting-apoc-import-file-enabled-true-in-your-neo4j-conf/4293/19 "2020-07-21T22:58:52Z")

</div>

Yes, I read it. But there were 3 issues.

1. No apoc.conf file existed
2. The error message says "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" So I created one with that line in it ( see above) based MichaelHungers post (jan 19th)
3. But I also saw the note above that which mentioned it needed to be in 2 places ( so I did that)

So at this point, I have a self created apoc.conf and a modified neo4j.conf and neither is solving the issue.

---

<div class="post-metadata">

**Author:** ![Cobra](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/cobra/32/35243_2.png) [@Cobra](https://community.neo4j.com/u/Cobra)\
**Post date:** [July 21, 2020, 11:07pm UTC](https://community.neo4j.com/t/setting-apoc-import-file-enabled-true-in-your-neo4j-conf/4293/20 "2020-07-21T23:07:39Z")

</div>

The `apoc.conf` file must be created manually (next to neo4j.conf file) because it's not necessary for other procedures.

In this file, you must write:

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

After, you must restart your database in order to apply changes 🙂

[Next page](https://community.neo4j.com/t/setting-apoc-import-file-enabled-true-in-your-neo4j-conf/4293.md?page=2)
