After cloning a Task and using the "Shallow clone" option,
when you try to reload the original task, the following error occurs:
"A critical error has occurred on this page. Check the Altiris logs for more information"
The NS logs show an error message like this one:
Unhandled error
The node '6a7d7faf-82cc-48a2-893a-8878c4eab957' is not part of this job
[Exception @ Altiris.TaskManagement.dll]
at Altiris.TaskManagement.Jobs.Conditions.PreviousReturnConditionNodeHelper.GetDescription(JobConditionDescriptionType, BaseJobRoot, TaskVersionGuid, JobNodeGuid)
at Altiris.TaskManagement.ClientTask.Jobs.Conditions.ClientTaskConditionNode.GetDescription(JobConditionDescriptionType, BaseJobRoot)
at Altiris.TaskManagement.Jobs.Conditions.ServerIfThenElseJobNode.AddDisplayNodes(JobDisplayNode)
at Altiris.TaskManagement.Common.Jobs.BaseJobNodeGroup.AddDisplayNodes(JobDisplayNode)
at Altiris.TaskManagement.Jobs.ServerJobRoot.AddDisplayNodes(JobDisplayNode)
at Altiris.TaskManagement.UI.Controls.JobTreeControl.UpdateJobDisplay()
at Altiris.TaskManagement.UI.Controls.JobTreeControl.OnPreRender(EventArgs)
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Page.ProcessRequestMain(bool, bool)
Exception logged from:
at Altiris.Diagnostics.Logging.EventLog.ReportException(int, string, string, Exception, string)
at Altiris.TaskManagement.UI.AltirisPageInstanceCachePage.OnAltirisPageInstanceCachePageError(object, EventArgs)
at System.Web.UI.TemplateControl.OnError(EventArgs)
at System.Web.UI.Page.HandleError(Exception)
at System.Web.UI.Page.ProcessRequestMain(bool, bool)
at System.Web.UI.Page.ProcessRequest(bool, bool)
at System.Web.UI.Page.ProcessRequest()
at System.Web.UI.Page.ProcessRequest(HttpContext)
at Altiris.NS.UI.Controls.PageCachePage.ProcessRequest(HttpContext)
at Altiris.NS.UI.AltirisPage.ProcessRequest(HttpContext)
at System.Web.HttpApplication+CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep)
at System.Web.HttpApplication.ExecuteStep(IExecutionStep, ref bool)
at System.Web.HttpApplication+PipelineStepManager.ResumeSteps(Exception)
at System.Web.HttpApplication.BeginProcessRequestNotification(HttpContext, AsyncCallback)
at System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest, HttpContext)
at System.Web.Hosting.PipelineRuntime.ProcessRequestNotificationHelper(IntPtr, IntPtr, IntPtr, int)
at System.Web.Hosting.PipelineRuntime.ProcessRequestNotification(IntPtr, IntPtr, IntPtr, int)
at System.Web.Hosting.UnsafeIISMethods.MgdIndicateCompletion(IntPtr, ref RequestNotificationStatus)
at System.Web.Hosting.UnsafeIISMethods.MgdIndicateCompletion(IntPtr, ref RequestNotificationStatus)
at System.Web.Hosting.PipelineRuntime.ProcessRequestNotificationHelper(IntPtr, IntPtr, IntPtr, int)
at System.Web.Hosting.PipelineRuntime.ProcessRequestNotification(IntPtr, IntPtr, IntPtr, int)
HTTP [GET]: https://smpserver.example.local/Altiris/TaskManagement/ManageTask.aspx?ItemGuid=982be154-972f-489d-ab95-2d2265796eed&PageInstance=78d41381-b371-4326-a66c-ae3074cde2df
ip: [172.16.158.139]; languages: [en-US,en;q=0.9];
timings: [[R] 00:00:00.0542095(W: -00:00:00.0019486)];
response: [200 OK]; x-smp-nsversion: [8.7.2337.0];
-----------------------------------------------------------------------------------------------------
Date: 12/12/2023 12:52:43 PM, Tick Count: 777078 (00:12:57.0780000), Size: 3.93 KB
Process: w3wp (7852), Thread ID: 41, Module: Altiris.TaskManagement.dll
Priority: 1, Source: PreviousReturnConditionNodeHelper.GetDescription
ITMS 8.x
Task corruption.
The safest way is to delete and recreate the desired task.
If for some reason you need to keep the original one, you can the following to manually fix the bad reference: