# JavaScript 'undefined' Error

**URL:** <https://discuss.elastic.co/t/javascript-undefined-error/42153>\
**Category:** Kibana\
**Created:** [February 18, 2016, 4:00pm UTC](https://discuss.elastic.co/t/javascript-undefined-error/42153 "2016-02-18T16:00:56Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Chris\_Decker](https://avatars.discourse-cdn.com/v4/letter/c/bbce88/32.png) [@Chris\_Decker](https://discuss.elastic.co/u/Chris_Decker)\
**Post date:** [February 18, 2016, 4:00pm UTC](https://discuss.elastic.co/t/javascript-undefined-error/42153/1 "2016-02-18T16:00:56Z")

</div>

In commons.bundle.js:39568 I will occasionally receive the following error when trying to add a filter from a saved search within a Dashboard:

Error: undefined is not an object (evaluating 'fieldName')  
[https://hostname.removed.com/bundles/kibana.bundle.js?v=9689:99735:49](https://hostname.removed.com/bundles/kibana.bundle.js?v=9689:99735:49)  
baseFindIndex@[https://hostname.removed.com/bundles/commons.bundle.js?v=9689:5719:21](https://hostname.removed.com/bundles/commons.bundle.js?v=9689:5719:21)  
[https://hostname.removed.com/bundles/commons.bundle.js?v=9689:8634:37](https://hostname.removed.com/bundles/commons.bundle.js?v=9689:8634:37)  
[https://hostname.removed.com/bundles/kibana.bundle.js?v=9689:99727:31](https://hostname.removed.com/bundles/kibana.bundle.js?v=9689:99727:31)  
arrayEach@[https://hostname.removed.com/bundles/commons.bundle.js?v=9689:6682:22](https://hostname.removed.com/bundles/commons.bundle.js?v=9689:6682:22)  
[https://hostname.removed.com/bundles/commons.bundle.js?v=9689:8738:23](https://hostname.removed.com/bundles/commons.bundle.js?v=9689:8738:23)  
add@[https://hostname.removed.com/bundles/kibana.bundle.js?v=9689:99725:14](https://hostname.removed.com/bundles/kibana.bundle.js?v=9689:99725:14)  
filter@[https://hostname.removed.com/bundles/kibana.bundle.js?v=9689:102794:33](https://hostname.removed.com/bundles/kibana.bundle.js?v=9689:102794:33)  
fn  
callback@[https://hostname.removed.com/bundles/commons.bundle.js?v=9689:50640:20](https://hostname.removed.com/bundles/commons.bundle.js?v=9689:50640:20)  
$eval@[https://hostname.removed.com/bundles/commons.bundle.js?v=9689:43080:29](https://hostname.removed.com/bundles/commons.bundle.js?v=9689:43080:29)  
$apply@[https://hostname.removed.com/bundles/commons.bundle.js?v=9689:43180:31](https://hostname.removed.com/bundles/commons.bundle.js?v=9689:43180:31)  
[https://hostname.removed.com/bundles/commons.bundle.js?v=9689:50645:30](https://hostname.removed.com/bundles/commons.bundle.js?v=9689:50645:30)  
dispatch@[https://hostname.removed.com/bundles/commons.bundle.js?v=9689:22266:15](https://hostname.removed.com/bundles/commons.bundle.js?v=9689:22266:15)  
handle@[https://hostname.removed.com/bundles/commons.bundle.js?v=9689:21952:34](https://hostname.removed.com/bundles/commons.bundle.js?v=9689:21952:34)

Has anyone else ever experienced this issue?

I'm using Kibana Version 4.4.0, Build 9689.

---

<div class="post-metadata">

**Author:** ![Chris\_Decker](https://avatars.discourse-cdn.com/v4/letter/c/bbce88/32.png) [@Chris\_Decker](https://discuss.elastic.co/u/Chris_Decker)\
**Post date:** [February 18, 2016, 5:27pm UTC](https://discuss.elastic.co/t/javascript-undefined-error/42153/2 "2016-02-18T17:27:10Z")

</div>

I've noticed that the issue appears to go away if I 'pin' some of the filters in my search.

---

<div class="post-metadata">

**Author:** ![tbragin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tbragin/32/45166_2.png) [@tbragin](https://discuss.elastic.co/u/tbragin)\
**Post date:** [February 19, 2016, 2:16pm UTC](https://discuss.elastic.co/t/javascript-undefined-error/42153/3 "2016-02-19T14:16:58Z")

</div>

If you haven't modified the product in any way, this seems like a bug, or at least an error that could be better handled. I'd report it on Github and see what the devs say. [https://github.com/elastic/kibana/issues](https://github.com/elastic/kibana/issues)

I actually already see similar reports:

> <https://github.com/elastic/kibana/issues/6254>

  

> <https://github.com/elastic/kibana/issues/6253>

---

<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:** [July 6, 2017, 2:01pm UTC](https://discuss.elastic.co/t/javascript-undefined-error/42153/4 "2017-07-06T14:01:39Z")

</div>


