After removing a task from a job the item reference is still there, thus unable to delete the task that was removed from the job just moments ago.
Steps to duplicate issue:
This issue seems to be introduced in ITMS 8.6 RU1 version. Previous version 8.6 this problem is not observed.
The customer has been using the following query in order to get rid of the task by removing the reference manually:
delete from ItemReference
where ChildItemGuid in ( Select vitem.guid
Where vitem.name = 'ENTER_TASKNAME_HERE')
NB: Make sure the task name is unique before running the SQL
ITMS 8.6 RU1
This issue has been reported to the Broadcom Development team. A fix has been added to the ITMS 8.6 RU2 release.
Workaround for those in 8.6 RU1:
A pointfix is available. See KB 221269 "CUMULATIVE POST-ITMS 8.6 RU1 POINT FIXES"
After pointfix is installed, run the attached nscript "job-resave-referenced.cs" placed along with pointfix, but not executed automatically.
To fix "lost" references - all the jobs have to be re-saved, the customer needs to execute nscript with Nscript.exe.
How to run the nscript, refer to:
C:\Program Files\Altiris\Notification Server\Bin> nscript.exe job-resave-referenced.cs