Hi,
I am currently trying to delete unused snapshots in the IBM BAW 21.0.3.1 Process Server because a warning alert appears in the system health status in ProcessAdmin, indicating that the number of snapshots is almost at the limit (500 snapshots). I am following the official documentation https://www.ibm.com/docs/en/baw/20.0.0?topic=scripting-bpmdeletesnapshot, but I am encountering the following errors when trying to delete a snapshot:
wsadmin>print AdminTask.BPMDeleteSnapshot('[-containerAcronym PFK -containerSnapshotAcronyms [PFK01.1]]')
WASX7015E: Exception running command: "AdminTask.BPMDeleteSnapshot('[-containerAcronym PPF -containerSnapshotAcronyms [PFK01.1]]')"; exception information:
java.lang.Exception: java.lang.Exception: To delete the snapshot, you must first uninstall any business-level applications that are related to it. Please refer to the help information about BPMDeleteSnapshot in the Info Centre.
wsadmin>print AdminTask.BPMDeleteSnapshot('[-containerAcronym PFK -containerSnapshotAcronyms [PFK_120]]')
WASX7015E: Exception running command: "AdminTask.BPMDeleteSnapshot('[-containerAcronym PFK -containerSnapshotAcronyms [PFK_120]]')"; exception information:
java.lang.Exception: java.lang.Exception: You cannot delete a snapshot that is referenced by tasks belonging to BPD instances referencing another snapshot
The snapshots I want to delete no longer have any active or running instances. For snapshot PFK_01.185.3_05102023_1700 (PFK01.1): when validating the logs, it refers to an active instance with ID 125253, but when validating the instances in the Process Inspector, I see it active on my last installed snapshot "PFK_12.03102025". I don't understand why this is happening, as it creates a dependency on orphaned tasks.
------------------------------
Jhon Freddy Osorio
------------------------------