# Java.lang.IllegalArgumentException: Mapper for \[hits\] conflicts with existing mapping in other types

**URL:** <https://discuss.elastic.co/t/java-lang-illegalargumentexception-mapper-for-hits-conflicts-with-existing-mapping-in-other-types/40041>\
**Category:** Kibana\
**Created:** [January 25, 2016, 4:23pm UTC](https://discuss.elastic.co/t/java-lang-illegalargumentexception-mapper-for-hits-conflicts-with-existing-mapping-in-other-types/40041 "2016-01-25T16:23:00Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![DK\_3](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dk_3/32/48003_2.png) [@DK\_3](https://discuss.elastic.co/u/DK_3)\
**Post date:** [January 25, 2016, 4:23pm UTC](https://discuss.elastic.co/t/java-lang-illegalargumentexception-mapper-for-hits-conflicts-with-existing-mapping-in-other-types/40041/1 "2016-01-25T16:23:01Z")

</div>

I cannot open the Dashboard in Kibana and when I check the elasticsearch.log I see this

`[2016-01-25 16:14:37,421][DEBUG][action.admin.indices.mapping.put] [search-wa] failed to put mappings on indices [[.kibana]], type [dashboard] java.lang.IllegalArgumentException: Mapper for [hits] conflicts with existing mapping in other types: [mapper [hits] cannot be changed from type [long] to [int]]`

[elasticsearch.log](https://gist.github.com/dkirrane/c98da19d44aac022d098)

---

<div class="post-metadata">

**Author:** ![jbudz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jbudz/32/45922_2.png) [@jbudz](https://discuss.elastic.co/u/jbudz)\
**Post date:** [January 25, 2016, 8:18pm UTC](https://discuss.elastic.co/t/java-lang-illegalargumentexception-mapper-for-hits-conflicts-with-existing-mapping-in-other-types/40041/2 "2016-01-25T20:18:40Z")

</div>

What version of Kibana are you using? Do you remember what happened before this error occurred?

---

<div class="post-metadata">

**Author:** ![DK\_3](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dk_3/32/48003_2.png) [@DK\_3](https://discuss.elastic.co/u/DK_3)\
**Post date:** [January 26, 2016, 10:09am UTC](https://discuss.elastic.co/t/java-lang-illegalargumentexception-mapper-for-hits-conflicts-with-existing-mapping-in-other-types/40041/3 "2016-01-26T10:09:46Z")

</div>

I'm using: kibana-4.3.1-linux-x64, logstash-2.1.1, elasticsearch 2.1.1

I just created a Line Chart and then wanted to clicked on Dashboard Tab but tab does nothing. This error was in log.

A complete restart hasn't helped either

---

<div class="post-metadata">

**Author:** ![jbudz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jbudz/32/45922_2.png) [@jbudz](https://discuss.elastic.co/u/jbudz)\
**Post date:** [January 26, 2016, 4:21pm UTC](https://discuss.elastic.co/t/java-lang-illegalargumentexception-mapper-for-hits-conflicts-with-existing-mapping-in-other-types/40041/4 "2016-01-26T16:21:47Z")

</div>

Have you ran a newer branch of Kibana recently? There was a [bug](https://github.com/elastic/kibana/pull/5983) that may have caused this issue.

Can you try exporting your saved objects, deleting the .kibana index from elasticsearch, and reimporting?

---

<div class="post-metadata">

**Author:** ![DK\_3](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dk_3/32/48003_2.png) [@DK\_3](https://discuss.elastic.co/u/DK_3)\
**Post date:** [January 27, 2016, 5:24pm UTC](https://discuss.elastic.co/t/java-lang-illegalargumentexception-mapper-for-hits-conflicts-with-existing-mapping-in-other-types/40041/5 "2016-01-27T17:24:25Z")

</div>

Where can I download a newer version? Or do I have to build it?

---

<div class="post-metadata">

**Author:** ![jbudz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jbudz/32/45922_2.png) [@jbudz](https://discuss.elastic.co/u/jbudz)\
**Post date:** [January 27, 2016, 5:44pm UTC](https://discuss.elastic.co/t/java-lang-illegalargumentexception-mapper-for-hits-conflicts-with-existing-mapping-in-other-types/40041/6 "2016-01-27T17:44:10Z")

</div>

4.3.1 is the latest version. We publish snapshots of our master branch which can be found at [https://github.com/elastic/kibana#snapshot-builds](https://github.com/elastic/kibana#snapshot-builds). You can also build yourself by cloning the repo, checking out the branch you want, and running `npm install && npm run build`.

---

<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 6, 2017, 2:04pm UTC](https://discuss.elastic.co/t/java-lang-illegalargumentexception-mapper-for-hits-conflicts-with-existing-mapping-in-other-types/40041/7 "2017-07-06T14:04:12Z")

</div>


