Visualization issue in Kibana dashboard after upgrade to v8.17.1

Hello,

I have an issue with some visualization objects after we upgraded Kibana to v8.17.1.

I created a dashboard when Kibana was v8.15.3.

The dashboard contained multiple objects such as TSVB (markdown), Vega, lens (metric, line and gauge).

After we upgraded to v8.17.1, the TSVB (markdown) and Vega
started to show the following message while editing the dashboard:

I thought first because the markdown was already created before the upgrade, it got affected. But, I tried to create a new TSVB (markdown) object, and it showed the same error while editing the dashboard.

This error appears also when I create a duplicate of the TSVB (markdown) object. After I created a duplicate, I edited/updated the text, saved it and went back to the dashboard. Instead of seeing the new text, I see the error.

The same happened with Vega. Suddenly, it disappears and shows this message.

I had to remove these objects whenever they show this message and import them again multiple times from the library which is not convenient.

This happens randomly whenever I edit the dashboard (not everytime). Eventually I was able to update my dashboard but after multiple times of removing these objects and importing them again. Maybe there is an issue with the "Edit" functionality of the dashboard? Is this a bug in the new release?

Thank you.

Sorry for the inconvenience.

It seems you are hitting this issue, I'll put a comment there referencing to this post, in case there are details you shared useful to the engineers.

Thank you for your reply.

I understand that there is no solution for this issue yet?

Regards,

There's an open Pull Request to fix this issue, you can check on the labels the expected versions will get it

Hi,

I wanted to bring to your attention that the above issue seems to persist in version 8.18.1. After upgrading from 8.12.1 to 8.18.1, I've encountered problems when creating dashboards with multiple visualization objects. Occasionally, the dashboard becomes corrupted, even when creating entirely new visualization objects or duplicating existing ones. The errors I receive vary, including "Invalid Visualization Type," "Visualization lens not found," and "Cannot read properties of undefined (reading 'filters')."

These errors occur randomly, and I haven't been able to consistently reproduce them. For your information, I'm not saving the visualization lens in the library; instead, I'm embedding, editing, and saving it directly. I'm hoping for a resolution to this issue, but I'm unsure how to formally report it without a clear method to recreate the problem.

Thank You

I have the same issue after the upgrade. It's hard to replicate but it happens often. I also get a similar issue with all my map layers suddenly disappearing from the map (except the base layer). My workaround here is to hit the back browser button multiple times until an instance appears whereby the map layers return.

@Vishal_Reddy_P @Cory34 are either of you using lab setting Defer loading panels below the fold Lab? There is a known issue, panel state lost if dashboard saved and panel is not initialized, where panel state could be lost on save with "Defer loading panels below the fold Lab". A fix has been pushed in 8.18.2

Hi Nathan, I'm aware of that feature but don't use it. Thanks.

@Nathan_Reese , Yes, I do have the "Defer loading panels below the fold (Lab)" setting enabled but for only Kibana. Based on what you've shared it seems likely that this setting could be causing the issue, especially if the panel state is lost saving before initialization.

Thank you