Unable to delete Computer items or resources via the Management Console

book

Article ID: 160985

calendar_today

Updated On:

Products

Patch Management Solution for Windows Management Platform (Formerly known as Notification Server)

Issue/Introduction

Go to Manage --> Computers -->  select a computer, right-click and select "Delete" and confirm, when clicking Yes nothing happens, Computer is not removed, no error message pops up. 

In All Resources --> Asset --> Computers --> right-click and select Delete and click Yes, then a message 'Uable to delete the item '.....'. Re-try Delete?'. Clicking OK just gives the same message over and over.

 

 

 Transaction being rolled back automatically during dispose. To disable this warning rollback your transaction explicitly! Dispose location:    at Altiris.Database.DatabaseContext`1.Dispose(Boolean disposing)

   at Altiris.Database.DatabaseContext `1.Dispose ()
   at Altiris.NS.ContextManagement.DatabaseContext.Dispose(Boolean disposing)
   at Altiris.NS.ContextManagement.DatabaseContext.Dispose()
   at Altiris.NS.ResourceManagement.DataClass.Purge(Guid dataClassGuid, GuidCollection resourceGuids)
   at Altiris.NS.ResourceManagement.ResourceDataManager.PurgeResourceData(GuidCollection resourceGuids)
   at Altiris.NS.ResourceManagement.Resource.OnDelete()
   at Altiris.NS.ResourceManagement.Resource.DeletePartitionedResource()
   at Altiris.NS.ItemManagement.Item.<>c__DisplayClass2.<DeleteItem>b__0(IDatabaseContext )
   at Altiris.Database.DatabaseContext`1.PerformWithDeadlockRetryHelper(Int32 retries, Boolean inTransaction, Getter`1 getContext, Action`1 action, Action`1 retry)
   at Altiris.Database.DatabaseContext`1.PerformWithDeadlockRetry(Int32 retries, Boolean startNewTransaction, IsolationLevel isolationLevel, Boolean independentContext, Action`1 action, Action`1 retry)
   at Altiris.Database.DatabaseContext`1.PerformWithDeadlockRetry(Int32 retries, Boolean startNewTransaction, Action`1 action, Action`1 retry)
   at Altiris.Database.DatabaseContext`1.PerformWithDeadlockRetry(Int32 retries, Action`1 action, Action`1 retry)
   at Altiris.NS.ItemManagement.Item.DeleteItem(Guid itemGuid)
   at Altiris.NS.ItemManagement.ItemWebService.DeleteItem(Guid itemGuid)
   at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   at System.Web.Services.Protocols.LogicalMethodInfo.Invoke(Object target, Object[] values)
   at System.Web.Services.Protocols.WebServiceHandler.Invoke()
   at System.Web.Services.Protocols.WebServiceHandler.CoreProcessRequest()
   at System.Web.Services.Protocols.SyncSessionlessHandler.ProcessRequest(HttpContext context)
   at System.Web.Script.Services.ScriptHandlerFactory.HandlerWrapper.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)
 
An unexpected exception has occured (Item: {90c4ff6a-45dd-4ea6-bd8e-d9168a074e6f}, Exception: System.NullReferenceException: Object reference not set to an instance of an object.
   at Altiris.NS.ResourceManagement.DataClass.Purge(Guid dataClassGuid, GuidCollection resourceGuids)
   at Altiris.NS.ResourceManagement.ResourceDataManager.PurgeResourceData(GuidCollection resourceGuids)
   at Altiris.NS.ResourceManagement.Resource.OnDelete()
   at Altiris.NS.ResourceManagement.Resource.DeletePartitionedResource())

Cause

Defect

Resolution

Symantec is aware of the problem and working toward a solution.

Workaround :

Those virtual dataclass records can be safely deleted from the ResourceUpdateSummary table as they should not exist there. To delete those records, run the following query :

delete from ResourceUpdateSummary  where inventoryclassguid in (

select r.InventoryClassGuid from ResourceUpdateSummary r join DataClass  d on r.InventoryClassGuid = d.Guid 

where d.IsVirtual = 1 )

The deletion of the resource should now be successful

 

 


Applies To

SMP 7.1 MP1 SP2 Rollup v10 
SMP 7.5