2025-12-25 00:00:46.6195 AlertProcessor ProcessorAlertData: started 2025-12-25 00:00:51.6508 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 00:05:43.6683 DFramework.Database.Query /* Time Taken: 1152*/ [dbo].GenerateSystemAlerts 2025-12-25 00:05:46.6371 AlertProcessor ProcessorAlertData: started 2025-12-25 00:05:51.6215 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 00:05:57.8715 DFramework.Scheduler.TaskBase /* Time Taken: 15640.7362*/ Opportunity Out Of Stock By Outlet 2025-12-25 00:10:46.6546 AlertProcessor ProcessorAlertData: started 2025-12-25 00:10:51.6390 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 00:15:46.6719 AlertProcessor ProcessorAlertData: started 2025-12-25 00:15:50.2813 DFramework.Database.NullableDataReader Data reader open for 281 at System.Environment.GetStackTrace(Exception e, Boolean needFileInfo) at System.Environment.get_StackTrace() at DFramework.Database.NullableDataReader.Dispose(Boolean disposing) in D:\Spraxa\Framework\DFramework\Database\NullableDataReader.cs:line 33 at DFramework.Database.NullableDataReader.Dispose() in D:\Spraxa\Framework\DFramework\Database\NullableDataReader.cs:line 44 at CoolR.Tasks.ProcessAlertData.Execute() in D:\Spraxa\CoolR-Group\portal\CoolR.Tasks\ProcessAlertData.cs:line 47 at DFramework.Scheduler.TaskBase.Run() in D:\Spraxa\Framework\DFramework.Scheduler\TaskBase.cs:line 176 at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.ThreadHelper.ThreadStart() 2025-12-25 00:15:51.8594 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 00:20:43.9707 DFramework.Database.Query /* Time Taken: 1429*/ [dbo].GenerateSystemAlerts 2025-12-25 00:20:46.6895 AlertProcessor ProcessorAlertData: started 2025-12-25 00:20:47.8613 DFramework.Database.Query /* Time Taken: 506*/ DECLARE @StatusId Int32 SET @StatusId = '1' DECLARE @AlertId Int32 SET @AlertId = '7571914' SELECT TOP 10000 Alert.AlertId, Alert.LocationId, Alert.RecordId, ISNULL(AlertDefinition.Name, Alert.AlertText) Name, Alert.AlertTypeId, Alert.AlertText, ISNULL(Location.Name, '') AS LocationName, AlertDefinition.ClientId, AlertRecipient.RoleId, CASE WHEN Alert.AlertTypeId IN (6,7) THEN CONVERT(VARCHAR(10), CAST(AlertAt AS DATE), 101) ELSE AlertAt END AS AlertAt, AlertType, Asset.SerialNumber, ISNULL(LocationAttribute.FirstRepId, 0) RepId, ClientUser.PrimaryPhone AS SalesRepPhone, ClientUser.PrimaryEmail AS SalesRepEmail, FirstName, LastName, PreferedNotificationTypeIds, AlertRecipientId, AlertRecipientAddress, AlertRecipientText, Alert.Tags, AlertRecipientTypeId, NotificationContactTypeId, TemplateId, AlertDefinition.AlertAgeThreshold, LastUpdatedOn, AlertRecipient.AlertAge, CASE WHEN Location.TimeZoneId IS NOT NULL AND Location.TimeZoneId > 0 THEN Location.TimeZoneId ELSE Client.TimeZoneId END AS TimeZoneId, AlertDefinition.IsSummarize, Alert.ClosedOn, AssetType.IsChestCooler, AlertDefinition.SnoozeForHours, Alert.SnoozeDateTime FROM Alert LEFT OUTER JOIN Asset ON Alert.AssetId = Asset.AssetId LEFT OUTER JOIN AlertType ON Alert.AlertTypeId = AlertType.AlertTypeId LEFT OUTER JOIN AlertDefinition ON Alert.AlertDefinitionId = AlertDefinition.AlertDefinitionId LEFT OUTER JOIN Location ON Location.LocationId = Alert.LocationId LEFT OUTER JOIN LocationAttribute ON LocationAttribute.LocationId = dbo.Location.LocationId LEFT OUTER JOIN ClientUser ON LocationAttribute.FirstRepId = ClientUser.ClientUserId AND ClientUser.IsDeleted = 0 LEFT OUTER JOIN AlertRecipient ON Alert.AlertDefinitionId = AlertRecipient.AlertDefinitionId AND AlertRecipient.IsDeleted= 0 LEFT OUTER JOIN Client ON Client.ClientId = Alert.ClientId LEFT OUTER JOIN AssetType ON dbo.Asset.AssetTypeId = dbo.AssetType.AssetTypeId WHERE (NOT EXISTS(SELECT 1 FROM dbo.EmailQueue INNER JOIN dbo.EmailRecipient ON EmailRecipient.EmailQueueId = EmailQueue.EmailQueueId WHERE AlertId = Alert.AlertId AND EmailRecipient.RecipientId = AlertRecipient.AlertRecipientId) OR (Alert.SnoozeDateTime IS NOT NULL AND Alert.SnoozeDateTime <= GETUTCDATE() AND AlertDefinition.SnoozeForHours > 0 AND Alert.StatusId = @StatusId)) AND Alert.AlertId > @AlertId AND Alert.AlertAt >= DATEADD(DAY, -120, GETDATE()) AND AlertRecipient.IsDeleted = 0 AND Alert.IsActive = 1 AND Alert.IsDeleted = 0 AND AlertRecipient.IsActive = 1 AND AlertRecipient.IsDeleted = 0 AND AlertRecipient.StartDate <= Alert.CreatedOn AND Alert.CreatedOn < DATEADD(hh, 23, AlertRecipient.EndDate) AND (Alert.LocationId != 0 OR NotificationWithoutLocation = 1) AND AlertType.IsSystemAlert = 0 AND Alert.EmailQueuedOn IS NULL AND AlertDefinition.IsActive = 1 2025-12-25 00:20:47.9082 DFramework.Database.Query /* Time Taken: 557*/ DECLARE @TableName AnsiString(8000) SET @TableName = 'MissingShelf' DECLARE @CurrentRecordId Int32 SET @CurrentRecordId = '3675128' dbo.GetValidDeviceForAlertProcessData 2025-12-25 00:20:48.5488 DFramework.Database.Query /* Time Taken: 587*/ DECLARE @TableName AnsiString(8000) SET @TableName = 'AdditionalShelf' DECLARE @CurrentRecordId Int32 SET @CurrentRecordId = '3675128' dbo.GetValidDeviceForAlertProcessData 2025-12-25 00:20:52.4239 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 00:20:57.8770 DFramework.Scheduler.TaskBase /* Time Taken: 15640.7242*/ Opportunity Out Of Stock By Outlet 2025-12-25 00:25:46.7072 AlertProcessor ProcessorAlertData: started 2025-12-25 00:25:51.7697 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 00:30:46.7243 AlertProcessor ProcessorAlertData: started 2025-12-25 00:30:51.6931 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 00:35:44.1011 MoveToReorder Running task for ClientId : 286 and ClientName = India Office QA and Slot: 12/25/2025 2:00:00 PM And LastExecutedOn: 12/25/2025 1:05:43 PM 2025-12-25 00:35:44.2730 DFramework.Database.Query /* Time Taken: 1712*/ [dbo].GenerateSystemAlerts 2025-12-25 00:35:44.3199 MoveToReorder Task executed successfully for ClientId : 286 Client Name:India Office QA, Slot: 12/25/2025 2:00:00 PM But No Order found to suggest 2025-12-25 00:35:46.7418 AlertProcessor ProcessorAlertData: started 2025-12-25 00:35:50.7418 DFramework.Database.Query /* Time Taken: 649*/ DECLARE @TableName AnsiString(8000) SET @TableName = 'AssetPurity' DECLARE @CurrentRecordId Int32 SET @CurrentRecordId = '3675128' dbo.GetValidDeviceForAlertProcessData 2025-12-25 00:35:52.4450 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 00:35:57.8825 DFramework.Scheduler.TaskBase /* Time Taken: 15625.102*/ Opportunity Out Of Stock By Outlet 2025-12-25 00:40:46.7594 AlertProcessor ProcessorAlertData: started 2025-12-25 00:40:51.7751 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 00:45:46.7768 AlertProcessor ProcessorAlertData: started 2025-12-25 00:45:52.0581 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 00:50:43.8722 DFramework.Database.Query /* Time Taken: 1298*/ [dbo].GenerateSystemAlerts 2025-12-25 00:50:46.7942 AlertProcessor ProcessorAlertData: started 2025-12-25 00:50:47.5285 DFramework.Database.Query /* Time Taken: 741*/ DECLARE @TableName AnsiString(8000) SET @TableName = 'TagAlert' DECLARE @CurrentRecordId Int32 SET @CurrentRecordId = '0' dbo.GetValidDeviceForAlertProcessData 2025-12-25 00:50:52.3255 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 00:50:57.9192 DFramework.Scheduler.TaskBase /* Time Taken: 15640.7166*/ Opportunity Out Of Stock By Outlet 2025-12-25 00:55:46.8117 AlertProcessor ProcessorAlertData: started 2025-12-25 00:55:51.9836 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 01:00:46.8294 AlertProcessor ProcessorAlertData: started 2025-12-25 01:00:52.0325 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 01:05:44.1903 DFramework.Database.Query /* Time Taken: 1596*/ [dbo].GenerateSystemAlerts 2025-12-25 01:05:46.8466 AlertProcessor ProcessorAlertData: started 2025-12-25 01:05:49.9091 DFramework.Database.Query /* Time Taken: 646*/ DECLARE @TableName AnsiString(8000) SET @TableName = 'AssetStockProductWiseConsolidate' DECLARE @CurrentRecordId Int32 SET @CurrentRecordId = '3675128' dbo.GetValidDeviceForAlertProcessData 2025-12-25 01:05:52.4716 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 01:05:57.9716 DFramework.Scheduler.TaskBase /* Time Taken: 15671.9704*/ Opportunity Out Of Stock By Outlet 2025-12-25 01:10:46.8641 AlertProcessor ProcessorAlertData: started 2025-12-25 01:10:51.9110 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 01:15:46.8817 AlertProcessor ProcessorAlertData: started 2025-12-25 01:15:52.0067 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 01:20:43.8209 DFramework.Database.Query /* Time Taken: 1207*/ [dbo].GenerateSystemAlerts 2025-12-25 01:20:46.8991 AlertProcessor ProcessorAlertData: started 2025-12-25 01:20:49.0085 DFramework.Database.Query /* Time Taken: 1479*/ DECLARE @StatusId Int32 SET @StatusId = '1' DECLARE @AlertId Int32 SET @AlertId = '7571914' SELECT TOP 10000 Alert.AlertId, Alert.LocationId, Alert.RecordId, ISNULL(AlertDefinition.Name, Alert.AlertText) Name, Alert.AlertTypeId, Alert.AlertText, ISNULL(Location.Name, '') AS LocationName, AlertDefinition.ClientId, AlertRecipient.RoleId, CASE WHEN Alert.AlertTypeId IN (6,7) THEN CONVERT(VARCHAR(10), CAST(AlertAt AS DATE), 101) ELSE AlertAt END AS AlertAt, AlertType, Asset.SerialNumber, ISNULL(LocationAttribute.FirstRepId, 0) RepId, ClientUser.PrimaryPhone AS SalesRepPhone, ClientUser.PrimaryEmail AS SalesRepEmail, FirstName, LastName, PreferedNotificationTypeIds, AlertRecipientId, AlertRecipientAddress, AlertRecipientText, Alert.Tags, AlertRecipientTypeId, NotificationContactTypeId, TemplateId, AlertDefinition.AlertAgeThreshold, LastUpdatedOn, AlertRecipient.AlertAge, CASE WHEN Location.TimeZoneId IS NOT NULL AND Location.TimeZoneId > 0 THEN Location.TimeZoneId ELSE Client.TimeZoneId END AS TimeZoneId, AlertDefinition.IsSummarize, Alert.ClosedOn, AssetType.IsChestCooler, AlertDefinition.SnoozeForHours, Alert.SnoozeDateTime FROM Alert LEFT OUTER JOIN Asset ON Alert.AssetId = Asset.AssetId LEFT OUTER JOIN AlertType ON Alert.AlertTypeId = AlertType.AlertTypeId LEFT OUTER JOIN AlertDefinition ON Alert.AlertDefinitionId = AlertDefinition.AlertDefinitionId LEFT OUTER JOIN Location ON Location.LocationId = Alert.LocationId LEFT OUTER JOIN LocationAttribute ON LocationAttribute.LocationId = dbo.Location.LocationId LEFT OUTER JOIN ClientUser ON LocationAttribute.FirstRepId = ClientUser.ClientUserId AND ClientUser.IsDeleted = 0 LEFT OUTER JOIN AlertRecipient ON Alert.AlertDefinitionId = AlertRecipient.AlertDefinitionId AND AlertRecipient.IsDeleted= 0 LEFT OUTER JOIN Client ON Client.ClientId = Alert.ClientId LEFT OUTER JOIN AssetType ON dbo.Asset.AssetTypeId = dbo.AssetType.AssetTypeId WHERE (NOT EXISTS(SELECT 1 FROM dbo.EmailQueue INNER JOIN dbo.EmailRecipient ON EmailRecipient.EmailQueueId = EmailQueue.EmailQueueId WHERE AlertId = Alert.AlertId AND EmailRecipient.RecipientId = AlertRecipient.AlertRecipientId) OR (Alert.SnoozeDateTime IS NOT NULL AND Alert.SnoozeDateTime <= GETUTCDATE() AND AlertDefinition.SnoozeForHours > 0 AND Alert.StatusId = @StatusId)) AND Alert.AlertId > @AlertId AND Alert.AlertAt >= DATEADD(DAY, -120, GETDATE()) AND AlertRecipient.IsDeleted = 0 AND Alert.IsActive = 1 AND Alert.IsDeleted = 0 AND AlertRecipient.IsActive = 1 AND AlertRecipient.IsDeleted = 0 AND AlertRecipient.StartDate <= Alert.CreatedOn AND Alert.CreatedOn < DATEADD(hh, 23, AlertRecipient.EndDate) AND (Alert.LocationId != 0 OR NotificationWithoutLocation = 1) AND AlertType.IsSystemAlert = 0 AND Alert.EmailQueuedOn IS NULL AND AlertDefinition.IsActive = 1 2025-12-25 01:20:52.2585 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 01:20:57.9929 DFramework.Scheduler.TaskBase /* Time Taken: 15671.947*/ Opportunity Out Of Stock By Outlet 2025-12-25 01:25:46.9165 AlertProcessor ProcessorAlertData: started 2025-12-25 01:25:51.8541 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 01:30:46.9341 AlertProcessor ProcessorAlertData: started 2025-12-25 01:30:51.8092 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 01:35:43.9048 DFramework.Database.Query /* Time Taken: 1271*/ [dbo].GenerateSystemAlerts 2025-12-25 01:35:44.2330 MoveToReorder Running task for ClientId : 286 and ClientName = India Office QA and Slot: 12/25/2025 3:00:00 PM And LastExecutedOn: 12/25/2025 2:05:44 PM 2025-12-25 01:35:44.7954 DFramework.Database.NullableDataReader Data reader open for 255 at System.Environment.GetStackTrace(Exception e, Boolean needFileInfo) at System.Environment.get_StackTrace() at DFramework.Database.NullableDataReader.Dispose(Boolean disposing) in D:\Spraxa\Framework\DFramework\Database\NullableDataReader.cs:line 33 at DFramework.Database.NullableDataReader.Dispose() in D:\Spraxa\Framework\DFramework\Database\NullableDataReader.cs:line 44 at CoolR.Tasks.MoveToReorder.Execute() in D:\Spraxa\CoolR-Group\portal\CoolR.Tasks\MoveToReorder.cs:line 44 at DFramework.Scheduler.TaskBase.Run() in D:\Spraxa\Framework\DFramework.Scheduler\TaskBase.cs:line 176 at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.ThreadHelper.ThreadStart() 2025-12-25 01:35:44.8267 MoveToReorder Task executed successfully for ClientId : 286 Client Name:India Office QA, Slot: 12/25/2025 3:00:00 PM and Total Order Suggested: 1 Out Of: 1 2025-12-25 01:35:46.9517 AlertProcessor ProcessorAlertData: started 2025-12-25 01:35:48.0298 DFramework.Database.Query /* Time Taken: 566*/ DECLARE @TableName AnsiString(8000) SET @TableName = 'VoidAlert' DECLARE @CurrentRecordId Int32 SET @CurrentRecordId = '3675128' dbo.GetValidDeviceForAlertProcessData 2025-12-25 01:35:49.0611 DFramework.Database.NullableDataReader Data reader open for 283 at System.Environment.GetStackTrace(Exception e, Boolean needFileInfo) at System.Environment.get_StackTrace() at DFramework.Database.NullableDataReader.Dispose(Boolean disposing) in D:\Spraxa\Framework\DFramework\Database\NullableDataReader.cs:line 33 at DFramework.Database.NullableDataReader.Dispose() in D:\Spraxa\Framework\DFramework\Database\NullableDataReader.cs:line 44 at CoolR.Tasks.ProcessAlertData.Execute() in D:\Spraxa\CoolR-Group\portal\CoolR.Tasks\ProcessAlertData.cs:line 47 at DFramework.Scheduler.TaskBase.Run() in D:\Spraxa\Framework\DFramework.Scheduler\TaskBase.cs:line 176 at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.ThreadHelper.ThreadStart() 2025-12-25 01:35:52.8424 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 01:35:58.0768 DFramework.Scheduler.TaskBase /* Time Taken: 15734.4479*/ Opportunity Out Of Stock By Outlet 2025-12-25 01:40:46.9690 AlertProcessor ProcessorAlertData: started 2025-12-25 01:40:51.8597 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 01:45:46.9866 AlertProcessor ProcessorAlertData: started 2025-12-25 01:45:52.1429 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 01:50:44.3011 DFramework.Database.Query /* Time Taken: 1648*/ [dbo].GenerateSystemAlerts 2025-12-25 01:50:47.0043 AlertProcessor ProcessorAlertData: started 2025-12-25 01:50:52.0512 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 01:50:58.1137 DFramework.Scheduler.TaskBase /* Time Taken: 15750.1008*/ Opportunity Out Of Stock By Outlet 2025-12-25 01:55:47.0214 AlertProcessor ProcessorAlertData: started 2025-12-25 01:55:51.8808 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 02:00:47.0388 AlertProcessor ProcessorAlertData: started 2025-12-25 02:00:51.7732 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 02:05:44.2282 DFramework.Database.Query /* Time Taken: 1549*/ [dbo].GenerateSystemAlerts 2025-12-25 02:05:47.0564 AlertProcessor ProcessorAlertData: started 2025-12-25 02:05:51.9627 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 02:05:58.0252 DFramework.Scheduler.TaskBase /* Time Taken: 15640.7405*/ Opportunity Out Of Stock By Outlet 2025-12-25 02:10:47.0739 AlertProcessor ProcessorAlertData: started 2025-12-25 02:10:52.0896 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 02:15:47.0914 AlertProcessor ProcessorAlertData: started 2025-12-25 02:15:47.6696 DFramework.Database.Query /* Time Taken: 584*/ DECLARE @TableName AnsiString(8000) SET @TableName = 'TagAlert' DECLARE @CurrentRecordId Int32 SET @CurrentRecordId = '0' dbo.GetValidDeviceForAlertProcessData 2025-12-25 02:15:52.3415 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 02:20:43.9215 DFramework.Database.Query /* Time Taken: 1227*/ [dbo].GenerateSystemAlerts 2025-12-25 02:20:47.1091 AlertProcessor ProcessorAlertData: started 2025-12-25 02:20:52.6560 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 02:20:58.0310 DFramework.Scheduler.TaskBase /* Time Taken: 15625.0868*/ Opportunity Out Of Stock By Outlet 2025-12-25 02:25:47.1267 AlertProcessor ProcessorAlertData: started 2025-12-25 02:25:52.1111 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 02:30:47.1439 AlertProcessor ProcessorAlertData: started 2025-12-25 02:30:52.2689 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 02:35:43.0988 DFramework.Database.Query /* Time Taken: 567*/ DECLARE @ClientId Int32 SET @ClientId = '213' DECLARE @MarketId Int32 SET @MarketId = '0' DECLARE @ClassificationId Int32 SET @ClassificationId = '0' DECLARE @LocationId Int32 SET @LocationId = '0' DECLARE @LocationTypeId Int32 SET @LocationTypeId = '0' DECLARE @StartDate DateTime2 SET @StartDate = '8/28/2025 12:00:00 AM' dbo.GetOpportunityOutOfStockDataByOutlet 2025-12-25 02:35:44.2082 DFramework.Database.Query /* Time Taken: 1486*/ [dbo].GenerateSystemAlerts 2025-12-25 02:35:44.4738 MoveToReorder Running task for ClientId : 286 and ClientName = India Office QA and Slot: 12/25/2025 4:00:00 PM And LastExecutedOn: 12/25/2025 3:05:44 PM 2025-12-25 02:35:47.1614 AlertProcessor ProcessorAlertData: started 2025-12-25 02:35:52.5676 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 02:35:58.3646 DFramework.Scheduler.TaskBase /* Time Taken: 15937.6005*/ Opportunity Out Of Stock By Outlet 2025-12-25 02:36:27.5835 DFramework.Database.NullableDataReader Data reader open for 42803 at System.Environment.GetStackTrace(Exception e, Boolean needFileInfo) at System.Environment.get_StackTrace() at DFramework.Database.NullableDataReader.Dispose(Boolean disposing) in D:\Spraxa\Framework\DFramework\Database\NullableDataReader.cs:line 33 at DFramework.Database.NullableDataReader.Dispose() in D:\Spraxa\Framework\DFramework\Database\NullableDataReader.cs:line 44 at CoolR.Tasks.MoveToReorder.Execute() in D:\Spraxa\CoolR-Group\portal\CoolR.Tasks\MoveToReorder.cs:line 44 at DFramework.Scheduler.TaskBase.Run() in D:\Spraxa\Framework\DFramework.Scheduler\TaskBase.cs:line 176 at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.ThreadHelper.ThreadStart() 2025-12-25 02:36:27.6147 MoveToReorder Task executed successfully for ClientId : 286 Client Name:India Office QA, Slot: 12/25/2025 4:00:00 PM and Total Order Suggested: 124 Out Of: 124 2025-12-25 02:36:28.5523 DFramework.Scheduler.TaskBase /* Time Taken: 44594.0491*/ Move To Re-Order 2025-12-25 02:40:47.1790 AlertProcessor ProcessorAlertData: started 2025-12-25 02:40:52.2571 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 02:45:47.1963 AlertProcessor ProcessorAlertData: started 2025-12-25 02:45:51.8526 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 02:50:44.4480 DFramework.Database.Query /* Time Taken: 1703*/ [dbo].GenerateSystemAlerts 2025-12-25 02:50:47.2137 AlertProcessor ProcessorAlertData: started 2025-12-25 02:50:48.8387 DFramework.Database.Query /* Time Taken: 533*/ DECLARE @TableName AnsiString(8000) SET @TableName = 'AdditionalShelf' DECLARE @CurrentRecordId Int32 SET @CurrentRecordId = '3675128' dbo.GetValidDeviceForAlertProcessData 2025-12-25 02:50:49.2762 DFramework.Database.Query /* Time Taken: 1468*/ DECLARE @StatusId Int32 SET @StatusId = '1' DECLARE @AlertId Int32 SET @AlertId = '7571914' SELECT TOP 10000 Alert.AlertId, Alert.LocationId, Alert.RecordId, ISNULL(AlertDefinition.Name, Alert.AlertText) Name, Alert.AlertTypeId, Alert.AlertText, ISNULL(Location.Name, '') AS LocationName, AlertDefinition.ClientId, AlertRecipient.RoleId, CASE WHEN Alert.AlertTypeId IN (6,7) THEN CONVERT(VARCHAR(10), CAST(AlertAt AS DATE), 101) ELSE AlertAt END AS AlertAt, AlertType, Asset.SerialNumber, ISNULL(LocationAttribute.FirstRepId, 0) RepId, ClientUser.PrimaryPhone AS SalesRepPhone, ClientUser.PrimaryEmail AS SalesRepEmail, FirstName, LastName, PreferedNotificationTypeIds, AlertRecipientId, AlertRecipientAddress, AlertRecipientText, Alert.Tags, AlertRecipientTypeId, NotificationContactTypeId, TemplateId, AlertDefinition.AlertAgeThreshold, LastUpdatedOn, AlertRecipient.AlertAge, CASE WHEN Location.TimeZoneId IS NOT NULL AND Location.TimeZoneId > 0 THEN Location.TimeZoneId ELSE Client.TimeZoneId END AS TimeZoneId, AlertDefinition.IsSummarize, Alert.ClosedOn, AssetType.IsChestCooler, AlertDefinition.SnoozeForHours, Alert.SnoozeDateTime FROM Alert LEFT OUTER JOIN Asset ON Alert.AssetId = Asset.AssetId LEFT OUTER JOIN AlertType ON Alert.AlertTypeId = AlertType.AlertTypeId LEFT OUTER JOIN AlertDefinition ON Alert.AlertDefinitionId = AlertDefinition.AlertDefinitionId LEFT OUTER JOIN Location ON Location.LocationId = Alert.LocationId LEFT OUTER JOIN LocationAttribute ON LocationAttribute.LocationId = dbo.Location.LocationId LEFT OUTER JOIN ClientUser ON LocationAttribute.FirstRepId = ClientUser.ClientUserId AND ClientUser.IsDeleted = 0 LEFT OUTER JOIN AlertRecipient ON Alert.AlertDefinitionId = AlertRecipient.AlertDefinitionId AND AlertRecipient.IsDeleted= 0 LEFT OUTER JOIN Client ON Client.ClientId = Alert.ClientId LEFT OUTER JOIN AssetType ON dbo.Asset.AssetTypeId = dbo.AssetType.AssetTypeId WHERE (NOT EXISTS(SELECT 1 FROM dbo.EmailQueue INNER JOIN dbo.EmailRecipient ON EmailRecipient.EmailQueueId = EmailQueue.EmailQueueId WHERE AlertId = Alert.AlertId AND EmailRecipient.RecipientId = AlertRecipient.AlertRecipientId) OR (Alert.SnoozeDateTime IS NOT NULL AND Alert.SnoozeDateTime <= GETUTCDATE() AND AlertDefinition.SnoozeForHours > 0 AND Alert.StatusId = @StatusId)) AND Alert.AlertId > @AlertId AND Alert.AlertAt >= DATEADD(DAY, -120, GETDATE()) AND AlertRecipient.IsDeleted = 0 AND Alert.IsActive = 1 AND Alert.IsDeleted = 0 AND AlertRecipient.IsActive = 1 AND AlertRecipient.IsDeleted = 0 AND AlertRecipient.StartDate <= Alert.CreatedOn AND Alert.CreatedOn < DATEADD(hh, 23, AlertRecipient.EndDate) AND (Alert.LocationId != 0 OR NotificationWithoutLocation = 1) AND AlertType.IsSystemAlert = 0 AND Alert.EmailQueuedOn IS NULL AND AlertDefinition.IsActive = 1 2025-12-25 02:50:52.8856 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 02:50:58.0731 DFramework.Scheduler.TaskBase /* Time Taken: 15625.1038*/ Opportunity Out Of Stock By Outlet 2025-12-25 02:55:47.2156 AlertProcessor ProcessorAlertData: started 2025-12-25 02:55:52.0438 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 03:00:47.2332 AlertProcessor ProcessorAlertData: started 2025-12-25 03:00:51.8582 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 03:05:47.2504 AlertProcessor ProcessorAlertData: started 2025-12-25 03:05:48.3442 DFramework.Database.Query /* Time Taken: 4340*/ DECLARE @OrderStatusId Int32 SET @OrderStatusId = '5486' UPDATE Location SET ScheduledOrderId = 0, OrderStatusId = 0 from ScheduledOrder INNER JOIN Location ON Location.ScheduledOrderId = ScheduledOrder.ScheduledOrderId AND Location.OrderStatusId = @OrderStatusId INNER JOIN CLient On Client.ClientId = Location.ClientId AND Client.HoursToMoveIgnored > 0 WHERE DATEADD(HOUR, Client.HoursToMoveIgnored, ScheduledOrder.ModifiedOn) < GETUTCDATE() AND ScheduledOrder.StatusId = @OrderStatusId ANd Location.IsDeleted = 0 AND ScheduledOrder.IsDeleted = 0 2025-12-25 03:05:48.6567 DFramework.Database.Query /* Time Taken: 5892*/ [dbo].GenerateSystemAlerts 2025-12-25 03:05:52.2817 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 03:05:58.0942 DFramework.Scheduler.TaskBase /* Time Taken: 15625.0992*/ Opportunity Out Of Stock By Outlet 2025-12-25 03:10:47.2680 AlertProcessor ProcessorAlertData: started 2025-12-25 03:10:52.0492 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 03:15:47.2856 AlertProcessor ProcessorAlertData: started 2025-12-25 03:15:52.0668 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 03:20:44.2405 DFramework.Database.Query /* Time Taken: 1461*/ [dbo].GenerateSystemAlerts 2025-12-25 03:20:47.3030 AlertProcessor ProcessorAlertData: started 2025-12-25 03:20:48.7249 DFramework.Database.Query /* Time Taken: 818*/ DECLARE @StatusId Int32 SET @StatusId = '1' DECLARE @AlertId Int32 SET @AlertId = '7571914' SELECT TOP 10000 Alert.AlertId, Alert.LocationId, Alert.RecordId, ISNULL(AlertDefinition.Name, Alert.AlertText) Name, Alert.AlertTypeId, Alert.AlertText, ISNULL(Location.Name, '') AS LocationName, AlertDefinition.ClientId, AlertRecipient.RoleId, CASE WHEN Alert.AlertTypeId IN (6,7) THEN CONVERT(VARCHAR(10), CAST(AlertAt AS DATE), 101) ELSE AlertAt END AS AlertAt, AlertType, Asset.SerialNumber, ISNULL(LocationAttribute.FirstRepId, 0) RepId, ClientUser.PrimaryPhone AS SalesRepPhone, ClientUser.PrimaryEmail AS SalesRepEmail, FirstName, LastName, PreferedNotificationTypeIds, AlertRecipientId, AlertRecipientAddress, AlertRecipientText, Alert.Tags, AlertRecipientTypeId, NotificationContactTypeId, TemplateId, AlertDefinition.AlertAgeThreshold, LastUpdatedOn, AlertRecipient.AlertAge, CASE WHEN Location.TimeZoneId IS NOT NULL AND Location.TimeZoneId > 0 THEN Location.TimeZoneId ELSE Client.TimeZoneId END AS TimeZoneId, AlertDefinition.IsSummarize, Alert.ClosedOn, AssetType.IsChestCooler, AlertDefinition.SnoozeForHours, Alert.SnoozeDateTime FROM Alert LEFT OUTER JOIN Asset ON Alert.AssetId = Asset.AssetId LEFT OUTER JOIN AlertType ON Alert.AlertTypeId = AlertType.AlertTypeId LEFT OUTER JOIN AlertDefinition ON Alert.AlertDefinitionId = AlertDefinition.AlertDefinitionId LEFT OUTER JOIN Location ON Location.LocationId = Alert.LocationId LEFT OUTER JOIN LocationAttribute ON LocationAttribute.LocationId = dbo.Location.LocationId LEFT OUTER JOIN ClientUser ON LocationAttribute.FirstRepId = ClientUser.ClientUserId AND ClientUser.IsDeleted = 0 LEFT OUTER JOIN AlertRecipient ON Alert.AlertDefinitionId = AlertRecipient.AlertDefinitionId AND AlertRecipient.IsDeleted= 0 LEFT OUTER JOIN Client ON Client.ClientId = Alert.ClientId LEFT OUTER JOIN AssetType ON dbo.Asset.AssetTypeId = dbo.AssetType.AssetTypeId WHERE (NOT EXISTS(SELECT 1 FROM dbo.EmailQueue INNER JOIN dbo.EmailRecipient ON EmailRecipient.EmailQueueId = EmailQueue.EmailQueueId WHERE AlertId = Alert.AlertId AND EmailRecipient.RecipientId = AlertRecipient.AlertRecipientId) OR (Alert.SnoozeDateTime IS NOT NULL AND Alert.SnoozeDateTime <= GETUTCDATE() AND AlertDefinition.SnoozeForHours > 0 AND Alert.StatusId = @StatusId)) AND Alert.AlertId > @AlertId AND Alert.AlertAt >= DATEADD(DAY, -120, GETDATE()) AND AlertRecipient.IsDeleted = 0 AND Alert.IsActive = 1 AND Alert.IsDeleted = 0 AND AlertRecipient.IsActive = 1 AND AlertRecipient.IsDeleted = 0 AND AlertRecipient.StartDate <= Alert.CreatedOn AND Alert.CreatedOn < DATEADD(hh, 23, AlertRecipient.EndDate) AND (Alert.LocationId != 0 OR NotificationWithoutLocation = 1) AND AlertType.IsSystemAlert = 0 AND Alert.EmailQueuedOn IS NULL AND AlertDefinition.IsActive = 1 2025-12-25 03:20:48.7561 DFramework.Database.Query /* Time Taken: 625*/ DECLARE @TableName AnsiString(8000) SET @TableName = 'MissingShelf' DECLARE @CurrentRecordId Int32 SET @CurrentRecordId = '3675128' dbo.GetValidDeviceForAlertProcessData 2025-12-25 03:20:52.8030 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 03:20:58.2093 DFramework.Scheduler.TaskBase /* Time Taken: 15718.8515*/ Opportunity Out Of Stock By Outlet 2025-12-25 03:25:47.3049 AlertProcessor ProcessorAlertData: started 2025-12-25 03:25:51.9768 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 03:30:47.3225 AlertProcessor ProcessorAlertData: started 2025-12-25 03:30:52.0413 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 03:35:43.9649 DFramework.Database.Query /* Time Taken: 1159*/ [dbo].GenerateSystemAlerts 2025-12-25 03:35:44.4025 MoveToReorder Running task for ClientId : 286 and ClientName = India Office QA and Slot: 12/25/2025 5:00:00 PM And LastExecutedOn: 12/25/2025 4:05:44 PM 2025-12-25 03:35:44.9649 DFramework.Database.NullableDataReader Data reader open for 271 at System.Environment.GetStackTrace(Exception e, Boolean needFileInfo) at System.Environment.get_StackTrace() at DFramework.Database.NullableDataReader.Dispose(Boolean disposing) in D:\Spraxa\Framework\DFramework\Database\NullableDataReader.cs:line 33 at DFramework.Database.NullableDataReader.Dispose() in D:\Spraxa\Framework\DFramework\Database\NullableDataReader.cs:line 44 at CoolR.Tasks.MoveToReorder.Execute() in D:\Spraxa\CoolR-Group\portal\CoolR.Tasks\MoveToReorder.cs:line 44 at DFramework.Scheduler.TaskBase.Run() in D:\Spraxa\Framework\DFramework.Scheduler\TaskBase.cs:line 176 at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.ThreadHelper.ThreadStart() 2025-12-25 03:35:45.0118 MoveToReorder Task executed successfully for ClientId : 286 Client Name:India Office QA, Slot: 12/25/2025 5:00:00 PM and Total Order Suggested: 2 Out Of: 2 2025-12-25 03:35:47.3400 AlertProcessor ProcessorAlertData: started 2025-12-25 03:35:52.0900 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 03:35:58.1213 DFramework.Scheduler.TaskBase /* Time Taken: 15609.4402*/ Opportunity Out Of Stock By Outlet 2025-12-25 03:40:47.3572 AlertProcessor ProcessorAlertData: started 2025-12-25 03:40:52.0760 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 03:45:47.3747 AlertProcessor ProcessorAlertData: started 2025-12-25 03:45:51.9841 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 03:50:44.1736 DFramework.Database.Query /* Time Taken: 1350*/ [dbo].GenerateSystemAlerts 2025-12-25 03:50:47.3924 AlertProcessor ProcessorAlertData: started 2025-12-25 03:50:51.9393 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 03:50:58.1424 DFramework.Scheduler.TaskBase /* Time Taken: 15609.4811*/ Opportunity Out Of Stock By Outlet 2025-12-25 03:55:47.4095 AlertProcessor ProcessorAlertData: started 2025-12-25 03:55:51.9252 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 04:00:47.4270 AlertProcessor ProcessorAlertData: started 2025-12-25 04:00:52.1301 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 04:05:43.5539 DFramework.Database.Query /* Time Taken: 886*/ DECLARE @ClientId Int32 SET @ClientId = '213' DECLARE @MarketId Int32 SET @MarketId = '0' DECLARE @ClassificationId Int32 SET @ClassificationId = '0' DECLARE @LocationId Int32 SET @LocationId = '0' DECLARE @LocationTypeId Int32 SET @LocationTypeId = '0' DECLARE @StartDate DateTime2 SET @StartDate = '8/28/2025 12:00:00 AM' dbo.GetOpportunityOutOfStockDataByOutlet 2025-12-25 04:05:44.4289 DFramework.Database.Query /* Time Taken: 1580*/ [dbo].GenerateSystemAlerts 2025-12-25 04:05:47.4446 AlertProcessor ProcessorAlertData: started 2025-12-25 04:05:52.6790 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 04:05:58.8509 DFramework.Scheduler.TaskBase /* Time Taken: 16296.992*/ Opportunity Out Of Stock By Outlet 2025-12-25 04:10:47.4620 AlertProcessor ProcessorAlertData: started 2025-12-25 04:10:52.0245 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 04:15:47.4794 AlertProcessor ProcessorAlertData: started 2025-12-25 04:15:51.9794 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 04:20:43.9345 DFramework.Database.Query /* Time Taken: 1062*/ [dbo].GenerateSystemAlerts 2025-12-25 04:20:47.4970 AlertProcessor ProcessorAlertData: started 2025-12-25 04:20:49.4501 DFramework.Database.Query /* Time Taken: 1359*/ DECLARE @StatusId Int32 SET @StatusId = '1' DECLARE @AlertId Int32 SET @AlertId = '7571914' SELECT TOP 10000 Alert.AlertId, Alert.LocationId, Alert.RecordId, ISNULL(AlertDefinition.Name, Alert.AlertText) Name, Alert.AlertTypeId, Alert.AlertText, ISNULL(Location.Name, '') AS LocationName, AlertDefinition.ClientId, AlertRecipient.RoleId, CASE WHEN Alert.AlertTypeId IN (6,7) THEN CONVERT(VARCHAR(10), CAST(AlertAt AS DATE), 101) ELSE AlertAt END AS AlertAt, AlertType, Asset.SerialNumber, ISNULL(LocationAttribute.FirstRepId, 0) RepId, ClientUser.PrimaryPhone AS SalesRepPhone, ClientUser.PrimaryEmail AS SalesRepEmail, FirstName, LastName, PreferedNotificationTypeIds, AlertRecipientId, AlertRecipientAddress, AlertRecipientText, Alert.Tags, AlertRecipientTypeId, NotificationContactTypeId, TemplateId, AlertDefinition.AlertAgeThreshold, LastUpdatedOn, AlertRecipient.AlertAge, CASE WHEN Location.TimeZoneId IS NOT NULL AND Location.TimeZoneId > 0 THEN Location.TimeZoneId ELSE Client.TimeZoneId END AS TimeZoneId, AlertDefinition.IsSummarize, Alert.ClosedOn, AssetType.IsChestCooler, AlertDefinition.SnoozeForHours, Alert.SnoozeDateTime FROM Alert LEFT OUTER JOIN Asset ON Alert.AssetId = Asset.AssetId LEFT OUTER JOIN AlertType ON Alert.AlertTypeId = AlertType.AlertTypeId LEFT OUTER JOIN AlertDefinition ON Alert.AlertDefinitionId = AlertDefinition.AlertDefinitionId LEFT OUTER JOIN Location ON Location.LocationId = Alert.LocationId LEFT OUTER JOIN LocationAttribute ON LocationAttribute.LocationId = dbo.Location.LocationId LEFT OUTER JOIN ClientUser ON LocationAttribute.FirstRepId = ClientUser.ClientUserId AND ClientUser.IsDeleted = 0 LEFT OUTER JOIN AlertRecipient ON Alert.AlertDefinitionId = AlertRecipient.AlertDefinitionId AND AlertRecipient.IsDeleted= 0 LEFT OUTER JOIN Client ON Client.ClientId = Alert.ClientId LEFT OUTER JOIN AssetType ON dbo.Asset.AssetTypeId = dbo.AssetType.AssetTypeId WHERE (NOT EXISTS(SELECT 1 FROM dbo.EmailQueue INNER JOIN dbo.EmailRecipient ON EmailRecipient.EmailQueueId = EmailQueue.EmailQueueId WHERE AlertId = Alert.AlertId AND EmailRecipient.RecipientId = AlertRecipient.AlertRecipientId) OR (Alert.SnoozeDateTime IS NOT NULL AND Alert.SnoozeDateTime <= GETUTCDATE() AND AlertDefinition.SnoozeForHours > 0 AND Alert.StatusId = @StatusId)) AND Alert.AlertId > @AlertId AND Alert.AlertAt >= DATEADD(DAY, -120, GETDATE()) AND AlertRecipient.IsDeleted = 0 AND Alert.IsActive = 1 AND Alert.IsDeleted = 0 AND AlertRecipient.IsActive = 1 AND AlertRecipient.IsDeleted = 0 AND AlertRecipient.StartDate <= Alert.CreatedOn AND Alert.CreatedOn < DATEADD(hh, 23, AlertRecipient.EndDate) AND (Alert.LocationId != 0 OR NotificationWithoutLocation = 1) AND AlertType.IsSystemAlert = 0 AND Alert.EmailQueuedOn IS NULL AND AlertDefinition.IsActive = 1 2025-12-25 04:20:52.3877 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 04:20:58.2002 DFramework.Scheduler.TaskBase /* Time Taken: 15625.1054*/ Opportunity Out Of Stock By Outlet 2025-12-25 04:25:47.5146 AlertProcessor ProcessorAlertData: started 2025-12-25 04:25:52.0147 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 04:30:47.5329 AlertProcessor ProcessorAlertData: started 2025-12-25 04:30:52.0486 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 04:35:44.1132 DFramework.Database.Query /* Time Taken: 1222*/ [dbo].GenerateSystemAlerts 2025-12-25 04:35:44.5039 MoveToReorder Running task for ClientId : 286 and ClientName = India Office QA and Slot: 12/25/2025 6:00:00 PM And LastExecutedOn: 12/25/2025 5:05:44 PM 2025-12-25 04:35:45.1445 DFramework.Database.NullableDataReader Data reader open for 263 at System.Environment.GetStackTrace(Exception e, Boolean needFileInfo) at System.Environment.get_StackTrace() at DFramework.Database.NullableDataReader.Dispose(Boolean disposing) in D:\Spraxa\Framework\DFramework\Database\NullableDataReader.cs:line 33 at DFramework.Database.NullableDataReader.Dispose() in D:\Spraxa\Framework\DFramework\Database\NullableDataReader.cs:line 44 at CoolR.Tasks.MoveToReorder.Execute() in D:\Spraxa\CoolR-Group\portal\CoolR.Tasks\MoveToReorder.cs:line 44 at DFramework.Scheduler.TaskBase.Run() in D:\Spraxa\Framework\DFramework.Scheduler\TaskBase.cs:line 176 at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.ThreadHelper.ThreadStart() 2025-12-25 04:35:45.1757 MoveToReorder Task executed successfully for ClientId : 286 Client Name:India Office QA, Slot: 12/25/2025 6:00:00 PM and Total Order Suggested: 1 Out Of: 1 2025-12-25 04:35:47.5507 AlertProcessor ProcessorAlertData: started 2025-12-25 04:35:52.1289 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 04:35:58.2071 DFramework.Scheduler.TaskBase /* Time Taken: 15609.4686*/ Opportunity Out Of Stock By Outlet 2025-12-25 04:40:47.5684 AlertProcessor ProcessorAlertData: started 2025-12-25 04:40:52.3653 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 04:45:47.5851 AlertProcessor ProcessorAlertData: started 2025-12-25 04:45:48.0851 DFramework.Database.Query /* Time Taken: 513*/ DECLARE @TableName AnsiString(8000) SET @TableName = 'TagAlert' DECLARE @CurrentRecordId Int32 SET @CurrentRecordId = '0' dbo.GetValidDeviceForAlertProcessData 2025-12-25 04:45:52.4913 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 04:50:44.2427 DFramework.Database.Query /* Time Taken: 1332*/ [dbo].GenerateSystemAlerts 2025-12-25 04:50:47.6020 AlertProcessor ProcessorAlertData: started 2025-12-25 04:50:48.9771 DFramework.Database.Query /* Time Taken: 779*/ DECLARE @StatusId Int32 SET @StatusId = '1' DECLARE @AlertId Int32 SET @AlertId = '7571914' SELECT TOP 10000 Alert.AlertId, Alert.LocationId, Alert.RecordId, ISNULL(AlertDefinition.Name, Alert.AlertText) Name, Alert.AlertTypeId, Alert.AlertText, ISNULL(Location.Name, '') AS LocationName, AlertDefinition.ClientId, AlertRecipient.RoleId, CASE WHEN Alert.AlertTypeId IN (6,7) THEN CONVERT(VARCHAR(10), CAST(AlertAt AS DATE), 101) ELSE AlertAt END AS AlertAt, AlertType, Asset.SerialNumber, ISNULL(LocationAttribute.FirstRepId, 0) RepId, ClientUser.PrimaryPhone AS SalesRepPhone, ClientUser.PrimaryEmail AS SalesRepEmail, FirstName, LastName, PreferedNotificationTypeIds, AlertRecipientId, AlertRecipientAddress, AlertRecipientText, Alert.Tags, AlertRecipientTypeId, NotificationContactTypeId, TemplateId, AlertDefinition.AlertAgeThreshold, LastUpdatedOn, AlertRecipient.AlertAge, CASE WHEN Location.TimeZoneId IS NOT NULL AND Location.TimeZoneId > 0 THEN Location.TimeZoneId ELSE Client.TimeZoneId END AS TimeZoneId, AlertDefinition.IsSummarize, Alert.ClosedOn, AssetType.IsChestCooler, AlertDefinition.SnoozeForHours, Alert.SnoozeDateTime FROM Alert LEFT OUTER JOIN Asset ON Alert.AssetId = Asset.AssetId LEFT OUTER JOIN AlertType ON Alert.AlertTypeId = AlertType.AlertTypeId LEFT OUTER JOIN AlertDefinition ON Alert.AlertDefinitionId = AlertDefinition.AlertDefinitionId LEFT OUTER JOIN Location ON Location.LocationId = Alert.LocationId LEFT OUTER JOIN LocationAttribute ON LocationAttribute.LocationId = dbo.Location.LocationId LEFT OUTER JOIN ClientUser ON LocationAttribute.FirstRepId = ClientUser.ClientUserId AND ClientUser.IsDeleted = 0 LEFT OUTER JOIN AlertRecipient ON Alert.AlertDefinitionId = AlertRecipient.AlertDefinitionId AND AlertRecipient.IsDeleted= 0 LEFT OUTER JOIN Client ON Client.ClientId = Alert.ClientId LEFT OUTER JOIN AssetType ON dbo.Asset.AssetTypeId = dbo.AssetType.AssetTypeId WHERE (NOT EXISTS(SELECT 1 FROM dbo.EmailQueue INNER JOIN dbo.EmailRecipient ON EmailRecipient.EmailQueueId = EmailQueue.EmailQueueId WHERE AlertId = Alert.AlertId AND EmailRecipient.RecipientId = AlertRecipient.AlertRecipientId) OR (Alert.SnoozeDateTime IS NOT NULL AND Alert.SnoozeDateTime <= GETUTCDATE() AND AlertDefinition.SnoozeForHours > 0 AND Alert.StatusId = @StatusId)) AND Alert.AlertId > @AlertId AND Alert.AlertAt >= DATEADD(DAY, -120, GETDATE()) AND AlertRecipient.IsDeleted = 0 AND Alert.IsActive = 1 AND Alert.IsDeleted = 0 AND AlertRecipient.IsActive = 1 AND AlertRecipient.IsDeleted = 0 AND AlertRecipient.StartDate <= Alert.CreatedOn AND Alert.CreatedOn < DATEADD(hh, 23, AlertRecipient.EndDate) AND (Alert.LocationId != 0 OR NotificationWithoutLocation = 1) AND AlertType.IsSystemAlert = 0 AND Alert.EmailQueuedOn IS NULL AND AlertDefinition.IsActive = 1 2025-12-25 04:50:48.9926 DFramework.Database.Query /* Time Taken: 633*/ DECLARE @TableName AnsiString(8000) SET @TableName = 'MissingShelf' DECLARE @CurrentRecordId Int32 SET @CurrentRecordId = '3675128' dbo.GetValidDeviceForAlertProcessData 2025-12-25 04:50:52.7270 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 04:50:58.2427 DFramework.Scheduler.TaskBase /* Time Taken: 15625.0854*/ Opportunity Out Of Stock By Outlet 2025-12-25 04:55:47.6195 AlertProcessor ProcessorAlertData: started 2025-12-25 04:55:52.1351 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 05:00:47.6369 AlertProcessor ProcessorAlertData: started 2025-12-25 05:00:52.2151 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 05:05:44.4510 DFramework.Database.Query /* Time Taken: 1518*/ [dbo].GenerateSystemAlerts 2025-12-25 05:05:47.6542 AlertProcessor ProcessorAlertData: started 2025-12-25 05:05:52.2323 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 05:05:58.2480 DFramework.Scheduler.TaskBase /* Time Taken: 15609.4635*/ Opportunity Out Of Stock By Outlet 2025-12-25 05:10:47.6717 AlertProcessor ProcessorAlertData: started 2025-12-25 05:10:52.2343 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 05:15:47.6893 AlertProcessor ProcessorAlertData: started 2025-12-25 05:15:52.2362 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 05:20:44.1753 DFramework.Database.Query /* Time Taken: 1227*/ [dbo].GenerateSystemAlerts 2025-12-25 05:20:47.7066 AlertProcessor ProcessorAlertData: started 2025-12-25 05:20:52.2539 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 05:20:58.2692 DFramework.Scheduler.TaskBase /* Time Taken: 15609.4693*/ Opportunity Out Of Stock By Outlet 2025-12-25 05:25:47.7240 AlertProcessor ProcessorAlertData: started 2025-12-25 05:25:52.3959 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 05:30:47.7416 AlertProcessor ProcessorAlertData: started 2025-12-25 05:30:52.3979 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 05:35:44.4931 DFramework.Database.Query /* Time Taken: 1527*/ [dbo].GenerateSystemAlerts 2025-12-25 05:35:44.7743 MoveToReorder Running task for ClientId : 286 and ClientName = India Office QA and Slot: 12/25/2025 7:00:00 PM And LastExecutedOn: 12/25/2025 6:05:44 PM 2025-12-25 05:35:47.7587 AlertProcessor ProcessorAlertData: started 2025-12-25 05:35:49.8993 DFramework.Database.Query /* Time Taken: 952*/ DECLARE @TableName AnsiString(8000) SET @TableName = 'AdditionalShelf' DECLARE @CurrentRecordId Int32 SET @CurrentRecordId = '3675128' dbo.GetValidDeviceForAlertProcessData 2025-12-25 05:35:53.5087 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 05:35:58.2900 DFramework.Scheduler.TaskBase /* Time Taken: 15609.4087*/ Opportunity Out Of Stock By Outlet 2025-12-25 05:36:25.8994 DFramework.Database.NullableDataReader Data reader open for 40768 at System.Environment.GetStackTrace(Exception e, Boolean needFileInfo) at System.Environment.get_StackTrace() at DFramework.Database.NullableDataReader.Dispose(Boolean disposing) in D:\Spraxa\Framework\DFramework\Database\NullableDataReader.cs:line 33 at DFramework.Database.NullableDataReader.Dispose() in D:\Spraxa\Framework\DFramework\Database\NullableDataReader.cs:line 44 at CoolR.Tasks.MoveToReorder.Execute() in D:\Spraxa\CoolR-Group\portal\CoolR.Tasks\MoveToReorder.cs:line 44 at DFramework.Scheduler.TaskBase.Run() in D:\Spraxa\Framework\DFramework.Scheduler\TaskBase.cs:line 176 at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.ThreadHelper.ThreadStart() 2025-12-25 05:36:25.9307 MoveToReorder Task executed successfully for ClientId : 286 Client Name:India Office QA, Slot: 12/25/2025 7:00:00 PM and Total Order Suggested: 124 Out Of: 124 2025-12-25 05:36:26.7901 DFramework.Scheduler.TaskBase /* Time Taken: 42500.1255*/ Move To Re-Order 2025-12-25 05:40:47.7756 AlertProcessor ProcessorAlertData: started 2025-12-25 05:40:52.4006 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 05:45:47.7930 AlertProcessor ProcessorAlertData: started 2025-12-25 05:45:52.3243 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 05:50:44.1543 DFramework.Database.Query /* Time Taken: 1157*/ [dbo].GenerateSystemAlerts 2025-12-25 05:50:47.8105 AlertProcessor ProcessorAlertData: started 2025-12-25 05:50:49.7012 DFramework.Database.Query /* Time Taken: 1311*/ DECLARE @StatusId Int32 SET @StatusId = '1' DECLARE @AlertId Int32 SET @AlertId = '7571914' SELECT TOP 10000 Alert.AlertId, Alert.LocationId, Alert.RecordId, ISNULL(AlertDefinition.Name, Alert.AlertText) Name, Alert.AlertTypeId, Alert.AlertText, ISNULL(Location.Name, '') AS LocationName, AlertDefinition.ClientId, AlertRecipient.RoleId, CASE WHEN Alert.AlertTypeId IN (6,7) THEN CONVERT(VARCHAR(10), CAST(AlertAt AS DATE), 101) ELSE AlertAt END AS AlertAt, AlertType, Asset.SerialNumber, ISNULL(LocationAttribute.FirstRepId, 0) RepId, ClientUser.PrimaryPhone AS SalesRepPhone, ClientUser.PrimaryEmail AS SalesRepEmail, FirstName, LastName, PreferedNotificationTypeIds, AlertRecipientId, AlertRecipientAddress, AlertRecipientText, Alert.Tags, AlertRecipientTypeId, NotificationContactTypeId, TemplateId, AlertDefinition.AlertAgeThreshold, LastUpdatedOn, AlertRecipient.AlertAge, CASE WHEN Location.TimeZoneId IS NOT NULL AND Location.TimeZoneId > 0 THEN Location.TimeZoneId ELSE Client.TimeZoneId END AS TimeZoneId, AlertDefinition.IsSummarize, Alert.ClosedOn, AssetType.IsChestCooler, AlertDefinition.SnoozeForHours, Alert.SnoozeDateTime FROM Alert LEFT OUTER JOIN Asset ON Alert.AssetId = Asset.AssetId LEFT OUTER JOIN AlertType ON Alert.AlertTypeId = AlertType.AlertTypeId LEFT OUTER JOIN AlertDefinition ON Alert.AlertDefinitionId = AlertDefinition.AlertDefinitionId LEFT OUTER JOIN Location ON Location.LocationId = Alert.LocationId LEFT OUTER JOIN LocationAttribute ON LocationAttribute.LocationId = dbo.Location.LocationId LEFT OUTER JOIN ClientUser ON LocationAttribute.FirstRepId = ClientUser.ClientUserId AND ClientUser.IsDeleted = 0 LEFT OUTER JOIN AlertRecipient ON Alert.AlertDefinitionId = AlertRecipient.AlertDefinitionId AND AlertRecipient.IsDeleted= 0 LEFT OUTER JOIN Client ON Client.ClientId = Alert.ClientId LEFT OUTER JOIN AssetType ON dbo.Asset.AssetTypeId = dbo.AssetType.AssetTypeId WHERE (NOT EXISTS(SELECT 1 FROM dbo.EmailQueue INNER JOIN dbo.EmailRecipient ON EmailRecipient.EmailQueueId = EmailQueue.EmailQueueId WHERE AlertId = Alert.AlertId AND EmailRecipient.RecipientId = AlertRecipient.AlertRecipientId) OR (Alert.SnoozeDateTime IS NOT NULL AND Alert.SnoozeDateTime <= GETUTCDATE() AND AlertDefinition.SnoozeForHours > 0 AND Alert.StatusId = @StatusId)) AND Alert.AlertId > @AlertId AND Alert.AlertAt >= DATEADD(DAY, -120, GETDATE()) AND AlertRecipient.IsDeleted = 0 AND Alert.IsActive = 1 AND Alert.IsDeleted = 0 AND AlertRecipient.IsActive = 1 AND AlertRecipient.IsDeleted = 0 AND AlertRecipient.StartDate <= Alert.CreatedOn AND Alert.CreatedOn < DATEADD(hh, 23, AlertRecipient.EndDate) AND (Alert.LocationId != 0 OR NotificationWithoutLocation = 1) AND AlertType.IsSystemAlert = 0 AND Alert.EmailQueuedOn IS NULL AND AlertDefinition.IsActive = 1 2025-12-25 05:50:52.6387 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 05:50:58.2950 DFramework.Scheduler.TaskBase /* Time Taken: 15593.8636*/ Opportunity Out Of Stock By Outlet 2025-12-25 05:55:47.8293 AlertProcessor ProcessorAlertData: started 2025-12-25 05:55:52.3137 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 06:00:47.8473 AlertProcessor ProcessorAlertData: started 2025-12-25 06:00:52.3161 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 06:05:44.6151 DFramework.Database.Query /* Time Taken: 1597*/ [dbo].GenerateSystemAlerts 2025-12-25 06:05:47.8651 AlertProcessor ProcessorAlertData: started 2025-12-25 06:05:52.9588 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 06:05:58.4433 DFramework.Scheduler.TaskBase /* Time Taken: 15718.8682*/ Opportunity Out Of Stock By Outlet 2025-12-25 06:10:47.8819 AlertProcessor ProcessorAlertData: started 2025-12-25 06:10:52.5382 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 06:15:47.8989 AlertProcessor ProcessorAlertData: started 2025-12-25 06:15:52.7427 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 06:20:44.4319 DFramework.Database.Query /* Time Taken: 1402*/ [dbo].GenerateSystemAlerts 2025-12-25 06:20:47.9163 AlertProcessor ProcessorAlertData: started 2025-12-25 06:20:52.5414 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 06:20:58.3852 DFramework.Scheduler.TaskBase /* Time Taken: 15640.7304*/ Opportunity Out Of Stock By Outlet 2025-12-25 06:25:47.9339 AlertProcessor ProcessorAlertData: started 2025-12-25 06:25:48.4652 DFramework.Database.NullableDataReader Data reader open for 270 at System.Environment.GetStackTrace(Exception e, Boolean needFileInfo) at System.Environment.get_StackTrace() at DFramework.Database.NullableDataReader.Dispose(Boolean disposing) in D:\Spraxa\Framework\DFramework\Database\NullableDataReader.cs:line 33 at DFramework.Database.NullableDataReader.Dispose() in D:\Spraxa\Framework\DFramework\Database\NullableDataReader.cs:line 44 at CoolR.Tasks.ProcessAlertData.Execute() in D:\Spraxa\CoolR-Group\portal\CoolR.Tasks\ProcessAlertData.cs:line 47 at DFramework.Scheduler.TaskBase.Run() in D:\Spraxa\Framework\DFramework.Scheduler\TaskBase.cs:line 176 at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.ThreadHelper.ThreadStart() 2025-12-25 06:25:52.6996 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 06:30:47.9514 AlertProcessor ProcessorAlertData: started 2025-12-25 06:30:52.4671 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 06:35:44.3597 DFramework.Database.Query /* Time Taken: 1306*/ [dbo].GenerateSystemAlerts 2025-12-25 06:35:44.7190 MoveToReorder Running task for ClientId : 286 and ClientName = India Office QA and Slot: 12/25/2025 8:00:00 PM And LastExecutedOn: 12/25/2025 7:05:44 PM 2025-12-25 06:35:45.1253 DFramework.Database.NullableDataReader Data reader open for 208 at System.Environment.GetStackTrace(Exception e, Boolean needFileInfo) at System.Environment.get_StackTrace() at DFramework.Database.NullableDataReader.Dispose(Boolean disposing) in D:\Spraxa\Framework\DFramework\Database\NullableDataReader.cs:line 33 at DFramework.Database.NullableDataReader.Dispose() in D:\Spraxa\Framework\DFramework\Database\NullableDataReader.cs:line 44 at CoolR.Tasks.MoveToReorder.Execute() in D:\Spraxa\CoolR-Group\portal\CoolR.Tasks\MoveToReorder.cs:line 44 at DFramework.Scheduler.TaskBase.Run() in D:\Spraxa\Framework\DFramework.Scheduler\TaskBase.cs:line 176 at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.ThreadHelper.ThreadStart() 2025-12-25 06:35:45.1565 MoveToReorder Task executed successfully for ClientId : 286 Client Name:India Office QA, Slot: 12/25/2025 8:00:00 PM and Total Order Suggested: 2 Out Of: 2 2025-12-25 06:35:47.9690 AlertProcessor ProcessorAlertData: started 2025-12-25 06:35:52.5941 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 06:35:58.4535 DFramework.Scheduler.TaskBase /* Time Taken: 15703.2164*/ Opportunity Out Of Stock By Outlet 2025-12-25 06:40:47.9866 AlertProcessor ProcessorAlertData: started 2025-12-25 06:40:49.1273 DFramework.Database.Query /* Time Taken: 556*/ DECLARE @StatusId Int32 SET @StatusId = '1' DECLARE @AlertId Int32 SET @AlertId = '7571914' SELECT TOP 10000 Alert.AlertId, Alert.LocationId, Alert.RecordId, ISNULL(AlertDefinition.Name, Alert.AlertText) Name, Alert.AlertTypeId, Alert.AlertText, ISNULL(Location.Name, '') AS LocationName, AlertDefinition.ClientId, AlertRecipient.RoleId, CASE WHEN Alert.AlertTypeId IN (6,7) THEN CONVERT(VARCHAR(10), CAST(AlertAt AS DATE), 101) ELSE AlertAt END AS AlertAt, AlertType, Asset.SerialNumber, ISNULL(LocationAttribute.FirstRepId, 0) RepId, ClientUser.PrimaryPhone AS SalesRepPhone, ClientUser.PrimaryEmail AS SalesRepEmail, FirstName, LastName, PreferedNotificationTypeIds, AlertRecipientId, AlertRecipientAddress, AlertRecipientText, Alert.Tags, AlertRecipientTypeId, NotificationContactTypeId, TemplateId, AlertDefinition.AlertAgeThreshold, LastUpdatedOn, AlertRecipient.AlertAge, CASE WHEN Location.TimeZoneId IS NOT NULL AND Location.TimeZoneId > 0 THEN Location.TimeZoneId ELSE Client.TimeZoneId END AS TimeZoneId, AlertDefinition.IsSummarize, Alert.ClosedOn, AssetType.IsChestCooler, AlertDefinition.SnoozeForHours, Alert.SnoozeDateTime FROM Alert LEFT OUTER JOIN Asset ON Alert.AssetId = Asset.AssetId LEFT OUTER JOIN AlertType ON Alert.AlertTypeId = AlertType.AlertTypeId LEFT OUTER JOIN AlertDefinition ON Alert.AlertDefinitionId = AlertDefinition.AlertDefinitionId LEFT OUTER JOIN Location ON Location.LocationId = Alert.LocationId LEFT OUTER JOIN LocationAttribute ON LocationAttribute.LocationId = dbo.Location.LocationId LEFT OUTER JOIN ClientUser ON LocationAttribute.FirstRepId = ClientUser.ClientUserId AND ClientUser.IsDeleted = 0 LEFT OUTER JOIN AlertRecipient ON Alert.AlertDefinitionId = AlertRecipient.AlertDefinitionId AND AlertRecipient.IsDeleted= 0 LEFT OUTER JOIN Client ON Client.ClientId = Alert.ClientId LEFT OUTER JOIN AssetType ON dbo.Asset.AssetTypeId = dbo.AssetType.AssetTypeId WHERE (NOT EXISTS(SELECT 1 FROM dbo.EmailQueue INNER JOIN dbo.EmailRecipient ON EmailRecipient.EmailQueueId = EmailQueue.EmailQueueId WHERE AlertId = Alert.AlertId AND EmailRecipient.RecipientId = AlertRecipient.AlertRecipientId) OR (Alert.SnoozeDateTime IS NOT NULL AND Alert.SnoozeDateTime <= GETUTCDATE() AND AlertDefinition.SnoozeForHours > 0 AND Alert.StatusId = @StatusId)) AND Alert.AlertId > @AlertId AND Alert.AlertAt >= DATEADD(DAY, -120, GETDATE()) AND AlertRecipient.IsDeleted = 0 AND Alert.IsActive = 1 AND Alert.IsDeleted = 0 AND AlertRecipient.IsActive = 1 AND AlertRecipient.IsDeleted = 0 AND AlertRecipient.StartDate <= Alert.CreatedOn AND Alert.CreatedOn < DATEADD(hh, 23, AlertRecipient.EndDate) AND (Alert.LocationId != 0 OR NotificationWithoutLocation = 1) AND AlertType.IsSystemAlert = 0 AND Alert.EmailQueuedOn IS NULL AND AlertDefinition.IsActive = 1 2025-12-25 06:40:52.5961 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 06:45:48.0040 AlertProcessor ProcessorAlertData: started 2025-12-25 06:45:52.6446 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 06:50:45.1621 DFramework.Database.Query /* Time Taken: 2090*/ [dbo].GenerateSystemAlerts 2025-12-25 06:50:47.6933 DFramework.Database.Query /* Time Taken: 4823*/ DECLARE @ClientId Int32 SET @ClientId = '213' DECLARE @MarketId Int32 SET @MarketId = '0' DECLARE @ClassificationId Int32 SET @ClassificationId = '0' DECLARE @LocationId Int32 SET @LocationId = '0' DECLARE @LocationTypeId Int32 SET @LocationTypeId = '0' DECLARE @StartDate DateTime2 SET @StartDate = '8/28/2025 12:00:00 AM' dbo.GetOpportunityOutOfStockDataByOutlet 2025-12-25 06:50:48.0215 AlertProcessor ProcessorAlertData: started 2025-12-25 06:50:52.5996 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 06:51:02.9903 DFramework.Scheduler.TaskBase /* Time Taken: 20218.882*/ Opportunity Out Of Stock By Outlet 2025-12-25 06:55:48.0390 AlertProcessor ProcessorAlertData: started 2025-12-25 06:55:52.7734 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 07:00:48.0565 AlertProcessor ProcessorAlertData: started 2025-12-25 07:00:52.8221 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 07:05:44.9801 DFramework.Database.Query /* Time Taken: 2084*/ DECLARE @ClientId Int32 SET @ClientId = '213' DECLARE @MarketId Int32 SET @MarketId = '0' DECLARE @ClassificationId Int32 SET @ClassificationId = '0' DECLARE @LocationId Int32 SET @LocationId = '0' DECLARE @LocationTypeId Int32 SET @LocationTypeId = '0' DECLARE @StartDate DateTime2 SET @StartDate = '8/28/2025 12:00:00 AM' dbo.GetOpportunityOutOfStockDataByOutlet 2025-12-25 07:05:47.6989 DFramework.Database.Query /* Time Taken: 4599*/ [dbo].GenerateSystemAlerts 2025-12-25 07:05:48.0739 AlertProcessor ProcessorAlertData: started 2025-12-25 07:05:53.0426 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 07:06:00.2771 DFramework.Scheduler.TaskBase /* Time Taken: 17484.4952*/ Opportunity Out Of Stock By Outlet 2025-12-25 07:10:48.0914 AlertProcessor ProcessorAlertData: started 2025-12-25 07:10:52.5914 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 07:15:48.1090 AlertProcessor ProcessorAlertData: started 2025-12-25 07:15:52.7028 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 07:20:43.4387 DFramework.Database.Query /* Time Taken: 527*/ DECLARE @ClientId Int32 SET @ClientId = '213' DECLARE @MarketId Int32 SET @MarketId = '0' DECLARE @ClassificationId Int32 SET @ClassificationId = '0' DECLARE @LocationId Int32 SET @LocationId = '0' DECLARE @LocationTypeId Int32 SET @LocationTypeId = '0' DECLARE @StartDate DateTime2 SET @StartDate = '8/28/2025 12:00:00 AM' dbo.GetOpportunityOutOfStockDataByOutlet 2025-12-25 07:20:45.0169 DFramework.Database.Query /* Time Taken: 1899*/ [dbo].GenerateSystemAlerts 2025-12-25 07:20:48.1263 AlertProcessor ProcessorAlertData: started 2025-12-25 07:20:48.6419 DFramework.Database.Query /* Time Taken: 514*/ DECLARE @TableName AnsiString(8000) SET @TableName = 'TagAlert' DECLARE @CurrentRecordId Int32 SET @CurrentRecordId = '0' dbo.GetValidDeviceForAlertProcessData 2025-12-25 07:20:50.0794 DFramework.Database.Query /* Time Taken: 1366*/ DECLARE @StatusId Int32 SET @StatusId = '1' DECLARE @AlertId Int32 SET @AlertId = '7571914' SELECT TOP 10000 Alert.AlertId, Alert.LocationId, Alert.RecordId, ISNULL(AlertDefinition.Name, Alert.AlertText) Name, Alert.AlertTypeId, Alert.AlertText, ISNULL(Location.Name, '') AS LocationName, AlertDefinition.ClientId, AlertRecipient.RoleId, CASE WHEN Alert.AlertTypeId IN (6,7) THEN CONVERT(VARCHAR(10), CAST(AlertAt AS DATE), 101) ELSE AlertAt END AS AlertAt, AlertType, Asset.SerialNumber, ISNULL(LocationAttribute.FirstRepId, 0) RepId, ClientUser.PrimaryPhone AS SalesRepPhone, ClientUser.PrimaryEmail AS SalesRepEmail, FirstName, LastName, PreferedNotificationTypeIds, AlertRecipientId, AlertRecipientAddress, AlertRecipientText, Alert.Tags, AlertRecipientTypeId, NotificationContactTypeId, TemplateId, AlertDefinition.AlertAgeThreshold, LastUpdatedOn, AlertRecipient.AlertAge, CASE WHEN Location.TimeZoneId IS NOT NULL AND Location.TimeZoneId > 0 THEN Location.TimeZoneId ELSE Client.TimeZoneId END AS TimeZoneId, AlertDefinition.IsSummarize, Alert.ClosedOn, AssetType.IsChestCooler, AlertDefinition.SnoozeForHours, Alert.SnoozeDateTime FROM Alert LEFT OUTER JOIN Asset ON Alert.AssetId = Asset.AssetId LEFT OUTER JOIN AlertType ON Alert.AlertTypeId = AlertType.AlertTypeId LEFT OUTER JOIN AlertDefinition ON Alert.AlertDefinitionId = AlertDefinition.AlertDefinitionId LEFT OUTER JOIN Location ON Location.LocationId = Alert.LocationId LEFT OUTER JOIN LocationAttribute ON LocationAttribute.LocationId = dbo.Location.LocationId LEFT OUTER JOIN ClientUser ON LocationAttribute.FirstRepId = ClientUser.ClientUserId AND ClientUser.IsDeleted = 0 LEFT OUTER JOIN AlertRecipient ON Alert.AlertDefinitionId = AlertRecipient.AlertDefinitionId AND AlertRecipient.IsDeleted= 0 LEFT OUTER JOIN Client ON Client.ClientId = Alert.ClientId LEFT OUTER JOIN AssetType ON dbo.Asset.AssetTypeId = dbo.AssetType.AssetTypeId WHERE (NOT EXISTS(SELECT 1 FROM dbo.EmailQueue INNER JOIN dbo.EmailRecipient ON EmailRecipient.EmailQueueId = EmailQueue.EmailQueueId WHERE AlertId = Alert.AlertId AND EmailRecipient.RecipientId = AlertRecipient.AlertRecipientId) OR (Alert.SnoozeDateTime IS NOT NULL AND Alert.SnoozeDateTime <= GETUTCDATE() AND AlertDefinition.SnoozeForHours > 0 AND Alert.StatusId = @StatusId)) AND Alert.AlertId > @AlertId AND Alert.AlertAt >= DATEADD(DAY, -120, GETDATE()) AND AlertRecipient.IsDeleted = 0 AND Alert.IsActive = 1 AND Alert.IsDeleted = 0 AND AlertRecipient.IsActive = 1 AND AlertRecipient.IsDeleted = 0 AND AlertRecipient.StartDate <= Alert.CreatedOn AND Alert.CreatedOn < DATEADD(hh, 23, AlertRecipient.EndDate) AND (Alert.LocationId != 0 OR NotificationWithoutLocation = 1) AND AlertType.IsSystemAlert = 0 AND Alert.EmailQueuedOn IS NULL AND AlertDefinition.IsActive = 1 2025-12-25 07:20:53.3763 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 07:20:58.7670 DFramework.Scheduler.TaskBase /* Time Taken: 15953.2153*/ Opportunity Out Of Stock By Outlet 2025-12-25 07:25:48.1438 AlertProcessor ProcessorAlertData: started 2025-12-25 07:25:52.6282 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 07:30:48.1457 AlertProcessor ProcessorAlertData: started 2025-12-25 07:30:52.6770 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 07:35:44.3975 DFramework.Database.Query /* Time Taken: 1257*/ [dbo].GenerateSystemAlerts 2025-12-25 07:35:44.8506 MoveToReorder Running task for ClientId : 286 and ClientName = India Office QA and Slot: 12/25/2025 9:00:00 PM And LastExecutedOn: 12/25/2025 8:05:44 PM 2025-12-25 07:35:45.6631 DFramework.Database.NullableDataReader Data reader open for 507 at System.Environment.GetStackTrace(Exception e, Boolean needFileInfo) at System.Environment.get_StackTrace() at DFramework.Database.NullableDataReader.Dispose(Boolean disposing) in D:\Spraxa\Framework\DFramework\Database\NullableDataReader.cs:line 33 at DFramework.Database.NullableDataReader.Dispose() in D:\Spraxa\Framework\DFramework\Database\NullableDataReader.cs:line 44 at CoolR.Tasks.MoveToReorder.Execute() in D:\Spraxa\CoolR-Group\portal\CoolR.Tasks\MoveToReorder.cs:line 44 at DFramework.Scheduler.TaskBase.Run() in D:\Spraxa\Framework\DFramework.Scheduler\TaskBase.cs:line 176 at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.ThreadHelper.ThreadStart() 2025-12-25 07:35:45.6944 MoveToReorder Task executed successfully for ClientId : 286 Client Name:India Office QA, Slot: 12/25/2025 9:00:00 PM and Total Order Suggested: 1 Out Of: 1 2025-12-25 07:35:48.1475 AlertProcessor ProcessorAlertData: started 2025-12-25 07:35:50.2882 DFramework.Database.Query /* Time Taken: 595*/ DECLARE @TableName AnsiString(8000) SET @TableName = 'PlanogramComplianceConsolidate' DECLARE @CurrentRecordId Int32 SET @CurrentRecordId = '3675104' dbo.GetValidDeviceForAlertProcessData 2025-12-25 07:35:53.2257 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 07:35:58.4757 DFramework.Scheduler.TaskBase /* Time Taken: 15640.7089*/ Opportunity Out Of Stock By Outlet 2025-12-25 07:40:48.1493 AlertProcessor ProcessorAlertData: started 2025-12-25 07:40:52.7431 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 07:45:48.1669 AlertProcessor ProcessorAlertData: started 2025-12-25 07:45:52.8701 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 07:50:43.4657 DFramework.Database.Query /* Time Taken: 502*/ DECLARE @ClientId Int32 SET @ClientId = '213' DECLARE @MarketId Int32 SET @MarketId = '0' DECLARE @ClassificationId Int32 SET @ClassificationId = '0' DECLARE @LocationId Int32 SET @LocationId = '0' DECLARE @LocationTypeId Int32 SET @LocationTypeId = '0' DECLARE @StartDate DateTime2 SET @StartDate = '8/28/2025 12:00:00 AM' dbo.GetOpportunityOutOfStockDataByOutlet 2025-12-25 07:50:44.7470 DFramework.Database.Query /* Time Taken: 1589*/ [dbo].GenerateSystemAlerts 2025-12-25 07:50:48.1845 AlertProcessor ProcessorAlertData: started 2025-12-25 07:50:53.1064 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 07:50:58.7314 DFramework.Scheduler.TaskBase /* Time Taken: 15875.1241*/ Opportunity Out Of Stock By Outlet 2025-12-25 07:55:48.2018 AlertProcessor ProcessorAlertData: started 2025-12-25 07:55:52.8893 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 08:00:48.2194 AlertProcessor ProcessorAlertData: started 2025-12-25 08:00:52.7819 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 08:05:45.2369 DFramework.Database.Query /* Time Taken: 2053*/ [dbo].GenerateSystemAlerts 2025-12-25 08:05:48.2370 AlertProcessor ProcessorAlertData: started 2025-12-25 08:05:53.1120 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 08:05:58.7839 DFramework.Scheduler.TaskBase /* Time Taken: 15906.3459*/ Opportunity Out Of Stock By Outlet 2025-12-25 08:10:48.2388 AlertProcessor ProcessorAlertData: started 2025-12-25 08:10:52.8950 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 08:15:48.2563 AlertProcessor ProcessorAlertData: started 2025-12-25 08:15:53.0219 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 08:20:44.5707 DFramework.Database.Query /* Time Taken: 1373*/ [dbo].GenerateSystemAlerts 2025-12-25 08:20:48.2739 AlertProcessor ProcessorAlertData: started 2025-12-25 08:20:53.5083 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 08:20:58.8833 DFramework.Scheduler.TaskBase /* Time Taken: 15984.4755*/ Opportunity Out Of Stock By Outlet 2025-12-25 08:25:48.2918 AlertProcessor ProcessorAlertData: started 2025-12-25 08:25:53.2450 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 08:30:48.3104 AlertProcessor ProcessorAlertData: started 2025-12-25 08:30:52.9979 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 08:35:44.7345 DFramework.Database.Query /* Time Taken: 1501*/ [dbo].GenerateSystemAlerts 2025-12-25 08:35:45.0157 MoveToReorder Running task for ClientId : 286 and ClientName = India Office QA and Slot: 12/25/2025 10:00:00 PM And LastExecutedOn: 12/25/2025 9:05:44 PM 2025-12-25 08:35:48.3282 AlertProcessor ProcessorAlertData: started 2025-12-25 08:35:55.5627 DFramework.Database.Query /* Time Taken: 2107*/ DECLARE @TableName AnsiString(8000) SET @TableName = 'ProductStockLevel' DECLARE @CurrentRecordId Int32 SET @CurrentRecordId = '3675104' dbo.GetValidDeviceForAlertProcessData 2025-12-25 08:35:55.6252 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 08:35:58.9220 DFramework.Scheduler.TaskBase /* Time Taken: 16000.1131*/ Opportunity Out Of Stock By Outlet 2025-12-25 08:36:28.9066 DFramework.Database.NullableDataReader Data reader open for 43542 at System.Environment.GetStackTrace(Exception e, Boolean needFileInfo) at System.Environment.get_StackTrace() at DFramework.Database.NullableDataReader.Dispose(Boolean disposing) in D:\Spraxa\Framework\DFramework\Database\NullableDataReader.cs:line 33 at DFramework.Database.NullableDataReader.Dispose() in D:\Spraxa\Framework\DFramework\Database\NullableDataReader.cs:line 44 at CoolR.Tasks.MoveToReorder.Execute() in D:\Spraxa\CoolR-Group\portal\CoolR.Tasks\MoveToReorder.cs:line 44 at DFramework.Scheduler.TaskBase.Run() in D:\Spraxa\Framework\DFramework.Scheduler\TaskBase.cs:line 176 at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.ThreadHelper.ThreadStart() 2025-12-25 08:36:28.9535 MoveToReorder Task executed successfully for ClientId : 286 Client Name:India Office QA, Slot: 12/25/2025 10:00:00 PM and Total Order Suggested: 124 Out Of: 124 2025-12-25 08:36:29.9691 DFramework.Scheduler.TaskBase /* Time Taken: 45328.4398*/ Move To Re-Order 2025-12-25 08:40:48.3459 AlertProcessor ProcessorAlertData: started 2025-12-25 08:40:53.2834 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 08:45:48.3620 AlertProcessor ProcessorAlertData: started 2025-12-25 08:45:53.2838 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 08:50:43.5507 DFramework.Database.Query /* Time Taken: 511*/ DECLARE @ClientId Int32 SET @ClientId = '213' DECLARE @MarketId Int32 SET @MarketId = '0' DECLARE @ClassificationId Int32 SET @ClassificationId = '0' DECLARE @LocationId Int32 SET @LocationId = '0' DECLARE @LocationTypeId Int32 SET @LocationTypeId = '0' DECLARE @StartDate DateTime2 SET @StartDate = '8/28/2025 12:00:00 AM' dbo.GetOpportunityOutOfStockDataByOutlet 2025-12-25 08:50:44.8476 DFramework.Database.Query /* Time Taken: 1618*/ [dbo].GenerateSystemAlerts 2025-12-25 08:50:48.3789 AlertProcessor ProcessorAlertData: started 2025-12-25 08:50:48.9570 DFramework.Database.Query /* Time Taken: 583*/ DECLARE @TableName AnsiString(8000) SET @TableName = 'TagAlert' DECLARE @CurrentRecordId Int32 SET @CurrentRecordId = '0' dbo.GetValidDeviceForAlertProcessData 2025-12-25 08:50:50.5351 DFramework.Database.Query /* Time Taken: 1529*/ DECLARE @StatusId Int32 SET @StatusId = '1' DECLARE @AlertId Int32 SET @AlertId = '7571914' SELECT TOP 10000 Alert.AlertId, Alert.LocationId, Alert.RecordId, ISNULL(AlertDefinition.Name, Alert.AlertText) Name, Alert.AlertTypeId, Alert.AlertText, ISNULL(Location.Name, '') AS LocationName, AlertDefinition.ClientId, AlertRecipient.RoleId, CASE WHEN Alert.AlertTypeId IN (6,7) THEN CONVERT(VARCHAR(10), CAST(AlertAt AS DATE), 101) ELSE AlertAt END AS AlertAt, AlertType, Asset.SerialNumber, ISNULL(LocationAttribute.FirstRepId, 0) RepId, ClientUser.PrimaryPhone AS SalesRepPhone, ClientUser.PrimaryEmail AS SalesRepEmail, FirstName, LastName, PreferedNotificationTypeIds, AlertRecipientId, AlertRecipientAddress, AlertRecipientText, Alert.Tags, AlertRecipientTypeId, NotificationContactTypeId, TemplateId, AlertDefinition.AlertAgeThreshold, LastUpdatedOn, AlertRecipient.AlertAge, CASE WHEN Location.TimeZoneId IS NOT NULL AND Location.TimeZoneId > 0 THEN Location.TimeZoneId ELSE Client.TimeZoneId END AS TimeZoneId, AlertDefinition.IsSummarize, Alert.ClosedOn, AssetType.IsChestCooler, AlertDefinition.SnoozeForHours, Alert.SnoozeDateTime FROM Alert LEFT OUTER JOIN Asset ON Alert.AssetId = Asset.AssetId LEFT OUTER JOIN AlertType ON Alert.AlertTypeId = AlertType.AlertTypeId LEFT OUTER JOIN AlertDefinition ON Alert.AlertDefinitionId = AlertDefinition.AlertDefinitionId LEFT OUTER JOIN Location ON Location.LocationId = Alert.LocationId LEFT OUTER JOIN LocationAttribute ON LocationAttribute.LocationId = dbo.Location.LocationId LEFT OUTER JOIN ClientUser ON LocationAttribute.FirstRepId = ClientUser.ClientUserId AND ClientUser.IsDeleted = 0 LEFT OUTER JOIN AlertRecipient ON Alert.AlertDefinitionId = AlertRecipient.AlertDefinitionId AND AlertRecipient.IsDeleted= 0 LEFT OUTER JOIN Client ON Client.ClientId = Alert.ClientId LEFT OUTER JOIN AssetType ON dbo.Asset.AssetTypeId = dbo.AssetType.AssetTypeId WHERE (NOT EXISTS(SELECT 1 FROM dbo.EmailQueue INNER JOIN dbo.EmailRecipient ON EmailRecipient.EmailQueueId = EmailQueue.EmailQueueId WHERE AlertId = Alert.AlertId AND EmailRecipient.RecipientId = AlertRecipient.AlertRecipientId) OR (Alert.SnoozeDateTime IS NOT NULL AND Alert.SnoozeDateTime <= GETUTCDATE() AND AlertDefinition.SnoozeForHours > 0 AND Alert.StatusId = @StatusId)) AND Alert.AlertId > @AlertId AND Alert.AlertAt >= DATEADD(DAY, -120, GETDATE()) AND AlertRecipient.IsDeleted = 0 AND Alert.IsActive = 1 AND Alert.IsDeleted = 0 AND AlertRecipient.IsActive = 1 AND AlertRecipient.IsDeleted = 0 AND AlertRecipient.StartDate <= Alert.CreatedOn AND Alert.CreatedOn < DATEADD(hh, 23, AlertRecipient.EndDate) AND (Alert.LocationId != 0 OR NotificationWithoutLocation = 1) AND AlertType.IsSystemAlert = 0 AND Alert.EmailQueuedOn IS NULL AND AlertDefinition.IsActive = 1 2025-12-25 08:50:54.0508 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 08:50:58.8633 DFramework.Scheduler.TaskBase /* Time Taken: 15921.9727*/ Opportunity Out Of Stock By Outlet 2025-12-25 08:55:48.3963 AlertProcessor ProcessorAlertData: started 2025-12-25 08:55:53.5213 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 09:00:48.4137 AlertProcessor ProcessorAlertData: started 2025-12-25 09:00:53.4450 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 09:05:45.2124 DFramework.Database.Query /* Time Taken: 1960*/ [dbo].GenerateSystemAlerts 2025-12-25 09:05:48.4312 AlertProcessor ProcessorAlertData: started 2025-12-25 09:05:50.7125 DFramework.Database.Query /* Time Taken: 536*/ DECLARE @TableName AnsiString(8000) SET @TableName = 'PlanogramComplianceConsolidate' DECLARE @CurrentRecordId Int32 SET @CurrentRecordId = '3675104' dbo.GetValidDeviceForAlertProcessData 2025-12-25 09:05:53.9469 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 09:05:58.6813 DFramework.Scheduler.TaskBase /* Time Taken: 15718.8586*/ Opportunity Out Of Stock By Outlet 2025-12-25 09:10:48.4488 AlertProcessor ProcessorAlertData: started 2025-12-25 09:10:53.4019 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 09:15:48.4664 AlertProcessor ProcessorAlertData: started 2025-12-25 09:15:53.3883 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 09:20:44.7963 DFramework.Database.Query /* Time Taken: 1701*/ DECLARE @ClientId Int32 SET @ClientId = '213' DECLARE @MarketId Int32 SET @MarketId = '0' DECLARE @ClassificationId Int32 SET @ClassificationId = '0' DECLARE @LocationId Int32 SET @LocationId = '0' DECLARE @LocationTypeId Int32 SET @LocationTypeId = '0' DECLARE @StartDate DateTime2 SET @StartDate = '8/28/2025 12:00:00 AM' dbo.GetOpportunityOutOfStockDataByOutlet 2025-12-25 09:20:46.6713 DFramework.Database.Query /* Time Taken: 3402*/ [dbo].GenerateSystemAlerts 2025-12-25 09:20:48.4838 AlertProcessor ProcessorAlertData: started 2025-12-25 09:20:52.7651 DFramework.Database.Query /* Time Taken: 606*/ DECLARE @TableName AnsiString(8000) SET @TableName = 'OpportunityLowStock' DECLARE @CurrentRecordId Int32 SET @CurrentRecordId = '3675104' dbo.GetValidDeviceForAlertProcessData 2025-12-25 09:20:54.0620 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 09:21:00.0776 DFramework.Scheduler.TaskBase /* Time Taken: 17093.8406*/ Opportunity Out Of Stock By Outlet 2025-12-25 09:25:48.5013 AlertProcessor ProcessorAlertData: started 2025-12-25 09:25:53.5170 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 09:30:48.5189 AlertProcessor ProcessorAlertData: started 2025-12-25 09:30:53.5971 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 09:35:45.0363 DFramework.Database.Query /* Time Taken: 1735*/ [dbo].GenerateSystemAlerts 2025-12-25 09:35:48.5363 AlertProcessor ProcessorAlertData: started 2025-12-25 09:35:49.8332 DFramework.Database.Query /* Time Taken: 741*/ DECLARE @TableName AnsiString(8000) SET @TableName = 'VoidAlert' DECLARE @CurrentRecordId Int32 SET @CurrentRecordId = '3675104' dbo.GetValidDeviceForAlertProcessData 2025-12-25 09:35:54.0989 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 09:35:58.8177 DFramework.Scheduler.TaskBase /* Time Taken: 15812.6068*/ Opportunity Out Of Stock By Outlet 2025-12-25 09:40:48.5423 AlertProcessor ProcessorAlertData: started 2025-12-25 09:40:53.5580 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 09:45:48.5599 AlertProcessor ProcessorAlertData: started 2025-12-25 09:45:53.5912 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 09:50:44.7805 DFramework.Database.Query /* Time Taken: 1480*/ [dbo].GenerateSystemAlerts 2025-12-25 09:50:48.5774 AlertProcessor ProcessorAlertData: started 2025-12-25 09:50:53.5306 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 09:50:58.7181 DFramework.Scheduler.TaskBase /* Time Taken: 15703.1874*/ Opportunity Out Of Stock By Outlet 2025-12-25 09:55:19.8446 DFramework.Database.Query /* Time Taken: 585*/ DECLARE @IsFileProcessed Int32 SET @IsFileProcessed = '0' DECLARE @TaskNumber Int32 SET @TaskNumber = '0' DECLARE @IsDeleted Int32 SET @IsDeleted = '0' SELECT TOP 1000 IncomingFileId, GatewayId,GatewayMac,RawFileName,AzureContainerName,StartIndex,Tries, CreatedOn FROM IncomingFile WHERE [IsFileProcessed] = @IsFileProcessed AND [TaskNumber] = @TaskNumber AND [IsDeleted] = @IsDeleted 2025-12-25 09:55:20.0946 DFramework.Database.Query /* Time Taken: 835*/ DECLARE @IsFileProcessed Int32 SET @IsFileProcessed = '0' DECLARE @TaskNumber Int32 SET @TaskNumber = '3' DECLARE @IsDeleted Int32 SET @IsDeleted = '0' SELECT TOP 1000 IncomingFileId, GatewayId,GatewayMac,RawFileName,AzureContainerName,StartIndex,Tries, CreatedOn FROM IncomingFile WHERE [IsFileProcessed] = @IsFileProcessed AND [TaskNumber] = @TaskNumber AND [IsDeleted] = @IsDeleted 2025-12-25 09:55:21.6259 DFramework.Database.Query /* Time Taken: 2370*/ DECLARE @IsFileProcessed Int32 SET @IsFileProcessed = '0' DECLARE @TaskNumber Int32 SET @TaskNumber = '1' DECLARE @IsDeleted Int32 SET @IsDeleted = '0' SELECT TOP 1000 IncomingFileId, GatewayId,GatewayMac,RawFileName,AzureContainerName,StartIndex,Tries, CreatedOn FROM IncomingFile WHERE [IsFileProcessed] = @IsFileProcessed AND [TaskNumber] = @TaskNumber AND [IsDeleted] = @IsDeleted 2025-12-25 09:55:28.0947 DFramework.Database.Query /* Time Taken: 3819*/ DECLARE @IsFileProcessed Int32 SET @IsFileProcessed = '0' DECLARE @TaskNumber Int32 SET @TaskNumber = '1' DECLARE @IsDeleted Int32 SET @IsDeleted = '0' SELECT TOP 1000 IncomingFileId, GatewayId,GatewayMac,RawFileName,AzureContainerName,StartIndex,Tries, CreatedOn FROM IncomingFile WHERE [IsFileProcessed] = @IsFileProcessed AND [TaskNumber] = @TaskNumber AND [IsDeleted] = @IsDeleted 2025-12-25 09:55:28.8759 DFramework.Database.Query /* Time Taken: 9620*/ DECLARE @IsFileProcessed Int32 SET @IsFileProcessed = '0' DECLARE @TaskNumber Int32 SET @TaskNumber = '4' DECLARE @IsDeleted Int32 SET @IsDeleted = '0' SELECT TOP 1000 IncomingFileId, GatewayId,GatewayMac,RawFileName,AzureContainerName,StartIndex,Tries, CreatedOn FROM IncomingFile WHERE [IsFileProcessed] = @IsFileProcessed AND [TaskNumber] = @TaskNumber AND [IsDeleted] = @IsDeleted 2025-12-25 09:55:28.8759 DFramework.Database.Query /* Time Taken: 9620*/ DECLARE @IsFileProcessed Int32 SET @IsFileProcessed = '0' DECLARE @TaskNumber Int32 SET @TaskNumber = '2' DECLARE @IsDeleted Int32 SET @IsDeleted = '0' SELECT TOP 1000 IncomingFileId, GatewayId,GatewayMac,RawFileName,AzureContainerName,StartIndex,Tries, CreatedOn FROM IncomingFile WHERE [IsFileProcessed] = @IsFileProcessed AND [TaskNumber] = @TaskNumber AND [IsDeleted] = @IsDeleted 2025-12-25 09:55:31.7510 DFramework.Database.Query /* Time Taken: 7469*/ DECLARE @IsFileProcessed Int32 SET @IsFileProcessed = '0' DECLARE @TaskNumber Int32 SET @TaskNumber = '3' DECLARE @IsDeleted Int32 SET @IsDeleted = '0' SELECT TOP 1000 IncomingFileId, GatewayId,GatewayMac,RawFileName,AzureContainerName,StartIndex,Tries, CreatedOn FROM IncomingFile WHERE [IsFileProcessed] = @IsFileProcessed AND [TaskNumber] = @TaskNumber AND [IsDeleted] = @IsDeleted 2025-12-25 09:55:32.2978 DFramework.Database.Query /* Time Taken: 8023*/ DECLARE @IsFileProcessed Int32 SET @IsFileProcessed = '0' DECLARE @TaskNumber Int32 SET @TaskNumber = '0' DECLARE @IsDeleted Int32 SET @IsDeleted = '0' SELECT TOP 1000 IncomingFileId, GatewayId,GatewayMac,RawFileName,AzureContainerName,StartIndex,Tries, CreatedOn FROM IncomingFile WHERE [IsFileProcessed] = @IsFileProcessed AND [TaskNumber] = @TaskNumber AND [IsDeleted] = @IsDeleted 2025-12-25 09:55:48.5948 AlertProcessor ProcessorAlertData: started 2025-12-25 09:55:53.5792 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 10:00:48.6123 AlertProcessor ProcessorAlertData: started 2025-12-25 10:00:53.5655 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 10:05:45.0518 DFramework.Database.Query /* Time Taken: 1903*/ DECLARE @ClientId Int32 SET @ClientId = '213' DECLARE @MarketId Int32 SET @MarketId = '0' DECLARE @ClassificationId Int32 SET @ClassificationId = '0' DECLARE @LocationId Int32 SET @LocationId = '0' DECLARE @LocationTypeId Int32 SET @LocationTypeId = '0' DECLARE @StartDate DateTime2 SET @StartDate = '8/28/2025 12:00:00 AM' dbo.GetOpportunityOutOfStockDataByOutlet 2025-12-25 10:05:48.6299 AlertProcessor ProcessorAlertData: started 2025-12-25 10:05:49.0362 DFramework.Database.Query /* Time Taken: 4263*/ DECLARE @OrderStatusId Int32 SET @OrderStatusId = '5486' UPDATE Location SET ScheduledOrderId = 0, OrderStatusId = 0 from ScheduledOrder INNER JOIN Location ON Location.ScheduledOrderId = ScheduledOrder.ScheduledOrderId AND Location.OrderStatusId = @OrderStatusId INNER JOIN CLient On Client.ClientId = Location.ClientId AND Client.HoursToMoveIgnored > 0 WHERE DATEADD(HOUR, Client.HoursToMoveIgnored, ScheduledOrder.ModifiedOn) < GETUTCDATE() AND ScheduledOrder.StatusId = @OrderStatusId ANd Location.IsDeleted = 0 AND ScheduledOrder.IsDeleted = 0 2025-12-25 10:05:49.2705 DFramework.Database.Query /* Time Taken: 5950*/ [dbo].GenerateSystemAlerts 2025-12-25 10:05:53.6924 DFramework.Database.Query /* Time Taken: 608*/ DECLARE @TableName AnsiString(8000) SET @TableName = 'LowInventoryConsolidate' DECLARE @CurrentRecordId Int32 SET @CurrentRecordId = '3675104' dbo.GetValidDeviceForAlertProcessData 2025-12-25 10:05:54.3800 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 10:06:00.3019 DFramework.Scheduler.TaskBase /* Time Taken: 17265.7314*/ Opportunity Out Of Stock By Outlet 2025-12-25 10:10:48.6473 AlertProcessor ProcessorAlertData: started 2025-12-25 10:10:53.8661 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 10:15:48.6649 AlertProcessor ProcessorAlertData: started 2025-12-25 10:15:53.6805 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 10:20:44.6043 DFramework.Database.Query /* Time Taken: 1441*/ DECLARE @ClientId Int32 SET @ClientId = '213' DECLARE @MarketId Int32 SET @MarketId = '0' DECLARE @ClassificationId Int32 SET @ClassificationId = '0' DECLARE @LocationId Int32 SET @LocationId = '0' DECLARE @LocationTypeId Int32 SET @LocationTypeId = '0' DECLARE @StartDate DateTime2 SET @StartDate = '8/28/2025 12:00:00 AM' dbo.GetOpportunityOutOfStockDataByOutlet 2025-12-25 10:20:45.5887 DFramework.Database.Query /* Time Taken: 2234*/ [dbo].GenerateSystemAlerts 2025-12-25 10:20:48.6825 AlertProcessor ProcessorAlertData: started 2025-12-25 10:20:50.8700 DFramework.Database.Query /* Time Taken: 1593*/ DECLARE @StatusId Int32 SET @StatusId = '1' DECLARE @AlertId Int32 SET @AlertId = '7571914' SELECT TOP 10000 Alert.AlertId, Alert.LocationId, Alert.RecordId, ISNULL(AlertDefinition.Name, Alert.AlertText) Name, Alert.AlertTypeId, Alert.AlertText, ISNULL(Location.Name, '') AS LocationName, AlertDefinition.ClientId, AlertRecipient.RoleId, CASE WHEN Alert.AlertTypeId IN (6,7) THEN CONVERT(VARCHAR(10), CAST(AlertAt AS DATE), 101) ELSE AlertAt END AS AlertAt, AlertType, Asset.SerialNumber, ISNULL(LocationAttribute.FirstRepId, 0) RepId, ClientUser.PrimaryPhone AS SalesRepPhone, ClientUser.PrimaryEmail AS SalesRepEmail, FirstName, LastName, PreferedNotificationTypeIds, AlertRecipientId, AlertRecipientAddress, AlertRecipientText, Alert.Tags, AlertRecipientTypeId, NotificationContactTypeId, TemplateId, AlertDefinition.AlertAgeThreshold, LastUpdatedOn, AlertRecipient.AlertAge, CASE WHEN Location.TimeZoneId IS NOT NULL AND Location.TimeZoneId > 0 THEN Location.TimeZoneId ELSE Client.TimeZoneId END AS TimeZoneId, AlertDefinition.IsSummarize, Alert.ClosedOn, AssetType.IsChestCooler, AlertDefinition.SnoozeForHours, Alert.SnoozeDateTime FROM Alert LEFT OUTER JOIN Asset ON Alert.AssetId = Asset.AssetId LEFT OUTER JOIN AlertType ON Alert.AlertTypeId = AlertType.AlertTypeId LEFT OUTER JOIN AlertDefinition ON Alert.AlertDefinitionId = AlertDefinition.AlertDefinitionId LEFT OUTER JOIN Location ON Location.LocationId = Alert.LocationId LEFT OUTER JOIN LocationAttribute ON LocationAttribute.LocationId = dbo.Location.LocationId LEFT OUTER JOIN ClientUser ON LocationAttribute.FirstRepId = ClientUser.ClientUserId AND ClientUser.IsDeleted = 0 LEFT OUTER JOIN AlertRecipient ON Alert.AlertDefinitionId = AlertRecipient.AlertDefinitionId AND AlertRecipient.IsDeleted= 0 LEFT OUTER JOIN Client ON Client.ClientId = Alert.ClientId LEFT OUTER JOIN AssetType ON dbo.Asset.AssetTypeId = dbo.AssetType.AssetTypeId WHERE (NOT EXISTS(SELECT 1 FROM dbo.EmailQueue INNER JOIN dbo.EmailRecipient ON EmailRecipient.EmailQueueId = EmailQueue.EmailQueueId WHERE AlertId = Alert.AlertId AND EmailRecipient.RecipientId = AlertRecipient.AlertRecipientId) OR (Alert.SnoozeDateTime IS NOT NULL AND Alert.SnoozeDateTime <= GETUTCDATE() AND AlertDefinition.SnoozeForHours > 0 AND Alert.StatusId = @StatusId)) AND Alert.AlertId > @AlertId AND Alert.AlertAt >= DATEADD(DAY, -120, GETDATE()) AND AlertRecipient.IsDeleted = 0 AND Alert.IsActive = 1 AND Alert.IsDeleted = 0 AND AlertRecipient.IsActive = 1 AND AlertRecipient.IsDeleted = 0 AND AlertRecipient.StartDate <= Alert.CreatedOn AND Alert.CreatedOn < DATEADD(hh, 23, AlertRecipient.EndDate) AND (Alert.LocationId != 0 OR NotificationWithoutLocation = 1) AND AlertType.IsSystemAlert = 0 AND Alert.EmailQueuedOn IS NULL AND AlertDefinition.IsActive = 1 2025-12-25 10:20:51.1200 DFramework.Database.Query /* Time Taken: 814*/ DECLARE @TableName AnsiString(8000) SET @TableName = 'OpportunityOutOfStock' DECLARE @CurrentRecordId Int32 SET @CurrentRecordId = '3675104' dbo.GetValidDeviceForAlertProcessData 2025-12-25 10:20:54.6200 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 10:20:59.8856 DFramework.Scheduler.TaskBase /* Time Taken: 16828.2201*/ Opportunity Out Of Stock By Outlet 2025-12-25 10:25:48.6999 AlertProcessor ProcessorAlertData: started 2025-12-25 10:25:53.7937 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 10:30:48.7173 AlertProcessor ProcessorAlertData: started 2025-12-25 10:30:53.8267 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 10:35:44.0316 DFramework.Database.Query /* Time Taken: 851*/ DECLARE @ClientId Int32 SET @ClientId = '213' DECLARE @MarketId Int32 SET @MarketId = '0' DECLARE @ClassificationId Int32 SET @ClassificationId = '0' DECLARE @LocationId Int32 SET @LocationId = '0' DECLARE @LocationTypeId Int32 SET @LocationTypeId = '0' DECLARE @StartDate DateTime2 SET @StartDate = '8/28/2025 12:00:00 AM' dbo.GetOpportunityOutOfStockDataByOutlet 2025-12-25 10:35:45.0629 DFramework.Database.Query /* Time Taken: 1694*/ [dbo].GenerateSystemAlerts 2025-12-25 10:35:48.7348 AlertProcessor ProcessorAlertData: started 2025-12-25 10:35:51.4223 DFramework.Database.NullableDataReader Data reader open for 282 at System.Environment.GetStackTrace(Exception e, Boolean needFileInfo) at System.Environment.get_StackTrace() at DFramework.Database.NullableDataReader.Dispose(Boolean disposing) in D:\Spraxa\Framework\DFramework\Database\NullableDataReader.cs:line 33 at DFramework.Database.NullableDataReader.Dispose() in D:\Spraxa\Framework\DFramework\Database\NullableDataReader.cs:line 44 at CoolR.Tasks.ProcessAlertData.Execute() in D:\Spraxa\CoolR-Group\portal\CoolR.Tasks\ProcessAlertData.cs:line 47 at DFramework.Scheduler.TaskBase.Run() in D:\Spraxa\Framework\DFramework.Scheduler\TaskBase.cs:line 176 at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.ThreadHelper.ThreadStart() 2025-12-25 10:35:53.9692 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 10:35:59.3130 DFramework.Scheduler.TaskBase /* Time Taken: 16234.4838*/ Opportunity Out Of Stock By Outlet 2025-12-25 10:40:48.7524 AlertProcessor ProcessorAlertData: started 2025-12-25 10:40:53.9555 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 10:45:48.7698 AlertProcessor ProcessorAlertData: started 2025-12-25 10:45:53.1292 DFramework.Database.NullableDataReader Data reader open for 281 at System.Environment.GetStackTrace(Exception e, Boolean needFileInfo) at System.Environment.get_StackTrace() at DFramework.Database.NullableDataReader.Dispose(Boolean disposing) in D:\Spraxa\Framework\DFramework\Database\NullableDataReader.cs:line 33 at DFramework.Database.NullableDataReader.Dispose() in D:\Spraxa\Framework\DFramework\Database\NullableDataReader.cs:line 44 at CoolR.Tasks.ProcessAlertData.Execute() in D:\Spraxa\CoolR-Group\portal\CoolR.Tasks\ProcessAlertData.cs:line 47 at DFramework.Scheduler.TaskBase.Run() in D:\Spraxa\Framework\DFramework.Scheduler\TaskBase.cs:line 176 at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.ThreadHelper.ThreadStart() 2025-12-25 10:45:53.6761 DFramework.Database.Query /* Time Taken: 544*/ DECLARE @TableName AnsiString(8000) SET @TableName = 'LowInventoryConsolidate' DECLARE @CurrentRecordId Int32 SET @CurrentRecordId = '3675104' dbo.GetValidDeviceForAlertProcessData 2025-12-25 10:45:54.4261 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 10:50:45.1623 DFramework.Database.Query /* Time Taken: 1777*/ [dbo].GenerateSystemAlerts 2025-12-25 10:50:48.7873 AlertProcessor ProcessorAlertData: started 2025-12-25 10:50:49.3499 DFramework.Database.Query /* Time Taken: 554*/ DECLARE @TableName AnsiString(8000) SET @TableName = 'TagAlert' DECLARE @CurrentRecordId Int32 SET @CurrentRecordId = '0' dbo.GetValidDeviceForAlertProcessData 2025-12-25 10:50:49.9436 DFramework.Database.Query /* Time Taken: 540*/ DECLARE @TableName AnsiString(8000) SET @TableName = 'VoidAlert' DECLARE @CurrentRecordId Int32 SET @CurrentRecordId = '3675104' dbo.GetValidDeviceForAlertProcessData 2025-12-25 10:50:50.0061 DFramework.Database.Query /* Time Taken: 625*/ DECLARE @StatusId Int32 SET @StatusId = '1' DECLARE @AlertId Int32 SET @AlertId = '7571914' SELECT TOP 10000 Alert.AlertId, Alert.LocationId, Alert.RecordId, ISNULL(AlertDefinition.Name, Alert.AlertText) Name, Alert.AlertTypeId, Alert.AlertText, ISNULL(Location.Name, '') AS LocationName, AlertDefinition.ClientId, AlertRecipient.RoleId, CASE WHEN Alert.AlertTypeId IN (6,7) THEN CONVERT(VARCHAR(10), CAST(AlertAt AS DATE), 101) ELSE AlertAt END AS AlertAt, AlertType, Asset.SerialNumber, ISNULL(LocationAttribute.FirstRepId, 0) RepId, ClientUser.PrimaryPhone AS SalesRepPhone, ClientUser.PrimaryEmail AS SalesRepEmail, FirstName, LastName, PreferedNotificationTypeIds, AlertRecipientId, AlertRecipientAddress, AlertRecipientText, Alert.Tags, AlertRecipientTypeId, NotificationContactTypeId, TemplateId, AlertDefinition.AlertAgeThreshold, LastUpdatedOn, AlertRecipient.AlertAge, CASE WHEN Location.TimeZoneId IS NOT NULL AND Location.TimeZoneId > 0 THEN Location.TimeZoneId ELSE Client.TimeZoneId END AS TimeZoneId, AlertDefinition.IsSummarize, Alert.ClosedOn, AssetType.IsChestCooler, AlertDefinition.SnoozeForHours, Alert.SnoozeDateTime FROM Alert LEFT OUTER JOIN Asset ON Alert.AssetId = Asset.AssetId LEFT OUTER JOIN AlertType ON Alert.AlertTypeId = AlertType.AlertTypeId LEFT OUTER JOIN AlertDefinition ON Alert.AlertDefinitionId = AlertDefinition.AlertDefinitionId LEFT OUTER JOIN Location ON Location.LocationId = Alert.LocationId LEFT OUTER JOIN LocationAttribute ON LocationAttribute.LocationId = dbo.Location.LocationId LEFT OUTER JOIN ClientUser ON LocationAttribute.FirstRepId = ClientUser.ClientUserId AND ClientUser.IsDeleted = 0 LEFT OUTER JOIN AlertRecipient ON Alert.AlertDefinitionId = AlertRecipient.AlertDefinitionId AND AlertRecipient.IsDeleted= 0 LEFT OUTER JOIN Client ON Client.ClientId = Alert.ClientId LEFT OUTER JOIN AssetType ON dbo.Asset.AssetTypeId = dbo.AssetType.AssetTypeId WHERE (NOT EXISTS(SELECT 1 FROM dbo.EmailQueue INNER JOIN dbo.EmailRecipient ON EmailRecipient.EmailQueueId = EmailQueue.EmailQueueId WHERE AlertId = Alert.AlertId AND EmailRecipient.RecipientId = AlertRecipient.AlertRecipientId) OR (Alert.SnoozeDateTime IS NOT NULL AND Alert.SnoozeDateTime <= GETUTCDATE() AND AlertDefinition.SnoozeForHours > 0 AND Alert.StatusId = @StatusId)) AND Alert.AlertId > @AlertId AND Alert.AlertAt >= DATEADD(DAY, -120, GETDATE()) AND AlertRecipient.IsDeleted = 0 AND Alert.IsActive = 1 AND Alert.IsDeleted = 0 AND AlertRecipient.IsActive = 1 AND AlertRecipient.IsDeleted = 0 AND AlertRecipient.StartDate <= Alert.CreatedOn AND Alert.CreatedOn < DATEADD(hh, 23, AlertRecipient.EndDate) AND (Alert.LocationId != 0 OR NotificationWithoutLocation = 1) AND AlertType.IsSystemAlert = 0 AND Alert.EmailQueuedOn IS NULL AND AlertDefinition.IsActive = 1 2025-12-25 10:50:54.3811 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 10:50:58.8499 DFramework.Scheduler.TaskBase /* Time Taken: 15750.1151*/ Opportunity Out Of Stock By Outlet 2025-12-25 10:55:48.8049 AlertProcessor ProcessorAlertData: started 2025-12-25 10:55:53.8831 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 11:00:48.8223 AlertProcessor ProcessorAlertData: started 2025-12-25 11:00:53.8067 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 11:05:44.8710 DFramework.Database.Query /* Time Taken: 1453*/ [dbo].GenerateSystemAlerts 2025-12-25 11:05:48.8397 AlertProcessor ProcessorAlertData: started 2025-12-25 11:05:53.8554 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 11:05:58.7617 DFramework.Scheduler.TaskBase /* Time Taken: 15640.7205*/ Opportunity Out Of Stock By Outlet 2025-12-25 11:10:48.8573 AlertProcessor ProcessorAlertData: started 2025-12-25 11:10:53.8104 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 11:15:48.8749 AlertProcessor ProcessorAlertData: started 2025-12-25 11:15:53.8905 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 11:20:44.7516 DFramework.Database.Query /* Time Taken: 1314*/ [dbo].GenerateSystemAlerts 2025-12-25 11:20:48.8923 AlertProcessor ProcessorAlertData: started 2025-12-25 11:20:53.8298 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 11:20:58.7986 DFramework.Scheduler.TaskBase /* Time Taken: 15656.3478*/ Opportunity Out Of Stock By Outlet 2025-12-25 11:25:48.9098 AlertProcessor ProcessorAlertData: started 2025-12-25 11:25:53.9255 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 11:30:48.9274 AlertProcessor ProcessorAlertData: started 2025-12-25 11:30:53.8806 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 11:35:44.9603 DFramework.Database.Query /* Time Taken: 1506*/ [dbo].GenerateSystemAlerts 2025-12-25 11:35:46.3041 DFramework.Database.Query /* Time Taken: 3034*/ DECLARE @ClientId Int32 SET @ClientId = '213' DECLARE @MarketId Int32 SET @MarketId = '0' DECLARE @ClassificationId Int32 SET @ClassificationId = '0' DECLARE @LocationId Int32 SET @LocationId = '0' DECLARE @LocationTypeId Int32 SET @LocationTypeId = '0' DECLARE @StartDate DateTime2 SET @StartDate = '8/28/2025 12:00:00 AM' dbo.GetOpportunityOutOfStockDataByOutlet 2025-12-25 11:35:48.9448 AlertProcessor ProcessorAlertData: started 2025-12-25 11:35:50.8823 DFramework.Database.Query /* Time Taken: 546*/ DECLARE @TableName AnsiString(8000) SET @TableName = 'OpportunityOutOfStock' DECLARE @CurrentRecordId Int32 SET @CurrentRecordId = '3675104' dbo.GetValidDeviceForAlertProcessData 2025-12-25 11:35:54.3979 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 11:36:01.6323 DFramework.Scheduler.TaskBase /* Time Taken: 18468.8647*/ Opportunity Out Of Stock By Outlet 2025-12-25 11:40:48.9622 AlertProcessor ProcessorAlertData: started 2025-12-25 11:40:53.9935 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 11:45:48.9798 AlertProcessor ProcessorAlertData: started 2025-12-25 11:45:54.0111 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 11:50:44.8571 DFramework.Database.Query /* Time Taken: 1380*/ [dbo].GenerateSystemAlerts 2025-12-25 11:50:48.9978 AlertProcessor ProcessorAlertData: started 2025-12-25 11:50:51.2165 DFramework.Database.Query /* Time Taken: 1630*/ DECLARE @StatusId Int32 SET @StatusId = '1' DECLARE @AlertId Int32 SET @AlertId = '7571914' SELECT TOP 10000 Alert.AlertId, Alert.LocationId, Alert.RecordId, ISNULL(AlertDefinition.Name, Alert.AlertText) Name, Alert.AlertTypeId, Alert.AlertText, ISNULL(Location.Name, '') AS LocationName, AlertDefinition.ClientId, AlertRecipient.RoleId, CASE WHEN Alert.AlertTypeId IN (6,7) THEN CONVERT(VARCHAR(10), CAST(AlertAt AS DATE), 101) ELSE AlertAt END AS AlertAt, AlertType, Asset.SerialNumber, ISNULL(LocationAttribute.FirstRepId, 0) RepId, ClientUser.PrimaryPhone AS SalesRepPhone, ClientUser.PrimaryEmail AS SalesRepEmail, FirstName, LastName, PreferedNotificationTypeIds, AlertRecipientId, AlertRecipientAddress, AlertRecipientText, Alert.Tags, AlertRecipientTypeId, NotificationContactTypeId, TemplateId, AlertDefinition.AlertAgeThreshold, LastUpdatedOn, AlertRecipient.AlertAge, CASE WHEN Location.TimeZoneId IS NOT NULL AND Location.TimeZoneId > 0 THEN Location.TimeZoneId ELSE Client.TimeZoneId END AS TimeZoneId, AlertDefinition.IsSummarize, Alert.ClosedOn, AssetType.IsChestCooler, AlertDefinition.SnoozeForHours, Alert.SnoozeDateTime FROM Alert LEFT OUTER JOIN Asset ON Alert.AssetId = Asset.AssetId LEFT OUTER JOIN AlertType ON Alert.AlertTypeId = AlertType.AlertTypeId LEFT OUTER JOIN AlertDefinition ON Alert.AlertDefinitionId = AlertDefinition.AlertDefinitionId LEFT OUTER JOIN Location ON Location.LocationId = Alert.LocationId LEFT OUTER JOIN LocationAttribute ON LocationAttribute.LocationId = dbo.Location.LocationId LEFT OUTER JOIN ClientUser ON LocationAttribute.FirstRepId = ClientUser.ClientUserId AND ClientUser.IsDeleted = 0 LEFT OUTER JOIN AlertRecipient ON Alert.AlertDefinitionId = AlertRecipient.AlertDefinitionId AND AlertRecipient.IsDeleted= 0 LEFT OUTER JOIN Client ON Client.ClientId = Alert.ClientId LEFT OUTER JOIN AssetType ON dbo.Asset.AssetTypeId = dbo.AssetType.AssetTypeId WHERE (NOT EXISTS(SELECT 1 FROM dbo.EmailQueue INNER JOIN dbo.EmailRecipient ON EmailRecipient.EmailQueueId = EmailQueue.EmailQueueId WHERE AlertId = Alert.AlertId AND EmailRecipient.RecipientId = AlertRecipient.AlertRecipientId) OR (Alert.SnoozeDateTime IS NOT NULL AND Alert.SnoozeDateTime <= GETUTCDATE() AND AlertDefinition.SnoozeForHours > 0 AND Alert.StatusId = @StatusId)) AND Alert.AlertId > @AlertId AND Alert.AlertAt >= DATEADD(DAY, -120, GETDATE()) AND AlertRecipient.IsDeleted = 0 AND Alert.IsActive = 1 AND Alert.IsDeleted = 0 AND AlertRecipient.IsActive = 1 AND AlertRecipient.IsDeleted = 0 AND AlertRecipient.StartDate <= Alert.CreatedOn AND Alert.CreatedOn < DATEADD(hh, 23, AlertRecipient.EndDate) AND (Alert.LocationId != 0 OR NotificationWithoutLocation = 1) AND AlertType.IsSystemAlert = 0 AND Alert.EmailQueuedOn IS NULL AND AlertDefinition.IsActive = 1 2025-12-25 11:50:54.4978 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 11:50:58.8104 DFramework.Scheduler.TaskBase /* Time Taken: 15625.1697*/ Opportunity Out Of Stock By Outlet 2025-12-25 11:55:49.0162 AlertProcessor ProcessorAlertData: started 2025-12-25 11:55:54.0162 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 12:00:49.0340 AlertProcessor ProcessorAlertData: started 2025-12-25 12:00:54.0184 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 12:05:43.9578 DFramework.Database.Query /* Time Taken: 619*/ DECLARE @ClientId Int32 SET @ClientId = '213' DECLARE @MarketId Int32 SET @MarketId = '0' DECLARE @ClassificationId Int32 SET @ClassificationId = '0' DECLARE @LocationId Int32 SET @LocationId = '0' DECLARE @LocationTypeId Int32 SET @LocationTypeId = '0' DECLARE @StartDate DateTime2 SET @StartDate = '8/28/2025 12:00:00 AM' dbo.GetOpportunityOutOfStockDataByOutlet 2025-12-25 12:05:45.1610 DFramework.Database.Query /* Time Taken: 1670*/ [dbo].GenerateSystemAlerts 2025-12-25 12:05:49.0516 AlertProcessor ProcessorAlertData: started 2025-12-25 12:05:50.2079 DFramework.Database.Query /* Time Taken: 672*/ DECLARE @TableName AnsiString(8000) SET @TableName = 'VoidAlert' DECLARE @CurrentRecordId Int32 SET @CurrentRecordId = '3675104' dbo.GetValidDeviceForAlertProcessData 2025-12-25 12:05:54.6142 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 12:05:59.2548 DFramework.Scheduler.TaskBase /* Time Taken: 16046.9958*/ Opportunity Out Of Stock By Outlet 2025-12-25 12:10:49.0678 AlertProcessor ProcessorAlertData: started 2025-12-25 12:10:54.0522 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 12:15:49.0849 AlertProcessor ProcessorAlertData: started 2025-12-25 12:15:54.1005 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 12:20:45.0710 DFramework.Database.Query /* Time Taken: 1737*/ DECLARE @ClientId Int32 SET @ClientId = '213' DECLARE @MarketId Int32 SET @MarketId = '0' DECLARE @ClassificationId Int32 SET @ClassificationId = '0' DECLARE @LocationId Int32 SET @LocationId = '0' DECLARE @LocationTypeId Int32 SET @LocationTypeId = '0' DECLARE @StartDate DateTime2 SET @StartDate = '8/28/2025 12:00:00 AM' dbo.GetOpportunityOutOfStockDataByOutlet 2025-12-25 12:20:45.4304 DFramework.Database.Query /* Time Taken: 1917*/ [dbo].GenerateSystemAlerts 2025-12-25 12:20:49.1023 AlertProcessor ProcessorAlertData: started 2025-12-25 12:20:50.3367 DFramework.Database.Query /* Time Taken: 643*/ DECLARE @StatusId Int32 SET @StatusId = '1' DECLARE @AlertId Int32 SET @AlertId = '7571914' SELECT TOP 10000 Alert.AlertId, Alert.LocationId, Alert.RecordId, ISNULL(AlertDefinition.Name, Alert.AlertText) Name, Alert.AlertTypeId, Alert.AlertText, ISNULL(Location.Name, '') AS LocationName, AlertDefinition.ClientId, AlertRecipient.RoleId, CASE WHEN Alert.AlertTypeId IN (6,7) THEN CONVERT(VARCHAR(10), CAST(AlertAt AS DATE), 101) ELSE AlertAt END AS AlertAt, AlertType, Asset.SerialNumber, ISNULL(LocationAttribute.FirstRepId, 0) RepId, ClientUser.PrimaryPhone AS SalesRepPhone, ClientUser.PrimaryEmail AS SalesRepEmail, FirstName, LastName, PreferedNotificationTypeIds, AlertRecipientId, AlertRecipientAddress, AlertRecipientText, Alert.Tags, AlertRecipientTypeId, NotificationContactTypeId, TemplateId, AlertDefinition.AlertAgeThreshold, LastUpdatedOn, AlertRecipient.AlertAge, CASE WHEN Location.TimeZoneId IS NOT NULL AND Location.TimeZoneId > 0 THEN Location.TimeZoneId ELSE Client.TimeZoneId END AS TimeZoneId, AlertDefinition.IsSummarize, Alert.ClosedOn, AssetType.IsChestCooler, AlertDefinition.SnoozeForHours, Alert.SnoozeDateTime FROM Alert LEFT OUTER JOIN Asset ON Alert.AssetId = Asset.AssetId LEFT OUTER JOIN AlertType ON Alert.AlertTypeId = AlertType.AlertTypeId LEFT OUTER JOIN AlertDefinition ON Alert.AlertDefinitionId = AlertDefinition.AlertDefinitionId LEFT OUTER JOIN Location ON Location.LocationId = Alert.LocationId LEFT OUTER JOIN LocationAttribute ON LocationAttribute.LocationId = dbo.Location.LocationId LEFT OUTER JOIN ClientUser ON LocationAttribute.FirstRepId = ClientUser.ClientUserId AND ClientUser.IsDeleted = 0 LEFT OUTER JOIN AlertRecipient ON Alert.AlertDefinitionId = AlertRecipient.AlertDefinitionId AND AlertRecipient.IsDeleted= 0 LEFT OUTER JOIN Client ON Client.ClientId = Alert.ClientId LEFT OUTER JOIN AssetType ON dbo.Asset.AssetTypeId = dbo.AssetType.AssetTypeId WHERE (NOT EXISTS(SELECT 1 FROM dbo.EmailQueue INNER JOIN dbo.EmailRecipient ON EmailRecipient.EmailQueueId = EmailQueue.EmailQueueId WHERE AlertId = Alert.AlertId AND EmailRecipient.RecipientId = AlertRecipient.AlertRecipientId) OR (Alert.SnoozeDateTime IS NOT NULL AND Alert.SnoozeDateTime <= GETUTCDATE() AND AlertDefinition.SnoozeForHours > 0 AND Alert.StatusId = @StatusId)) AND Alert.AlertId > @AlertId AND Alert.AlertAt >= DATEADD(DAY, -120, GETDATE()) AND AlertRecipient.IsDeleted = 0 AND Alert.IsActive = 1 AND Alert.IsDeleted = 0 AND AlertRecipient.IsActive = 1 AND AlertRecipient.IsDeleted = 0 AND AlertRecipient.StartDate <= Alert.CreatedOn AND Alert.CreatedOn < DATEADD(hh, 23, AlertRecipient.EndDate) AND (Alert.LocationId != 0 OR NotificationWithoutLocation = 1) AND AlertType.IsSystemAlert = 0 AND Alert.EmailQueuedOn IS NULL AND AlertDefinition.IsActive = 1 2025-12-25 12:20:54.3992 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 12:21:00.4930 DFramework.Scheduler.TaskBase /* Time Taken: 17265.7331*/ Opportunity Out Of Stock By Outlet 2025-12-25 12:25:49.1197 AlertProcessor ProcessorAlertData: started 2025-12-25 12:25:54.2760 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 12:30:49.1372 AlertProcessor ProcessorAlertData: started 2025-12-25 12:30:54.0903 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 12:35:44.1078 DFramework.Database.Query /* Time Taken: 757*/ DECLARE @ClientId Int32 SET @ClientId = '213' DECLARE @MarketId Int32 SET @MarketId = '0' DECLARE @ClassificationId Int32 SET @ClassificationId = '0' DECLARE @LocationId Int32 SET @LocationId = '0' DECLARE @LocationTypeId Int32 SET @LocationTypeId = '0' DECLARE @StartDate DateTime2 SET @StartDate = '8/28/2025 12:00:00 AM' dbo.GetOpportunityOutOfStockDataByOutlet 2025-12-25 12:35:45.3734 DFramework.Database.Query /* Time Taken: 1832*/ [dbo].GenerateSystemAlerts 2025-12-25 12:35:49.1547 AlertProcessor ProcessorAlertData: started 2025-12-25 12:35:54.0766 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 12:35:59.3891 DFramework.Scheduler.TaskBase /* Time Taken: 16140.7278*/ Opportunity Out Of Stock By Outlet 2025-12-25 12:40:49.1723 AlertProcessor ProcessorAlertData: started 2025-12-25 12:40:54.1879 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 12:45:49.1898 AlertProcessor ProcessorAlertData: started 2025-12-25 12:45:54.1429 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 12:50:45.3167 DFramework.Database.Query /* Time Taken: 1752*/ [dbo].GenerateSystemAlerts 2025-12-25 12:50:49.2073 AlertProcessor ProcessorAlertData: started 2025-12-25 12:50:51.2542 DFramework.Database.Query /* Time Taken: 574*/ DECLARE @TableName AnsiString(8000) SET @TableName = 'OpportunityOutOfStock' DECLARE @CurrentRecordId Int32 SET @CurrentRecordId = '3675104' dbo.GetValidDeviceForAlertProcessData 2025-12-25 12:50:54.7699 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 12:50:58.9418 DFramework.Scheduler.TaskBase /* Time Taken: 15671.9558*/ Opportunity Out Of Stock By Outlet 2025-12-25 12:55:49.2249 AlertProcessor ProcessorAlertData: started 2025-12-25 12:55:54.3656 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 13:00:49.2422 AlertProcessor ProcessorAlertData: started 2025-12-25 13:00:54.2735 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 13:05:45.0877 DFramework.Database.Query /* Time Taken: 1513*/ [dbo].GenerateSystemAlerts 2025-12-25 13:05:49.2440 AlertProcessor ProcessorAlertData: started 2025-12-25 13:05:54.3534 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 13:05:59.0878 DFramework.Scheduler.TaskBase /* Time Taken: 15796.9832*/ Opportunity Out Of Stock By Outlet 2025-12-25 13:10:49.2459 AlertProcessor ProcessorAlertData: started 2025-12-25 13:10:54.2147 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 13:15:49.2634 AlertProcessor ProcessorAlertData: started 2025-12-25 13:15:54.2478 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 13:20:44.9839 DFramework.Database.Query /* Time Taken: 1375*/ [dbo].GenerateSystemAlerts 2025-12-25 13:20:49.2809 AlertProcessor ProcessorAlertData: started 2025-12-25 13:20:49.9215 DFramework.Database.Query /* Time Taken: 626*/ DECLARE @TableName AnsiString(8000) SET @TableName = 'TagAlert' DECLARE @CurrentRecordId Int32 SET @CurrentRecordId = '0' dbo.GetValidDeviceForAlertProcessData 2025-12-25 13:20:51.1715 DFramework.Database.Query /* Time Taken: 1300*/ DECLARE @StatusId Int32 SET @StatusId = '1' DECLARE @AlertId Int32 SET @AlertId = '7571914' SELECT TOP 10000 Alert.AlertId, Alert.LocationId, Alert.RecordId, ISNULL(AlertDefinition.Name, Alert.AlertText) Name, Alert.AlertTypeId, Alert.AlertText, ISNULL(Location.Name, '') AS LocationName, AlertDefinition.ClientId, AlertRecipient.RoleId, CASE WHEN Alert.AlertTypeId IN (6,7) THEN CONVERT(VARCHAR(10), CAST(AlertAt AS DATE), 101) ELSE AlertAt END AS AlertAt, AlertType, Asset.SerialNumber, ISNULL(LocationAttribute.FirstRepId, 0) RepId, ClientUser.PrimaryPhone AS SalesRepPhone, ClientUser.PrimaryEmail AS SalesRepEmail, FirstName, LastName, PreferedNotificationTypeIds, AlertRecipientId, AlertRecipientAddress, AlertRecipientText, Alert.Tags, AlertRecipientTypeId, NotificationContactTypeId, TemplateId, AlertDefinition.AlertAgeThreshold, LastUpdatedOn, AlertRecipient.AlertAge, CASE WHEN Location.TimeZoneId IS NOT NULL AND Location.TimeZoneId > 0 THEN Location.TimeZoneId ELSE Client.TimeZoneId END AS TimeZoneId, AlertDefinition.IsSummarize, Alert.ClosedOn, AssetType.IsChestCooler, AlertDefinition.SnoozeForHours, Alert.SnoozeDateTime FROM Alert LEFT OUTER JOIN Asset ON Alert.AssetId = Asset.AssetId LEFT OUTER JOIN AlertType ON Alert.AlertTypeId = AlertType.AlertTypeId LEFT OUTER JOIN AlertDefinition ON Alert.AlertDefinitionId = AlertDefinition.AlertDefinitionId LEFT OUTER JOIN Location ON Location.LocationId = Alert.LocationId LEFT OUTER JOIN LocationAttribute ON LocationAttribute.LocationId = dbo.Location.LocationId LEFT OUTER JOIN ClientUser ON LocationAttribute.FirstRepId = ClientUser.ClientUserId AND ClientUser.IsDeleted = 0 LEFT OUTER JOIN AlertRecipient ON Alert.AlertDefinitionId = AlertRecipient.AlertDefinitionId AND AlertRecipient.IsDeleted= 0 LEFT OUTER JOIN Client ON Client.ClientId = Alert.ClientId LEFT OUTER JOIN AssetType ON dbo.Asset.AssetTypeId = dbo.AssetType.AssetTypeId WHERE (NOT EXISTS(SELECT 1 FROM dbo.EmailQueue INNER JOIN dbo.EmailRecipient ON EmailRecipient.EmailQueueId = EmailQueue.EmailQueueId WHERE AlertId = Alert.AlertId AND EmailRecipient.RecipientId = AlertRecipient.AlertRecipientId) OR (Alert.SnoozeDateTime IS NOT NULL AND Alert.SnoozeDateTime <= GETUTCDATE() AND AlertDefinition.SnoozeForHours > 0 AND Alert.StatusId = @StatusId)) AND Alert.AlertId > @AlertId AND Alert.AlertAt >= DATEADD(DAY, -120, GETDATE()) AND AlertRecipient.IsDeleted = 0 AND Alert.IsActive = 1 AND Alert.IsDeleted = 0 AND AlertRecipient.IsActive = 1 AND AlertRecipient.IsDeleted = 0 AND AlertRecipient.StartDate <= Alert.CreatedOn AND Alert.CreatedOn < DATEADD(hh, 23, AlertRecipient.EndDate) AND (Alert.LocationId != 0 OR NotificationWithoutLocation = 1) AND AlertType.IsSystemAlert = 0 AND Alert.EmailQueuedOn IS NULL AND AlertDefinition.IsActive = 1 2025-12-25 13:20:54.9840 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 13:20:59.2653 DFramework.Scheduler.TaskBase /* Time Taken: 15953.2239*/ Opportunity Out Of Stock By Outlet 2025-12-25 13:25:49.2984 AlertProcessor ProcessorAlertData: started 2025-12-25 13:25:54.4547 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 13:30:49.3160 AlertProcessor ProcessorAlertData: started 2025-12-25 13:30:50.7535 DFramework.Database.NullableDataReader Data reader open for 280 at System.Environment.GetStackTrace(Exception e, Boolean needFileInfo) at System.Environment.get_StackTrace() at DFramework.Database.NullableDataReader.Dispose(Boolean disposing) in D:\Spraxa\Framework\DFramework\Database\NullableDataReader.cs:line 33 at DFramework.Database.NullableDataReader.Dispose() in D:\Spraxa\Framework\DFramework\Database\NullableDataReader.cs:line 44 at CoolR.Tasks.ProcessAlertData.Execute() in D:\Spraxa\CoolR-Group\portal\CoolR.Tasks\ProcessAlertData.cs:line 47 at DFramework.Scheduler.TaskBase.Run() in D:\Spraxa\Framework\DFramework.Scheduler\TaskBase.cs:line 176 at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.ThreadHelper.ThreadStart() 2025-12-25 13:30:54.5660 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 13:35:45.0677 DFramework.Database.Query /* Time Taken: 1440*/ [dbo].GenerateSystemAlerts 2025-12-25 13:35:49.3333 AlertProcessor ProcessorAlertData: started 2025-12-25 13:35:54.3646 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 13:35:59.0053 DFramework.Scheduler.TaskBase /* Time Taken: 15671.9361*/ Opportunity Out Of Stock By Outlet 2025-12-25 13:40:49.3508 AlertProcessor ProcessorAlertData: started 2025-12-25 13:40:54.4133 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 13:45:49.3684 AlertProcessor ProcessorAlertData: started 2025-12-25 13:45:54.4309 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 13:50:44.8545 DFramework.Database.Query /* Time Taken: 1390*/ DECLARE @ClientId Int32 SET @ClientId = '213' DECLARE @MarketId Int32 SET @MarketId = '0' DECLARE @ClassificationId Int32 SET @ClassificationId = '0' DECLARE @LocationId Int32 SET @LocationId = '0' DECLARE @LocationTypeId Int32 SET @LocationTypeId = '0' DECLARE @StartDate DateTime2 SET @StartDate = '8/28/2025 12:00:00 AM' dbo.GetOpportunityOutOfStockDataByOutlet 2025-12-25 13:50:45.6358 DFramework.Database.Query /* Time Taken: 1994*/ [dbo].GenerateSystemAlerts 2025-12-25 13:50:49.3858 AlertProcessor ProcessorAlertData: started 2025-12-25 13:50:50.4483 DFramework.Database.Query /* Time Taken: 526*/ DECLARE @StatusId Int32 SET @StatusId = '1' DECLARE @AlertId Int32 SET @AlertId = '7571914' SELECT TOP 10000 Alert.AlertId, Alert.LocationId, Alert.RecordId, ISNULL(AlertDefinition.Name, Alert.AlertText) Name, Alert.AlertTypeId, Alert.AlertText, ISNULL(Location.Name, '') AS LocationName, AlertDefinition.ClientId, AlertRecipient.RoleId, CASE WHEN Alert.AlertTypeId IN (6,7) THEN CONVERT(VARCHAR(10), CAST(AlertAt AS DATE), 101) ELSE AlertAt END AS AlertAt, AlertType, Asset.SerialNumber, ISNULL(LocationAttribute.FirstRepId, 0) RepId, ClientUser.PrimaryPhone AS SalesRepPhone, ClientUser.PrimaryEmail AS SalesRepEmail, FirstName, LastName, PreferedNotificationTypeIds, AlertRecipientId, AlertRecipientAddress, AlertRecipientText, Alert.Tags, AlertRecipientTypeId, NotificationContactTypeId, TemplateId, AlertDefinition.AlertAgeThreshold, LastUpdatedOn, AlertRecipient.AlertAge, CASE WHEN Location.TimeZoneId IS NOT NULL AND Location.TimeZoneId > 0 THEN Location.TimeZoneId ELSE Client.TimeZoneId END AS TimeZoneId, AlertDefinition.IsSummarize, Alert.ClosedOn, AssetType.IsChestCooler, AlertDefinition.SnoozeForHours, Alert.SnoozeDateTime FROM Alert LEFT OUTER JOIN Asset ON Alert.AssetId = Asset.AssetId LEFT OUTER JOIN AlertType ON Alert.AlertTypeId = AlertType.AlertTypeId LEFT OUTER JOIN AlertDefinition ON Alert.AlertDefinitionId = AlertDefinition.AlertDefinitionId LEFT OUTER JOIN Location ON Location.LocationId = Alert.LocationId LEFT OUTER JOIN LocationAttribute ON LocationAttribute.LocationId = dbo.Location.LocationId LEFT OUTER JOIN ClientUser ON LocationAttribute.FirstRepId = ClientUser.ClientUserId AND ClientUser.IsDeleted = 0 LEFT OUTER JOIN AlertRecipient ON Alert.AlertDefinitionId = AlertRecipient.AlertDefinitionId AND AlertRecipient.IsDeleted= 0 LEFT OUTER JOIN Client ON Client.ClientId = Alert.ClientId LEFT OUTER JOIN AssetType ON dbo.Asset.AssetTypeId = dbo.AssetType.AssetTypeId WHERE (NOT EXISTS(SELECT 1 FROM dbo.EmailQueue INNER JOIN dbo.EmailRecipient ON EmailRecipient.EmailQueueId = EmailQueue.EmailQueueId WHERE AlertId = Alert.AlertId AND EmailRecipient.RecipientId = AlertRecipient.AlertRecipientId) OR (Alert.SnoozeDateTime IS NOT NULL AND Alert.SnoozeDateTime <= GETUTCDATE() AND AlertDefinition.SnoozeForHours > 0 AND Alert.StatusId = @StatusId)) AND Alert.AlertId > @AlertId AND Alert.AlertAt >= DATEADD(DAY, -120, GETDATE()) AND AlertRecipient.IsDeleted = 0 AND Alert.IsActive = 1 AND Alert.IsDeleted = 0 AND AlertRecipient.IsActive = 1 AND AlertRecipient.IsDeleted = 0 AND AlertRecipient.StartDate <= Alert.CreatedOn AND Alert.CreatedOn < DATEADD(hh, 23, AlertRecipient.EndDate) AND (Alert.LocationId != 0 OR NotificationWithoutLocation = 1) AND AlertType.IsSystemAlert = 0 AND Alert.EmailQueuedOn IS NULL AND AlertDefinition.IsActive = 1 2025-12-25 13:50:54.4639 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 13:51:00.1671 DFramework.Scheduler.TaskBase /* Time Taken: 16812.5758*/ Opportunity Out Of Stock By Outlet 2025-12-25 13:55:49.4032 AlertProcessor ProcessorAlertData: started 2025-12-25 13:55:54.4814 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 14:00:49.4207 AlertProcessor ProcessorAlertData: started 2025-12-25 14:00:54.7020 DFramework.Database.Query /* Time Taken: 503*/ DECLARE @TableName AnsiString(8000) SET @TableName = 'ProductStockLevel' DECLARE @CurrentRecordId Int32 SET @CurrentRecordId = '3675104' dbo.GetValidDeviceForAlertProcessData 2025-12-25 14:00:54.7645 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 14:05:44.3758 DFramework.Database.Query /* Time Taken: 918*/ DECLARE @ClientId Int32 SET @ClientId = '213' DECLARE @MarketId Int32 SET @MarketId = '0' DECLARE @ClassificationId Int32 SET @ClassificationId = '0' DECLARE @LocationId Int32 SET @LocationId = '0' DECLARE @LocationTypeId Int32 SET @LocationTypeId = '0' DECLARE @StartDate DateTime2 SET @StartDate = '8/28/2025 12:00:00 AM' dbo.GetOpportunityOutOfStockDataByOutlet 2025-12-25 14:05:48.5633 DFramework.Database.Query /* Time Taken: 2963*/ DECLARE @OrderStatusId Int32 SET @OrderStatusId = '5485' DECLARE @InTransitOrderStatusId Int32 SET @InTransitOrderStatusId = '5484' UPDATE Location SET OrderStatusId = @InTransitOrderStatusId FROM ScheduledOrder INNER JOIN Location ON Location.ScheduledOrderId = ScheduledOrder.ScheduledOrderId INNER JOIN CLient On Client.ClientId = Location.ClientId AND Client.HoursMoveScheduledToInTransit > -1 WHERE DATEADD(HOUR, Client.HoursMoveScheduledToInTransit, ScheduledOrder.ModifiedOn) < GETUTCDATE() AND ScheduledOrder.StatusId = @OrderStatusId AND Location.IsDeleted = 0 AND ScheduledOrder.IsDeleted = 0 AND Location.OrderStatusId = @OrderStatusId 2025-12-25 14:05:48.6727 DFramework.Database.Query /* Time Taken: 5000*/ [dbo].GenerateSystemAlerts 2025-12-25 14:05:49.4383 AlertProcessor ProcessorAlertData: started 2025-12-25 14:05:49.9696 DFramework.Database.Query /* Time Taken: 509*/ DECLARE @TableName AnsiString(8000) SET @TableName = 'TagAlert' DECLARE @CurrentRecordId Int32 SET @CurrentRecordId = '0' dbo.GetValidDeviceForAlertProcessData 2025-12-25 14:05:51.6414 DFramework.Database.Query /* Time Taken: 565*/ DECLARE @TableName AnsiString(8000) SET @TableName = 'OpportunityOutOfStock' DECLARE @CurrentRecordId Int32 SET @CurrentRecordId = '3675104' dbo.GetValidDeviceForAlertProcessData 2025-12-25 14:05:55.2040 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 14:05:59.6415 DFramework.Scheduler.TaskBase /* Time Taken: 16281.3577*/ Opportunity Out Of Stock By Outlet 2025-12-25 14:10:49.4558 AlertProcessor ProcessorAlertData: started 2025-12-25 14:10:54.5965 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 14:15:49.4734 AlertProcessor ProcessorAlertData: started 2025-12-25 14:15:54.6766 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 14:20:45.0535 DFramework.Database.Query /* Time Taken: 1361*/ [dbo].GenerateSystemAlerts 2025-12-25 14:20:49.4910 AlertProcessor ProcessorAlertData: started 2025-12-25 14:20:54.5691 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 14:20:59.2254 DFramework.Scheduler.TaskBase /* Time Taken: 15843.8578*/ Opportunity Out Of Stock By Outlet 2025-12-25 14:25:49.5083 AlertProcessor ProcessorAlertData: started 2025-12-25 14:25:54.6021 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 14:30:49.5257 AlertProcessor ProcessorAlertData: started 2025-12-25 14:30:54.5102 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 14:35:45.4651 DFramework.Database.Query /* Time Taken: 1958*/ DECLARE @ClientId Int32 SET @ClientId = '213' DECLARE @MarketId Int32 SET @MarketId = '0' DECLARE @ClassificationId Int32 SET @ClassificationId = '0' DECLARE @LocationId Int32 SET @LocationId = '0' DECLARE @LocationTypeId Int32 SET @LocationTypeId = '0' DECLARE @StartDate DateTime2 SET @StartDate = '8/28/2025 12:00:00 AM' dbo.GetOpportunityOutOfStockDataByOutlet 2025-12-25 14:35:46.3870 DFramework.Database.Query /* Time Taken: 2677*/ [dbo].GenerateSystemAlerts 2025-12-25 14:35:49.5433 AlertProcessor ProcessorAlertData: started 2025-12-25 14:35:50.1370 DFramework.Database.Query /* Time Taken: 581*/ DECLARE @TableName AnsiString(8000) SET @TableName = 'TagAlert' DECLARE @CurrentRecordId Int32 SET @CurrentRecordId = '0' dbo.GetValidDeviceForAlertProcessData 2025-12-25 14:35:50.8089 DFramework.Database.Query /* Time Taken: 608*/ DECLARE @TableName AnsiString(8000) SET @TableName = 'VoidAlert' DECLARE @CurrentRecordId Int32 SET @CurrentRecordId = '3675104' dbo.GetValidDeviceForAlertProcessData 2025-12-25 14:35:55.0902 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 14:36:00.7934 DFramework.Scheduler.TaskBase /* Time Taken: 17390.7498*/ Opportunity Out Of Stock By Outlet 2025-12-25 14:40:49.5608 AlertProcessor ProcessorAlertData: started 2025-12-25 14:40:54.7171 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 14:45:49.5784 AlertProcessor ProcessorAlertData: started 2025-12-25 14:45:54.5628 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 14:50:45.4398 DFramework.Database.Query /* Time Taken: 1706*/ [dbo].GenerateSystemAlerts 2025-12-25 14:50:45.6273 DFramework.Database.Query /* Time Taken: 2100*/ DECLARE @ClientId Int32 SET @ClientId = '213' DECLARE @MarketId Int32 SET @MarketId = '0' DECLARE @ClassificationId Int32 SET @ClassificationId = '0' DECLARE @LocationId Int32 SET @LocationId = '0' DECLARE @LocationTypeId Int32 SET @LocationTypeId = '0' DECLARE @StartDate DateTime2 SET @StartDate = '8/28/2025 12:00:00 AM' dbo.GetOpportunityOutOfStockDataByOutlet 2025-12-25 14:50:49.5960 AlertProcessor ProcessorAlertData: started 2025-12-25 14:50:51.4398 DFramework.Database.Query /* Time Taken: 1401*/ DECLARE @StatusId Int32 SET @StatusId = '1' DECLARE @AlertId Int32 SET @AlertId = '7571914' SELECT TOP 10000 Alert.AlertId, Alert.LocationId, Alert.RecordId, ISNULL(AlertDefinition.Name, Alert.AlertText) Name, Alert.AlertTypeId, Alert.AlertText, ISNULL(Location.Name, '') AS LocationName, AlertDefinition.ClientId, AlertRecipient.RoleId, CASE WHEN Alert.AlertTypeId IN (6,7) THEN CONVERT(VARCHAR(10), CAST(AlertAt AS DATE), 101) ELSE AlertAt END AS AlertAt, AlertType, Asset.SerialNumber, ISNULL(LocationAttribute.FirstRepId, 0) RepId, ClientUser.PrimaryPhone AS SalesRepPhone, ClientUser.PrimaryEmail AS SalesRepEmail, FirstName, LastName, PreferedNotificationTypeIds, AlertRecipientId, AlertRecipientAddress, AlertRecipientText, Alert.Tags, AlertRecipientTypeId, NotificationContactTypeId, TemplateId, AlertDefinition.AlertAgeThreshold, LastUpdatedOn, AlertRecipient.AlertAge, CASE WHEN Location.TimeZoneId IS NOT NULL AND Location.TimeZoneId > 0 THEN Location.TimeZoneId ELSE Client.TimeZoneId END AS TimeZoneId, AlertDefinition.IsSummarize, Alert.ClosedOn, AssetType.IsChestCooler, AlertDefinition.SnoozeForHours, Alert.SnoozeDateTime FROM Alert LEFT OUTER JOIN Asset ON Alert.AssetId = Asset.AssetId LEFT OUTER JOIN AlertType ON Alert.AlertTypeId = AlertType.AlertTypeId LEFT OUTER JOIN AlertDefinition ON Alert.AlertDefinitionId = AlertDefinition.AlertDefinitionId LEFT OUTER JOIN Location ON Location.LocationId = Alert.LocationId LEFT OUTER JOIN LocationAttribute ON LocationAttribute.LocationId = dbo.Location.LocationId LEFT OUTER JOIN ClientUser ON LocationAttribute.FirstRepId = ClientUser.ClientUserId AND ClientUser.IsDeleted = 0 LEFT OUTER JOIN AlertRecipient ON Alert.AlertDefinitionId = AlertRecipient.AlertDefinitionId AND AlertRecipient.IsDeleted= 0 LEFT OUTER JOIN Client ON Client.ClientId = Alert.ClientId LEFT OUTER JOIN AssetType ON dbo.Asset.AssetTypeId = dbo.AssetType.AssetTypeId WHERE (NOT EXISTS(SELECT 1 FROM dbo.EmailQueue INNER JOIN dbo.EmailRecipient ON EmailRecipient.EmailQueueId = EmailQueue.EmailQueueId WHERE AlertId = Alert.AlertId AND EmailRecipient.RecipientId = AlertRecipient.AlertRecipientId) OR (Alert.SnoozeDateTime IS NOT NULL AND Alert.SnoozeDateTime <= GETUTCDATE() AND AlertDefinition.SnoozeForHours > 0 AND Alert.StatusId = @StatusId)) AND Alert.AlertId > @AlertId AND Alert.AlertAt >= DATEADD(DAY, -120, GETDATE()) AND AlertRecipient.IsDeleted = 0 AND Alert.IsActive = 1 AND Alert.IsDeleted = 0 AND AlertRecipient.IsActive = 1 AND AlertRecipient.IsDeleted = 0 AND AlertRecipient.StartDate <= Alert.CreatedOn AND Alert.CreatedOn < DATEADD(hh, 23, AlertRecipient.EndDate) AND (Alert.LocationId != 0 OR NotificationWithoutLocation = 1) AND AlertType.IsSystemAlert = 0 AND Alert.EmailQueuedOn IS NULL AND AlertDefinition.IsActive = 1 2025-12-25 14:50:54.9086 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 14:51:00.9086 DFramework.Scheduler.TaskBase /* Time Taken: 17484.4851*/ Opportunity Out Of Stock By Outlet 2025-12-25 14:55:49.6136 AlertProcessor ProcessorAlertData: started 2025-12-25 14:55:54.7230 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 15:00:49.6153 AlertProcessor ProcessorAlertData: started 2025-12-25 15:00:54.7091 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 15:05:46.2577 DFramework.Database.Query /* Time Taken: 2699*/ DECLARE @ClientId Int32 SET @ClientId = '213' DECLARE @MarketId Int32 SET @MarketId = '0' DECLARE @ClassificationId Int32 SET @ClassificationId = '0' DECLARE @LocationId Int32 SET @LocationId = '0' DECLARE @LocationTypeId Int32 SET @LocationTypeId = '0' DECLARE @StartDate DateTime2 SET @StartDate = '8/28/2025 12:00:00 AM' dbo.GetOpportunityOutOfStockDataByOutlet 2025-12-25 15:05:46.5389 DFramework.Database.Query /* Time Taken: 866*/ DECLARE @OrderStatusId Int32 SET @OrderStatusId = '5485' DECLARE @InTransitOrderStatusId Int32 SET @InTransitOrderStatusId = '5484' UPDATE Location SET OrderStatusId = @InTransitOrderStatusId FROM ScheduledOrder INNER JOIN Location ON Location.ScheduledOrderId = ScheduledOrder.ScheduledOrderId INNER JOIN CLient On Client.ClientId = Location.ClientId AND Client.HoursMoveScheduledToInTransit > -1 WHERE DATEADD(HOUR, Client.HoursMoveScheduledToInTransit, ScheduledOrder.ModifiedOn) < GETUTCDATE() AND ScheduledOrder.StatusId = @OrderStatusId AND Location.IsDeleted = 0 AND ScheduledOrder.IsDeleted = 0 AND Location.OrderStatusId = @OrderStatusId 2025-12-25 15:05:46.8045 DFramework.Database.Query /* Time Taken: 3062*/ [dbo].GenerateSystemAlerts 2025-12-25 15:05:49.6327 AlertProcessor ProcessorAlertData: started 2025-12-25 15:05:54.6327 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 15:06:01.5547 DFramework.Scheduler.TaskBase /* Time Taken: 18109.5124*/ Opportunity Out Of Stock By Outlet 2025-12-25 15:10:49.6502 AlertProcessor ProcessorAlertData: started 2025-12-25 15:10:54.7597 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 15:15:49.6677 AlertProcessor ProcessorAlertData: started 2025-12-25 15:15:54.8083 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 15:20:44.5131 DFramework.Database.Query /* Time Taken: 936*/ DECLARE @ClientId Int32 SET @ClientId = '213' DECLARE @MarketId Int32 SET @MarketId = '0' DECLARE @ClassificationId Int32 SET @ClassificationId = '0' DECLARE @LocationId Int32 SET @LocationId = '0' DECLARE @LocationTypeId Int32 SET @LocationTypeId = '0' DECLARE @StartDate DateTime2 SET @StartDate = '8/28/2025 12:00:00 AM' dbo.GetOpportunityOutOfStockDataByOutlet 2025-12-25 15:20:45.7319 DFramework.Database.Query /* Time Taken: 1969*/ [dbo].GenerateSystemAlerts 2025-12-25 15:20:49.6850 AlertProcessor ProcessorAlertData: started 2025-12-25 15:20:50.6069 DFramework.Database.Query /* Time Taken: 520*/ DECLARE @TableName AnsiString(8000) SET @TableName = 'VoidAlert' DECLARE @CurrentRecordId Int32 SET @CurrentRecordId = '3675104' dbo.GetValidDeviceForAlertProcessData 2025-12-25 15:20:50.8413 DFramework.Database.Query /* Time Taken: 741*/ DECLARE @StatusId Int32 SET @StatusId = '1' DECLARE @AlertId Int32 SET @AlertId = '7571914' SELECT TOP 10000 Alert.AlertId, Alert.LocationId, Alert.RecordId, ISNULL(AlertDefinition.Name, Alert.AlertText) Name, Alert.AlertTypeId, Alert.AlertText, ISNULL(Location.Name, '') AS LocationName, AlertDefinition.ClientId, AlertRecipient.RoleId, CASE WHEN Alert.AlertTypeId IN (6,7) THEN CONVERT(VARCHAR(10), CAST(AlertAt AS DATE), 101) ELSE AlertAt END AS AlertAt, AlertType, Asset.SerialNumber, ISNULL(LocationAttribute.FirstRepId, 0) RepId, ClientUser.PrimaryPhone AS SalesRepPhone, ClientUser.PrimaryEmail AS SalesRepEmail, FirstName, LastName, PreferedNotificationTypeIds, AlertRecipientId, AlertRecipientAddress, AlertRecipientText, Alert.Tags, AlertRecipientTypeId, NotificationContactTypeId, TemplateId, AlertDefinition.AlertAgeThreshold, LastUpdatedOn, AlertRecipient.AlertAge, CASE WHEN Location.TimeZoneId IS NOT NULL AND Location.TimeZoneId > 0 THEN Location.TimeZoneId ELSE Client.TimeZoneId END AS TimeZoneId, AlertDefinition.IsSummarize, Alert.ClosedOn, AssetType.IsChestCooler, AlertDefinition.SnoozeForHours, Alert.SnoozeDateTime FROM Alert LEFT OUTER JOIN Asset ON Alert.AssetId = Asset.AssetId LEFT OUTER JOIN AlertType ON Alert.AlertTypeId = AlertType.AlertTypeId LEFT OUTER JOIN AlertDefinition ON Alert.AlertDefinitionId = AlertDefinition.AlertDefinitionId LEFT OUTER JOIN Location ON Location.LocationId = Alert.LocationId LEFT OUTER JOIN LocationAttribute ON LocationAttribute.LocationId = dbo.Location.LocationId LEFT OUTER JOIN ClientUser ON LocationAttribute.FirstRepId = ClientUser.ClientUserId AND ClientUser.IsDeleted = 0 LEFT OUTER JOIN AlertRecipient ON Alert.AlertDefinitionId = AlertRecipient.AlertDefinitionId AND AlertRecipient.IsDeleted= 0 LEFT OUTER JOIN Client ON Client.ClientId = Alert.ClientId LEFT OUTER JOIN AssetType ON dbo.Asset.AssetTypeId = dbo.AssetType.AssetTypeId WHERE (NOT EXISTS(SELECT 1 FROM dbo.EmailQueue INNER JOIN dbo.EmailRecipient ON EmailRecipient.EmailQueueId = EmailQueue.EmailQueueId WHERE AlertId = Alert.AlertId AND EmailRecipient.RecipientId = AlertRecipient.AlertRecipientId) OR (Alert.SnoozeDateTime IS NOT NULL AND Alert.SnoozeDateTime <= GETUTCDATE() AND AlertDefinition.SnoozeForHours > 0 AND Alert.StatusId = @StatusId)) AND Alert.AlertId > @AlertId AND Alert.AlertAt >= DATEADD(DAY, -120, GETDATE()) AND AlertRecipient.IsDeleted = 0 AND Alert.IsActive = 1 AND Alert.IsDeleted = 0 AND AlertRecipient.IsActive = 1 AND AlertRecipient.IsDeleted = 0 AND AlertRecipient.StartDate <= Alert.CreatedOn AND Alert.CreatedOn < DATEADD(hh, 23, AlertRecipient.EndDate) AND (Alert.LocationId != 0 OR NotificationWithoutLocation = 1) AND AlertType.IsSystemAlert = 0 AND Alert.EmailQueuedOn IS NULL AND AlertDefinition.IsActive = 1 2025-12-25 15:20:51.2475 DFramework.Database.Query /* Time Taken: 587*/ DECLARE @TableName AnsiString(8000) SET @TableName = 'MissingShelf' DECLARE @CurrentRecordId Int32 SET @CurrentRecordId = '3675104' dbo.GetValidDeviceForAlertProcessData 2025-12-25 15:20:55.4507 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 15:20:59.7789 DFramework.Scheduler.TaskBase /* Time Taken: 16312.6113*/ Opportunity Out Of Stock By Outlet 2025-12-25 15:25:49.7026 AlertProcessor ProcessorAlertData: started 2025-12-25 15:25:54.7495 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 15:30:49.7201 AlertProcessor ProcessorAlertData: started 2025-12-25 15:30:54.7357 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 15:35:44.3939 DFramework.Database.Query /* Time Taken: 816*/ DECLARE @ClientId Int32 SET @ClientId = '213' DECLARE @MarketId Int32 SET @MarketId = '0' DECLARE @ClassificationId Int32 SET @ClassificationId = '0' DECLARE @LocationId Int32 SET @LocationId = '0' DECLARE @LocationTypeId Int32 SET @LocationTypeId = '0' DECLARE @StartDate DateTime2 SET @StartDate = '8/28/2025 12:00:00 AM' dbo.GetOpportunityOutOfStockDataByOutlet 2025-12-25 15:35:45.6282 DFramework.Database.Query /* Time Taken: 1854*/ [dbo].GenerateSystemAlerts 2025-12-25 15:35:49.7376 AlertProcessor ProcessorAlertData: started 2025-12-25 15:35:54.8158 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 15:35:59.6596 DFramework.Scheduler.TaskBase /* Time Taken: 16187.6075*/ Opportunity Out Of Stock By Outlet 2025-12-25 15:40:49.7552 AlertProcessor ProcessorAlertData: started 2025-12-25 15:40:54.8646 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 15:45:49.7727 AlertProcessor ProcessorAlertData: started 2025-12-25 15:45:54.7571 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 15:50:45.3213 DFramework.Database.Query /* Time Taken: 1515*/ [dbo].GenerateSystemAlerts 2025-12-25 15:50:49.7901 AlertProcessor ProcessorAlertData: started 2025-12-25 15:50:55.0870 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 15:50:59.3214 DFramework.Scheduler.TaskBase /* Time Taken: 15828.2029*/ Opportunity Out Of Stock By Outlet 2025-12-25 15:55:49.8075 AlertProcessor ProcessorAlertData: started 2025-12-25 15:55:54.8075 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 16:00:49.8251 AlertProcessor ProcessorAlertData: started 2025-12-25 16:00:54.8563 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 16:05:44.6238 DFramework.Database.Query /* Time Taken: 1008*/ DECLARE @ClientId Int32 SET @ClientId = '213' DECLARE @MarketId Int32 SET @MarketId = '0' DECLARE @ClassificationId Int32 SET @ClassificationId = '0' DECLARE @LocationId Int32 SET @LocationId = '0' DECLARE @LocationTypeId Int32 SET @LocationTypeId = '0' DECLARE @StartDate DateTime2 SET @StartDate = '8/28/2025 12:00:00 AM' dbo.GetOpportunityOutOfStockDataByOutlet 2025-12-25 16:05:45.5457 DFramework.Database.Query /* Time Taken: 1723*/ [dbo].GenerateSystemAlerts 2025-12-25 16:05:49.8426 AlertProcessor ProcessorAlertData: started 2025-12-25 16:05:54.8738 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 16:05:59.8895 DFramework.Scheduler.TaskBase /* Time Taken: 16375.0934*/ Opportunity Out Of Stock By Outlet 2025-12-25 16:10:49.8600 AlertProcessor ProcessorAlertData: started 2025-12-25 16:10:54.9226 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 16:15:49.8776 AlertProcessor ProcessorAlertData: started 2025-12-25 16:15:54.9245 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 16:20:44.2076 DFramework.Database.Query /* Time Taken: 569*/ DECLARE @ClientId Int32 SET @ClientId = '213' DECLARE @MarketId Int32 SET @MarketId = '0' DECLARE @ClassificationId Int32 SET @ClassificationId = '0' DECLARE @LocationId Int32 SET @LocationId = '0' DECLARE @LocationTypeId Int32 SET @LocationTypeId = '0' DECLARE @StartDate DateTime2 SET @StartDate = '8/28/2025 12:00:00 AM' dbo.GetOpportunityOutOfStockDataByOutlet 2025-12-25 16:20:45.0982 DFramework.Database.Query /* Time Taken: 1256*/ [dbo].GenerateSystemAlerts 2025-12-25 16:20:49.8951 AlertProcessor ProcessorAlertData: started 2025-12-25 16:20:51.7857 DFramework.Database.Query /* Time Taken: 1526*/ DECLARE @StatusId Int32 SET @StatusId = '1' DECLARE @AlertId Int32 SET @AlertId = '7571914' SELECT TOP 10000 Alert.AlertId, Alert.LocationId, Alert.RecordId, ISNULL(AlertDefinition.Name, Alert.AlertText) Name, Alert.AlertTypeId, Alert.AlertText, ISNULL(Location.Name, '') AS LocationName, AlertDefinition.ClientId, AlertRecipient.RoleId, CASE WHEN Alert.AlertTypeId IN (6,7) THEN CONVERT(VARCHAR(10), CAST(AlertAt AS DATE), 101) ELSE AlertAt END AS AlertAt, AlertType, Asset.SerialNumber, ISNULL(LocationAttribute.FirstRepId, 0) RepId, ClientUser.PrimaryPhone AS SalesRepPhone, ClientUser.PrimaryEmail AS SalesRepEmail, FirstName, LastName, PreferedNotificationTypeIds, AlertRecipientId, AlertRecipientAddress, AlertRecipientText, Alert.Tags, AlertRecipientTypeId, NotificationContactTypeId, TemplateId, AlertDefinition.AlertAgeThreshold, LastUpdatedOn, AlertRecipient.AlertAge, CASE WHEN Location.TimeZoneId IS NOT NULL AND Location.TimeZoneId > 0 THEN Location.TimeZoneId ELSE Client.TimeZoneId END AS TimeZoneId, AlertDefinition.IsSummarize, Alert.ClosedOn, AssetType.IsChestCooler, AlertDefinition.SnoozeForHours, Alert.SnoozeDateTime FROM Alert LEFT OUTER JOIN Asset ON Alert.AssetId = Asset.AssetId LEFT OUTER JOIN AlertType ON Alert.AlertTypeId = AlertType.AlertTypeId LEFT OUTER JOIN AlertDefinition ON Alert.AlertDefinitionId = AlertDefinition.AlertDefinitionId LEFT OUTER JOIN Location ON Location.LocationId = Alert.LocationId LEFT OUTER JOIN LocationAttribute ON LocationAttribute.LocationId = dbo.Location.LocationId LEFT OUTER JOIN ClientUser ON LocationAttribute.FirstRepId = ClientUser.ClientUserId AND ClientUser.IsDeleted = 0 LEFT OUTER JOIN AlertRecipient ON Alert.AlertDefinitionId = AlertRecipient.AlertDefinitionId AND AlertRecipient.IsDeleted= 0 LEFT OUTER JOIN Client ON Client.ClientId = Alert.ClientId LEFT OUTER JOIN AssetType ON dbo.Asset.AssetTypeId = dbo.AssetType.AssetTypeId WHERE (NOT EXISTS(SELECT 1 FROM dbo.EmailQueue INNER JOIN dbo.EmailRecipient ON EmailRecipient.EmailQueueId = EmailQueue.EmailQueueId WHERE AlertId = Alert.AlertId AND EmailRecipient.RecipientId = AlertRecipient.AlertRecipientId) OR (Alert.SnoozeDateTime IS NOT NULL AND Alert.SnoozeDateTime <= GETUTCDATE() AND AlertDefinition.SnoozeForHours > 0 AND Alert.StatusId = @StatusId)) AND Alert.AlertId > @AlertId AND Alert.AlertAt >= DATEADD(DAY, -120, GETDATE()) AND AlertRecipient.IsDeleted = 0 AND Alert.IsActive = 1 AND Alert.IsDeleted = 0 AND AlertRecipient.IsActive = 1 AND AlertRecipient.IsDeleted = 0 AND AlertRecipient.StartDate <= Alert.CreatedOn AND Alert.CreatedOn < DATEADD(hh, 23, AlertRecipient.EndDate) AND (Alert.LocationId != 0 OR NotificationWithoutLocation = 1) AND AlertType.IsSystemAlert = 0 AND Alert.EmailQueuedOn IS NULL AND AlertDefinition.IsActive = 1 2025-12-25 16:20:55.2858 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 16:20:59.4733 DFramework.Scheduler.TaskBase /* Time Taken: 15937.6123*/ Opportunity Out Of Stock By Outlet 2025-12-25 16:25:49.8970 AlertProcessor ProcessorAlertData: started 2025-12-25 16:25:55.0376 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 16:30:49.8989 AlertProcessor ProcessorAlertData: started 2025-12-25 16:30:55.0239 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 16:35:49.9164 AlertProcessor ProcessorAlertData: started 2025-12-25 16:35:50.2133 DFramework.Database.Query /* Time Taken: 4737*/ DECLARE @OrderStatusId Int32 SET @OrderStatusId = '5486' UPDATE Location SET ScheduledOrderId = 0, OrderStatusId = 0 from ScheduledOrder INNER JOIN Location ON Location.ScheduledOrderId = ScheduledOrder.ScheduledOrderId AND Location.OrderStatusId = @OrderStatusId INNER JOIN CLient On Client.ClientId = Location.ClientId AND Client.HoursToMoveIgnored > 0 WHERE DATEADD(HOUR, Client.HoursToMoveIgnored, ScheduledOrder.ModifiedOn) < GETUTCDATE() AND ScheduledOrder.StatusId = @OrderStatusId ANd Location.IsDeleted = 0 AND ScheduledOrder.IsDeleted = 0 2025-12-25 16:35:50.6976 DFramework.Database.Query /* Time Taken: 6839*/ [dbo].GenerateSystemAlerts 2025-12-25 16:35:55.0727 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 16:35:59.2446 DFramework.Scheduler.TaskBase /* Time Taken: 15687.6067*/ Opportunity Out Of Stock By Outlet 2025-12-25 16:40:49.9339 AlertProcessor ProcessorAlertData: started 2025-12-25 16:40:55.0121 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 16:45:49.9514 AlertProcessor ProcessorAlertData: started 2025-12-25 16:45:54.9201 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 16:50:44.9532 DFramework.Database.Query /* Time Taken: 1276*/ DECLARE @ClientId Int32 SET @ClientId = '213' DECLARE @MarketId Int32 SET @MarketId = '0' DECLARE @ClassificationId Int32 SET @ClassificationId = '0' DECLARE @LocationId Int32 SET @LocationId = '0' DECLARE @LocationTypeId Int32 SET @LocationTypeId = '0' DECLARE @StartDate DateTime2 SET @StartDate = '8/28/2025 12:00:00 AM' dbo.GetOpportunityOutOfStockDataByOutlet 2025-12-25 16:50:47.6564 DFramework.Database.Query /* Time Taken: 3779*/ [dbo].GenerateSystemAlerts 2025-12-25 16:50:49.9689 AlertProcessor ProcessorAlertData: started 2025-12-25 16:50:51.0314 DFramework.Database.Query /* Time Taken: 674*/ DECLARE @StatusId Int32 SET @StatusId = '1' DECLARE @AlertId Int32 SET @AlertId = '7571914' SELECT TOP 10000 Alert.AlertId, Alert.LocationId, Alert.RecordId, ISNULL(AlertDefinition.Name, Alert.AlertText) Name, Alert.AlertTypeId, Alert.AlertText, ISNULL(Location.Name, '') AS LocationName, AlertDefinition.ClientId, AlertRecipient.RoleId, CASE WHEN Alert.AlertTypeId IN (6,7) THEN CONVERT(VARCHAR(10), CAST(AlertAt AS DATE), 101) ELSE AlertAt END AS AlertAt, AlertType, Asset.SerialNumber, ISNULL(LocationAttribute.FirstRepId, 0) RepId, ClientUser.PrimaryPhone AS SalesRepPhone, ClientUser.PrimaryEmail AS SalesRepEmail, FirstName, LastName, PreferedNotificationTypeIds, AlertRecipientId, AlertRecipientAddress, AlertRecipientText, Alert.Tags, AlertRecipientTypeId, NotificationContactTypeId, TemplateId, AlertDefinition.AlertAgeThreshold, LastUpdatedOn, AlertRecipient.AlertAge, CASE WHEN Location.TimeZoneId IS NOT NULL AND Location.TimeZoneId > 0 THEN Location.TimeZoneId ELSE Client.TimeZoneId END AS TimeZoneId, AlertDefinition.IsSummarize, Alert.ClosedOn, AssetType.IsChestCooler, AlertDefinition.SnoozeForHours, Alert.SnoozeDateTime FROM Alert LEFT OUTER JOIN Asset ON Alert.AssetId = Asset.AssetId LEFT OUTER JOIN AlertType ON Alert.AlertTypeId = AlertType.AlertTypeId LEFT OUTER JOIN AlertDefinition ON Alert.AlertDefinitionId = AlertDefinition.AlertDefinitionId LEFT OUTER JOIN Location ON Location.LocationId = Alert.LocationId LEFT OUTER JOIN LocationAttribute ON LocationAttribute.LocationId = dbo.Location.LocationId LEFT OUTER JOIN ClientUser ON LocationAttribute.FirstRepId = ClientUser.ClientUserId AND ClientUser.IsDeleted = 0 LEFT OUTER JOIN AlertRecipient ON Alert.AlertDefinitionId = AlertRecipient.AlertDefinitionId AND AlertRecipient.IsDeleted= 0 LEFT OUTER JOIN Client ON Client.ClientId = Alert.ClientId LEFT OUTER JOIN AssetType ON dbo.Asset.AssetTypeId = dbo.AssetType.AssetTypeId WHERE (NOT EXISTS(SELECT 1 FROM dbo.EmailQueue INNER JOIN dbo.EmailRecipient ON EmailRecipient.EmailQueueId = EmailQueue.EmailQueueId WHERE AlertId = Alert.AlertId AND EmailRecipient.RecipientId = AlertRecipient.AlertRecipientId) OR (Alert.SnoozeDateTime IS NOT NULL AND Alert.SnoozeDateTime <= GETUTCDATE() AND AlertDefinition.SnoozeForHours > 0 AND Alert.StatusId = @StatusId)) AND Alert.AlertId > @AlertId AND Alert.AlertAt >= DATEADD(DAY, -120, GETDATE()) AND AlertRecipient.IsDeleted = 0 AND Alert.IsActive = 1 AND Alert.IsDeleted = 0 AND AlertRecipient.IsActive = 1 AND AlertRecipient.IsDeleted = 0 AND AlertRecipient.StartDate <= Alert.CreatedOn AND Alert.CreatedOn < DATEADD(hh, 23, AlertRecipient.EndDate) AND (Alert.LocationId != 0 OR NotificationWithoutLocation = 1) AND AlertType.IsSystemAlert = 0 AND Alert.EmailQueuedOn IS NULL AND AlertDefinition.IsActive = 1 2025-12-25 16:50:53.0939 DFramework.Database.Query /* Time Taken: 748*/ DECLARE @TableName AnsiString(8000) SET @TableName = 'AssetStockProductWiseConsolidate' DECLARE @CurrentRecordId Int32 SET @CurrentRecordId = '3675104' dbo.GetValidDeviceForAlertProcessData 2025-12-25 16:50:54.9533 DFramework.Database.NullableDataReader Data reader open for 290 at System.Environment.GetStackTrace(Exception e, Boolean needFileInfo) at System.Environment.get_StackTrace() at DFramework.Database.NullableDataReader.Dispose(Boolean disposing) in D:\Spraxa\Framework\DFramework\Database\NullableDataReader.cs:line 33 at DFramework.Database.NullableDataReader.Dispose() in D:\Spraxa\Framework\DFramework\Database\NullableDataReader.cs:line 44 at CoolR.Tasks.ProcessAlertData.Execute() in D:\Spraxa\CoolR-Group\portal\CoolR.Tasks\ProcessAlertData.cs:line 47 at DFramework.Scheduler.TaskBase.Run() in D:\Spraxa\Framework\DFramework.Scheduler\TaskBase.cs:line 176 at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.ThreadHelper.ThreadStart() 2025-12-25 16:50:55.8908 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 16:51:00.2502 DFramework.Scheduler.TaskBase /* Time Taken: 16671.9807*/ Opportunity Out Of Stock By Outlet 2025-12-25 16:55:49.9864 AlertProcessor ProcessorAlertData: started 2025-12-25 16:55:55.0021 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 17:00:50.0038 AlertProcessor ProcessorAlertData: started 2025-12-25 17:00:55.0820 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 17:05:44.8494 DFramework.Database.Query /* Time Taken: 1150*/ DECLARE @ClientId Int32 SET @ClientId = '213' DECLARE @MarketId Int32 SET @MarketId = '0' DECLARE @ClassificationId Int32 SET @ClassificationId = '0' DECLARE @LocationId Int32 SET @LocationId = '0' DECLARE @LocationTypeId Int32 SET @LocationTypeId = '0' DECLARE @StartDate DateTime2 SET @StartDate = '8/28/2025 12:00:00 AM' dbo.GetOpportunityOutOfStockDataByOutlet 2025-12-25 17:05:46.3338 DFramework.Database.Query /* Time Taken: 2431*/ [dbo].GenerateSystemAlerts 2025-12-25 17:05:50.0214 AlertProcessor ProcessorAlertData: started 2025-12-25 17:05:55.0683 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 17:06:00.1308 DFramework.Scheduler.TaskBase /* Time Taken: 16531.3639*/ Opportunity Out Of Stock By Outlet 2025-12-25 17:10:50.0389 AlertProcessor ProcessorAlertData: started 2025-12-25 17:10:55.0546 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 17:15:50.0564 AlertProcessor ProcessorAlertData: started 2025-12-25 17:15:55.0876 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 17:20:44.2456 DFramework.Database.Query /* Time Taken: 519*/ DECLARE @ClientId Int32 SET @ClientId = '213' DECLARE @MarketId Int32 SET @MarketId = '0' DECLARE @ClassificationId Int32 SET @ClassificationId = '0' DECLARE @LocationId Int32 SET @LocationId = '0' DECLARE @LocationTypeId Int32 SET @LocationTypeId = '0' DECLARE @StartDate DateTime2 SET @StartDate = '8/28/2025 12:00:00 AM' dbo.GetOpportunityOutOfStockDataByOutlet 2025-12-25 17:20:45.3550 DFramework.Database.Query /* Time Taken: 1437*/ [dbo].GenerateSystemAlerts 2025-12-25 17:20:50.0738 AlertProcessor ProcessorAlertData: started 2025-12-25 17:20:55.0895 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 17:20:59.5114 DFramework.Scheduler.TaskBase /* Time Taken: 15890.7339*/ Opportunity Out Of Stock By Outlet 2025-12-25 17:25:50.0913 AlertProcessor ProcessorAlertData: started 2025-12-25 17:25:55.1695 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 17:30:50.1089 AlertProcessor ProcessorAlertData: started 2025-12-25 17:30:55.1401 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 17:35:44.3607 DFramework.Database.Query /* Time Taken: 607*/ DECLARE @ClientId Int32 SET @ClientId = '213' DECLARE @MarketId Int32 SET @MarketId = '0' DECLARE @ClassificationId Int32 SET @ClassificationId = '0' DECLARE @LocationId Int32 SET @LocationId = '0' DECLARE @LocationTypeId Int32 SET @LocationTypeId = '0' DECLARE @StartDate DateTime2 SET @StartDate = '8/28/2025 12:00:00 AM' dbo.GetOpportunityOutOfStockDataByOutlet 2025-12-25 17:35:45.5794 DFramework.Database.Query /* Time Taken: 1650*/ [dbo].GenerateSystemAlerts 2025-12-25 17:35:50.1264 AlertProcessor ProcessorAlertData: started 2025-12-25 17:35:55.1576 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 17:35:59.6420 DFramework.Scheduler.TaskBase /* Time Taken: 16000.1038*/ Opportunity Out Of Stock By Outlet 2025-12-25 17:40:50.1439 AlertProcessor ProcessorAlertData: started 2025-12-25 17:40:55.2689 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 17:45:50.1458 AlertProcessor ProcessorAlertData: started 2025-12-25 17:45:55.1771 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 17:50:45.5536 DFramework.Database.Query /* Time Taken: 1600*/ [dbo].GenerateSystemAlerts 2025-12-25 17:50:47.5380 DFramework.Database.Query /* Time Taken: 3773*/ DECLARE @ClientId Int32 SET @ClientId = '213' DECLARE @MarketId Int32 SET @MarketId = '0' DECLARE @ClassificationId Int32 SET @ClassificationId = '0' DECLARE @LocationId Int32 SET @LocationId = '0' DECLARE @LocationTypeId Int32 SET @LocationTypeId = '0' DECLARE @StartDate DateTime2 SET @StartDate = '8/28/2025 12:00:00 AM' dbo.GetOpportunityOutOfStockDataByOutlet 2025-12-25 17:50:50.1630 AlertProcessor ProcessorAlertData: started 2025-12-25 17:50:52.0693 DFramework.Database.Query /* Time Taken: 1556*/ DECLARE @StatusId Int32 SET @StatusId = '1' DECLARE @AlertId Int32 SET @AlertId = '7571914' SELECT TOP 10000 Alert.AlertId, Alert.LocationId, Alert.RecordId, ISNULL(AlertDefinition.Name, Alert.AlertText) Name, Alert.AlertTypeId, Alert.AlertText, ISNULL(Location.Name, '') AS LocationName, AlertDefinition.ClientId, AlertRecipient.RoleId, CASE WHEN Alert.AlertTypeId IN (6,7) THEN CONVERT(VARCHAR(10), CAST(AlertAt AS DATE), 101) ELSE AlertAt END AS AlertAt, AlertType, Asset.SerialNumber, ISNULL(LocationAttribute.FirstRepId, 0) RepId, ClientUser.PrimaryPhone AS SalesRepPhone, ClientUser.PrimaryEmail AS SalesRepEmail, FirstName, LastName, PreferedNotificationTypeIds, AlertRecipientId, AlertRecipientAddress, AlertRecipientText, Alert.Tags, AlertRecipientTypeId, NotificationContactTypeId, TemplateId, AlertDefinition.AlertAgeThreshold, LastUpdatedOn, AlertRecipient.AlertAge, CASE WHEN Location.TimeZoneId IS NOT NULL AND Location.TimeZoneId > 0 THEN Location.TimeZoneId ELSE Client.TimeZoneId END AS TimeZoneId, AlertDefinition.IsSummarize, Alert.ClosedOn, AssetType.IsChestCooler, AlertDefinition.SnoozeForHours, Alert.SnoozeDateTime FROM Alert LEFT OUTER JOIN Asset ON Alert.AssetId = Asset.AssetId LEFT OUTER JOIN AlertType ON Alert.AlertTypeId = AlertType.AlertTypeId LEFT OUTER JOIN AlertDefinition ON Alert.AlertDefinitionId = AlertDefinition.AlertDefinitionId LEFT OUTER JOIN Location ON Location.LocationId = Alert.LocationId LEFT OUTER JOIN LocationAttribute ON LocationAttribute.LocationId = dbo.Location.LocationId LEFT OUTER JOIN ClientUser ON LocationAttribute.FirstRepId = ClientUser.ClientUserId AND ClientUser.IsDeleted = 0 LEFT OUTER JOIN AlertRecipient ON Alert.AlertDefinitionId = AlertRecipient.AlertDefinitionId AND AlertRecipient.IsDeleted= 0 LEFT OUTER JOIN Client ON Client.ClientId = Alert.ClientId LEFT OUTER JOIN AssetType ON dbo.Asset.AssetTypeId = dbo.AssetType.AssetTypeId WHERE (NOT EXISTS(SELECT 1 FROM dbo.EmailQueue INNER JOIN dbo.EmailRecipient ON EmailRecipient.EmailQueueId = EmailQueue.EmailQueueId WHERE AlertId = Alert.AlertId AND EmailRecipient.RecipientId = AlertRecipient.AlertRecipientId) OR (Alert.SnoozeDateTime IS NOT NULL AND Alert.SnoozeDateTime <= GETUTCDATE() AND AlertDefinition.SnoozeForHours > 0 AND Alert.StatusId = @StatusId)) AND Alert.AlertId > @AlertId AND Alert.AlertAt >= DATEADD(DAY, -120, GETDATE()) AND AlertRecipient.IsDeleted = 0 AND Alert.IsActive = 1 AND Alert.IsDeleted = 0 AND AlertRecipient.IsActive = 1 AND AlertRecipient.IsDeleted = 0 AND AlertRecipient.StartDate <= Alert.CreatedOn AND Alert.CreatedOn < DATEADD(hh, 23, AlertRecipient.EndDate) AND (Alert.LocationId != 0 OR NotificationWithoutLocation = 1) AND AlertType.IsSystemAlert = 0 AND Alert.EmailQueuedOn IS NULL AND AlertDefinition.IsActive = 1 2025-12-25 17:50:55.5537 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 17:51:02.9131 DFramework.Scheduler.TaskBase /* Time Taken: 19250.0947*/ Opportunity Out Of Stock By Outlet 2025-12-25 17:55:50.1804 AlertProcessor ProcessorAlertData: started 2025-12-25 17:55:55.2273 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 18:00:50.1979 AlertProcessor ProcessorAlertData: started 2025-12-25 18:00:50.9479 DFramework.Database.Query /* Time Taken: 743*/ DECLARE @TableName AnsiString(8000) SET @TableName = 'TagAlert' DECLARE @CurrentRecordId Int32 SET @CurrentRecordId = '0' dbo.GetValidDeviceForAlertProcessData 2025-12-25 18:00:52.1979 DFramework.Database.Query /* Time Taken: 685*/ DECLARE @TableName AnsiString(8000) SET @TableName = 'MissingShelf' DECLARE @CurrentRecordId Int32 SET @CurrentRecordId = '3675104' dbo.GetValidDeviceForAlertProcessData 2025-12-25 18:00:53.4010 DFramework.Database.Query /* Time Taken: 662*/ DECLARE @TableName AnsiString(8000) SET @TableName = 'OpportunityOutOfStock' DECLARE @CurrentRecordId Int32 SET @CurrentRecordId = '3675104' dbo.GetValidDeviceForAlertProcessData 2025-12-25 18:00:54.8229 DFramework.Database.Query /* Time Taken: 572*/ DECLARE @TableName AnsiString(8000) SET @TableName = 'AssetStockProductWiseConsolidate' DECLARE @CurrentRecordId Int32 SET @CurrentRecordId = '3675104' dbo.GetValidDeviceForAlertProcessData 2025-12-25 18:00:58.2604 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 18:05:48.2467 DFramework.Database.Query /* Time Taken: 4277*/ [dbo].GenerateSystemAlerts 2025-12-25 18:05:50.2154 AlertProcessor ProcessorAlertData: started 2025-12-25 18:05:51.9342 DFramework.Database.Query /* Time Taken: 8131*/ DECLARE @ClientId Int32 SET @ClientId = '213' DECLARE @MarketId Int32 SET @MarketId = '0' DECLARE @ClassificationId Int32 SET @ClassificationId = '0' DECLARE @LocationId Int32 SET @LocationId = '0' DECLARE @LocationTypeId Int32 SET @LocationTypeId = '0' DECLARE @StartDate DateTime2 SET @StartDate = '8/28/2025 12:00:00 AM' dbo.GetOpportunityOutOfStockDataByOutlet 2025-12-25 18:05:55.4967 DFramework.Database.Query /* Time Taken: 591*/ DECLARE @TableName AnsiString(8000) SET @TableName = 'TargetPortfolioComplianceConsolidate' DECLARE @CurrentRecordId Int32 SET @CurrentRecordId = '3675104' dbo.GetValidDeviceForAlertProcessData 2025-12-25 18:05:55.8874 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 18:06:07.4030 DFramework.Scheduler.TaskBase /* Time Taken: 23718.8918*/ Opportunity Out Of Stock By Outlet 2025-12-25 18:10:50.2329 AlertProcessor ProcessorAlertData: started 2025-12-25 18:10:55.6392 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 18:15:50.2505 AlertProcessor ProcessorAlertData: started 2025-12-25 18:15:55.2349 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 18:20:45.8148 DFramework.Database.Query /* Time Taken: 1998*/ DECLARE @ClientId Int32 SET @ClientId = '213' DECLARE @MarketId Int32 SET @MarketId = '0' DECLARE @ClassificationId Int32 SET @ClassificationId = '0' DECLARE @LocationId Int32 SET @LocationId = '0' DECLARE @LocationTypeId Int32 SET @LocationTypeId = '0' DECLARE @StartDate DateTime2 SET @StartDate = '8/28/2025 12:00:00 AM' dbo.GetOpportunityOutOfStockDataByOutlet 2025-12-25 18:20:46.6430 DFramework.Database.Query /* Time Taken: 2651*/ [dbo].GenerateSystemAlerts 2025-12-25 18:20:50.2680 AlertProcessor ProcessorAlertData: started 2025-12-25 18:20:55.3461 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 18:21:01.1743 DFramework.Scheduler.TaskBase /* Time Taken: 17468.8631*/ Opportunity Out Of Stock By Outlet 2025-12-25 18:25:50.2853 AlertProcessor ProcessorAlertData: started 2025-12-25 18:25:55.3478 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 18:30:50.3027 AlertProcessor ProcessorAlertData: started 2025-12-25 18:30:55.3496 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 18:35:44.4452 DFramework.Database.Query /* Time Taken: 618*/ DECLARE @ClientId Int32 SET @ClientId = '213' DECLARE @MarketId Int32 SET @MarketId = '0' DECLARE @ClassificationId Int32 SET @ClassificationId = '0' DECLARE @LocationId Int32 SET @LocationId = '0' DECLARE @LocationTypeId Int32 SET @LocationTypeId = '0' DECLARE @StartDate DateTime2 SET @StartDate = '8/28/2025 12:00:00 AM' dbo.GetOpportunityOutOfStockDataByOutlet 2025-12-25 18:35:45.8827 DFramework.Database.Query /* Time Taken: 1866*/ [dbo].GenerateSystemAlerts 2025-12-25 18:35:46.1015 MoveToReorder Running task for ClientId : 286 and ClientName = India Office QA and Slot: 12/26/2025 8:00:00 AM And LastExecutedOn: 12/25/2025 10:05:44 PM 2025-12-25 18:35:50.3202 AlertProcessor ProcessorAlertData: started 2025-12-25 18:35:51.0702 DFramework.Database.Query /* Time Taken: 734*/ DECLARE @TableName AnsiString(8000) SET @TableName = 'TagAlert' DECLARE @CurrentRecordId Int32 SET @CurrentRecordId = '0' dbo.GetValidDeviceForAlertProcessData 2025-12-25 18:35:55.9609 DFramework.Database.Query /* Time Taken: 643*/ DECLARE @TableName AnsiString(8000) SET @TableName = 'TargetPortfolioComplianceConsolidate' DECLARE @CurrentRecordId Int32 SET @CurrentRecordId = '3675104' dbo.GetValidDeviceForAlertProcessData 2025-12-25 18:35:57.3359 DFramework.Database.Query /* Time Taken: 1299*/ DECLARE @TableName AnsiString(8000) SET @TableName = 'ProductStockLevel' DECLARE @CurrentRecordId Int32 SET @CurrentRecordId = '3675104' dbo.GetValidDeviceForAlertProcessData 2025-12-25 18:35:57.3984 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 18:35:59.8203 DFramework.Scheduler.TaskBase /* Time Taken: 16093.8721*/ Opportunity Out Of Stock By Outlet 2025-12-25 18:36:29.8986 DFramework.Database.NullableDataReader Data reader open for 43383 at System.Environment.GetStackTrace(Exception e, Boolean needFileInfo) at System.Environment.get_StackTrace() at DFramework.Database.NullableDataReader.Dispose(Boolean disposing) in D:\Spraxa\Framework\DFramework\Database\NullableDataReader.cs:line 33 at DFramework.Database.NullableDataReader.Dispose() in D:\Spraxa\Framework\DFramework\Database\NullableDataReader.cs:line 44 at CoolR.Tasks.MoveToReorder.Execute() in D:\Spraxa\CoolR-Group\portal\CoolR.Tasks\MoveToReorder.cs:line 44 at DFramework.Scheduler.TaskBase.Run() in D:\Spraxa\Framework\DFramework.Scheduler\TaskBase.cs:line 176 at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.ThreadHelper.ThreadStart() 2025-12-25 18:36:29.9299 MoveToReorder Task executed successfully for ClientId : 286 Client Name:India Office QA, Slot: 12/26/2025 8:00:00 AM and Total Order Suggested: 128 Out Of: 128 2025-12-25 18:36:31.1174 DFramework.Database.Query /* Time Taken: 543*/ DECLARE @ClientId Int32 SET @ClientId = '286' DECLARE @OrderStatusId Int32 SET @OrderStatusId = '5485' SELECT * FROM vwScheduledOrderExportInfoList WHERE [ClientId] = @ClientId AND [OrderStatusId] = @OrderStatusId ORDER BY [LocationId] 2025-12-25 18:36:31.3674 DFramework.Scheduler.TaskBase /* Time Taken: 45656.5222*/ Move To Re-Order 2025-12-25 18:40:50.3220 AlertProcessor ProcessorAlertData: started 2025-12-25 18:40:55.3690 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 18:45:50.3238 AlertProcessor ProcessorAlertData: started 2025-12-25 18:45:55.4176 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 18:50:45.3569 DFramework.Database.Query /* Time Taken: 1323*/ [dbo].GenerateSystemAlerts 2025-12-25 18:50:50.3414 AlertProcessor ProcessorAlertData: started 2025-12-25 18:50:50.9664 DFramework.Database.Query /* Time Taken: 620*/ DECLARE @TableName AnsiString(8000) SET @TableName = 'TagAlert' DECLARE @CurrentRecordId Int32 SET @CurrentRecordId = '0' dbo.GetValidDeviceForAlertProcessData 2025-12-25 18:50:55.6383 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 18:50:59.3727 DFramework.Scheduler.TaskBase /* Time Taken: 15625.1264*/ Opportunity Out Of Stock By Outlet 2025-12-25 18:55:50.3589 AlertProcessor ProcessorAlertData: started 2025-12-25 18:55:55.3590 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 19:00:50.3762 AlertProcessor ProcessorAlertData: started 2025-12-25 19:00:55.7200 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 19:05:45.4249 DFramework.Database.Query /* Time Taken: 1365*/ [dbo].GenerateSystemAlerts 2025-12-25 19:05:50.3937 AlertProcessor ProcessorAlertData: started 2025-12-25 19:05:55.4719 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 19:05:59.4250 DFramework.Scheduler.TaskBase /* Time Taken: 15656.3543*/ Opportunity Out Of Stock By Outlet 2025-12-25 19:10:50.4113 AlertProcessor ProcessorAlertData: started 2025-12-25 19:10:55.4582 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 19:15:50.4287 AlertProcessor ProcessorAlertData: started 2025-12-25 19:15:54.8350 DFramework.Database.NullableDataReader Data reader open for 288 at System.Environment.GetStackTrace(Exception e, Boolean needFileInfo) at System.Environment.get_StackTrace() at DFramework.Database.NullableDataReader.Dispose(Boolean disposing) in D:\Spraxa\Framework\DFramework\Database\NullableDataReader.cs:line 33 at DFramework.Database.NullableDataReader.Dispose() in D:\Spraxa\Framework\DFramework\Database\NullableDataReader.cs:line 44 at CoolR.Tasks.ProcessAlertData.Execute() in D:\Spraxa\CoolR-Group\portal\CoolR.Tasks\ProcessAlertData.cs:line 47 at DFramework.Scheduler.TaskBase.Run() in D:\Spraxa\Framework\DFramework.Scheduler\TaskBase.cs:line 176 at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.ThreadHelper.ThreadStart() 2025-12-25 19:15:55.8037 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 19:20:45.1961 DFramework.Database.Query /* Time Taken: 1120*/ [dbo].GenerateSystemAlerts 2025-12-25 19:20:50.4461 AlertProcessor ProcessorAlertData: started 2025-12-25 19:20:52.0399 DFramework.Database.Query /* Time Taken: 1256*/ DECLARE @StatusId Int32 SET @StatusId = '1' DECLARE @AlertId Int32 SET @AlertId = '7571914' SELECT TOP 10000 Alert.AlertId, Alert.LocationId, Alert.RecordId, ISNULL(AlertDefinition.Name, Alert.AlertText) Name, Alert.AlertTypeId, Alert.AlertText, ISNULL(Location.Name, '') AS LocationName, AlertDefinition.ClientId, AlertRecipient.RoleId, CASE WHEN Alert.AlertTypeId IN (6,7) THEN CONVERT(VARCHAR(10), CAST(AlertAt AS DATE), 101) ELSE AlertAt END AS AlertAt, AlertType, Asset.SerialNumber, ISNULL(LocationAttribute.FirstRepId, 0) RepId, ClientUser.PrimaryPhone AS SalesRepPhone, ClientUser.PrimaryEmail AS SalesRepEmail, FirstName, LastName, PreferedNotificationTypeIds, AlertRecipientId, AlertRecipientAddress, AlertRecipientText, Alert.Tags, AlertRecipientTypeId, NotificationContactTypeId, TemplateId, AlertDefinition.AlertAgeThreshold, LastUpdatedOn, AlertRecipient.AlertAge, CASE WHEN Location.TimeZoneId IS NOT NULL AND Location.TimeZoneId > 0 THEN Location.TimeZoneId ELSE Client.TimeZoneId END AS TimeZoneId, AlertDefinition.IsSummarize, Alert.ClosedOn, AssetType.IsChestCooler, AlertDefinition.SnoozeForHours, Alert.SnoozeDateTime FROM Alert LEFT OUTER JOIN Asset ON Alert.AssetId = Asset.AssetId LEFT OUTER JOIN AlertType ON Alert.AlertTypeId = AlertType.AlertTypeId LEFT OUTER JOIN AlertDefinition ON Alert.AlertDefinitionId = AlertDefinition.AlertDefinitionId LEFT OUTER JOIN Location ON Location.LocationId = Alert.LocationId LEFT OUTER JOIN LocationAttribute ON LocationAttribute.LocationId = dbo.Location.LocationId LEFT OUTER JOIN ClientUser ON LocationAttribute.FirstRepId = ClientUser.ClientUserId AND ClientUser.IsDeleted = 0 LEFT OUTER JOIN AlertRecipient ON Alert.AlertDefinitionId = AlertRecipient.AlertDefinitionId AND AlertRecipient.IsDeleted= 0 LEFT OUTER JOIN Client ON Client.ClientId = Alert.ClientId LEFT OUTER JOIN AssetType ON dbo.Asset.AssetTypeId = dbo.AssetType.AssetTypeId WHERE (NOT EXISTS(SELECT 1 FROM dbo.EmailQueue INNER JOIN dbo.EmailRecipient ON EmailRecipient.EmailQueueId = EmailQueue.EmailQueueId WHERE AlertId = Alert.AlertId AND EmailRecipient.RecipientId = AlertRecipient.AlertRecipientId) OR (Alert.SnoozeDateTime IS NOT NULL AND Alert.SnoozeDateTime <= GETUTCDATE() AND AlertDefinition.SnoozeForHours > 0 AND Alert.StatusId = @StatusId)) AND Alert.AlertId > @AlertId AND Alert.AlertAt >= DATEADD(DAY, -120, GETDATE()) AND AlertRecipient.IsDeleted = 0 AND Alert.IsActive = 1 AND Alert.IsDeleted = 0 AND AlertRecipient.IsActive = 1 AND AlertRecipient.IsDeleted = 0 AND AlertRecipient.StartDate <= Alert.CreatedOn AND Alert.CreatedOn < DATEADD(hh, 23, AlertRecipient.EndDate) AND (Alert.LocationId != 0 OR NotificationWithoutLocation = 1) AND AlertType.IsSystemAlert = 0 AND Alert.EmailQueuedOn IS NULL AND AlertDefinition.IsActive = 1 2025-12-25 19:20:55.9618 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 19:20:59.4618 DFramework.Scheduler.TaskBase /* Time Taken: 15671.9692*/ Opportunity Out Of Stock By Outlet 2025-12-25 19:25:50.4637 AlertProcessor ProcessorAlertData: started 2025-12-25 19:25:55.5887 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 19:30:50.4656 AlertProcessor ProcessorAlertData: started 2025-12-25 19:30:55.5906 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 19:35:45.4830 DFramework.Database.Query /* Time Taken: 1378*/ [dbo].GenerateSystemAlerts 2025-12-25 19:35:46.1548 MoveToReorder Running task for ClientId : 286 and ClientName = India Office QA and Slot: 12/26/2025 9:00:00 AM And LastExecutedOn: 12/26/2025 8:05:46 AM 2025-12-25 19:35:46.3423 MoveToReorder Task executed successfully for ClientId : 286 Client Name:India Office QA, Slot: 12/26/2025 9:00:00 AM But No Order found to suggest 2025-12-25 19:35:50.4830 AlertProcessor ProcessorAlertData: started 2025-12-25 19:35:51.5455 DFramework.Database.Query /* Time Taken: 722*/ DECLARE @StatusId Int32 SET @StatusId = '1' DECLARE @AlertId Int32 SET @AlertId = '7571914' SELECT TOP 10000 Alert.AlertId, Alert.LocationId, Alert.RecordId, ISNULL(AlertDefinition.Name, Alert.AlertText) Name, Alert.AlertTypeId, Alert.AlertText, ISNULL(Location.Name, '') AS LocationName, AlertDefinition.ClientId, AlertRecipient.RoleId, CASE WHEN Alert.AlertTypeId IN (6,7) THEN CONVERT(VARCHAR(10), CAST(AlertAt AS DATE), 101) ELSE AlertAt END AS AlertAt, AlertType, Asset.SerialNumber, ISNULL(LocationAttribute.FirstRepId, 0) RepId, ClientUser.PrimaryPhone AS SalesRepPhone, ClientUser.PrimaryEmail AS SalesRepEmail, FirstName, LastName, PreferedNotificationTypeIds, AlertRecipientId, AlertRecipientAddress, AlertRecipientText, Alert.Tags, AlertRecipientTypeId, NotificationContactTypeId, TemplateId, AlertDefinition.AlertAgeThreshold, LastUpdatedOn, AlertRecipient.AlertAge, CASE WHEN Location.TimeZoneId IS NOT NULL AND Location.TimeZoneId > 0 THEN Location.TimeZoneId ELSE Client.TimeZoneId END AS TimeZoneId, AlertDefinition.IsSummarize, Alert.ClosedOn, AssetType.IsChestCooler, AlertDefinition.SnoozeForHours, Alert.SnoozeDateTime FROM Alert LEFT OUTER JOIN Asset ON Alert.AssetId = Asset.AssetId LEFT OUTER JOIN AlertType ON Alert.AlertTypeId = AlertType.AlertTypeId LEFT OUTER JOIN AlertDefinition ON Alert.AlertDefinitionId = AlertDefinition.AlertDefinitionId LEFT OUTER JOIN Location ON Location.LocationId = Alert.LocationId LEFT OUTER JOIN LocationAttribute ON LocationAttribute.LocationId = dbo.Location.LocationId LEFT OUTER JOIN ClientUser ON LocationAttribute.FirstRepId = ClientUser.ClientUserId AND ClientUser.IsDeleted = 0 LEFT OUTER JOIN AlertRecipient ON Alert.AlertDefinitionId = AlertRecipient.AlertDefinitionId AND AlertRecipient.IsDeleted= 0 LEFT OUTER JOIN Client ON Client.ClientId = Alert.ClientId LEFT OUTER JOIN AssetType ON dbo.Asset.AssetTypeId = dbo.AssetType.AssetTypeId WHERE (NOT EXISTS(SELECT 1 FROM dbo.EmailQueue INNER JOIN dbo.EmailRecipient ON EmailRecipient.EmailQueueId = EmailQueue.EmailQueueId WHERE AlertId = Alert.AlertId AND EmailRecipient.RecipientId = AlertRecipient.AlertRecipientId) OR (Alert.SnoozeDateTime IS NOT NULL AND Alert.SnoozeDateTime <= GETUTCDATE() AND AlertDefinition.SnoozeForHours > 0 AND Alert.StatusId = @StatusId)) AND Alert.AlertId > @AlertId AND Alert.AlertAt >= DATEADD(DAY, -120, GETDATE()) AND AlertRecipient.IsDeleted = 0 AND Alert.IsActive = 1 AND Alert.IsDeleted = 0 AND AlertRecipient.IsActive = 1 AND AlertRecipient.IsDeleted = 0 AND AlertRecipient.StartDate <= Alert.CreatedOn AND Alert.CreatedOn < DATEADD(hh, 23, AlertRecipient.EndDate) AND (Alert.LocationId != 0 OR NotificationWithoutLocation = 1) AND AlertType.IsSystemAlert = 0 AND Alert.EmailQueuedOn IS NULL AND AlertDefinition.IsActive = 1 2025-12-25 19:35:51.6080 DFramework.Database.Query /* Time Taken: 1102*/ DECLARE @TableName AnsiString(8000) SET @TableName = 'TagAlert' DECLARE @CurrentRecordId Int32 SET @CurrentRecordId = '0' dbo.GetValidDeviceForAlertProcessData 2025-12-25 19:35:56.3736 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 19:35:59.5768 DFramework.Scheduler.TaskBase /* Time Taken: 15765.7277*/ Opportunity Out Of Stock By Outlet 2025-12-25 19:40:50.5005 AlertProcessor ProcessorAlertData: started 2025-12-25 19:40:55.5630 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 19:45:50.5180 AlertProcessor ProcessorAlertData: started 2025-12-25 19:45:55.6587 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 19:50:45.4104 DFramework.Database.Query /* Time Taken: 1288*/ [dbo].GenerateSystemAlerts 2025-12-25 19:50:50.5354 AlertProcessor ProcessorAlertData: started 2025-12-25 19:50:55.6917 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 19:50:59.4573 DFramework.Scheduler.TaskBase /* Time Taken: 15625.0972*/ Opportunity Out Of Stock By Outlet 2025-12-25 19:55:50.5529 AlertProcessor ProcessorAlertData: started 2025-12-25 19:55:53.9904 DFramework.Database.Query /* Time Taken: 504*/ DECLARE @TableName AnsiString(8000) SET @TableName = 'AssetStockProductWiseConsolidate' DECLARE @CurrentRecordId Int32 SET @CurrentRecordId = '3675104' dbo.GetValidDeviceForAlertProcessData 2025-12-25 19:55:57.1935 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 20:00:50.5704 AlertProcessor ProcessorAlertData: started 2025-12-25 20:00:55.6329 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 20:05:44.6660 DFramework.Database.Query /* Time Taken: 707*/ DECLARE @ClientId Int32 SET @ClientId = '213' DECLARE @MarketId Int32 SET @MarketId = '0' DECLARE @ClassificationId Int32 SET @ClassificationId = '0' DECLARE @LocationId Int32 SET @LocationId = '0' DECLARE @LocationTypeId Int32 SET @LocationTypeId = '0' DECLARE @StartDate DateTime2 SET @StartDate = '8/28/2025 12:00:00 AM' dbo.GetOpportunityOutOfStockDataByOutlet 2025-12-25 20:05:46.0254 DFramework.Database.Query /* Time Taken: 1876*/ [dbo].GenerateSystemAlerts 2025-12-25 20:05:50.5879 AlertProcessor ProcessorAlertData: started 2025-12-25 20:05:55.7442 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 20:05:59.9473 DFramework.Scheduler.TaskBase /* Time Taken: 16093.8261*/ Opportunity Out Of Stock By Outlet 2025-12-25 20:10:50.5897 AlertProcessor ProcessorAlertData: started 2025-12-25 20:10:55.6835 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 20:15:15.7164 DFramework.Database.Query /* Time Taken: 1129*/ DECLARE @IsFileProcessed Int32 SET @IsFileProcessed = '0' DECLARE @TaskNumber Int32 SET @TaskNumber = '3' DECLARE @IsDeleted Int32 SET @IsDeleted = '0' SELECT TOP 1000 IncomingFileId, GatewayId,GatewayMac,RawFileName,AzureContainerName,StartIndex,Tries, CreatedOn FROM IncomingFile WHERE [IsFileProcessed] = @IsFileProcessed AND [TaskNumber] = @TaskNumber AND [IsDeleted] = @IsDeleted 2025-12-25 20:15:15.7476 DFramework.Database.Query /* Time Taken: 1156*/ DECLARE @IsFileProcessed Int32 SET @IsFileProcessed = '0' DECLARE @TaskNumber Int32 SET @TaskNumber = '4' DECLARE @IsDeleted Int32 SET @IsDeleted = '0' SELECT TOP 1000 IncomingFileId, GatewayId,GatewayMac,RawFileName,AzureContainerName,StartIndex,Tries, CreatedOn FROM IncomingFile WHERE [IsFileProcessed] = @IsFileProcessed AND [TaskNumber] = @TaskNumber AND [IsDeleted] = @IsDeleted 2025-12-25 20:15:15.7476 DFramework.Database.Query /* Time Taken: 1155*/ DECLARE @IsFileProcessed Int32 SET @IsFileProcessed = '0' DECLARE @TaskNumber Int32 SET @TaskNumber = '1' DECLARE @IsDeleted Int32 SET @IsDeleted = '0' SELECT TOP 1000 IncomingFileId, GatewayId,GatewayMac,RawFileName,AzureContainerName,StartIndex,Tries, CreatedOn FROM IncomingFile WHERE [IsFileProcessed] = @IsFileProcessed AND [TaskNumber] = @TaskNumber AND [IsDeleted] = @IsDeleted 2025-12-25 20:15:15.7632 DFramework.Database.Query /* Time Taken: 1182*/ DECLARE @IsFileProcessed Int32 SET @IsFileProcessed = '0' DECLARE @TaskNumber Int32 SET @TaskNumber = '2' DECLARE @IsDeleted Int32 SET @IsDeleted = '0' SELECT TOP 1000 IncomingFileId, GatewayId,GatewayMac,RawFileName,AzureContainerName,StartIndex,Tries, CreatedOn FROM IncomingFile WHERE [IsFileProcessed] = @IsFileProcessed AND [TaskNumber] = @TaskNumber AND [IsDeleted] = @IsDeleted 2025-12-25 20:15:15.7789 DFramework.Database.Query /* Time Taken: 1193*/ DECLARE @IsFileProcessed Int32 SET @IsFileProcessed = '0' DECLARE @TaskNumber Int32 SET @TaskNumber = '0' DECLARE @IsDeleted Int32 SET @IsDeleted = '0' SELECT TOP 1000 IncomingFileId, GatewayId,GatewayMac,RawFileName,AzureContainerName,StartIndex,Tries, CreatedOn FROM IncomingFile WHERE [IsFileProcessed] = @IsFileProcessed AND [TaskNumber] = @TaskNumber AND [IsDeleted] = @IsDeleted 2025-12-25 20:15:48.6697 DFramework.Database.Query /* Time Taken: 2781*/ DECLARE @OrderStatusId Int32 SET @OrderStatusId = '5486' UPDATE Location SET ScheduledOrderId = 0, OrderStatusId = 0 from ScheduledOrder INNER JOIN Location ON Location.ScheduledOrderId = ScheduledOrder.ScheduledOrderId AND Location.OrderStatusId = @OrderStatusId INNER JOIN CLient On Client.ClientId = Location.ClientId AND Client.HoursToMoveIgnored > 0 WHERE DATEADD(HOUR, Client.HoursToMoveIgnored, ScheduledOrder.ModifiedOn) < GETUTCDATE() AND ScheduledOrder.StatusId = @OrderStatusId ANd Location.IsDeleted = 0 AND ScheduledOrder.IsDeleted = 0 2025-12-25 20:15:50.6072 AlertProcessor ProcessorAlertData: started 2025-12-25 20:15:51.3103 DFramework.Database.Query /* Time Taken: 2641*/ DECLARE @OrderStatusId Int32 SET @OrderStatusId = '5484' UPDATE Location SET ScheduledOrderId = 0, OrderStatusId = 0 from ScheduledOrder INNER JOIN Location ON Location.ScheduledOrderId = ScheduledOrder.ScheduledOrderId AND Location.OrderStatusId = @OrderStatusId INNER JOIN CLient On Client.ClientId = Location.ClientId AND Client.HoursToMoveInTransit > 0 WHERE DATEADD(HOUR, Client.HoursToMoveInTransit, ScheduledOrder.ModifiedOn) < GETUTCDATE() AND ScheduledOrder.StatusId = @OrderStatusId ANd Location.IsDeleted = 0 AND ScheduledOrder.IsDeleted = 0 2025-12-25 20:16:13.9355 DFramework.Database.Query /* Time Taken: 22623*/ DECLARE @OrderStatusId Int32 SET @OrderStatusId = '5485' Select * from vwScheduledOrderItemList where ScheduledOrderId IN (SELECT ScheduledOrder.ScheduledOrderId FROM ScheduledOrder INNER JOIN Location ON Location.ScheduledOrderId = ScheduledOrder.ScheduledOrderId AND Location.OrderStatusId = @OrderStatusId AND Location.IsDeleted = 0 INNER JOIN CLient On Client.ClientId = Location.ClientId AND Client.HoursToMoveIgnored > 0 WHERE DATEADD(HOUR, Client.HoursToMoveScheduled, ScheduledOrder.ModifiedOn) < GETUTCDATE() AND ScheduledOrder.StatusId = @OrderStatusId AND ScheduledOrder.IsDeleted = 0) 2025-12-25 20:16:15.1542 DFramework.Database.Query /* Time Taken: 1223*/ DECLARE @OrderStatusId Int32 SET @OrderStatusId = '5485' UPDATE Location SET ScheduledOrderId = 0, OrderStatusId = 0 from ScheduledOrder INNER JOIN Location ON Location.ScheduledOrderId = ScheduledOrder.ScheduledOrderId AND Location.OrderStatusId = @OrderStatusId INNER JOIN CLient On Client.ClientId = Location.ClientId AND Client.HoursToMoveScheduled > 0 WHERE DATEADD(HOUR, Client.HoursToMoveScheduled, ScheduledOrder.ModifiedOn) < GETUTCDATE() AND ScheduledOrder.StatusId = @OrderStatusId ANd Location.IsDeleted = 0 AND ScheduledOrder.IsDeleted = 0 2025-12-25 20:16:15.5605 DFramework.Scheduler.TaskBase /* Time Taken: 29672.0537*/ Move To Re-Order 2025-12-25 20:16:20.6386 DFramework.Database.Query /* Time Taken: 30025*/ DECLARE @TableName AnsiString(8000) SET @TableName = 'TagAlert' DECLARE @CurrentRecordId Int32 SET @CurrentRecordId = '0' dbo.GetValidDeviceForAlertProcessData 2025-12-25 20:16:50.7638 DFramework.Database.Query /* Time Taken: 30039*/ DECLARE @TableName AnsiString(8000) SET @TableName = 'VoidAlert' DECLARE @CurrentRecordId Int32 SET @CurrentRecordId = '0' dbo.GetValidDeviceForAlertProcessData 2025-12-25 20:17:20.8109 DFramework.Database.Query /* Time Taken: 30015*/ DECLARE @TableName AnsiString(8000) SET @TableName = 'MissingShelf' DECLARE @CurrentRecordId Int32 SET @CurrentRecordId = '0' dbo.GetValidDeviceForAlertProcessData 2025-12-25 20:17:50.8580 DFramework.Database.Query /* Time Taken: 30030*/ DECLARE @TableName AnsiString(8000) SET @TableName = 'AdditionalShelf' DECLARE @CurrentRecordId Int32 SET @CurrentRecordId = '0' dbo.GetValidDeviceForAlertProcessData 2025-12-25 20:18:20.9050 DFramework.Database.Query /* Time Taken: 30017*/ DECLARE @TableName AnsiString(8000) SET @TableName = 'OpportunityOutOfStock' DECLARE @CurrentRecordId Int32 SET @CurrentRecordId = '0' dbo.GetValidDeviceForAlertProcessData 2025-12-25 20:18:50.9521 DFramework.Database.Query /* Time Taken: 30024*/ DECLARE @TableName AnsiString(8000) SET @TableName = 'PlanogramComplianceConsolidate' DECLARE @CurrentRecordId Int32 SET @CurrentRecordId = '0' dbo.GetValidDeviceForAlertProcessData 2025-12-25 20:19:20.9992 DFramework.Database.Query /* Time Taken: 30018*/ DECLARE @TableName AnsiString(8000) SET @TableName = 'OpportunityOutOfStockConsolidate' DECLARE @CurrentRecordId Int32 SET @CurrentRecordId = '0' dbo.GetValidDeviceForAlertProcessData 2025-12-25 20:19:51.0462 DFramework.Database.Query /* Time Taken: 30027*/ DECLARE @TableName AnsiString(8000) SET @TableName = 'AssetStockProductWiseConsolidate' DECLARE @CurrentRecordId Int32 SET @CurrentRecordId = '0' dbo.GetValidDeviceForAlertProcessData 2025-12-25 20:20:21.0933 DFramework.Database.Query /* Time Taken: 30027*/ DECLARE @TableName AnsiString(8000) SET @TableName = 'AssetStockProductWise' DECLARE @CurrentRecordId Int32 SET @CurrentRecordId = '0' dbo.GetValidDeviceForAlertProcessData 2025-12-25 20:20:51.1560 DFramework.Database.Query /* Time Taken: 30039*/ DECLARE @TableName AnsiString(8000) SET @TableName = 'AssetStock' DECLARE @CurrentRecordId Int32 SET @CurrentRecordId = '0' dbo.GetValidDeviceForAlertProcessData 2025-12-25 20:21:14.0155 DFramework.Database.Query /* Time Taken: 30043*/ DECLARE @ClientId Int32 SET @ClientId = '213' DECLARE @MarketId Int32 SET @MarketId = '0' DECLARE @ClassificationId Int32 SET @ClassificationId = '0' DECLARE @LocationId Int32 SET @LocationId = '0' DECLARE @LocationTypeId Int32 SET @LocationTypeId = '0' DECLARE @StartDate DateTime2 SET @StartDate = '8/28/2025 12:00:00 AM' dbo.GetOpportunityOutOfStockDataByOutlet 2025-12-25 20:21:14.0468 DFramework.Scheduler.TaskBase /* Time Taken: 30187.686*/ Opportunity Out Of Stock By Outlet 2025-12-25 20:21:14.2655 DFramework.Database.Query /* Time Taken: 30104*/ [dbo].GenerateSystemAlerts 2025-12-25 20:21:14.3124 DFramework.Scheduler.TaskBase /* Time Taken: 30140.8223*/ Execute Recurring SP Task 2025-12-25 20:21:21.2031 DFramework.Database.Query /* Time Taken: 30026*/ DECLARE @TableName AnsiString(8000) SET @TableName = 'AssetPurity' DECLARE @CurrentRecordId Int32 SET @CurrentRecordId = '0' dbo.GetValidDeviceForAlertProcessData 2025-12-25 20:21:51.2501 DFramework.Database.Query /* Time Taken: 30029*/ DECLARE @TableName AnsiString(8000) SET @TableName = 'OpportunityLowStock' DECLARE @CurrentRecordId Int32 SET @CurrentRecordId = '0' dbo.GetValidDeviceForAlertProcessData 2025-12-25 20:22:21.3909 DFramework.Database.Query /* Time Taken: 30115*/ DECLARE @TableName AnsiString(8000) SET @TableName = 'AssetStockProductCategoryWise' DECLARE @CurrentRecordId Int32 SET @CurrentRecordId = '0' dbo.GetValidDeviceForAlertProcessData 2025-12-25 20:22:51.4379 DFramework.Database.Query /* Time Taken: 30033*/ DECLARE @TableName AnsiString(8000) SET @TableName = 'LowInventoryConsolidate' DECLARE @CurrentRecordId Int32 SET @CurrentRecordId = '0' dbo.GetValidDeviceForAlertProcessData 2025-12-25 20:23:21.5006 DFramework.Database.Query /* Time Taken: 30031*/ DECLARE @TableName AnsiString(8000) SET @TableName = 'TargetPortfolioComplianceConsolidate' DECLARE @CurrentRecordId Int32 SET @CurrentRecordId = '0' dbo.GetValidDeviceForAlertProcessData 2025-12-25 20:23:51.5477 DFramework.Database.Query /* Time Taken: 30026*/ DECLARE @TableName AnsiString(8000) SET @TableName = 'ProductStockLevel' DECLARE @CurrentRecordId Int32 SET @CurrentRecordId = '0' dbo.GetValidDeviceForAlertProcessData 2025-12-25 20:23:51.5789 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 20:23:51.5789 DFramework.Scheduler.TaskBase /* Time Taken: 480971.6908*/ Process Alert Record 2025-12-25 20:25:46.8921 DFramework.Database.Query /* Time Taken: 995*/ DECLARE @OrderStatusId Int32 SET @OrderStatusId = '5486' UPDATE Location SET ScheduledOrderId = 0, OrderStatusId = 0 from ScheduledOrder INNER JOIN Location ON Location.ScheduledOrderId = ScheduledOrder.ScheduledOrderId AND Location.OrderStatusId = @OrderStatusId INNER JOIN CLient On Client.ClientId = Location.ClientId AND Client.HoursToMoveIgnored > 0 WHERE DATEADD(HOUR, Client.HoursToMoveIgnored, ScheduledOrder.ModifiedOn) < GETUTCDATE() AND ScheduledOrder.StatusId = @OrderStatusId ANd Location.IsDeleted = 0 AND ScheduledOrder.IsDeleted = 0 2025-12-25 20:25:47.8452 DFramework.Database.Query /* Time Taken: 861*/ DECLARE @OrderStatusId Int32 SET @OrderStatusId = '5485' Select * from vwScheduledOrderItemList where ScheduledOrderId IN (SELECT ScheduledOrder.ScheduledOrderId FROM ScheduledOrder INNER JOIN Location ON Location.ScheduledOrderId = ScheduledOrder.ScheduledOrderId AND Location.OrderStatusId = @OrderStatusId AND Location.IsDeleted = 0 INNER JOIN CLient On Client.ClientId = Location.ClientId AND Client.HoursToMoveIgnored > 0 WHERE DATEADD(HOUR, Client.HoursToMoveScheduled, ScheduledOrder.ModifiedOn) < GETUTCDATE() AND ScheduledOrder.StatusId = @OrderStatusId AND ScheduledOrder.IsDeleted = 0) 2025-12-25 20:25:50.6265 AlertProcessor ProcessorAlertData: started 2025-12-25 20:26:20.6579 DFramework.Database.Query /* Time Taken: 30028*/ DECLARE @TableName AnsiString(8000) SET @TableName = 'TagAlert' DECLARE @CurrentRecordId Int32 SET @CurrentRecordId = '0' dbo.GetValidDeviceForAlertProcessData 2025-12-25 20:26:50.7206 DFramework.Database.Query /* Time Taken: 30028*/ DECLARE @TableName AnsiString(8000) SET @TableName = 'VoidAlert' DECLARE @CurrentRecordId Int32 SET @CurrentRecordId = '0' dbo.GetValidDeviceForAlertProcessData 2025-12-25 20:27:20.7833 DFramework.Database.Query /* Time Taken: 30037*/ DECLARE @TableName AnsiString(8000) SET @TableName = 'MissingShelf' DECLARE @CurrentRecordId Int32 SET @CurrentRecordId = '0' dbo.GetValidDeviceForAlertProcessData 2025-12-25 20:27:50.8303 DFramework.Database.Query /* Time Taken: 30025*/ DECLARE @TableName AnsiString(8000) SET @TableName = 'AdditionalShelf' DECLARE @CurrentRecordId Int32 SET @CurrentRecordId = '0' dbo.GetValidDeviceForAlertProcessData 2025-12-25 20:28:20.8930 DFramework.Database.Query /* Time Taken: 30033*/ DECLARE @TableName AnsiString(8000) SET @TableName = 'OpportunityOutOfStock' DECLARE @CurrentRecordId Int32 SET @CurrentRecordId = '0' dbo.GetValidDeviceForAlertProcessData 2025-12-25 20:28:50.9401 DFramework.Database.Query /* Time Taken: 30020*/ DECLARE @TableName AnsiString(8000) SET @TableName = 'PlanogramComplianceConsolidate' DECLARE @CurrentRecordId Int32 SET @CurrentRecordId = '0' dbo.GetValidDeviceForAlertProcessData 2025-12-25 20:29:20.9871 DFramework.Database.Query /* Time Taken: 30017*/ DECLARE @TableName AnsiString(8000) SET @TableName = 'OpportunityOutOfStockConsolidate' DECLARE @CurrentRecordId Int32 SET @CurrentRecordId = '0' dbo.GetValidDeviceForAlertProcessData 2025-12-25 20:29:51.0342 DFramework.Database.Query /* Time Taken: 30023*/ DECLARE @TableName AnsiString(8000) SET @TableName = 'AssetStockProductWiseConsolidate' DECLARE @CurrentRecordId Int32 SET @CurrentRecordId = '0' dbo.GetValidDeviceForAlertProcessData 2025-12-25 20:30:21.0813 DFramework.Database.Query /* Time Taken: 30015*/ DECLARE @TableName AnsiString(8000) SET @TableName = 'AssetStockProductWise' DECLARE @CurrentRecordId Int32 SET @CurrentRecordId = '0' dbo.GetValidDeviceForAlertProcessData 2025-12-25 20:30:42.2064 DFramework.Database.Query /* Time Taken: 21096*/ DECLARE @TableName AnsiString(8000) SET @TableName = 'AssetStock' DECLARE @CurrentRecordId Int32 SET @CurrentRecordId = '0' dbo.GetValidDeviceForAlertProcessData 2025-12-25 20:30:53.1127 DFramework.Database.Query /* Time Taken: 10886*/ DECLARE @TableName AnsiString(8000) SET @TableName = 'AssetPurity' DECLARE @CurrentRecordId Int32 SET @CurrentRecordId = '0' dbo.GetValidDeviceForAlertProcessData 2025-12-25 20:30:53.1596 DFramework.Database.Query /* Time Taken: 2116*/ DECLARE AlertTypeIds Object SET AlertTypeIds = 'DFramework.Database.Adapters.SQL+d__24' [dbo].GetAlertSummaryData 2025-12-25 20:30:53.5658 DFramework.Database.Query /* Time Taken: 2584*/ DECLARE @StatusId Int32 SET @StatusId = '1' DECLARE @AlertId Int32 SET @AlertId = '7571914' SELECT TOP 10000 Alert.AlertId, Alert.LocationId, Alert.RecordId, ISNULL(AlertDefinition.Name, Alert.AlertText) Name, Alert.AlertTypeId, Alert.AlertText, ISNULL(Location.Name, '') AS LocationName, AlertDefinition.ClientId, AlertRecipient.RoleId, CASE WHEN Alert.AlertTypeId IN (6,7) THEN CONVERT(VARCHAR(10), CAST(AlertAt AS DATE), 101) ELSE AlertAt END AS AlertAt, AlertType, Asset.SerialNumber, ISNULL(LocationAttribute.FirstRepId, 0) RepId, ClientUser.PrimaryPhone AS SalesRepPhone, ClientUser.PrimaryEmail AS SalesRepEmail, FirstName, LastName, PreferedNotificationTypeIds, AlertRecipientId, AlertRecipientAddress, AlertRecipientText, Alert.Tags, AlertRecipientTypeId, NotificationContactTypeId, TemplateId, AlertDefinition.AlertAgeThreshold, LastUpdatedOn, AlertRecipient.AlertAge, CASE WHEN Location.TimeZoneId IS NOT NULL AND Location.TimeZoneId > 0 THEN Location.TimeZoneId ELSE Client.TimeZoneId END AS TimeZoneId, AlertDefinition.IsSummarize, Alert.ClosedOn, AssetType.IsChestCooler, AlertDefinition.SnoozeForHours, Alert.SnoozeDateTime FROM Alert LEFT OUTER JOIN Asset ON Alert.AssetId = Asset.AssetId LEFT OUTER JOIN AlertType ON Alert.AlertTypeId = AlertType.AlertTypeId LEFT OUTER JOIN AlertDefinition ON Alert.AlertDefinitionId = AlertDefinition.AlertDefinitionId LEFT OUTER JOIN Location ON Location.LocationId = Alert.LocationId LEFT OUTER JOIN LocationAttribute ON LocationAttribute.LocationId = dbo.Location.LocationId LEFT OUTER JOIN ClientUser ON LocationAttribute.FirstRepId = ClientUser.ClientUserId AND ClientUser.IsDeleted = 0 LEFT OUTER JOIN AlertRecipient ON Alert.AlertDefinitionId = AlertRecipient.AlertDefinitionId AND AlertRecipient.IsDeleted= 0 LEFT OUTER JOIN Client ON Client.ClientId = Alert.ClientId LEFT OUTER JOIN AssetType ON dbo.Asset.AssetTypeId = dbo.AssetType.AssetTypeId WHERE (NOT EXISTS(SELECT 1 FROM dbo.EmailQueue INNER JOIN dbo.EmailRecipient ON EmailRecipient.EmailQueueId = EmailQueue.EmailQueueId WHERE AlertId = Alert.AlertId AND EmailRecipient.RecipientId = AlertRecipient.AlertRecipientId) OR (Alert.SnoozeDateTime IS NOT NULL AND Alert.SnoozeDateTime <= GETUTCDATE() AND AlertDefinition.SnoozeForHours > 0 AND Alert.StatusId = @StatusId)) AND Alert.AlertId > @AlertId AND Alert.AlertAt >= DATEADD(DAY, -120, GETDATE()) AND AlertRecipient.IsDeleted = 0 AND Alert.IsActive = 1 AND Alert.IsDeleted = 0 AND AlertRecipient.IsActive = 1 AND AlertRecipient.IsDeleted = 0 AND AlertRecipient.StartDate <= Alert.CreatedOn AND Alert.CreatedOn < DATEADD(hh, 23, AlertRecipient.EndDate) AND (Alert.LocationId != 0 OR NotificationWithoutLocation = 1) AND AlertType.IsSystemAlert = 0 AND Alert.EmailQueuedOn IS NULL AND AlertDefinition.IsActive = 1 2025-12-25 20:30:54.2065 DFramework.Database.Query /* Time Taken: 512*/ DECLARE @TableName AnsiString(8000) SET @TableName = 'AssetStockProductCategoryWise' DECLARE @CurrentRecordId Int32 SET @CurrentRecordId = '3675104' dbo.GetValidDeviceForAlertProcessData 2025-12-25 20:30:54.3627 DFramework.Database.Query /* Time Taken: 1201*/ DECLARE @AlertTypeIds AnsiString(8000) SET @AlertTypeIds = '42,31,44,18,58,52,64,61,46,73,59,65,69,72,60,74,68,39,51,56,32,55,38,63,77,76' DECLARE @ClientIds AnsiString(8000) SET @ClientIds = '360,1494,213,286,395,70,291,335,452' DECLARE @StatusId Int32 SET @StatusId = '1' SELECT ClientName, AlertType, AlertText, Location.Name AS [Location], Location.Code AS LocationCode, Asset.SerialNumber AS AssetSerialNumber, COALESCE(SmartDevice.SerialNumber, SD.SerialNumber) AS SmartDeviceSerial, AlertAt, AccountCoordinators.PrimaryEmail AS AccountCoordinator, AccountDirectors.PrimaryEmail AS AccountDirector, Alert.ClientId FROM Alert LEFT OUTER JOIN Client ON Client.ClientId = Alert.ClientId LEFT OUTER JOIN AlertType ON AlertType.AlertTypeId = Alert.AlertTypeId LEFT OUTER JOIN Location ON Location.LocationId = Alert.LocationId LEFT OUTER JOIN Asset ON Asset.AssetId = Alert.AssetId LEFT OUTER JOIN SmartDevice ON SmartDevice.SmartDeviceId = Alert.SmartDeviceId AND SmartDevice.IsGatewayDevice = 0 LEFT OUTER JOIN vwSmartDeviceExceptSmartHubList AS SD ON dbo.Alert.AssetId = SD.LinkedAssetId AND SD.LinkedAssetId <> 0 LEFT OUTER JOIN dbo.Security_User AS AccountDirectors ON Client.AccountDirectorId = AccountDirectors.UserId AND AccountDirectors.IsDeleted = 0 LEFT OUTER JOIN dbo.Security_User AS AccountCoordinators ON Client.AccountCoordinatorId = AccountCoordinators.UserId AND AccountCoordinators.IsDeleted = 0 WHERE Alert.IsDeleted = 0 AND Alert.AlertTypeId IN (SELECT * FROM CsvToInt(@AlertTypeIds)) AND Alert.ClientId IN (SELECT * FROM CsvToInt(@ClientIds)) AND Alert.StatusId = @StatusId ORDER BY Alert.ClientId 2025-12-25 20:30:56.3471 DFramework.Database.Query /* Time Taken: 1161*/ DECLARE @TableName AnsiString(8000) SET @TableName = 'ProductStockLevel' DECLARE @CurrentRecordId Int32 SET @CurrentRecordId = '3675104' dbo.GetValidDeviceForAlertProcessData 2025-12-25 20:30:56.3940 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 20:30:56.3940 DFramework.Scheduler.TaskBase /* Time Taken: 305767.504*/ Process Alert Record 2025-12-25 20:31:15.6910 DFramework.Database.Query /* Time Taken: 20572*/ DECLARE @AlertTypeIds AnsiString(8000) SET @AlertTypeIds = '73,59,57,66,65,70,9,72,60,74,68,56,55,61,67,64,44,18,58,69,52,38,31,51,49,12,46,28,41,19,76' DECLARE @ClientIds AnsiString(8000) SET @ClientIds = '349,1494,430,286,414,395,471,360,213,70,415,134,451,207,385,188,224,421,333,291,227,114,306,1480,180,308,1496,295,183,325,469,299,342,221,229,300,320,296,336,314,338,301,316,303,331,305,332,328,335,337,1476,322,355,124,1481,289,222,452' DECLARE @StatusId Int32 SET @StatusId = '1' SELECT ClientName, AlertType, AlertText, Location.Name AS [Location], Location.Code AS LocationCode, Asset.SerialNumber AS AssetSerialNumber, COALESCE(SmartDevice.SerialNumber, SD.SerialNumber) AS SmartDeviceSerial, AlertAt, AccountCoordinators.PrimaryEmail AS AccountCoordinator, AccountDirectors.PrimaryEmail AS AccountDirector, Alert.ClientId FROM Alert LEFT OUTER JOIN Client ON Client.ClientId = Alert.ClientId LEFT OUTER JOIN AlertType ON AlertType.AlertTypeId = Alert.AlertTypeId LEFT OUTER JOIN Location ON Location.LocationId = Alert.LocationId LEFT OUTER JOIN Asset ON Asset.AssetId = Alert.AssetId LEFT OUTER JOIN SmartDevice ON SmartDevice.SmartDeviceId = Alert.SmartDeviceId AND SmartDevice.IsGatewayDevice = 0 LEFT OUTER JOIN vwSmartDeviceExceptSmartHubList AS SD ON dbo.Alert.AssetId = SD.LinkedAssetId AND SD.LinkedAssetId <> 0 LEFT OUTER JOIN dbo.Security_User AS AccountDirectors ON Client.AccountDirectorId = AccountDirectors.UserId AND AccountDirectors.IsDeleted = 0 LEFT OUTER JOIN dbo.Security_User AS AccountCoordinators ON Client.AccountCoordinatorId = AccountCoordinators.UserId AND AccountCoordinators.IsDeleted = 0 WHERE Alert.IsDeleted = 0 AND Alert.AlertTypeId IN (SELECT * FROM CsvToInt(@AlertTypeIds)) AND Alert.ClientId IN (SELECT * FROM CsvToInt(@ClientIds)) AND Alert.StatusId = @StatusId ORDER BY Alert.ClientId 2025-12-25 20:31:16.4878 DFramework.Scheduler.TaskBase /* Time Taken: 25500.1656*/ Alert Summary Mail 2025-12-25 20:35:44.7083 DFramework.Database.Query /* Time Taken: 717*/ DECLARE @ClientId Int32 SET @ClientId = '213' DECLARE @MarketId Int32 SET @MarketId = '0' DECLARE @ClassificationId Int32 SET @ClassificationId = '0' DECLARE @LocationId Int32 SET @LocationId = '0' DECLARE @LocationTypeId Int32 SET @LocationTypeId = '0' DECLARE @StartDate DateTime2 SET @StartDate = '8/28/2025 12:00:00 AM' dbo.GetOpportunityOutOfStockDataByOutlet 2025-12-25 20:35:46.6614 MoveToReorder Running task for ClientId : 286 and ClientName = India Office QA and Slot: 12/26/2025 10:00:00 AM And LastExecutedOn: 12/26/2025 9:05:46 AM 2025-12-25 20:35:47.2864 DFramework.Database.Query /* Time Taken: 552*/ DECLARE @OrderStatusId Int32 SET @OrderStatusId = '0' DECLARE @ClientId Int32 SET @ClientId = '286' dbo.GetOrderDetailsByClientId 2025-12-25 20:35:47.3177 MoveToReorder Task executed successfully for ClientId : 286 Client Name:India Office QA, Slot: 12/26/2025 10:00:00 AM But No Order found to suggest 2025-12-25 20:35:47.9427 DFramework.Database.Query /* Time Taken: 3756*/ [dbo].GenerateSystemAlerts 2025-12-25 20:35:50.6458 AlertProcessor ProcessorAlertData: started 2025-12-25 20:35:51.2708 DFramework.Database.Query /* Time Taken: 612*/ DECLARE @TableName AnsiString(8000) SET @TableName = 'TagAlert' DECLARE @CurrentRecordId Int32 SET @CurrentRecordId = '0' dbo.GetValidDeviceForAlertProcessData 2025-12-25 20:35:52.3021 DFramework.Database.Query /* Time Taken: 648*/ DECLARE @TableName AnsiString(8000) SET @TableName = 'MissingShelf' DECLARE @CurrentRecordId Int32 SET @CurrentRecordId = '3675104' dbo.GetValidDeviceForAlertProcessData 2025-12-25 20:35:54.7709 DFramework.Database.Query /* Time Taken: 1067*/ DECLARE @TableName AnsiString(8000) SET @TableName = 'AssetStockProductWiseConsolidate' DECLARE @CurrentRecordId Int32 SET @CurrentRecordId = '3675104' dbo.GetValidDeviceForAlertProcessData 2025-12-25 20:35:57.6771 DFramework.Database.Query /* Time Taken: 748*/ DECLARE @TableName AnsiString(8000) SET @TableName = 'ProductStockLevel' DECLARE @CurrentRecordId Int32 SET @CurrentRecordId = '3675104' dbo.GetValidDeviceForAlertProcessData 2025-12-25 20:35:57.7396 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 20:40:50.6478 AlertProcessor ProcessorAlertData: started 2025-12-25 20:40:53.6635 DFramework.Database.Query /* Time Taken: 714*/ DECLARE @TableName AnsiString(8000) SET @TableName = 'AssetStockProductWiseConsolidate' DECLARE @CurrentRecordId Int32 SET @CurrentRecordId = '3675104' dbo.GetValidDeviceForAlertProcessData 2025-12-25 20:40:56.4760 DFramework.Database.Query /* Time Taken: 729*/ DECLARE @TableName AnsiString(8000) SET @TableName = 'ProductStockLevel' DECLARE @CurrentRecordId Int32 SET @CurrentRecordId = '3675104' dbo.GetValidDeviceForAlertProcessData 2025-12-25 20:40:56.5385 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 20:45:50.6654 AlertProcessor ProcessorAlertData: started 2025-12-25 20:45:53.6967 DFramework.Database.Query /* Time Taken: 714*/ DECLARE @TableName AnsiString(8000) SET @TableName = 'AssetStockProductWiseConsolidate' DECLARE @CurrentRecordId Int32 SET @CurrentRecordId = '3675104' dbo.GetValidDeviceForAlertProcessData 2025-12-25 20:45:56.5873 DFramework.Database.Query /* Time Taken: 699*/ DECLARE @TableName AnsiString(8000) SET @TableName = 'ProductStockLevel' DECLARE @CurrentRecordId Int32 SET @CurrentRecordId = '3675104' dbo.GetValidDeviceForAlertProcessData 2025-12-25 20:45:56.6342 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 20:50:46.1361 DFramework.Database.Query /* Time Taken: 1921*/ [dbo].GenerateSystemAlerts 2025-12-25 20:50:50.2455 DFramework.Database.Query /* Time Taken: 1032*/ DECLARE @ClientId Int32 SET @ClientId = '286' DECLARE @MarketId Int32 SET @MarketId = '0' DECLARE @ClassificationId Int32 SET @ClassificationId = '0' DECLARE @LocationId Int32 SET @LocationId = '0' DECLARE @LocationTypeId Int32 SET @LocationTypeId = '0' DECLARE @StartDate DateTime2 SET @StartDate = '11/1/2025 12:00:00 AM' dbo.GetOpportunityOutOfStockDataByOutlet 2025-12-25 20:50:50.6674 AlertProcessor ProcessorAlertData: started 2025-12-25 20:50:51.4330 DFramework.Database.Query /* Time Taken: 767*/ DECLARE @TableName AnsiString(8000) SET @TableName = 'TagAlert' DECLARE @CurrentRecordId Int32 SET @CurrentRecordId = '0' dbo.GetValidDeviceForAlertProcessData 2025-12-25 20:50:54.1518 DFramework.Database.Query /* Time Taken: 706*/ DECLARE @TableName AnsiString(8000) SET @TableName = 'AssetStockProductWiseConsolidate' DECLARE @CurrentRecordId Int32 SET @CurrentRecordId = '3675104' dbo.GetValidDeviceForAlertProcessData 2025-12-25 20:50:56.9643 DFramework.Database.Query /* Time Taken: 717*/ DECLARE @TableName AnsiString(8000) SET @TableName = 'ProductStockLevel' DECLARE @CurrentRecordId Int32 SET @CurrentRecordId = '3675104' dbo.GetValidDeviceForAlertProcessData 2025-12-25 20:50:57.0111 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 20:55:50.6849 AlertProcessor ProcessorAlertData: started 2025-12-25 20:55:53.9349 DFramework.Database.Query /* Time Taken: 733*/ DECLARE @TableName AnsiString(8000) SET @TableName = 'AssetStockProductWiseConsolidate' DECLARE @CurrentRecordId Int32 SET @CurrentRecordId = '3675104' dbo.GetValidDeviceForAlertProcessData 2025-12-25 20:55:56.7162 DFramework.Database.Query /* Time Taken: 708*/ DECLARE @TableName AnsiString(8000) SET @TableName = 'ProductStockLevel' DECLARE @CurrentRecordId Int32 SET @CurrentRecordId = '3675104' dbo.GetValidDeviceForAlertProcessData 2025-12-25 20:55:56.7631 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 21:00:50.6869 AlertProcessor ProcessorAlertData: started 2025-12-25 21:00:53.8588 DFramework.Database.Query /* Time Taken: 757*/ DECLARE @TableName AnsiString(8000) SET @TableName = 'AssetStockProductWiseConsolidate' DECLARE @CurrentRecordId Int32 SET @CurrentRecordId = '3675104' dbo.GetValidDeviceForAlertProcessData 2025-12-25 21:00:56.7026 DFramework.Database.Query /* Time Taken: 728*/ DECLARE @TableName AnsiString(8000) SET @TableName = 'ProductStockLevel' DECLARE @CurrentRecordId Int32 SET @CurrentRecordId = '3675104' dbo.GetValidDeviceForAlertProcessData 2025-12-25 21:00:56.7651 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 21:05:45.7045 DFramework.Database.Query /* Time Taken: 1497*/ [dbo].GenerateSystemAlerts 2025-12-25 21:05:50.7045 AlertProcessor ProcessorAlertData: started 2025-12-25 21:05:52.0795 DFramework.Database.Query /* Time Taken: 586*/ DECLARE @TableName AnsiString(8000) SET @TableName = 'MissingShelf' DECLARE @CurrentRecordId Int32 SET @CurrentRecordId = '3675104' dbo.GetValidDeviceForAlertProcessData 2025-12-25 21:05:52.3764 DFramework.Database.Query /* Time Taken: 1302*/ DECLARE @StatusId Int32 SET @StatusId = '1' DECLARE @AlertId Int32 SET @AlertId = '7571914' SELECT TOP 10000 Alert.AlertId, Alert.LocationId, Alert.RecordId, ISNULL(AlertDefinition.Name, Alert.AlertText) Name, Alert.AlertTypeId, Alert.AlertText, ISNULL(Location.Name, '') AS LocationName, AlertDefinition.ClientId, AlertRecipient.RoleId, CASE WHEN Alert.AlertTypeId IN (6,7) THEN CONVERT(VARCHAR(10), CAST(AlertAt AS DATE), 101) ELSE AlertAt END AS AlertAt, AlertType, Asset.SerialNumber, ISNULL(LocationAttribute.FirstRepId, 0) RepId, ClientUser.PrimaryPhone AS SalesRepPhone, ClientUser.PrimaryEmail AS SalesRepEmail, FirstName, LastName, PreferedNotificationTypeIds, AlertRecipientId, AlertRecipientAddress, AlertRecipientText, Alert.Tags, AlertRecipientTypeId, NotificationContactTypeId, TemplateId, AlertDefinition.AlertAgeThreshold, LastUpdatedOn, AlertRecipient.AlertAge, CASE WHEN Location.TimeZoneId IS NOT NULL AND Location.TimeZoneId > 0 THEN Location.TimeZoneId ELSE Client.TimeZoneId END AS TimeZoneId, AlertDefinition.IsSummarize, Alert.ClosedOn, AssetType.IsChestCooler, AlertDefinition.SnoozeForHours, Alert.SnoozeDateTime FROM Alert LEFT OUTER JOIN Asset ON Alert.AssetId = Asset.AssetId LEFT OUTER JOIN AlertType ON Alert.AlertTypeId = AlertType.AlertTypeId LEFT OUTER JOIN AlertDefinition ON Alert.AlertDefinitionId = AlertDefinition.AlertDefinitionId LEFT OUTER JOIN Location ON Location.LocationId = Alert.LocationId LEFT OUTER JOIN LocationAttribute ON LocationAttribute.LocationId = dbo.Location.LocationId LEFT OUTER JOIN ClientUser ON LocationAttribute.FirstRepId = ClientUser.ClientUserId AND ClientUser.IsDeleted = 0 LEFT OUTER JOIN AlertRecipient ON Alert.AlertDefinitionId = AlertRecipient.AlertDefinitionId AND AlertRecipient.IsDeleted= 0 LEFT OUTER JOIN Client ON Client.ClientId = Alert.ClientId LEFT OUTER JOIN AssetType ON dbo.Asset.AssetTypeId = dbo.AssetType.AssetTypeId WHERE (NOT EXISTS(SELECT 1 FROM dbo.EmailQueue INNER JOIN dbo.EmailRecipient ON EmailRecipient.EmailQueueId = EmailQueue.EmailQueueId WHERE AlertId = Alert.AlertId AND EmailRecipient.RecipientId = AlertRecipient.AlertRecipientId) OR (Alert.SnoozeDateTime IS NOT NULL AND Alert.SnoozeDateTime <= GETUTCDATE() AND AlertDefinition.SnoozeForHours > 0 AND Alert.StatusId = @StatusId)) AND Alert.AlertId > @AlertId AND Alert.AlertAt >= DATEADD(DAY, -120, GETDATE()) AND AlertRecipient.IsDeleted = 0 AND Alert.IsActive = 1 AND Alert.IsDeleted = 0 AND AlertRecipient.IsActive = 1 AND AlertRecipient.IsDeleted = 0 AND AlertRecipient.StartDate <= Alert.CreatedOn AND Alert.CreatedOn < DATEADD(hh, 23, AlertRecipient.EndDate) AND (Alert.LocationId != 0 OR NotificationWithoutLocation = 1) AND AlertType.IsSystemAlert = 0 AND Alert.EmailQueuedOn IS NULL AND AlertDefinition.IsActive = 1 2025-12-25 21:05:53.0795 DFramework.Database.NullableDataReader Data reader open for 279 at System.Environment.GetStackTrace(Exception e, Boolean needFileInfo) at System.Environment.get_StackTrace() at DFramework.Database.NullableDataReader.Dispose(Boolean disposing) in D:\Spraxa\Framework\DFramework\Database\NullableDataReader.cs:line 33 at DFramework.Database.NullableDataReader.Dispose() in D:\Spraxa\Framework\DFramework\Database\NullableDataReader.cs:line 44 at CoolR.Tasks.ProcessAlertData.Execute() in D:\Spraxa\CoolR-Group\portal\CoolR.Tasks\ProcessAlertData.cs:line 47 at DFramework.Scheduler.TaskBase.Run() in D:\Spraxa\Framework\DFramework.Scheduler\TaskBase.cs:line 176 at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.ThreadHelper.ThreadStart() 2025-12-25 21:05:54.3920 DFramework.Database.Query /* Time Taken: 720*/ DECLARE @TableName AnsiString(8000) SET @TableName = 'AssetStockProductWiseConsolidate' DECLARE @CurrentRecordId Int32 SET @CurrentRecordId = '3675104' dbo.GetValidDeviceForAlertProcessData 2025-12-25 21:05:57.2202 DFramework.Database.Query /* Time Taken: 722*/ DECLARE @TableName AnsiString(8000) SET @TableName = 'ProductStockLevel' DECLARE @CurrentRecordId Int32 SET @CurrentRecordId = '3675104' dbo.GetValidDeviceForAlertProcessData 2025-12-25 21:05:57.2827 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 21:10:50.7221 AlertProcessor ProcessorAlertData: started 2025-12-25 21:10:56.3002 DFramework.Database.Query /* Time Taken: 5207*/ DECLARE @StatusId Int32 SET @StatusId = '1' DECLARE @AlertId Int32 SET @AlertId = '7571914' SELECT TOP 10000 Alert.AlertId, Alert.LocationId, Alert.RecordId, ISNULL(AlertDefinition.Name, Alert.AlertText) Name, Alert.AlertTypeId, Alert.AlertText, ISNULL(Location.Name, '') AS LocationName, AlertDefinition.ClientId, AlertRecipient.RoleId, CASE WHEN Alert.AlertTypeId IN (6,7) THEN CONVERT(VARCHAR(10), CAST(AlertAt AS DATE), 101) ELSE AlertAt END AS AlertAt, AlertType, Asset.SerialNumber, ISNULL(LocationAttribute.FirstRepId, 0) RepId, ClientUser.PrimaryPhone AS SalesRepPhone, ClientUser.PrimaryEmail AS SalesRepEmail, FirstName, LastName, PreferedNotificationTypeIds, AlertRecipientId, AlertRecipientAddress, AlertRecipientText, Alert.Tags, AlertRecipientTypeId, NotificationContactTypeId, TemplateId, AlertDefinition.AlertAgeThreshold, LastUpdatedOn, AlertRecipient.AlertAge, CASE WHEN Location.TimeZoneId IS NOT NULL AND Location.TimeZoneId > 0 THEN Location.TimeZoneId ELSE Client.TimeZoneId END AS TimeZoneId, AlertDefinition.IsSummarize, Alert.ClosedOn, AssetType.IsChestCooler, AlertDefinition.SnoozeForHours, Alert.SnoozeDateTime FROM Alert LEFT OUTER JOIN Asset ON Alert.AssetId = Asset.AssetId LEFT OUTER JOIN AlertType ON Alert.AlertTypeId = AlertType.AlertTypeId LEFT OUTER JOIN AlertDefinition ON Alert.AlertDefinitionId = AlertDefinition.AlertDefinitionId LEFT OUTER JOIN Location ON Location.LocationId = Alert.LocationId LEFT OUTER JOIN LocationAttribute ON LocationAttribute.LocationId = dbo.Location.LocationId LEFT OUTER JOIN ClientUser ON LocationAttribute.FirstRepId = ClientUser.ClientUserId AND ClientUser.IsDeleted = 0 LEFT OUTER JOIN AlertRecipient ON Alert.AlertDefinitionId = AlertRecipient.AlertDefinitionId AND AlertRecipient.IsDeleted= 0 LEFT OUTER JOIN Client ON Client.ClientId = Alert.ClientId LEFT OUTER JOIN AssetType ON dbo.Asset.AssetTypeId = dbo.AssetType.AssetTypeId WHERE (NOT EXISTS(SELECT 1 FROM dbo.EmailQueue INNER JOIN dbo.EmailRecipient ON EmailRecipient.EmailQueueId = EmailQueue.EmailQueueId WHERE AlertId = Alert.AlertId AND EmailRecipient.RecipientId = AlertRecipient.AlertRecipientId) OR (Alert.SnoozeDateTime IS NOT NULL AND Alert.SnoozeDateTime <= GETUTCDATE() AND AlertDefinition.SnoozeForHours > 0 AND Alert.StatusId = @StatusId)) AND Alert.AlertId > @AlertId AND Alert.AlertAt >= DATEADD(DAY, -120, GETDATE()) AND AlertRecipient.IsDeleted = 0 AND Alert.IsActive = 1 AND Alert.IsDeleted = 0 AND AlertRecipient.IsActive = 1 AND AlertRecipient.IsDeleted = 0 AND AlertRecipient.StartDate <= Alert.CreatedOn AND Alert.CreatedOn < DATEADD(hh, 23, AlertRecipient.EndDate) AND (Alert.LocationId != 0 OR NotificationWithoutLocation = 1) AND AlertType.IsSystemAlert = 0 AND Alert.EmailQueuedOn IS NULL AND AlertDefinition.IsActive = 1 2025-12-25 21:10:58.0033 DFramework.Database.Query /* Time Taken: 7280*/ DECLARE @TableName AnsiString(8000) SET @TableName = 'TagAlert' DECLARE @CurrentRecordId Int32 SET @CurrentRecordId = '0' dbo.GetValidDeviceForAlertProcessData 2025-12-25 21:11:01.2534 DFramework.Database.Query /* Time Taken: 2833*/ DECLARE @TableName AnsiString(8000) SET @TableName = 'MissingShelf' DECLARE @CurrentRecordId Int32 SET @CurrentRecordId = '3675104' dbo.GetValidDeviceForAlertProcessData 2025-12-25 21:11:02.5659 DFramework.Database.Query /* Time Taken: 755*/ DECLARE @TableName AnsiString(8000) SET @TableName = 'OpportunityOutOfStock' DECLARE @CurrentRecordId Int32 SET @CurrentRecordId = '3675104' dbo.GetValidDeviceForAlertProcessData 2025-12-25 21:11:04.8784 DFramework.Database.Query /* Time Taken: 1555*/ DECLARE @TableName AnsiString(8000) SET @TableName = 'AssetStockProductWiseConsolidate' DECLARE @CurrentRecordId Int32 SET @CurrentRecordId = '3675104' dbo.GetValidDeviceForAlertProcessData 2025-12-25 21:11:07.8316 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 21:11:07.8316 DFramework.Scheduler.TaskBase /* Time Taken: 17109.4968*/ Process Alert Record 2025-12-25 21:15:50.7401 AlertProcessor ProcessorAlertData: started 2025-12-25 21:15:51.4433 DFramework.Database.Query /* Time Taken: 701*/ DECLARE @TableName AnsiString(8000) SET @TableName = 'TagAlert' DECLARE @CurrentRecordId Int32 SET @CurrentRecordId = '0' dbo.GetValidDeviceForAlertProcessData 2025-12-25 21:15:52.7870 DFramework.Database.Query /* Time Taken: 832*/ DECLARE @TableName AnsiString(8000) SET @TableName = 'MissingShelf' DECLARE @CurrentRecordId Int32 SET @CurrentRecordId = '3675104' dbo.GetValidDeviceForAlertProcessData 2025-12-25 21:15:55.3027 DFramework.Database.Query /* Time Taken: 854*/ DECLARE @TableName AnsiString(8000) SET @TableName = 'AssetStockProductWiseConsolidate' DECLARE @CurrentRecordId Int32 SET @CurrentRecordId = '3675104' dbo.GetValidDeviceForAlertProcessData 2025-12-25 21:15:57.0371 DFramework.Database.Query /* Time Taken: 5949*/ DECLARE @StatusId Int32 SET @StatusId = '1' DECLARE @AlertId Int32 SET @AlertId = '7571914' SELECT TOP 10000 Alert.AlertId, Alert.LocationId, Alert.RecordId, ISNULL(AlertDefinition.Name, Alert.AlertText) Name, Alert.AlertTypeId, Alert.AlertText, ISNULL(Location.Name, '') AS LocationName, AlertDefinition.ClientId, AlertRecipient.RoleId, CASE WHEN Alert.AlertTypeId IN (6,7) THEN CONVERT(VARCHAR(10), CAST(AlertAt AS DATE), 101) ELSE AlertAt END AS AlertAt, AlertType, Asset.SerialNumber, ISNULL(LocationAttribute.FirstRepId, 0) RepId, ClientUser.PrimaryPhone AS SalesRepPhone, ClientUser.PrimaryEmail AS SalesRepEmail, FirstName, LastName, PreferedNotificationTypeIds, AlertRecipientId, AlertRecipientAddress, AlertRecipientText, Alert.Tags, AlertRecipientTypeId, NotificationContactTypeId, TemplateId, AlertDefinition.AlertAgeThreshold, LastUpdatedOn, AlertRecipient.AlertAge, CASE WHEN Location.TimeZoneId IS NOT NULL AND Location.TimeZoneId > 0 THEN Location.TimeZoneId ELSE Client.TimeZoneId END AS TimeZoneId, AlertDefinition.IsSummarize, Alert.ClosedOn, AssetType.IsChestCooler, AlertDefinition.SnoozeForHours, Alert.SnoozeDateTime FROM Alert LEFT OUTER JOIN Asset ON Alert.AssetId = Asset.AssetId LEFT OUTER JOIN AlertType ON Alert.AlertTypeId = AlertType.AlertTypeId LEFT OUTER JOIN AlertDefinition ON Alert.AlertDefinitionId = AlertDefinition.AlertDefinitionId LEFT OUTER JOIN Location ON Location.LocationId = Alert.LocationId LEFT OUTER JOIN LocationAttribute ON LocationAttribute.LocationId = dbo.Location.LocationId LEFT OUTER JOIN ClientUser ON LocationAttribute.FirstRepId = ClientUser.ClientUserId AND ClientUser.IsDeleted = 0 LEFT OUTER JOIN AlertRecipient ON Alert.AlertDefinitionId = AlertRecipient.AlertDefinitionId AND AlertRecipient.IsDeleted= 0 LEFT OUTER JOIN Client ON Client.ClientId = Alert.ClientId LEFT OUTER JOIN AssetType ON dbo.Asset.AssetTypeId = dbo.AssetType.AssetTypeId WHERE (NOT EXISTS(SELECT 1 FROM dbo.EmailQueue INNER JOIN dbo.EmailRecipient ON EmailRecipient.EmailQueueId = EmailQueue.EmailQueueId WHERE AlertId = Alert.AlertId AND EmailRecipient.RecipientId = AlertRecipient.AlertRecipientId) OR (Alert.SnoozeDateTime IS NOT NULL AND Alert.SnoozeDateTime <= GETUTCDATE() AND AlertDefinition.SnoozeForHours > 0 AND Alert.StatusId = @StatusId)) AND Alert.AlertId > @AlertId AND Alert.AlertAt >= DATEADD(DAY, -120, GETDATE()) AND AlertRecipient.IsDeleted = 0 AND Alert.IsActive = 1 AND Alert.IsDeleted = 0 AND AlertRecipient.IsActive = 1 AND AlertRecipient.IsDeleted = 0 AND AlertRecipient.StartDate <= Alert.CreatedOn AND Alert.CreatedOn < DATEADD(hh, 23, AlertRecipient.EndDate) AND (Alert.LocationId != 0 OR NotificationWithoutLocation = 1) AND AlertType.IsSystemAlert = 0 AND Alert.EmailQueuedOn IS NULL AND AlertDefinition.IsActive = 1 2025-12-25 21:15:58.1308 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 21:20:44.1798 DFramework.Database.NullableDataReader Data reader open for 226 at System.Environment.GetStackTrace(Exception e, Boolean needFileInfo) at System.Environment.get_StackTrace() at DFramework.Database.NullableDataReader.Dispose(Boolean disposing) in D:\Spraxa\Framework\DFramework\Database\NullableDataReader.cs:line 33 at DFramework.Database.NullableDataReader.Dispose() in D:\Spraxa\Framework\DFramework\Database\NullableDataReader.cs:line 44 at CoolR.Tasks.ProcessOutletAlertData.GetAlertDefinitions() in D:\Spraxa\CoolR-Group\portal\CoolR.Tasks\OpportunityOutOfStockByOutlet.cs:line 490 at CoolR.Tasks.ProcessOutletAlertData.Execute() in D:\Spraxa\CoolR-Group\portal\CoolR.Tasks\OpportunityOutOfStockByOutlet.cs:line 72 at DFramework.Scheduler.TaskBase.Run() in D:\Spraxa\Framework\DFramework.Scheduler\TaskBase.cs:line 176 at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.ThreadHelper.ThreadStart() 2025-12-25 21:20:50.7424 AlertProcessor ProcessorAlertData: started 2025-12-25 21:20:50.9299 DFramework.Database.Query /* Time Taken: 6746*/ DECLARE @ClientId Int32 SET @ClientId = '213' DECLARE @MarketId Int32 SET @MarketId = '0' DECLARE @ClassificationId Int32 SET @ClassificationId = '0' DECLARE @LocationId Int32 SET @LocationId = '0' DECLARE @LocationTypeId Int32 SET @LocationTypeId = '0' DECLARE @StartDate DateTime2 SET @StartDate = '8/28/2025 12:00:00 AM' dbo.GetOpportunityOutOfStockDataByOutlet 2025-12-25 21:20:51.2893 DFramework.Database.Query /* Time Taken: 537*/ DECLARE @TableName AnsiString(8000) SET @TableName = 'TagAlert' DECLARE @CurrentRecordId Int32 SET @CurrentRecordId = '0' dbo.GetValidDeviceForAlertProcessData 2025-12-25 21:20:51.7268 DFramework.Database.Query /* Time Taken: 635*/ DECLARE @CreatedOn DateTime2 SET @CreatedOn = '12/26/2025 12:00:00 AM' DECLARE @EventId Int32 SET @EventId = '-12' SELECT COUNT(1) FROM EmailQueue WHERE [CreatedOn] >= @CreatedOn AND [EventId] = @EventId 2025-12-25 21:20:51.9924 DFramework.Database.Query /* Time Taken: 645*/ DECLARE @TableName AnsiString(8000) SET @TableName = 'VoidAlert' DECLARE @CurrentRecordId Int32 SET @CurrentRecordId = '3675104' dbo.GetValidDeviceForAlertProcessData 2025-12-25 21:20:52.6018 DFramework.Database.Query /* Time Taken: 560*/ DECLARE @TableName AnsiString(8000) SET @TableName = 'MissingShelf' DECLARE @CurrentRecordId Int32 SET @CurrentRecordId = '3675104' dbo.GetValidDeviceForAlertProcessData 2025-12-25 21:20:53.4455 DFramework.Database.Query /* Time Taken: 778*/ DECLARE @TableName AnsiString(8000) SET @TableName = 'AdditionalShelf' DECLARE @CurrentRecordId Int32 SET @CurrentRecordId = '3675104' dbo.GetValidDeviceForAlertProcessData 2025-12-25 21:20:55.1174 DFramework.Database.Query /* Time Taken: 4020*/ DECLARE @StatusId Int32 SET @StatusId = '1' DECLARE @AlertId Int32 SET @AlertId = '7571914' SELECT TOP 10000 Alert.AlertId, Alert.LocationId, Alert.RecordId, ISNULL(AlertDefinition.Name, Alert.AlertText) Name, Alert.AlertTypeId, Alert.AlertText, ISNULL(Location.Name, '') AS LocationName, AlertDefinition.ClientId, AlertRecipient.RoleId, CASE WHEN Alert.AlertTypeId IN (6,7) THEN CONVERT(VARCHAR(10), CAST(AlertAt AS DATE), 101) ELSE AlertAt END AS AlertAt, AlertType, Asset.SerialNumber, ISNULL(LocationAttribute.FirstRepId, 0) RepId, ClientUser.PrimaryPhone AS SalesRepPhone, ClientUser.PrimaryEmail AS SalesRepEmail, FirstName, LastName, PreferedNotificationTypeIds, AlertRecipientId, AlertRecipientAddress, AlertRecipientText, Alert.Tags, AlertRecipientTypeId, NotificationContactTypeId, TemplateId, AlertDefinition.AlertAgeThreshold, LastUpdatedOn, AlertRecipient.AlertAge, CASE WHEN Location.TimeZoneId IS NOT NULL AND Location.TimeZoneId > 0 THEN Location.TimeZoneId ELSE Client.TimeZoneId END AS TimeZoneId, AlertDefinition.IsSummarize, Alert.ClosedOn, AssetType.IsChestCooler, AlertDefinition.SnoozeForHours, Alert.SnoozeDateTime FROM Alert LEFT OUTER JOIN Asset ON Alert.AssetId = Asset.AssetId LEFT OUTER JOIN AlertType ON Alert.AlertTypeId = AlertType.AlertTypeId LEFT OUTER JOIN AlertDefinition ON Alert.AlertDefinitionId = AlertDefinition.AlertDefinitionId LEFT OUTER JOIN Location ON Location.LocationId = Alert.LocationId LEFT OUTER JOIN LocationAttribute ON LocationAttribute.LocationId = dbo.Location.LocationId LEFT OUTER JOIN ClientUser ON LocationAttribute.FirstRepId = ClientUser.ClientUserId AND ClientUser.IsDeleted = 0 LEFT OUTER JOIN AlertRecipient ON Alert.AlertDefinitionId = AlertRecipient.AlertDefinitionId AND AlertRecipient.IsDeleted= 0 LEFT OUTER JOIN Client ON Client.ClientId = Alert.ClientId LEFT OUTER JOIN AssetType ON dbo.Asset.AssetTypeId = dbo.AssetType.AssetTypeId WHERE (NOT EXISTS(SELECT 1 FROM dbo.EmailQueue INNER JOIN dbo.EmailRecipient ON EmailRecipient.EmailQueueId = EmailQueue.EmailQueueId WHERE AlertId = Alert.AlertId AND EmailRecipient.RecipientId = AlertRecipient.AlertRecipientId) OR (Alert.SnoozeDateTime IS NOT NULL AND Alert.SnoozeDateTime <= GETUTCDATE() AND AlertDefinition.SnoozeForHours > 0 AND Alert.StatusId = @StatusId)) AND Alert.AlertId > @AlertId AND Alert.AlertAt >= DATEADD(DAY, -120, GETDATE()) AND AlertRecipient.IsDeleted = 0 AND Alert.IsActive = 1 AND Alert.IsDeleted = 0 AND AlertRecipient.IsActive = 1 AND AlertRecipient.IsDeleted = 0 AND AlertRecipient.StartDate <= Alert.CreatedOn AND Alert.CreatedOn < DATEADD(hh, 23, AlertRecipient.EndDate) AND (Alert.LocationId != 0 OR NotificationWithoutLocation = 1) AND AlertType.IsSystemAlert = 0 AND Alert.EmailQueuedOn IS NULL AND AlertDefinition.IsActive = 1 2025-12-25 21:20:57.0237 DFramework.Database.Query /* Time Taken: 984*/ DECLARE @TableName AnsiString(8000) SET @TableName = 'OpportunityLowStock' DECLARE @CurrentRecordId Int32 SET @CurrentRecordId = '3675104' dbo.GetValidDeviceForAlertProcessData 2025-12-25 21:20:58.6331 DFramework.Database.Query /* Time Taken: 618*/ DECLARE @TableName AnsiString(8000) SET @TableName = 'ProductStockLevel' DECLARE @CurrentRecordId Int32 SET @CurrentRecordId = '3675104' dbo.GetValidDeviceForAlertProcessData 2025-12-25 21:20:58.6800 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 21:20:58.7112 DFramework.Database.Query /* Time Taken: 2780*/ DECLARE @ClientId Int32 SET @ClientId = '286' DECLARE @MarketId Int32 SET @MarketId = '0' DECLARE @ClassificationId Int32 SET @ClassificationId = '0' DECLARE @LocationId Int32 SET @LocationId = '0' DECLARE @LocationTypeId Int32 SET @LocationTypeId = '0' DECLARE @StartDate DateTime2 SET @StartDate = '11/1/2025 12:00:00 AM' dbo.GetOpportunityOutOfStockDataByOutlet 2025-12-25 21:20:58.7893 DFramework.Scheduler.TaskBase /* Time Taken: 14859.4787*/ Opportunity Out Of Stock By Outlet 2025-12-25 21:21:03.4925 DFramework.Database.Query /* Time Taken: 19250*/ [dbo].GenerateSystemAlerts 2025-12-25 21:21:03.4925 DFramework.Scheduler.TaskBase /* Time Taken: 19250.1335*/ Execute Recurring SP Task 2025-12-25 21:25:46.8850 DFramework.Database.Query /* Time Taken: 503*/ DECLARE @AlertDefinition_IsActive Int32 SET @AlertDefinition_IsActive = '1' DECLARE @AlertDefinition_ClientId Int32 SET @AlertDefinition_ClientId = '213' DECLARE @AlertDefinition_AlertTypeId Int32 SET @AlertDefinition_AlertTypeId = '67' DECLARE @AlertDefinition_IsDeleted Int32 SET @AlertDefinition_IsDeleted = '0' DECLARE @AlertDefinition_StartDate DateTime2 SET @AlertDefinition_StartDate = '12/26/2025 5:25:46 AM' SELECT TOP 1 AlertDefinitionId, PriorityId FROM AlertDefinition WHERE AlertDefinition.IsActive = @AlertDefinition_IsActive AND AlertDefinition.ClientId = @AlertDefinition_ClientId AND AlertDefinition.AlertTypeId = @AlertDefinition_AlertTypeId AND AlertDefinition.IsDeleted = @AlertDefinition_IsDeleted AND AlertDefinition.StartDate <= @AlertDefinition_StartDate 2025-12-25 21:25:47.1037 DFramework.Database.Query /* Time Taken: 1122*/ DECLARE @OrderStatusId Int32 SET @OrderStatusId = '5486' UPDATE Location SET ScheduledOrderId = 0, OrderStatusId = 0 from ScheduledOrder INNER JOIN Location ON Location.ScheduledOrderId = ScheduledOrder.ScheduledOrderId AND Location.OrderStatusId = @OrderStatusId INNER JOIN CLient On Client.ClientId = Location.ClientId AND Client.HoursToMoveIgnored > 0 WHERE DATEADD(HOUR, Client.HoursToMoveIgnored, ScheduledOrder.ModifiedOn) < GETUTCDATE() AND ScheduledOrder.StatusId = @OrderStatusId ANd Location.IsDeleted = 0 AND ScheduledOrder.IsDeleted = 0 2025-12-25 21:25:48.4163 DFramework.Database.Query /* Time Taken: 1268*/ DECLARE @OrderStatusId Int32 SET @OrderStatusId = '5485' Select * from vwScheduledOrderItemList where ScheduledOrderId IN (SELECT ScheduledOrder.ScheduledOrderId FROM ScheduledOrder INNER JOIN Location ON Location.ScheduledOrderId = ScheduledOrder.ScheduledOrderId AND Location.OrderStatusId = @OrderStatusId AND Location.IsDeleted = 0 INNER JOIN CLient On Client.ClientId = Location.ClientId AND Client.HoursToMoveIgnored > 0 WHERE DATEADD(HOUR, Client.HoursToMoveScheduled, ScheduledOrder.ModifiedOn) < GETUTCDATE() AND ScheduledOrder.StatusId = @OrderStatusId AND ScheduledOrder.IsDeleted = 0) 2025-12-25 21:25:48.4944 DFramework.Database.Query /* Time Taken: 547*/ DECLARE @IsFileProcessed Int32 SET @IsFileProcessed = '0' DECLARE @IsDeleted Boolean SET @IsDeleted = 'False' SELECT TOP 500 CSVDataId, TDLinx, BeforeAfterImage, ImageUrl, FileName FROM CSVData WHERE [IsFileProcessed] = @IsFileProcessed AND IsDeleted = @IsDeleted ORDER BY [CSVDataId] 2025-12-25 21:25:50.7600 AlertProcessor ProcessorAlertData: started 2025-12-25 21:25:52.7913 DFramework.Database.Query /* Time Taken: 2031*/ DECLARE @TableName AnsiString(8000) SET @TableName = 'TagAlert' DECLARE @CurrentRecordId Int32 SET @CurrentRecordId = '0' dbo.GetValidDeviceForAlertProcessData 2025-12-25 21:25:53.3382 DFramework.Database.Query /* Time Taken: 2224*/ DECLARE @StatusId Int32 SET @StatusId = '1' DECLARE @AlertId Int32 SET @AlertId = '7571914' SELECT TOP 10000 Alert.AlertId, Alert.LocationId, Alert.RecordId, ISNULL(AlertDefinition.Name, Alert.AlertText) Name, Alert.AlertTypeId, Alert.AlertText, ISNULL(Location.Name, '') AS LocationName, AlertDefinition.ClientId, AlertRecipient.RoleId, CASE WHEN Alert.AlertTypeId IN (6,7) THEN CONVERT(VARCHAR(10), CAST(AlertAt AS DATE), 101) ELSE AlertAt END AS AlertAt, AlertType, Asset.SerialNumber, ISNULL(LocationAttribute.FirstRepId, 0) RepId, ClientUser.PrimaryPhone AS SalesRepPhone, ClientUser.PrimaryEmail AS SalesRepEmail, FirstName, LastName, PreferedNotificationTypeIds, AlertRecipientId, AlertRecipientAddress, AlertRecipientText, Alert.Tags, AlertRecipientTypeId, NotificationContactTypeId, TemplateId, AlertDefinition.AlertAgeThreshold, LastUpdatedOn, AlertRecipient.AlertAge, CASE WHEN Location.TimeZoneId IS NOT NULL AND Location.TimeZoneId > 0 THEN Location.TimeZoneId ELSE Client.TimeZoneId END AS TimeZoneId, AlertDefinition.IsSummarize, Alert.ClosedOn, AssetType.IsChestCooler, AlertDefinition.SnoozeForHours, Alert.SnoozeDateTime FROM Alert LEFT OUTER JOIN Asset ON Alert.AssetId = Asset.AssetId LEFT OUTER JOIN AlertType ON Alert.AlertTypeId = AlertType.AlertTypeId LEFT OUTER JOIN AlertDefinition ON Alert.AlertDefinitionId = AlertDefinition.AlertDefinitionId LEFT OUTER JOIN Location ON Location.LocationId = Alert.LocationId LEFT OUTER JOIN LocationAttribute ON LocationAttribute.LocationId = dbo.Location.LocationId LEFT OUTER JOIN ClientUser ON LocationAttribute.FirstRepId = ClientUser.ClientUserId AND ClientUser.IsDeleted = 0 LEFT OUTER JOIN AlertRecipient ON Alert.AlertDefinitionId = AlertRecipient.AlertDefinitionId AND AlertRecipient.IsDeleted= 0 LEFT OUTER JOIN Client ON Client.ClientId = Alert.ClientId LEFT OUTER JOIN AssetType ON dbo.Asset.AssetTypeId = dbo.AssetType.AssetTypeId WHERE (NOT EXISTS(SELECT 1 FROM dbo.EmailQueue INNER JOIN dbo.EmailRecipient ON EmailRecipient.EmailQueueId = EmailQueue.EmailQueueId WHERE AlertId = Alert.AlertId AND EmailRecipient.RecipientId = AlertRecipient.AlertRecipientId) OR (Alert.SnoozeDateTime IS NOT NULL AND Alert.SnoozeDateTime <= GETUTCDATE() AND AlertDefinition.SnoozeForHours > 0 AND Alert.StatusId = @StatusId)) AND Alert.AlertId > @AlertId AND Alert.AlertAt >= DATEADD(DAY, -120, GETDATE()) AND AlertRecipient.IsDeleted = 0 AND Alert.IsActive = 1 AND Alert.IsDeleted = 0 AND AlertRecipient.IsActive = 1 AND AlertRecipient.IsDeleted = 0 AND AlertRecipient.StartDate <= Alert.CreatedOn AND Alert.CreatedOn < DATEADD(hh, 23, AlertRecipient.EndDate) AND (Alert.LocationId != 0 OR NotificationWithoutLocation = 1) AND AlertType.IsSystemAlert = 0 AND Alert.EmailQueuedOn IS NULL AND AlertDefinition.IsActive = 1 2025-12-25 21:25:53.4788 DFramework.Database.Query /* Time Taken: 550*/ DECLARE @TableName AnsiString(8000) SET @TableName = 'VoidAlert' DECLARE @CurrentRecordId Int32 SET @CurrentRecordId = '3675104' dbo.GetValidDeviceForAlertProcessData 2025-12-25 21:25:54.0413 DFramework.Database.Query /* Time Taken: 518*/ DECLARE @TableName AnsiString(8000) SET @TableName = 'MissingShelf' DECLARE @CurrentRecordId Int32 SET @CurrentRecordId = '3675104' dbo.GetValidDeviceForAlertProcessData 2025-12-25 21:25:56.1663 DFramework.Database.Query /* Time Taken: 503*/ DECLARE @TableName AnsiString(8000) SET @TableName = 'AssetStockProductWiseConsolidate' DECLARE @CurrentRecordId Int32 SET @CurrentRecordId = '3675104' dbo.GetValidDeviceForAlertProcessData 2025-12-25 21:25:59.1507 DFramework.Database.Query /* Time Taken: 721*/ DECLARE @TableName AnsiString(8000) SET @TableName = 'ProductStockLevel' DECLARE @CurrentRecordId Int32 SET @CurrentRecordId = '3675104' dbo.GetValidDeviceForAlertProcessData 2025-12-25 21:25:59.2132 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 21:30:50.7778 AlertProcessor ProcessorAlertData: started 2025-12-25 21:30:51.7935 DFramework.Database.Query /* Time Taken: 666*/ DECLARE @CreatedOn DateTime2 SET @CreatedOn = '12/26/2025 12:00:00 AM' DECLARE @EventId Int32 SET @EventId = '-12' SELECT COUNT(1) FROM EmailQueue WHERE [CreatedOn] >= @CreatedOn AND [EventId] = @EventId 2025-12-25 21:30:52.7622 DFramework.Database.Query /* Time Taken: 1973*/ DECLARE @TableName AnsiString(8000) SET @TableName = 'TagAlert' DECLARE @CurrentRecordId Int32 SET @CurrentRecordId = '0' dbo.GetValidDeviceForAlertProcessData 2025-12-25 21:30:53.1216 DFramework.Database.Query /* Time Taken: 1993*/ DECLARE @StatusId Int32 SET @StatusId = '1' DECLARE @AlertId Int32 SET @AlertId = '7571914' SELECT TOP 10000 Alert.AlertId, Alert.LocationId, Alert.RecordId, ISNULL(AlertDefinition.Name, Alert.AlertText) Name, Alert.AlertTypeId, Alert.AlertText, ISNULL(Location.Name, '') AS LocationName, AlertDefinition.ClientId, AlertRecipient.RoleId, CASE WHEN Alert.AlertTypeId IN (6,7) THEN CONVERT(VARCHAR(10), CAST(AlertAt AS DATE), 101) ELSE AlertAt END AS AlertAt, AlertType, Asset.SerialNumber, ISNULL(LocationAttribute.FirstRepId, 0) RepId, ClientUser.PrimaryPhone AS SalesRepPhone, ClientUser.PrimaryEmail AS SalesRepEmail, FirstName, LastName, PreferedNotificationTypeIds, AlertRecipientId, AlertRecipientAddress, AlertRecipientText, Alert.Tags, AlertRecipientTypeId, NotificationContactTypeId, TemplateId, AlertDefinition.AlertAgeThreshold, LastUpdatedOn, AlertRecipient.AlertAge, CASE WHEN Location.TimeZoneId IS NOT NULL AND Location.TimeZoneId > 0 THEN Location.TimeZoneId ELSE Client.TimeZoneId END AS TimeZoneId, AlertDefinition.IsSummarize, Alert.ClosedOn, AssetType.IsChestCooler, AlertDefinition.SnoozeForHours, Alert.SnoozeDateTime FROM Alert LEFT OUTER JOIN Asset ON Alert.AssetId = Asset.AssetId LEFT OUTER JOIN AlertType ON Alert.AlertTypeId = AlertType.AlertTypeId LEFT OUTER JOIN AlertDefinition ON Alert.AlertDefinitionId = AlertDefinition.AlertDefinitionId LEFT OUTER JOIN Location ON Location.LocationId = Alert.LocationId LEFT OUTER JOIN LocationAttribute ON LocationAttribute.LocationId = dbo.Location.LocationId LEFT OUTER JOIN ClientUser ON LocationAttribute.FirstRepId = ClientUser.ClientUserId AND ClientUser.IsDeleted = 0 LEFT OUTER JOIN AlertRecipient ON Alert.AlertDefinitionId = AlertRecipient.AlertDefinitionId AND AlertRecipient.IsDeleted= 0 LEFT OUTER JOIN Client ON Client.ClientId = Alert.ClientId LEFT OUTER JOIN AssetType ON dbo.Asset.AssetTypeId = dbo.AssetType.AssetTypeId WHERE (NOT EXISTS(SELECT 1 FROM dbo.EmailQueue INNER JOIN dbo.EmailRecipient ON EmailRecipient.EmailQueueId = EmailQueue.EmailQueueId WHERE AlertId = Alert.AlertId AND EmailRecipient.RecipientId = AlertRecipient.AlertRecipientId) OR (Alert.SnoozeDateTime IS NOT NULL AND Alert.SnoozeDateTime <= GETUTCDATE() AND AlertDefinition.SnoozeForHours > 0 AND Alert.StatusId = @StatusId)) AND Alert.AlertId > @AlertId AND Alert.AlertAt >= DATEADD(DAY, -120, GETDATE()) AND AlertRecipient.IsDeleted = 0 AND Alert.IsActive = 1 AND Alert.IsDeleted = 0 AND AlertRecipient.IsActive = 1 AND AlertRecipient.IsDeleted = 0 AND AlertRecipient.StartDate <= Alert.CreatedOn AND Alert.CreatedOn < DATEADD(hh, 23, AlertRecipient.EndDate) AND (Alert.LocationId != 0 OR NotificationWithoutLocation = 1) AND AlertType.IsSystemAlert = 0 AND Alert.EmailQueuedOn IS NULL AND AlertDefinition.IsActive = 1 2025-12-25 21:30:58.3092 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 21:35:46.4054 MoveToReorder Running task for ClientId : 286 and ClientName = India Office QA and Slot: 12/26/2025 11:00:00 AM And LastExecutedOn: 12/26/2025 10:05:46 AM 2025-12-25 21:35:47.2961 DFramework.Database.Query /* Time Taken: 830*/ DECLARE @OrderStatusId Int32 SET @OrderStatusId = '0' DECLARE @ClientId Int32 SET @ClientId = '286' dbo.GetOrderDetailsByClientId 2025-12-25 21:35:49.1242 DFramework.Database.Query /* Time Taken: 4870*/ [dbo].GenerateSystemAlerts 2025-12-25 21:35:50.7961 AlertProcessor ProcessorAlertData: started 2025-12-25 21:35:52.7492 DFramework.Database.Query /* Time Taken: 597*/ DECLARE @ScheduledOrderId Int32 SET @ScheduledOrderId = '322050' DECLARE @ProductId Int32 SET @ProductId = '24533' DECLARE @UnitsNeeded Decimal(3,2) SET @UnitsNeeded = '1.00' DECLARE @UnitPrice Decimal(5,2) SET @UnitPrice = '100.00' DECLARE @CaseSize Int32 SET @CaseSize = '15' DECLARE @StockLevel Decimal(2,2) SET @StockLevel = '0.00' DECLARE @AssetId Int32 SET @AssetId = '21831' DECLARE @AssetPurityId Decimal(7,0) SET @AssetPurityId = '3399342' DECLARE @UnitLabelId Int32 SET @UnitLabelId = '5469' INSERT INTO dbo.ScheduledOrderItem (ScheduledOrderId, ProductId, UnitsNeeded, UnitPrice, CaseSize, StockLevel, AssetId,AssetPurityId, UnitLabelId) VALUES (@ScheduledOrderId, @ProductId, @UnitsNeeded, @UnitPrice, @CaseSize, @StockLevel, @AssetId, @AssetPurityId, @UnitLabelId) 2025-12-25 21:35:55.4836 DFramework.Database.Query /* Time Taken: 3743*/ DECLARE @TableName AnsiString(8000) SET @TableName = 'MissingShelf' DECLARE @CurrentRecordId Int32 SET @CurrentRecordId = '3675104' dbo.GetValidDeviceForAlertProcessData 2025-12-25 21:35:55.8117 DFramework.Database.Query /* Time Taken: 4672*/ DECLARE @StatusId Int32 SET @StatusId = '1' DECLARE @AlertId Int32 SET @AlertId = '7571914' SELECT TOP 10000 Alert.AlertId, Alert.LocationId, Alert.RecordId, ISNULL(AlertDefinition.Name, Alert.AlertText) Name, Alert.AlertTypeId, Alert.AlertText, ISNULL(Location.Name, '') AS LocationName, AlertDefinition.ClientId, AlertRecipient.RoleId, CASE WHEN Alert.AlertTypeId IN (6,7) THEN CONVERT(VARCHAR(10), CAST(AlertAt AS DATE), 101) ELSE AlertAt END AS AlertAt, AlertType, Asset.SerialNumber, ISNULL(LocationAttribute.FirstRepId, 0) RepId, ClientUser.PrimaryPhone AS SalesRepPhone, ClientUser.PrimaryEmail AS SalesRepEmail, FirstName, LastName, PreferedNotificationTypeIds, AlertRecipientId, AlertRecipientAddress, AlertRecipientText, Alert.Tags, AlertRecipientTypeId, NotificationContactTypeId, TemplateId, AlertDefinition.AlertAgeThreshold, LastUpdatedOn, AlertRecipient.AlertAge, CASE WHEN Location.TimeZoneId IS NOT NULL AND Location.TimeZoneId > 0 THEN Location.TimeZoneId ELSE Client.TimeZoneId END AS TimeZoneId, AlertDefinition.IsSummarize, Alert.ClosedOn, AssetType.IsChestCooler, AlertDefinition.SnoozeForHours, Alert.SnoozeDateTime FROM Alert LEFT OUTER JOIN Asset ON Alert.AssetId = Asset.AssetId LEFT OUTER JOIN AlertType ON Alert.AlertTypeId = AlertType.AlertTypeId LEFT OUTER JOIN AlertDefinition ON Alert.AlertDefinitionId = AlertDefinition.AlertDefinitionId LEFT OUTER JOIN Location ON Location.LocationId = Alert.LocationId LEFT OUTER JOIN LocationAttribute ON LocationAttribute.LocationId = dbo.Location.LocationId LEFT OUTER JOIN ClientUser ON LocationAttribute.FirstRepId = ClientUser.ClientUserId AND ClientUser.IsDeleted = 0 LEFT OUTER JOIN AlertRecipient ON Alert.AlertDefinitionId = AlertRecipient.AlertDefinitionId AND AlertRecipient.IsDeleted= 0 LEFT OUTER JOIN Client ON Client.ClientId = Alert.ClientId LEFT OUTER JOIN AssetType ON dbo.Asset.AssetTypeId = dbo.AssetType.AssetTypeId WHERE (NOT EXISTS(SELECT 1 FROM dbo.EmailQueue INNER JOIN dbo.EmailRecipient ON EmailRecipient.EmailQueueId = EmailQueue.EmailQueueId WHERE AlertId = Alert.AlertId AND EmailRecipient.RecipientId = AlertRecipient.AlertRecipientId) OR (Alert.SnoozeDateTime IS NOT NULL AND Alert.SnoozeDateTime <= GETUTCDATE() AND AlertDefinition.SnoozeForHours > 0 AND Alert.StatusId = @StatusId)) AND Alert.AlertId > @AlertId AND Alert.AlertAt >= DATEADD(DAY, -120, GETDATE()) AND AlertRecipient.IsDeleted = 0 AND Alert.IsActive = 1 AND Alert.IsDeleted = 0 AND AlertRecipient.IsActive = 1 AND AlertRecipient.IsDeleted = 0 AND AlertRecipient.StartDate <= Alert.CreatedOn AND Alert.CreatedOn < DATEADD(hh, 23, AlertRecipient.EndDate) AND (Alert.LocationId != 0 OR NotificationWithoutLocation = 1) AND AlertType.IsSystemAlert = 0 AND Alert.EmailQueuedOn IS NULL AND AlertDefinition.IsActive = 1 2025-12-25 21:35:56.1243 DFramework.Database.Query /* Time Taken: 573*/ DECLARE @TableName AnsiString(8000) SET @TableName = 'AdditionalShelf' DECLARE @CurrentRecordId Int32 SET @CurrentRecordId = '3675104' dbo.GetValidDeviceForAlertProcessData 2025-12-25 21:35:56.7493 DFramework.Database.Query /* Time Taken: 572*/ DECLARE @TableName AnsiString(8000) SET @TableName = 'OpportunityOutOfStock' DECLARE @CurrentRecordId Int32 SET @CurrentRecordId = '3675104' dbo.GetValidDeviceForAlertProcessData 2025-12-25 21:35:57.0618 DFramework.Database.Query /* Time Taken: 928*/ DECLARE @LocationId Int32 SET @LocationId = '313940' DECLARE @ReorderDate DateTime2 SET @ReorderDate = '12/26/2025 5:35:56 AM' DECLARE @StatusId Int32 SET @StatusId = '5486' DECLARE @OutOfStock Decimal(1,0) SET @OutOfStock = '0' DECLARE @TotalAssetCount Int32 SET @TotalAssetCount = '1' DECLARE @AssetCountWithOldImage Int32 SET @AssetCountWithOldImage = '1' DECLARE @OrderMovementTypeId Int32 SET @OrderMovementTypeId = '5538' DECLARE @TotalCaseSize Decimal(2,2) SET @TotalCaseSize = '0.00' DECLARE @OrderSize Decimal(1,0) SET @OrderSize = '0' DECLARE @RestockIn Int32 SET @RestockIn = '0' DECLARE @IgnoredReason AnsiString(8000) SET @IgnoredReason = 'No latest image available Or temperature is Out of threshold :-999.00, Or Ignore Based On lastOrderDate :False ' DECLARE @PurityDateTime DateTime2 SET @PurityDateTime = '10/16/2024 12:00:00 AM' DECLARE @AssetPurityIds AnsiString(8000) SET @AssetPurityIds = '3446244' DECLARE @UniqueGuid AnsiString(8000) SET @UniqueGuid = 'F33CAF1F-6AEA-4BEB-A965-885C6F1076FD' DECLARE @FinalMoQ Int32 SET @FinalMoQ = '5' DECLARE @FinalMoV Int32 SET @FinalMoV = '100' DECLARE @SuggestedOrderSize Decimal(1,0) SET @SuggestedOrderSize = '0' DECLARE @SuggestedTotalCaseSize Decimal(2,2) SET @SuggestedTotalCaseSize = '0.00' DECLARE @OutletOccupancy Decimal(1,0) SET @OutletOccupancy = '0' DECLARE @LastMOVAndMOQDateTime DateTime2 SET @LastMOVAndMOQDateTime = '' INSERT INTO dbo.ScheduledOrder (LocationId, ReorderDate, OutOfStock, StatusId, TotalAssetCount, AssetCountWithOldImage, OrderMovementTypeId, TotalCaseSize, OrderSize, RestockIn, IgnoredReason, PurityDateTime, AssetPurityIds, UniqueGuid, FinalMoQ, FinalMoV, LastMOVAndMOQDateTime, SuggestedOrderSize, SuggestedTotalCaseSize, OutletOccupancy) VALUES (@LocationId, @ReorderDate, @OutOfStock, @StatusId, @TotalAssetCount, @AssetCountWithOldImage, @OrderMovementTypeId, @TotalCaseSize, @OrderSize, @RestockIn, @IgnoredReason, @PurityDateTime, @AssetPurityIds, @UniqueGuid, @FinalMoQ, @FinalMoV, @LastMOVAndMOQDateTime, @SuggestedOrderSize, @SuggestedTotalCaseSize, @OutletOccupancy);SELECT SCOPE_IDENTITY() 2025-12-25 21:35:58.3899 DFramework.Database.Query /* Time Taken: 932*/ DECLARE @LocationId Int32 SET @LocationId = '314421' DECLARE @ReorderDate DateTime2 SET @ReorderDate = '12/26/2025 5:35:57 AM' DECLARE @StatusId Int32 SET @StatusId = '5486' DECLARE @OutOfStock Decimal(2,0) SET @OutOfStock = '71' DECLARE @TotalAssetCount Int32 SET @TotalAssetCount = '1' DECLARE @AssetCountWithOldImage Int32 SET @AssetCountWithOldImage = '1' DECLARE @OrderMovementTypeId Int32 SET @OrderMovementTypeId = '5538' DECLARE @TotalCaseSize Decimal(4,2) SET @TotalCaseSize = '20.00' DECLARE @OrderSize Decimal(4,0) SET @OrderSize = '5220' DECLARE @RestockIn Int32 SET @RestockIn = '0' DECLARE @IgnoredReason AnsiString(8000) SET @IgnoredReason = 'No latest image available Or temperature is Out of threshold :-999.00, Or Ignore Based On lastOrderDate :False ' DECLARE @PurityDateTime DateTime2 SET @PurityDateTime = '6/27/2025 12:00:00 AM' DECLARE @AssetPurityIds AnsiString(8000) SET @AssetPurityIds = '3605535' DECLARE @UniqueGuid AnsiString(8000) SET @UniqueGuid = 'FDD26036-3BD8-4E9E-BF82-2DD5789DFEB9' DECLARE @FinalMoQ Int32 SET @FinalMoQ = '5' DECLARE @FinalMoV Int32 SET @FinalMoV = '100' DECLARE @SuggestedOrderSize Decimal(4,0) SET @SuggestedOrderSize = '5220' DECLARE @SuggestedTotalCaseSize Decimal(4,2) SET @SuggestedTotalCaseSize = '20.00' DECLARE @OutletOccupancy Decimal(1,0) SET @OutletOccupancy = '0' DECLARE @LastMOVAndMOQDateTime DateTime2 SET @LastMOVAndMOQDateTime = '6/27/2025 1:54:02 PM' INSERT INTO dbo.ScheduledOrder (LocationId, ReorderDate, OutOfStock, StatusId, TotalAssetCount, AssetCountWithOldImage, OrderMovementTypeId, TotalCaseSize, OrderSize, RestockIn, IgnoredReason, PurityDateTime, AssetPurityIds, UniqueGuid, FinalMoQ, FinalMoV, LastMOVAndMOQDateTime, SuggestedOrderSize, SuggestedTotalCaseSize, OutletOccupancy) VALUES (@LocationId, @ReorderDate, @OutOfStock, @StatusId, @TotalAssetCount, @AssetCountWithOldImage, @OrderMovementTypeId, @TotalCaseSize, @OrderSize, @RestockIn, @IgnoredReason, @PurityDateTime, @AssetPurityIds, @UniqueGuid, @FinalMoQ, @FinalMoV, @LastMOVAndMOQDateTime, @SuggestedOrderSize, @SuggestedTotalCaseSize, @OutletOccupancy);SELECT SCOPE_IDENTITY() 2025-12-25 21:36:01.6087 DFramework.Database.Query /* Time Taken: 884*/ DECLARE @LocationId Int32 SET @LocationId = '314891' DECLARE @ReorderDate DateTime2 SET @ReorderDate = '12/26/2025 5:36:00 AM' DECLARE @StatusId Int32 SET @StatusId = '5486' DECLARE @OutOfStock Decimal(2,0) SET @OutOfStock = '60' DECLARE @TotalAssetCount Int32 SET @TotalAssetCount = '2' DECLARE @AssetCountWithOldImage Int32 SET @AssetCountWithOldImage = '2' DECLARE @OrderMovementTypeId Int32 SET @OrderMovementTypeId = '5538' DECLARE @TotalCaseSize Decimal(3,2) SET @TotalCaseSize = '2.00' DECLARE @OrderSize Decimal(3,0) SET @OrderSize = '500' DECLARE @RestockIn Int32 SET @RestockIn = '0' DECLARE @IgnoredReason AnsiString(8000) SET @IgnoredReason = 'No latest image available Or temperature is Out of threshold :-999.00, Or Ignore Based On lastOrderDate :False ' DECLARE @PurityDateTime DateTime2 SET @PurityDateTime = '12/23/2025 12:00:00 AM' DECLARE @AssetPurityIds AnsiString(8000) SET @AssetPurityIds = '3674972,3674986' DECLARE @UniqueGuid AnsiString(8000) SET @UniqueGuid = '47DE9845-64BF-4D38-99CB-2B67BCF73579,25949D07-B17C-4627-8A72-FE51042922EF' DECLARE @FinalMoQ Int32 SET @FinalMoQ = '5' DECLARE @FinalMoV Int32 SET @FinalMoV = '100' DECLARE @SuggestedOrderSize Decimal(3,0) SET @SuggestedOrderSize = '500' DECLARE @SuggestedTotalCaseSize Decimal(3,2) SET @SuggestedTotalCaseSize = '2.00' DECLARE @OutletOccupancy Decimal(1,0) SET @OutletOccupancy = '0' DECLARE @LastMOVAndMOQDateTime DateTime2 SET @LastMOVAndMOQDateTime = '12/23/2025 3:08:44 PM' INSERT INTO dbo.ScheduledOrder (LocationId, ReorderDate, OutOfStock, StatusId, TotalAssetCount, AssetCountWithOldImage, OrderMovementTypeId, TotalCaseSize, OrderSize, RestockIn, IgnoredReason, PurityDateTime, AssetPurityIds, UniqueGuid, FinalMoQ, FinalMoV, LastMOVAndMOQDateTime, SuggestedOrderSize, SuggestedTotalCaseSize, OutletOccupancy) VALUES (@LocationId, @ReorderDate, @OutOfStock, @StatusId, @TotalAssetCount, @AssetCountWithOldImage, @OrderMovementTypeId, @TotalCaseSize, @OrderSize, @RestockIn, @IgnoredReason, @PurityDateTime, @AssetPurityIds, @UniqueGuid, @FinalMoQ, @FinalMoV, @LastMOVAndMOQDateTime, @SuggestedOrderSize, @SuggestedTotalCaseSize, @OutletOccupancy);SELECT SCOPE_IDENTITY() 2025-12-25 21:36:03.0618 DFramework.Database.Query /* Time Taken: 5385*/ DECLARE @TableName AnsiString(8000) SET @TableName = 'AssetStockProductWiseConsolidate' DECLARE @CurrentRecordId Int32 SET @CurrentRecordId = '3675104' dbo.GetValidDeviceForAlertProcessData 2025-12-25 21:36:03.6712 DFramework.Database.Query /* Time Taken: 1114*/ DECLARE @LocationId Int32 SET @LocationId = '314907' DECLARE @ReorderDate DateTime2 SET @ReorderDate = '12/26/2025 5:36:02 AM' DECLARE @StatusId Int32 SET @StatusId = '5486' DECLARE @OutOfStock Decimal(1,0) SET @OutOfStock = '0' DECLARE @TotalAssetCount Int32 SET @TotalAssetCount = '1' DECLARE @AssetCountWithOldImage Int32 SET @AssetCountWithOldImage = '1' DECLARE @OrderMovementTypeId Int32 SET @OrderMovementTypeId = '5538' DECLARE @TotalCaseSize Decimal(2,2) SET @TotalCaseSize = '0.00' DECLARE @OrderSize Decimal(1,0) SET @OrderSize = '0' DECLARE @RestockIn Int32 SET @RestockIn = '0' DECLARE @IgnoredReason AnsiString(8000) SET @IgnoredReason = 'No latest image available Or temperature is Out of threshold :-999.00, Or Ignore Based On lastOrderDate :False ' DECLARE @PurityDateTime DateTime2 SET @PurityDateTime = '8/8/2025 12:00:00 AM' DECLARE @AssetPurityIds AnsiString(8000) SET @AssetPurityIds = '3616430' DECLARE @UniqueGuid AnsiString(8000) SET @UniqueGuid = '8E09105F-13A2-47F1-A7EB-D6477066EE7F' DECLARE @FinalMoQ Int32 SET @FinalMoQ = '5' DECLARE @FinalMoV Int32 SET @FinalMoV = '100' DECLARE @SuggestedOrderSize Decimal(1,0) SET @SuggestedOrderSize = '0' DECLARE @SuggestedTotalCaseSize Decimal(2,2) SET @SuggestedTotalCaseSize = '0.00' DECLARE @OutletOccupancy Decimal(1,0) SET @OutletOccupancy = '0' DECLARE @LastMOVAndMOQDateTime DateTime2 SET @LastMOVAndMOQDateTime = '' INSERT INTO dbo.ScheduledOrder (LocationId, ReorderDate, OutOfStock, StatusId, TotalAssetCount, AssetCountWithOldImage, OrderMovementTypeId, TotalCaseSize, OrderSize, RestockIn, IgnoredReason, PurityDateTime, AssetPurityIds, UniqueGuid, FinalMoQ, FinalMoV, LastMOVAndMOQDateTime, SuggestedOrderSize, SuggestedTotalCaseSize, OutletOccupancy) VALUES (@LocationId, @ReorderDate, @OutOfStock, @StatusId, @TotalAssetCount, @AssetCountWithOldImage, @OrderMovementTypeId, @TotalCaseSize, @OrderSize, @RestockIn, @IgnoredReason, @PurityDateTime, @AssetPurityIds, @UniqueGuid, @FinalMoQ, @FinalMoV, @LastMOVAndMOQDateTime, @SuggestedOrderSize, @SuggestedTotalCaseSize, @OutletOccupancy);SELECT SCOPE_IDENTITY() 2025-12-25 21:36:04.3274 DFramework.Database.Query /* Time Taken: 504*/ DECLARE @TableName AnsiString(8000) SET @TableName = 'AssetPurity' DECLARE @CurrentRecordId Int32 SET @CurrentRecordId = '3675104' dbo.GetValidDeviceForAlertProcessData 2025-12-25 21:36:05.2181 DFramework.Database.Query /* Time Taken: 1181*/ DECLARE @LocationId Int32 SET @LocationId = '330133' DECLARE @ReorderDate DateTime2 SET @ReorderDate = '12/26/2025 5:36:04 AM' DECLARE @StatusId Int32 SET @StatusId = '5486' DECLARE @OutOfStock Decimal(3,0) SET @OutOfStock = '100' DECLARE @TotalAssetCount Int32 SET @TotalAssetCount = '1' DECLARE @AssetCountWithOldImage Int32 SET @AssetCountWithOldImage = '1' DECLARE @OrderMovementTypeId Int32 SET @OrderMovementTypeId = '5538' DECLARE @TotalCaseSize Decimal(4,2) SET @TotalCaseSize = '47.00' DECLARE @OrderSize Decimal(4,0) SET @OrderSize = '2840' DECLARE @RestockIn Int32 SET @RestockIn = '0' DECLARE @IgnoredReason AnsiString(8000) SET @IgnoredReason = 'No latest image available Or temperature is Out of threshold :-999.00, Or Ignore Based On lastOrderDate :False ' DECLARE @PurityDateTime DateTime2 SET @PurityDateTime = '8/8/2025 12:00:00 AM' DECLARE @AssetPurityIds AnsiString(8000) SET @AssetPurityIds = '3616438,3616436' DECLARE @UniqueGuid AnsiString(8000) SET @UniqueGuid = '88C4AC72-7343-40E7-933B-69BA7C496CAD,319D5B24-C23B-40F9-84DB-8DBFE5C9B14D' DECLARE @FinalMoQ Int32 SET @FinalMoQ = '5' DECLARE @FinalMoV Int32 SET @FinalMoV = '100' DECLARE @SuggestedOrderSize Decimal(4,0) SET @SuggestedOrderSize = '2840' DECLARE @SuggestedTotalCaseSize Decimal(4,2) SET @SuggestedTotalCaseSize = '47.00' DECLARE @OutletOccupancy Decimal(1,0) SET @OutletOccupancy = '0' DECLARE @LastMOVAndMOQDateTime DateTime2 SET @LastMOVAndMOQDateTime = '3/28/2024 1:14:14 PM' INSERT INTO dbo.ScheduledOrder (LocationId, ReorderDate, OutOfStock, StatusId, TotalAssetCount, AssetCountWithOldImage, OrderMovementTypeId, TotalCaseSize, OrderSize, RestockIn, IgnoredReason, PurityDateTime, AssetPurityIds, UniqueGuid, FinalMoQ, FinalMoV, LastMOVAndMOQDateTime, SuggestedOrderSize, SuggestedTotalCaseSize, OutletOccupancy) VALUES (@LocationId, @ReorderDate, @OutOfStock, @StatusId, @TotalAssetCount, @AssetCountWithOldImage, @OrderMovementTypeId, @TotalCaseSize, @OrderSize, @RestockIn, @IgnoredReason, @PurityDateTime, @AssetPurityIds, @UniqueGuid, @FinalMoQ, @FinalMoV, @LastMOVAndMOQDateTime, @SuggestedOrderSize, @SuggestedTotalCaseSize, @OutletOccupancy);SELECT SCOPE_IDENTITY() 2025-12-25 21:36:06.6400 DFramework.Database.Query /* Time Taken: 769*/ DECLARE @TableName AnsiString(8000) SET @TableName = 'ProductStockLevel' DECLARE @CurrentRecordId Int32 SET @CurrentRecordId = '3675104' dbo.GetValidDeviceForAlertProcessData 2025-12-25 21:36:06.7025 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 21:36:06.7025 DFramework.Scheduler.TaskBase /* Time Taken: 15906.3666*/ Process Alert Record 2025-12-25 21:36:09.6244 DFramework.Database.Query /* Time Taken: 1383*/ DECLARE @LocationId Int32 SET @LocationId = '330134' DECLARE @ReorderDate DateTime2 SET @ReorderDate = '12/26/2025 5:36:08 AM' DECLARE @StatusId Int32 SET @StatusId = '5486' DECLARE @OutOfStock Decimal(2,0) SET @OutOfStock = '58' DECLARE @TotalAssetCount Int32 SET @TotalAssetCount = '1' DECLARE @AssetCountWithOldImage Int32 SET @AssetCountWithOldImage = '1' DECLARE @OrderMovementTypeId Int32 SET @OrderMovementTypeId = '5538' DECLARE @TotalCaseSize Decimal(4,2) SET @TotalCaseSize = '18.00' DECLARE @OrderSize Decimal(4,0) SET @OrderSize = '1333' DECLARE @RestockIn Int32 SET @RestockIn = '0' DECLARE @IgnoredReason AnsiString(8000) SET @IgnoredReason = 'No latest image available Or temperature is Out of threshold :-999.00, Or Ignore Based On lastOrderDate :False ' DECLARE @PurityDateTime DateTime2 SET @PurityDateTime = '8/16/2023 12:00:00 AM' DECLARE @AssetPurityIds AnsiString(8000) SET @AssetPurityIds = '3340279' DECLARE @UniqueGuid AnsiString(8000) SET @UniqueGuid = '' DECLARE @FinalMoQ Int32 SET @FinalMoQ = '5' DECLARE @FinalMoV Int32 SET @FinalMoV = '100' DECLARE @SuggestedOrderSize Decimal(4,0) SET @SuggestedOrderSize = '1333' DECLARE @SuggestedTotalCaseSize Decimal(4,2) SET @SuggestedTotalCaseSize = '18.00' DECLARE @OutletOccupancy Decimal(1,0) SET @OutletOccupancy = '0' DECLARE @LastMOVAndMOQDateTime DateTime2 SET @LastMOVAndMOQDateTime = '' INSERT INTO dbo.ScheduledOrder (LocationId, ReorderDate, OutOfStock, StatusId, TotalAssetCount, AssetCountWithOldImage, OrderMovementTypeId, TotalCaseSize, OrderSize, RestockIn, IgnoredReason, PurityDateTime, AssetPurityIds, UniqueGuid, FinalMoQ, FinalMoV, LastMOVAndMOQDateTime, SuggestedOrderSize, SuggestedTotalCaseSize, OutletOccupancy) VALUES (@LocationId, @ReorderDate, @OutOfStock, @StatusId, @TotalAssetCount, @AssetCountWithOldImage, @OrderMovementTypeId, @TotalCaseSize, @OrderSize, @RestockIn, @IgnoredReason, @PurityDateTime, @AssetPurityIds, @UniqueGuid, @FinalMoQ, @FinalMoV, @LastMOVAndMOQDateTime, @SuggestedOrderSize, @SuggestedTotalCaseSize, @OutletOccupancy);SELECT SCOPE_IDENTITY() 2025-12-25 21:36:15.4681 DFramework.Database.Query /* Time Taken: 737*/ DECLARE @LocationId Int32 SET @LocationId = '330238' DECLARE @ReorderDate DateTime2 SET @ReorderDate = '12/26/2025 5:36:14 AM' DECLARE @StatusId Int32 SET @StatusId = '5486' DECLARE @OutOfStock Decimal(2,0) SET @OutOfStock = '88' DECLARE @TotalAssetCount Int32 SET @TotalAssetCount = '1' DECLARE @AssetCountWithOldImage Int32 SET @AssetCountWithOldImage = '1' DECLARE @OrderMovementTypeId Int32 SET @OrderMovementTypeId = '5538' DECLARE @TotalCaseSize Decimal(4,2) SET @TotalCaseSize = '36.00' DECLARE @OrderSize Decimal(4,0) SET @OrderSize = '8529' DECLARE @RestockIn Int32 SET @RestockIn = '0' DECLARE @IgnoredReason AnsiString(8000) SET @IgnoredReason = 'No latest image available Or temperature is Out of threshold :-999.00, Or Ignore Based On lastOrderDate :False ' DECLARE @PurityDateTime DateTime2 SET @PurityDateTime = '8/8/2024 12:00:00 AM' DECLARE @AssetPurityIds AnsiString(8000) SET @AssetPurityIds = '3429537' DECLARE @UniqueGuid AnsiString(8000) SET @UniqueGuid = '688868BC-5A33-4BF3-A8B8-79E8BCF4D938' DECLARE @FinalMoQ Int32 SET @FinalMoQ = '5' DECLARE @FinalMoV Int32 SET @FinalMoV = '100' DECLARE @SuggestedOrderSize Decimal(4,0) SET @SuggestedOrderSize = '8529' DECLARE @SuggestedTotalCaseSize Decimal(4,2) SET @SuggestedTotalCaseSize = '36.00' DECLARE @OutletOccupancy Decimal(1,0) SET @OutletOccupancy = '0' DECLARE @LastMOVAndMOQDateTime DateTime2 SET @LastMOVAndMOQDateTime = '7/31/2024 6:31:44 AM' INSERT INTO dbo.ScheduledOrder (LocationId, ReorderDate, OutOfStock, StatusId, TotalAssetCount, AssetCountWithOldImage, OrderMovementTypeId, TotalCaseSize, OrderSize, RestockIn, IgnoredReason, PurityDateTime, AssetPurityIds, UniqueGuid, FinalMoQ, FinalMoV, LastMOVAndMOQDateTime, SuggestedOrderSize, SuggestedTotalCaseSize, OutletOccupancy) VALUES (@LocationId, @ReorderDate, @OutOfStock, @StatusId, @TotalAssetCount, @AssetCountWithOldImage, @OrderMovementTypeId, @TotalCaseSize, @OrderSize, @RestockIn, @IgnoredReason, @PurityDateTime, @AssetPurityIds, @UniqueGuid, @FinalMoQ, @FinalMoV, @LastMOVAndMOQDateTime, @SuggestedOrderSize, @SuggestedTotalCaseSize, @OutletOccupancy);SELECT SCOPE_IDENTITY() 2025-12-25 21:36:19.9213 DFramework.Database.Query /* Time Taken: 1059*/ DECLARE @LocationId Int32 SET @LocationId = '330335' DECLARE @ReorderDate DateTime2 SET @ReorderDate = '12/26/2025 5:36:18 AM' DECLARE @StatusId Int32 SET @StatusId = '5486' DECLARE @OutOfStock Decimal(2,0) SET @OutOfStock = '25' DECLARE @TotalAssetCount Int32 SET @TotalAssetCount = '1' DECLARE @AssetCountWithOldImage Int32 SET @AssetCountWithOldImage = '1' DECLARE @OrderMovementTypeId Int32 SET @OrderMovementTypeId = '5538' DECLARE @TotalCaseSize Decimal(3,2) SET @TotalCaseSize = '1.00' DECLARE @OrderSize Decimal(3,0) SET @OrderSize = '300' DECLARE @RestockIn Int32 SET @RestockIn = '0' DECLARE @IgnoredReason AnsiString(8000) SET @IgnoredReason = 'No latest image available Or temperature is Out of threshold :-999.00, Or Ignore Based On lastOrderDate :False ' DECLARE @PurityDateTime DateTime2 SET @PurityDateTime = '11/18/2025 12:00:00 AM' DECLARE @AssetPurityIds AnsiString(8000) SET @AssetPurityIds = '3670329' DECLARE @UniqueGuid AnsiString(8000) SET @UniqueGuid = '551809EB-C73A-4A3F-B97C-D732B6DC544D' DECLARE @FinalMoQ Int32 SET @FinalMoQ = '5' DECLARE @FinalMoV Int32 SET @FinalMoV = '100' DECLARE @SuggestedOrderSize Decimal(3,0) SET @SuggestedOrderSize = '300' DECLARE @SuggestedTotalCaseSize Decimal(3,2) SET @SuggestedTotalCaseSize = '1.00' DECLARE @OutletOccupancy Decimal(1,0) SET @OutletOccupancy = '0' DECLARE @LastMOVAndMOQDateTime DateTime2 SET @LastMOVAndMOQDateTime = '11/18/2025 2:41:38 PM' INSERT INTO dbo.ScheduledOrder (LocationId, ReorderDate, OutOfStock, StatusId, TotalAssetCount, AssetCountWithOldImage, OrderMovementTypeId, TotalCaseSize, OrderSize, RestockIn, IgnoredReason, PurityDateTime, AssetPurityIds, UniqueGuid, FinalMoQ, FinalMoV, LastMOVAndMOQDateTime, SuggestedOrderSize, SuggestedTotalCaseSize, OutletOccupancy) VALUES (@LocationId, @ReorderDate, @OutOfStock, @StatusId, @TotalAssetCount, @AssetCountWithOldImage, @OrderMovementTypeId, @TotalCaseSize, @OrderSize, @RestockIn, @IgnoredReason, @PurityDateTime, @AssetPurityIds, @UniqueGuid, @FinalMoQ, @FinalMoV, @LastMOVAndMOQDateTime, @SuggestedOrderSize, @SuggestedTotalCaseSize, @OutletOccupancy);SELECT SCOPE_IDENTITY() 2025-12-25 21:36:21.4682 DFramework.Database.Query /* Time Taken: 857*/ DECLARE @LocationId Int32 SET @LocationId = '330345' DECLARE @ReorderDate DateTime2 SET @ReorderDate = '12/26/2025 5:36:20 AM' DECLARE @StatusId Int32 SET @StatusId = '5486' DECLARE @OutOfStock Decimal(2,0) SET @OutOfStock = '60' DECLARE @TotalAssetCount Int32 SET @TotalAssetCount = '2' DECLARE @AssetCountWithOldImage Int32 SET @AssetCountWithOldImage = '2' DECLARE @OrderMovementTypeId Int32 SET @OrderMovementTypeId = '5538' DECLARE @TotalCaseSize Decimal(4,2) SET @TotalCaseSize = '29.00' DECLARE @OrderSize Decimal(4,0) SET @OrderSize = '5602' DECLARE @RestockIn Int32 SET @RestockIn = '0' DECLARE @IgnoredReason AnsiString(8000) SET @IgnoredReason = 'No latest image available Or temperature is Out of threshold :-999.00, Or Ignore Based On lastOrderDate :False ' DECLARE @PurityDateTime DateTime2 SET @PurityDateTime = '9/5/2025 12:00:00 AM' DECLARE @AssetPurityIds AnsiString(8000) SET @AssetPurityIds = '3642557' DECLARE @UniqueGuid AnsiString(8000) SET @UniqueGuid = '4D2D1BAD-9931-4242-9B60-1FBF7EEBDCFF' DECLARE @FinalMoQ Int32 SET @FinalMoQ = '5' DECLARE @FinalMoV Int32 SET @FinalMoV = '100' DECLARE @SuggestedOrderSize Decimal(4,0) SET @SuggestedOrderSize = '5602' DECLARE @SuggestedTotalCaseSize Decimal(4,2) SET @SuggestedTotalCaseSize = '29.00' DECLARE @OutletOccupancy Decimal(1,0) SET @OutletOccupancy = '0' DECLARE @LastMOVAndMOQDateTime DateTime2 SET @LastMOVAndMOQDateTime = '7/18/2024 1:31:08 PM' INSERT INTO dbo.ScheduledOrder (LocationId, ReorderDate, OutOfStock, StatusId, TotalAssetCount, AssetCountWithOldImage, OrderMovementTypeId, TotalCaseSize, OrderSize, RestockIn, IgnoredReason, PurityDateTime, AssetPurityIds, UniqueGuid, FinalMoQ, FinalMoV, LastMOVAndMOQDateTime, SuggestedOrderSize, SuggestedTotalCaseSize, OutletOccupancy) VALUES (@LocationId, @ReorderDate, @OutOfStock, @StatusId, @TotalAssetCount, @AssetCountWithOldImage, @OrderMovementTypeId, @TotalCaseSize, @OrderSize, @RestockIn, @IgnoredReason, @PurityDateTime, @AssetPurityIds, @UniqueGuid, @FinalMoQ, @FinalMoV, @LastMOVAndMOQDateTime, @SuggestedOrderSize, @SuggestedTotalCaseSize, @OutletOccupancy);SELECT SCOPE_IDENTITY() 2025-12-25 21:36:27.4682 DFramework.Database.Query /* Time Taken: 922*/ DECLARE @LocationId Int32 SET @LocationId = '330357' DECLARE @ReorderDate DateTime2 SET @ReorderDate = '12/26/2025 5:36:26 AM' DECLARE @StatusId Int32 SET @StatusId = '5486' DECLARE @OutOfStock Decimal(1,0) SET @OutOfStock = '0' DECLARE @TotalAssetCount Int32 SET @TotalAssetCount = '1' DECLARE @AssetCountWithOldImage Int32 SET @AssetCountWithOldImage = '1' DECLARE @OrderMovementTypeId Int32 SET @OrderMovementTypeId = '5538' DECLARE @TotalCaseSize Decimal(2,2) SET @TotalCaseSize = '0.00' DECLARE @OrderSize Decimal(1,0) SET @OrderSize = '0' DECLARE @RestockIn Int32 SET @RestockIn = '0' DECLARE @IgnoredReason AnsiString(8000) SET @IgnoredReason = 'No latest image available Or temperature is Out of threshold :-999.00, Or Ignore Based On lastOrderDate :False ' DECLARE @PurityDateTime DateTime2 SET @PurityDateTime = '3/19/2024 12:00:00 AM' DECLARE @AssetPurityIds AnsiString(8000) SET @AssetPurityIds = '3396559' DECLARE @UniqueGuid AnsiString(8000) SET @UniqueGuid = 'AA604BB7-11E2-4475-8F29-971757A272E7' DECLARE @FinalMoQ Int32 SET @FinalMoQ = '5' DECLARE @FinalMoV Int32 SET @FinalMoV = '100' DECLARE @SuggestedOrderSize Decimal(1,0) SET @SuggestedOrderSize = '0' DECLARE @SuggestedTotalCaseSize Decimal(2,2) SET @SuggestedTotalCaseSize = '0.00' DECLARE @OutletOccupancy Decimal(1,0) SET @OutletOccupancy = '0' DECLARE @LastMOVAndMOQDateTime DateTime2 SET @LastMOVAndMOQDateTime = '' INSERT INTO dbo.ScheduledOrder (LocationId, ReorderDate, OutOfStock, StatusId, TotalAssetCount, AssetCountWithOldImage, OrderMovementTypeId, TotalCaseSize, OrderSize, RestockIn, IgnoredReason, PurityDateTime, AssetPurityIds, UniqueGuid, FinalMoQ, FinalMoV, LastMOVAndMOQDateTime, SuggestedOrderSize, SuggestedTotalCaseSize, OutletOccupancy) VALUES (@LocationId, @ReorderDate, @OutOfStock, @StatusId, @TotalAssetCount, @AssetCountWithOldImage, @OrderMovementTypeId, @TotalCaseSize, @OrderSize, @RestockIn, @IgnoredReason, @PurityDateTime, @AssetPurityIds, @UniqueGuid, @FinalMoQ, @FinalMoV, @LastMOVAndMOQDateTime, @SuggestedOrderSize, @SuggestedTotalCaseSize, @OutletOccupancy);SELECT SCOPE_IDENTITY() 2025-12-25 21:36:32.3745 DFramework.Database.Query /* Time Taken: 1271*/ DECLARE @LocationId Int32 SET @LocationId = '354927' DECLARE @ReorderDate DateTime2 SET @ReorderDate = '12/26/2025 5:36:31 AM' DECLARE @StatusId Int32 SET @StatusId = '5486' DECLARE @OutOfStock Decimal(2,0) SET @OutOfStock = '88' DECLARE @TotalAssetCount Int32 SET @TotalAssetCount = '6' DECLARE @AssetCountWithOldImage Int32 SET @AssetCountWithOldImage = '6' DECLARE @OrderMovementTypeId Int32 SET @OrderMovementTypeId = '5538' DECLARE @TotalCaseSize Decimal(5,2) SET @TotalCaseSize = '167.00' DECLARE @OrderSize Decimal(5,0) SET @OrderSize = '15400' DECLARE @RestockIn Int32 SET @RestockIn = '0' DECLARE @IgnoredReason AnsiString(8000) SET @IgnoredReason = 'No latest image available Or temperature is Out of threshold :-999.00, Or Ignore Based On lastOrderDate :False ' DECLARE @PurityDateTime DateTime2 SET @PurityDateTime = '2/4/2025 12:00:00 AM' DECLARE @AssetPurityIds AnsiString(8000) SET @AssetPurityIds = '3479725' DECLARE @UniqueGuid AnsiString(8000) SET @UniqueGuid = 'CD4BD7F9-6596-452F-A012-1AC64EB2E691' DECLARE @FinalMoQ Int32 SET @FinalMoQ = '5' DECLARE @FinalMoV Int32 SET @FinalMoV = '100' DECLARE @SuggestedOrderSize Decimal(5,0) SET @SuggestedOrderSize = '15400' DECLARE @SuggestedTotalCaseSize Decimal(5,2) SET @SuggestedTotalCaseSize = '167.00' DECLARE @OutletOccupancy Decimal(1,0) SET @OutletOccupancy = '0' DECLARE @LastMOVAndMOQDateTime DateTime2 SET @LastMOVAndMOQDateTime = '10/3/2024 4:06:19 PM' INSERT INTO dbo.ScheduledOrder (LocationId, ReorderDate, OutOfStock, StatusId, TotalAssetCount, AssetCountWithOldImage, OrderMovementTypeId, TotalCaseSize, OrderSize, RestockIn, IgnoredReason, PurityDateTime, AssetPurityIds, UniqueGuid, FinalMoQ, FinalMoV, LastMOVAndMOQDateTime, SuggestedOrderSize, SuggestedTotalCaseSize, OutletOccupancy) VALUES (@LocationId, @ReorderDate, @OutOfStock, @StatusId, @TotalAssetCount, @AssetCountWithOldImage, @OrderMovementTypeId, @TotalCaseSize, @OrderSize, @RestockIn, @IgnoredReason, @PurityDateTime, @AssetPurityIds, @UniqueGuid, @FinalMoQ, @FinalMoV, @LastMOVAndMOQDateTime, @SuggestedOrderSize, @SuggestedTotalCaseSize, @OutletOccupancy);SELECT SCOPE_IDENTITY() 2025-12-25 21:36:42.1402 DFramework.Database.Query /* Time Taken: 502*/ DECLARE @ScheduledOrderId Int32 SET @ScheduledOrderId = '322065' DECLARE @ProductId Int32 SET @ProductId = '24574' DECLARE @UnitsNeeded Decimal(3,2) SET @UnitsNeeded = '1.00' DECLARE @UnitPrice Decimal(4,2) SET @UnitPrice = '32.00' DECLARE @CaseSize Int32 SET @CaseSize = '23' DECLARE @StockLevel Decimal(2,2) SET @StockLevel = '0.00' DECLARE @AssetId Int32 SET @AssetId = '89488' DECLARE @AssetPurityId Decimal(7,0) SET @AssetPurityId = '3446354' DECLARE @UnitLabelId Int32 SET @UnitLabelId = '5469' INSERT INTO dbo.ScheduledOrderItem (ScheduledOrderId, ProductId, UnitsNeeded, UnitPrice, CaseSize, StockLevel, AssetId,AssetPurityId, UnitLabelId) VALUES (@ScheduledOrderId, @ProductId, @UnitsNeeded, @UnitPrice, @CaseSize, @StockLevel, @AssetId, @AssetPurityId, @UnitLabelId) 2025-12-25 21:36:42.7496 DFramework.Database.Query /* Time Taken: 608*/ DECLARE @ScheduledOrderId Int32 SET @ScheduledOrderId = '322065' DECLARE @ProductId Int32 SET @ProductId = '24555' DECLARE @UnitsNeeded Decimal(3,2) SET @UnitsNeeded = '1.00' DECLARE @UnitPrice Decimal(5,2) SET @UnitPrice = '200.00' DECLARE @CaseSize Int32 SET @CaseSize = '20' DECLARE @StockLevel Decimal(2,2) SET @StockLevel = '0.00' DECLARE @AssetId Int32 SET @AssetId = '89488' DECLARE @AssetPurityId Decimal(7,0) SET @AssetPurityId = '3446354' DECLARE @UnitLabelId Int32 SET @UnitLabelId = '5469' INSERT INTO dbo.ScheduledOrderItem (ScheduledOrderId, ProductId, UnitsNeeded, UnitPrice, CaseSize, StockLevel, AssetId,AssetPurityId, UnitLabelId) VALUES (@ScheduledOrderId, @ProductId, @UnitsNeeded, @UnitPrice, @CaseSize, @StockLevel, @AssetId, @AssetPurityId, @UnitLabelId) 2025-12-25 21:36:43.4371 DFramework.Database.Query /* Time Taken: 679*/ DECLARE @ScheduledOrderId Int32 SET @ScheduledOrderId = '322065' DECLARE @ProductId Int32 SET @ProductId = '24560' DECLARE @UnitsNeeded Decimal(3,2) SET @UnitsNeeded = '1.00' DECLARE @UnitPrice Decimal(5,2) SET @UnitPrice = '350.00' DECLARE @CaseSize Int32 SET @CaseSize = '12' DECLARE @StockLevel Decimal(2,2) SET @StockLevel = '0.00' DECLARE @AssetId Int32 SET @AssetId = '89488' DECLARE @AssetPurityId Decimal(7,0) SET @AssetPurityId = '3446354' DECLARE @UnitLabelId Int32 SET @UnitLabelId = '5469' INSERT INTO dbo.ScheduledOrderItem (ScheduledOrderId, ProductId, UnitsNeeded, UnitPrice, CaseSize, StockLevel, AssetId,AssetPurityId, UnitLabelId) VALUES (@ScheduledOrderId, @ProductId, @UnitsNeeded, @UnitPrice, @CaseSize, @StockLevel, @AssetId, @AssetPurityId, @UnitLabelId) 2025-12-25 21:36:44.0152 DFramework.Database.Query /* Time Taken: 572*/ DECLARE @ScheduledOrderId Int32 SET @ScheduledOrderId = '322065' DECLARE @ProductId Int32 SET @ProductId = '24554' DECLARE @UnitsNeeded Decimal(4,2) SET @UnitsNeeded = '12.00' DECLARE @UnitPrice Decimal(4,2) SET @UnitPrice = '29.17' DECLARE @CaseSize Int32 SET @CaseSize = '12' DECLARE @StockLevel Decimal(2,2) SET @StockLevel = '0.00' DECLARE @AssetId Int32 SET @AssetId = '89488' DECLARE @AssetPurityId Decimal(7,0) SET @AssetPurityId = '3446354' DECLARE @UnitLabelId Int32 SET @UnitLabelId = '7619' INSERT INTO dbo.ScheduledOrderItem (ScheduledOrderId, ProductId, UnitsNeeded, UnitPrice, CaseSize, StockLevel, AssetId,AssetPurityId, UnitLabelId) VALUES (@ScheduledOrderId, @ProductId, @UnitsNeeded, @UnitPrice, @CaseSize, @StockLevel, @AssetId, @AssetPurityId, @UnitLabelId) 2025-12-25 21:36:47.7184 DFramework.Database.Query /* Time Taken: 627*/ DECLARE @ScheduledOrderId Int32 SET @ScheduledOrderId = '322065' DECLARE @ProductId Int32 SET @ProductId = '24554' DECLARE @UnitsNeeded Decimal(4,2) SET @UnitsNeeded = '12.00' DECLARE @UnitPrice Decimal(4,2) SET @UnitPrice = '29.17' DECLARE @CaseSize Int32 SET @CaseSize = '12' DECLARE @StockLevel Decimal(4,2) SET @StockLevel = '25.00' DECLARE @AssetId Int32 SET @AssetId = '89489' DECLARE @AssetPurityId Decimal(7,0) SET @AssetPurityId = '3446360' DECLARE @UnitLabelId Int32 SET @UnitLabelId = '7619' INSERT INTO dbo.ScheduledOrderItem (ScheduledOrderId, ProductId, UnitsNeeded, UnitPrice, CaseSize, StockLevel, AssetId,AssetPurityId, UnitLabelId) VALUES (@ScheduledOrderId, @ProductId, @UnitsNeeded, @UnitPrice, @CaseSize, @StockLevel, @AssetId, @AssetPurityId, @UnitLabelId) 2025-12-25 21:36:51.0778 DFramework.Database.Query /* Time Taken: 666*/ DECLARE @LocationId Int32 SET @LocationId = '363096' DECLARE @ReorderDate DateTime2 SET @ReorderDate = '12/26/2025 5:36:50 AM' DECLARE @StatusId Int32 SET @StatusId = '5486' DECLARE @OutOfStock Decimal(2,0) SET @OutOfStock = '81' DECLARE @TotalAssetCount Int32 SET @TotalAssetCount = '5' DECLARE @AssetCountWithOldImage Int32 SET @AssetCountWithOldImage = '5' DECLARE @OrderMovementTypeId Int32 SET @OrderMovementTypeId = '5538' DECLARE @TotalCaseSize Decimal(4,2) SET @TotalCaseSize = '26.00' DECLARE @OrderSize Decimal(4,0) SET @OrderSize = '7770' DECLARE @RestockIn Int32 SET @RestockIn = '0' DECLARE @IgnoredReason AnsiString(8000) SET @IgnoredReason = 'No latest image available Or temperature is Out of threshold :-999.00, Or Ignore Based On lastOrderDate :False ' DECLARE @PurityDateTime DateTime2 SET @PurityDateTime = '1/18/2024 12:00:00 AM' DECLARE @AssetPurityIds AnsiString(8000) SET @AssetPurityIds = '3392426' DECLARE @UniqueGuid AnsiString(8000) SET @UniqueGuid = 'A26F5387-EAD9-45CB-AA7A-33F1ABAB80D5' DECLARE @FinalMoQ Int32 SET @FinalMoQ = '5' DECLARE @FinalMoV Int32 SET @FinalMoV = '100' DECLARE @SuggestedOrderSize Decimal(4,0) SET @SuggestedOrderSize = '7770' DECLARE @SuggestedTotalCaseSize Decimal(4,2) SET @SuggestedTotalCaseSize = '26.00' DECLARE @OutletOccupancy Decimal(1,0) SET @OutletOccupancy = '0' DECLARE @LastMOVAndMOQDateTime DateTime2 SET @LastMOVAndMOQDateTime = '' INSERT INTO dbo.ScheduledOrder (LocationId, ReorderDate, OutOfStock, StatusId, TotalAssetCount, AssetCountWithOldImage, OrderMovementTypeId, TotalCaseSize, OrderSize, RestockIn, IgnoredReason, PurityDateTime, AssetPurityIds, UniqueGuid, FinalMoQ, FinalMoV, LastMOVAndMOQDateTime, SuggestedOrderSize, SuggestedTotalCaseSize, OutletOccupancy) VALUES (@LocationId, @ReorderDate, @OutOfStock, @StatusId, @TotalAssetCount, @AssetCountWithOldImage, @OrderMovementTypeId, @TotalCaseSize, @OrderSize, @RestockIn, @IgnoredReason, @PurityDateTime, @AssetPurityIds, @UniqueGuid, @FinalMoQ, @FinalMoV, @LastMOVAndMOQDateTime, @SuggestedOrderSize, @SuggestedTotalCaseSize, @OutletOccupancy);SELECT SCOPE_IDENTITY() 2025-12-25 21:36:56.7653 DFramework.Database.Query /* Time Taken: 1222*/ DECLARE @LocationId Int32 SET @LocationId = '363097' DECLARE @ReorderDate DateTime2 SET @ReorderDate = '12/26/2025 5:36:55 AM' DECLARE @StatusId Int32 SET @StatusId = '5486' DECLARE @OutOfStock Decimal(2,0) SET @OutOfStock = '79' DECLARE @TotalAssetCount Int32 SET @TotalAssetCount = '1' DECLARE @AssetCountWithOldImage Int32 SET @AssetCountWithOldImage = '1' DECLARE @OrderMovementTypeId Int32 SET @OrderMovementTypeId = '5538' DECLARE @TotalCaseSize Decimal(2,2) SET @TotalCaseSize = '0.00' DECLARE @OrderSize Decimal(1,0) SET @OrderSize = '0' DECLARE @RestockIn Int32 SET @RestockIn = '0' DECLARE @IgnoredReason AnsiString(8000) SET @IgnoredReason = 'No latest image available Or temperature is Out of threshold :-999.00, Or Ignore Based On lastOrderDate :False ' DECLARE @PurityDateTime DateTime2 SET @PurityDateTime = '2/1/2024 12:00:00 AM' DECLARE @AssetPurityIds AnsiString(8000) SET @AssetPurityIds = '3393426' DECLARE @UniqueGuid AnsiString(8000) SET @UniqueGuid = '00D7474C-C6D4-4B5B-ADEA-0262CE978ACD' DECLARE @FinalMoQ Int32 SET @FinalMoQ = '5' DECLARE @FinalMoV Int32 SET @FinalMoV = '100' DECLARE @SuggestedOrderSize Decimal(1,0) SET @SuggestedOrderSize = '0' DECLARE @SuggestedTotalCaseSize Decimal(2,2) SET @SuggestedTotalCaseSize = '0.00' DECLARE @OutletOccupancy Decimal(1,0) SET @OutletOccupancy = '0' DECLARE @LastMOVAndMOQDateTime DateTime2 SET @LastMOVAndMOQDateTime = '' INSERT INTO dbo.ScheduledOrder (LocationId, ReorderDate, OutOfStock, StatusId, TotalAssetCount, AssetCountWithOldImage, OrderMovementTypeId, TotalCaseSize, OrderSize, RestockIn, IgnoredReason, PurityDateTime, AssetPurityIds, UniqueGuid, FinalMoQ, FinalMoV, LastMOVAndMOQDateTime, SuggestedOrderSize, SuggestedTotalCaseSize, OutletOccupancy) VALUES (@LocationId, @ReorderDate, @OutOfStock, @StatusId, @TotalAssetCount, @AssetCountWithOldImage, @OrderMovementTypeId, @TotalCaseSize, @OrderSize, @RestockIn, @IgnoredReason, @PurityDateTime, @AssetPurityIds, @UniqueGuid, @FinalMoQ, @FinalMoV, @LastMOVAndMOQDateTime, @SuggestedOrderSize, @SuggestedTotalCaseSize, @OutletOccupancy);SELECT SCOPE_IDENTITY() 2025-12-25 21:36:58.4216 DFramework.Database.Query /* Time Taken: 1222*/ DECLARE @LocationId Int32 SET @LocationId = '363098' DECLARE @ReorderDate DateTime2 SET @ReorderDate = '12/26/2025 5:36:57 AM' DECLARE @StatusId Int32 SET @StatusId = '5486' DECLARE @OutOfStock Decimal(2,0) SET @OutOfStock = '49' DECLARE @TotalAssetCount Int32 SET @TotalAssetCount = '2' DECLARE @AssetCountWithOldImage Int32 SET @AssetCountWithOldImage = '2' DECLARE @OrderMovementTypeId Int32 SET @OrderMovementTypeId = '5538' DECLARE @TotalCaseSize Decimal(3,2) SET @TotalCaseSize = '5.00' DECLARE @OrderSize Decimal(4,0) SET @OrderSize = '1361' DECLARE @RestockIn Int32 SET @RestockIn = '0' DECLARE @IgnoredReason AnsiString(8000) SET @IgnoredReason = 'No latest image available Or temperature is Out of threshold :-999.00, Or Ignore Based On lastOrderDate :False ' DECLARE @PurityDateTime DateTime2 SET @PurityDateTime = '7/25/2024 12:00:00 AM' DECLARE @AssetPurityIds AnsiString(8000) SET @AssetPurityIds = '3415712' DECLARE @UniqueGuid AnsiString(8000) SET @UniqueGuid = '1898F402-214A-4AED-AFBA-F16F36639CC1' DECLARE @FinalMoQ Int32 SET @FinalMoQ = '5' DECLARE @FinalMoV Int32 SET @FinalMoV = '100' DECLARE @SuggestedOrderSize Decimal(4,0) SET @SuggestedOrderSize = '1361' DECLARE @SuggestedTotalCaseSize Decimal(3,2) SET @SuggestedTotalCaseSize = '5.00' DECLARE @OutletOccupancy Decimal(1,0) SET @OutletOccupancy = '0' DECLARE @LastMOVAndMOQDateTime DateTime2 SET @LastMOVAndMOQDateTime = '' INSERT INTO dbo.ScheduledOrder (LocationId, ReorderDate, OutOfStock, StatusId, TotalAssetCount, AssetCountWithOldImage, OrderMovementTypeId, TotalCaseSize, OrderSize, RestockIn, IgnoredReason, PurityDateTime, AssetPurityIds, UniqueGuid, FinalMoQ, FinalMoV, LastMOVAndMOQDateTime, SuggestedOrderSize, SuggestedTotalCaseSize, OutletOccupancy) VALUES (@LocationId, @ReorderDate, @OutOfStock, @StatusId, @TotalAssetCount, @AssetCountWithOldImage, @OrderMovementTypeId, @TotalCaseSize, @OrderSize, @RestockIn, @IgnoredReason, @PurityDateTime, @AssetPurityIds, @UniqueGuid, @FinalMoQ, @FinalMoV, @LastMOVAndMOQDateTime, @SuggestedOrderSize, @SuggestedTotalCaseSize, @OutletOccupancy);SELECT SCOPE_IDENTITY() 2025-12-25 21:36:59.7654 DFramework.Database.Query /* Time Taken: 788*/ DECLARE @SellOut Decimal(1,0) SET @SellOut = '0' DECLARE @AssetPurityId Decimal(7,0) SET @AssetPurityId = '3415712' DECLARE @ProductId Int32 SET @ProductId = '24536' UPDATE AutoStockBackStorage SET SellOut = @SellOut WHERE AssetPurityId = @AssetPurityId AND ProductId = @ProductId AND IsDeleted = 0 2025-12-25 21:37:02.5622 DFramework.Database.Query /* Time Taken: 1251*/ DECLARE @LocationId Int32 SET @LocationId = '363100' DECLARE @ReorderDate DateTime2 SET @ReorderDate = '12/26/2025 5:37:01 AM' DECLARE @StatusId Int32 SET @StatusId = '5486' DECLARE @OutOfStock Decimal(3,0) SET @OutOfStock = '100' DECLARE @TotalAssetCount Int32 SET @TotalAssetCount = '1' DECLARE @AssetCountWithOldImage Int32 SET @AssetCountWithOldImage = '1' DECLARE @OrderMovementTypeId Int32 SET @OrderMovementTypeId = '5538' DECLARE @TotalCaseSize Decimal(4,2) SET @TotalCaseSize = '55.00' DECLARE @OrderSize Decimal(4,0) SET @OrderSize = '5344' DECLARE @RestockIn Int32 SET @RestockIn = '0' DECLARE @IgnoredReason AnsiString(8000) SET @IgnoredReason = 'No latest image available Or temperature is Out of threshold :-999.00, Or Ignore Based On lastOrderDate :False ' DECLARE @PurityDateTime DateTime2 SET @PurityDateTime = '11/25/2024 12:00:00 AM' DECLARE @AssetPurityIds AnsiString(8000) SET @AssetPurityIds = '3466842' DECLARE @UniqueGuid AnsiString(8000) SET @UniqueGuid = '622F4016-EAA6-46C0-B85D-5D8A7B6F5268' DECLARE @FinalMoQ Int32 SET @FinalMoQ = '5' DECLARE @FinalMoV Int32 SET @FinalMoV = '100' DECLARE @SuggestedOrderSize Decimal(4,0) SET @SuggestedOrderSize = '5344' DECLARE @SuggestedTotalCaseSize Decimal(4,2) SET @SuggestedTotalCaseSize = '55.00' DECLARE @OutletOccupancy Decimal(1,0) SET @OutletOccupancy = '0' DECLARE @LastMOVAndMOQDateTime DateTime2 SET @LastMOVAndMOQDateTime = '10/21/2024 3:54:03 PM' INSERT INTO dbo.ScheduledOrder (LocationId, ReorderDate, OutOfStock, StatusId, TotalAssetCount, AssetCountWithOldImage, OrderMovementTypeId, TotalCaseSize, OrderSize, RestockIn, IgnoredReason, PurityDateTime, AssetPurityIds, UniqueGuid, FinalMoQ, FinalMoV, LastMOVAndMOQDateTime, SuggestedOrderSize, SuggestedTotalCaseSize, OutletOccupancy) VALUES (@LocationId, @ReorderDate, @OutOfStock, @StatusId, @TotalAssetCount, @AssetCountWithOldImage, @OrderMovementTypeId, @TotalCaseSize, @OrderSize, @RestockIn, @IgnoredReason, @PurityDateTime, @AssetPurityIds, @UniqueGuid, @FinalMoQ, @FinalMoV, @LastMOVAndMOQDateTime, @SuggestedOrderSize, @SuggestedTotalCaseSize, @OutletOccupancy);SELECT SCOPE_IDENTITY() 2025-12-25 21:37:09.2342 DFramework.Database.Query /* Time Taken: 1205*/ DECLARE @LocationId Int32 SET @LocationId = '363107' DECLARE @ReorderDate DateTime2 SET @ReorderDate = '12/26/2025 5:37:08 AM' DECLARE @StatusId Int32 SET @StatusId = '5486' DECLARE @OutOfStock Decimal(2,0) SET @OutOfStock = '10' DECLARE @TotalAssetCount Int32 SET @TotalAssetCount = '4' DECLARE @AssetCountWithOldImage Int32 SET @AssetCountWithOldImage = '4' DECLARE @OrderMovementTypeId Int32 SET @OrderMovementTypeId = '5538' DECLARE @TotalCaseSize Decimal(3,2) SET @TotalCaseSize = '3.00' DECLARE @OrderSize Decimal(3,0) SET @OrderSize = '720' DECLARE @RestockIn Int32 SET @RestockIn = '0' DECLARE @IgnoredReason AnsiString(8000) SET @IgnoredReason = 'No latest image available Or temperature is Out of threshold :-999.00, Or Ignore Based On lastOrderDate :False ' DECLARE @PurityDateTime DateTime2 SET @PurityDateTime = '1/2/2024 12:00:00 AM' DECLARE @AssetPurityIds AnsiString(8000) SET @AssetPurityIds = '3383355,3383352,3383348' DECLARE @UniqueGuid AnsiString(8000) SET @UniqueGuid = 'FEFC5A6E-0B36-4C49-93F8-6EC51A44BC6A,D2E4356B-4A86-4028-A94E-12D83C74BE25,7812A9DB-D6FE-4AE5-A8E6-578103625D66' DECLARE @FinalMoQ Int32 SET @FinalMoQ = '5' DECLARE @FinalMoV Int32 SET @FinalMoV = '100' DECLARE @SuggestedOrderSize Decimal(3,0) SET @SuggestedOrderSize = '720' DECLARE @SuggestedTotalCaseSize Decimal(3,2) SET @SuggestedTotalCaseSize = '3.00' DECLARE @OutletOccupancy Decimal(1,0) SET @OutletOccupancy = '0' DECLARE @LastMOVAndMOQDateTime DateTime2 SET @LastMOVAndMOQDateTime = '' INSERT INTO dbo.ScheduledOrder (LocationId, ReorderDate, OutOfStock, StatusId, TotalAssetCount, AssetCountWithOldImage, OrderMovementTypeId, TotalCaseSize, OrderSize, RestockIn, IgnoredReason, PurityDateTime, AssetPurityIds, UniqueGuid, FinalMoQ, FinalMoV, LastMOVAndMOQDateTime, SuggestedOrderSize, SuggestedTotalCaseSize, OutletOccupancy) VALUES (@LocationId, @ReorderDate, @OutOfStock, @StatusId, @TotalAssetCount, @AssetCountWithOldImage, @OrderMovementTypeId, @TotalCaseSize, @OrderSize, @RestockIn, @IgnoredReason, @PurityDateTime, @AssetPurityIds, @UniqueGuid, @FinalMoQ, @FinalMoV, @LastMOVAndMOQDateTime, @SuggestedOrderSize, @SuggestedTotalCaseSize, @OutletOccupancy);SELECT SCOPE_IDENTITY() 2025-12-25 21:37:11.8748 DFramework.Database.Query /* Time Taken: 1551*/ DECLARE @LocationId Int32 SET @LocationId = '363110' DECLARE @ReorderDate DateTime2 SET @ReorderDate = '12/26/2025 5:37:10 AM' DECLARE @StatusId Int32 SET @StatusId = '5486' DECLARE @OutOfStock Decimal(2,0) SET @OutOfStock = '88' DECLARE @TotalAssetCount Int32 SET @TotalAssetCount = '2' DECLARE @AssetCountWithOldImage Int32 SET @AssetCountWithOldImage = '2' DECLARE @OrderMovementTypeId Int32 SET @OrderMovementTypeId = '5538' DECLARE @TotalCaseSize Decimal(3,2) SET @TotalCaseSize = '1.00' DECLARE @OrderSize Decimal(2,0) SET @OrderSize = '50' DECLARE @RestockIn Int32 SET @RestockIn = '0' DECLARE @IgnoredReason AnsiString(8000) SET @IgnoredReason = 'No latest image available Or temperature is Out of threshold :-999.00, Or Ignore Based On lastOrderDate :False ' DECLARE @PurityDateTime DateTime2 SET @PurityDateTime = '7/23/2025 12:00:00 AM' DECLARE @AssetPurityIds AnsiString(8000) SET @AssetPurityIds = '3609063' DECLARE @UniqueGuid AnsiString(8000) SET @UniqueGuid = '3BB7B763-2AA2-4CBA-B809-0AC48F310E6B' DECLARE @FinalMoQ Int32 SET @FinalMoQ = '5' DECLARE @FinalMoV Int32 SET @FinalMoV = '100' DECLARE @SuggestedOrderSize Decimal(2,0) SET @SuggestedOrderSize = '50' DECLARE @SuggestedTotalCaseSize Decimal(3,2) SET @SuggestedTotalCaseSize = '1.00' DECLARE @OutletOccupancy Decimal(1,0) SET @OutletOccupancy = '0' DECLARE @LastMOVAndMOQDateTime DateTime2 SET @LastMOVAndMOQDateTime = '' INSERT INTO dbo.ScheduledOrder (LocationId, ReorderDate, OutOfStock, StatusId, TotalAssetCount, AssetCountWithOldImage, OrderMovementTypeId, TotalCaseSize, OrderSize, RestockIn, IgnoredReason, PurityDateTime, AssetPurityIds, UniqueGuid, FinalMoQ, FinalMoV, LastMOVAndMOQDateTime, SuggestedOrderSize, SuggestedTotalCaseSize, OutletOccupancy) VALUES (@LocationId, @ReorderDate, @OutOfStock, @StatusId, @TotalAssetCount, @AssetCountWithOldImage, @OrderMovementTypeId, @TotalCaseSize, @OrderSize, @RestockIn, @IgnoredReason, @PurityDateTime, @AssetPurityIds, @UniqueGuid, @FinalMoQ, @FinalMoV, @LastMOVAndMOQDateTime, @SuggestedOrderSize, @SuggestedTotalCaseSize, @OutletOccupancy);SELECT SCOPE_IDENTITY() 2025-12-25 21:37:13.7342 DFramework.Database.Query /* Time Taken: 1264*/ DECLARE @LocationId Int32 SET @LocationId = '363113' DECLARE @ReorderDate DateTime2 SET @ReorderDate = '12/26/2025 5:37:12 AM' DECLARE @StatusId Int32 SET @StatusId = '5486' DECLARE @OutOfStock Decimal(3,0) SET @OutOfStock = '100' DECLARE @TotalAssetCount Int32 SET @TotalAssetCount = '1' DECLARE @AssetCountWithOldImage Int32 SET @AssetCountWithOldImage = '1' DECLARE @OrderMovementTypeId Int32 SET @OrderMovementTypeId = '5538' DECLARE @TotalCaseSize Decimal(4,2) SET @TotalCaseSize = '77.00' DECLARE @OrderSize Decimal(4,0) SET @OrderSize = '7924' DECLARE @RestockIn Int32 SET @RestockIn = '0' DECLARE @IgnoredReason AnsiString(8000) SET @IgnoredReason = 'No latest image available Or temperature is Out of threshold :-999.00, Or Ignore Based On lastOrderDate :False ' DECLARE @PurityDateTime DateTime2 SET @PurityDateTime = '1/5/2024 12:00:00 AM' DECLARE @AssetPurityIds AnsiString(8000) SET @AssetPurityIds = '3390723,3390724' DECLARE @UniqueGuid AnsiString(8000) SET @UniqueGuid = 'BF17A666-7B6F-4BF4-9612-C2492E823CC8,278A4741-8F1A-4C67-808D-73C0400B2ABF' DECLARE @FinalMoQ Int32 SET @FinalMoQ = '5' DECLARE @FinalMoV Int32 SET @FinalMoV = '100' DECLARE @SuggestedOrderSize Decimal(4,0) SET @SuggestedOrderSize = '7924' DECLARE @SuggestedTotalCaseSize Decimal(4,2) SET @SuggestedTotalCaseSize = '77.00' DECLARE @OutletOccupancy Decimal(1,0) SET @OutletOccupancy = '0' DECLARE @LastMOVAndMOQDateTime DateTime2 SET @LastMOVAndMOQDateTime = '' INSERT INTO dbo.ScheduledOrder (LocationId, ReorderDate, OutOfStock, StatusId, TotalAssetCount, AssetCountWithOldImage, OrderMovementTypeId, TotalCaseSize, OrderSize, RestockIn, IgnoredReason, PurityDateTime, AssetPurityIds, UniqueGuid, FinalMoQ, FinalMoV, LastMOVAndMOQDateTime, SuggestedOrderSize, SuggestedTotalCaseSize, OutletOccupancy) VALUES (@LocationId, @ReorderDate, @OutOfStock, @StatusId, @TotalAssetCount, @AssetCountWithOldImage, @OrderMovementTypeId, @TotalCaseSize, @OrderSize, @RestockIn, @IgnoredReason, @PurityDateTime, @AssetPurityIds, @UniqueGuid, @FinalMoQ, @FinalMoV, @LastMOVAndMOQDateTime, @SuggestedOrderSize, @SuggestedTotalCaseSize, @OutletOccupancy);SELECT SCOPE_IDENTITY() 2025-12-25 21:37:21.0468 DFramework.Database.Query /* Time Taken: 1023*/ DECLARE @LocationId Int32 SET @LocationId = '363117' DECLARE @ReorderDate DateTime2 SET @ReorderDate = '12/26/2025 5:37:20 AM' DECLARE @StatusId Int32 SET @StatusId = '5486' DECLARE @OutOfStock Decimal(2,0) SET @OutOfStock = '65' DECLARE @TotalAssetCount Int32 SET @TotalAssetCount = '1' DECLARE @AssetCountWithOldImage Int32 SET @AssetCountWithOldImage = '1' DECLARE @OrderMovementTypeId Int32 SET @OrderMovementTypeId = '5538' DECLARE @TotalCaseSize Decimal(3,2) SET @TotalCaseSize = '3.00' DECLARE @OrderSize Decimal(3,0) SET @OrderSize = '949' DECLARE @RestockIn Int32 SET @RestockIn = '0' DECLARE @IgnoredReason AnsiString(8000) SET @IgnoredReason = 'No latest image available Or temperature is Out of threshold :, Or Ignore Based On lastOrderDate :False ' DECLARE @PurityDateTime DateTime2 SET @PurityDateTime = '5/14/2025 12:00:00 AM' DECLARE @AssetPurityIds AnsiString(8000) SET @AssetPurityIds = '3570810' DECLARE @UniqueGuid AnsiString(8000) SET @UniqueGuid = 'BA58384E-AB53-4A1C-8116-545DBF4114DC' DECLARE @FinalMoQ Int32 SET @FinalMoQ = '5' DECLARE @FinalMoV Int32 SET @FinalMoV = '100' DECLARE @SuggestedOrderSize Decimal(3,0) SET @SuggestedOrderSize = '949' DECLARE @SuggestedTotalCaseSize Decimal(3,2) SET @SuggestedTotalCaseSize = '3.00' DECLARE @OutletOccupancy Decimal(1,0) SET @OutletOccupancy = '0' DECLARE @LastMOVAndMOQDateTime DateTime2 SET @LastMOVAndMOQDateTime = '' INSERT INTO dbo.ScheduledOrder (LocationId, ReorderDate, OutOfStock, StatusId, TotalAssetCount, AssetCountWithOldImage, OrderMovementTypeId, TotalCaseSize, OrderSize, RestockIn, IgnoredReason, PurityDateTime, AssetPurityIds, UniqueGuid, FinalMoQ, FinalMoV, LastMOVAndMOQDateTime, SuggestedOrderSize, SuggestedTotalCaseSize, OutletOccupancy) VALUES (@LocationId, @ReorderDate, @OutOfStock, @StatusId, @TotalAssetCount, @AssetCountWithOldImage, @OrderMovementTypeId, @TotalCaseSize, @OrderSize, @RestockIn, @IgnoredReason, @PurityDateTime, @AssetPurityIds, @UniqueGuid, @FinalMoQ, @FinalMoV, @LastMOVAndMOQDateTime, @SuggestedOrderSize, @SuggestedTotalCaseSize, @OutletOccupancy);SELECT SCOPE_IDENTITY() 2025-12-25 21:37:23.7343 DFramework.Database.Query /* Time Taken: 1189*/ DECLARE @LocationId Int32 SET @LocationId = '363118' DECLARE @ReorderDate DateTime2 SET @ReorderDate = '12/26/2025 5:37:22 AM' DECLARE @StatusId Int32 SET @StatusId = '5486' DECLARE @OutOfStock Decimal(2,0) SET @OutOfStock = '71' DECLARE @TotalAssetCount Int32 SET @TotalAssetCount = '1' DECLARE @AssetCountWithOldImage Int32 SET @AssetCountWithOldImage = '1' DECLARE @OrderMovementTypeId Int32 SET @OrderMovementTypeId = '5538' DECLARE @TotalCaseSize Decimal(3,2) SET @TotalCaseSize = '5.00' DECLARE @OrderSize Decimal(3,0) SET @OrderSize = '949' DECLARE @RestockIn Int32 SET @RestockIn = '0' DECLARE @IgnoredReason AnsiString(8000) SET @IgnoredReason = 'No latest image available Or temperature is Out of threshold :-999.00, Or Ignore Based On lastOrderDate :False ' DECLARE @PurityDateTime DateTime2 SET @PurityDateTime = '1/30/2024 12:00:00 AM' DECLARE @AssetPurityIds AnsiString(8000) SET @AssetPurityIds = '3393318' DECLARE @UniqueGuid AnsiString(8000) SET @UniqueGuid = '2883D7DE-60B3-4221-9A4E-DF90B01E6223' DECLARE @FinalMoQ Int32 SET @FinalMoQ = '5' DECLARE @FinalMoV Int32 SET @FinalMoV = '100' DECLARE @SuggestedOrderSize Decimal(3,0) SET @SuggestedOrderSize = '949' DECLARE @SuggestedTotalCaseSize Decimal(3,2) SET @SuggestedTotalCaseSize = '5.00' DECLARE @OutletOccupancy Decimal(1,0) SET @OutletOccupancy = '0' DECLARE @LastMOVAndMOQDateTime DateTime2 SET @LastMOVAndMOQDateTime = '' INSERT INTO dbo.ScheduledOrder (LocationId, ReorderDate, OutOfStock, StatusId, TotalAssetCount, AssetCountWithOldImage, OrderMovementTypeId, TotalCaseSize, OrderSize, RestockIn, IgnoredReason, PurityDateTime, AssetPurityIds, UniqueGuid, FinalMoQ, FinalMoV, LastMOVAndMOQDateTime, SuggestedOrderSize, SuggestedTotalCaseSize, OutletOccupancy) VALUES (@LocationId, @ReorderDate, @OutOfStock, @StatusId, @TotalAssetCount, @AssetCountWithOldImage, @OrderMovementTypeId, @TotalCaseSize, @OrderSize, @RestockIn, @IgnoredReason, @PurityDateTime, @AssetPurityIds, @UniqueGuid, @FinalMoQ, @FinalMoV, @LastMOVAndMOQDateTime, @SuggestedOrderSize, @SuggestedTotalCaseSize, @OutletOccupancy);SELECT SCOPE_IDENTITY() 2025-12-25 21:37:27.6718 DFramework.Database.Query /* Time Taken: 1119*/ DECLARE @LocationId Int32 SET @LocationId = '363126' DECLARE @ReorderDate DateTime2 SET @ReorderDate = '12/26/2025 5:37:26 AM' DECLARE @StatusId Int32 SET @StatusId = '5486' DECLARE @OutOfStock Decimal(3,0) SET @OutOfStock = '100' DECLARE @TotalAssetCount Int32 SET @TotalAssetCount = '1' DECLARE @AssetCountWithOldImage Int32 SET @AssetCountWithOldImage = '1' DECLARE @OrderMovementTypeId Int32 SET @OrderMovementTypeId = '5538' DECLARE @TotalCaseSize Decimal(3,2) SET @TotalCaseSize = '4.00' DECLARE @OrderSize Decimal(3,0) SET @OrderSize = '881' DECLARE @RestockIn Int32 SET @RestockIn = '0' DECLARE @IgnoredReason AnsiString(8000) SET @IgnoredReason = 'No latest image available Or temperature is Out of threshold :-999.00, Or Ignore Based On lastOrderDate :False ' DECLARE @PurityDateTime DateTime2 SET @PurityDateTime = '4/24/2024 12:00:00 AM' DECLARE @AssetPurityIds AnsiString(8000) SET @AssetPurityIds = '3399312,3399311' DECLARE @UniqueGuid AnsiString(8000) SET @UniqueGuid = 'F54CAFF9-970E-47B8-A940-D7AC8264647E,4A9B4F49-2B00-434C-8AA2-AFCA689F5DF7' DECLARE @FinalMoQ Int32 SET @FinalMoQ = '5' DECLARE @FinalMoV Int32 SET @FinalMoV = '100' DECLARE @SuggestedOrderSize Decimal(3,0) SET @SuggestedOrderSize = '881' DECLARE @SuggestedTotalCaseSize Decimal(3,2) SET @SuggestedTotalCaseSize = '4.00' DECLARE @OutletOccupancy Decimal(1,0) SET @OutletOccupancy = '0' DECLARE @LastMOVAndMOQDateTime DateTime2 SET @LastMOVAndMOQDateTime = '4/24/2024 1:15:01 PM' INSERT INTO dbo.ScheduledOrder (LocationId, ReorderDate, OutOfStock, StatusId, TotalAssetCount, AssetCountWithOldImage, OrderMovementTypeId, TotalCaseSize, OrderSize, RestockIn, IgnoredReason, PurityDateTime, AssetPurityIds, UniqueGuid, FinalMoQ, FinalMoV, LastMOVAndMOQDateTime, SuggestedOrderSize, SuggestedTotalCaseSize, OutletOccupancy) VALUES (@LocationId, @ReorderDate, @OutOfStock, @StatusId, @TotalAssetCount, @AssetCountWithOldImage, @OrderMovementTypeId, @TotalCaseSize, @OrderSize, @RestockIn, @IgnoredReason, @PurityDateTime, @AssetPurityIds, @UniqueGuid, @FinalMoQ, @FinalMoV, @LastMOVAndMOQDateTime, @SuggestedOrderSize, @SuggestedTotalCaseSize, @OutletOccupancy);SELECT SCOPE_IDENTITY() 2025-12-25 21:37:29.9687 DFramework.Database.Query /* Time Taken: 1286*/ DECLARE @LocationId Int32 SET @LocationId = '363127' DECLARE @ReorderDate DateTime2 SET @ReorderDate = '12/26/2025 5:37:28 AM' DECLARE @StatusId Int32 SET @StatusId = '5486' DECLARE @OutOfStock Decimal(3,0) SET @OutOfStock = '100' DECLARE @TotalAssetCount Int32 SET @TotalAssetCount = '1' DECLARE @AssetCountWithOldImage Int32 SET @AssetCountWithOldImage = '1' DECLARE @OrderMovementTypeId Int32 SET @OrderMovementTypeId = '5538' DECLARE @TotalCaseSize Decimal(4,2) SET @TotalCaseSize = '32.00' DECLARE @OrderSize Decimal(4,0) SET @OrderSize = '1419' DECLARE @RestockIn Int32 SET @RestockIn = '0' DECLARE @IgnoredReason AnsiString(8000) SET @IgnoredReason = 'No latest image available Or temperature is Out of threshold :-999.00, Or Ignore Based On lastOrderDate :False ' DECLARE @PurityDateTime DateTime2 SET @PurityDateTime = '6/5/2024 12:00:00 AM' DECLARE @AssetPurityIds AnsiString(8000) SET @AssetPurityIds = '3400895' DECLARE @UniqueGuid AnsiString(8000) SET @UniqueGuid = 'F14BA1F3-7EBC-43DC-846D-288CE9292B61' DECLARE @FinalMoQ Int32 SET @FinalMoQ = '5' DECLARE @FinalMoV Int32 SET @FinalMoV = '100' DECLARE @SuggestedOrderSize Decimal(4,0) SET @SuggestedOrderSize = '1419' DECLARE @SuggestedTotalCaseSize Decimal(4,2) SET @SuggestedTotalCaseSize = '32.00' DECLARE @OutletOccupancy Decimal(1,0) SET @OutletOccupancy = '0' DECLARE @LastMOVAndMOQDateTime DateTime2 SET @LastMOVAndMOQDateTime = '6/5/2024 2:38:29 PM' INSERT INTO dbo.ScheduledOrder (LocationId, ReorderDate, OutOfStock, StatusId, TotalAssetCount, AssetCountWithOldImage, OrderMovementTypeId, TotalCaseSize, OrderSize, RestockIn, IgnoredReason, PurityDateTime, AssetPurityIds, UniqueGuid, FinalMoQ, FinalMoV, LastMOVAndMOQDateTime, SuggestedOrderSize, SuggestedTotalCaseSize, OutletOccupancy) VALUES (@LocationId, @ReorderDate, @OutOfStock, @StatusId, @TotalAssetCount, @AssetCountWithOldImage, @OrderMovementTypeId, @TotalCaseSize, @OrderSize, @RestockIn, @IgnoredReason, @PurityDateTime, @AssetPurityIds, @UniqueGuid, @FinalMoQ, @FinalMoV, @LastMOVAndMOQDateTime, @SuggestedOrderSize, @SuggestedTotalCaseSize, @OutletOccupancy);SELECT SCOPE_IDENTITY() 2025-12-25 21:37:33.0937 DFramework.Database.Query /* Time Taken: 1154*/ DECLARE @LocationId Int32 SET @LocationId = '363128' DECLARE @ReorderDate DateTime2 SET @ReorderDate = '12/26/2025 5:37:31 AM' DECLARE @StatusId Int32 SET @StatusId = '5486' DECLARE @OutOfStock Decimal(2,0) SET @OutOfStock = '38' DECLARE @TotalAssetCount Int32 SET @TotalAssetCount = '1' DECLARE @AssetCountWithOldImage Int32 SET @AssetCountWithOldImage = '1' DECLARE @OrderMovementTypeId Int32 SET @OrderMovementTypeId = '5538' DECLARE @TotalCaseSize Decimal(3,2) SET @TotalCaseSize = '1.00' DECLARE @OrderSize Decimal(3,0) SET @OrderSize = '120' DECLARE @RestockIn Int32 SET @RestockIn = '0' DECLARE @IgnoredReason AnsiString(8000) SET @IgnoredReason = 'No latest image available Or temperature is Out of threshold :-999.00, Or Ignore Based On lastOrderDate :False ' DECLARE @PurityDateTime DateTime2 SET @PurityDateTime = '1/10/2024 12:00:00 AM' DECLARE @AssetPurityIds AnsiString(8000) SET @AssetPurityIds = '3391408' DECLARE @UniqueGuid AnsiString(8000) SET @UniqueGuid = '58E07208-C0C9-4ED5-A39A-8B1AD6208AAD' DECLARE @FinalMoQ Int32 SET @FinalMoQ = '5' DECLARE @FinalMoV Int32 SET @FinalMoV = '100' DECLARE @SuggestedOrderSize Decimal(3,0) SET @SuggestedOrderSize = '120' DECLARE @SuggestedTotalCaseSize Decimal(3,2) SET @SuggestedTotalCaseSize = '1.00' DECLARE @OutletOccupancy Decimal(1,0) SET @OutletOccupancy = '0' DECLARE @LastMOVAndMOQDateTime DateTime2 SET @LastMOVAndMOQDateTime = '' INSERT INTO dbo.ScheduledOrder (LocationId, ReorderDate, OutOfStock, StatusId, TotalAssetCount, AssetCountWithOldImage, OrderMovementTypeId, TotalCaseSize, OrderSize, RestockIn, IgnoredReason, PurityDateTime, AssetPurityIds, UniqueGuid, FinalMoQ, FinalMoV, LastMOVAndMOQDateTime, SuggestedOrderSize, SuggestedTotalCaseSize, OutletOccupancy) VALUES (@LocationId, @ReorderDate, @OutOfStock, @StatusId, @TotalAssetCount, @AssetCountWithOldImage, @OrderMovementTypeId, @TotalCaseSize, @OrderSize, @RestockIn, @IgnoredReason, @PurityDateTime, @AssetPurityIds, @UniqueGuid, @FinalMoQ, @FinalMoV, @LastMOVAndMOQDateTime, @SuggestedOrderSize, @SuggestedTotalCaseSize, @OutletOccupancy);SELECT SCOPE_IDENTITY() 2025-12-25 21:37:34.8906 DFramework.Database.Query /* Time Taken: 1086*/ DECLARE @LocationId Int32 SET @LocationId = '363132' DECLARE @ReorderDate DateTime2 SET @ReorderDate = '12/26/2025 5:37:33 AM' DECLARE @StatusId Int32 SET @StatusId = '5486' DECLARE @OutOfStock Decimal(3,0) SET @OutOfStock = '100' DECLARE @TotalAssetCount Int32 SET @TotalAssetCount = '1' DECLARE @AssetCountWithOldImage Int32 SET @AssetCountWithOldImage = '1' DECLARE @OrderMovementTypeId Int32 SET @OrderMovementTypeId = '5538' DECLARE @TotalCaseSize Decimal(2,2) SET @TotalCaseSize = '0.00' DECLARE @OrderSize Decimal(1,0) SET @OrderSize = '0' DECLARE @RestockIn Int32 SET @RestockIn = '0' DECLARE @IgnoredReason AnsiString(8000) SET @IgnoredReason = 'No latest image available Or temperature is Out of threshold :-999.00, Or Ignore Based On lastOrderDate :False ' DECLARE @PurityDateTime DateTime2 SET @PurityDateTime = '1/18/2024 12:00:00 AM' DECLARE @AssetPurityIds AnsiString(8000) SET @AssetPurityIds = '3392399,3392238' DECLARE @UniqueGuid AnsiString(8000) SET @UniqueGuid = '76833FD1-FFD3-4892-87AF-3215F1ACC72B,995EB535-65A0-4E7C-8704-8563C6857884' DECLARE @FinalMoQ Int32 SET @FinalMoQ = '5' DECLARE @FinalMoV Int32 SET @FinalMoV = '100' DECLARE @SuggestedOrderSize Decimal(1,0) SET @SuggestedOrderSize = '0' DECLARE @SuggestedTotalCaseSize Decimal(2,2) SET @SuggestedTotalCaseSize = '0.00' DECLARE @OutletOccupancy Decimal(1,0) SET @OutletOccupancy = '0' DECLARE @LastMOVAndMOQDateTime DateTime2 SET @LastMOVAndMOQDateTime = '' INSERT INTO dbo.ScheduledOrder (LocationId, ReorderDate, OutOfStock, StatusId, TotalAssetCount, AssetCountWithOldImage, OrderMovementTypeId, TotalCaseSize, OrderSize, RestockIn, IgnoredReason, PurityDateTime, AssetPurityIds, UniqueGuid, FinalMoQ, FinalMoV, LastMOVAndMOQDateTime, SuggestedOrderSize, SuggestedTotalCaseSize, OutletOccupancy) VALUES (@LocationId, @ReorderDate, @OutOfStock, @StatusId, @TotalAssetCount, @AssetCountWithOldImage, @OrderMovementTypeId, @TotalCaseSize, @OrderSize, @RestockIn, @IgnoredReason, @PurityDateTime, @AssetPurityIds, @UniqueGuid, @FinalMoQ, @FinalMoV, @LastMOVAndMOQDateTime, @SuggestedOrderSize, @SuggestedTotalCaseSize, @OutletOccupancy);SELECT SCOPE_IDENTITY() 2025-12-25 21:37:36.4687 DFramework.Database.Query /* Time Taken: 1285*/ DECLARE @LocationId Int32 SET @LocationId = '363133' DECLARE @ReorderDate DateTime2 SET @ReorderDate = '12/26/2025 5:37:35 AM' DECLARE @StatusId Int32 SET @StatusId = '5486' DECLARE @OutOfStock Decimal(3,0) SET @OutOfStock = '100' DECLARE @TotalAssetCount Int32 SET @TotalAssetCount = '1' DECLARE @AssetCountWithOldImage Int32 SET @AssetCountWithOldImage = '1' DECLARE @OrderMovementTypeId Int32 SET @OrderMovementTypeId = '5538' DECLARE @TotalCaseSize Decimal(3,2) SET @TotalCaseSize = '2.00' DECLARE @OrderSize Decimal(3,0) SET @OrderSize = '650' DECLARE @RestockIn Int32 SET @RestockIn = '0' DECLARE @IgnoredReason AnsiString(8000) SET @IgnoredReason = 'No latest image available Or temperature is Out of threshold :-999.00, Or Ignore Based On lastOrderDate :False ' DECLARE @PurityDateTime DateTime2 SET @PurityDateTime = '1/11/2024 12:00:00 AM' DECLARE @AssetPurityIds AnsiString(8000) SET @AssetPurityIds = '3391560' DECLARE @UniqueGuid AnsiString(8000) SET @UniqueGuid = 'C1C8B80B-C7D1-44E2-93FB-706A559551E7' DECLARE @FinalMoQ Int32 SET @FinalMoQ = '5' DECLARE @FinalMoV Int32 SET @FinalMoV = '100' DECLARE @SuggestedOrderSize Decimal(3,0) SET @SuggestedOrderSize = '650' DECLARE @SuggestedTotalCaseSize Decimal(3,2) SET @SuggestedTotalCaseSize = '2.00' DECLARE @OutletOccupancy Decimal(1,0) SET @OutletOccupancy = '0' DECLARE @LastMOVAndMOQDateTime DateTime2 SET @LastMOVAndMOQDateTime = '' INSERT INTO dbo.ScheduledOrder (LocationId, ReorderDate, OutOfStock, StatusId, TotalAssetCount, AssetCountWithOldImage, OrderMovementTypeId, TotalCaseSize, OrderSize, RestockIn, IgnoredReason, PurityDateTime, AssetPurityIds, UniqueGuid, FinalMoQ, FinalMoV, LastMOVAndMOQDateTime, SuggestedOrderSize, SuggestedTotalCaseSize, OutletOccupancy) VALUES (@LocationId, @ReorderDate, @OutOfStock, @StatusId, @TotalAssetCount, @AssetCountWithOldImage, @OrderMovementTypeId, @TotalCaseSize, @OrderSize, @RestockIn, @IgnoredReason, @PurityDateTime, @AssetPurityIds, @UniqueGuid, @FinalMoQ, @FinalMoV, @LastMOVAndMOQDateTime, @SuggestedOrderSize, @SuggestedTotalCaseSize, @OutletOccupancy);SELECT SCOPE_IDENTITY() 2025-12-25 21:37:38.4219 DFramework.Database.Query /* Time Taken: 1193*/ DECLARE @LocationId Int32 SET @LocationId = '363135' DECLARE @ReorderDate DateTime2 SET @ReorderDate = '12/26/2025 5:37:37 AM' DECLARE @StatusId Int32 SET @StatusId = '5486' DECLARE @OutOfStock Decimal(3,0) SET @OutOfStock = '100' DECLARE @TotalAssetCount Int32 SET @TotalAssetCount = '1' DECLARE @AssetCountWithOldImage Int32 SET @AssetCountWithOldImage = '1' DECLARE @OrderMovementTypeId Int32 SET @OrderMovementTypeId = '5538' DECLARE @TotalCaseSize Decimal(4,2) SET @TotalCaseSize = '46.00' DECLARE @OrderSize Decimal(4,0) SET @OrderSize = '7379' DECLARE @RestockIn Int32 SET @RestockIn = '0' DECLARE @IgnoredReason AnsiString(8000) SET @IgnoredReason = 'No latest image available Or temperature is Out of threshold :-999.00, Or Ignore Based On lastOrderDate :False ' DECLARE @PurityDateTime DateTime2 SET @PurityDateTime = '1/10/2024 12:00:00 AM' DECLARE @AssetPurityIds AnsiString(8000) SET @AssetPurityIds = '3391524' DECLARE @UniqueGuid AnsiString(8000) SET @UniqueGuid = '9C2929C3-C77C-4360-B1E6-89910AD417FE' DECLARE @FinalMoQ Int32 SET @FinalMoQ = '5' DECLARE @FinalMoV Int32 SET @FinalMoV = '100' DECLARE @SuggestedOrderSize Decimal(4,0) SET @SuggestedOrderSize = '7379' DECLARE @SuggestedTotalCaseSize Decimal(4,2) SET @SuggestedTotalCaseSize = '46.00' DECLARE @OutletOccupancy Decimal(1,0) SET @OutletOccupancy = '0' DECLARE @LastMOVAndMOQDateTime DateTime2 SET @LastMOVAndMOQDateTime = '' INSERT INTO dbo.ScheduledOrder (LocationId, ReorderDate, OutOfStock, StatusId, TotalAssetCount, AssetCountWithOldImage, OrderMovementTypeId, TotalCaseSize, OrderSize, RestockIn, IgnoredReason, PurityDateTime, AssetPurityIds, UniqueGuid, FinalMoQ, FinalMoV, LastMOVAndMOQDateTime, SuggestedOrderSize, SuggestedTotalCaseSize, OutletOccupancy) VALUES (@LocationId, @ReorderDate, @OutOfStock, @StatusId, @TotalAssetCount, @AssetCountWithOldImage, @OrderMovementTypeId, @TotalCaseSize, @OrderSize, @RestockIn, @IgnoredReason, @PurityDateTime, @AssetPurityIds, @UniqueGuid, @FinalMoQ, @FinalMoV, @LastMOVAndMOQDateTime, @SuggestedOrderSize, @SuggestedTotalCaseSize, @OutletOccupancy);SELECT SCOPE_IDENTITY() 2025-12-25 21:37:47.4532 DFramework.Database.Query /* Time Taken: 882*/ DECLARE @LocationId Int32 SET @LocationId = '363144' DECLARE @ReorderDate DateTime2 SET @ReorderDate = '12/26/2025 5:37:46 AM' DECLARE @StatusId Int32 SET @StatusId = '5486' DECLARE @OutOfStock Decimal(3,0) SET @OutOfStock = '100' DECLARE @TotalAssetCount Int32 SET @TotalAssetCount = '1' DECLARE @AssetCountWithOldImage Int32 SET @AssetCountWithOldImage = '1' DECLARE @OrderMovementTypeId Int32 SET @OrderMovementTypeId = '5538' DECLARE @TotalCaseSize Decimal(3,2) SET @TotalCaseSize = '9.00' DECLARE @OrderSize Decimal(4,0) SET @OrderSize = '3283' DECLARE @RestockIn Int32 SET @RestockIn = '0' DECLARE @IgnoredReason AnsiString(8000) SET @IgnoredReason = 'No latest image available Or temperature is Out of threshold :-999.00, Or Ignore Based On lastOrderDate :False ' DECLARE @PurityDateTime DateTime2 SET @PurityDateTime = '5/18/2025 12:00:00 AM' DECLARE @AssetPurityIds AnsiString(8000) SET @AssetPurityIds = '3572033' DECLARE @UniqueGuid AnsiString(8000) SET @UniqueGuid = 'B988E6EB-2F6F-469D-8DEB-6E7A516C39CF' DECLARE @FinalMoQ Int32 SET @FinalMoQ = '5' DECLARE @FinalMoV Int32 SET @FinalMoV = '100' DECLARE @SuggestedOrderSize Decimal(4,0) SET @SuggestedOrderSize = '3283' DECLARE @SuggestedTotalCaseSize Decimal(3,2) SET @SuggestedTotalCaseSize = '9.00' DECLARE @OutletOccupancy Decimal(1,0) SET @OutletOccupancy = '0' DECLARE @LastMOVAndMOQDateTime DateTime2 SET @LastMOVAndMOQDateTime = '5/18/2025 5:21:09 PM' INSERT INTO dbo.ScheduledOrder (LocationId, ReorderDate, OutOfStock, StatusId, TotalAssetCount, AssetCountWithOldImage, OrderMovementTypeId, TotalCaseSize, OrderSize, RestockIn, IgnoredReason, PurityDateTime, AssetPurityIds, UniqueGuid, FinalMoQ, FinalMoV, LastMOVAndMOQDateTime, SuggestedOrderSize, SuggestedTotalCaseSize, OutletOccupancy) VALUES (@LocationId, @ReorderDate, @OutOfStock, @StatusId, @TotalAssetCount, @AssetCountWithOldImage, @OrderMovementTypeId, @TotalCaseSize, @OrderSize, @RestockIn, @IgnoredReason, @PurityDateTime, @AssetPurityIds, @UniqueGuid, @FinalMoQ, @FinalMoV, @LastMOVAndMOQDateTime, @SuggestedOrderSize, @SuggestedTotalCaseSize, @OutletOccupancy);SELECT SCOPE_IDENTITY() 2025-12-25 21:37:51.0157 DFramework.Database.Query /* Time Taken: 1084*/ DECLARE @LocationId Int32 SET @LocationId = '363145' DECLARE @ReorderDate DateTime2 SET @ReorderDate = '12/26/2025 5:37:49 AM' DECLARE @StatusId Int32 SET @StatusId = '5486' DECLARE @OutOfStock Decimal(2,0) SET @OutOfStock = '22' DECLARE @TotalAssetCount Int32 SET @TotalAssetCount = '1' DECLARE @AssetCountWithOldImage Int32 SET @AssetCountWithOldImage = '1' DECLARE @OrderMovementTypeId Int32 SET @OrderMovementTypeId = '5538' DECLARE @TotalCaseSize Decimal(3,2) SET @TotalCaseSize = '2.00' DECLARE @OrderSize Decimal(3,0) SET @OrderSize = '699' DECLARE @RestockIn Int32 SET @RestockIn = '0' DECLARE @IgnoredReason AnsiString(8000) SET @IgnoredReason = 'No latest image available Or temperature is Out of threshold :-999.00, Or Ignore Based On lastOrderDate :False ' DECLARE @PurityDateTime DateTime2 SET @PurityDateTime = '4/15/2025 12:00:00 AM' DECLARE @AssetPurityIds AnsiString(8000) SET @AssetPurityIds = '3543530,3543531' DECLARE @UniqueGuid AnsiString(8000) SET @UniqueGuid = '254E9B6C-1DF1-44CA-B360-049B44FCCCED,94E73D0C-FCB3-4557-8018-773FB064C4C1' DECLARE @FinalMoQ Int32 SET @FinalMoQ = '5' DECLARE @FinalMoV Int32 SET @FinalMoV = '100' DECLARE @SuggestedOrderSize Decimal(3,0) SET @SuggestedOrderSize = '699' DECLARE @SuggestedTotalCaseSize Decimal(3,2) SET @SuggestedTotalCaseSize = '2.00' DECLARE @OutletOccupancy Decimal(1,0) SET @OutletOccupancy = '0' DECLARE @LastMOVAndMOQDateTime DateTime2 SET @LastMOVAndMOQDateTime = '' INSERT INTO dbo.ScheduledOrder (LocationId, ReorderDate, OutOfStock, StatusId, TotalAssetCount, AssetCountWithOldImage, OrderMovementTypeId, TotalCaseSize, OrderSize, RestockIn, IgnoredReason, PurityDateTime, AssetPurityIds, UniqueGuid, FinalMoQ, FinalMoV, LastMOVAndMOQDateTime, SuggestedOrderSize, SuggestedTotalCaseSize, OutletOccupancy) VALUES (@LocationId, @ReorderDate, @OutOfStock, @StatusId, @TotalAssetCount, @AssetCountWithOldImage, @OrderMovementTypeId, @TotalCaseSize, @OrderSize, @RestockIn, @IgnoredReason, @PurityDateTime, @AssetPurityIds, @UniqueGuid, @FinalMoQ, @FinalMoV, @LastMOVAndMOQDateTime, @SuggestedOrderSize, @SuggestedTotalCaseSize, @OutletOccupancy);SELECT SCOPE_IDENTITY() 2025-12-25 21:37:53.1720 DFramework.Database.Query /* Time Taken: 1160*/ DECLARE @LocationId Int32 SET @LocationId = '363200' DECLARE @ReorderDate DateTime2 SET @ReorderDate = '12/26/2025 5:37:52 AM' DECLARE @StatusId Int32 SET @StatusId = '5486' DECLARE @OutOfStock Decimal(2,0) SET @OutOfStock = '88' DECLARE @TotalAssetCount Int32 SET @TotalAssetCount = '1' DECLARE @AssetCountWithOldImage Int32 SET @AssetCountWithOldImage = '1' DECLARE @OrderMovementTypeId Int32 SET @OrderMovementTypeId = '5538' DECLARE @TotalCaseSize Decimal(3,2) SET @TotalCaseSize = '2.00' DECLARE @OrderSize Decimal(3,0) SET @OrderSize = '460' DECLARE @RestockIn Int32 SET @RestockIn = '0' DECLARE @IgnoredReason AnsiString(8000) SET @IgnoredReason = 'No latest image available Or temperature is Out of threshold :-999.00, Or Ignore Based On lastOrderDate :False ' DECLARE @PurityDateTime DateTime2 SET @PurityDateTime = '1/19/2024 12:00:00 AM' DECLARE @AssetPurityIds AnsiString(8000) SET @AssetPurityIds = '3392506' DECLARE @UniqueGuid AnsiString(8000) SET @UniqueGuid = '82C7D6B9-8BB1-49BA-AB85-FB4AC50C700D' DECLARE @FinalMoQ Int32 SET @FinalMoQ = '5' DECLARE @FinalMoV Int32 SET @FinalMoV = '100' DECLARE @SuggestedOrderSize Decimal(3,0) SET @SuggestedOrderSize = '460' DECLARE @SuggestedTotalCaseSize Decimal(3,2) SET @SuggestedTotalCaseSize = '2.00' DECLARE @OutletOccupancy Decimal(1,0) SET @OutletOccupancy = '0' DECLARE @LastMOVAndMOQDateTime DateTime2 SET @LastMOVAndMOQDateTime = '' INSERT INTO dbo.ScheduledOrder (LocationId, ReorderDate, OutOfStock, StatusId, TotalAssetCount, AssetCountWithOldImage, OrderMovementTypeId, TotalCaseSize, OrderSize, RestockIn, IgnoredReason, PurityDateTime, AssetPurityIds, UniqueGuid, FinalMoQ, FinalMoV, LastMOVAndMOQDateTime, SuggestedOrderSize, SuggestedTotalCaseSize, OutletOccupancy) VALUES (@LocationId, @ReorderDate, @OutOfStock, @StatusId, @TotalAssetCount, @AssetCountWithOldImage, @OrderMovementTypeId, @TotalCaseSize, @OrderSize, @RestockIn, @IgnoredReason, @PurityDateTime, @AssetPurityIds, @UniqueGuid, @FinalMoQ, @FinalMoV, @LastMOVAndMOQDateTime, @SuggestedOrderSize, @SuggestedTotalCaseSize, @OutletOccupancy);SELECT SCOPE_IDENTITY() 2025-12-25 21:37:55.8439 DFramework.Database.Query /* Time Taken: 1816*/ DECLARE @LocationId Int32 SET @LocationId = '363204' DECLARE @ReorderDate DateTime2 SET @ReorderDate = '12/26/2025 5:37:54 AM' DECLARE @StatusId Int32 SET @StatusId = '5486' DECLARE @OutOfStock Decimal(3,0) SET @OutOfStock = '100' DECLARE @TotalAssetCount Int32 SET @TotalAssetCount = '1' DECLARE @AssetCountWithOldImage Int32 SET @AssetCountWithOldImage = '1' DECLARE @OrderMovementTypeId Int32 SET @OrderMovementTypeId = '5538' DECLARE @TotalCaseSize Decimal(3,2) SET @TotalCaseSize = '1.00' DECLARE @OrderSize Decimal(3,0) SET @OrderSize = '150' DECLARE @RestockIn Int32 SET @RestockIn = '0' DECLARE @IgnoredReason AnsiString(8000) SET @IgnoredReason = 'No latest image available Or temperature is Out of threshold :-999.00, Or Ignore Based On lastOrderDate :False ' DECLARE @PurityDateTime DateTime2 SET @PurityDateTime = '5/11/2025 12:00:00 AM' DECLARE @AssetPurityIds AnsiString(8000) SET @AssetPurityIds = '3570565' DECLARE @UniqueGuid AnsiString(8000) SET @UniqueGuid = '7D0BB05C-DB6C-435C-9D59-1F796D4E1030' DECLARE @FinalMoQ Int32 SET @FinalMoQ = '5' DECLARE @FinalMoV Int32 SET @FinalMoV = '100' DECLARE @SuggestedOrderSize Decimal(3,0) SET @SuggestedOrderSize = '150' DECLARE @SuggestedTotalCaseSize Decimal(3,2) SET @SuggestedTotalCaseSize = '1.00' DECLARE @OutletOccupancy Decimal(1,0) SET @OutletOccupancy = '0' DECLARE @LastMOVAndMOQDateTime DateTime2 SET @LastMOVAndMOQDateTime = '' INSERT INTO dbo.ScheduledOrder (LocationId, ReorderDate, OutOfStock, StatusId, TotalAssetCount, AssetCountWithOldImage, OrderMovementTypeId, TotalCaseSize, OrderSize, RestockIn, IgnoredReason, PurityDateTime, AssetPurityIds, UniqueGuid, FinalMoQ, FinalMoV, LastMOVAndMOQDateTime, SuggestedOrderSize, SuggestedTotalCaseSize, OutletOccupancy) VALUES (@LocationId, @ReorderDate, @OutOfStock, @StatusId, @TotalAssetCount, @AssetCountWithOldImage, @OrderMovementTypeId, @TotalCaseSize, @OrderSize, @RestockIn, @IgnoredReason, @PurityDateTime, @AssetPurityIds, @UniqueGuid, @FinalMoQ, @FinalMoV, @LastMOVAndMOQDateTime, @SuggestedOrderSize, @SuggestedTotalCaseSize, @OutletOccupancy);SELECT SCOPE_IDENTITY() 2025-12-25 21:37:57.7189 DFramework.Database.Query /* Time Taken: 1254*/ DECLARE @LocationId Int32 SET @LocationId = '363207' DECLARE @ReorderDate DateTime2 SET @ReorderDate = '12/26/2025 5:37:56 AM' DECLARE @StatusId Int32 SET @StatusId = '5486' DECLARE @OutOfStock Decimal(3,0) SET @OutOfStock = '100' DECLARE @TotalAssetCount Int32 SET @TotalAssetCount = '1' DECLARE @AssetCountWithOldImage Int32 SET @AssetCountWithOldImage = '1' DECLARE @OrderMovementTypeId Int32 SET @OrderMovementTypeId = '5538' DECLARE @TotalCaseSize Decimal(3,2) SET @TotalCaseSize = '2.00' DECLARE @OrderSize Decimal(3,0) SET @OrderSize = '441' DECLARE @RestockIn Int32 SET @RestockIn = '0' DECLARE @IgnoredReason AnsiString(8000) SET @IgnoredReason = 'No latest image available Or temperature is Out of threshold :-999.00, Or Ignore Based On lastOrderDate :False ' DECLARE @PurityDateTime DateTime2 SET @PurityDateTime = '1/31/2024 12:00:00 AM' DECLARE @AssetPurityIds AnsiString(8000) SET @AssetPurityIds = '3393398' DECLARE @UniqueGuid AnsiString(8000) SET @UniqueGuid = '1CE62E4C-1362-4E7F-A83B-95DA9F937F5A' DECLARE @FinalMoQ Int32 SET @FinalMoQ = '5' DECLARE @FinalMoV Int32 SET @FinalMoV = '100' DECLARE @SuggestedOrderSize Decimal(3,0) SET @SuggestedOrderSize = '441' DECLARE @SuggestedTotalCaseSize Decimal(3,2) SET @SuggestedTotalCaseSize = '2.00' DECLARE @OutletOccupancy Decimal(1,0) SET @OutletOccupancy = '0' DECLARE @LastMOVAndMOQDateTime DateTime2 SET @LastMOVAndMOQDateTime = '' INSERT INTO dbo.ScheduledOrder (LocationId, ReorderDate, OutOfStock, StatusId, TotalAssetCount, AssetCountWithOldImage, OrderMovementTypeId, TotalCaseSize, OrderSize, RestockIn, IgnoredReason, PurityDateTime, AssetPurityIds, UniqueGuid, FinalMoQ, FinalMoV, LastMOVAndMOQDateTime, SuggestedOrderSize, SuggestedTotalCaseSize, OutletOccupancy) VALUES (@LocationId, @ReorderDate, @OutOfStock, @StatusId, @TotalAssetCount, @AssetCountWithOldImage, @OrderMovementTypeId, @TotalCaseSize, @OrderSize, @RestockIn, @IgnoredReason, @PurityDateTime, @AssetPurityIds, @UniqueGuid, @FinalMoQ, @FinalMoV, @LastMOVAndMOQDateTime, @SuggestedOrderSize, @SuggestedTotalCaseSize, @OutletOccupancy);SELECT SCOPE_IDENTITY() 2025-12-25 21:37:59.6095 DFramework.Database.Query /* Time Taken: 1172*/ DECLARE @LocationId Int32 SET @LocationId = '363208' DECLARE @ReorderDate DateTime2 SET @ReorderDate = '12/26/2025 5:37:58 AM' DECLARE @StatusId Int32 SET @StatusId = '5486' DECLARE @OutOfStock Decimal(3,0) SET @OutOfStock = '100' DECLARE @TotalAssetCount Int32 SET @TotalAssetCount = '1' DECLARE @AssetCountWithOldImage Int32 SET @AssetCountWithOldImage = '1' DECLARE @OrderMovementTypeId Int32 SET @OrderMovementTypeId = '5538' DECLARE @TotalCaseSize Decimal(3,2) SET @TotalCaseSize = '3.00' DECLARE @OrderSize Decimal(3,0) SET @OrderSize = '560' DECLARE @RestockIn Int32 SET @RestockIn = '0' DECLARE @IgnoredReason AnsiString(8000) SET @IgnoredReason = 'No latest image available Or temperature is Out of threshold :-999.00, Or Ignore Based On lastOrderDate :False ' DECLARE @PurityDateTime DateTime2 SET @PurityDateTime = '1/31/2024 12:00:00 AM' DECLARE @AssetPurityIds AnsiString(8000) SET @AssetPurityIds = '3393397' DECLARE @UniqueGuid AnsiString(8000) SET @UniqueGuid = '7738BF8B-3C96-4D2E-9F93-0858F2956D40' DECLARE @FinalMoQ Int32 SET @FinalMoQ = '5' DECLARE @FinalMoV Int32 SET @FinalMoV = '100' DECLARE @SuggestedOrderSize Decimal(3,0) SET @SuggestedOrderSize = '560' DECLARE @SuggestedTotalCaseSize Decimal(3,2) SET @SuggestedTotalCaseSize = '3.00' DECLARE @OutletOccupancy Decimal(1,0) SET @OutletOccupancy = '0' DECLARE @LastMOVAndMOQDateTime DateTime2 SET @LastMOVAndMOQDateTime = '' INSERT INTO dbo.ScheduledOrder (LocationId, ReorderDate, OutOfStock, StatusId, TotalAssetCount, AssetCountWithOldImage, OrderMovementTypeId, TotalCaseSize, OrderSize, RestockIn, IgnoredReason, PurityDateTime, AssetPurityIds, UniqueGuid, FinalMoQ, FinalMoV, LastMOVAndMOQDateTime, SuggestedOrderSize, SuggestedTotalCaseSize, OutletOccupancy) VALUES (@LocationId, @ReorderDate, @OutOfStock, @StatusId, @TotalAssetCount, @AssetCountWithOldImage, @OrderMovementTypeId, @TotalCaseSize, @OrderSize, @RestockIn, @IgnoredReason, @PurityDateTime, @AssetPurityIds, @UniqueGuid, @FinalMoQ, @FinalMoV, @LastMOVAndMOQDateTime, @SuggestedOrderSize, @SuggestedTotalCaseSize, @OutletOccupancy);SELECT SCOPE_IDENTITY() 2025-12-25 21:38:01.6095 DFramework.Database.Query /* Time Taken: 889*/ DECLARE @LocationId Int32 SET @LocationId = '363209' DECLARE @ReorderDate DateTime2 SET @ReorderDate = '12/26/2025 5:38:00 AM' DECLARE @StatusId Int32 SET @StatusId = '5486' DECLARE @OutOfStock Decimal(2,0) SET @OutOfStock = '11' DECLARE @TotalAssetCount Int32 SET @TotalAssetCount = '1' DECLARE @AssetCountWithOldImage Int32 SET @AssetCountWithOldImage = '1' DECLARE @OrderMovementTypeId Int32 SET @OrderMovementTypeId = '5538' DECLARE @TotalCaseSize Decimal(2,2) SET @TotalCaseSize = '0.00' DECLARE @OrderSize Decimal(1,0) SET @OrderSize = '0' DECLARE @RestockIn Int32 SET @RestockIn = '0' DECLARE @IgnoredReason AnsiString(8000) SET @IgnoredReason = 'No latest image available Or temperature is Out of threshold :-999.00, Or Ignore Based On lastOrderDate :False ' DECLARE @PurityDateTime DateTime2 SET @PurityDateTime = '2/6/2024 12:00:00 AM' DECLARE @AssetPurityIds AnsiString(8000) SET @AssetPurityIds = '3393788' DECLARE @UniqueGuid AnsiString(8000) SET @UniqueGuid = '7737FAC5-CA67-4627-96C3-587B9987EB3D' DECLARE @FinalMoQ Int32 SET @FinalMoQ = '5' DECLARE @FinalMoV Int32 SET @FinalMoV = '100' DECLARE @SuggestedOrderSize Decimal(1,0) SET @SuggestedOrderSize = '0' DECLARE @SuggestedTotalCaseSize Decimal(2,2) SET @SuggestedTotalCaseSize = '0.00' DECLARE @OutletOccupancy Decimal(1,0) SET @OutletOccupancy = '0' DECLARE @LastMOVAndMOQDateTime DateTime2 SET @LastMOVAndMOQDateTime = '' INSERT INTO dbo.ScheduledOrder (LocationId, ReorderDate, OutOfStock, StatusId, TotalAssetCount, AssetCountWithOldImage, OrderMovementTypeId, TotalCaseSize, OrderSize, RestockIn, IgnoredReason, PurityDateTime, AssetPurityIds, UniqueGuid, FinalMoQ, FinalMoV, LastMOVAndMOQDateTime, SuggestedOrderSize, SuggestedTotalCaseSize, OutletOccupancy) VALUES (@LocationId, @ReorderDate, @OutOfStock, @StatusId, @TotalAssetCount, @AssetCountWithOldImage, @OrderMovementTypeId, @TotalCaseSize, @OrderSize, @RestockIn, @IgnoredReason, @PurityDateTime, @AssetPurityIds, @UniqueGuid, @FinalMoQ, @FinalMoV, @LastMOVAndMOQDateTime, @SuggestedOrderSize, @SuggestedTotalCaseSize, @OutletOccupancy);SELECT SCOPE_IDENTITY() 2025-12-25 21:38:04.2814 DFramework.Database.Query /* Time Taken: 993*/ DECLARE @LocationId Int32 SET @LocationId = '363220' DECLARE @ReorderDate DateTime2 SET @ReorderDate = '12/26/2025 5:38:03 AM' DECLARE @StatusId Int32 SET @StatusId = '5486' DECLARE @OutOfStock Decimal(2,0) SET @OutOfStock = '75' DECLARE @TotalAssetCount Int32 SET @TotalAssetCount = '1' DECLARE @AssetCountWithOldImage Int32 SET @AssetCountWithOldImage = '1' DECLARE @OrderMovementTypeId Int32 SET @OrderMovementTypeId = '5538' DECLARE @TotalCaseSize Decimal(3,2) SET @TotalCaseSize = '4.00' DECLARE @OrderSize Decimal(4,0) SET @OrderSize = '2780' DECLARE @RestockIn Int32 SET @RestockIn = '0' DECLARE @IgnoredReason AnsiString(8000) SET @IgnoredReason = 'No latest image available Or temperature is Out of threshold :-999.00, Or Ignore Based On lastOrderDate :False ' DECLARE @PurityDateTime DateTime2 SET @PurityDateTime = '2/8/2024 12:00:00 AM' DECLARE @AssetPurityIds AnsiString(8000) SET @AssetPurityIds = '3393858' DECLARE @UniqueGuid AnsiString(8000) SET @UniqueGuid = '882B1560-7E60-4FFF-AEE0-A68469621245' DECLARE @FinalMoQ Int32 SET @FinalMoQ = '5' DECLARE @FinalMoV Int32 SET @FinalMoV = '100' DECLARE @SuggestedOrderSize Decimal(4,0) SET @SuggestedOrderSize = '2780' DECLARE @SuggestedTotalCaseSize Decimal(3,2) SET @SuggestedTotalCaseSize = '4.00' DECLARE @OutletOccupancy Decimal(1,0) SET @OutletOccupancy = '0' DECLARE @LastMOVAndMOQDateTime DateTime2 SET @LastMOVAndMOQDateTime = '2/8/2024 6:17:31 AM' INSERT INTO dbo.ScheduledOrder (LocationId, ReorderDate, OutOfStock, StatusId, TotalAssetCount, AssetCountWithOldImage, OrderMovementTypeId, TotalCaseSize, OrderSize, RestockIn, IgnoredReason, PurityDateTime, AssetPurityIds, UniqueGuid, FinalMoQ, FinalMoV, LastMOVAndMOQDateTime, SuggestedOrderSize, SuggestedTotalCaseSize, OutletOccupancy) VALUES (@LocationId, @ReorderDate, @OutOfStock, @StatusId, @TotalAssetCount, @AssetCountWithOldImage, @OrderMovementTypeId, @TotalCaseSize, @OrderSize, @RestockIn, @IgnoredReason, @PurityDateTime, @AssetPurityIds, @UniqueGuid, @FinalMoQ, @FinalMoV, @LastMOVAndMOQDateTime, @SuggestedOrderSize, @SuggestedTotalCaseSize, @OutletOccupancy);SELECT SCOPE_IDENTITY() 2025-12-25 21:38:06.5627 DFramework.Database.Query /* Time Taken: 1127*/ DECLARE @LocationId Int32 SET @LocationId = '363221' DECLARE @ReorderDate DateTime2 SET @ReorderDate = '12/26/2025 5:38:05 AM' DECLARE @StatusId Int32 SET @StatusId = '5486' DECLARE @OutOfStock Decimal(2,0) SET @OutOfStock = '44' DECLARE @TotalAssetCount Int32 SET @TotalAssetCount = '1' DECLARE @AssetCountWithOldImage Int32 SET @AssetCountWithOldImage = '1' DECLARE @OrderMovementTypeId Int32 SET @OrderMovementTypeId = '5538' DECLARE @TotalCaseSize Decimal(2,2) SET @TotalCaseSize = '0.00' DECLARE @OrderSize Decimal(1,0) SET @OrderSize = '0' DECLARE @RestockIn Int32 SET @RestockIn = '0' DECLARE @IgnoredReason AnsiString(8000) SET @IgnoredReason = 'No latest image available Or temperature is Out of threshold :-999.00, Or Ignore Based On lastOrderDate :False ' DECLARE @PurityDateTime DateTime2 SET @PurityDateTime = '2/1/2024 12:00:00 AM' DECLARE @AssetPurityIds AnsiString(8000) SET @AssetPurityIds = '3393430' DECLARE @UniqueGuid AnsiString(8000) SET @UniqueGuid = '0FDE4810-8F49-421C-B3AD-EEA0AC001166' DECLARE @FinalMoQ Int32 SET @FinalMoQ = '5' DECLARE @FinalMoV Int32 SET @FinalMoV = '100' DECLARE @SuggestedOrderSize Decimal(1,0) SET @SuggestedOrderSize = '0' DECLARE @SuggestedTotalCaseSize Decimal(2,2) SET @SuggestedTotalCaseSize = '0.00' DECLARE @OutletOccupancy Decimal(1,0) SET @OutletOccupancy = '0' DECLARE @LastMOVAndMOQDateTime DateTime2 SET @LastMOVAndMOQDateTime = '' INSERT INTO dbo.ScheduledOrder (LocationId, ReorderDate, OutOfStock, StatusId, TotalAssetCount, AssetCountWithOldImage, OrderMovementTypeId, TotalCaseSize, OrderSize, RestockIn, IgnoredReason, PurityDateTime, AssetPurityIds, UniqueGuid, FinalMoQ, FinalMoV, LastMOVAndMOQDateTime, SuggestedOrderSize, SuggestedTotalCaseSize, OutletOccupancy) VALUES (@LocationId, @ReorderDate, @OutOfStock, @StatusId, @TotalAssetCount, @AssetCountWithOldImage, @OrderMovementTypeId, @TotalCaseSize, @OrderSize, @RestockIn, @IgnoredReason, @PurityDateTime, @AssetPurityIds, @UniqueGuid, @FinalMoQ, @FinalMoV, @LastMOVAndMOQDateTime, @SuggestedOrderSize, @SuggestedTotalCaseSize, @OutletOccupancy);SELECT SCOPE_IDENTITY() 2025-12-25 21:38:08.1096 DFramework.Database.Query /* Time Taken: 1157*/ DECLARE @LocationId Int32 SET @LocationId = '363222' DECLARE @ReorderDate DateTime2 SET @ReorderDate = '12/26/2025 5:38:06 AM' DECLARE @StatusId Int32 SET @StatusId = '5486' DECLARE @OutOfStock Decimal(2,0) SET @OutOfStock = '92' DECLARE @TotalAssetCount Int32 SET @TotalAssetCount = '2' DECLARE @AssetCountWithOldImage Int32 SET @AssetCountWithOldImage = '2' DECLARE @OrderMovementTypeId Int32 SET @OrderMovementTypeId = '5538' DECLARE @TotalCaseSize Decimal(3,2) SET @TotalCaseSize = '4.00' DECLARE @OrderSize Decimal(3,0) SET @OrderSize = '930' DECLARE @RestockIn Int32 SET @RestockIn = '0' DECLARE @IgnoredReason AnsiString(8000) SET @IgnoredReason = 'No latest image available Or temperature is Out of threshold :-999.00, Or Ignore Based On lastOrderDate :False ' DECLARE @PurityDateTime DateTime2 SET @PurityDateTime = '2/2/2024 12:00:00 AM' DECLARE @AssetPurityIds AnsiString(8000) SET @AssetPurityIds = '3393577' DECLARE @UniqueGuid AnsiString(8000) SET @UniqueGuid = 'B8E8BC88-1066-4106-B58F-17B74A4E3637' DECLARE @FinalMoQ Int32 SET @FinalMoQ = '5' DECLARE @FinalMoV Int32 SET @FinalMoV = '100' DECLARE @SuggestedOrderSize Decimal(3,0) SET @SuggestedOrderSize = '930' DECLARE @SuggestedTotalCaseSize Decimal(3,2) SET @SuggestedTotalCaseSize = '4.00' DECLARE @OutletOccupancy Decimal(1,0) SET @OutletOccupancy = '0' DECLARE @LastMOVAndMOQDateTime DateTime2 SET @LastMOVAndMOQDateTime = '' INSERT INTO dbo.ScheduledOrder (LocationId, ReorderDate, OutOfStock, StatusId, TotalAssetCount, AssetCountWithOldImage, OrderMovementTypeId, TotalCaseSize, OrderSize, RestockIn, IgnoredReason, PurityDateTime, AssetPurityIds, UniqueGuid, FinalMoQ, FinalMoV, LastMOVAndMOQDateTime, SuggestedOrderSize, SuggestedTotalCaseSize, OutletOccupancy) VALUES (@LocationId, @ReorderDate, @OutOfStock, @StatusId, @TotalAssetCount, @AssetCountWithOldImage, @OrderMovementTypeId, @TotalCaseSize, @OrderSize, @RestockIn, @IgnoredReason, @PurityDateTime, @AssetPurityIds, @UniqueGuid, @FinalMoQ, @FinalMoV, @LastMOVAndMOQDateTime, @SuggestedOrderSize, @SuggestedTotalCaseSize, @OutletOccupancy);SELECT SCOPE_IDENTITY() 2025-12-25 21:38:10.7502 DFramework.Database.Query /* Time Taken: 1533*/ DECLARE @LocationId Int32 SET @LocationId = '363224' DECLARE @ReorderDate DateTime2 SET @ReorderDate = '12/26/2025 5:38:09 AM' DECLARE @StatusId Int32 SET @StatusId = '5486' DECLARE @OutOfStock Decimal(2,0) SET @OutOfStock = '75' DECLARE @TotalAssetCount Int32 SET @TotalAssetCount = '1' DECLARE @AssetCountWithOldImage Int32 SET @AssetCountWithOldImage = '1' DECLARE @OrderMovementTypeId Int32 SET @OrderMovementTypeId = '5538' DECLARE @TotalCaseSize Decimal(2,2) SET @TotalCaseSize = '0.00' DECLARE @OrderSize Decimal(1,0) SET @OrderSize = '0' DECLARE @RestockIn Int32 SET @RestockIn = '0' DECLARE @IgnoredReason AnsiString(8000) SET @IgnoredReason = 'No latest image available Or temperature is Out of threshold :-999.00, Or Ignore Based On lastOrderDate :False ' DECLARE @PurityDateTime DateTime2 SET @PurityDateTime = '2/2/2024 12:00:00 AM' DECLARE @AssetPurityIds AnsiString(8000) SET @AssetPurityIds = '3393535' DECLARE @UniqueGuid AnsiString(8000) SET @UniqueGuid = '4BB9BC24-554F-482D-BB56-9293D0565BB6' DECLARE @FinalMoQ Int32 SET @FinalMoQ = '5' DECLARE @FinalMoV Int32 SET @FinalMoV = '100' DECLARE @SuggestedOrderSize Decimal(1,0) SET @SuggestedOrderSize = '0' DECLARE @SuggestedTotalCaseSize Decimal(2,2) SET @SuggestedTotalCaseSize = '0.00' DECLARE @OutletOccupancy Decimal(1,0) SET @OutletOccupancy = '0' DECLARE @LastMOVAndMOQDateTime DateTime2 SET @LastMOVAndMOQDateTime = '' INSERT INTO dbo.ScheduledOrder (LocationId, ReorderDate, OutOfStock, StatusId, TotalAssetCount, AssetCountWithOldImage, OrderMovementTypeId, TotalCaseSize, OrderSize, RestockIn, IgnoredReason, PurityDateTime, AssetPurityIds, UniqueGuid, FinalMoQ, FinalMoV, LastMOVAndMOQDateTime, SuggestedOrderSize, SuggestedTotalCaseSize, OutletOccupancy) VALUES (@LocationId, @ReorderDate, @OutOfStock, @StatusId, @TotalAssetCount, @AssetCountWithOldImage, @OrderMovementTypeId, @TotalCaseSize, @OrderSize, @RestockIn, @IgnoredReason, @PurityDateTime, @AssetPurityIds, @UniqueGuid, @FinalMoQ, @FinalMoV, @LastMOVAndMOQDateTime, @SuggestedOrderSize, @SuggestedTotalCaseSize, @OutletOccupancy);SELECT SCOPE_IDENTITY() 2025-12-25 21:38:11.9377 DFramework.Database.Query /* Time Taken: 1029*/ DECLARE @LocationId Int32 SET @LocationId = '363225' DECLARE @ReorderDate DateTime2 SET @ReorderDate = '12/26/2025 5:38:10 AM' DECLARE @StatusId Int32 SET @StatusId = '5486' DECLARE @OutOfStock Decimal(2,0) SET @OutOfStock = '92' DECLARE @TotalAssetCount Int32 SET @TotalAssetCount = '1' DECLARE @AssetCountWithOldImage Int32 SET @AssetCountWithOldImage = '1' DECLARE @OrderMovementTypeId Int32 SET @OrderMovementTypeId = '5538' DECLARE @TotalCaseSize Decimal(2,2) SET @TotalCaseSize = '0.00' DECLARE @OrderSize Decimal(1,0) SET @OrderSize = '0' DECLARE @RestockIn Int32 SET @RestockIn = '0' DECLARE @IgnoredReason AnsiString(8000) SET @IgnoredReason = 'No latest image available Or temperature is Out of threshold :-999.00, Or Ignore Based On lastOrderDate :False ' DECLARE @PurityDateTime DateTime2 SET @PurityDateTime = '2/5/2024 12:00:00 AM' DECLARE @AssetPurityIds AnsiString(8000) SET @AssetPurityIds = '3393670' DECLARE @UniqueGuid AnsiString(8000) SET @UniqueGuid = 'C3AC840E-72F5-410D-A864-E4DB2A2A0749' DECLARE @FinalMoQ Int32 SET @FinalMoQ = '5' DECLARE @FinalMoV Int32 SET @FinalMoV = '100' DECLARE @SuggestedOrderSize Decimal(1,0) SET @SuggestedOrderSize = '0' DECLARE @SuggestedTotalCaseSize Decimal(2,2) SET @SuggestedTotalCaseSize = '0.00' DECLARE @OutletOccupancy Decimal(1,0) SET @OutletOccupancy = '0' DECLARE @LastMOVAndMOQDateTime DateTime2 SET @LastMOVAndMOQDateTime = '' INSERT INTO dbo.ScheduledOrder (LocationId, ReorderDate, OutOfStock, StatusId, TotalAssetCount, AssetCountWithOldImage, OrderMovementTypeId, TotalCaseSize, OrderSize, RestockIn, IgnoredReason, PurityDateTime, AssetPurityIds, UniqueGuid, FinalMoQ, FinalMoV, LastMOVAndMOQDateTime, SuggestedOrderSize, SuggestedTotalCaseSize, OutletOccupancy) VALUES (@LocationId, @ReorderDate, @OutOfStock, @StatusId, @TotalAssetCount, @AssetCountWithOldImage, @OrderMovementTypeId, @TotalCaseSize, @OrderSize, @RestockIn, @IgnoredReason, @PurityDateTime, @AssetPurityIds, @UniqueGuid, @FinalMoQ, @FinalMoV, @LastMOVAndMOQDateTime, @SuggestedOrderSize, @SuggestedTotalCaseSize, @OutletOccupancy);SELECT SCOPE_IDENTITY() 2025-12-25 21:38:13.3440 DFramework.Database.Query /* Time Taken: 1193*/ DECLARE @LocationId Int32 SET @LocationId = '363226' DECLARE @ReorderDate DateTime2 SET @ReorderDate = '12/26/2025 5:38:12 AM' DECLARE @StatusId Int32 SET @StatusId = '5486' DECLARE @OutOfStock Decimal(2,0) SET @OutOfStock = '81' DECLARE @TotalAssetCount Int32 SET @TotalAssetCount = '2' DECLARE @AssetCountWithOldImage Int32 SET @AssetCountWithOldImage = '2' DECLARE @OrderMovementTypeId Int32 SET @OrderMovementTypeId = '5538' DECLARE @TotalCaseSize Decimal(2,2) SET @TotalCaseSize = '0.00' DECLARE @OrderSize Decimal(1,0) SET @OrderSize = '0' DECLARE @RestockIn Int32 SET @RestockIn = '0' DECLARE @IgnoredReason AnsiString(8000) SET @IgnoredReason = 'No latest image available Or temperature is Out of threshold :-999.00, Or Ignore Based On lastOrderDate :False ' DECLARE @PurityDateTime DateTime2 SET @PurityDateTime = '2/5/2024 12:00:00 AM' DECLARE @AssetPurityIds AnsiString(8000) SET @AssetPurityIds = '3393727,3393723' DECLARE @UniqueGuid AnsiString(8000) SET @UniqueGuid = 'E1C33CCD-AD87-49E2-B00F-C0098DD69E68,7FC819E1-5A65-4E8A-81A6-2E79940319BB' DECLARE @FinalMoQ Int32 SET @FinalMoQ = '5' DECLARE @FinalMoV Int32 SET @FinalMoV = '100' DECLARE @SuggestedOrderSize Decimal(1,0) SET @SuggestedOrderSize = '0' DECLARE @SuggestedTotalCaseSize Decimal(2,2) SET @SuggestedTotalCaseSize = '0.00' DECLARE @OutletOccupancy Decimal(1,0) SET @OutletOccupancy = '0' DECLARE @LastMOVAndMOQDateTime DateTime2 SET @LastMOVAndMOQDateTime = '2/5/2024 12:54:53 PM' INSERT INTO dbo.ScheduledOrder (LocationId, ReorderDate, OutOfStock, StatusId, TotalAssetCount, AssetCountWithOldImage, OrderMovementTypeId, TotalCaseSize, OrderSize, RestockIn, IgnoredReason, PurityDateTime, AssetPurityIds, UniqueGuid, FinalMoQ, FinalMoV, LastMOVAndMOQDateTime, SuggestedOrderSize, SuggestedTotalCaseSize, OutletOccupancy) VALUES (@LocationId, @ReorderDate, @OutOfStock, @StatusId, @TotalAssetCount, @AssetCountWithOldImage, @OrderMovementTypeId, @TotalCaseSize, @OrderSize, @RestockIn, @IgnoredReason, @PurityDateTime, @AssetPurityIds, @UniqueGuid, @FinalMoQ, @FinalMoV, @LastMOVAndMOQDateTime, @SuggestedOrderSize, @SuggestedTotalCaseSize, @OutletOccupancy);SELECT SCOPE_IDENTITY() 2025-12-25 21:38:14.8128 DFramework.Database.Query /* Time Taken: 1232*/ DECLARE @LocationId Int32 SET @LocationId = '363227' DECLARE @ReorderDate DateTime2 SET @ReorderDate = '12/26/2025 5:38:13 AM' DECLARE @StatusId Int32 SET @StatusId = '5486' DECLARE @OutOfStock Decimal(2,0) SET @OutOfStock = '63' DECLARE @TotalAssetCount Int32 SET @TotalAssetCount = '1' DECLARE @AssetCountWithOldImage Int32 SET @AssetCountWithOldImage = '1' DECLARE @OrderMovementTypeId Int32 SET @OrderMovementTypeId = '5538' DECLARE @TotalCaseSize Decimal(2,2) SET @TotalCaseSize = '0.00' DECLARE @OrderSize Decimal(1,0) SET @OrderSize = '0' DECLARE @RestockIn Int32 SET @RestockIn = '0' DECLARE @IgnoredReason AnsiString(8000) SET @IgnoredReason = 'No latest image available Or temperature is Out of threshold :-999.00, Or Ignore Based On lastOrderDate :False ' DECLARE @PurityDateTime DateTime2 SET @PurityDateTime = '2/5/2024 12:00:00 AM' DECLARE @AssetPurityIds AnsiString(8000) SET @AssetPurityIds = '3393718' DECLARE @UniqueGuid AnsiString(8000) SET @UniqueGuid = '009181E4-4240-4A1B-9F05-ABA4C7BB83CC' DECLARE @FinalMoQ Int32 SET @FinalMoQ = '5' DECLARE @FinalMoV Int32 SET @FinalMoV = '100' DECLARE @SuggestedOrderSize Decimal(1,0) SET @SuggestedOrderSize = '0' DECLARE @SuggestedTotalCaseSize Decimal(2,2) SET @SuggestedTotalCaseSize = '0.00' DECLARE @OutletOccupancy Decimal(1,0) SET @OutletOccupancy = '0' DECLARE @LastMOVAndMOQDateTime DateTime2 SET @LastMOVAndMOQDateTime = '2/5/2024 12:30:38 PM' INSERT INTO dbo.ScheduledOrder (LocationId, ReorderDate, OutOfStock, StatusId, TotalAssetCount, AssetCountWithOldImage, OrderMovementTypeId, TotalCaseSize, OrderSize, RestockIn, IgnoredReason, PurityDateTime, AssetPurityIds, UniqueGuid, FinalMoQ, FinalMoV, LastMOVAndMOQDateTime, SuggestedOrderSize, SuggestedTotalCaseSize, OutletOccupancy) VALUES (@LocationId, @ReorderDate, @OutOfStock, @StatusId, @TotalAssetCount, @AssetCountWithOldImage, @OrderMovementTypeId, @TotalCaseSize, @OrderSize, @RestockIn, @IgnoredReason, @PurityDateTime, @AssetPurityIds, @UniqueGuid, @FinalMoQ, @FinalMoV, @LastMOVAndMOQDateTime, @SuggestedOrderSize, @SuggestedTotalCaseSize, @OutletOccupancy);SELECT SCOPE_IDENTITY() 2025-12-25 21:38:16.0784 DFramework.Database.Query /* Time Taken: 911*/ DECLARE @LocationId Int32 SET @LocationId = '363229' DECLARE @ReorderDate DateTime2 SET @ReorderDate = '12/26/2025 5:38:15 AM' DECLARE @StatusId Int32 SET @StatusId = '5486' DECLARE @OutOfStock Decimal(2,0) SET @OutOfStock = '56' DECLARE @TotalAssetCount Int32 SET @TotalAssetCount = '1' DECLARE @AssetCountWithOldImage Int32 SET @AssetCountWithOldImage = '1' DECLARE @OrderMovementTypeId Int32 SET @OrderMovementTypeId = '5538' DECLARE @TotalCaseSize Decimal(2,2) SET @TotalCaseSize = '0.00' DECLARE @OrderSize Decimal(1,0) SET @OrderSize = '0' DECLARE @RestockIn Int32 SET @RestockIn = '0' DECLARE @IgnoredReason AnsiString(8000) SET @IgnoredReason = 'No latest image available Or temperature is Out of threshold :-999.00, Or Ignore Based On lastOrderDate :False ' DECLARE @PurityDateTime DateTime2 SET @PurityDateTime = '2/6/2024 12:00:00 AM' DECLARE @AssetPurityIds AnsiString(8000) SET @AssetPurityIds = '3393776,3393775' DECLARE @UniqueGuid AnsiString(8000) SET @UniqueGuid = '19230713-416A-4A61-994B-45238B338245,8C8E20CB-6563-43BB-8788-EDF4F966006B' DECLARE @FinalMoQ Int32 SET @FinalMoQ = '5' DECLARE @FinalMoV Int32 SET @FinalMoV = '100' DECLARE @SuggestedOrderSize Decimal(1,0) SET @SuggestedOrderSize = '0' DECLARE @SuggestedTotalCaseSize Decimal(2,2) SET @SuggestedTotalCaseSize = '0.00' DECLARE @OutletOccupancy Decimal(1,0) SET @OutletOccupancy = '0' DECLARE @LastMOVAndMOQDateTime DateTime2 SET @LastMOVAndMOQDateTime = '2/6/2024 8:00:59 AM' INSERT INTO dbo.ScheduledOrder (LocationId, ReorderDate, OutOfStock, StatusId, TotalAssetCount, AssetCountWithOldImage, OrderMovementTypeId, TotalCaseSize, OrderSize, RestockIn, IgnoredReason, PurityDateTime, AssetPurityIds, UniqueGuid, FinalMoQ, FinalMoV, LastMOVAndMOQDateTime, SuggestedOrderSize, SuggestedTotalCaseSize, OutletOccupancy) VALUES (@LocationId, @ReorderDate, @OutOfStock, @StatusId, @TotalAssetCount, @AssetCountWithOldImage, @OrderMovementTypeId, @TotalCaseSize, @OrderSize, @RestockIn, @IgnoredReason, @PurityDateTime, @AssetPurityIds, @UniqueGuid, @FinalMoQ, @FinalMoV, @LastMOVAndMOQDateTime, @SuggestedOrderSize, @SuggestedTotalCaseSize, @OutletOccupancy);SELECT SCOPE_IDENTITY() 2025-12-25 21:38:17.6409 DFramework.Database.Query /* Time Taken: 1359*/ DECLARE @LocationId Int32 SET @LocationId = '363233' DECLARE @ReorderDate DateTime2 SET @ReorderDate = '12/26/2025 5:38:16 AM' DECLARE @StatusId Int32 SET @StatusId = '5486' DECLARE @OutOfStock Decimal(3,0) SET @OutOfStock = '100' DECLARE @TotalAssetCount Int32 SET @TotalAssetCount = '1' DECLARE @AssetCountWithOldImage Int32 SET @AssetCountWithOldImage = '1' DECLARE @OrderMovementTypeId Int32 SET @OrderMovementTypeId = '5538' DECLARE @TotalCaseSize Decimal(2,2) SET @TotalCaseSize = '0.00' DECLARE @OrderSize Decimal(1,0) SET @OrderSize = '0' DECLARE @RestockIn Int32 SET @RestockIn = '0' DECLARE @IgnoredReason AnsiString(8000) SET @IgnoredReason = 'No latest image available Or temperature is Out of threshold :-999.00, Or Ignore Based On lastOrderDate :False ' DECLARE @PurityDateTime DateTime2 SET @PurityDateTime = '3/1/2024 12:00:00 AM' DECLARE @AssetPurityIds AnsiString(8000) SET @AssetPurityIds = '3394591' DECLARE @UniqueGuid AnsiString(8000) SET @UniqueGuid = '11193454-3955-49D8-AE02-07670599B874' DECLARE @FinalMoQ Int32 SET @FinalMoQ = '5' DECLARE @FinalMoV Int32 SET @FinalMoV = '100' DECLARE @SuggestedOrderSize Decimal(1,0) SET @SuggestedOrderSize = '0' DECLARE @SuggestedTotalCaseSize Decimal(2,2) SET @SuggestedTotalCaseSize = '0.00' DECLARE @OutletOccupancy Decimal(1,0) SET @OutletOccupancy = '0' DECLARE @LastMOVAndMOQDateTime DateTime2 SET @LastMOVAndMOQDateTime = '3/1/2024 12:15:16 PM' INSERT INTO dbo.ScheduledOrder (LocationId, ReorderDate, OutOfStock, StatusId, TotalAssetCount, AssetCountWithOldImage, OrderMovementTypeId, TotalCaseSize, OrderSize, RestockIn, IgnoredReason, PurityDateTime, AssetPurityIds, UniqueGuid, FinalMoQ, FinalMoV, LastMOVAndMOQDateTime, SuggestedOrderSize, SuggestedTotalCaseSize, OutletOccupancy) VALUES (@LocationId, @ReorderDate, @OutOfStock, @StatusId, @TotalAssetCount, @AssetCountWithOldImage, @OrderMovementTypeId, @TotalCaseSize, @OrderSize, @RestockIn, @IgnoredReason, @PurityDateTime, @AssetPurityIds, @UniqueGuid, @FinalMoQ, @FinalMoV, @LastMOVAndMOQDateTime, @SuggestedOrderSize, @SuggestedTotalCaseSize, @OutletOccupancy);SELECT SCOPE_IDENTITY() 2025-12-25 21:38:19.0940 DFramework.Database.Query /* Time Taken: 1222*/ DECLARE @LocationId Int32 SET @LocationId = '363239' DECLARE @ReorderDate DateTime2 SET @ReorderDate = '12/26/2025 5:38:17 AM' DECLARE @StatusId Int32 SET @StatusId = '5486' DECLARE @OutOfStock Decimal(2,0) SET @OutOfStock = '85' DECLARE @TotalAssetCount Int32 SET @TotalAssetCount = '1' DECLARE @AssetCountWithOldImage Int32 SET @AssetCountWithOldImage = '1' DECLARE @OrderMovementTypeId Int32 SET @OrderMovementTypeId = '5538' DECLARE @TotalCaseSize Decimal(2,2) SET @TotalCaseSize = '0.00' DECLARE @OrderSize Decimal(1,0) SET @OrderSize = '0' DECLARE @RestockIn Int32 SET @RestockIn = '0' DECLARE @IgnoredReason AnsiString(8000) SET @IgnoredReason = 'No latest image available Or temperature is Out of threshold :-999.00, Or Ignore Based On lastOrderDate :False ' DECLARE @PurityDateTime DateTime2 SET @PurityDateTime = '2/16/2024 12:00:00 AM' DECLARE @AssetPurityIds AnsiString(8000) SET @AssetPurityIds = '3394263,3394262,3394260' DECLARE @UniqueGuid AnsiString(8000) SET @UniqueGuid = '7CE1E2C6-4A50-4B19-BF77-F51DBA215CF9,F475D102-E408-4E8E-8482-AF5AE15DBC6B,EB4E1E52-77D8-4C2F-BCA2-DAA4E5CC07CD' DECLARE @FinalMoQ Int32 SET @FinalMoQ = '5' DECLARE @FinalMoV Int32 SET @FinalMoV = '100' DECLARE @SuggestedOrderSize Decimal(1,0) SET @SuggestedOrderSize = '0' DECLARE @SuggestedTotalCaseSize Decimal(2,2) SET @SuggestedTotalCaseSize = '0.00' DECLARE @OutletOccupancy Decimal(1,0) SET @OutletOccupancy = '0' DECLARE @LastMOVAndMOQDateTime DateTime2 SET @LastMOVAndMOQDateTime = '2/16/2024 1:13:15 PM' INSERT INTO dbo.ScheduledOrder (LocationId, ReorderDate, OutOfStock, StatusId, TotalAssetCount, AssetCountWithOldImage, OrderMovementTypeId, TotalCaseSize, OrderSize, RestockIn, IgnoredReason, PurityDateTime, AssetPurityIds, UniqueGuid, FinalMoQ, FinalMoV, LastMOVAndMOQDateTime, SuggestedOrderSize, SuggestedTotalCaseSize, OutletOccupancy) VALUES (@LocationId, @ReorderDate, @OutOfStock, @StatusId, @TotalAssetCount, @AssetCountWithOldImage, @OrderMovementTypeId, @TotalCaseSize, @OrderSize, @RestockIn, @IgnoredReason, @PurityDateTime, @AssetPurityIds, @UniqueGuid, @FinalMoQ, @FinalMoV, @LastMOVAndMOQDateTime, @SuggestedOrderSize, @SuggestedTotalCaseSize, @OutletOccupancy);SELECT SCOPE_IDENTITY() 2025-12-25 21:38:20.2972 DFramework.Database.Query /* Time Taken: 805*/ DECLARE @LocationId Int32 SET @LocationId = '363347' DECLARE @ReorderDate DateTime2 SET @ReorderDate = '12/26/2025 5:38:19 AM' DECLARE @StatusId Int32 SET @StatusId = '5486' DECLARE @OutOfStock Decimal(2,0) SET @OutOfStock = '70' DECLARE @TotalAssetCount Int32 SET @TotalAssetCount = '3' DECLARE @AssetCountWithOldImage Int32 SET @AssetCountWithOldImage = '3' DECLARE @OrderMovementTypeId Int32 SET @OrderMovementTypeId = '5538' DECLARE @TotalCaseSize Decimal(3,2) SET @TotalCaseSize = '5.00' DECLARE @OrderSize Decimal(3,0) SET @OrderSize = '510' DECLARE @RestockIn Int32 SET @RestockIn = '0' DECLARE @IgnoredReason AnsiString(8000) SET @IgnoredReason = 'No latest image available Or temperature is Out of threshold :-999.00, Or Ignore Based On lastOrderDate :False ' DECLARE @PurityDateTime DateTime2 SET @PurityDateTime = '12/23/2025 12:00:00 AM' DECLARE @AssetPurityIds AnsiString(8000) SET @AssetPurityIds = '3674988' DECLARE @UniqueGuid AnsiString(8000) SET @UniqueGuid = 'BB7A5656-7580-484C-8D92-2A711049923E' DECLARE @FinalMoQ Int32 SET @FinalMoQ = '5' DECLARE @FinalMoV Int32 SET @FinalMoV = '100' DECLARE @SuggestedOrderSize Decimal(3,0) SET @SuggestedOrderSize = '510' DECLARE @SuggestedTotalCaseSize Decimal(3,2) SET @SuggestedTotalCaseSize = '5.00' DECLARE @OutletOccupancy Decimal(1,0) SET @OutletOccupancy = '0' DECLARE @LastMOVAndMOQDateTime DateTime2 SET @LastMOVAndMOQDateTime = '2/28/2024 9:23:04 AM' INSERT INTO dbo.ScheduledOrder (LocationId, ReorderDate, OutOfStock, StatusId, TotalAssetCount, AssetCountWithOldImage, OrderMovementTypeId, TotalCaseSize, OrderSize, RestockIn, IgnoredReason, PurityDateTime, AssetPurityIds, UniqueGuid, FinalMoQ, FinalMoV, LastMOVAndMOQDateTime, SuggestedOrderSize, SuggestedTotalCaseSize, OutletOccupancy) VALUES (@LocationId, @ReorderDate, @OutOfStock, @StatusId, @TotalAssetCount, @AssetCountWithOldImage, @OrderMovementTypeId, @TotalCaseSize, @OrderSize, @RestockIn, @IgnoredReason, @PurityDateTime, @AssetPurityIds, @UniqueGuid, @FinalMoQ, @FinalMoV, @LastMOVAndMOQDateTime, @SuggestedOrderSize, @SuggestedTotalCaseSize, @OutletOccupancy);SELECT SCOPE_IDENTITY() 2025-12-25 21:38:29.0004 DFramework.Database.Query /* Time Taken: 693*/ DECLARE @Asset_LocationId Int32 SET @Asset_LocationId = '364433' DECLARE @Asset_IsDeleted Int32 SET @Asset_IsDeleted = '0' SELECT AVG(OnShelfAvailability) FROM dbo.Asset INNER JOIN dbo.AssetAttribute ON Asset.AssetId = AssetAttribute.AssetId INNER JOIN dbo.vwAssetPurityKPI ON vwAssetPurityKPI.AssetPurityId = AssetAttribute.LatestProcessedPurityId INNER JOIN dbo.Client ON Client.ClientId = Asset.ClientId WHERE Asset.LocationId = @Asset_LocationId AND Asset.IsDeleted = @Asset_IsDeleted AND vwAssetPurityKPI.PurityDateTime >= DATEADD(HOUR, -Client.HoursToConsiderOrderImage, GETUTCDATE()) 2025-12-25 21:38:30.1254 DFramework.Database.Query /* Time Taken: 1121*/ DECLARE @LocationId Int32 SET @LocationId = '364433' DECLARE @ReorderDate DateTime2 SET @ReorderDate = '12/26/2025 5:38:29 AM' DECLARE @StatusId Int32 SET @StatusId = '5486' DECLARE @OutOfStock Decimal(2,0) SET @OutOfStock = '92' DECLARE @TotalAssetCount Int32 SET @TotalAssetCount = '5' DECLARE @AssetCountWithOldImage Int32 SET @AssetCountWithOldImage = '5' DECLARE @OrderMovementTypeId Int32 SET @OrderMovementTypeId = '5538' DECLARE @TotalCaseSize Decimal(5,2) SET @TotalCaseSize = '101.00' DECLARE @OrderSize Decimal(4,0) SET @OrderSize = '9628' DECLARE @RestockIn Int32 SET @RestockIn = '0' DECLARE @IgnoredReason AnsiString(8000) SET @IgnoredReason = 'No latest image available Or temperature is Out of threshold :-999.00, Or Ignore Based On lastOrderDate :False ' DECLARE @PurityDateTime DateTime2 SET @PurityDateTime = '2/27/2025 12:00:00 AM' DECLARE @AssetPurityIds AnsiString(8000) SET @AssetPurityIds = '3487009,3487007,3487008' DECLARE @UniqueGuid AnsiString(8000) SET @UniqueGuid = 'B0C5F311-00B1-4CFE-AB04-AA7029F91737,8B56B8C3-B55F-4055-AEFC-5DA446A97EB3,5BF52F40-9F3F-4F90-9324-D205CE043EEE' DECLARE @FinalMoQ Int32 SET @FinalMoQ = '5' DECLARE @FinalMoV Int32 SET @FinalMoV = '100' DECLARE @SuggestedOrderSize Decimal(4,0) SET @SuggestedOrderSize = '9628' DECLARE @SuggestedTotalCaseSize Decimal(5,2) SET @SuggestedTotalCaseSize = '101.00' DECLARE @OutletOccupancy Decimal(1,0) SET @OutletOccupancy = '0' DECLARE @LastMOVAndMOQDateTime DateTime2 SET @LastMOVAndMOQDateTime = '1/27/2025 7:59:13 AM' INSERT INTO dbo.ScheduledOrder (LocationId, ReorderDate, OutOfStock, StatusId, TotalAssetCount, AssetCountWithOldImage, OrderMovementTypeId, TotalCaseSize, OrderSize, RestockIn, IgnoredReason, PurityDateTime, AssetPurityIds, UniqueGuid, FinalMoQ, FinalMoV, LastMOVAndMOQDateTime, SuggestedOrderSize, SuggestedTotalCaseSize, OutletOccupancy) VALUES (@LocationId, @ReorderDate, @OutOfStock, @StatusId, @TotalAssetCount, @AssetCountWithOldImage, @OrderMovementTypeId, @TotalCaseSize, @OrderSize, @RestockIn, @IgnoredReason, @PurityDateTime, @AssetPurityIds, @UniqueGuid, @FinalMoQ, @FinalMoV, @LastMOVAndMOQDateTime, @SuggestedOrderSize, @SuggestedTotalCaseSize, @OutletOccupancy);SELECT SCOPE_IDENTITY() 2025-12-25 21:38:38.1723 DFramework.Database.Query /* Time Taken: 1249*/ DECLARE @LocationId Int32 SET @LocationId = '364434' DECLARE @ReorderDate DateTime2 SET @ReorderDate = '12/26/2025 5:38:36 AM' DECLARE @StatusId Int32 SET @StatusId = '5486' DECLARE @OutOfStock Decimal(2,0) SET @OutOfStock = '80' DECLARE @TotalAssetCount Int32 SET @TotalAssetCount = '1' DECLARE @AssetCountWithOldImage Int32 SET @AssetCountWithOldImage = '1' DECLARE @OrderMovementTypeId Int32 SET @OrderMovementTypeId = '5538' DECLARE @TotalCaseSize Decimal(4,2) SET @TotalCaseSize = '31.00' DECLARE @OrderSize Decimal(4,0) SET @OrderSize = '4809' DECLARE @RestockIn Int32 SET @RestockIn = '0' DECLARE @IgnoredReason AnsiString(8000) SET @IgnoredReason = 'No latest image available Or temperature is Out of threshold :-999.00, Or Ignore Based On lastOrderDate :False ' DECLARE @PurityDateTime DateTime2 SET @PurityDateTime = '5/24/2024 12:00:00 AM' DECLARE @AssetPurityIds AnsiString(8000) SET @AssetPurityIds = '3400759,3400758' DECLARE @UniqueGuid AnsiString(8000) SET @UniqueGuid = 'B77BCDC8-BFEA-4C74-BA1B-E2DAE9BFB6D2,D19FCE02-5BD8-4F9B-B492-3F0CDF60BAB9' DECLARE @FinalMoQ Int32 SET @FinalMoQ = '5' DECLARE @FinalMoV Int32 SET @FinalMoV = '100' DECLARE @SuggestedOrderSize Decimal(4,0) SET @SuggestedOrderSize = '4809' DECLARE @SuggestedTotalCaseSize Decimal(4,2) SET @SuggestedTotalCaseSize = '31.00' DECLARE @OutletOccupancy Decimal(1,0) SET @OutletOccupancy = '0' DECLARE @LastMOVAndMOQDateTime DateTime2 SET @LastMOVAndMOQDateTime = '5/24/2024 9:13:18 AM' INSERT INTO dbo.ScheduledOrder (LocationId, ReorderDate, OutOfStock, StatusId, TotalAssetCount, AssetCountWithOldImage, OrderMovementTypeId, TotalCaseSize, OrderSize, RestockIn, IgnoredReason, PurityDateTime, AssetPurityIds, UniqueGuid, FinalMoQ, FinalMoV, LastMOVAndMOQDateTime, SuggestedOrderSize, SuggestedTotalCaseSize, OutletOccupancy) VALUES (@LocationId, @ReorderDate, @OutOfStock, @StatusId, @TotalAssetCount, @AssetCountWithOldImage, @OrderMovementTypeId, @TotalCaseSize, @OrderSize, @RestockIn, @IgnoredReason, @PurityDateTime, @AssetPurityIds, @UniqueGuid, @FinalMoQ, @FinalMoV, @LastMOVAndMOQDateTime, @SuggestedOrderSize, @SuggestedTotalCaseSize, @OutletOccupancy);SELECT SCOPE_IDENTITY() 2025-12-25 21:38:44.7349 DFramework.Database.Query /* Time Taken: 812*/ DECLARE @ScheduledOrderId Int32 SET @ScheduledOrderId = '322124' DECLARE @ProductId Int32 SET @ProductId = '24593' DECLARE @UnitsNeeded Decimal(3,2) SET @UnitsNeeded = '1.00' DECLARE @UnitPrice Decimal(5,2) SET @UnitPrice = '120.00' DECLARE @CaseSize Int32 SET @CaseSize = '12' DECLARE @StockLevel Decimal(2,2) SET @StockLevel = '0.00' DECLARE @AssetId Int32 SET @AssetId = '26717' DECLARE @AssetPurityId Decimal(7,0) SET @AssetPurityId = '3472026' DECLARE @UnitLabelId Int32 SET @UnitLabelId = '5469' INSERT INTO dbo.ScheduledOrderItem (ScheduledOrderId, ProductId, UnitsNeeded, UnitPrice, CaseSize, StockLevel, AssetId,AssetPurityId, UnitLabelId) VALUES (@ScheduledOrderId, @ProductId, @UnitsNeeded, @UnitPrice, @CaseSize, @StockLevel, @AssetId, @AssetPurityId, @UnitLabelId) 2025-12-25 21:38:45.2817 DFramework.Database.Query /* Time Taken: 544*/ DECLARE @ScheduledOrderId Int32 SET @ScheduledOrderId = '322124' DECLARE @ProductId Int32 SET @ProductId = '24568' DECLARE @UnitsNeeded Decimal(4,2) SET @UnitsNeeded = '12.00' DECLARE @UnitPrice Decimal(4,2) SET @UnitPrice = '33.33' DECLARE @CaseSize Int32 SET @CaseSize = '12' DECLARE @StockLevel Decimal(2,2) SET @StockLevel = '0.00' DECLARE @AssetId Int32 SET @AssetId = '26717' DECLARE @AssetPurityId Decimal(7,0) SET @AssetPurityId = '3472026' DECLARE @UnitLabelId Int32 SET @UnitLabelId = '7619' INSERT INTO dbo.ScheduledOrderItem (ScheduledOrderId, ProductId, UnitsNeeded, UnitPrice, CaseSize, StockLevel, AssetId,AssetPurityId, UnitLabelId) VALUES (@ScheduledOrderId, @ProductId, @UnitsNeeded, @UnitPrice, @CaseSize, @StockLevel, @AssetId, @AssetPurityId, @UnitLabelId) 2025-12-25 21:38:51.9068 DFramework.Database.Query /* Time Taken: 1081*/ DECLARE @LocationId Int32 SET @LocationId = '364439' DECLARE @ReorderDate DateTime2 SET @ReorderDate = '12/26/2025 5:38:50 AM' DECLARE @StatusId Int32 SET @StatusId = '5486' DECLARE @OutOfStock Decimal(2,0) SET @OutOfStock = '76' DECLARE @TotalAssetCount Int32 SET @TotalAssetCount = '1' DECLARE @AssetCountWithOldImage Int32 SET @AssetCountWithOldImage = '1' DECLARE @OrderMovementTypeId Int32 SET @OrderMovementTypeId = '5538' DECLARE @TotalCaseSize Decimal(4,2) SET @TotalCaseSize = '50.00' DECLARE @OrderSize Decimal(4,0) SET @OrderSize = '3426' DECLARE @RestockIn Int32 SET @RestockIn = '0' DECLARE @IgnoredReason AnsiString(8000) SET @IgnoredReason = 'No latest image available Or temperature is Out of threshold :-999.00, Or Ignore Based On lastOrderDate :False ' DECLARE @PurityDateTime DateTime2 SET @PurityDateTime = '12/4/2025 12:00:00 AM' DECLARE @AssetPurityIds AnsiString(8000) SET @AssetPurityIds = '3672755,3672752' DECLARE @UniqueGuid AnsiString(8000) SET @UniqueGuid = '09CEAA3F-938A-4606-BB65-8E483274C5A1,80590DA0-3058-4DC2-ACD2-5B3DB2F932E4' DECLARE @FinalMoQ Int32 SET @FinalMoQ = '5' DECLARE @FinalMoV Int32 SET @FinalMoV = '100' DECLARE @SuggestedOrderSize Decimal(4,0) SET @SuggestedOrderSize = '3426' DECLARE @SuggestedTotalCaseSize Decimal(4,2) SET @SuggestedTotalCaseSize = '50.00' DECLARE @OutletOccupancy Decimal(1,0) SET @OutletOccupancy = '0' DECLARE @LastMOVAndMOQDateTime DateTime2 SET @LastMOVAndMOQDateTime = '10/15/2025 6:18:44 AM' INSERT INTO dbo.ScheduledOrder (LocationId, ReorderDate, OutOfStock, StatusId, TotalAssetCount, AssetCountWithOldImage, OrderMovementTypeId, TotalCaseSize, OrderSize, RestockIn, IgnoredReason, PurityDateTime, AssetPurityIds, UniqueGuid, FinalMoQ, FinalMoV, LastMOVAndMOQDateTime, SuggestedOrderSize, SuggestedTotalCaseSize, OutletOccupancy) VALUES (@LocationId, @ReorderDate, @OutOfStock, @StatusId, @TotalAssetCount, @AssetCountWithOldImage, @OrderMovementTypeId, @TotalCaseSize, @OrderSize, @RestockIn, @IgnoredReason, @PurityDateTime, @AssetPurityIds, @UniqueGuid, @FinalMoQ, @FinalMoV, @LastMOVAndMOQDateTime, @SuggestedOrderSize, @SuggestedTotalCaseSize, @OutletOccupancy);SELECT SCOPE_IDENTITY() 2025-12-25 21:38:55.7974 DFramework.Database.Query /* Time Taken: 549*/ DECLARE @ScheduledOrderId Int32 SET @ScheduledOrderId = '322125' DECLARE @ProductId Int32 SET @ProductId = '24553' DECLARE @UnitsNeeded Decimal(4,2) SET @UnitsNeeded = '15.00' DECLARE @UnitPrice Decimal(4,2) SET @UnitPrice = '20.00' DECLARE @CaseSize Int32 SET @CaseSize = '15' DECLARE @StockLevel Decimal(2,2) SET @StockLevel = '0.00' DECLARE @AssetId Int32 SET @AssetId = '89229' DECLARE @AssetPurityId Decimal(7,0) SET @AssetPurityId = '3672755' DECLARE @UnitLabelId Int32 SET @UnitLabelId = '7619' INSERT INTO dbo.ScheduledOrderItem (ScheduledOrderId, ProductId, UnitsNeeded, UnitPrice, CaseSize, StockLevel, AssetId,AssetPurityId, UnitLabelId) VALUES (@ScheduledOrderId, @ProductId, @UnitsNeeded, @UnitPrice, @CaseSize, @StockLevel, @AssetId, @AssetPurityId, @UnitLabelId) 2025-12-25 21:38:57.8599 DFramework.Database.Query /* Time Taken: 2039*/ DECLARE @LocationId Int32 SET @LocationId = '364440' DECLARE @ReorderDate DateTime2 SET @ReorderDate = '12/26/2025 5:38:55 AM' DECLARE @StatusId Int32 SET @StatusId = '5486' DECLARE @OutOfStock Decimal(2,0) SET @OutOfStock = '88' DECLARE @TotalAssetCount Int32 SET @TotalAssetCount = '1' DECLARE @AssetCountWithOldImage Int32 SET @AssetCountWithOldImage = '1' DECLARE @OrderMovementTypeId Int32 SET @OrderMovementTypeId = '5538' DECLARE @TotalCaseSize Decimal(3,2) SET @TotalCaseSize = '7.00' DECLARE @OrderSize Decimal(4,0) SET @OrderSize = '4000' DECLARE @RestockIn Int32 SET @RestockIn = '0' DECLARE @IgnoredReason AnsiString(8000) SET @IgnoredReason = 'No latest image available Or temperature is Out of threshold :-999.00, Or Ignore Based On lastOrderDate :False ' DECLARE @PurityDateTime DateTime2 SET @PurityDateTime = '12/4/2025 12:00:00 AM' DECLARE @AssetPurityIds AnsiString(8000) SET @AssetPurityIds = '3672655' DECLARE @UniqueGuid AnsiString(8000) SET @UniqueGuid = '6C3FE19C-05F2-4147-BC72-949E86BD101B' DECLARE @FinalMoQ Int32 SET @FinalMoQ = '5' DECLARE @FinalMoV Int32 SET @FinalMoV = '100' DECLARE @SuggestedOrderSize Decimal(4,0) SET @SuggestedOrderSize = '4000' DECLARE @SuggestedTotalCaseSize Decimal(3,2) SET @SuggestedTotalCaseSize = '7.00' DECLARE @OutletOccupancy Decimal(1,0) SET @OutletOccupancy = '0' DECLARE @LastMOVAndMOQDateTime DateTime2 SET @LastMOVAndMOQDateTime = '11/19/2025 3:03:57 PM' INSERT INTO dbo.ScheduledOrder (LocationId, ReorderDate, OutOfStock, StatusId, TotalAssetCount, AssetCountWithOldImage, OrderMovementTypeId, TotalCaseSize, OrderSize, RestockIn, IgnoredReason, PurityDateTime, AssetPurityIds, UniqueGuid, FinalMoQ, FinalMoV, LastMOVAndMOQDateTime, SuggestedOrderSize, SuggestedTotalCaseSize, OutletOccupancy) VALUES (@LocationId, @ReorderDate, @OutOfStock, @StatusId, @TotalAssetCount, @AssetCountWithOldImage, @OrderMovementTypeId, @TotalCaseSize, @OrderSize, @RestockIn, @IgnoredReason, @PurityDateTime, @AssetPurityIds, @UniqueGuid, @FinalMoQ, @FinalMoV, @LastMOVAndMOQDateTime, @SuggestedOrderSize, @SuggestedTotalCaseSize, @OutletOccupancy);SELECT SCOPE_IDENTITY() 2025-12-25 21:39:01.3756 DFramework.Database.Query /* Time Taken: 1088*/ DECLARE @LocationId Int32 SET @LocationId = '364441' DECLARE @ReorderDate DateTime2 SET @ReorderDate = '12/26/2025 5:39:00 AM' DECLARE @StatusId Int32 SET @StatusId = '5486' DECLARE @OutOfStock Decimal(2,0) SET @OutOfStock = '67' DECLARE @TotalAssetCount Int32 SET @TotalAssetCount = '2' DECLARE @AssetCountWithOldImage Int32 SET @AssetCountWithOldImage = '2' DECLARE @OrderMovementTypeId Int32 SET @OrderMovementTypeId = '5538' DECLARE @TotalCaseSize Decimal(4,2) SET @TotalCaseSize = '26.00' DECLARE @OrderSize Decimal(4,0) SET @OrderSize = '2770' DECLARE @RestockIn Int32 SET @RestockIn = '0' DECLARE @IgnoredReason AnsiString(8000) SET @IgnoredReason = 'No latest image available Or temperature is Out of threshold :-999.00, Or Ignore Based On lastOrderDate :False ' DECLARE @PurityDateTime DateTime2 SET @PurityDateTime = '7/4/2025 12:00:00 AM' DECLARE @AssetPurityIds AnsiString(8000) SET @AssetPurityIds = '3606277' DECLARE @UniqueGuid AnsiString(8000) SET @UniqueGuid = 'C253D417-E66D-4268-BC49-4AA306CCC914' DECLARE @FinalMoQ Int32 SET @FinalMoQ = '5' DECLARE @FinalMoV Int32 SET @FinalMoV = '100' DECLARE @SuggestedOrderSize Decimal(4,0) SET @SuggestedOrderSize = '2770' DECLARE @SuggestedTotalCaseSize Decimal(4,2) SET @SuggestedTotalCaseSize = '26.00' DECLARE @OutletOccupancy Decimal(1,0) SET @OutletOccupancy = '0' DECLARE @LastMOVAndMOQDateTime DateTime2 SET @LastMOVAndMOQDateTime = '5/30/2025 8:17:42 AM' INSERT INTO dbo.ScheduledOrder (LocationId, ReorderDate, OutOfStock, StatusId, TotalAssetCount, AssetCountWithOldImage, OrderMovementTypeId, TotalCaseSize, OrderSize, RestockIn, IgnoredReason, PurityDateTime, AssetPurityIds, UniqueGuid, FinalMoQ, FinalMoV, LastMOVAndMOQDateTime, SuggestedOrderSize, SuggestedTotalCaseSize, OutletOccupancy) VALUES (@LocationId, @ReorderDate, @OutOfStock, @StatusId, @TotalAssetCount, @AssetCountWithOldImage, @OrderMovementTypeId, @TotalCaseSize, @OrderSize, @RestockIn, @IgnoredReason, @PurityDateTime, @AssetPurityIds, @UniqueGuid, @FinalMoQ, @FinalMoV, @LastMOVAndMOQDateTime, @SuggestedOrderSize, @SuggestedTotalCaseSize, @OutletOccupancy);SELECT SCOPE_IDENTITY() 2025-12-25 21:39:08.5944 DFramework.Database.Query /* Time Taken: 1278*/ DECLARE @LocationId Int32 SET @LocationId = '389820' DECLARE @ReorderDate DateTime2 SET @ReorderDate = '12/26/2025 5:39:07 AM' DECLARE @StatusId Int32 SET @StatusId = '5486' DECLARE @OutOfStock Decimal(3,0) SET @OutOfStock = '100' DECLARE @TotalAssetCount Int32 SET @TotalAssetCount = '1' DECLARE @AssetCountWithOldImage Int32 SET @AssetCountWithOldImage = '1' DECLARE @OrderMovementTypeId Int32 SET @OrderMovementTypeId = '5538' DECLARE @TotalCaseSize Decimal(4,2) SET @TotalCaseSize = '11.00' DECLARE @OrderSize Decimal(4,0) SET @OrderSize = '1982' DECLARE @RestockIn Int32 SET @RestockIn = '0' DECLARE @IgnoredReason AnsiString(8000) SET @IgnoredReason = 'No latest image available Or temperature is Out of threshold :-999.00, Or Ignore Based On lastOrderDate :False ' DECLARE @PurityDateTime DateTime2 SET @PurityDateTime = '4/15/2025 12:00:00 AM' DECLARE @AssetPurityIds AnsiString(8000) SET @AssetPurityIds = '3543822' DECLARE @UniqueGuid AnsiString(8000) SET @UniqueGuid = 'AB069895-8A55-4DAB-9218-2BCED74698DC' DECLARE @FinalMoQ Int32 SET @FinalMoQ = '5' DECLARE @FinalMoV Int32 SET @FinalMoV = '100' DECLARE @SuggestedOrderSize Decimal(4,0) SET @SuggestedOrderSize = '1982' DECLARE @SuggestedTotalCaseSize Decimal(4,2) SET @SuggestedTotalCaseSize = '11.00' DECLARE @OutletOccupancy Decimal(1,0) SET @OutletOccupancy = '0' DECLARE @LastMOVAndMOQDateTime DateTime2 SET @LastMOVAndMOQDateTime = '4/1/2024 12:43:25 PM' INSERT INTO dbo.ScheduledOrder (LocationId, ReorderDate, OutOfStock, StatusId, TotalAssetCount, AssetCountWithOldImage, OrderMovementTypeId, TotalCaseSize, OrderSize, RestockIn, IgnoredReason, PurityDateTime, AssetPurityIds, UniqueGuid, FinalMoQ, FinalMoV, LastMOVAndMOQDateTime, SuggestedOrderSize, SuggestedTotalCaseSize, OutletOccupancy) VALUES (@LocationId, @ReorderDate, @OutOfStock, @StatusId, @TotalAssetCount, @AssetCountWithOldImage, @OrderMovementTypeId, @TotalCaseSize, @OrderSize, @RestockIn, @IgnoredReason, @PurityDateTime, @AssetPurityIds, @UniqueGuid, @FinalMoQ, @FinalMoV, @LastMOVAndMOQDateTime, @SuggestedOrderSize, @SuggestedTotalCaseSize, @OutletOccupancy);SELECT SCOPE_IDENTITY() 2025-12-25 21:39:16.6569 DFramework.Database.Query /* Time Taken: 1042*/ DECLARE @Asset_LocationId Int32 SET @Asset_LocationId = '400135' DECLARE @Asset_IsDeleted Int32 SET @Asset_IsDeleted = '0' SELECT AVG(OnShelfAvailability) FROM dbo.Asset INNER JOIN dbo.AssetAttribute ON Asset.AssetId = AssetAttribute.AssetId INNER JOIN dbo.vwAssetPurityKPI ON vwAssetPurityKPI.AssetPurityId = AssetAttribute.LatestProcessedPurityId INNER JOIN dbo.Client ON Client.ClientId = Asset.ClientId WHERE Asset.LocationId = @Asset_LocationId AND Asset.IsDeleted = @Asset_IsDeleted AND vwAssetPurityKPI.PurityDateTime >= DATEADD(HOUR, -Client.HoursToConsiderOrderImage, GETUTCDATE()) 2025-12-25 21:39:17.6569 DFramework.Database.Query /* Time Taken: 997*/ DECLARE @LocationId Int32 SET @LocationId = '400135' DECLARE @ReorderDate DateTime2 SET @ReorderDate = '12/26/2025 5:39:16 AM' DECLARE @StatusId Int32 SET @StatusId = '5486' DECLARE @OutOfStock Decimal(2,0) SET @OutOfStock = '67' DECLARE @TotalAssetCount Int32 SET @TotalAssetCount = '2' DECLARE @AssetCountWithOldImage Int32 SET @AssetCountWithOldImage = '2' DECLARE @OrderMovementTypeId Int32 SET @OrderMovementTypeId = '5538' DECLARE @TotalCaseSize Decimal(4,2) SET @TotalCaseSize = '18.00' DECLARE @OrderSize Decimal(3,0) SET @OrderSize = '440' DECLARE @RestockIn Int32 SET @RestockIn = '0' DECLARE @IgnoredReason AnsiString(8000) SET @IgnoredReason = 'No latest image available Or temperature is Out of threshold :-999.00, Or Ignore Based On lastOrderDate :False ' DECLARE @PurityDateTime DateTime2 SET @PurityDateTime = '12/4/2025 12:00:00 AM' DECLARE @AssetPurityIds AnsiString(8000) SET @AssetPurityIds = '3672791' DECLARE @UniqueGuid AnsiString(8000) SET @UniqueGuid = 'F21285E3-C2A2-4009-9196-AB6263508529' DECLARE @FinalMoQ Int32 SET @FinalMoQ = '5' DECLARE @FinalMoV Int32 SET @FinalMoV = '100' DECLARE @SuggestedOrderSize Decimal(3,0) SET @SuggestedOrderSize = '440' DECLARE @SuggestedTotalCaseSize Decimal(4,2) SET @SuggestedTotalCaseSize = '18.00' DECLARE @OutletOccupancy Decimal(1,0) SET @OutletOccupancy = '0' DECLARE @LastMOVAndMOQDateTime DateTime2 SET @LastMOVAndMOQDateTime = '11/27/2025 1:56:56 PM' INSERT INTO dbo.ScheduledOrder (LocationId, ReorderDate, OutOfStock, StatusId, TotalAssetCount, AssetCountWithOldImage, OrderMovementTypeId, TotalCaseSize, OrderSize, RestockIn, IgnoredReason, PurityDateTime, AssetPurityIds, UniqueGuid, FinalMoQ, FinalMoV, LastMOVAndMOQDateTime, SuggestedOrderSize, SuggestedTotalCaseSize, OutletOccupancy) VALUES (@LocationId, @ReorderDate, @OutOfStock, @StatusId, @TotalAssetCount, @AssetCountWithOldImage, @OrderMovementTypeId, @TotalCaseSize, @OrderSize, @RestockIn, @IgnoredReason, @PurityDateTime, @AssetPurityIds, @UniqueGuid, @FinalMoQ, @FinalMoV, @LastMOVAndMOQDateTime, @SuggestedOrderSize, @SuggestedTotalCaseSize, @OutletOccupancy);SELECT SCOPE_IDENTITY() 2025-12-25 21:39:19.8601 DFramework.Database.Query /* Time Taken: 915*/ DECLARE @LocationId Int32 SET @LocationId = '403032' DECLARE @ReorderDate DateTime2 SET @ReorderDate = '12/26/2025 5:39:18 AM' DECLARE @StatusId Int32 SET @StatusId = '5486' DECLARE @OutOfStock Decimal(2,0) SET @OutOfStock = '32' DECLARE @TotalAssetCount Int32 SET @TotalAssetCount = '1' DECLARE @AssetCountWithOldImage Int32 SET @AssetCountWithOldImage = '1' DECLARE @OrderMovementTypeId Int32 SET @OrderMovementTypeId = '5538' DECLARE @TotalCaseSize Decimal(3,2) SET @TotalCaseSize = '1.00' DECLARE @OrderSize Decimal(3,0) SET @OrderSize = '200' DECLARE @RestockIn Int32 SET @RestockIn = '0' DECLARE @IgnoredReason AnsiString(8000) SET @IgnoredReason = 'No latest image available Or temperature is Out of threshold :-999.00, Or Ignore Based On lastOrderDate :False ' DECLARE @PurityDateTime DateTime2 SET @PurityDateTime = '11/4/2025 12:00:00 AM' DECLARE @AssetPurityIds AnsiString(8000) SET @AssetPurityIds = '3664550,3664634' DECLARE @UniqueGuid AnsiString(8000) SET @UniqueGuid = '76C4CAA9-AF71-498E-857A-C0660FB0E40E,6404E506-6CD5-414E-B355-5E9AC619C920' DECLARE @FinalMoQ Int32 SET @FinalMoQ = '5' DECLARE @FinalMoV Int32 SET @FinalMoV = '100' DECLARE @SuggestedOrderSize Decimal(3,0) SET @SuggestedOrderSize = '200' DECLARE @SuggestedTotalCaseSize Decimal(3,2) SET @SuggestedTotalCaseSize = '1.00' DECLARE @OutletOccupancy Decimal(1,0) SET @OutletOccupancy = '0' DECLARE @LastMOVAndMOQDateTime DateTime2 SET @LastMOVAndMOQDateTime = '11/4/2025 1:37:21 PM' INSERT INTO dbo.ScheduledOrder (LocationId, ReorderDate, OutOfStock, StatusId, TotalAssetCount, AssetCountWithOldImage, OrderMovementTypeId, TotalCaseSize, OrderSize, RestockIn, IgnoredReason, PurityDateTime, AssetPurityIds, UniqueGuid, FinalMoQ, FinalMoV, LastMOVAndMOQDateTime, SuggestedOrderSize, SuggestedTotalCaseSize, OutletOccupancy) VALUES (@LocationId, @ReorderDate, @OutOfStock, @StatusId, @TotalAssetCount, @AssetCountWithOldImage, @OrderMovementTypeId, @TotalCaseSize, @OrderSize, @RestockIn, @IgnoredReason, @PurityDateTime, @AssetPurityIds, @UniqueGuid, @FinalMoQ, @FinalMoV, @LastMOVAndMOQDateTime, @SuggestedOrderSize, @SuggestedTotalCaseSize, @OutletOccupancy);SELECT SCOPE_IDENTITY() 2025-12-25 21:39:21.4851 DFramework.Database.Query /* Time Taken: 750*/ DECLARE @LocationId Int32 SET @LocationId = '403036' DECLARE @ReorderDate DateTime2 SET @ReorderDate = '12/26/2025 5:39:20 AM' DECLARE @StatusId Int32 SET @StatusId = '5486' DECLARE @OutOfStock Decimal(3,0) SET @OutOfStock = '100' DECLARE @TotalAssetCount Int32 SET @TotalAssetCount = '2' DECLARE @AssetCountWithOldImage Int32 SET @AssetCountWithOldImage = '2' DECLARE @OrderMovementTypeId Int32 SET @OrderMovementTypeId = '5538' DECLARE @TotalCaseSize Decimal(4,2) SET @TotalCaseSize = '12.00' DECLARE @OrderSize Decimal(4,0) SET @OrderSize = '3792' DECLARE @RestockIn Int32 SET @RestockIn = '0' DECLARE @IgnoredReason AnsiString(8000) SET @IgnoredReason = 'No latest image available Or temperature is Out of threshold :-999.00, Or Ignore Based On lastOrderDate :False ' DECLARE @PurityDateTime DateTime2 SET @PurityDateTime = '8/20/2025 12:00:00 AM' DECLARE @AssetPurityIds AnsiString(8000) SET @AssetPurityIds = '3626214' DECLARE @UniqueGuid AnsiString(8000) SET @UniqueGuid = 'FB861CA9-F787-4608-A3A5-9BB07D2EB20C' DECLARE @FinalMoQ Int32 SET @FinalMoQ = '5' DECLARE @FinalMoV Int32 SET @FinalMoV = '100' DECLARE @SuggestedOrderSize Decimal(4,0) SET @SuggestedOrderSize = '3792' DECLARE @SuggestedTotalCaseSize Decimal(4,2) SET @SuggestedTotalCaseSize = '12.00' DECLARE @OutletOccupancy Decimal(1,0) SET @OutletOccupancy = '0' DECLARE @LastMOVAndMOQDateTime DateTime2 SET @LastMOVAndMOQDateTime = '8/20/2025 2:22:30 PM' INSERT INTO dbo.ScheduledOrder (LocationId, ReorderDate, OutOfStock, StatusId, TotalAssetCount, AssetCountWithOldImage, OrderMovementTypeId, TotalCaseSize, OrderSize, RestockIn, IgnoredReason, PurityDateTime, AssetPurityIds, UniqueGuid, FinalMoQ, FinalMoV, LastMOVAndMOQDateTime, SuggestedOrderSize, SuggestedTotalCaseSize, OutletOccupancy) VALUES (@LocationId, @ReorderDate, @OutOfStock, @StatusId, @TotalAssetCount, @AssetCountWithOldImage, @OrderMovementTypeId, @TotalCaseSize, @OrderSize, @RestockIn, @IgnoredReason, @PurityDateTime, @AssetPurityIds, @UniqueGuid, @FinalMoQ, @FinalMoV, @LastMOVAndMOQDateTime, @SuggestedOrderSize, @SuggestedTotalCaseSize, @OutletOccupancy);SELECT SCOPE_IDENTITY() 2025-12-25 21:39:25.9070 DFramework.Database.Query /* Time Taken: 1183*/ DECLARE @LocationId Int32 SET @LocationId = '422668' DECLARE @ReorderDate DateTime2 SET @ReorderDate = '12/26/2025 5:39:24 AM' DECLARE @StatusId Int32 SET @StatusId = '5486' DECLARE @OutOfStock Decimal(2,0) SET @OutOfStock = '94' DECLARE @TotalAssetCount Int32 SET @TotalAssetCount = '1' DECLARE @AssetCountWithOldImage Int32 SET @AssetCountWithOldImage = '1' DECLARE @OrderMovementTypeId Int32 SET @OrderMovementTypeId = '5538' DECLARE @TotalCaseSize Decimal(4,2) SET @TotalCaseSize = '32.00' DECLARE @OrderSize Decimal(4,0) SET @OrderSize = '1419' DECLARE @RestockIn Int32 SET @RestockIn = '0' DECLARE @IgnoredReason AnsiString(8000) SET @IgnoredReason = 'No latest image available Or temperature is Out of threshold :-999.00, Or Ignore Based On lastOrderDate :False ' DECLARE @PurityDateTime DateTime2 SET @PurityDateTime = '1/16/2025 12:00:00 AM' DECLARE @AssetPurityIds AnsiString(8000) SET @AssetPurityIds = '3476864,3476795' DECLARE @UniqueGuid AnsiString(8000) SET @UniqueGuid = '3BA6C27F-B424-4543-AB50-958B2546126B,D457AE08-159E-4587-B306-E6FC66A096C7' DECLARE @FinalMoQ Int32 SET @FinalMoQ = '5' DECLARE @FinalMoV Int32 SET @FinalMoV = '100' DECLARE @SuggestedOrderSize Decimal(4,0) SET @SuggestedOrderSize = '1419' DECLARE @SuggestedTotalCaseSize Decimal(4,2) SET @SuggestedTotalCaseSize = '32.00' DECLARE @OutletOccupancy Decimal(1,0) SET @OutletOccupancy = '0' DECLARE @LastMOVAndMOQDateTime DateTime2 SET @LastMOVAndMOQDateTime = '1/16/2025 7:43:58 AM' INSERT INTO dbo.ScheduledOrder (LocationId, ReorderDate, OutOfStock, StatusId, TotalAssetCount, AssetCountWithOldImage, OrderMovementTypeId, TotalCaseSize, OrderSize, RestockIn, IgnoredReason, PurityDateTime, AssetPurityIds, UniqueGuid, FinalMoQ, FinalMoV, LastMOVAndMOQDateTime, SuggestedOrderSize, SuggestedTotalCaseSize, OutletOccupancy) VALUES (@LocationId, @ReorderDate, @OutOfStock, @StatusId, @TotalAssetCount, @AssetCountWithOldImage, @OrderMovementTypeId, @TotalCaseSize, @OrderSize, @RestockIn, @IgnoredReason, @PurityDateTime, @AssetPurityIds, @UniqueGuid, @FinalMoQ, @FinalMoV, @LastMOVAndMOQDateTime, @SuggestedOrderSize, @SuggestedTotalCaseSize, @OutletOccupancy);SELECT SCOPE_IDENTITY() 2025-12-25 21:39:29.5320 DFramework.Database.Query /* Time Taken: 1056*/ DECLARE @LocationId Int32 SET @LocationId = '426291' DECLARE @ReorderDate DateTime2 SET @ReorderDate = '12/26/2025 5:39:28 AM' DECLARE @StatusId Int32 SET @StatusId = '5486' DECLARE @OutOfStock Decimal(2,0) SET @OutOfStock = '88' DECLARE @TotalAssetCount Int32 SET @TotalAssetCount = '1' DECLARE @AssetCountWithOldImage Int32 SET @AssetCountWithOldImage = '1' DECLARE @OrderMovementTypeId Int32 SET @OrderMovementTypeId = '5538' DECLARE @TotalCaseSize Decimal(4,2) SET @TotalCaseSize = '47.00' DECLARE @OrderSize Decimal(4,0) SET @OrderSize = '8284' DECLARE @RestockIn Int32 SET @RestockIn = '0' DECLARE @IgnoredReason AnsiString(8000) SET @IgnoredReason = 'No latest image available Or temperature is Out of threshold :-999.00, Or Ignore Based On lastOrderDate :False ' DECLARE @PurityDateTime DateTime2 SET @PurityDateTime = '11/3/2025 12:00:00 AM' DECLARE @AssetPurityIds AnsiString(8000) SET @AssetPurityIds = '3664232,3664230' DECLARE @UniqueGuid AnsiString(8000) SET @UniqueGuid = 'C9F4737B-B6C4-4C09-970E-2ABADEA2984C,E4831B4E-8410-4133-A542-11D2412DEF8E' DECLARE @FinalMoQ Int32 SET @FinalMoQ = '5' DECLARE @FinalMoV Int32 SET @FinalMoV = '100' DECLARE @SuggestedOrderSize Decimal(4,0) SET @SuggestedOrderSize = '8284' DECLARE @SuggestedTotalCaseSize Decimal(4,2) SET @SuggestedTotalCaseSize = '47.00' DECLARE @OutletOccupancy Decimal(1,0) SET @OutletOccupancy = '0' DECLARE @LastMOVAndMOQDateTime DateTime2 SET @LastMOVAndMOQDateTime = '11/3/2025 8:26:14 AM' INSERT INTO dbo.ScheduledOrder (LocationId, ReorderDate, OutOfStock, StatusId, TotalAssetCount, AssetCountWithOldImage, OrderMovementTypeId, TotalCaseSize, OrderSize, RestockIn, IgnoredReason, PurityDateTime, AssetPurityIds, UniqueGuid, FinalMoQ, FinalMoV, LastMOVAndMOQDateTime, SuggestedOrderSize, SuggestedTotalCaseSize, OutletOccupancy) VALUES (@LocationId, @ReorderDate, @OutOfStock, @StatusId, @TotalAssetCount, @AssetCountWithOldImage, @OrderMovementTypeId, @TotalCaseSize, @OrderSize, @RestockIn, @IgnoredReason, @PurityDateTime, @AssetPurityIds, @UniqueGuid, @FinalMoQ, @FinalMoV, @LastMOVAndMOQDateTime, @SuggestedOrderSize, @SuggestedTotalCaseSize, @OutletOccupancy);SELECT SCOPE_IDENTITY() 2025-12-25 21:39:37.3446 DFramework.Database.Query /* Time Taken: 1105*/ DECLARE @LocationId Int32 SET @LocationId = '426293' DECLARE @ReorderDate DateTime2 SET @ReorderDate = '12/26/2025 5:39:36 AM' DECLARE @StatusId Int32 SET @StatusId = '5486' DECLARE @OutOfStock Decimal(2,0) SET @OutOfStock = '93' DECLARE @TotalAssetCount Int32 SET @TotalAssetCount = '1' DECLARE @AssetCountWithOldImage Int32 SET @AssetCountWithOldImage = '1' DECLARE @OrderMovementTypeId Int32 SET @OrderMovementTypeId = '5538' DECLARE @TotalCaseSize Decimal(4,2) SET @TotalCaseSize = '47.00' DECLARE @OrderSize Decimal(4,0) SET @OrderSize = '2840' DECLARE @RestockIn Int32 SET @RestockIn = '0' DECLARE @IgnoredReason AnsiString(8000) SET @IgnoredReason = 'No latest image available Or temperature is Out of threshold :-999.00, Or Ignore Based On lastOrderDate :False ' DECLARE @PurityDateTime DateTime2 SET @PurityDateTime = '9/8/2025 12:00:00 AM' DECLARE @AssetPurityIds AnsiString(8000) SET @AssetPurityIds = '3643176' DECLARE @UniqueGuid AnsiString(8000) SET @UniqueGuid = '5A7E0F81-9CD0-492A-A64B-C1CBABD898EB' DECLARE @FinalMoQ Int32 SET @FinalMoQ = '5' DECLARE @FinalMoV Int32 SET @FinalMoV = '100' DECLARE @SuggestedOrderSize Decimal(4,0) SET @SuggestedOrderSize = '2840' DECLARE @SuggestedTotalCaseSize Decimal(4,2) SET @SuggestedTotalCaseSize = '47.00' DECLARE @OutletOccupancy Decimal(1,0) SET @OutletOccupancy = '0' DECLARE @LastMOVAndMOQDateTime DateTime2 SET @LastMOVAndMOQDateTime = '9/8/2025 1:49:55 PM' INSERT INTO dbo.ScheduledOrder (LocationId, ReorderDate, OutOfStock, StatusId, TotalAssetCount, AssetCountWithOldImage, OrderMovementTypeId, TotalCaseSize, OrderSize, RestockIn, IgnoredReason, PurityDateTime, AssetPurityIds, UniqueGuid, FinalMoQ, FinalMoV, LastMOVAndMOQDateTime, SuggestedOrderSize, SuggestedTotalCaseSize, OutletOccupancy) VALUES (@LocationId, @ReorderDate, @OutOfStock, @StatusId, @TotalAssetCount, @AssetCountWithOldImage, @OrderMovementTypeId, @TotalCaseSize, @OrderSize, @RestockIn, @IgnoredReason, @PurityDateTime, @AssetPurityIds, @UniqueGuid, @FinalMoQ, @FinalMoV, @LastMOVAndMOQDateTime, @SuggestedOrderSize, @SuggestedTotalCaseSize, @OutletOccupancy);SELECT SCOPE_IDENTITY() 2025-12-25 21:39:44.1571 DFramework.Database.Query /* Time Taken: 875*/ DECLARE @LocationId Int32 SET @LocationId = '433628' DECLARE @ReorderDate DateTime2 SET @ReorderDate = '12/26/2025 5:39:43 AM' DECLARE @StatusId Int32 SET @StatusId = '5486' DECLARE @OutOfStock Decimal(1,0) SET @OutOfStock = '0' DECLARE @TotalAssetCount Int32 SET @TotalAssetCount = '1' DECLARE @AssetCountWithOldImage Int32 SET @AssetCountWithOldImage = '1' DECLARE @OrderMovementTypeId Int32 SET @OrderMovementTypeId = '5538' DECLARE @TotalCaseSize Decimal(2,2) SET @TotalCaseSize = '0.00' DECLARE @OrderSize Decimal(1,0) SET @OrderSize = '0' DECLARE @RestockIn Int32 SET @RestockIn = '0' DECLARE @IgnoredReason AnsiString(8000) SET @IgnoredReason = 'No latest image available Or temperature is Out of threshold :-999.00, Or Ignore Based On lastOrderDate :False ' DECLARE @PurityDateTime DateTime2 SET @PurityDateTime = '5/2/2025 12:00:00 AM' DECLARE @AssetPurityIds AnsiString(8000) SET @AssetPurityIds = '3568221' DECLARE @UniqueGuid AnsiString(8000) SET @UniqueGuid = '0262B1F4-F33A-49EE-B07D-DE9CC9200CAB' DECLARE @FinalMoQ Int32 SET @FinalMoQ = '5' DECLARE @FinalMoV Int32 SET @FinalMoV = '100' DECLARE @SuggestedOrderSize Decimal(1,0) SET @SuggestedOrderSize = '0' DECLARE @SuggestedTotalCaseSize Decimal(2,2) SET @SuggestedTotalCaseSize = '0.00' DECLARE @OutletOccupancy Decimal(1,0) SET @OutletOccupancy = '0' DECLARE @LastMOVAndMOQDateTime DateTime2 SET @LastMOVAndMOQDateTime = '' INSERT INTO dbo.ScheduledOrder (LocationId, ReorderDate, OutOfStock, StatusId, TotalAssetCount, AssetCountWithOldImage, OrderMovementTypeId, TotalCaseSize, OrderSize, RestockIn, IgnoredReason, PurityDateTime, AssetPurityIds, UniqueGuid, FinalMoQ, FinalMoV, LastMOVAndMOQDateTime, SuggestedOrderSize, SuggestedTotalCaseSize, OutletOccupancy) VALUES (@LocationId, @ReorderDate, @OutOfStock, @StatusId, @TotalAssetCount, @AssetCountWithOldImage, @OrderMovementTypeId, @TotalCaseSize, @OrderSize, @RestockIn, @IgnoredReason, @PurityDateTime, @AssetPurityIds, @UniqueGuid, @FinalMoQ, @FinalMoV, @LastMOVAndMOQDateTime, @SuggestedOrderSize, @SuggestedTotalCaseSize, @OutletOccupancy);SELECT SCOPE_IDENTITY() 2025-12-25 21:39:45.4228 DFramework.Database.Query /* Time Taken: 883*/ DECLARE @LocationId Int32 SET @LocationId = '433648' DECLARE @ReorderDate DateTime2 SET @ReorderDate = '12/26/2025 5:39:44 AM' DECLARE @StatusId Int32 SET @StatusId = '5486' DECLARE @OutOfStock Decimal(3,0) SET @OutOfStock = '100' DECLARE @TotalAssetCount Int32 SET @TotalAssetCount = '1' DECLARE @AssetCountWithOldImage Int32 SET @AssetCountWithOldImage = '1' DECLARE @OrderMovementTypeId Int32 SET @OrderMovementTypeId = '5538' DECLARE @TotalCaseSize Decimal(4,2) SET @TotalCaseSize = '12.00' DECLARE @OrderSize Decimal(4,0) SET @OrderSize = '2578' DECLARE @RestockIn Int32 SET @RestockIn = '0' DECLARE @IgnoredReason AnsiString(8000) SET @IgnoredReason = 'No latest image available Or temperature is Out of threshold :-999.00, Or Ignore Based On lastOrderDate :False ' DECLARE @PurityDateTime DateTime2 SET @PurityDateTime = '8/8/2025 12:00:00 AM' DECLARE @AssetPurityIds AnsiString(8000) SET @AssetPurityIds = '3616450,3616447' DECLARE @UniqueGuid AnsiString(8000) SET @UniqueGuid = 'B5751F35-4451-4C3A-BBBA-1613F42CA4AC,DBA3F69C-5D84-463A-BD06-4960C4807E7E' DECLARE @FinalMoQ Int32 SET @FinalMoQ = '5' DECLARE @FinalMoV Int32 SET @FinalMoV = '100' DECLARE @SuggestedOrderSize Decimal(4,0) SET @SuggestedOrderSize = '2578' DECLARE @SuggestedTotalCaseSize Decimal(4,2) SET @SuggestedTotalCaseSize = '12.00' DECLARE @OutletOccupancy Decimal(1,0) SET @OutletOccupancy = '0' DECLARE @LastMOVAndMOQDateTime DateTime2 SET @LastMOVAndMOQDateTime = '5/9/2025 8:56:44 AM' INSERT INTO dbo.ScheduledOrder (LocationId, ReorderDate, OutOfStock, StatusId, TotalAssetCount, AssetCountWithOldImage, OrderMovementTypeId, TotalCaseSize, OrderSize, RestockIn, IgnoredReason, PurityDateTime, AssetPurityIds, UniqueGuid, FinalMoQ, FinalMoV, LastMOVAndMOQDateTime, SuggestedOrderSize, SuggestedTotalCaseSize, OutletOccupancy) VALUES (@LocationId, @ReorderDate, @OutOfStock, @StatusId, @TotalAssetCount, @AssetCountWithOldImage, @OrderMovementTypeId, @TotalCaseSize, @OrderSize, @RestockIn, @IgnoredReason, @PurityDateTime, @AssetPurityIds, @UniqueGuid, @FinalMoQ, @FinalMoV, @LastMOVAndMOQDateTime, @SuggestedOrderSize, @SuggestedTotalCaseSize, @OutletOccupancy);SELECT SCOPE_IDENTITY() 2025-12-25 21:39:47.6884 DFramework.Database.Query /* Time Taken: 707*/ DECLARE @LocationId Int32 SET @LocationId = '433667' DECLARE @ReorderDate DateTime2 SET @ReorderDate = '12/26/2025 5:39:46 AM' DECLARE @StatusId Int32 SET @StatusId = '5486' DECLARE @OutOfStock Decimal(2,0) SET @OutOfStock = '31' DECLARE @TotalAssetCount Int32 SET @TotalAssetCount = '2' DECLARE @AssetCountWithOldImage Int32 SET @AssetCountWithOldImage = '2' DECLARE @OrderMovementTypeId Int32 SET @OrderMovementTypeId = '5538' DECLARE @TotalCaseSize Decimal(2,2) SET @TotalCaseSize = '0.00' DECLARE @OrderSize Decimal(1,0) SET @OrderSize = '0' DECLARE @RestockIn Int32 SET @RestockIn = '0' DECLARE @IgnoredReason AnsiString(8000) SET @IgnoredReason = 'No latest image available Or temperature is Out of threshold :-999.00, Or Ignore Based On lastOrderDate :False ' DECLARE @PurityDateTime DateTime2 SET @PurityDateTime = '5/23/2025 12:00:00 AM' DECLARE @AssetPurityIds AnsiString(8000) SET @AssetPurityIds = '3573566,3573552' DECLARE @UniqueGuid AnsiString(8000) SET @UniqueGuid = '066E7B96-A72D-423F-8D5C-713BB5CB96FD,E5994878-8D53-4D91-A374-485C63190F24' DECLARE @FinalMoQ Int32 SET @FinalMoQ = '5' DECLARE @FinalMoV Int32 SET @FinalMoV = '100' DECLARE @SuggestedOrderSize Decimal(1,0) SET @SuggestedOrderSize = '0' DECLARE @SuggestedTotalCaseSize Decimal(2,2) SET @SuggestedTotalCaseSize = '0.00' DECLARE @OutletOccupancy Decimal(1,0) SET @OutletOccupancy = '0' DECLARE @LastMOVAndMOQDateTime DateTime2 SET @LastMOVAndMOQDateTime = '' INSERT INTO dbo.ScheduledOrder (LocationId, ReorderDate, OutOfStock, StatusId, TotalAssetCount, AssetCountWithOldImage, OrderMovementTypeId, TotalCaseSize, OrderSize, RestockIn, IgnoredReason, PurityDateTime, AssetPurityIds, UniqueGuid, FinalMoQ, FinalMoV, LastMOVAndMOQDateTime, SuggestedOrderSize, SuggestedTotalCaseSize, OutletOccupancy) VALUES (@LocationId, @ReorderDate, @OutOfStock, @StatusId, @TotalAssetCount, @AssetCountWithOldImage, @OrderMovementTypeId, @TotalCaseSize, @OrderSize, @RestockIn, @IgnoredReason, @PurityDateTime, @AssetPurityIds, @UniqueGuid, @FinalMoQ, @FinalMoV, @LastMOVAndMOQDateTime, @SuggestedOrderSize, @SuggestedTotalCaseSize, @OutletOccupancy);SELECT SCOPE_IDENTITY() 2025-12-25 21:39:48.8290 DFramework.Database.Query /* Time Taken: 799*/ DECLARE @LocationId Int32 SET @LocationId = '433671' DECLARE @ReorderDate DateTime2 SET @ReorderDate = '12/26/2025 5:39:48 AM' DECLARE @StatusId Int32 SET @StatusId = '5486' DECLARE @OutOfStock Decimal(2,0) SET @OutOfStock = '71' DECLARE @TotalAssetCount Int32 SET @TotalAssetCount = '2' DECLARE @AssetCountWithOldImage Int32 SET @AssetCountWithOldImage = '2' DECLARE @OrderMovementTypeId Int32 SET @OrderMovementTypeId = '5538' DECLARE @TotalCaseSize Decimal(4,2) SET @TotalCaseSize = '13.00' DECLARE @OrderSize Decimal(4,0) SET @OrderSize = '2633' DECLARE @RestockIn Int32 SET @RestockIn = '0' DECLARE @IgnoredReason AnsiString(8000) SET @IgnoredReason = 'No latest image available Or temperature is Out of threshold :-999.00, Or Ignore Based On lastOrderDate :False ' DECLARE @PurityDateTime DateTime2 SET @PurityDateTime = '5/28/2025 12:00:00 AM' DECLARE @AssetPurityIds AnsiString(8000) SET @AssetPurityIds = '3575099,3575084,3575098' DECLARE @UniqueGuid AnsiString(8000) SET @UniqueGuid = '02A403DB-95B6-4C28-BA03-0A66BB0EB11F,46DF62BB-8BC1-4359-A8B1-64B21B41FA1C,EBA70104-6FA9-497D-B229-EF2BD95923AA' DECLARE @FinalMoQ Int32 SET @FinalMoQ = '5' DECLARE @FinalMoV Int32 SET @FinalMoV = '100' DECLARE @SuggestedOrderSize Decimal(4,0) SET @SuggestedOrderSize = '2633' DECLARE @SuggestedTotalCaseSize Decimal(4,2) SET @SuggestedTotalCaseSize = '13.00' DECLARE @OutletOccupancy Decimal(1,0) SET @OutletOccupancy = '0' DECLARE @LastMOVAndMOQDateTime DateTime2 SET @LastMOVAndMOQDateTime = '5/28/2025 11:17:58 AM' INSERT INTO dbo.ScheduledOrder (LocationId, ReorderDate, OutOfStock, StatusId, TotalAssetCount, AssetCountWithOldImage, OrderMovementTypeId, TotalCaseSize, OrderSize, RestockIn, IgnoredReason, PurityDateTime, AssetPurityIds, UniqueGuid, FinalMoQ, FinalMoV, LastMOVAndMOQDateTime, SuggestedOrderSize, SuggestedTotalCaseSize, OutletOccupancy) VALUES (@LocationId, @ReorderDate, @OutOfStock, @StatusId, @TotalAssetCount, @AssetCountWithOldImage, @OrderMovementTypeId, @TotalCaseSize, @OrderSize, @RestockIn, @IgnoredReason, @PurityDateTime, @AssetPurityIds, @UniqueGuid, @FinalMoQ, @FinalMoV, @LastMOVAndMOQDateTime, @SuggestedOrderSize, @SuggestedTotalCaseSize, @OutletOccupancy);SELECT SCOPE_IDENTITY() 2025-12-25 21:39:52.2353 DFramework.Database.Query /* Time Taken: 669*/ DECLARE @LocationId Int32 SET @LocationId = '433688' DECLARE @ReorderDate DateTime2 SET @ReorderDate = '12/26/2025 5:39:51 AM' DECLARE @StatusId Int32 SET @StatusId = '5486' DECLARE @OutOfStock Decimal(3,0) SET @OutOfStock = '100' DECLARE @TotalAssetCount Int32 SET @TotalAssetCount = '1' DECLARE @AssetCountWithOldImage Int32 SET @AssetCountWithOldImage = '1' DECLARE @OrderMovementTypeId Int32 SET @OrderMovementTypeId = '5538' DECLARE @TotalCaseSize Decimal(3,2) SET @TotalCaseSize = '7.00' DECLARE @OrderSize Decimal(4,0) SET @OrderSize = '1319' DECLARE @RestockIn Int32 SET @RestockIn = '0' DECLARE @IgnoredReason AnsiString(8000) SET @IgnoredReason = 'No latest image available Or temperature is Out of threshold :-999.00, Or Ignore Based On lastOrderDate :False ' DECLARE @PurityDateTime DateTime2 SET @PurityDateTime = '6/25/2025 12:00:00 AM' DECLARE @AssetPurityIds AnsiString(8000) SET @AssetPurityIds = '3604743' DECLARE @UniqueGuid AnsiString(8000) SET @UniqueGuid = '1B8DADD9-BA76-4848-A37A-4AA4CB6DA586' DECLARE @FinalMoQ Int32 SET @FinalMoQ = '5' DECLARE @FinalMoV Int32 SET @FinalMoV = '100' DECLARE @SuggestedOrderSize Decimal(4,0) SET @SuggestedOrderSize = '1319' DECLARE @SuggestedTotalCaseSize Decimal(3,2) SET @SuggestedTotalCaseSize = '7.00' DECLARE @OutletOccupancy Decimal(1,0) SET @OutletOccupancy = '0' DECLARE @LastMOVAndMOQDateTime DateTime2 SET @LastMOVAndMOQDateTime = '' INSERT INTO dbo.ScheduledOrder (LocationId, ReorderDate, OutOfStock, StatusId, TotalAssetCount, AssetCountWithOldImage, OrderMovementTypeId, TotalCaseSize, OrderSize, RestockIn, IgnoredReason, PurityDateTime, AssetPurityIds, UniqueGuid, FinalMoQ, FinalMoV, LastMOVAndMOQDateTime, SuggestedOrderSize, SuggestedTotalCaseSize, OutletOccupancy) VALUES (@LocationId, @ReorderDate, @OutOfStock, @StatusId, @TotalAssetCount, @AssetCountWithOldImage, @OrderMovementTypeId, @TotalCaseSize, @OrderSize, @RestockIn, @IgnoredReason, @PurityDateTime, @AssetPurityIds, @UniqueGuid, @FinalMoQ, @FinalMoV, @LastMOVAndMOQDateTime, @SuggestedOrderSize, @SuggestedTotalCaseSize, @OutletOccupancy);SELECT SCOPE_IDENTITY() 2025-12-25 21:39:54.8447 DFramework.Database.Query /* Time Taken: 527*/ DECLARE @LocationId Int32 SET @LocationId = '433697' DECLARE @ReorderDate DateTime2 SET @ReorderDate = '12/26/2025 5:39:54 AM' DECLARE @StatusId Int32 SET @StatusId = '5486' DECLARE @OutOfStock Decimal(1,0) SET @OutOfStock = '9' DECLARE @TotalAssetCount Int32 SET @TotalAssetCount = '1' DECLARE @AssetCountWithOldImage Int32 SET @AssetCountWithOldImage = '1' DECLARE @OrderMovementTypeId Int32 SET @OrderMovementTypeId = '5538' DECLARE @TotalCaseSize Decimal(2,2) SET @TotalCaseSize = '0.00' DECLARE @OrderSize Decimal(1,0) SET @OrderSize = '0' DECLARE @RestockIn Int32 SET @RestockIn = '0' DECLARE @IgnoredReason AnsiString(8000) SET @IgnoredReason = 'No latest image available Or temperature is Out of threshold :-999.00, Or Ignore Based On lastOrderDate :False ' DECLARE @PurityDateTime DateTime2 SET @PurityDateTime = '7/10/2025 12:00:00 AM' DECLARE @AssetPurityIds AnsiString(8000) SET @AssetPurityIds = '3607211' DECLARE @UniqueGuid AnsiString(8000) SET @UniqueGuid = 'B7C487E6-4452-4A81-AF7B-E5274F231454' DECLARE @FinalMoQ Int32 SET @FinalMoQ = '5' DECLARE @FinalMoV Int32 SET @FinalMoV = '100' DECLARE @SuggestedOrderSize Decimal(1,0) SET @SuggestedOrderSize = '0' DECLARE @SuggestedTotalCaseSize Decimal(2,2) SET @SuggestedTotalCaseSize = '0.00' DECLARE @OutletOccupancy Decimal(1,0) SET @OutletOccupancy = '0' DECLARE @LastMOVAndMOQDateTime DateTime2 SET @LastMOVAndMOQDateTime = '' INSERT INTO dbo.ScheduledOrder (LocationId, ReorderDate, OutOfStock, StatusId, TotalAssetCount, AssetCountWithOldImage, OrderMovementTypeId, TotalCaseSize, OrderSize, RestockIn, IgnoredReason, PurityDateTime, AssetPurityIds, UniqueGuid, FinalMoQ, FinalMoV, LastMOVAndMOQDateTime, SuggestedOrderSize, SuggestedTotalCaseSize, OutletOccupancy) VALUES (@LocationId, @ReorderDate, @OutOfStock, @StatusId, @TotalAssetCount, @AssetCountWithOldImage, @OrderMovementTypeId, @TotalCaseSize, @OrderSize, @RestockIn, @IgnoredReason, @PurityDateTime, @AssetPurityIds, @UniqueGuid, @FinalMoQ, @FinalMoV, @LastMOVAndMOQDateTime, @SuggestedOrderSize, @SuggestedTotalCaseSize, @OutletOccupancy);SELECT SCOPE_IDENTITY() 2025-12-25 21:39:55.6572 DFramework.Database.Query /* Time Taken: 549*/ DECLARE @LocationId Int32 SET @LocationId = '433786' DECLARE @ReorderDate DateTime2 SET @ReorderDate = '12/26/2025 5:39:55 AM' DECLARE @StatusId Int32 SET @StatusId = '5486' DECLARE @OutOfStock Decimal(1,0) SET @OutOfStock = '0' DECLARE @TotalAssetCount Int32 SET @TotalAssetCount = '1' DECLARE @AssetCountWithOldImage Int32 SET @AssetCountWithOldImage = '1' DECLARE @OrderMovementTypeId Int32 SET @OrderMovementTypeId = '5538' DECLARE @TotalCaseSize Decimal(2,2) SET @TotalCaseSize = '0.00' DECLARE @OrderSize Decimal(1,0) SET @OrderSize = '0' DECLARE @RestockIn Int32 SET @RestockIn = '0' DECLARE @IgnoredReason AnsiString(8000) SET @IgnoredReason = 'No latest image available Or temperature is Out of threshold :-999.00, Or Ignore Based On lastOrderDate :False ' DECLARE @PurityDateTime DateTime2 SET @PurityDateTime = '9/5/2025 12:00:00 AM' DECLARE @AssetPurityIds AnsiString(8000) SET @AssetPurityIds = '3642558' DECLARE @UniqueGuid AnsiString(8000) SET @UniqueGuid = 'A7F67FE2-7701-406B-BA44-D1AFD5839D2B' DECLARE @FinalMoQ Int32 SET @FinalMoQ = '5' DECLARE @FinalMoV Int32 SET @FinalMoV = '100' DECLARE @SuggestedOrderSize Decimal(1,0) SET @SuggestedOrderSize = '0' DECLARE @SuggestedTotalCaseSize Decimal(2,2) SET @SuggestedTotalCaseSize = '0.00' DECLARE @OutletOccupancy Decimal(1,0) SET @OutletOccupancy = '0' DECLARE @LastMOVAndMOQDateTime DateTime2 SET @LastMOVAndMOQDateTime = '' INSERT INTO dbo.ScheduledOrder (LocationId, ReorderDate, OutOfStock, StatusId, TotalAssetCount, AssetCountWithOldImage, OrderMovementTypeId, TotalCaseSize, OrderSize, RestockIn, IgnoredReason, PurityDateTime, AssetPurityIds, UniqueGuid, FinalMoQ, FinalMoV, LastMOVAndMOQDateTime, SuggestedOrderSize, SuggestedTotalCaseSize, OutletOccupancy) VALUES (@LocationId, @ReorderDate, @OutOfStock, @StatusId, @TotalAssetCount, @AssetCountWithOldImage, @OrderMovementTypeId, @TotalCaseSize, @OrderSize, @RestockIn, @IgnoredReason, @PurityDateTime, @AssetPurityIds, @UniqueGuid, @FinalMoQ, @FinalMoV, @LastMOVAndMOQDateTime, @SuggestedOrderSize, @SuggestedTotalCaseSize, @OutletOccupancy);SELECT SCOPE_IDENTITY() 2025-12-25 21:39:56.7978 DFramework.Database.Query /* Time Taken: 637*/ DECLARE @LocationId Int32 SET @LocationId = '434051' DECLARE @ReorderDate DateTime2 SET @ReorderDate = '12/26/2025 5:39:56 AM' DECLARE @StatusId Int32 SET @StatusId = '5486' DECLARE @OutOfStock Decimal(3,0) SET @OutOfStock = '100' DECLARE @TotalAssetCount Int32 SET @TotalAssetCount = '2' DECLARE @AssetCountWithOldImage Int32 SET @AssetCountWithOldImage = '2' DECLARE @OrderMovementTypeId Int32 SET @OrderMovementTypeId = '5538' DECLARE @TotalCaseSize Decimal(4,2) SET @TotalCaseSize = '33.00' DECLARE @OrderSize Decimal(4,0) SET @OrderSize = '6060' DECLARE @RestockIn Int32 SET @RestockIn = '0' DECLARE @IgnoredReason AnsiString(8000) SET @IgnoredReason = 'No latest image available Or temperature is Out of threshold :-999.00, Or Ignore Based On lastOrderDate :False ' DECLARE @PurityDateTime DateTime2 SET @PurityDateTime = '12/3/2025 12:00:00 AM' DECLARE @AssetPurityIds AnsiString(8000) SET @AssetPurityIds = '3672499' DECLARE @UniqueGuid AnsiString(8000) SET @UniqueGuid = '45D3E021-3595-4E48-B0E8-3CF6FE59788F' DECLARE @FinalMoQ Int32 SET @FinalMoQ = '5' DECLARE @FinalMoV Int32 SET @FinalMoV = '100' DECLARE @SuggestedOrderSize Decimal(4,0) SET @SuggestedOrderSize = '6060' DECLARE @SuggestedTotalCaseSize Decimal(4,2) SET @SuggestedTotalCaseSize = '33.00' DECLARE @OutletOccupancy Decimal(1,0) SET @OutletOccupancy = '0' DECLARE @LastMOVAndMOQDateTime DateTime2 SET @LastMOVAndMOQDateTime = '11/3/2025 7:42:39 AM' INSERT INTO dbo.ScheduledOrder (LocationId, ReorderDate, OutOfStock, StatusId, TotalAssetCount, AssetCountWithOldImage, OrderMovementTypeId, TotalCaseSize, OrderSize, RestockIn, IgnoredReason, PurityDateTime, AssetPurityIds, UniqueGuid, FinalMoQ, FinalMoV, LastMOVAndMOQDateTime, SuggestedOrderSize, SuggestedTotalCaseSize, OutletOccupancy) VALUES (@LocationId, @ReorderDate, @OutOfStock, @StatusId, @TotalAssetCount, @AssetCountWithOldImage, @OrderMovementTypeId, @TotalCaseSize, @OrderSize, @RestockIn, @IgnoredReason, @PurityDateTime, @AssetPurityIds, @UniqueGuid, @FinalMoQ, @FinalMoV, @LastMOVAndMOQDateTime, @SuggestedOrderSize, @SuggestedTotalCaseSize, @OutletOccupancy);SELECT SCOPE_IDENTITY() 2025-12-25 21:40:00.3291 DFramework.Database.NullableDataReader Data reader open for 252939 at System.Environment.GetStackTrace(Exception e, Boolean needFileInfo) at System.Environment.get_StackTrace() at DFramework.Database.NullableDataReader.Dispose(Boolean disposing) in D:\Spraxa\Framework\DFramework\Database\NullableDataReader.cs:line 33 at DFramework.Database.NullableDataReader.Dispose() in D:\Spraxa\Framework\DFramework\Database\NullableDataReader.cs:line 44 at CoolR.Tasks.MoveToReorder.Execute() in D:\Spraxa\CoolR-Group\portal\CoolR.Tasks\MoveToReorder.cs:line 44 at DFramework.Scheduler.TaskBase.Run() in D:\Spraxa\Framework\DFramework.Scheduler\TaskBase.cs:line 176 at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.ThreadHelper.ThreadStart() 2025-12-25 21:40:00.3760 MoveToReorder Task executed successfully for ClientId : 286 Client Name:India Office QA, Slot: 12/26/2025 11:00:00 AM and Total Order Suggested: 128 Out Of: 128 2025-12-25 21:40:00.8760 DFramework.Database.Query /* Time Taken: 502*/ DECLARE @ClientId Int32 SET @ClientId = '286' dbo.GetMoveToReOrderList 2025-12-25 21:40:01.8135 DFramework.Database.Query /* Time Taken: 526*/ DECLARE @ClientId Int32 SET @ClientId = '286' DECLARE @OrderStatusId Int32 SET @OrderStatusId = '5485' SELECT * FROM vwScheduledOrderExportInfoList WHERE [ClientId] = @ClientId AND [OrderStatusId] = @OrderStatusId ORDER BY [LocationId] 2025-12-25 21:40:02.1729 DFramework.Scheduler.TaskBase /* Time Taken: 256158.0749*/ Move To Re-Order 2025-12-25 21:40:50.8138 AlertProcessor ProcessorAlertData: started 2025-12-25 21:40:51.6732 DFramework.Database.Query /* Time Taken: 524*/ DECLARE @CreatedOn DateTime2 SET @CreatedOn = '12/26/2025 12:00:00 AM' DECLARE @EventId Int32 SET @EventId = '-12' SELECT COUNT(1) FROM EmailQueue WHERE [CreatedOn] >= @CreatedOn AND [EventId] = @EventId 2025-12-25 21:40:55.6732 DFramework.Database.Query /* Time Taken: 4857*/ DECLARE @TableName AnsiString(8000) SET @TableName = 'TagAlert' DECLARE @CurrentRecordId Int32 SET @CurrentRecordId = '0' dbo.GetValidDeviceForAlertProcessData 2025-12-25 21:40:56.1732 DFramework.Database.Query /* Time Taken: 5025*/ DECLARE @StatusId Int32 SET @StatusId = '1' DECLARE @AlertId Int32 SET @AlertId = '7571914' SELECT TOP 10000 Alert.AlertId, Alert.LocationId, Alert.RecordId, ISNULL(AlertDefinition.Name, Alert.AlertText) Name, Alert.AlertTypeId, Alert.AlertText, ISNULL(Location.Name, '') AS LocationName, AlertDefinition.ClientId, AlertRecipient.RoleId, CASE WHEN Alert.AlertTypeId IN (6,7) THEN CONVERT(VARCHAR(10), CAST(AlertAt AS DATE), 101) ELSE AlertAt END AS AlertAt, AlertType, Asset.SerialNumber, ISNULL(LocationAttribute.FirstRepId, 0) RepId, ClientUser.PrimaryPhone AS SalesRepPhone, ClientUser.PrimaryEmail AS SalesRepEmail, FirstName, LastName, PreferedNotificationTypeIds, AlertRecipientId, AlertRecipientAddress, AlertRecipientText, Alert.Tags, AlertRecipientTypeId, NotificationContactTypeId, TemplateId, AlertDefinition.AlertAgeThreshold, LastUpdatedOn, AlertRecipient.AlertAge, CASE WHEN Location.TimeZoneId IS NOT NULL AND Location.TimeZoneId > 0 THEN Location.TimeZoneId ELSE Client.TimeZoneId END AS TimeZoneId, AlertDefinition.IsSummarize, Alert.ClosedOn, AssetType.IsChestCooler, AlertDefinition.SnoozeForHours, Alert.SnoozeDateTime FROM Alert LEFT OUTER JOIN Asset ON Alert.AssetId = Asset.AssetId LEFT OUTER JOIN AlertType ON Alert.AlertTypeId = AlertType.AlertTypeId LEFT OUTER JOIN AlertDefinition ON Alert.AlertDefinitionId = AlertDefinition.AlertDefinitionId LEFT OUTER JOIN Location ON Location.LocationId = Alert.LocationId LEFT OUTER JOIN LocationAttribute ON LocationAttribute.LocationId = dbo.Location.LocationId LEFT OUTER JOIN ClientUser ON LocationAttribute.FirstRepId = ClientUser.ClientUserId AND ClientUser.IsDeleted = 0 LEFT OUTER JOIN AlertRecipient ON Alert.AlertDefinitionId = AlertRecipient.AlertDefinitionId AND AlertRecipient.IsDeleted= 0 LEFT OUTER JOIN Client ON Client.ClientId = Alert.ClientId LEFT OUTER JOIN AssetType ON dbo.Asset.AssetTypeId = dbo.AssetType.AssetTypeId WHERE (NOT EXISTS(SELECT 1 FROM dbo.EmailQueue INNER JOIN dbo.EmailRecipient ON EmailRecipient.EmailQueueId = EmailQueue.EmailQueueId WHERE AlertId = Alert.AlertId AND EmailRecipient.RecipientId = AlertRecipient.AlertRecipientId) OR (Alert.SnoozeDateTime IS NOT NULL AND Alert.SnoozeDateTime <= GETUTCDATE() AND AlertDefinition.SnoozeForHours > 0 AND Alert.StatusId = @StatusId)) AND Alert.AlertId > @AlertId AND Alert.AlertAt >= DATEADD(DAY, -120, GETDATE()) AND AlertRecipient.IsDeleted = 0 AND Alert.IsActive = 1 AND Alert.IsDeleted = 0 AND AlertRecipient.IsActive = 1 AND AlertRecipient.IsDeleted = 0 AND AlertRecipient.StartDate <= Alert.CreatedOn AND Alert.CreatedOn < DATEADD(hh, 23, AlertRecipient.EndDate) AND (Alert.LocationId != 0 OR NotificationWithoutLocation = 1) AND AlertType.IsSystemAlert = 0 AND Alert.EmailQueuedOn IS NULL AND AlertDefinition.IsActive = 1 2025-12-25 21:40:57.2045 DFramework.Database.Query /* Time Taken: 1147*/ DECLARE @TableName AnsiString(8000) SET @TableName = 'MissingShelf' DECLARE @CurrentRecordId Int32 SET @CurrentRecordId = '3675104' dbo.GetValidDeviceForAlertProcessData 2025-12-25 21:40:59.3295 DFramework.Database.Query /* Time Taken: 670*/ DECLARE @TableName AnsiString(8000) SET @TableName = 'AssetStockProductWiseConsolidate' DECLARE @CurrentRecordId Int32 SET @CurrentRecordId = '3675104' dbo.GetValidDeviceForAlertProcessData 2025-12-25 21:41:02.1108 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 21:41:02.1108 DFramework.Scheduler.TaskBase /* Time Taken: 11296.9551*/ Process Alert Record 2025-12-25 21:45:50.8314 AlertProcessor ProcessorAlertData: started 2025-12-25 21:45:57.1908 DFramework.Database.Query /* Time Taken: 599*/ DECLARE @TableName AnsiString(8000) SET @TableName = 'ProductStockLevel' DECLARE @CurrentRecordId Int32 SET @CurrentRecordId = '3675104' dbo.GetValidDeviceForAlertProcessData 2025-12-25 21:45:57.2533 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 21:50:45.9433 DFramework.Database.Query /* Time Taken: 1668*/ [dbo].GenerateSystemAlerts 2025-12-25 21:50:50.8496 AlertProcessor ProcessorAlertData: started 2025-12-25 21:50:56.4434 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 21:55:50.8518 AlertProcessor ProcessorAlertData: started 2025-12-25 21:55:51.6956 DFramework.Database.Query /* Time Taken: 829*/ DECLARE @TableName AnsiString(8000) SET @TableName = 'TagAlert' DECLARE @CurrentRecordId Int32 SET @CurrentRecordId = '0' dbo.GetValidDeviceForAlertProcessData 2025-12-25 21:55:53.1018 DFramework.Database.Query /* Time Taken: 535*/ DECLARE @TableName AnsiString(8000) SET @TableName = 'AdditionalShelf' DECLARE @CurrentRecordId Int32 SET @CurrentRecordId = '3675104' dbo.GetValidDeviceForAlertProcessData 2025-12-25 21:55:57.1175 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 22:00:50.8694 AlertProcessor ProcessorAlertData: started 2025-12-25 22:00:51.4475 DFramework.Database.Query /* Time Taken: 584*/ DECLARE @TableName AnsiString(8000) SET @TableName = 'TagAlert' DECLARE @CurrentRecordId Int32 SET @CurrentRecordId = '0' dbo.GetValidDeviceForAlertProcessData 2025-12-25 22:00:52.5569 DFramework.Database.Query /* Time Taken: 721*/ DECLARE @TableName AnsiString(8000) SET @TableName = 'MissingShelf' DECLARE @CurrentRecordId Int32 SET @CurrentRecordId = '3675104' dbo.GetValidDeviceForAlertProcessData 2025-12-25 22:00:54.6038 DFramework.Database.Query /* Time Taken: 614*/ DECLARE @TableName AnsiString(8000) SET @TableName = 'AssetStockProductWiseConsolidate' DECLARE @CurrentRecordId Int32 SET @CurrentRecordId = '3675104' dbo.GetValidDeviceForAlertProcessData 2025-12-25 22:00:56.9788 DFramework.Database.NullableDataReader Data reader open for 323 at System.Environment.GetStackTrace(Exception e, Boolean needFileInfo) at System.Environment.get_StackTrace() at DFramework.Database.NullableDataReader.Dispose(Boolean disposing) in D:\Spraxa\Framework\DFramework\Database\NullableDataReader.cs:line 33 at DFramework.Database.NullableDataReader.Dispose() in D:\Spraxa\Framework\DFramework\Database\NullableDataReader.cs:line 44 at CoolR.Tasks.ProcessAlertData.Execute() in D:\Spraxa\CoolR-Group\portal\CoolR.Tasks\ProcessAlertData.cs:line 47 at DFramework.Scheduler.TaskBase.Run() in D:\Spraxa\Framework\DFramework.Scheduler\TaskBase.cs:line 176 at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.ThreadHelper.ThreadStart() 2025-12-25 22:00:57.5413 DFramework.Database.Query /* Time Taken: 552*/ DECLARE @TableName AnsiString(8000) SET @TableName = 'ProductStockLevel' DECLARE @CurrentRecordId Int32 SET @CurrentRecordId = '3675104' dbo.GetValidDeviceForAlertProcessData 2025-12-25 22:00:57.5882 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 22:05:45.4030 DFramework.Database.Query /* Time Taken: 1112*/ [dbo].GenerateSystemAlerts 2025-12-25 22:05:50.8874 AlertProcessor ProcessorAlertData: started 2025-12-25 22:05:56.4812 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 22:10:50.9054 AlertProcessor ProcessorAlertData: started 2025-12-25 22:10:56.4680 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 22:15:50.9075 AlertProcessor ProcessorAlertData: started 2025-12-25 22:15:56.4388 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 22:20:45.5501 DFramework.Database.Query /* Time Taken: 1234*/ [dbo].GenerateSystemAlerts 2025-12-25 22:20:50.9095 AlertProcessor ProcessorAlertData: started 2025-12-25 22:20:56.4564 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 22:25:50.9279 AlertProcessor ProcessorAlertData: started 2025-12-25 22:25:56.4592 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 22:30:50.9457 AlertProcessor ProcessorAlertData: started 2025-12-25 22:30:52.2270 DFramework.Database.Query /* Time Taken: 511*/ DECLARE @TableName AnsiString(8000) SET @TableName = 'MissingShelf' DECLARE @CurrentRecordId Int32 SET @CurrentRecordId = '3675104' dbo.GetValidDeviceForAlertProcessData 2025-12-25 22:30:56.6645 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 22:35:45.4789 DFramework.Database.Query /* Time Taken: 1142*/ [dbo].GenerateSystemAlerts 2025-12-25 22:35:46.4320 MoveToReorder Running task for ClientId : 286 and ClientName = India Office QA and Slot: 12/26/2025 12:00:00 PM And LastExecutedOn: 12/26/2025 11:05:46 AM 2025-12-25 22:35:47.2445 DFramework.Database.Query /* Time Taken: 749*/ DECLARE @OrderStatusId Int32 SET @OrderStatusId = '0' DECLARE @ClientId Int32 SET @ClientId = '286' dbo.GetOrderDetailsByClientId 2025-12-25 22:35:47.2758 MoveToReorder Task executed successfully for ClientId : 286 Client Name:India Office QA, Slot: 12/26/2025 12:00:00 PM But No Order found to suggest 2025-12-25 22:35:50.9633 AlertProcessor ProcessorAlertData: started 2025-12-25 22:35:52.2446 DFramework.Database.Query /* Time Taken: 553*/ DECLARE @TableName AnsiString(8000) SET @TableName = 'MissingShelf' DECLARE @CurrentRecordId Int32 SET @CurrentRecordId = '3675104' dbo.GetValidDeviceForAlertProcessData 2025-12-25 22:35:52.9164 DFramework.Database.Query /* Time Taken: 584*/ DECLARE @TableName AnsiString(8000) SET @TableName = 'AdditionalShelf' DECLARE @CurrentRecordId Int32 SET @CurrentRecordId = '3675104' dbo.GetValidDeviceForAlertProcessData 2025-12-25 22:35:56.8540 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 22:40:50.9814 AlertProcessor ProcessorAlertData: started 2025-12-25 22:40:51.5908 DFramework.Database.Query /* Time Taken: 617*/ DECLARE @TableName AnsiString(8000) SET @TableName = 'TagAlert' DECLARE @CurrentRecordId Int32 SET @CurrentRecordId = '0' dbo.GetValidDeviceForAlertProcessData 2025-12-25 22:40:51.9033 DFramework.Database.Query /* Time Taken: 585*/ DECLARE @StatusId Int32 SET @StatusId = '1' DECLARE @AlertId Int32 SET @AlertId = '7571914' SELECT TOP 10000 Alert.AlertId, Alert.LocationId, Alert.RecordId, ISNULL(AlertDefinition.Name, Alert.AlertText) Name, Alert.AlertTypeId, Alert.AlertText, ISNULL(Location.Name, '') AS LocationName, AlertDefinition.ClientId, AlertRecipient.RoleId, CASE WHEN Alert.AlertTypeId IN (6,7) THEN CONVERT(VARCHAR(10), CAST(AlertAt AS DATE), 101) ELSE AlertAt END AS AlertAt, AlertType, Asset.SerialNumber, ISNULL(LocationAttribute.FirstRepId, 0) RepId, ClientUser.PrimaryPhone AS SalesRepPhone, ClientUser.PrimaryEmail AS SalesRepEmail, FirstName, LastName, PreferedNotificationTypeIds, AlertRecipientId, AlertRecipientAddress, AlertRecipientText, Alert.Tags, AlertRecipientTypeId, NotificationContactTypeId, TemplateId, AlertDefinition.AlertAgeThreshold, LastUpdatedOn, AlertRecipient.AlertAge, CASE WHEN Location.TimeZoneId IS NOT NULL AND Location.TimeZoneId > 0 THEN Location.TimeZoneId ELSE Client.TimeZoneId END AS TimeZoneId, AlertDefinition.IsSummarize, Alert.ClosedOn, AssetType.IsChestCooler, AlertDefinition.SnoozeForHours, Alert.SnoozeDateTime FROM Alert LEFT OUTER JOIN Asset ON Alert.AssetId = Asset.AssetId LEFT OUTER JOIN AlertType ON Alert.AlertTypeId = AlertType.AlertTypeId LEFT OUTER JOIN AlertDefinition ON Alert.AlertDefinitionId = AlertDefinition.AlertDefinitionId LEFT OUTER JOIN Location ON Location.LocationId = Alert.LocationId LEFT OUTER JOIN LocationAttribute ON LocationAttribute.LocationId = dbo.Location.LocationId LEFT OUTER JOIN ClientUser ON LocationAttribute.FirstRepId = ClientUser.ClientUserId AND ClientUser.IsDeleted = 0 LEFT OUTER JOIN AlertRecipient ON Alert.AlertDefinitionId = AlertRecipient.AlertDefinitionId AND AlertRecipient.IsDeleted= 0 LEFT OUTER JOIN Client ON Client.ClientId = Alert.ClientId LEFT OUTER JOIN AssetType ON dbo.Asset.AssetTypeId = dbo.AssetType.AssetTypeId WHERE (NOT EXISTS(SELECT 1 FROM dbo.EmailQueue INNER JOIN dbo.EmailRecipient ON EmailRecipient.EmailQueueId = EmailQueue.EmailQueueId WHERE AlertId = Alert.AlertId AND EmailRecipient.RecipientId = AlertRecipient.AlertRecipientId) OR (Alert.SnoozeDateTime IS NOT NULL AND Alert.SnoozeDateTime <= GETUTCDATE() AND AlertDefinition.SnoozeForHours > 0 AND Alert.StatusId = @StatusId)) AND Alert.AlertId > @AlertId AND Alert.AlertAt >= DATEADD(DAY, -120, GETDATE()) AND AlertRecipient.IsDeleted = 0 AND Alert.IsActive = 1 AND Alert.IsDeleted = 0 AND AlertRecipient.IsActive = 1 AND AlertRecipient.IsDeleted = 0 AND AlertRecipient.StartDate <= Alert.CreatedOn AND Alert.CreatedOn < DATEADD(hh, 23, AlertRecipient.EndDate) AND (Alert.LocationId != 0 OR NotificationWithoutLocation = 1) AND AlertType.IsSystemAlert = 0 AND Alert.EmailQueuedOn IS NULL AND AlertDefinition.IsActive = 1 2025-12-25 22:40:52.7471 DFramework.Database.Query /* Time Taken: 702*/ DECLARE @TableName AnsiString(8000) SET @TableName = 'MissingShelf' DECLARE @CurrentRecordId Int32 SET @CurrentRecordId = '3675104' dbo.GetValidDeviceForAlertProcessData 2025-12-25 22:40:54.8877 DFramework.Database.Query /* Time Taken: 634*/ DECLARE @TableName AnsiString(8000) SET @TableName = 'AssetStockProductWiseConsolidate' DECLARE @CurrentRecordId Int32 SET @CurrentRecordId = '3675104' dbo.GetValidDeviceForAlertProcessData 2025-12-25 22:40:57.4502 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 22:45:24.7335 AlertProcessor ProcessorAlertData: started 2025-12-25 22:45:25.3273 DFramework.Database.Query /* Time Taken: 520*/ DECLARE @IsFileProcessed Int32 SET @IsFileProcessed = '0' DECLARE @TaskNumber Int32 SET @TaskNumber = '4' DECLARE @IsDeleted Int32 SET @IsDeleted = '0' SELECT TOP 1000 IncomingFileId, GatewayId,GatewayMac,RawFileName,AzureContainerName,StartIndex,Tries, CreatedOn FROM IncomingFile WHERE [IsFileProcessed] = @IsFileProcessed AND [TaskNumber] = @TaskNumber AND [IsDeleted] = @IsDeleted 2025-12-25 22:45:25.5304 DFramework.Database.Query /* Time Taken: 730*/ DECLARE @OrderStatusId Int32 SET @OrderStatusId = '5486' UPDATE Location SET ScheduledOrderId = 0, OrderStatusId = 0 from ScheduledOrder INNER JOIN Location ON Location.ScheduledOrderId = ScheduledOrder.ScheduledOrderId AND Location.OrderStatusId = @OrderStatusId INNER JOIN CLient On Client.ClientId = Location.ClientId AND Client.HoursToMoveIgnored > 0 WHERE DATEADD(HOUR, Client.HoursToMoveIgnored, ScheduledOrder.ModifiedOn) < GETUTCDATE() AND ScheduledOrder.StatusId = @OrderStatusId ANd Location.IsDeleted = 0 AND ScheduledOrder.IsDeleted = 0 2025-12-25 22:45:25.5460 DFramework.Database.Query /* Time Taken: 772*/ DECLARE @TableName AnsiString(8000) SET @TableName = 'TagAlert' DECLARE @CurrentRecordId Int32 SET @CurrentRecordId = '0' dbo.GetValidDeviceForAlertProcessData 2025-12-25 22:45:25.5617 DFramework.Database.Query /* Time Taken: 754*/ DECLARE @IsFileProcessed Int32 SET @IsFileProcessed = '0' DECLARE @TaskNumber Int32 SET @TaskNumber = '1' DECLARE @IsDeleted Int32 SET @IsDeleted = '0' SELECT TOP 1000 IncomingFileId, GatewayId,GatewayMac,RawFileName,AzureContainerName,StartIndex,Tries, CreatedOn FROM IncomingFile WHERE [IsFileProcessed] = @IsFileProcessed AND [TaskNumber] = @TaskNumber AND [IsDeleted] = @IsDeleted 2025-12-25 22:45:25.5617 DFramework.Database.Query /* Time Taken: 764*/ DECLARE @IsFileProcessed Int32 SET @IsFileProcessed = '0' DECLARE @TaskNumber Int32 SET @TaskNumber = '2' DECLARE @IsDeleted Int32 SET @IsDeleted = '0' SELECT TOP 1000 IncomingFileId, GatewayId,GatewayMac,RawFileName,AzureContainerName,StartIndex,Tries, CreatedOn FROM IncomingFile WHERE [IsFileProcessed] = @IsFileProcessed AND [TaskNumber] = @TaskNumber AND [IsDeleted] = @IsDeleted 2025-12-25 22:45:25.5929 DFramework.Database.Query /* Time Taken: 790*/ DECLARE @CreatedOn DateTime2 SET @CreatedOn = '12/26/2025 12:00:00 AM' DECLARE @EventId Int32 SET @EventId = '-12' SELECT COUNT(1) FROM EmailQueue WHERE [CreatedOn] >= @CreatedOn AND [EventId] = @EventId 2025-12-25 22:45:25.6398 DFramework.Database.Query /* Time Taken: 645*/ DECLARE @AlertDefinitionId Int32 SET @AlertDefinitionId = '311' DECLARE @IsDeleted Boolean SET @IsDeleted = 'False' SELECT ProductId FROM AlertDefinitionProduct WHERE [AlertDefinitionId] = @AlertDefinitionId AND IsDeleted = @IsDeleted 2025-12-25 22:45:25.7960 DFramework.Database.Query /* Time Taken: 1000*/ DECLARE @AlertDefinition_IsActive Int32 SET @AlertDefinition_IsActive = '1' DECLARE @AlertDefinition_ClientId Int32 SET @AlertDefinition_ClientId = '213' DECLARE @AlertDefinition_AlertTypeId Int32 SET @AlertDefinition_AlertTypeId = '67' DECLARE @AlertDefinition_IsDeleted Int32 SET @AlertDefinition_IsDeleted = '0' DECLARE @AlertDefinition_StartDate DateTime2 SET @AlertDefinition_StartDate = '12/26/2025 6:45:24 AM' SELECT TOP 1 AlertDefinitionId, PriorityId FROM AlertDefinition WHERE AlertDefinition.IsActive = @AlertDefinition_IsActive AND AlertDefinition.ClientId = @AlertDefinition_ClientId AND AlertDefinition.AlertTypeId = @AlertDefinition_AlertTypeId AND AlertDefinition.IsDeleted = @AlertDefinition_IsDeleted AND AlertDefinition.StartDate <= @AlertDefinition_StartDate 2025-12-25 22:45:25.8742 DFramework.Database.NullableDataReader Data reader open for 1095 at System.Environment.GetStackTrace(Exception e, Boolean needFileInfo) at System.Environment.get_StackTrace() at DFramework.Database.NullableDataReader.Dispose(Boolean disposing) in D:\Spraxa\Framework\DFramework\Database\NullableDataReader.cs:line 33 at DFramework.Database.NullableDataReader.Dispose() in D:\Spraxa\Framework\DFramework\Database\NullableDataReader.cs:line 44 at CoolR.Tasks.ProcessOutletAlertData.GetAlertDefinitions() in D:\Spraxa\CoolR-Group\portal\CoolR.Tasks\OpportunityOutOfStockByOutlet.cs:line 490 at CoolR.Tasks.ProcessOutletAlertData.Execute() in D:\Spraxa\CoolR-Group\portal\CoolR.Tasks\OpportunityOutOfStockByOutlet.cs:line 72 at DFramework.Scheduler.TaskBase.Run() in D:\Spraxa\Framework\DFramework.Scheduler\TaskBase.cs:line 176 at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.ThreadHelper.ThreadStart() 2025-12-25 22:45:25.8742 DFramework.Database.NullableDataReader Data reader open for 338 at System.Environment.GetStackTrace(Exception e, Boolean needFileInfo) at System.Environment.get_StackTrace() at DFramework.Database.NullableDataReader.Dispose(Boolean disposing) in D:\Spraxa\Framework\DFramework\Database\NullableDataReader.cs:line 33 at DFramework.Database.NullableDataReader.Dispose() in D:\Spraxa\Framework\DFramework\Database\NullableDataReader.cs:line 44 at CoolR.Tasks.ProcessAlertData.Execute() in D:\Spraxa\CoolR-Group\portal\CoolR.Tasks\ProcessAlertData.cs:line 47 at DFramework.Scheduler.TaskBase.Run() in D:\Spraxa\Framework\DFramework.Scheduler\TaskBase.cs:line 176 at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.ThreadHelper.ThreadStart() 2025-12-25 22:45:26.3273 DFramework.Database.Query /* Time Taken: 798*/ DECLARE @OrderStatusId Int32 SET @OrderStatusId = '5484' UPDATE Location SET ScheduledOrderId = 0, OrderStatusId = 0 from ScheduledOrder INNER JOIN Location ON Location.ScheduledOrderId = ScheduledOrder.ScheduledOrderId AND Location.OrderStatusId = @OrderStatusId INNER JOIN CLient On Client.ClientId = Location.ClientId AND Client.HoursToMoveInTransit > 0 WHERE DATEADD(HOUR, Client.HoursToMoveInTransit, ScheduledOrder.ModifiedOn) < GETUTCDATE() AND ScheduledOrder.StatusId = @OrderStatusId ANd Location.IsDeleted = 0 AND ScheduledOrder.IsDeleted = 0 2025-12-25 22:45:26.4523 DFramework.Database.Query /* Time Taken: 565*/ DECLARE @TableName AnsiString(8000) SET @TableName = 'VoidAlert' DECLARE @CurrentRecordId Int32 SET @CurrentRecordId = '3675104' dbo.GetValidDeviceForAlertProcessData 2025-12-25 22:45:26.5304 DFramework.Database.Query /* Time Taken: 655*/ DECLARE @ClientId Int32 SET @ClientId = '213' DECLARE @MarketId Int32 SET @MarketId = '0' DECLARE @ClassificationId Int32 SET @ClassificationId = '0' DECLARE @LocationId Int32 SET @LocationId = '0' DECLARE @LocationTypeId Int32 SET @LocationTypeId = '0' DECLARE @StartDate DateTime2 SET @StartDate = '8/28/2025 12:00:00 AM' dbo.GetOpportunityOutOfStockDataByOutlet 2025-12-25 22:45:27.1086 DFramework.Database.Query /* Time Taken: 603*/ DECLARE @TableName AnsiString(8000) SET @TableName = 'MissingShelf' DECLARE @CurrentRecordId Int32 SET @CurrentRecordId = '3675104' dbo.GetValidDeviceForAlertProcessData 2025-12-25 22:45:27.7804 DFramework.Database.Query /* Time Taken: 611*/ DECLARE @TableName AnsiString(8000) SET @TableName = 'AdditionalShelf' DECLARE @CurrentRecordId Int32 SET @CurrentRecordId = '3675104' dbo.GetValidDeviceForAlertProcessData 2025-12-25 22:45:28.7179 DFramework.Database.Query /* Time Taken: 3921*/ [dbo].GenerateSystemAlerts 2025-12-25 22:45:30.0461 DFramework.Database.NullableDataReader Data reader open for 279 at System.Environment.GetStackTrace(Exception e, Boolean needFileInfo) at System.Environment.get_StackTrace() at DFramework.Database.NullableDataReader.Dispose(Boolean disposing) in D:\Spraxa\Framework\DFramework\Database\NullableDataReader.cs:line 33 at DFramework.Database.NullableDataReader.Dispose() in D:\Spraxa\Framework\DFramework\Database\NullableDataReader.cs:line 44 at CoolR.Tasks.ProcessAlertData.Execute() in D:\Spraxa\CoolR-Group\portal\CoolR.Tasks\ProcessAlertData.cs:line 47 at DFramework.Scheduler.TaskBase.Run() in D:\Spraxa\Framework\DFramework.Scheduler\TaskBase.cs:line 176 at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.ThreadHelper.ThreadStart() 2025-12-25 22:45:32.4055 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 22:45:42.0774 DFramework.Scheduler.TaskBase /* Time Taken: 17687.6369*/ Opportunity Out Of Stock By Outlet 2025-12-25 22:50:24.4075 AlertProcessor ProcessorAlertData: started 2025-12-25 22:50:25.0012 DFramework.Database.Query /* Time Taken: 593*/ DECLARE @TableName AnsiString(8000) SET @TableName = 'TagAlert' DECLARE @CurrentRecordId Int32 SET @CurrentRecordId = '0' dbo.GetValidDeviceForAlertProcessData 2025-12-25 22:50:25.8918 DFramework.Database.Query /* Time Taken: 518*/ DECLARE @TableName AnsiString(8000) SET @TableName = 'MissingShelf' DECLARE @CurrentRecordId Int32 SET @CurrentRecordId = '3675104' dbo.GetValidDeviceForAlertProcessData 2025-12-25 22:50:30.3606 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 22:55:24.4251 AlertProcessor ProcessorAlertData: started 2025-12-25 22:55:30.4252 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 23:00:24.4277 AlertProcessor ProcessorAlertData: started 2025-12-25 23:00:25.9433 DFramework.Database.Query /* Time Taken: 667*/ DECLARE @TableName AnsiString(8000) SET @TableName = 'MissingShelf' DECLARE @CurrentRecordId Int32 SET @CurrentRecordId = '3675104' dbo.GetValidDeviceForAlertProcessData 2025-12-25 23:00:26.5683 DFramework.Database.Query /* Time Taken: 563*/ DECLARE @TableName AnsiString(8000) SET @TableName = 'AdditionalShelf' DECLARE @CurrentRecordId Int32 SET @CurrentRecordId = '3675104' dbo.GetValidDeviceForAlertProcessData 2025-12-25 23:00:27.1933 DFramework.Database.Query /* Time Taken: 2386*/ [dbo].GenerateSystemAlerts 2025-12-25 23:00:28.2090 DFramework.Database.Query /* Time Taken: 504*/ DECLARE @TableName AnsiString(8000) SET @TableName = 'AssetStockProductWiseConsolidate' DECLARE @CurrentRecordId Int32 SET @CurrentRecordId = '3675104' dbo.GetValidDeviceForAlertProcessData 2025-12-25 23:00:31.1465 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 23:00:40.2403 DFramework.Scheduler.TaskBase /* Time Taken: 15828.2514*/ Opportunity Out Of Stock By Outlet 2025-12-25 23:05:24.4454 AlertProcessor ProcessorAlertData: started 2025-12-25 23:05:25.8204 DFramework.Database.Query /* Time Taken: 578*/ DECLARE @TableName AnsiString(8000) SET @TableName = 'MissingShelf' DECLARE @CurrentRecordId Int32 SET @CurrentRecordId = '3675104' dbo.GetValidDeviceForAlertProcessData 2025-12-25 23:05:26.4455 DFramework.Database.Query /* Time Taken: 1667*/ DECLARE @StatusId Int32 SET @StatusId = '1' DECLARE @AlertId Int32 SET @AlertId = '7571914' SELECT TOP 10000 Alert.AlertId, Alert.LocationId, Alert.RecordId, ISNULL(AlertDefinition.Name, Alert.AlertText) Name, Alert.AlertTypeId, Alert.AlertText, ISNULL(Location.Name, '') AS LocationName, AlertDefinition.ClientId, AlertRecipient.RoleId, CASE WHEN Alert.AlertTypeId IN (6,7) THEN CONVERT(VARCHAR(10), CAST(AlertAt AS DATE), 101) ELSE AlertAt END AS AlertAt, AlertType, Asset.SerialNumber, ISNULL(LocationAttribute.FirstRepId, 0) RepId, ClientUser.PrimaryPhone AS SalesRepPhone, ClientUser.PrimaryEmail AS SalesRepEmail, FirstName, LastName, PreferedNotificationTypeIds, AlertRecipientId, AlertRecipientAddress, AlertRecipientText, Alert.Tags, AlertRecipientTypeId, NotificationContactTypeId, TemplateId, AlertDefinition.AlertAgeThreshold, LastUpdatedOn, AlertRecipient.AlertAge, CASE WHEN Location.TimeZoneId IS NOT NULL AND Location.TimeZoneId > 0 THEN Location.TimeZoneId ELSE Client.TimeZoneId END AS TimeZoneId, AlertDefinition.IsSummarize, Alert.ClosedOn, AssetType.IsChestCooler, AlertDefinition.SnoozeForHours, Alert.SnoozeDateTime FROM Alert LEFT OUTER JOIN Asset ON Alert.AssetId = Asset.AssetId LEFT OUTER JOIN AlertType ON Alert.AlertTypeId = AlertType.AlertTypeId LEFT OUTER JOIN AlertDefinition ON Alert.AlertDefinitionId = AlertDefinition.AlertDefinitionId LEFT OUTER JOIN Location ON Location.LocationId = Alert.LocationId LEFT OUTER JOIN LocationAttribute ON LocationAttribute.LocationId = dbo.Location.LocationId LEFT OUTER JOIN ClientUser ON LocationAttribute.FirstRepId = ClientUser.ClientUserId AND ClientUser.IsDeleted = 0 LEFT OUTER JOIN AlertRecipient ON Alert.AlertDefinitionId = AlertRecipient.AlertDefinitionId AND AlertRecipient.IsDeleted= 0 LEFT OUTER JOIN Client ON Client.ClientId = Alert.ClientId LEFT OUTER JOIN AssetType ON dbo.Asset.AssetTypeId = dbo.AssetType.AssetTypeId WHERE (NOT EXISTS(SELECT 1 FROM dbo.EmailQueue INNER JOIN dbo.EmailRecipient ON EmailRecipient.EmailQueueId = EmailQueue.EmailQueueId WHERE AlertId = Alert.AlertId AND EmailRecipient.RecipientId = AlertRecipient.AlertRecipientId) OR (Alert.SnoozeDateTime IS NOT NULL AND Alert.SnoozeDateTime <= GETUTCDATE() AND AlertDefinition.SnoozeForHours > 0 AND Alert.StatusId = @StatusId)) AND Alert.AlertId > @AlertId AND Alert.AlertAt >= DATEADD(DAY, -120, GETDATE()) AND AlertRecipient.IsDeleted = 0 AND Alert.IsActive = 1 AND Alert.IsDeleted = 0 AND AlertRecipient.IsActive = 1 AND AlertRecipient.IsDeleted = 0 AND AlertRecipient.StartDate <= Alert.CreatedOn AND Alert.CreatedOn < DATEADD(hh, 23, AlertRecipient.EndDate) AND (Alert.LocationId != 0 OR NotificationWithoutLocation = 1) AND AlertType.IsSystemAlert = 0 AND Alert.EmailQueuedOn IS NULL AND AlertDefinition.IsActive = 1 2025-12-25 23:05:26.7423 DFramework.Database.Query /* Time Taken: 843*/ DECLARE @TableName AnsiString(8000) SET @TableName = 'AdditionalShelf' DECLARE @CurrentRecordId Int32 SET @CurrentRecordId = '3675104' dbo.GetValidDeviceForAlertProcessData 2025-12-25 23:05:30.9455 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 23:10:24.4474 AlertProcessor ProcessorAlertData: started 2025-12-25 23:10:30.0100 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 23:15:24.4656 AlertProcessor ProcessorAlertData: started 2025-12-25 23:15:25.4031 DFramework.Database.Query /* Time Taken: 594*/ DECLARE @StatusId Int32 SET @StatusId = '1' DECLARE @AlertId Int32 SET @AlertId = '7571914' SELECT TOP 10000 Alert.AlertId, Alert.LocationId, Alert.RecordId, ISNULL(AlertDefinition.Name, Alert.AlertText) Name, Alert.AlertTypeId, Alert.AlertText, ISNULL(Location.Name, '') AS LocationName, AlertDefinition.ClientId, AlertRecipient.RoleId, CASE WHEN Alert.AlertTypeId IN (6,7) THEN CONVERT(VARCHAR(10), CAST(AlertAt AS DATE), 101) ELSE AlertAt END AS AlertAt, AlertType, Asset.SerialNumber, ISNULL(LocationAttribute.FirstRepId, 0) RepId, ClientUser.PrimaryPhone AS SalesRepPhone, ClientUser.PrimaryEmail AS SalesRepEmail, FirstName, LastName, PreferedNotificationTypeIds, AlertRecipientId, AlertRecipientAddress, AlertRecipientText, Alert.Tags, AlertRecipientTypeId, NotificationContactTypeId, TemplateId, AlertDefinition.AlertAgeThreshold, LastUpdatedOn, AlertRecipient.AlertAge, CASE WHEN Location.TimeZoneId IS NOT NULL AND Location.TimeZoneId > 0 THEN Location.TimeZoneId ELSE Client.TimeZoneId END AS TimeZoneId, AlertDefinition.IsSummarize, Alert.ClosedOn, AssetType.IsChestCooler, AlertDefinition.SnoozeForHours, Alert.SnoozeDateTime FROM Alert LEFT OUTER JOIN Asset ON Alert.AssetId = Asset.AssetId LEFT OUTER JOIN AlertType ON Alert.AlertTypeId = AlertType.AlertTypeId LEFT OUTER JOIN AlertDefinition ON Alert.AlertDefinitionId = AlertDefinition.AlertDefinitionId LEFT OUTER JOIN Location ON Location.LocationId = Alert.LocationId LEFT OUTER JOIN LocationAttribute ON LocationAttribute.LocationId = dbo.Location.LocationId LEFT OUTER JOIN ClientUser ON LocationAttribute.FirstRepId = ClientUser.ClientUserId AND ClientUser.IsDeleted = 0 LEFT OUTER JOIN AlertRecipient ON Alert.AlertDefinitionId = AlertRecipient.AlertDefinitionId AND AlertRecipient.IsDeleted= 0 LEFT OUTER JOIN Client ON Client.ClientId = Alert.ClientId LEFT OUTER JOIN AssetType ON dbo.Asset.AssetTypeId = dbo.AssetType.AssetTypeId WHERE (NOT EXISTS(SELECT 1 FROM dbo.EmailQueue INNER JOIN dbo.EmailRecipient ON EmailRecipient.EmailQueueId = EmailQueue.EmailQueueId WHERE AlertId = Alert.AlertId AND EmailRecipient.RecipientId = AlertRecipient.AlertRecipientId) OR (Alert.SnoozeDateTime IS NOT NULL AND Alert.SnoozeDateTime <= GETUTCDATE() AND AlertDefinition.SnoozeForHours > 0 AND Alert.StatusId = @StatusId)) AND Alert.AlertId > @AlertId AND Alert.AlertAt >= DATEADD(DAY, -120, GETDATE()) AND AlertRecipient.IsDeleted = 0 AND Alert.IsActive = 1 AND Alert.IsDeleted = 0 AND AlertRecipient.IsActive = 1 AND AlertRecipient.IsDeleted = 0 AND AlertRecipient.StartDate <= Alert.CreatedOn AND Alert.CreatedOn < DATEADD(hh, 23, AlertRecipient.EndDate) AND (Alert.LocationId != 0 OR NotificationWithoutLocation = 1) AND AlertType.IsSystemAlert = 0 AND Alert.EmailQueuedOn IS NULL AND AlertDefinition.IsActive = 1 2025-12-25 23:15:26.0281 DFramework.Database.Query /* Time Taken: 590*/ DECLARE @TableName AnsiString(8000) SET @TableName = 'MissingShelf' DECLARE @CurrentRecordId Int32 SET @CurrentRecordId = '3675104' dbo.GetValidDeviceForAlertProcessData 2025-12-25 23:15:26.7156 DFramework.Database.Query /* Time Taken: 621*/ DECLARE @TableName AnsiString(8000) SET @TableName = 'AdditionalShelf' DECLARE @CurrentRecordId Int32 SET @CurrentRecordId = '3675104' dbo.GetValidDeviceForAlertProcessData 2025-12-25 23:15:26.9812 DFramework.Database.Query /* Time Taken: 2148*/ [dbo].GenerateSystemAlerts 2025-12-25 23:15:29.3093 DFramework.Database.Query /* Time Taken: 523*/ DECLARE @TableName AnsiString(8000) SET @TableName = 'AssetPurity' DECLARE @CurrentRecordId Int32 SET @CurrentRecordId = '3675104' dbo.GetValidDeviceForAlertProcessData 2025-12-25 23:15:31.0750 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 23:15:40.2626 DFramework.Scheduler.TaskBase /* Time Taken: 15828.2574*/ Opportunity Out Of Stock By Outlet 2025-12-25 23:20:24.4835 AlertProcessor ProcessorAlertData: started 2025-12-25 23:20:30.0616 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 23:25:24.5011 AlertProcessor ProcessorAlertData: started 2025-12-25 23:25:30.1418 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 23:30:24.5190 AlertProcessor ProcessorAlertData: started 2025-12-25 23:30:25.3627 DFramework.Database.Query /* Time Taken: 511*/ DECLARE @StatusId Int32 SET @StatusId = '1' DECLARE @AlertId Int32 SET @AlertId = '7571914' SELECT TOP 10000 Alert.AlertId, Alert.LocationId, Alert.RecordId, ISNULL(AlertDefinition.Name, Alert.AlertText) Name, Alert.AlertTypeId, Alert.AlertText, ISNULL(Location.Name, '') AS LocationName, AlertDefinition.ClientId, AlertRecipient.RoleId, CASE WHEN Alert.AlertTypeId IN (6,7) THEN CONVERT(VARCHAR(10), CAST(AlertAt AS DATE), 101) ELSE AlertAt END AS AlertAt, AlertType, Asset.SerialNumber, ISNULL(LocationAttribute.FirstRepId, 0) RepId, ClientUser.PrimaryPhone AS SalesRepPhone, ClientUser.PrimaryEmail AS SalesRepEmail, FirstName, LastName, PreferedNotificationTypeIds, AlertRecipientId, AlertRecipientAddress, AlertRecipientText, Alert.Tags, AlertRecipientTypeId, NotificationContactTypeId, TemplateId, AlertDefinition.AlertAgeThreshold, LastUpdatedOn, AlertRecipient.AlertAge, CASE WHEN Location.TimeZoneId IS NOT NULL AND Location.TimeZoneId > 0 THEN Location.TimeZoneId ELSE Client.TimeZoneId END AS TimeZoneId, AlertDefinition.IsSummarize, Alert.ClosedOn, AssetType.IsChestCooler, AlertDefinition.SnoozeForHours, Alert.SnoozeDateTime FROM Alert LEFT OUTER JOIN Asset ON Alert.AssetId = Asset.AssetId LEFT OUTER JOIN AlertType ON Alert.AlertTypeId = AlertType.AlertTypeId LEFT OUTER JOIN AlertDefinition ON Alert.AlertDefinitionId = AlertDefinition.AlertDefinitionId LEFT OUTER JOIN Location ON Location.LocationId = Alert.LocationId LEFT OUTER JOIN LocationAttribute ON LocationAttribute.LocationId = dbo.Location.LocationId LEFT OUTER JOIN ClientUser ON LocationAttribute.FirstRepId = ClientUser.ClientUserId AND ClientUser.IsDeleted = 0 LEFT OUTER JOIN AlertRecipient ON Alert.AlertDefinitionId = AlertRecipient.AlertDefinitionId AND AlertRecipient.IsDeleted= 0 LEFT OUTER JOIN Client ON Client.ClientId = Alert.ClientId LEFT OUTER JOIN AssetType ON dbo.Asset.AssetTypeId = dbo.AssetType.AssetTypeId WHERE (NOT EXISTS(SELECT 1 FROM dbo.EmailQueue INNER JOIN dbo.EmailRecipient ON EmailRecipient.EmailQueueId = EmailQueue.EmailQueueId WHERE AlertId = Alert.AlertId AND EmailRecipient.RecipientId = AlertRecipient.AlertRecipientId) OR (Alert.SnoozeDateTime IS NOT NULL AND Alert.SnoozeDateTime <= GETUTCDATE() AND AlertDefinition.SnoozeForHours > 0 AND Alert.StatusId = @StatusId)) AND Alert.AlertId > @AlertId AND Alert.AlertAt >= DATEADD(DAY, -120, GETDATE()) AND AlertRecipient.IsDeleted = 0 AND Alert.IsActive = 1 AND Alert.IsDeleted = 0 AND AlertRecipient.IsActive = 1 AND AlertRecipient.IsDeleted = 0 AND AlertRecipient.StartDate <= Alert.CreatedOn AND Alert.CreatedOn < DATEADD(hh, 23, AlertRecipient.EndDate) AND (Alert.LocationId != 0 OR NotificationWithoutLocation = 1) AND AlertType.IsSystemAlert = 0 AND Alert.EmailQueuedOn IS NULL AND AlertDefinition.IsActive = 1 2025-12-25 23:30:25.9565 DFramework.Database.Query /* Time Taken: 522*/ DECLARE @TableName AnsiString(8000) SET @TableName = 'MissingShelf' DECLARE @CurrentRecordId Int32 SET @CurrentRecordId = '3675104' dbo.GetValidDeviceForAlertProcessData 2025-12-25 23:30:26.5502 DFramework.Database.Query /* Time Taken: 533*/ DECLARE @TableName AnsiString(8000) SET @TableName = 'AdditionalShelf' DECLARE @CurrentRecordId Int32 SET @CurrentRecordId = '3675104' dbo.GetValidDeviceForAlertProcessData 2025-12-25 23:30:27.6440 DFramework.Database.Query /* Time Taken: 2790*/ [dbo].GenerateSystemAlerts 2025-12-25 23:30:30.7378 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 23:30:40.4566 DFramework.Scheduler.TaskBase /* Time Taken: 16000.1533*/ Opportunity Out Of Stock By Outlet 2025-12-25 23:35:24.5371 AlertProcessor ProcessorAlertData: started 2025-12-25 23:35:25.2558 MoveToReorder Running task for ClientId : 286 and ClientName = India Office QA and Slot: 12/26/2025 1:00:00 PM And LastExecutedOn: 12/26/2025 12:05:46 PM 2025-12-25 23:35:25.8496 DFramework.Database.Query /* Time Taken: 553*/ DECLARE @TableName AnsiString(8000) SET @TableName = 'MissingShelf' DECLARE @CurrentRecordId Int32 SET @CurrentRecordId = '3675104' dbo.GetValidDeviceForAlertProcessData 2025-12-25 23:35:26.4121 DFramework.Database.Query /* Time Taken: 506*/ DECLARE @TableName AnsiString(8000) SET @TableName = 'AdditionalShelf' DECLARE @CurrentRecordId Int32 SET @CurrentRecordId = '3675104' dbo.GetValidDeviceForAlertProcessData 2025-12-25 23:35:26.4746 DFramework.Database.Query /* Time Taken: 1150*/ DECLARE @OrderStatusId Int32 SET @OrderStatusId = '0' DECLARE @ClientId Int32 SET @ClientId = '286' dbo.GetOrderDetailsByClientId 2025-12-25 23:35:26.5058 MoveToReorder Task executed successfully for ClientId : 286 Client Name:India Office QA, Slot: 12/26/2025 1:00:00 PM But No Order found to suggest 2025-12-25 23:35:30.8184 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 23:40:24.5548 AlertProcessor ProcessorAlertData: started 2025-12-25 23:40:30.1955 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 23:45:24.5724 AlertProcessor ProcessorAlertData: started 2025-12-25 23:45:26.2443 DFramework.Database.Query /* Time Taken: 628*/ DECLARE @TableName AnsiString(8000) SET @TableName = 'MissingShelf' DECLARE @CurrentRecordId Int32 SET @CurrentRecordId = '3675104' dbo.GetValidDeviceForAlertProcessData 2025-12-25 23:45:27.9474 DFramework.Database.Query /* Time Taken: 3065*/ [dbo].GenerateSystemAlerts 2025-12-25 23:45:31.0100 DFramework.Database.Query /* Time Taken: 643*/ DECLARE @TableName AnsiString(8000) SET @TableName = 'TargetPortfolioComplianceConsolidate' DECLARE @CurrentRecordId Int32 SET @CurrentRecordId = '3675104' dbo.GetValidDeviceForAlertProcessData 2025-12-25 23:45:31.5568 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 23:45:40.5100 DFramework.Scheduler.TaskBase /* Time Taken: 16031.353*/ Opportunity Out Of Stock By Outlet 2025-12-25 23:50:24.5750 AlertProcessor ProcessorAlertData: started 2025-12-25 23:50:30.2625 AlertProcessor ProcessorAlertData: Stopped 2025-12-25 23:55:24.5928 AlertProcessor ProcessorAlertData: started 2025-12-25 23:55:30.2023 AlertProcessor ProcessorAlertData: Stopped