# Can't merge a non object mapping

**URL:** <https://discuss.elastic.co/t/cant-merge-a-non-object-mapping/101901>\
**Category:** Beats\
**Created:** [September 26, 2017, 8:33pm UTC](https://discuss.elastic.co/t/cant-merge-a-non-object-mapping/101901 "2017-09-26T20:33:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![valdemar.pavesi](https://avatars.discourse-cdn.com/v4/letter/v/b782af/32.png) [@valdemar.pavesi](https://discuss.elastic.co/u/valdemar.pavesi)\
**Post date:** [September 26, 2017, 8:33pm UTC](https://discuss.elastic.co/t/cant-merge-a-non-object-mapping/101901/1 "2017-09-26T20:33:55Z")

</div>

Hello,

I am getting this error

2017/09/26 20:31:28.110247 client.go:465: WARN Can not index event (status=400): {"type":"illegal\_argument\_exception","reason":"Can't merge a non object mapping [cmm.pm.ipds0.VS.NbrRexmit-S3Gtpc] with an object mapping [cmm.pm.ipds0.VS.NbrRexmit-S3Gtpc]"}

regards!  
Valdemar

---

<div class="post-metadata">

**Author:** ![andrewkroh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/andrewkroh/32/3784_2.png) [@andrewkroh](https://discuss.elastic.co/u/andrewkroh)\
**Post date:** [September 26, 2017, 8:41pm UTC](https://discuss.elastic.co/t/cant-merge-a-non-object-mapping/101901/2 "2017-09-26T20:41:43Z")

</div>

This likely indicates that you have a field named `cmm.pm.ipds0.VS.NbrRexmit-S3Gtpc` and it's value was an object. And now you are sending the same field but with a value that is not object (like a string).

You are probably using [dynamic mappings](https://www.elastic.co/guide/en/elasticsearch/guide/current/dynamic-mapping.html) which means Elasticsearch will create a mapping for the field the first time that it sees it. The first event containing that field will determine the mapping type. After that you must be consistent with the data type sent for that field or else you will get this error.

---

<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:** [October 17, 2017, 8:34pm UTC](https://discuss.elastic.co/t/cant-merge-a-non-object-mapping/101901/3 "2017-10-17T20:34:20Z")

</div>

This topic was automatically closed after 21 days. New replies are no longer allowed.
