# Failed to create index template with same priority

**URL:** <https://discuss.elastic.co/t/failed-to-create-index-template-with-same-priority/368797>\
**Category:** Elasticsearch\
**Created:** [October 14, 2024, 4:22pm UTC](https://discuss.elastic.co/t/failed-to-create-index-template-with-same-priority/368797 "2024-10-14T16:22:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![avnere](https://avatars.discourse-cdn.com/v4/letter/a/ba8739/32.png) [@avnere](https://discuss.elastic.co/u/avnere)\
**Post date:** [October 14, 2024, 4:22pm UTC](https://discuss.elastic.co/t/failed-to-create-index-template-with-same-priority/368797/1 "2024-10-14T16:22:02Z")

</div>

Hi,

I am trying to create two templates with patterns:

```auto
*my_index1_id1*
*my_index2_id1*

```

I am failing on  
`have the same priority [0], multiple index templates may not match during index creation, please use a different priority`

Why this is happing when the index pattern is different?
