# Unknown key for a VALUE\_STRING in \[Name\]

**URL:** https://discuss.elastic.co/t/unknown-key-for-a-value-string-in-name/175365
**Category:** Elasticsearch
**Created:** [April 4, 2019, 9:29am UTC](https://discuss.elastic.co/t/unknown-key-for-a-value-string-in-name/175365 "2019-04-04T09:29:59Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Miao](https://avatars.discourse-cdn.com/v4/letter/m/8baadc/32.png) [@Miao](https://discuss.elastic.co/u/Miao)
#### Post date: [April 4, 2019, 9:29am UTC](https://discuss.elastic.co/t/unknown-key-for-a-value-string-in-name/175365/1 "2019-04-04T09:29:59Z")

</div>

After successfully loading data into my Elasticsearch server (I use `ElasticSearch 6.7.0`), this is the response I receive when I send a `GET` request to the URL `localhost:9200/bank/`:  
\> {

> ```
> "bank": {
> "aliases": {},
> "mappings": {
> "_doc": {
> "properties": {
> "account_number": {
> "type": "long"
> },
> "address": {
> "type": "text",
> "fields": {
> "keyword": {
> "type": "keyword",
> "ignore_above": 256
> }
> }
> },
> "age": {
> "type": "long"
> },
> "balance": {
> "type": "long"
> },
> "city": {
> "type": "text",
> "fields": {
> "keyword": {
> "type": "keyword",
> "ignore_above": 256
> }
> }
> },
> "email": {
> "type": "text",
> "fields": {
> "keyword": {
> "type": "keyword",
> "ignore_above": 256
> }
> }
> },
> "employer": {
> "type": "text",
> "fields": {
> "keyword": {
> "type": "keyword",
> "ignore_above": 256
> }
> }
> },
> "firstname": {
> "type": "text",
> "fields": {
> "keyword": {
> "type": "keyword",
> "ignore_above": 256
> }
> }
> },
> "gender": {
> "type": "text",
> "fields": {
> "keyword": {
> "type": "keyword",
> "ignore_above": 256
> }
> }
> },
> "lastname": {
> "type": "text",
> "fields": {
> "keyword": {
> "type": "keyword",
> "ignore_above": 256
> }
> }
> },
> "state": {
> "type": "text",
> "fields": {
> "keyword": {
> "type": "keyword",
> "ignore_above": 256
> }
> }
> }
> }
> }
> },
> "settings": {
> "index": {
> "creation_date": "1554368018382",
> "number_of_shards": "5",
> "number_of_replicas": "1",
> "uuid": "cPExmltDSqKci77ANCNR-g",
> "version": {
> "created": "6070099"
> },
> "provided_name": "bank"
> }
> }
> }
> 
> ```
> 
> }

However, when I send a `GET` request to `localhost:9200/bank/_search`, I get the following error message:

```
{
    "error": {
        "root_cause": [
            {
                "type": "parsing_exception",
                "reason": "Unknown key for a VALUE_STRING in [Name].",
                "line": 2,
                "col": 10
            }
        ],
        "type": "parsing_exception",
        "reason": "Unknown key for a VALUE_STRING in [Name].",
        "line": 2,
        "col": 10
    },
    "status": 400
}

```

1. What does the exception mean?
2. Why does it happen?
3. How can I fix it?

---

<div class="post-metadata">

### Author: ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)
#### Post date: [April 4, 2019, 9:44am UTC](https://discuss.elastic.co/t/unknown-key-for-a-value-string-in-name/175365/2 "2019-04-04T09:44:20Z")

</div>

can you provide a **full** reproduction in a gist, that includes the order **all** statements that you issued until this happens?

Thanks!

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [May 2, 2019, 9:44am UTC](https://discuss.elastic.co/t/unknown-key-for-a-value-string-in-name/175365/3 "2019-05-02T09:44:27Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
