# Unable to create Index Patterns

**URL:** <https://discuss.elastic.co/t/unable-to-create-index-patterns/147688>\
**Category:** Kibana\
**Created:** [September 7, 2018, 9:50am UTC](https://discuss.elastic.co/t/unable-to-create-index-patterns/147688 "2018-09-07T09:50:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![aash\_dhariya](https://avatars.discourse-cdn.com/v4/letter/a/c37758/32.png) [@aash\_dhariya](https://discuss.elastic.co/u/aash_dhariya)\
**Post date:** [September 7, 2018, 9:50am UTC](https://discuss.elastic.co/t/unable-to-create-index-patterns/147688/1 "2018-09-07T09:50:16Z")

</div>

I am setting up kibana on local that connects to remote elasticsearch. I changed the url in `data/kibana.conf`. However, when I want to create index pattern to start visualising the data, I get an error

Index pattern url details:  
url : [http://localhost:5601/api/saved\_objects/index-pattern](http://localhost:5601/api/saved_objects/index-pattern)  
request params: {"attributes":{"title":"sales-\*","timeFieldName":"issue\_date"}}

response status: 400  
response msg error:  
{"message":"Rejecting mapping update to [.kibana] as the final mapping would have more than 1 type: [\_doc, doc]: [illegal\_argument\_exception] Rejecting mapping update to [.kibana] as the final mapping would have more than 1 type: [\_doc, doc]","statusCode":400,"error":"Bad Request"}

Please help me understand why the error occurs and how to fix it.

---

<div class="post-metadata">

**Author:** ![cjcenizal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cjcenizal/32/11216_2.png) [@cjcenizal](https://discuss.elastic.co/u/cjcenizal)\
**Post date:** [September 7, 2018, 11:21am UTC](https://discuss.elastic.co/t/unable-to-create-index-patterns/147688/2 "2018-09-07T11:21:11Z")

</div>

Hi there, in 6.x we removed the ability for indices to contain multiple mapping types ([https://www.elastic.co/guide/en/elasticsearch/reference/6.0/removal-of-types.html](https://www.elastic.co/guide/en/elasticsearch/reference/6.0/removal-of-types.html)). This problem is happening because you have indices which are captured by the `sales-*` index pattern which have different types (`_doc` and `doc`). You can resolve this by narrowing your pattern to only apply to one or the other index or if you want to capture both indices, reindex one or both to have the same type.

Hope this helps,  
CJ

---

<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 5, 2018, 11:21am UTC](https://discuss.elastic.co/t/unable-to-create-index-patterns/147688/3 "2018-10-05T11:21:11Z")

</div>

Closed on October 5, 2018, 11:21am UTC

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