Unable to Delete Copied Dashboard Panel

I have copied a from one dashboard to another. Than I have deleted original panel from first dashboard.
Options > more > Delete from dashboard is not visible in editing mode. So, I am unable to delete it. (see screenshot)

kibana
This is the options dropdown in editing mode.

Hey! Are you sure that you are on the edit mode? The icon should be a gear, this is why I am asking

Yes I am in edit mode. Icons on the ohter panels are gears except this one.

Interesting, I cant replicate it. Which kibana version are you using? Also can you give me more details about the panel you are trying to delete? Is it a Lens viz or something else?

I am using v 7.12.0 and the panel is a Lens panel.
I have copied this panel from another dashboard and deleted the original panel. Creating another copt of this panel aslo moves the issue to the copied panel

I tried to replicate this on v 7.17.1, exactly the same mentioned by @Bartu_Gokalp. However, I am not able to replicate it.

I am able to delete the copied panel even after deleting the original panel.

I can't also replicate it in 7.12 so I guess that it might be related to the specific visualization.

@Bartu_Gokalp does it happen for all the panels or only this one?

Can you give me more information about the visualization? Have you set drilldowns? Maybe you could share the viz and dashboard saved objects in order to try to create the same viz and understand what is going wrong here.

To share the saved object go to Stack Management --> Saved objects, search for your viz and dashboard, select them and click Export.

Hi,
It happens only for this one panel. It does not have any drilldowns.
When I try same vizualization with a different Lens panel this issue does not repeat.

Since I am not allowed to share whole dashboard, I have copied the issued panel into another dashboard and exported it below.

{"attributes":{"description":"","hits":0,"kibanaSavedObjectMeta":{"searchSourceJSON":"{\"query\":{\"query\":\"\",\"language\":\"kuery\"},\"filter\":[]}"},"optionsJSON":"{\"useMargins\":true,\"hidePanelTitles\":false}","panelsJSON":"[{\"version\":\"7.12.0\",\"type\":\"lens\",\"gridData\":{\"x\":0,\"y\":0,\"w\":24,\"h\":15,\"i\":\"aa2b5004-f115-4565-a26a-0c9f5e46d5ec\"},\"panelIndex\":\"aa2b5004-f115-4565-a26a-0c9f5e46d5ec\",\"embeddableConfig\":{\"viewMode\":\"view\",\"filters\":[],\"hidePanelTitles\":false,\"query\":{\"language\":\"kuery\",\"query\":\"\"},\"timeRange\":{\"from\":\"now-7d\",\"to\":\"now\"},\"refreshConfig\":{\"value\":0,\"pause\":true},\"searchSessionId\":\"b757d3f0-1298-48de-be69-5bf4e538c82e\",\"syncColors\":true,\"attributes\":{\"title\":\"\",\"type\":\"lens\",\"visualizationType\":\"lnsXY\",\"state\":{\"datasourceStates\":{\"indexpattern\":{\"layers\":{\"0bdddee9-20e1-4eeb-b457-f58ba3995806\":{\"columns\":{\"4d9f39fd-766c-47ce-9fca-bcd08778c277\":{\"label\":\"Top values of updatedBy\",\"dataType\":\"string\",\"operationType\":\"terms\",\"scale\":\"ordinal\",\"sourceField\":\"updatedBy\",\"isBucketed\":true,\"params\":{\"size\":15,\"orderBy\":{\"type\":\"column\",\"columnId\":\"ed42aae5-acd9-4660-851b-08d8cbe0d7e4\"},\"orderDirection\":\"desc\",\"otherBucket\":false,\"missingBucket\":false},\"customLabel\":true},\"ed42aae5-acd9-4660-851b-08d8cbe0d7e4\":{\"label\":\"Count of Records\",\"dataType\":\"number\",\"operationType\":\"cardinality\",\"scale\":\"ratio\",\"sourceField\":\"updatedAt\",\"isBucketed\":false,\"customLabel\":true},\"fddf41e6-a37e-4f38-8a16-38992a482029\":{\"label\":\"isActive\",\"dataType\":\"boolean\",\"operationType\":\"terms\",\"scale\":\"ordinal\",\"sourceField\":\"isActive\",\"isBucketed\":true,\"params\":{\"size\":3,\"orderBy\":{\"type\":\"column\",\"columnId\":\"ed42aae5-acd9-4660-851b-08d8cbe0d7e4\"},\"orderDirection\":\"desc\",\"otherBucket\":true,\"missingBucket\":false},\"customLabel\":true}},\"columnOrder\":[\"4d9f39fd-766c-47ce-9fca-bcd08778c277\",\"fddf41e6-a37e-4f38-8a16-38992a482029\",\"ed42aae5-acd9-4660-851b-08d8cbe0d7e4\"],\"incompleteColumns\":{}}}}},\"visualization\":{\"legend\":{\"isVisible\":true,\"position\":\"right\"},\"valueLabels\":\"hide\",\"fittingFunction\":\"None\",\"axisTitlesVisibilitySettings\":{\"x\":true,\"yLeft\":true,\"yRight\":true},\"tickLabelsVisibilitySettings\":{\"x\":true,\"yLeft\":true,\"yRight\":true},\"gridlinesVisibilitySettings\":{\"x\":true,\"yLeft\":true,\"yRight\":true},\"preferredSeriesType\":\"bar_horizontal\",\"layers\":[{\"layerId\":\"0bdddee9-20e1-4eeb-b457-f58ba3995806\",\"accessors\":[\"ed42aae5-acd9-4660-851b-08d8cbe0d7e4\"],\"position\":\"top\",\"seriesType\":\"bar_horizontal\",\"showGridlines\":false,\"xAccessor\":\"4d9f39fd-766c-47ce-9fca-bcd08778c277\",\"splitAccessor\":\"fddf41e6-a37e-4f38-8a16-38992a482029\"}]},\"query\":{\"query\":\"\",\"language\":\"kuery\"},\"filters\":[{\"meta\":{\"alias\":null,\"negate\":true,\"disabled\":false,\"type\":\"phrase\",\"key\":\"updatedBy\",\"params\":{\"query\":\"ByHangfire\"},\"indexRefName\":\"filter-index-pattern-0\"},\"query\":{\"match_phrase\":{\"updatedBy\":\"ByHangfire\"}},\"$state\":{\"store\":\"appState\"}}]},\"references\":[{\"type\":\"index-pattern\",\"id\":\"694bb570-bc8e-11ec-9685-6923345c3493\",\"name\":\"indexpattern-datasource-current-indexpattern\"},{\"type\":\"index-pattern\",\"id\":\"694bb570-bc8e-11ec-9685-6923345c3493\",\"name\":\"indexpattern-datasource-layer-0bdddee9-20e1-4eeb-b457-f58ba3995806\"},{\"name\":\"filter-index-pattern-0\",\"type\":\"index-pattern\",\"id\":\"694bb570-bc8e-11ec-9685-6923345c3493\"}]},\"enhancements\":{}}}]","timeRestore":false,"title":"test","version":1},"coreMigrationVersion":"7.12.0","id":"678223b0-bfe9-11ec-9685-6923345c3493","migrationVersion":{"dashboard":"7.11.0"},"references":[{"id":"694bb570-bc8e-11ec-9685-6923345c3493","name":"indexpattern-datasource-current-indexpattern","type":"index-pattern"},{"id":"694bb570-bc8e-11ec-9685-6923345c3493","name":"indexpattern-datasource-layer-0bdddee9-20e1-4eeb-b457-f58ba3995806","type":"index-pattern"},{"id":"694bb570-bc8e-11ec-9685-6923345c3493","name":"filter-index-pattern-0","type":"index-pattern"}],"type":"dashboard","updated_at":"2022-04-19T14:02:52.651Z","version":"WzMyMTk1LDdd"}
{"exportedCount":1,"missingRefCount":0,"missingReferences":[]}

I tried to create a lens viz with your configuration and still can't replicate the issue. I see that you are using a filter on your visualization, correct? Can you remove the filter and try again? I want to be sure that this is not the root of the problem.
Can you also send me a screenshot of the viz when you are editing this in Lens?

Since this panel does not shift to edit mode, I cannot edit Lens viz and remove the filter from it. I am only able to set a customized time range for it currently. When I do, it works as expected, but it does not affect the problem, I think.

Can you try to re-create it? (just for testing) but without the filter pill and check if it works as expected?

Yes panel works just fine with and without filter when I re-created it.

Interesting, I really cant understand what went wrong here and I cant replicate it on my instance.

Only possible solution as far as I can see is re-creating whole dashboard and deleting issued one.

I came accross the same issue with Kibana 7.12.0
The copied viz is not editable any more in the target dashboard
The only solution i got is to export the saved object, removed that copied viz and import it again, i can't rebuild the dashboard from scratch as it contains multiple viz

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