Cannot delete annotations

Issue #509 resolved
Wei Wang created an issue

We are trying the new v2022.06 feature that can delete cell annotations but not having any success. We had added the new lines in settings.json and see the confirm deletion prompt but upon trying to delete, nothing happens and I noticed an error message in DevTools (see below). We went back to the Apliqo_Demo model and found that delete annotations also doesn’t appear to work in certain cubes (e.g., does not work on ElementAttributes cubes but fine in General Ledger and Employee cubes). Is this something related to the number of dimensions in the cube?

Comments (6)

  1. Scott Wiltshire

    Which version are you testing?

    The original 2022.06 version used a CellPut patch to try and write directly to the cell annotations cube. This assumed that the annotations cube contained 2 additional dimensions }Annotation_ApplicationID and }AnnotationMeasures. However depending on the version of Planning analytics which creates the accotation cube }Annotation_ApplicationID may or may not be present. Both 2022.06 FP1 and FP2 are using the correct Rest API call to add/delete annotations rather than writing to the cube directly and should not have this issue.

  2. Wei Wang reporter

    We upgraded directly from v2021.11 FP3 to v2022.06 FP2 and our Annotation cubes only have one additional dimension (i.e., }AnnotationsMeasures). However, when I look in the Apliqo_Demo model (where deletion works), I notice that the Annotations cube have the additional “}Annotation_ApplicationID” dimension.

    The Apliqo_Demo model is running on a box w/ PA v11.8.00100.13 whereas our TM1 models are running PA v11.8.00300.34, which may explain the difference in behavior I am seeing between Apliqo_Demo and our webapp. If FP2 has the fix that can accommodate both version of Annotation cubes, it should work in both PA versions but it appears to only be handing the Annotations cube with two add’l dimensions.

  3. Scott Wiltshire

    Thanks for the extra info. We will have to look into this. As far as I was aware we should be using the Rest API command for deleting comments and not doing any parsing of cell comment json and writing directly to the annotation cube. @ada.trajer can you please add this to the list? See if you can replicate and check if we have a test case.

  4. Log in to comment