# Invalid input ')': expected whitespace

**URL:** <https://community.neo4j.com/t/invalid-input-expected-whitespace/54511>\
**Category:** Cypher\
**Tags:** import\
**Created:** [April 7, 2022, 12:06am UTC](https://community.neo4j.com/t/invalid-input-expected-whitespace/54511 "2022-04-07T00:06:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![shiva27shiva](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/shiva27shiva/32/23123_2.png) [@shiva27shiva](https://community.neo4j.com/u/shiva27shiva)\
**Post date:** [April 7, 2022, 12:06am UTC](https://community.neo4j.com/t/invalid-input-expected-whitespace/54511/1 "2022-04-07T00:06:28Z")

</div>

ok so im trying to import a large csv into Neo4j, Its full news article and meta data per row

I am trying to get all of this into 1 node on the graph with the article as the primary and then metadata as the properties, in theory i want to NLP the article to get "fact" extraction and have the meta data travel with it.

**LOAD CSV WITH HEADERS FROM 'file:///all.csv' AS row**

**WITH row.raw\_text AS article, row.date AS date, row.author AS author, row.description AS description, row.title AS title, row.url AS url, row.tags AS tags, row.sitename AS sitename, row.author AS author,**

**MERGE (a:article {article: article})**

**SET a.date = date, a.author = author, a.url = url, a.tags = tags, a.sitename = sitename, a.title = title**

**LIMIT 5;**

Is throwing error

**Invalid input ')': expected whitespace or a relationship pattern (line 3, column 36 (offset: 291))**  
**"MERGE (a:article {article: article})"**

I have been copy/pasting so i dont know where the formating error could have come from??

---

<div class="post-metadata">

**Author:** ![bennu\_neo](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/bennu_neo/32/27616_2.png) [@bennu\_neo](https://community.neo4j.com/u/bennu_neo)\
**Post date:** [April 7, 2022, 1:06am UTC](https://community.neo4j.com/t/invalid-input-expected-whitespace/54511/2 "2022-04-07T01:06:16Z")

</div>

Hi @shiva27shiva !

I think you are missing article on your first _WITH_.

Another thing, you dont need to open all the properties before the set. You can do something like:

```auto
LOAD CSV WITH HEADERS FROM 'file:///all.csv' AS row
WITH row //LIMIT 5
MERGE (a:article {article: row.article})
SET a += row { .date, .author, .url, .tags, .sitename, .title}

```

Bennu

---

<div class="post-metadata">

**Author:** ![shiva27shiva](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/shiva27shiva/32/23123_2.png) [@shiva27shiva](https://community.neo4j.com/u/shiva27shiva)\
**Post date:** [April 7, 2022, 1:31am UTC](https://community.neo4j.com/t/invalid-input-expected-whitespace/54511/3 "2022-04-07T01:31:29Z")

</div>

That got it to load thank you so much for the help. Tune in next week for my next beginner questions

Thanks
