# Text Markdown visualization fails when copying to other spaces

**URL:** <https://discuss.elastic.co/t/text-markdown-visualization-fails-when-copying-to-other-spaces/317900>\
**Category:** Kibana\
**Created:** [November 1, 2022, 2:16pm UTC](https://discuss.elastic.co/t/text-markdown-visualization-fails-when-copying-to-other-spaces/317900 "2022-11-01T14:16:53Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![mmartinez](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mmartinez/32/106337_2.png) [@mmartinez](https://discuss.elastic.co/u/mmartinez)\
**Post date:** [November 1, 2022, 2:16pm UTC](https://discuss.elastic.co/t/text-markdown-visualization-fails-when-copying-to-other-spaces/317900/1 "2022-11-01T14:16:53Z")

</div>

Hello,

I have a Dashboard with a text visualization that I use to jump from that Dashboard to another.  
This is the markdown of the visualization:

```auto
[Nginx logs overview](#/dashboard/39ad9660-3e40-11ed-ab98-8766b05540f5) | [Nginx access and error logs](#/dashboard/a2038fa0-3ef7-11ed-ab98-8766b05540f5)

```

And this is the result:

 ![Screenshot 2022-11-01 at 15.03.18](https://us1.discourse-cdn.com/elastic/original/3X/9/1/91a29a52a3bba1c0f931b194630c9c809af55947.png)

The problem comes when I copy the Dashboard saved object and its related objects to a different space. The Dashboard shows all the visualizations as expected except for the text visualization. When I click over one of the two options it throws the following error:  
 ![Screenshot 2022-11-01 at 15.03.26](https://us1.discourse-cdn.com/elastic/original/3X/a/7/a78e5dff9e0ef834d581d39124075a1402875068.png)  
And this happens cause the dashboard object id changes to a new one like in this example:

```auto
{
  "id": "87847c97-89cd-44e3-9ae2-6aa2f358d7db",
  "type": "dashboard",
  "namespaces": [
    "moar"
  ],
  "originId": "39ad9660-3e40-11ed-ab98-8766b05540f5",

```

How could I avoid this issue when copying text visualizations to different spaces?

Thanks in advance

Mario

---

<div class="post-metadata">

**Author:** ![JLeysens](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jleysens/32/67404_2.png) [@JLeysens](https://discuss.elastic.co/u/JLeysens)\
**Post date:** [November 2, 2022, 9:23am UTC](https://discuss.elastic.co/t/text-markdown-visualization-fails-when-copying-to-other-spaces/317900/2 "2022-11-02T09:23:10Z")

</div>

Hi @mmartinez , I am not able to reproduce this behavior.

You mentioned "When I click over one of the two options it throws the following error", which two options are you referring to?

It does sound like a bug, so it might be worth [opening an issue](https://github.com/elastic/kibana/issues/new?assignees=&labels=bug&template=Bug_report.md) with all the steps on how to reproduce in a fresh environment.

---

<div class="post-metadata">

**Author:** ![mmartinez](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mmartinez/32/106337_2.png) [@mmartinez](https://discuss.elastic.co/u/mmartinez)\
**Post date:** [November 2, 2022, 10:03am UTC](https://discuss.elastic.co/t/text-markdown-visualization-fails-when-copying-to-other-spaces/317900/3 "2022-11-02T10:03:00Z")

</div>

Hi @JLeysens,

Those are the two options I'm referring to:

 ![Screenshot 2022-11-01 at 15.03.18](https://us1.discourse-cdn.com/elastic/original/3X/9/1/91a29a52a3bba1c0f931b194630c9c809af55947.png)

```auto
[Nginx logs overview](#/dashboard/39ad9660-3e40-11ed-ab98-8766b05540f5) | [Nginx access and error logs](#/dashboard/a2038fa0-3ef7-11ed-ab98-8766b05540f5)

```

I know why it fails but I don't know how to solve it.  
When I copy the Dashboards to other spaces, the object id pointing to that Dashboard changes and that's why it throws the error, because it cannot find the dashboard.

Use case:  
The object id of the `Nginx logs overview` dashboard is `39ad9660-3e40-11ed-ab98-8766b05540f5` and when I copy it to another space the id changes to `87847c97-89cd-44e3-9ae2-6aa2f358d7db`.

```auto
{
  "id": "87847c97-89cd-44e3-9ae2-6aa2f358d7db",
  "type": "dashboard",
  "namespaces": [
    "moar"
  ],
  "originId": "39ad9660-3e40-11ed-ab98-8766b05540f5",

```

Let me know if you think I should open an issue. Thanks

Regards

Mario

---

<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:** [November 28, 2022, 11:26pm UTC](https://discuss.elastic.co/t/text-markdown-visualization-fails-when-copying-to-other-spaces/317900/4 "2022-11-28T23:26:13Z")

</div>



---

<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 26, 2022, 11:26pm UTC](https://discuss.elastic.co/t/text-markdown-visualization-fails-when-copying-to-other-spaces/317900/5 "2022-12-26T23:26:39Z")

</div>

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