# Es delete the index and rebuild, but the visualize in kibana shows an exception, can not find the index id, can not be restored

**URL:** https://discuss.elastic.co/t/es-delete-the-index-and-rebuild-but-the-visualize-in-kibana-shows-an-exception-can-not-find-the-index-id-can-not-be-restored/152833
**Category:** Kibana
**Created:** [October 17, 2018, 12:31pm UTC](https://discuss.elastic.co/t/es-delete-the-index-and-rebuild-but-the-visualize-in-kibana-shows-an-exception-can-not-find-the-index-id-can-not-be-restored/152833 "2018-10-17T12:31:41Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![sun\_changlong](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sun_changlong/32/39036_2.png) [@sun\_changlong](https://discuss.elastic.co/u/sun_changlong)
#### Post date: [October 17, 2018, 12:31pm UTC](https://discuss.elastic.co/t/es-delete-the-index-and-rebuild-but-the-visualize-in-kibana-shows-an-exception-can-not-find-the-index-id-can-not-be-restored/152833/1 "2018-10-17T12:31:41Z")

</div>

I accidentally deleted the index in es and recreated it again. However, the visualize saved in kibana shows an exception. I deleted the corresponding index in kibana and rebuilt it, but visualize still reports an error.

> Could not locate that index-pattern (id: cf21a5d0-b4d6-11e8-9b47-61785a9cca0e), click here to re-create it

How can I fix the corresponding visualize without rebuilding?

---

<div class="post-metadata">

### Author: ![azasypkin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/azasypkin/32/42216_2.png) [@azasypkin](https://discuss.elastic.co/u/azasypkin)
#### Post date: [October 17, 2018, 1:00pm UTC](https://discuss.elastic.co/t/es-delete-the-index-and-rebuild-but-the-visualize-in-kibana-shows-an-exception-can-not-find-the-index-id-can-not-be-restored/152833/2 "2018-10-17T13:00:38Z")

</div>

Hi @sun_changlong,

I think you can go to `Management -> Saved Objects`, select your visualization/dasboard/whatever and edit index id in `kibanaSavedObjectMeta.searchSourceJSON` field.

Best,  
Oleg

---

<div class="post-metadata">

### Author: ![sun\_changlong](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sun_changlong/32/39036_2.png) [@sun\_changlong](https://discuss.elastic.co/u/sun_changlong)
#### Post date: [October 18, 2018, 1:25am UTC](https://discuss.elastic.co/t/es-delete-the-index-and-rebuild-but-the-visualize-in-kibana-shows-an-exception-can-not-find-the-index-id-can-not-be-restored/152833/3 "2018-10-18T01:25:51Z")

</div>

Thanks, I will try. I solved this problem using the Custom index pattern ID in the Create index pattern.

---

<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: [November 15, 2018, 1:25am UTC](https://discuss.elastic.co/t/es-delete-the-index-and-rebuild-but-the-visualize-in-kibana-shows-an-exception-can-not-find-the-index-id-can-not-be-restored/152833/4 "2018-11-15T01:25:52Z")

</div>

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