# Mapper parsing exception for date at elastic search version 6.2.0

**URL:** <https://discuss.elastic.co/t/mapper-parsing-exception-for-date-at-elastic-search-version-6-2-0/179995>\
**Category:** Elasticsearch\
**Created:** [May 7, 2019, 1:58pm UTC](https://discuss.elastic.co/t/mapper-parsing-exception-for-date-at-elastic-search-version-6-2-0/179995 "2019-05-07T13:58:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rvyas](https://avatars.discourse-cdn.com/v4/letter/r/a3d4f5/32.png) [@rvyas](https://discuss.elastic.co/u/rvyas)\
**Post date:** [May 7, 2019, 1:58pm UTC](https://discuss.elastic.co/t/mapper-parsing-exception-for-date-at-elastic-search-version-6-2-0/179995/1 "2019-05-07T13:58:24Z")

</div>

I am getting mapper parsing exception while indexing dates at ES :

{  
"type": "mapper\_parsing\_exception",  
"reason": "failed to parse [completionTime]",  
"caused\_by": {  
"type": "illegal\_argument\_exception",  
"reason": "Invalid format: "2019-05-07T02:46:16Z" is malformed at "Z""  
}

Sometimes this issue reproduces and sometimes not.

Actually, I am using OffsetDateTime Format as :-  
private OffsetDateTime completionTime;

before indexing, I am converting time to string using toString().

Can someone help me to resolve this issue ?

---

<div class="post-metadata">

**Author:** ![pgomulka](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pgomulka/32/45766_2.png) [@pgomulka](https://discuss.elastic.co/u/pgomulka)\
**Post date:** [May 7, 2019, 7:41pm UTC](https://discuss.elastic.co/t/mapper-parsing-exception-for-date-at-elastic-search-version-6-2-0/179995/2 "2019-05-07T19:41:29Z")

</div>

Hey @rvyas  
Can you please share your mapping for this index?  
Specifically for the completiontime field

---

<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 4, 2019, 7:41pm UTC](https://discuss.elastic.co/t/mapper-parsing-exception-for-date-at-elastic-search-version-6-2-0/179995/3 "2019-06-04T19:41:31Z")

</div>

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