After upgrading from ITMS 8.5 RU2 to 8.5 RU4, the customer started seeing the below errors during AD imports:
Error 1:SQL Exception details: code=8115, line=11, procedure=sp_Inv_Security_Groups_cleanException logged from:at Altiris.NS.ResourceManagement.DataClassImporter.LoadInventory(System.Xml.XmlReader,Boolean, Boolean, System.Guid)atAltiris.NS.StandardItems.Messaging.InventoryCaptureItem.ImportDataClassNode(Altiris.NS.ResourceManagement.MessagingResource, System.Xml.XmlTextReader,Altiris.NS.ResourceManagement.ResourceImporter,Altiris.NS.ResourceManagement.DataClassImporter)....
Date: 2/5/2021 2:51:15 PM, Tick Count: 257384921 (2.23:29:44.9210000), Size: 13.72 KBProcess: AeXSvc (32672), Thread ID: 198, Module: Altiris.NS.dllPriority: 1, Source: Altiris.NS.ResourceManagement.DataClassImporter.LoadInventory
Error 2:SQL Exception details: code=8115, line=11, procedure=sp_Inv_Security_Groups_cleanException logged from:at Altiris.NS.ResourceManagement.DataClassImporter.LoadInventory(System.Xml.XmlReader,Boolean, Boolean, System.Guid)atAltiris.NS.StandardItems.Messaging.InventoryCaptureItem.ImportDataClassNode(Altiris.NS.ResourceManagement.MessagingResource, System.Xml.XmlTextReader,Altiris.NS.ResourceManagement.ResourceImporter,Altiris.NS.ResourceManagement.DataClassImporter)
Date: 2/5/2021 2:51:15 PM, Tick Count: 257385437 (2.23:29:45.4370000), Size: 13.07 KBProcess: AeXSvc (32672), Thread ID: 91, Module: Altiris.NS.dllPriority: 1, Source: Altiris.NS.ResourceManagement.DataClassImporter.LoadInventory
Error 3:
NSE dispatch failed for: id=60010126, from: Smith, John @ TeamA, to: 'Directory Connector InventoryCapture Item' (51fed64d-7d2f-44c3-a7eb-a2442c7964db)Failed to load inventory. [Altiris.NS.Exceptions.AeXException @ Altiris.NS] at Altiris.NS.ResourceManagement.DataClassImporter.LoadInventory(XmlReader reader, BooleanprocessData, Boolean forceSchemaValidation, Guid resourceGuidOverride) at Altiris.NS.StandardItems.Messaging.InventoryCaptureItem.ImportDataClassNode(MessagingResourcefromResource, XmlTextReader xmlReader, ResourceImporter resourceImporter, DataClassImporterinventoryImporter) at Altiris.NS.StandardItems.Messaging.InventoryCaptureItem.ImportDataClassData(MessagingResourcefromResource, XmlTextReader xmlReader, ResourceImporter resourceImporter) at Altiris.NS.StandardItems.Messaging.InventoryCaptureItem.OnMessageImpl(String message, BooleanuseFilename) at Altiris.NS.StandardItems.Messaging.InventoryCaptureItem.OnMessageInternal(String message, BooleanuseFilename) at Altiris.NS.ClientMessaging.EventQueueDispatcher.DispatchWithinContext(String message, BooleanuseFilename, IItem item, IItemMessaging iim, MessageHeader header) at Altiris.NS.ClientMessaging.EventQueueDispatcher.DispatchWithinContext(Int32 eventQueueId, Stringmessage, Boolean useFilename, Int64 fileSize, Int64 eventId, MessageHeader header) at Altiris.NS.ClientMessaging.EventQueueDispatcher.TryDispatch(Int32 eventQueueId, String message,Boolean useFilename, Int64 fileSize, Int64 eventId)Arithmetic overflow error converting expression to data type int.Arithmetic overflow error converting expression to data type int.Arithmetic overflow error converting expression to data type int.Arithmetic overflow error converting expression to data type int.Arithmetic overflow error converting expression to data type int.Arithmetic overflow error converting expression to data type int.Arithmetic overflow error converting expression to data type int.Arithmetic overflow error converting expression to data type int.Arithmetic overflow error converting expression to data type int.
....
SQL Exception details: code=8115, line=11, procedure=sp_Inv_Security_Groups_cleanException logged from: at Altiris.NS.ClientMessaging.EventQueueDispatcher.TryDispatch(Int32, String, Boolean, Int64, Int64) at Altiris.NS.ClientMessaging.EventQueueDispatcher.PerformDispatch(Altiris.NS.ClientMessaging.EventQueueDispatcher+DispatchSlot, Boolean&) ....
Date: 2/5/2021 2:51:15 PM, Tick Count: 257385437 (2.23:29:45.4370000), Size: 13.38 KBProcess: AeXSvc (32672), Thread ID: 91, Module: Altiris.NS.dllPriority: 1, Source: Altiris.NS.ClientMessaging.EventQueueDispatcher.TryDispatch
Error 4:
SQL Exception details: code=8115, line=11, procedure=sp_Inv_Security_Groups_cleanException logged from: atAltiris.NS.ClientMessaging.EventQueueDispatcher.HandleException(Altiris.NS.ClientMessaging.EventQueueDispatcher+DispatchSlot, Int32, Exception, String&, Boolean&, Int32&) atAltiris.NS.ClientMessaging.EventQueueDispatcher.PerformDispatch(Altiris.NS.ClientMessaging.EventQueueDispatcher+DispatchSlot, Boolean&) atAltiris.NS.ClientMessaging.EventQueueDispatcher.WorkerDispatchStep(Altiris.NS.ClientMessaging.EventQueueDispatcher+DispatchSlot, Altiris.Common.Threading.IAutoCallContextSnapshot) atAltiris.NS.ClientMessaging.EventQueueDispatcher.PerformDispatchSlotLoop(Altiris.NS.ClientMessaging.EventQueueDispatcher+DispatchSlot, String&) atAltiris.NS.ClientMessaging.EventQueueDispatcher.PerformDispatchSlotLoop(Altiris.NS.Logging.EventLog+IMeasureOperation, Altiris.NS.ClientMessaging.EventQueueDispatcher+DispatchSlot) at Altiris.NS.ClientMessaging.EventQueueDispatcher.DispatchSlotThreadProc(Object) at System.Threading.ThreadHelper.ThreadStart(Object)User [US\us_svc_AeXNSApp06], Auth [US\us_svc_AeXNSApp06], AppDomain [AeXSVC.exe]-----------------------------------------------------------------------------------------------------Date: 2/5/2021 2:51:15 PM, Tick Count: 257385437 (2.23:29:45.4370000), Size: 13.47 KBProcess: AeXSvc (32672), Thread ID: 91, M
NOTE: The count in the table is 4805737730.
ITMS 8.5 RU4
Known issue. We found that the stored procedure _ID field is a "bigint" in the Inv_Security_Groups table, but the stored procedure that references the table, sp_Inv_Security_Groups_clean, defines the _ID field as an "int". Changing the stored procedure to define it as a "bigint" solved the issue.
This issue was fixed in the ITMS 8.6 release.
Workaround: