# Date-Type-Error on keyword field...what?

**URL:** <https://discuss.elastic.co/t/date-type-error-on-keyword-field-what/237588>\
**Category:** Elasticsearch\
**Created:** [June 18, 2020, 8:12am UTC](https://discuss.elastic.co/t/date-type-error-on-keyword-field-what/237588 "2020-06-18T08:12:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![creaticious](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/creaticious/32/24784_2.png) [@creaticious](https://discuss.elastic.co/u/creaticious)\
**Post date:** [June 18, 2020, 8:12am UTC](https://discuss.elastic.co/t/date-type-error-on-keyword-field-what/237588/1 "2020-06-18T08:12:47Z")

</div>

Hey guys,

strange problem...i have a keyword field for different casual writing styles for the same date...so like "16.06.2020, 16.6.2020, 16.6., 16.06.20...". On the first indexing-loop everything works fine...on the next index-updates i got the following problem:

```
illegal_argument_exception {'status': 400, 'error': {'root_cause': [{'reason': 'mapper [varianten.termine._termin] of different type, current_type [date], merged_type [text]', 'type': 'illegal_argument_exception'}], 'reason': 'mapper [varianten.termine._termin] of different type, current_type [date], merged_type [text]', 'type': 'illegal_argument_exception'}}

```

I have tried with the `"date_detection": false,` option, but the result is the same...

Any ideas guys? 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:** [July 16, 2020, 8:13am UTC](https://discuss.elastic.co/t/date-type-error-on-keyword-field-what/237588/2 "2020-07-16T08:13:01Z")

</div>

Closed on July 16, 2020, 8:13am UTC

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