# Saved Objects: Cannot read property 'byName' of undefined

**URL:** <https://discuss.elastic.co/t/saved-objects-cannot-read-property-byname-of-undefined/47870>\
**Category:** Kibana\
**Created:** [April 20, 2016, 7:54am UTC](https://discuss.elastic.co/t/saved-objects-cannot-read-property-byname-of-undefined/47870 "2016-04-20T07:54:09Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rajeev\_Gaurav](https://avatars.discourse-cdn.com/v4/letter/r/3d9bf3/32.png) [@Rajeev\_Gaurav](https://discuss.elastic.co/u/Rajeev_Gaurav)\
**Post date:** [April 20, 2016, 7:54am UTC](https://discuss.elastic.co/t/saved-objects-cannot-read-property-byname-of-undefined/47870/1 "2016-04-20T07:54:09Z")

</div>

Hi,

I am getting above error "Saved Objects: Cannot read property 'byName' of undefined" . when I import json file containing dashboard and visualization it shows above error.But when I import it again , I am able to see dashboard without any error. Can you please suggest some points . My ELK configuration is Elastic search 2.2.1 and logstash 2.2.1 and kibana 4.4.2.

Errro in Detail:

Saved Objects: Cannot read property 'byName' of undefined  
OK  
TypeError: Cannot read property 'byName' of undefined  
at FieldAggParamFactory.FieldAggParam.deserialize (http://:5601/bundles/kibana.bundle.js?v=9732:84771:53)  
at http://:5601/bundles/kibana.bundle.js?v=9732:90104:29  
at Array.forEach (native)  
at AggConfigFactory.AggConfig.fillDefaults (http://:5601/bundles/kibana.bundle.js?v=9732:90082:28)  
at new AggConfig (http://:5601/bundles/kibana.bundle.js?v=9732:89996:13)  
at http://:5601/bundles/kibana.bundle.js?v=9732:90695:19  
at Array.map (native)  
at new AggConfigs (http://:5601/bundles/kibana.bundle.js?v=9732:90693:35)  
at VisFactory.Vis.setState (http://:5601/bundles/kibana.bundle.js?v=9732:84236:20)  
at SavedVis.\_updateVis (http://:5601/bundles/kibana.bundle.js?v=9732:92582:17)

Also let me know from from where I can get correct endpoint for Kibana 4 as I am not able find config page and also how can I find my cluster id so that I can tell you for more help. Please help @beiske@alexbrasetvik

Thanks,  
Rajeev

---

<div class="post-metadata">

**Author:** ![beiske](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/beiske/32/4042_2.png) [@beiske](https://discuss.elastic.co/u/beiske)\
**Post date:** [April 20, 2016, 8:40am UTC](https://discuss.elastic.co/t/saved-objects-cannot-read-property-byname-of-undefined/47870/2 "2016-04-20T08:40:29Z")

</div>

Hi Rajev  
Cluster id's and Kibana 4 endpoints are only relevant when running Elasticsearch and Kibana on Elastic Cloud. It appears you don't, but if you do here is the required steps:

### To find your cluster id:

- Sign in to [https://cloud.elastic.co/](https://cloud.elastic.co/)
- Click on clusters in the top menu
- Select your cluster in the left menu if it is not already expanded
- Click on overview for your cluster in the left menu
- At the top of the overview page there is an Endpoint section. Look for the a sentence like: `Please provide the cluster ID "......" when contacting support about your cluster.`

### To find you Kibana 4 endpoint

Kibana 4 requires running a server and is not enabled by default.

- Perform the same first three steps as above
- Click on configuration in the left hand menu
- Scroll down to the "Kibana 4" - section
- Select the version you want in the drop down menu and click update
- Wait a few seconds for your Kibana instance to start and the url for your Kibana instance will appear here.

Best regards  
Konrad Beiske  
Software Engineer  
Elastic

---

<div class="post-metadata">

**Author:** ![Rajeev\_Gaurav](https://avatars.discourse-cdn.com/v4/letter/r/3d9bf3/32.png) [@Rajeev\_Gaurav](https://discuss.elastic.co/u/Rajeev_Gaurav)\
**Post date:** [April 20, 2016, 11:23am UTC](https://discuss.elastic.co/t/saved-objects-cannot-read-property-byname-of-undefined/47870/3 "2016-04-20T11:23:59Z")

</div>

No I am not running Elasticsearch and Kibana on Elastic Cloud..  
So can you help me in resolving above error "Saved Objects: Cannot read property 'byName' of undefined" of kibana as earlier I was able to import json and also when I try to import json for second time it didn'6t show any error. @beiske

---

<div class="post-metadata">

**Author:** ![Rajeev\_Gaurav](https://avatars.discourse-cdn.com/v4/letter/r/3d9bf3/32.png) [@Rajeev\_Gaurav](https://discuss.elastic.co/u/Rajeev_Gaurav)\
**Post date:** [May 18, 2016, 1:25pm UTC](https://discuss.elastic.co/t/saved-objects-cannot-read-property-byname-of-undefined/47870/4 "2016-05-18T13:25:48Z")

</div>

Kindly suggest some points asap.

---

<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, 1:53pm UTC](https://discuss.elastic.co/t/saved-objects-cannot-read-property-byname-of-undefined/47870/5 "2017-07-06T13:53:01Z")

</div>


