# How can i fix this error for date type

**URL:** <https://discuss.elastic.co/t/how-can-i-fix-this-error-for-date-type/67969>\
**Category:** Logstash\
**Created:** [December 5, 2016, 1:29am UTC](https://discuss.elastic.co/t/how-can-i-fix-this-error-for-date-type/67969 "2016-12-05T01:29:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![saisn](https://avatars.discourse-cdn.com/v4/letter/s/c5a1d2/32.png) [@saisn](https://discuss.elastic.co/u/saisn)\
**Post date:** [December 5, 2016, 1:29am UTC](https://discuss.elastic.co/t/how-can-i-fix-this-error-for-date-type/67969/1 "2016-12-05T01:29:50Z")

</div>

Hi ,

I'm getting below error when trying to insert records from SQL using logstash

"status"=\>400, "error"=\>{"type"=\>"mapper\_parsing\_exception", "reason"=\>"failed to parse", "caused\_by"=\>{"type"=\>"illegal\_argument\_exception", "reason"=\>"mapper [HeatTime] of different type, current\_type [date], merged\_type [string]"}}}}, :level=\>:warn}

I have a field called HeatTime whose value is 2000-01-01T12:30:00.

Even though i haven't defined the type for this field in index i'm getting the above error.

If i have to manually define this HeatTime in my index what should be the date format for this!

Thank you

---

<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:** [January 2, 2017, 1:29am UTC](https://discuss.elastic.co/t/how-can-i-fix-this-error-for-date-type/67969/2 "2017-01-02T01:29:54Z")

</div>

Closed on January 2, 2017, 1:29am UTC

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