We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

The grouped shape could not be deleted, Please ungroup shapes first

Hello,

I have received this stack trace from Aspose:
Aspose.Cells.CellsException: The grouped shape could not be deleted, Please ungroup shapes first.\r\n at Aspose.Cells.Drawing.ShapeCollection.DeleteShape(Shape shape)\r\n at Aspose.Cells.Slicers.SlicerCache.\u0006 ()\r\n at \u0002​ .\u0008(SlicerCache \u0002)\r\n at Aspose.Cells.Tables.ListObject.\u0002 ()\r\n at Aspose.Cells.Tables.ListObject.ConvertToRange(TableToRangeOptions options)\r\n

Is there any chance of a future version of Aspose ungrouping the shapes and then deleting the shape and regrouping them, to avoid this error? Or- is there any other recourse outside of manually modifying the document?

@aaronbrottman,

I think you may try to fist ungroup the shapes and then remove the shapes accordingly. If you still find the issue or could not make it work, kindly do share your sample Excel file and sample code to reproduce the issue, we will check it soon.

PS. please zip the Excel file or other files prior attaching here.

@aaronbrottman,

After further evalaution, we found you cannot remove grouped shape by the APIs, so we logged a ticket with an id “CELLSNET-51590” for it. We have fixed it and incorporated the improvement in the APIs now. The fix will be included in next official release (Aspose.Cells v22.8) which will be published in the second week of August 2022.

The issues you have found earlier (filed as CELLSNET-51590) have been fixed in this update. This message was posted using Bugs notification tool by johnson.shi