# Kibana visualization error after restoring the snapshot

**URL:** <https://discuss.elastic.co/t/kibana-visualization-error-after-restoring-the-snapshot/317265>\
**Category:** Kibana\
**Created:** [October 23, 2022, 4:34am UTC](https://discuss.elastic.co/t/kibana-visualization-error-after-restoring-the-snapshot/317265 "2022-10-23T04:34:08Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![not\_correct](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/not_correct/32/105273_2.png) [@not\_correct](https://discuss.elastic.co/u/not_correct)\
**Post date:** [October 23, 2022, 4:34am UTC](https://discuss.elastic.co/t/kibana-visualization-error-after-restoring-the-snapshot/317265/1 "2022-10-23T04:34:08Z")

</div>

Hi,  
I have restored ElaticSearch snapsot that been managed by another person, I get the followng error when it comes to kibana dashboards

> Text fields are not optimised for operations that require per-document field data like aggregations and sorting, so these operations are disabled by default. Please use a keyword field instead. Alternatively, set fielddata=true on [Ligne] in order to load field data by uninverting the inverted index. Note that this can use significant memory.

I understood it should be Ligne.keyword instead of Ligne, but te question for me how it is possible it was working fine before?

Finally when I change Ligne to Ligne.keyword I am getting:

> Can't get text on a VALUE\_NULL at 1:793

I am on the same version as before 7.16.3

Many thanks for your help

---

<div class="post-metadata">

**Author:** ![A\_Mightiev](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/a_mightiev/32/62186_2.png) [@A\_Mightiev](https://discuss.elastic.co/u/A_Mightiev)\
**Post date:** [October 23, 2022, 1:26pm UTC](https://discuss.elastic.co/t/kibana-visualization-error-after-restoring-the-snapshot/317265/2 "2022-10-23T13:26:17Z")

</div>

You should look at the index patterns, they should give some information if there's a mismatch on the mapping. Once you find the mismatch try reindexing with the correct mapping by setting a template.

---

<div class="post-metadata">

**Author:** ![not\_correct](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/not_correct/32/105273_2.png) [@not\_correct](https://discuss.elastic.co/u/not_correct)\
**Post date:** [October 23, 2022, 7:34pm UTC](https://discuss.elastic.co/t/kibana-visualization-error-after-restoring-the-snapshot/317265/3 "2022-10-23T19:34:12Z")

</div>

Hi,  
Thank you for your reply.  
I reviewed the index pattersn and the index mappings of the restored indices. There is no missmatch between them  
I am wondering if aggregation on text instead of keyword is possible since I have that in my original kibana visualization?

---

<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 18, 2022, 2:02pm UTC](https://discuss.elastic.co/t/kibana-visualization-error-after-restoring-the-snapshot/317265/4 "2022-11-18T14:02:12Z")

</div>



---

<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:** [December 16, 2022, 10:56am UTC](https://discuss.elastic.co/t/kibana-visualization-error-after-restoring-the-snapshot/317265/5 "2022-12-16T10:56:29Z")

</div>



---

<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:** [January 13, 2023, 7:10am UTC](https://discuss.elastic.co/t/kibana-visualization-error-after-restoring-the-snapshot/317265/6 "2023-01-13T07:10:44Z")

</div>



---

<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:** [February 10, 2023, 7:11am UTC](https://discuss.elastic.co/t/kibana-visualization-error-after-restoring-the-snapshot/317265/7 "2023-02-10T07:11:40Z")

</div>

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