# "Could not find the data view" error

**URL:** https://discuss.elastic.co/t/could-not-find-the-data-view-error/364143
**Category:** Elastic Training
**Created:** [July 31, 2024, 2:55pm UTC](https://discuss.elastic.co/t/could-not-find-the-data-view-error/364143 "2024-07-31T14:55:50Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![MeandraX](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/meandrax/32/136421_2.png) [@MeandraX](https://discuss.elastic.co/u/MeandraX)
#### Post date: [July 31, 2024, 2:55pm UTC](https://discuss.elastic.co/t/could-not-find-the-data-view-error/364143/1 "2024-07-31T14:55:50Z")

</div>

hello everyone,  
I was working on the test environment of the “Data Analysis with Kibana (On-Demand)” course creating dashboards. Coming to a certain point in the course, restarting the lab with Kibana, I can no longer see any of the things I created. The error in front of me is “Could not find data view.”  
What is this error due to?

 ![Screenshot 2024-07-30 112231](https://us1.discourse-cdn.com/elastic/original/3X/0/3/035053667f0bb284d3de9abb9995fe204a529f7d.png)

---

<div class="post-metadata">

### Author: ![jessgarson](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jessgarson/32/129841_2.png) [@jessgarson](https://discuss.elastic.co/u/jessgarson)
#### Post date: [July 31, 2024, 3:46pm UTC](https://discuss.elastic.co/t/could-not-find-the-data-view-error/364143/2 "2024-07-31T15:46:24Z")

</div>

From #Kibana to #Elastic Training

---

<div class="post-metadata">

### Author: ![TimBosman](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/timbosman/32/84120_2.png) [@TimBosman](https://discuss.elastic.co/u/TimBosman)
#### Post date: [July 31, 2024, 4:41pm UTC](https://discuss.elastic.co/t/could-not-find-the-data-view-error/364143/3 "2024-07-31T16:41:54Z")

</div>

Hey MeandraX,

Welcome to the forum. This error is caused by a deleted data view. If you want to solve the problem:

1. First copy the ID of the data view. This is the string after `Could not find the data view:` in your screenshot.
2. Go to Stack management -\> Data views -\> create data view
3. Go to advanced settings and paste your Custom data view ID from step 1
4. Set the index pattern to the correct indices (I assume `kibana_sample_data_logs*`)
5. Click `Save data view to Kibana`

This should solve your issue, Let me know if it does or does not,

Tim

---

<div class="post-metadata">

### Author: ![MeandraX](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/meandrax/32/136421_2.png) [@MeandraX](https://discuss.elastic.co/u/MeandraX)
#### Post date: [August 1, 2024, 9:16am UTC](https://discuss.elastic.co/t/could-not-find-the-data-view-error/364143/4 "2024-08-01T09:16:42Z")

</div>

![Screenshot 2024-08-01 111517](https://us1.discourse-cdn.com/elastic/original/3X/8/8/88e6809d57e3550479d09e53b6e8a6f127982a1c.png)  
Hello everyone and thanks for the quick response.  
However, I am still facing problems. I performed the procedure as indicated but the error it gives me is "Failed to save data view."  
I am attaching photos of the configuration.

---

<div class="post-metadata">

### Author: ![TimBosman](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/timbosman/32/84120_2.png) [@TimBosman](https://discuss.elastic.co/u/TimBosman)
#### Post date: [August 1, 2024, 2:35pm UTC](https://discuss.elastic.co/t/could-not-find-the-data-view-error/364143/5 "2024-08-01T14:35:51Z")

</div>

I'm trying to understand why it would not be able to save the data view. Could it be possible that the data view id is already existing somewhere. (the ID on the last picture is not matching the ones of your dashboard.
