If an object has the "Active" checkbox unchecked and is set to Deactivate on finish never, the object cannot be removed from the Process Monitoring/Activities window.
Steps to reproduce:
1) Create a script or jobs object
2) In the General tab, make sure that "Active" is unchecked
3) In the Attribute tab, set "Deactivate on Finish" to "Never", or set it to "After error-free execution" and choose an "Error-free status" that does not include ENDED_INACTIVE (like ENDED_OK)
4) Run the task
5) Go to the Process Monitoring tab and notice that the task is ended with status "ENDED_INACTIVE_OBJECT - Object is inactive due to definition."
6) Click on the task or right-click on the task
Expected behavior:
Deactivate is a button choice in the Process Monitoring perspective or right-click, Modify -> Deactivate is available in the context menu like you see with other objects
Actual behavior:
Deactivate button is grayed out and context menu option is not available in any way from the Process Monitoring perspective
Version: 21.0 and 24.x
Planned release for fix: 24.4.5, expected in June, 2026
Workaround:
Use the DEACTIVATE_UC_OBJECT({Runid}) script function to deactivate objects that are in ENDED_INACTIVE_OBJECT - Object is inactive due to definition.