# Error trying to edit v6 filters in v7

**URL:** <https://discuss.elastic.co/t/error-trying-to-edit-v6-filters-in-v7/177481>\
**Category:** Kibana\
**Created:** [April 18, 2019, 2:25pm UTC](https://discuss.elastic.co/t/error-trying-to-edit-v6-filters-in-v7/177481 "2019-04-18T14:25:43Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![jstewart\_lsa](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jstewart_lsa/32/43286_2.png) [@jstewart\_lsa](https://discuss.elastic.co/u/jstewart_lsa)\
**Post date:** [April 18, 2019, 2:25pm UTC](https://discuss.elastic.co/t/error-trying-to-edit-v6-filters-in-v7/177481/1 "2019-04-18T14:25:43Z")

</div>

I upgraded everything from v6 to v7. My existing searches seem to work fine, but when I attempt to edit the filter through the UI (click on filter, then "Edit filter") a "Something went wrong" page pops up with the error below. I've tried clearing my session. Works fine if I create a new search. I've even looked at the filter in Saved Objects and looks identical to a new ones I create. Any advice?

```
Uncaught TypeError: Cannot read property 'label' of undefined (https://<redacted>/built_assets/dlls/vendors.bundle.dll.js:203)

Version: 7.0.0
Build: 23117
Error: Uncaught TypeError: Cannot read property 'label' of undefined (https://<redacted>/built_assets/dlls/vendors.bundle.dll.js:203)
at window.onerror (https://<redacted>/bundles/commons.bundle.js:3:1029989)
```

---

<div class="post-metadata">

**Author:** ![jstewart\_lsa](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jstewart_lsa/32/43286_2.png) [@jstewart\_lsa](https://discuss.elastic.co/u/jstewart_lsa)\
**Post date:** [April 18, 2019, 4:18pm UTC](https://discuss.elastic.co/t/error-trying-to-edit-v6-filters-in-v7/177481/2 "2019-04-18T16:18:39Z")

</div>

Somehow the "\_references" for the filters was set to an invalid Index; I'm not sure how this happened. Exporting then doing find/replace on JSON and re-importing fixed it.

---

<div class="post-metadata">

**Author:** ![gekkeharry13](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gekkeharry13/32/35728_2.png) [@gekkeharry13](https://discuss.elastic.co/u/gekkeharry13)\
**Post date:** [May 4, 2019, 8:59pm UTC](https://discuss.elastic.co/t/error-trying-to-edit-v6-filters-in-v7/177481/3 "2019-05-04T20:59:59Z")

</div>

Hi James,

Can you ellaborate on this? Experiencing the same issue here.

---

<div class="post-metadata">

**Author:** ![jstewart\_lsa](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jstewart_lsa/32/43286_2.png) [@jstewart\_lsa](https://discuss.elastic.co/u/jstewart_lsa)\
**Post date:** [May 4, 2019, 9:24pm UTC](https://discuss.elastic.co/t/error-trying-to-edit-v6-filters-in-v7/177481/4 "2019-05-04T21:24:18Z")

</div>

I found this error also caused by invalid fields. I had switched from fluentd to filebeat and a few field names used in filters changed slightly. I had to export all of them and do find/replace until all fixed. Also checked all the index IDs. Reimported once fixed and eventually got it all working.

---

<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:** [June 1, 2019, 9:24pm UTC](https://discuss.elastic.co/t/error-trying-to-edit-v6-filters-in-v7/177481/5 "2019-06-01T21:24:21Z")

</div>

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