# Error In elasticsearch when Creating new mapping

**URL:** <https://discuss.elastic.co/t/error-in-elasticsearch-when-creating-new-mapping/46878>\
**Category:** Elasticsearch\
**Created:** [April 9, 2016, 8:23pm UTC](https://discuss.elastic.co/t/error-in-elasticsearch-when-creating-new-mapping/46878 "2016-04-09T20:23:31Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![kingprimex](https://avatars.discourse-cdn.com/v4/letter/k/c89c15/32.png) [@kingprimex](https://discuss.elastic.co/u/kingprimex)\
**Post date:** [April 9, 2016, 8:23pm UTC](https://discuss.elastic.co/t/error-in-elasticsearch-when-creating-new-mapping/46878/1 "2016-04-09T20:23:31Z")

</div>

When I try to add a product I get:

{"error":{"root\_cause":[{"type":"illegal\_argument\_exception","reason":"Mapper for [created\_at] conflicts with existing mapping in other types:\n[mapper [created\_at] is used by multiple types. Set update\_all\_types to true to update [format] across all types.]"}],"type":"illegal\_argument\_exception","reason":"Mapper for [created\_at] conflicts with existing mapping in other types:\n[mapper [created\_at] is used by multiple types. Set update\_all\_types to true to update [format] across all types.]"},"status":400}

My ES mappins looks like this:  
**curl -XGET [http://localhost:9200/marketplace](http://localhost:9200/marketplace)**

{  
"marketplace":  
{  
"aliases":{},  
"mappings":  
{"users":{"properties":{"created\_at":"type":"date","format":"strict\_date\_optional\_time||epoch\_millis"},"created\_at\_sortable":{"type":"date","format":"dateOptionalTime"},"email":{"type":"string"},"first\_name":{"type":"string"},"id":{"type":"string"},"last\_name":{"type":"string"},"last\_visited\_at":{"type":"date","format":"strict\_date\_optional\_time||epoch\_millis"},"products\_count":{"type":"long"},"status":{"type":"boolean"}}}},"settings":{"index":{"creation\_date":"1460230994685","number\_of\_shards":"5","number\_of\_replicas":"1","uuid":"1\_nxxYF8TaaDEcDToI8xkQ","version":{"created":"2030199"}}},"warmers":{}}}

Help PLEASE!!

**EDIT2**  
the new map looks like this:  
{"id":"570a0eb0c6fe99f1428b4568","email":"codrut.predoi@yahoo.com","first\_name":"Codrut","last\_name":"Predoi","products\_count":0,"status":true,"created\_at":"2016-04-10","created\_at\_sortable":"2016-04-10","last\_visited\_at":"2016-04-10"}

**EDIT3**

I have added the elastic search configuration( How is supposed to look). Please assist me in fixing the bug please) This is the link: [elastic search](http://pastebin.com/KBbYa8Bx)  
Please Help me !!

**EDIT4**

I installed 1.7.3 and it works. Should i stick to 1.7.3 or try to fix 2.3

 ![](https://us1.discourse-cdn.com/elastic/original/2X/5/5224e99a2ad74ca827d2bc1fa8e338bec6106e05.jpg)

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [April 9, 2016, 9:33pm UTC](https://discuss.elastic.co/t/error-in-elasticsearch-when-creating-new-mapping/46878/2 "2016-04-09T21:33:31Z")

</div>

And what does the new mapping/document look like?

---

<div class="post-metadata">

**Author:** ![kingprimex](https://avatars.discourse-cdn.com/v4/letter/k/c89c15/32.png) [@kingprimex](https://discuss.elastic.co/u/kingprimex)\
**Post date:** [April 9, 2016, 9:58pm UTC](https://discuss.elastic.co/t/error-in-elasticsearch-when-creating-new-mapping/46878/3 "2016-04-09T21:58:32Z")

</div>

Unfortunately...I installed the phpmarketplace and my knowledge of php is limited. I have no idea how to get that new mapping product... I would love to though...

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [April 9, 2016, 9:59pm UTC](https://discuss.elastic.co/t/error-in-elasticsearch-when-creating-new-mapping/46878/4 "2016-04-09T21:59:42Z")

</div>

I have no idea what phpmarketplace is either, so I guess we are both lost 😛

---

<div class="post-metadata">

**Author:** ![kingprimex](https://avatars.discourse-cdn.com/v4/letter/k/c89c15/32.png) [@kingprimex](https://discuss.elastic.co/u/kingprimex)\
**Post date:** [April 9, 2016, 10:00pm UTC](https://discuss.elastic.co/t/error-in-elasticsearch-when-creating-new-mapping/46878/5 "2016-04-09T22:00:52Z")

</div>

phpmarketplace is an ecommerce site that allows you to sell products and so on written in zend framework.

---

<div class="post-metadata">

**Author:** ![kingprimex](https://avatars.discourse-cdn.com/v4/letter/k/c89c15/32.png) [@kingprimex](https://discuss.elastic.co/u/kingprimex)\
**Post date:** [April 11, 2016, 3:44pm UTC](https://discuss.elastic.co/t/error-in-elasticsearch-when-creating-new-mapping/46878/6 "2016-04-11T15:44:52Z")

</div>

BUMP . Help please. Someone with knowledge ....

---

<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 5, 2017, 11:00pm UTC](https://discuss.elastic.co/t/error-in-elasticsearch-when-creating-new-mapping/46878/7 "2017-07-05T23:00:40Z")

</div>


