ITMS 7.5 - InvalidCastException exception is logged on attempt to open Job and Task Status page

book

Article ID: 159063

calendar_today

Updated On:

Products

Management Platform (Formerly known as Notification Server)

Issue/Introduction

 Exception is logged in SMP log on Job and Task Status page in the Console after clicking on 'Show preview' button on the right page. Several instances that don't have icons will not be shown in hte preview.

Error processing data row
System.InvalidCastException (Altiris.TaskManagement): Unable to cast object of type 'Altiris.Connector.DataSource.CompileDataPreProcessingFunctionTask' to type 'Altiris.NS.ItemManagement.IItemPresentation'.
   at Altiris.TaskManagement.Data.TaskStatusData.UpdateUITaskInstanceData(DataRow dr, List`1 removeRows, String NAText, String unknownText, Dictionary`2 taskVersions, Dictionary`2 taskServerNames, ISet`1 computersWithViewPermission, Dictionary`2 taskViewPermissionList)
 
Exception logged from: 
   at Altiris.Diagnostics.Logging.EventLog.ReportException(Int32 severity, String strMessage, String category, Exception exception, String footer)
   at Altiris.NS.Logging.EventLog.ReportException(Int32 severity, String strMessage, String category, Exception exception)
   at Altiris.TaskManagement.Data.TaskStatusData.UpdateUITaskInstanceData(DataRow dr, List`1 removeRows, String NAText, String unknownText, Dictionary`2 taskVersions, Dictionary`2 taskServerNames, ISet`1 computersWithViewPermission, Dictionary`2 taskViewPermissionList)
   at Altiris.TaskManagement.Data.TaskStatusData.UpdateUITaskInstanceData(DataTable dt)
   at Altiris.TaskManagement.Data.TaskStatusData.GetUITaskInstanceData(AltirisGuid parentGuid, NSItemGuid taskItemGuid, TaskInstanceGuid taskInstanceGuid, JobNodeGuid jobNodeGuid, Object instanceStatus, Boolean bIncludeSchedules)
   at Altiris.TaskManagement.UI.TaskControls.TaskInstanceGridDataProvider.LoadData(AltirisGridControlOptions options, HttpRequest request)
   at Altiris.TaskManagement.UI.Controls.Grid.AltirisGridCallbackHandler.GetData(AltirisGridControlOptions options)
   at Altiris.TaskManagement.UI.Controls.Grid.AltirisGridCallbackHandler.WriteHtmlResponse(HtmlTextWriter wr)
   at Altiris.TaskManagement.Common.XmlHttp.BaseHttpXmlHttpCallback.WriteResponseRaw(XmlTextWriter xwr)
   at Altiris.TaskManagement.Common.XmlHttp.BaseXmlHttpCallback.ProcessRequest(HttpContext context)
   at Altiris.TaskManagement.UI.XmlCallback.AltirisNSHttpHandler.ProcessRequest(HttpContext context)
   at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
   at System.Web.HttpApplication.ApplicationStepManager.ResumeSteps(Exception error)
   at System.Web.HttpApplication.System.Web.IHttpAsyncHandler.BeginProcessRequest(HttpContext context, AsyncCallback cb, Object extraData)
   at System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr)
   at System.Web.HttpRuntime.ProcessRequestNoDemand(HttpWorkerRequest wr)
   at System.Web.Hosting.ISAPIRuntime.ProcessRequest(IntPtr ecb, Int32 iWRType)
 
**CEDUrlStart** :http://entced.symantec.com/entt?product=SMP&version=7.5.1670.0&language=en&module=0ep7c3cPR0JQbkzT4WlK4Ua5uaioaBPwNWxf2zVk29bDdgB4cDWPf8DuSqx6baR5DfHjpppck4rh3lfjGOngWg==&error=462971541&build=**CEDUrlEnd**
-----------------------------------------------------------------------------------------------------
Date: 24.02.2014 15:46:39, Tick Count: 288309129, Host Name: GBKGAMS01, Size: 3,15 KB
Process: w3wp (11252), Thread ID: 134, Module: w3wp.exe
Priority: 1, Source: Altiris.TaskManagement.Data.TaskStatusData.UpdateUITaskInstanceData
File: C:\Ablage\a.log
 

Cause

Tasks framework assumes that all the items in the Console have their presentations methods available. At the same time some tasks may not have icons at all (for example Data Connector and Automation). This created an exeception on attempt to show such instances in the preview. Corresponding tasks will not be shown in the preview as a result. No other functional impact will be observed. 

Resolution

Solution at the moment is to ingore the exception keeping in mind that problematic tasks will not be shown in the preview. 
Corresponding bug report has been logged so development is aware of the issue. 


Applies To

  ITMS 7.2 SP2