# Is this an APOC import bug?

**URL:** <https://community.neo4j.com/t/is-this-an-apoc-import-bug/27986>\
**Category:** Procedures & APOC\
**Created:** [October 27, 2020, 11:44pm UTC](https://community.neo4j.com/t/is-this-an-apoc-import-bug/27986 "2020-10-27T23:44:55Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![lingvisa](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/lingvisa/32/8150_2.png) [@lingvisa](https://community.neo4j.com/u/lingvisa)\
**Post date:** [October 27, 2020, 11:44pm UTC](https://community.neo4j.com/t/is-this-an-apoc-import-bug/27986/1 "2020-10-27T23:44:56Z")

</div>

For this example:

> **[Import CSV - APOC Extended Documentation](https://neo4j.com/labs/apoc/4.1/import/import-csv/)**
>
> This section describes procedures that can be used to import data from CSV files that comply with the Neo4j import tool’s header format.

**persons.csv**

```auto
name:STRING 
John
Jane

```

Then execute this per documentation:  
`CALL apoc.import.csv([{fileName: 'file:/persons.csv', labels: ['Person']}], [], {})`

This reports this error:  
`Failed to invoke procedure `apoc.import.csv`: Caused by: java.lang.IllegalStateException: No match found`

Is this a bug? Or some syntax error in the documentation? The syntax sees right based on the function signature.

---

<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:** [October 28, 2020, 2:38am UTC](https://community.neo4j.com/t/is-this-an-apoc-import-bug/27986/2 "2020-10-28T02:38:33Z")

</div>

If you are using Neo4j version 4.0 and above do the following:

Open a text editor and copy these in that file:

apoc.import.file.enabled=true  
apoc.export.file.enabled=true

Save this file as apoc.conf.

Place this file in data/dbms/dbms...../conf folder. neo4j.conf file also resides in this folder.

---

<div class="post-metadata">

**Author:** ![lingvisa](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/lingvisa/32/8150_2.png) [@lingvisa](https://community.neo4j.com/u/lingvisa)\
**Post date:** [October 28, 2020, 3:02am UTC](https://community.neo4j.com/t/is-this-an-apoc-import-bug/27986/3 "2020-10-28T03:02:03Z")

</div>

I have this two entries configured in conf/neo4j.conf and it seems working. It is working for other APOC procedures. For example, if I change the name to ":ID", it works fine. I am afraid the APOC import needs each entry to have a least an ID property. I tried other examples, it works.Also, I tried both 4.04 and 4.13 version, under the data/directory, there are only:

`databases	transactions`

No 'dbms' directory.
