# Export/Import Saved objects

**URL:** <https://discuss.elastic.co/t/export-import-saved-objects/256148>\
**Category:** Kibana\
**Created:** [November 20, 2020, 3:54pm UTC](https://discuss.elastic.co/t/export-import-saved-objects/256148 "2020-11-20T15:54:40Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![alfredo.deluca](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alfredo.deluca/32/95381_2.png) [@alfredo.deluca](https://discuss.elastic.co/u/alfredo.deluca)\
**Post date:** [November 20, 2020, 3:54pm UTC](https://discuss.elastic.co/t/export-import-saved-objects/256148/1 "2020-11-20T15:54:40Z")

</div>

Hi all.  
I have 2 elastic installed. one is 7.7 and the second one is 7.8.  
Trying to export/import saved objects and specifically Visualizations but I got errors as per below when I do export

> Your file is downloading in the background. Some related objects could not be found. Please see the last line in the exported file for a list of missing objects.

Do you know why?

---

<div class="post-metadata">

**Author:** ![mattkime](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mattkime/32/43522_2.png) [@mattkime](https://discuss.elastic.co/u/mattkime)\
**Post date:** [November 21, 2020, 5:37am UTC](https://discuss.elastic.co/t/export-import-saved-objects/256148/2 "2020-11-21T05:37:53Z")

</div>

Hello @alfredo.deluca

It sounds like you have visualizations with references to saved objects that no longer exist. Perhaps if you post the last line of that export I can help you resolve the missing references.

Thanks,  
Matt

---

<div class="post-metadata">

**Author:** ![alfredo.deluca](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alfredo.deluca/32/95381_2.png) [@alfredo.deluca](https://discuss.elastic.co/u/alfredo.deluca)\
**Post date:** [November 22, 2020, 8:32am UTC](https://discuss.elastic.co/t/export-import-saved-objects/256148/3 "2020-11-22T08:32:49Z")

</div>

Thanks Matt.

I was looking into the json file and at the end I found the following

{"attributes":{"description":"Filebeat Icinga module dashboard for the main log files","hits":0,"kibanaSavedObjectMeta":{"searchSourceJSON":"{"query":{"language":"kuery","query":""},"version":true,"filter":,"highlightAll":true}"},"optionsJSON":"{"darkTheme": false}","panelsJSON":"[{"panelIndex":"1","panelRefName":"panel\_0","version":"7.3.0","gridData":{"x":24,"y":0,"w":24,"h":12,"i":"1"},"embeddableConfig":{}},{"panelIndex":"2","panelRefName":"panel\_1","version":"7.3.0","gridData":{"x":0,"y":12,"w":48,"h":100,"i":"2"},"embeddableConfig":{"columns":["icinga.main.facility","log.level","message"],"sort":["@timestamp","desc"]}},{"panelIndex":"3","panelRefName":"panel\_2","version":"7.3.0","gridData":{"x":0,"y":0,"w":24,"h":12,"i":"3"},"embeddableConfig":{}}]","timeRestore":false,"title":"[Filebeat Icinga] Main Log ECS","version":1},"id":"f693d260-2417-11e7-a83b-d5f4cebac9ff-ecs","migrationVersion":{"dashboard":"7.3.0"},"references":[{"id":"d8e5dc40-2417-11e7-a83b-d5f4cebac9ff-ecs","name":"panel\_0","type":"visualization"},{"id":"ffaf5a30-2413-11e7-a0d9-39604d45ca7f-ecs","name":"panel\_1","type":"search"},{"id":"2cf77780-2418-11e7-a83b-d5f4cebac9ff-ecs","name":"panel\_2","type":"visualization"}],"type":"dashboard","updated\_at":"2020-11-16T09:18:30.348Z","version":"WzIxOCwxXQ=="}  
**{"exportedCount":465,"missingRefCount":1,"missingReferences":[{"id":"674c44c0-1a8b-11eb-90aa-4f76e942edde","type":"visualization"}]}**

Then I searched for that Id and it's in the file .....so should I remove that line then the json will be fine to be imported?

Thanks Matt

Alfredo

---

<div class="post-metadata">

**Author:** ![mattkime](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mattkime/32/43522_2.png) [@mattkime](https://discuss.elastic.co/u/mattkime)\
**Post date:** [November 22, 2020, 11:04pm UTC](https://discuss.elastic.co/t/export-import-saved-objects/256148/4 "2020-11-22T23:04:43Z")

</div>

> [@alfredo.deluca](#):
>
> Then I searched for that Id and it's in the file .....so should I remove that line then the json will be fine to be imported?

Are you certain that its in the file as a saved object definition?

I suspect you could ignore the error and replace the visualization as needed in dashboards where its used.

--Matt

---

<div class="post-metadata">

**Author:** ![alfredo.deluca](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alfredo.deluca/32/95381_2.png) [@alfredo.deluca](https://discuss.elastic.co/u/alfredo.deluca)\
**Post date:** [November 23, 2020, 8:36am UTC](https://discuss.elastic.co/t/export-import-saved-objects/256148/5 "2020-11-23T08:36:27Z")

</div>

Hi Matt.  
yes the reference ID (674c44c0-1a8b-11eb-90aa-4f76e942edde) is in the same file as shown below:

{"attributes":{"description":"","hits":0,"kibanaSavedObjectMeta":{"searchSourceJSON":"{"query":{"language":"kuery","query":""},"filter":}"},"optionsJSON":"{"hidePanelTitles":false,"useMargins":true}","panelsJSON":"[{"version":"7.4.2","gridData":{"h":12,"i":"fb6bbeaf-4cd1-4f80-ad1c-60a1d4a7323c","w":19,"x":0,"y":0},"panelIndex":"fb6bbeaf-4cd1-4f80-ad1c-60a1d4a7323c","embeddableConfig":{"vis":{"defaultColors":{"0 - 50":"rgb(0,104,55)","50 - 75":"rgb(255,255,190)","75 - 100":"rgb(165,0,38)"},"legendOpen":true},"defaultColors":{"0 - 50":"rgb(0,104,55)","50 - 75":"rgb(255,255,190)","75 - 100":"rgb(165,0,38)"},"legendOpen":false},"panelRefName":"panel\_0"}]","timeRestore":false,"title":"Dashboard 1","version":1},"id":"1cff5050-1a8c-11eb-90aa-4f76e942edde","migrationVersion":{"dashboard":"7.3.0"},"references":[{"id":"674c44c0-1a8b-11eb-90aa-4f76e942edde","name":"panel\_0","type":"visualization"}],"type":"dashboard","updated\_at":"2020-11-18T14:44:35.274Z","version":"WzEwMjAsMV0="}

But if I ignored it I might not be able to import it in another instance.

Cheers

---

<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 21, 2020, 8:36am UTC](https://discuss.elastic.co/t/export-import-saved-objects/256148/6 "2020-12-21T08:36:29Z")

</div>

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