# Index template shows a policy that doesn't exist

**URL:** <https://discuss.elastic.co/t/index-template-shows-a-policy-that-doesnt-exist/312598>\
**Category:** Elasticsearch\
**Tags:** ilm-index-lifecycle-management\
**Created:** [August 22, 2022, 10:24am UTC](https://discuss.elastic.co/t/index-template-shows-a-policy-that-doesnt-exist/312598 "2022-08-22T10:24:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![salmuhammady](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/salmuhammady/32/109926_2.png) [@salmuhammady](https://discuss.elastic.co/u/salmuhammady)\
**Post date:** [August 22, 2022, 10:24am UTC](https://discuss.elastic.co/t/index-template-shows-a-policy-that-doesnt-exist/312598/1 "2022-08-22T10:24:55Z")

</div>

Index Template is showing a policy lifecycle that doesn't exist.  
any idea how come this happens?

```auto
GET /index-name/_ilm/explain?pretty
{
  "indices" : {
    ".ds-index-name-2022.01.12-000001" : {
      "index" : ".ds-index-name-2022.01.12-000001",
      "managed" : true,
      "policy" : "index-policies",
      "step_info" : {
        "type" : "illegal_argument_exception",
        "reason" : "policy [index-policies] does not exist"
      }
    }
  }

```

---

<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:** [September 19, 2022, 10:25am UTC](https://discuss.elastic.co/t/index-template-shows-a-policy-that-doesnt-exist/312598/2 "2022-09-19T10:25:47Z")

</div>

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