# Neo.DatabaseError.Statement.ExecutionFailed

**URL:** <https://community.neo4j.com/t/neo-databaseerror-statement-executionfailed/72138>\
**Category:** Cypher\
**Created:** [January 7, 2025, 6:12am UTC](https://community.neo4j.com/t/neo-databaseerror-statement-executionfailed/72138 "2025-01-07T06:12:50Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![adityachidre2005](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/adityachidre2005/32/33748_2.png) [@adityachidre2005](https://community.neo4j.com/u/adityachidre2005)\
**Post date:** [January 7, 2025, 6:12am UTC](https://community.neo4j.com/t/neo-databaseerror-statement-executionfailed/72138/1 "2025-01-07T06:12:50Z")

</div>

Hello all,

I am creating the graph database for ['New york air bnb open data'](https://www.kaggle.com/datasets/rhonarosecortez/new-york-airbnb-open-data), after deleting the null columns and ensuring the correct datatype of respective field I'm still face the database error as following:

DatabaseError: {code: Neo.DatabaseError.Statement.ExecutionFailed} {message: At [test.csv - Google Drive](https://drive.google.com/file/d/1Z9dH7aXYsN8pNhD9ZZhTpqwZmXJSRzQ7/view?usp=sharing&confirm=t) @ position 4771 - there's a field starting with a quote and whereas it ends that quote there seems to be characters in that field after that ending quote. That isn't supported. This is what I read: 'nQyAE":'}

The problem what I see there is no any field starting with the quote that I see in the dataset.

Regards,  
Aditya

---

<div class="post-metadata">

**Author:** ![dana\_canzano](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/dana_canzano/32/27392_2.png) [@dana\_canzano](https://community.neo4j.com/u/dana_canzano)\
**Post date:** [January 7, 2025, 1:51pm UTC](https://community.neo4j.com/t/neo-databaseerror-statement-executionfailed/72138/2 "2025-01-07T13:51:47Z")

</div>

@adityachidre2005

What version of Neo4j?  
How are you reading the CSV data included in the dataset? Is this via `neo4j-admin database import`? or CYPHER `LOAD CSV` or ?

> **[LOAD CSV - Cypher Manual](https://neo4j.com/docs/cypher-manual/current/clauses/load-csv/#_csv_file_format)**
>
> \`LOAD CSV\` is used to import data from CSV files into a Neo4j database.

```auto
CSV file format
The CSV file format and LOAD CSV interact as follows:

* The file character encoding must be UTF-8.

* The line terminator is system dependent (\n for Unix and \r\n for Windows).

* The default field delimiter is ,. Change it with the option FIELDTERMINATOR.

* CSV files may contain quoted STRING values, and the quotes are dropped when LOAD CSV reads the data.

* If dbms.import.csv.legacy_quote_escaping is set to the default value of true, \ is used as an escape character.

* A double quote must be in a quoted STRING and escaped, with either the escape character or a second double quote.

```

and specifically the last line above

---

<div class="post-metadata">

**Author:** ![adityachidre2005](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/adityachidre2005/32/33748_2.png) [@adityachidre2005](https://community.neo4j.com/u/adityachidre2005)\
**Post date:** [January 7, 2025, 2:16pm UTC](https://community.neo4j.com/t/neo-databaseerror-statement-executionfailed/72138/3 "2025-01-07T14:16:53Z")

</div>

I'm using neo4j-5.27.0 trying to import the csv using cypher query `LOAD CSV WITH HEADERS FROM`

---

<div class="post-metadata">

**Author:** ![dana\_canzano](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/dana_canzano/32/27392_2.png) [@dana\_canzano](https://community.neo4j.com/u/dana_canzano)\
**Post date:** [January 7, 2025, 2:40pm UTC](https://community.neo4j.com/t/neo-databaseerror-statement-executionfailed/72138/4 "2025-01-07T14:40:50Z")

</div>

@adityachidre2005

and per my prior update and

```auto
* A double quote must be in a quoted STRING and escaped, with either the escape character or a second double quote.

```

but yet the error references `'nQyAE":'}` which does contain a double quote and yet it is not escaped not is there a second double quote. So the error is expected

---

<div class="post-metadata">

**Author:** ![adityachidre2005](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/adityachidre2005/32/33748_2.png) [@adityachidre2005](https://community.neo4j.com/u/adityachidre2005)\
**Post date:** [January 7, 2025, 3:05pm UTC](https://community.neo4j.com/t/neo-databaseerror-statement-executionfailed/72138/5 "2025-01-07T15:05:39Z")

</div>

Thank you for your insights.  
Yeah I got that but when I'm analyzing the dataset the mentioned field is not at all there. Though I have tried with some data preprocessing I'm still getting the same error. Is there a way we can handle this?

---

<div class="post-metadata">

**Author:** ![dana\_canzano](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/dana_canzano/32/27392_2.png) [@dana\_canzano](https://community.neo4j.com/u/dana_canzano)\
**Post date:** [January 7, 2025, 3:53pm UTC](https://community.neo4j.com/t/neo-databaseerror-statement-executionfailed/72138/6 "2025-01-07T15:53:16Z")

</div>

@adityachidre2005

what csv file are you reading with LOAD CSV ? Did you download the CSV from [New York Airbnb Open Data | Kaggle](https://www.kaggle.com/datasets/rhonarosecortez/new-york-airbnb-open-data?select=listings.csv) as a .zip and then extract or are you programatically reading via the Kaggle API?

---

<div class="post-metadata">

**Author:** ![adityachidre2005](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/adityachidre2005/32/33748_2.png) [@adityachidre2005](https://community.neo4j.com/u/adityachidre2005)\
**Post date:** [January 7, 2025, 4:01pm UTC](https://community.neo4j.com/t/neo-databaseerror-statement-executionfailed/72138/7 "2025-01-07T16:01:41Z")

</div>

Yes, download and extract. While loading it I'm using 'google-drive' link. The csv files on which I'm working are calendar.csv and reviews.csv.
