# TypeError: Cannot read property 'aggConfig' of undefined

**URL:** https://discuss.elastic.co/t/typeerror-cannot-read-property-aggconfig-of-undefined/157945
**Category:** Kibana
**Created:** [November 22, 2018, 10:17pm UTC](https://discuss.elastic.co/t/typeerror-cannot-read-property-aggconfig-of-undefined/157945 "2018-11-22T22:17:30Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![flalar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/flalar/32/85777_2.png) [@flalar](https://discuss.elastic.co/u/flalar)
#### Post date: [November 22, 2018, 10:17pm UTC](https://discuss.elastic.co/t/typeerror-cannot-read-property-aggconfig-of-undefined/157945/1 "2018-11-22T22:17:30Z")

</div>

After upgrade from 6.4 to 6.5 we get the following warning when loading a dashboard consisting of some pie and heatmap visualisations

```
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: false, _useUTC: false, _l: undefined, _i: now-4h, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (http://kibana.xxxx.local:5601/bundles/vendors.bundle.js:208:161744)
    at Yt (http://kibana.xxxx.local:5601/bundles/vendors.bundle.js:208:179695)
    at Ot (http://kibana.xxxx.local:5601/bundles/vendors.bundle.js:208:180406)
    at Tt (http://kibana.xxxx.local:5601/bundles/vendors.bundle.js:208:180488)
    at n (http://kibana.xxxx.local:5601/bundles/vendors.bundle.js:208:158585)
    at Function.convertTimeToUTCString (http://kibana.xxxx.local:5601/bundles/commons.bundle.js:3:397275)
    at DashboardStateManager.handleTimeChange (http://kibana.xxxx.local:5601/bundles/commons.bundle.js:3:2898432)
    at controller (http://kibana.xxxx.local:5601/bundles/commons.bundle.js:3:2882333)
    at Object.invoke (http://kibana.xxxx.local:5601/bundles/vendors.bundle.js:277:53092)
    at $controllerInit (http://kibana.xxxx.local:5601/bundles/vendors.bundle.js:277:120876)
    at nodeLinkFn (http://kibana.xxxx.local:5601/bundles/vendors.bundle.js:277:99972)
    at compositeLinkFn (http://kibana.xxxx.local:5601/bundles/vendors.bundle.js:277:85277)
    at publicLinkFn (http://kibana.xxxx.local:5601/bundles/vendors.bundle.js:277:82884)
    at Object.link (http://kibana.xxxx.local:5601/bundles/vendors.bundle.js:304:7516)
    at http://kibana.xxxx.local:5601/bundles/vendors.bundle.js:277:11954
    at invokeLinkFn (http://kibana.xxxx.local:5601/bundles/vendors.bundle.js:277:114094)

```

malformed filter agg params, missing "query" on input

Then when clicking in the pie visualization to further apply filters nothing happens and we get this error on the console.

```
TypeError: Cannot read property 'aggConfig' of undefined
    at Object.createFilter (commons.bundle.js:3)
    at Function.filter (commons.bundle.js:3)
    at commons.bundle.js:3
    at processQueue (vendors.bundle.js:277)
    at vendors.bundle.js:277
    at Scope.$digest (vendors.bundle.js:277)
    at vendors.bundle.js:277
    at completeOutstandingRequest (vendors.bundle.js:277)
    at vendors.bundle.js:277 "Possibly unhandled rejection: {}"

```

Clicking the heatmap visualization this error pops out on the console.

```
TypeError: Cannot read property '$parent' of undefined
    at Function.filter (commons.bundle.js:3)
    at commons.bundle.js:3
    at processQueue (vendors.bundle.js:277)
    at vendors.bundle.js:277
    at Scope.$digest (vendors.bundle.js:277)
    at vendors.bundle.js:277
    at completeOutstandingRequest (vendors.bundle.js:277)
    at vendors.bundle.js:277 "Possibly unhandled rejection: {}"

```

When downgrading back to 6.4 everything works great again.

Is it a bug in Kibana 6.5 or something we've done very wrong?

---

<div class="post-metadata">

### Author: ![bhavyarm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bhavyarm/32/22392_2.png) [@bhavyarm](https://discuss.elastic.co/u/bhavyarm)
#### Post date: [November 23, 2018, 2:23pm UTC](https://discuss.elastic.co/t/typeerror-cannot-read-property-aggconfig-of-undefined/157945/2 "2018-11-23T14:23:38Z")

</div>

Hello,

It looks similar to this bug logged: [https://github.com/elastic/kibana/issues/23532](https://github.com/elastic/kibana/issues/23532)

@timroes can they safely keep using 6.5 in spite of this?

Thanks,  
Bhavya

---

<div class="post-metadata">

### Author: ![timroes](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/timroes/32/19712_2.png) [@timroes](https://discuss.elastic.co/u/timroes)
#### Post date: [November 23, 2018, 2:37pm UTC](https://discuss.elastic.co/t/typeerror-cannot-read-property-aggconfig-of-undefined/157945/3 "2018-11-23T14:37:26Z")

</div>

I think that's a different issue. @flalar Please create an issue for that on GitHub. Please also narrow down which of the visualizations on the dashboard is throwing that and attach the saved object of that visualization.

---

<div class="post-metadata">

### Author: ![flalar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/flalar/32/85777_2.png) [@flalar](https://discuss.elastic.co/u/flalar)
#### Post date: [November 25, 2018, 7:01pm UTC](https://discuss.elastic.co/t/typeerror-cannot-read-property-aggconfig-of-undefined/157945/4 "2018-11-25T19:01:04Z")

</div>

Will do

---

<div class="post-metadata">

### Author: ![flalar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/flalar/32/85777_2.png) [@flalar](https://discuss.elastic.co/u/flalar)
#### Post date: [November 27, 2018, 8:23pm UTC](https://discuss.elastic.co/t/typeerror-cannot-read-property-aggconfig-of-undefined/157945/5 "2018-11-27T20:23:31Z")

</div>

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

---

<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 25, 2018, 8:23pm UTC](https://discuss.elastic.co/t/typeerror-cannot-read-property-aggconfig-of-undefined/157945/6 "2018-12-25T20:23:39Z")

</div>

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