# Error: mapper\_parsing\_exception

**URL:** <https://discuss.elastic.co/t/error-mapper-parsing-exception/179763>\
**Category:** Elasticsearch\
**Created:** [May 6, 2019, 12:07pm UTC](https://discuss.elastic.co/t/error-mapper-parsing-exception/179763 "2019-05-06T12:07:53Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![fim](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/fim/32/90645_2.png) [@fim](https://discuss.elastic.co/u/fim)\
**Post date:** [May 6, 2019, 12:07pm UTC](https://discuss.elastic.co/t/error-mapper-parsing-exception/179763/1 "2019-05-06T12:07:53Z")

</div>

I try to create a new template with the following mapping in ES7. So far it worked in ES6.7 but do not find what's wrong.

```
PUT _template/connect
{
  "index_patterns": [
    "connect"
  ],
  "settings": {
    "index": {
      "number_of_shards": "1",
      "number_of_replicas": "1"
    }
  },
  "mappings": {
    "doc": {
      "properties": {
        "@timestamp": {
          "type": "date",
          "format": "epoch_second"
        }
      }
    }
  }
}

```

The error message looks as follows:

```
{
  "error": {
    "root_cause": [
      {
        "type": "mapper_parsing_exception",
        "reason": "Root mapping definition has unsupported parameters: [doc : {properties={@timestamp={format=epoch_second, type=date}}}]"
      }
    ],
    "type": "mapper_parsing_exception",
    "reason": "Failed to parse mapping [_doc]: Root mapping definition has unsupported parameters: [doc : {properties={@timestamp={format=epoch_second, type=date}}}]",
    "caused_by": {
      "type": "mapper_parsing_exception",
      "reason": "Root mapping definition has unsupported parameters: [doc : {properties={@timestamp={format=epoch_second, type=date}}}]"
    }
  },
  "status": 400
}
```

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [May 6, 2019, 12:36pm UTC](https://discuss.elastic.co/t/error-mapper-parsing-exception/179763/2 "2019-05-06T12:36:05Z")

</div>

Remove

```auto
    "doc": {

```

---

<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:** [June 3, 2019, 12:36pm UTC](https://discuss.elastic.co/t/error-mapper-parsing-exception/179763/3 "2019-06-03T12:36:07Z")

</div>

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