# Date Format : java.lang.IllegalArgumentException: Mapper exception

**URL:** <https://discuss.elastic.co/t/date-format-java-lang-illegalargumentexception-mapper-exception/108423>\
**Category:** Elasticsearch\
**Created:** [November 20, 2017, 4:11pm UTC](https://discuss.elastic.co/t/date-format-java-lang-illegalargumentexception-mapper-exception/108423 "2017-11-20T16:11:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mahesh.maney](https://avatars.discourse-cdn.com/v4/letter/m/f9ae1b/32.png) [@mahesh.maney](https://discuss.elastic.co/u/mahesh.maney)\
**Post date:** [November 20, 2017, 4:11pm UTC](https://discuss.elastic.co/t/date-format-java-lang-illegalargumentexception-mapper-exception/108423/1 "2017-11-20T16:11:10Z")

</div>

Hi,

We have a date mapping as follows  
_"createdOn": {  
"type": "date",  
"fields": {  
"sortable": {  
"type": "keyword"  
}  
},  
"ignore\_malformed": true,  
"format": "yyyy-MM-dd HH:mm:ss||strict\_date\_optional\_time||epoch\_millis"  
}_  
and we are inserting the data as **"createdOn": "2017-11-20T13:44:17.414Z"** and we end up with exception  
 _java.lang.IllegalArgumentException: Mapper for [createdDate] conflicts with existing mapping in other types:  
[mapper [createdDate] is used by multiple types. Set update\_all\_types to true to update [format] across all types.]  
at org.elasticsearch.index.mapper.FieldTypeLookup.checkCompatibility(FieldTypeLookup.java:130)  
at org.elasticsearch.index.mapper.FieldTypeLookup.copyAndAddAll(FieldTypeLookup.java:94)_

We do not have any other attributes with name "createdDate".  
We have double checked this.

Wondering what could be wrong here ?

Regards,  
Maney

---

<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:** [December 18, 2017, 4:11pm UTC](https://discuss.elastic.co/t/date-format-java-lang-illegalargumentexception-mapper-exception/108423/2 "2017-12-18T16:11:25Z")

</div>

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