# Timestamp error ElasticSearch 2.0.0

**URL:** <https://discuss.elastic.co/t/timestamp-error-elasticsearch-2-0-0/35034>\
**Category:** Elasticsearch\
**Created:** [November 19, 2015, 10:16am UTC](https://discuss.elastic.co/t/timestamp-error-elasticsearch-2-0-0/35034 "2015-11-19T10:16:39Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![emolla](https://avatars.discourse-cdn.com/v4/letter/e/7ea924/32.png) [@emolla](https://discuss.elastic.co/u/emolla)\
**Post date:** [November 19, 2015, 10:16am UTC](https://discuss.elastic.co/t/timestamp-error-elasticsearch-2-0-0/35034/1 "2015-11-19T10:16:39Z")

</div>

Hello,

I'm having problems with my mapping timestamp. My mapping is:

```
{
 "_source" : {
          "excludes" : ["file"]
       },
      "_timestamp": {
         "enabled": true,
         "format": "dd-MM-yyyy HH:mm:ss||yyyy-MM-dd'T'HH:mm:ss.SSSZZ"
      },
      "dynamic": "strict",
        "properties": {
        "file": {
            "type": "attachment",
            "fields" : {
                    "content" : {"analyzer" : "analyzer"},
                    "title" : {"store" : "yes"},
                    "date" : {"store" : "yes"},
                    "author" : {"analyzer" : "analyzer"},
                    "keywords" : {"store" : "yes"},
                    "content_type" : {"store" : "yes"},
                    "content_length" : {"store" : "yes"},
                    "language" : {"store" : "yes"}
                }
        },
        "field1": {
            "type": "integer",
            "doc_values": true,
            "index" : "not_analyzed",
            "include_in_all": false
            
         },
         "field2": {
            "type": "integer",
            "doc_values": true,
            "index" : "not_analyzed",
            "include_in_all": false
         },
         "field3": {
            "type": "integer",
            "doc_values": true,
            "index" : "not_analyzed",
            "include_in_all": false
         }
}
}

```

But to perform the action of "indexRequestBuilder.execute () actionGet ()." I returned the following error:

```
org.elasticsearch.action.TimestampParsingException: failed to parse timestamp [1447926177415]
atorg.elasticsearch.cluster.metadata.MappingMetaData$Timestamp.parseStringTimestamp(MappingMetaData.java:180) ~ [elasticsearch-2.0.0.jar: 2.0.0]
at org.elasticsearch.action.index.IndexRequest.process (IndexRequest.java:567) ~ [elasticsearch-2.0.0.jar: 2.0.0]
at org.elasticsearch.action.index.TransportIndexAction.resolveRequest (TransportIndexAction.java:131) ~ [elasticsearch-2.0.0.jar: 2.0.0]

```

I do not understand this because I have another mapping defined timestamp and gives me the same error and the data is indexed correctly.

Can anybody help me, please? Thank you!

a greeting.

---

<div class="post-metadata">

**Author:** ![jpountz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jpountz/32/45836_2.png) [@jpountz](https://discuss.elastic.co/u/jpountz)\
**Post date:** [November 19, 2015, 2:40pm UTC](https://discuss.elastic.co/t/timestamp-error-elasticsearch-2-0-0/35034/2 "2015-11-19T14:40:39Z")

</div>

Can you show how you build your indexRequestBuilder?

Does it fix the problem to append `||epoch_millis` at the end of the format that is configured on your \_timestamp field?

---

<div class="post-metadata">

**Author:** ![emolla](https://avatars.discourse-cdn.com/v4/letter/e/7ea924/32.png) [@emolla](https://discuss.elastic.co/u/emolla)\
**Post date:** [November 19, 2015, 3:16pm UTC](https://discuss.elastic.co/t/timestamp-error-elasticsearch-2-0-0/35034/3 "2015-11-19T15:16:07Z")

</div>

It is perfect, very nice , thank you very much

---

<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:** [July 5, 2017, 11:37pm UTC](https://discuss.elastic.co/t/timestamp-error-elasticsearch-2-0-0/35034/4 "2017-07-05T23:37:11Z")

</div>


