If a Network Discovery task is scheduled, then the page gives an error "Server Error in '/Altiris/DiscoveryTasks' Application".
The error appears across different pages on Symantec Management Console, like:
Server Error in '/Altiris/DiscoveryTasks' Application
Error seen in the Symantec Management Platform (SMP) Log Viewer and on the page:
Failed to enable constraints. One or more rows contain values violating non-null, unique, or foreign-key constraints.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Data.ConstraintException: Failed to enable constraints. One or more rows contain values violating non-null, unique, or foreign-key constraints.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[ConstraintException: Failed to enable constraints. One or more rows contain values violating non-null, unique, or foreign-key constraints.]
System.Data.DataTable.EnableConstraints() +2707068
System.Data.DataTable.EndLoadData() +235
Altiris.TaskManagement.Data.TaskStatusData.GetRawSchedulesForTaskItem(Boolean extended, NSItemGuid taskItemGuid) +2113
Altiris.DiscoveryTasks.DiscoverTask.GetNextOccurrance() +179
Altiris.DiscoveryTasks.Web.PortalPages.TaskTypesGrid.ConvertToDataRow(DiscoverTask taskItem) +663
Altiris.DiscoveryTasks.Web.PortalPages.TaskTypesGrid.LoadTaskTypesData() +442
System.Web.UI.Control.LoadRecursive() +71
System.Web.UI.Control.LoadRecursive() +190
System.Web.UI.Control.LoadRecursive() +190
System.Web.UI.Control.LoadRecursive() +190
System.Web.UI.Control.LoadRecursive() +190
System.Web.UI.Control.LoadRecursive() +190
System.Web.UI.Control.LoadRecursive() +190
System.Web.UI.Control.LoadRecursive() +190
System.Web.UI.Control.LoadRecursive() +190
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3178
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.18408
Symantec Management Platform 8.0 Hot Fix version 4.
This is a known issue in SMP 8.0 HF4 version.
Following are the steps to reproduce:
The issue is specific to SMP 8.0 HF4. It is not reproducible in later builds.
Workaround: