# Failed to parse date error

**URL:** <https://discuss.elastic.co/t/failed-to-parse-date-error/123157>\
**Category:** Elasticsearch\
**Created:** [March 8, 2018, 11:01pm UTC](https://discuss.elastic.co/t/failed-to-parse-date-error/123157 "2018-03-08T23:01:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![geoff\_yalo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/geoff_yalo/32/28323_2.png) [@geoff\_yalo](https://discuss.elastic.co/u/geoff_yalo)\
**Post date:** [March 8, 2018, 11:01pm UTC](https://discuss.elastic.co/t/failed-to-parse-date-error/123157/1 "2018-03-08T23:01:30Z")

</div>

Hi,

I am running a python script using the Elasticsearch client to insert a document into an existing index.

My documents have a datefield called "@timestamp" with the following format:

> '@timestamp': '2018-03-07T00:00:17+0000',

My mapping is as follows:

> '@timestamp': {'type': 'date'}

Yet I keep getting the following error when I tried to insert the document:

> TransportError(400, 'mapper\_parsing\_exception', 'failed to parse [@timestamp]')

What am I doing wrong? I tried formatting the date as a timestamp and as a datetime object, but neither worked.

---

<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:** [April 5, 2018, 11:01pm UTC](https://discuss.elastic.co/t/failed-to-parse-date-error/123157/2 "2018-04-05T23:01:45Z")

</div>

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