2026-04-13 16:37:43,469 - 24308 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=24308 - __SPLIT__ 2026-04-13 16:37:46,552 - 24308 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 24308 - __SPLIT__ 2026-04-13 16:37:46,552 - 24308 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-04-13 16:37:46,553 - 24308 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-13 16:37:46,826 - 24308 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-13 16:37:46,826 - 24308 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-04-13 16:37:46,826 - 24308 - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-04-13 16:37:46,827 - 24308 - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-04-13 16:37:46,827 - 24308 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 24308;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-13 16:37:47,254 - 24308 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-04-13 16:37:47,254 - 24308 - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.RecurringServicePrice, gw.StartDate, gw.EndDate, gw.CreatedBy AS NewCreatedBy, gw.RouteIds, ss.* FROM ServiceCore.GenerateWorkOrderHistory gw JOIN ServiceCore.ServiceSetup ss ON gw.CompanyId = ss.CompanyId AND ( (ss.NextGenerationDate <= gw.EndDate AND ss.NextGenerationDate >= gw.StartDate) OR ss.NextGenerationDate IS NULL) AND (gw.AccountNumber IS NULL OR ss.AccountNumber = gw.AccountNumber) AND (gw.ServiceSetupId IS NULL OR ss.ServiceSetupId = gw.ServiceSetupId)AND (gw.RouteIds IS NULL OR ss.RouteMasterId IN (SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 24308), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 24308), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 24308 AND ss.FrequencyScheduleId IS NOT NULL AND ss.IsActive = 1 AND ss.IsDeleted = 0 AND ss.Status <> 'Canceled';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-13 16:37:47,360 - 24308 - src.utils.log - INFO - βœ… Fetched 40 rows - __SPLIT__ 2026-04-13 16:37:47,361 - 24308 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 24308;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-13 16:37:47,392 - 24308 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-13 16:37:47,395 - 24308 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-04-13 16:37:47,396 - 24308 - src.utils.log - INFO - πŸ” Fetching data: SELECT fsd.IntervalDays, fs.CreatedDate ,f.FrequencyId , fs.FrequencyScheduleId, f.[SysName], f.FrequencyValue, f.YearlyOccurrence , fs.ScheduleFormat,fsd.Days, fsd.Weeks, fsd.Months,fsc.[Month] as sch_months, fsd.StartMonth , fsd.DateDay,fsd.DateMonth FROM [ServiceCore].[FrequencyMaster] f inner join [ServiceCore].[FrequencySchedule] fs on fs.FrequencyId = f.FrequencyId left join ServiceCore.FrequencyScheduleCycle fsc on fsc.FrequencyScheduleId = fs.FrequencyScheduleId left join [ServiceCore].[FrequencyScheduleDetail] fsd on fsd.FrequencyScheduleId = fs.FrequencyScheduleId WHERE fsd.FrequencyScheduleId in (14728, 14604, 14734, 14486, 14488, 14634, 14638, 14775, 14648, 14652, 14653, 14654, 14664, 14666, 14668, 14819, 14693, 14571, 14448, 14836, 14460)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-13 16:37:47,465 - 24308 - src.utils.log - INFO - βœ… Fetched 423 rows - __SPLIT__ 2026-04-13 16:37:47,465 - 24308 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-04-13 16:37:47,468 - 24308 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-04-13 16:37:47,469 - 24308 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId in (66177, 64133, 65673, 25870, 59283, 66196, 66199, 26395, 35357, 43807, 45728, 47009, 66207, 51623, 65191, 40627, 65203, 54453, 66231, 39481, 48573, 66238, 66239, 29249, 24001, 66242, 62405, 66247, 48334, 63573, 66264, 23134, 46434, 64867, 64994, 47333, 47462, 48488, 66292, 64631);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-13 16:37:47,502 - 24308 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-13 16:37:47,502 - 24308 - src.utils.log - INFO - πŸ” Fetching data: select ServiceDate, ServiceSetupId,IsInitial from serviceCore.WorkOrder wo inner join ServiceCore.WorkOrderStatus wos on wo.WoStatusId = wos.WoStatusId where ServiceDate >= '2026-05-01 00:00:00' and ServiceDate <= '2026-05-31 00:00:00' and ServiceSetupId in (66177, 64133, 65673, 25870, 59283, 66196, 66199, 26395, 35357, 43807, 45728, 47009, 66207, 51623, 65191, 40627, 65203, 54453, 66231, 39481, 48573, 66238, 66239, 29249, 24001, 66242, 62405, 66247, 48334, 63573, 66264, 23134, 46434, 64867, 64994, 47333, 47462, 48488, 66292, 64631) and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-13 16:37:47,553 - 24308 - src.utils.log - INFO - βœ… Fetched 19 rows - __SPLIT__ 2026-04-13 16:37:47,728 - 24308 - src.utils.log - INFO - Generating work orders for setup: 24001 - __SPLIT__ 2026-04-13 16:37:47,737 - 24308 - src.utils.log - INFO - Generating work orders for setup: 25870 - __SPLIT__ 2026-04-13 16:37:47,737 - 24308 - src.utils.log - INFO - Generating work orders for setup: 29249 - __SPLIT__ 2026-04-13 16:37:47,744 - 24308 - src.utils.log - INFO - Generating work orders for setup: 35357 - __SPLIT__ 2026-04-13 16:37:47,751 - 24308 - src.utils.log - INFO - Generating work orders for setup: 48488 - __SPLIT__ 2026-04-13 16:37:47,752 - 24308 - src.utils.log - INFO - Generating work orders for setup: 64133 - __SPLIT__ 2026-04-13 16:37:47,764 - 24308 - src.utils.log - INFO - Generating work orders for setup: 64631 - __SPLIT__ 2026-04-13 16:37:47,771 - 24308 - src.utils.log - INFO - Generating work orders for setup: 64867 - __SPLIT__ 2026-04-13 16:37:47,777 - 24308 - src.utils.log - INFO - Generating work orders for setup: 65203 - __SPLIT__ 2026-04-13 16:37:47,799 - 24308 - src.utils.log - INFO - Generating work orders for setup: 66177 - __SPLIT__ 2026-04-13 16:37:47,806 - 24308 - src.utils.log - INFO - Generating work orders for setup: 66196 - __SPLIT__ 2026-04-13 16:37:47,813 - 24308 - src.utils.log - INFO - Generating work orders for setup: 66199 - __SPLIT__ 2026-04-13 16:37:47,818 - 24308 - src.utils.log - INFO - Generating work orders for setup: 66207 - __SPLIT__ 2026-04-13 16:37:47,824 - 24308 - src.utils.log - INFO - Generating work orders for setup: 66231 - __SPLIT__ 2026-04-13 16:37:47,831 - 24308 - src.utils.log - INFO - Generating work orders for setup: 66238 - __SPLIT__ 2026-04-13 16:37:47,837 - 24308 - src.utils.log - INFO - Generating work orders for setup: 66239 - __SPLIT__ 2026-04-13 16:37:47,843 - 24308 - src.utils.log - INFO - Generating work orders for setup: 66242 - __SPLIT__ 2026-04-13 16:37:47,850 - 24308 - src.utils.log - INFO - Generating work orders for setup: 66247 - __SPLIT__ 2026-04-13 16:37:47,856 - 24308 - src.utils.log - INFO - Generating work orders for setup: 66264 - __SPLIT__ 2026-04-13 16:37:47,863 - 24308 - src.utils.log - INFO - Generating work orders for setup: 66292 - __SPLIT__ 2026-04-13 16:37:47,869 - 24308 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId in (11426.0, 11429.0, -1.0);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-13 16:37:47,899 - 24308 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-04-13 16:37:47,942 - 24308 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-04-13 16:37:47,949 - 24308 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=133 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-13 16:37:47,978 - 24308 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-13 16:37:47,979 - 24308 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-04-13 16:37:47,979 - 24308 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-04-13 16:37:47,979 - 24308 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (66177, 64133, 65673, 25870, 59283, 66196, 66199, 26395, 35357, 43807, 45728, 47009, 66207, 51623, 65191, 40627, 65203, 54453, 66231, 39481, 48573, 66238, 66239, 29249, 24001, 66242, 62405, 66247, 48334, 63573, 66264, 23134, 46434, 64867, 64994, 47333, 47462, 48488, 66292, 64631) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-13 16:37:48,022 - 24308 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-13 16:37:48,022 - 24308 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (66177, 64133, 65673, 25870, 59283, 66196, 66199, 26395, 35357, 43807, 45728, 47009, 66207, 51623, 65191, 40627, 65203, 54453, 66231, 39481, 48573, 66238, 66239, 29249, 24001, 66242, 62405, 66247, 48334, 63573, 66264, 23134, 46434, 64867, 64994, 47333, 47462, 48488, 66292, 64631) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-13 16:37:48,068 - 24308 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-13 16:37:48,069 - 24308 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (66177, 64133, 65673, 25870, 59283, 66196, 66199, 26395, 35357, 43807, 45728, 47009, 66207, 51623, 65191, 40627, 65203, 54453, 66231, 39481, 48573, 66238, 66239, 29249, 24001, 66242, 62405, 66247, 48334, 63573, 66264, 23134, 46434, 64867, 64994, 47333, 47462, 48488, 66292, 64631) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-13 16:37:48,101 - 24308 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-13 16:37:48,101 - 24308 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (66177, 64133, 65673, 25870, 59283, 66196, 66199, 26395, 35357, 43807, 45728, 47009, 66207, 51623, 65191, 40627, 65203, 54453, 66231, 39481, 48573, 66238, 66239, 29249, 24001, 66242, 62405, 66247, 48334, 63573, 66264, 23134, 46434, 64867, 64994, 47333, 47462, 48488, 66292, 64631) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-13 16:37:48,165 - 24308 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-13 16:37:48,165 - 24308 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (66177, 64133, 65673, 25870, 59283, 66196, 66199, 26395, 35357, 43807, 45728, 47009, 66207, 51623, 65191, 40627, 65203, 54453, 66231, 39481, 48573, 66238, 66239, 29249, 24001, 66242, 62405, 66247, 48334, 63573, 66264, 23134, 46434, 64867, 64994, 47333, 47462, 48488, 66292, 64631) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-13 16:37:48,212 - 24308 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-13 16:37:48,212 - 24308 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (66177, 64133, 65673, 25870, 59283, 66196, 66199, 26395, 35357, 43807, 45728, 47009, 66207, 51623, 65191, 40627, 65203, 54453, 66231, 39481, 48573, 66238, 66239, 29249, 24001, 66242, 62405, 66247, 48334, 63573, 66264, 23134, 46434, 64867, 64994, 47333, 47462, 48488, 66292, 64631) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-13 16:37:48,253 - 24308 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-13 16:37:48,253 - 24308 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (66177, 64133, 65673, 25870, 59283, 66196, 66199, 26395, 35357, 43807, 45728, 47009, 66207, 51623, 65191, 40627, 65203, 54453, 66231, 39481, 48573, 66238, 66239, 29249, 24001, 66242, 62405, 66247, 48334, 63573, 66264, 23134, 46434, 64867, 64994, 47333, 47462, 48488, 66292, 64631) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-13 16:37:48,285 - 24308 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-13 16:37:48,285 - 24308 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (66177, 64133, 65673, 25870, 59283, 66196, 66199, 26395, 35357, 43807, 45728, 47009, 66207, 51623, 65191, 40627, 65203, 54453, 66231, 39481, 48573, 66238, 66239, 29249, 24001, 66242, 62405, 66247, 48334, 63573, 66264, 23134, 46434, 64867, 64994, 47333, 47462, 48488, 66292, 64631) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-13 16:37:48,368 - 24308 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-13 16:37:48,368 - 24308 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-13 16:37:48,368 - 24308 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 11 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-13 16:37:48,445 - 24308 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 11) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-04-13 16:37:48,675 - 24308 - src.utils.log - INFO - βœ… All 11 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-04-13 16:37:48,675 - 24308 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 11 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-04-10 12:04:57.553' and ServiceSetupId in (66177, 64133, 65673, 25870, 59283, 66196, 66199, 26395, 35357, 43807, 45728, 47009, 66207, 51623, 65191, 40627, 65203, 54453, 66231, 39481, 48573, 66238, 66239, 29249, 24001, 66242, 62405, 66247, 48334, 63573, 66264, 23134, 46434, 64867, 64994, 47333, 47462, 48488, 66292, 64631)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-13 16:37:48,709 - 24308 - src.utils.log - INFO - βœ… Fetched 11 rows - __SPLIT__ 2026-04-13 16:37:48,710 - 24308 - src.utils.log - INFO - Id's of work order inserted to DB: [643288 643289 643290 643291 643292 643293 643294 643295 643296 643297 643298] - __SPLIT__ 2026-04-13 16:37:48,710 - 24308 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId in (66177, 64133, 65673, 25870, 59283, 66196, 66199, 26395, 35357, 43807, 45728, 47009, 66207, 51623, 65191, 40627, 65203, 54453, 66231, 39481, 48573, 66238, 66239, 29249, 24001, 66242, 62405, 66247, 48334, 63573, 66264, 23134, 46434, 64867, 64994, 47333, 47462, 48488, 66292, 64631);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-13 16:37:48,740 - 24308 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-13 16:37:48,740 - 24308 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-04-13 16:37:48,740 - 24308 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId in (24001, 66177, 29249, 66247, 66231, 66207, 66196, 66292, 66199, 66238, 66239)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-13 16:37:48,771 - 24308 - src.utils.log - INFO - βœ… Fetched 17 rows - __SPLIT__ 2026-04-13 16:37:48,771 - 24308 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId in (24001, 66177, 29249, 66247, 66231, 66207, 66196, 66292, 66199, 66238, 66239)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-13 16:37:48,805 - 24308 - src.utils.log - INFO - βœ… Fetched 8 rows - __SPLIT__ 2026-04-13 16:37:48,811 - 24308 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId in (24001, 66177, 29249, 66247, 66231, 66207, 66196, 66292, 66199, 66238, 66239)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-13 16:37:48,853 - 24308 - src.utils.log - INFO - βœ… Fetched 20 rows - __SPLIT__ 2026-04-13 16:37:48,855 - 24308 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId in (24001, 66177, 29249, 66247, 66231, 66207, 66196, 66292, 66199, 66238, 66239)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-13 16:37:48,888 - 24308 - src.utils.log - INFO - βœ… Fetched 9 rows - __SPLIT__ 2026-04-13 16:37:48,890 - 24308 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId in (24001, 66177, 29249, 66247, 66231, 66207, 66196, 66292, 66199, 66238, 66239)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-13 16:37:48,919 - 24308 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-13 16:37:48,919 - 24308 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId in (24001, 66177, 29249, 66247, 66231, 66207, 66196, 66292, 66199, 66238, 66239);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-13 16:37:48,950 - 24308 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-13 16:37:48,951 - 24308 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId in (24001, 66177, 29249, 66247, 66231, 66207, 66196, 66292, 66199, 66238, 66239);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-13 16:37:48,983 - 24308 - src.utils.log - INFO - βœ… Fetched 10 rows - __SPLIT__ 2026-04-13 16:37:48,984 - 24308 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId in (24001, 66177, 29249, 66247, 66231, 66207, 66196, 66292, 66199, 66238, 66239);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-13 16:37:49,192 - 24308 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-13 16:37:49,192 - 24308 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId in (24001, 66177, 29249, 66247, 66231, 66207, 66196, 66292, 66199, 66238, 66239);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-13 16:37:49,224 - 24308 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-13 16:37:49,242 - 24308 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-04-13 16:37:49,242 - 24308 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-04-13 16:37:49,242 - 24308 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-04-13 16:37:49,242 - 24308 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.CommunicationPreferencesServiceReportNotification: - __SPLIT__ 2026-04-13 16:37:49,242 - 24308 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-04-13 16:37:49,242 - 24308 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-13 16:37:49,243 - 24308 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ('643291', '643296', '643298', '643293', '643289', '643292', '643294', '643290', '643297') ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-13 16:37:49,272 - 24308 - src.utils.log - INFO - βœ… Fetched 9 rows - __SPLIT__ 2026-04-13 16:37:49,272 - 24308 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.SetupAutoGenerationSourceMapping: 0 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-13 16:37:49,316 - 24308 - src.utils.log - INFO - βœ… All 0 rows inserted successfully into ServiceCore.SetupAutoGenerationSourceMapping in 0 batches - __SPLIT__ 2026-04-13 16:37:49,316 - 24308 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-04-13 16:37:49,316 - 24308 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-13 16:37:49,317 - 24308 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 643295 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-13 16:37:49,345 - 24308 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-13 16:37:49,346 - 24308 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationAppliedDiscount: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-13 16:37:49,397 - 24308 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderAutoGenerationAppliedDiscount - __SPLIT__ 2026-04-13 16:37:49,503 - 24308 - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationAppliedDiscount in 1 batches - __SPLIT__ 2026-04-13 16:37:49,503 - 24308 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-04-13 16:37:49,503 - 24308 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SubWorkOrderAutoGeneration: - __SPLIT__ 2026-04-13 16:37:49,504 - 24308 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-04-13 16:37:49,504 - 24308 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: - __SPLIT__ 2026-04-13 16:37:49,504 - 24308 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-04-13 16:37:49,504 - 24308 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: - __SPLIT__ 2026-04-13 16:37:49,504 - 24308 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-04-13 16:37:49,504 - 24308 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-13 16:37:49,504 - 24308 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (643296, 643297, 643298, 643288, 643289, 643290, 643291, 643292, 643293, 643294, 643295) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-13 16:37:49,533 - 24308 - src.utils.log - INFO - βœ… Fetched 11 rows - __SPLIT__ 2026-04-13 16:37:49,534 - 24308 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationCrews: 11 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-13 16:37:49,582 - 24308 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 11) into ServiceCore.WorkOrderAutoGenerationCrews - __SPLIT__ 2026-04-13 16:37:49,692 - 24308 - src.utils.log - INFO - βœ… All 11 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationCrews in 1 batches - __SPLIT__ 2026-04-13 16:37:49,693 - 24308 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-04-13 16:37:49,693 - 24308 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationServices: - __SPLIT__ 2026-04-13 16:37:49,693 - 24308 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-04-13 16:37:49,693 - 24308 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-13 16:37:49,693 - 24308 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 17 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-13 16:37:49,743 - 24308 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 17) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-04-13 16:37:49,867 - 24308 - src.utils.log - INFO - βœ… All 17 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-04-13 16:37:49,867 - 24308 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-04-13 16:37:49,867 - 24308 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 24308;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-13 16:37:49,896 - 24308 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-04-13 16:37:49,896 - 24308 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-04-13 16:37:49,896 - 24308 - src.utils.log - INFO - Time took to perform operation: 3.34 - __SPLIT__ 2026-04-13 16:37:49,896 - 24308 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 24308;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-13 16:37:49,924 - 24308 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-04-13 16:37:49,924 - 24308 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET WorkOrderStatusDateTime = '2026-04-13 12:37:49.924' WHERE GenerateWorkOrderHistoryId = 24308;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-13 16:37:49,953 - 24308 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-04-13 16:38:31,563 - [24308] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[643288, 643289, 643290, 643293, 643292, 643291, 643297, 643294, 643298, 643296, 643295] user_id=43606 company_id=133 project_id=[24308] publish_all=False - __SPLIT__ 2026-04-13 16:38:31,564 - [24308] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[643288, 643289, 643290, 643293, 643292, 643291, 643297, 643294, 643298, 643296, 643295] user_id=43606 company_id=133 project_id=[24308] publish_all=False - __SPLIT__ 2026-04-13 16:38:31,564 - [24308] - src.utils.log - INFO - Sequential Work order publish in progress for GenerateWorkOrderHistoryId: [24308] - __SPLIT__ 2026-04-13 16:38:31,565 - [24308] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-04-13 16:38:31,565 - [24308] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-13 16:38:31,765 - [24308] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-13 16:38:31,766 - [24308] - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-04-13 16:38:31,766 - [24308] - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-04-13 16:38:31,766 - [24308] - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-04-13 16:38:31,766 - [24308] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'InProgress' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 24308;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-13 16:38:31,969 - [24308] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-04-13 16:38:31,969 - [24308] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (643288, 643289, 643290, 643293, 643292, 643291, 643297, 643294, 643298, 643296, 643295)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-13 16:38:32,003 - [24308] - src.utils.log - INFO - βœ… Fetched 11 rows - __SPLIT__ 2026-04-13 16:38:32,004 - [24308] - src.utils.log - INFO - Inside get_work_order_table - __SPLIT__ 2026-04-13 16:38:32,004 - [24308] - src.utils.log - INFO - πŸ” Fetching data: SELECT DISTINCT sss.ServiceSetupId, dm.DepartmentMasterId, bm.BranchMasterId FROM Common.DepartmentMaster dm JOIN Common.DivisionMaster d2 ON dm.DivisionMasterId = d2.DivisionMasterId JOIN Common.BranchMaster bm ON d2.BranchMasterId = bm.BranchMasterId JOIN ServiceCore.ServiceCategoryMaster c ON c.DepartmentId = dm.DepartmentMasterId JOIN ServiceCore.ServiceMaster sm ON c.CategoryId = sm.CategoryId JOIN ServiceCore.ServiceSetupServices sss ON sss.ServiceId = sm.ServiceMasterId WHERE dm.CompanyId = 133 AND d2.CompanyId = bm.CompanyId AND sss.ServiceSetupId in (24001, 66196, 66177, 66207, 66239, 29249, 66199, 66231, 66238, 66247, 66292) AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-13 16:38:32,045 - [24308] - src.utils.log - INFO - βœ… Fetched 11 rows - __SPLIT__ 2026-04-13 16:38:32,045 - [24308] - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceSetupId, dm.DepartmentMasterId, bm.BranchMasterId FROM Common.DepartmentMaster dm JOIN Common.DivisionMaster d2 ON dm.DivisionMasterId = d2.DivisionMasterId JOIN Common.BranchMaster bm ON d2.BranchMasterId = bm.BranchMasterId JOIN ServiceCore.SoldServiceNonStandard x on dm.DepartmentMasterId = x.DepartmentId JOIN ServiceCore.ServiceSetupServices sss ON sss.NonStdSoldServiceId = x.SoldServiceNonStandardId WHERE dm.CompanyId = 133 AND d2.CompanyId = bm.CompanyId AND sss.ServiceSetupId in (24001, 66196, 66177, 66207, 66239, 29249, 66199, 66231, 66238, 66247, 66292) AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-13 16:38:32,080 - [24308] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-13 16:38:32,080 - [24308] - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceSetupId, dm.DepartmentMasterId, bm.BranchMasterId FROM Common.DepartmentMaster dm Inner JOIN Common.DivisionMaster d2 ON dm.DivisionMasterId = d2.DivisionMasterId Inner JOIN Common.BranchMaster bm ON d2.BranchMasterId = bm.BranchMasterId Inner JOIN [ServiceCore].[ServiceCategoryMaster] scm ON dm.DepartmentMasterId = scm.DepartmentId Inner JOIN ServiceCore.ServiceMaster sm ON scm.CategoryId = sm.CategoryId Inner JOIN ServiceCore.SoldServiceStandard x on x.ServiceId = sm.ServiceMasterId Inner JOIN ServiceCore.ServiceSetupServices sss ON sss.StdSoldServiceId = x.SoldServiceStandardId WHERE dm.CompanyId = 133 AND d2.CompanyId = bm.CompanyId AND sss.ServiceSetupId in (24001, 66196, 66177, 66207, 66239, 29249, 66199, 66231, 66238, 66247, 66292) AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-13 16:38:32,124 - [24308] - src.utils.log - INFO - βœ… Fetched 8 rows - __SPLIT__ 2026-04-13 16:38:32,131 - [24308] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder,BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-13 16:38:32,164 - [24308] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-13 16:38:32,165 - [24308] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 133 AND EnitityNumberType in ('WorkOrder','Invoice'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-13 16:38:32,195 - [24308] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-04-13 16:38:32,196 - [24308] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder, BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-13 16:38:32,224 - [24308] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-13 16:38:32,224 - [24308] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 11 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 133 AND EnitityNumberType = 'WorkOrder'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-13 16:38:32,255 - [24308] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-13 16:38:32,256 - [24308] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 11 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 133 AND EnitityNumberType = 'Invoice'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-13 16:38:32,287 - [24308] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-13 16:38:32,290 - [24308] - src.utils.log - INFO - πŸ” Fetching data: SELECT ss.ServiceSetupId as SetupId, ss.FrequencyScheduleId as setup_frequency_schedule_id, ss.AccountNumber, ss.CompanyId, ss.BillingLocationId, ss.ServiceLocationId, ss.TaxSysName, ss.TermId, ss.TaxPercent, ss.PoNumber, ss.IsTaxExempt, ss.DisplayServiceAsSeparateLineItem, ss.GenerateInvoice, ss.IsGenerateInvoiceforInitalSetup, ss.IsGenerateInvoiceforInitalSetupBilling, ss.IsBilling, t.NetDueIn, ptm.PaymentType, ssb.* FROM ServiceCore.ServiceSetup ss LEFT JOIN ServiceCore.ServiceSetupBilling ssb ON ss.ServiceSetupId = ssb.ServiceSetupId LEFT JOIN Billing.PaymentTypeMaster ptm ON ptm.PaymentTypeMasterId = ssb.PaymentTypeMasterId left join Billing.Term t on ss.TermId = t.TermId WHERE ss.ServiceSetupId in (24001, 66196, 66177, 66207, 66239, 29249, 66199, 66231, 66238, 66247, 66292)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-13 16:38:32,328 - [24308] - src.utils.log - INFO - βœ… Fetched 11 rows - __SPLIT__ 2026-04-13 16:38:32,335 - [24308] - src.utils.log - INFO - πŸ” Fetching data: SELECT x.CompanyId FROM CRM.CompanyMaster x WHERE CompanyKey = 'abcdallas';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-13 16:38:32,364 - [24308] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-13 16:38:32,364 - [24308] - src.utils.log - INFO - πŸ” Fetching data: SELECT CollectionStatus,IsHold,AccountNo FROM CRM.Account a WHERE a.AccountNo in ('269183', '22331', '25700', '25777', '219374', '322923', '258623', '257437', '99287', '601400', '24241') and a.CompanyId = 121;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-13 16:38:32,396 - [24308] - src.utils.log - INFO - βœ… Fetched 11 rows - __SPLIT__ 2026-04-13 16:38:32,398 - [24308] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderNo FROM ServiceCore.WorkOrder WHERE WorkOrderNo IN ('477288', '477289', '477290', '477291', '477292', '477293', '477294', '477295', '477296', '477297', '477298') AND CompanyId = 133 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-13 16:38:32,437 - [24308] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-13 16:38:32,437 - [24308] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrder (skip triggers): 11 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-13 16:38:32,536 - [24308] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 11) into ServiceCore.WorkOrder (triggers skipped) - __SPLIT__ 2026-04-13 16:38:32,804 - [24308] - src.utils.log - INFO - βœ… All 11 rows inserted successfully into ServiceCore.WorkOrder in 1 batches (triggers skipped) - __SPLIT__ 2026-04-13 16:38:32,818 - [24308] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-04-13 16:38:32,820 - [24308] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkorderId, WorkOrderNo FROM ServiceCore.WorkOrder wo WHERE wo.WorkOrderNo IN ('477288', '477289', '477290', '477291', '477292', '477293', '477294', '477295', '477296', '477297', '477298') AND wo.AccountNumber IN ('219374', '25777', '258623', '25700', '24241', '269183', '257437', '22331', '601400', '99287', '322923') AND wo.CompanyId = 133 ... (Thread: ThreadPoolExecutor-3_0) - __SPLIT__ 2026-04-13 16:38:32,858 - [24308] - src.utils.log - INFO - βœ… Fetched 11 rows - __SPLIT__ 2026-04-13 16:38:32,858 - [24308] - src.utils.log - INFO - Sequential fetching temp table records - __SPLIT__ 2026-04-13 16:38:32,858 - [24308] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationServices woag WHERE woag.WorkOrderAutoGenerationId in (643288, 643289, 643290, 643291, 643292, 643293, 643294, 643295, 643296, 643297, 643298)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-13 16:38:32,892 - [24308] - src.utils.log - INFO - βœ… Fetched 17 rows - __SPLIT__ 2026-04-13 16:38:32,892 - [24308] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SubWorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (643288, 643289, 643290, 643291, 643292, 643293, 643294, 643295, 643296, 643297, 643298)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-13 16:38:32,923 - [24308] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-13 16:38:32,924 - [24308] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationCrews woag WHERE woag.WorkOrderAutoGenerationId in (643288, 643289, 643290, 643291, 643292, 643293, 643294, 643295, 643296, 643297, 643298)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-13 16:38:32,955 - [24308] - src.utils.log - INFO - βœ… Fetched 11 rows - __SPLIT__ 2026-04-13 16:38:32,956 - [24308] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationSalesPersonCommission woag WHERE woag.WorkOrderAutoGenerationId in (643288, 643289, 643290, 643291, 643292, 643293, 643294, 643295, 643296, 643297, 643298)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-13 16:38:32,986 - [24308] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-13 16:38:32,986 - [24308] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupAutoGenerationSourceMapping woag WHERE woag.WorkOrderAutoGenerationId in (643288, 643289, 643290, 643291, 643292, 643293, 643294, 643295, 643296, 643297, 643298)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-13 16:38:33,023 - [24308] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-13 16:38:33,023 - [24308] - src.utils.log - INFO - πŸ” Fetching data: SELECT DiscountType, DiscountCode, DiscountAmount, DiscountDescription, DiscountName, IsActive, CreatedBy, ModifiedBy, CreatedDate, ModifiedDate, DiscountPercent, IsDiscountPercent, AppliedDiscountAmt, ApplyOnPartPrice, ApplyOnLaborPrice, DiscountSetupId, WorkOrderAutoGenerationId from ServiceCore.WorkOrderAutoGenerationAppliedDiscount woag WHERE woag.WorkOrderAutoGenerationId in (643288, 643289, 643290, 643291, 643292, 643293, 643294, 643295, 643296, 643297, 643298)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-13 16:38:33,080 - [24308] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-13 16:38:33,080 - [24308] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from CRM.LeadNote woag WHERE woag.RefId in (643288, 643289, 643290, 643291, 643292, 643293, 643294, 643295, 643296, 643297, 643298) and woag.RefType = 'TempWorkorder';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-13 16:38:33,111 - [24308] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-13 16:38:33,111 - [24308] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment woagca WHERE woagca.WorkOrderAutoGenerationId in (643288, 643289, 643290, 643291, 643292, 643293, 643294, 643295, 643296, 643297, 643298);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-13 16:38:33,141 - [24308] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-13 16:38:33,143 - [24308] - src.utils.log - INFO - Updating temp tables - __SPLIT__ 2026-04-13 16:38:33,156 - [24308] - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyKey FROM Common.CompanyMaster cm WHERE CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-13 16:38:33,185 - [24308] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-13 16:38:33,188 - [24308] - src.utils.log - INFO - πŸ” Fetching data: Select DiscountSetupId, [SysName] as DiscountSysName from Common.DiscountSetupMaster WHERE DiscountSetupId = 1109 AND CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-13 16:38:33,218 - [24308] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-13 16:38:33,220 - [24308] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 133 AND EnitityNumberType in ('SubWorkOrder'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-13 16:38:33,249 - [24308] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-13 16:38:33,253 - [24308] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-13 16:38:33,253 - [24308] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishHistory: 11 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-13 16:38:33,319 - [24308] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 11) into ServiceCore.WorkOrderAutoGenerationPublishHistory - __SPLIT__ 2026-04-13 16:38:33,464 - [24308] - src.utils.log - INFO - βœ… All 11 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishHistory in 1 batches - __SPLIT__ 2026-04-13 16:38:33,466 - [24308] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationPublishHistoryId, WorkOrderNo, ServiceSetupId FROM ServiceCore.WorkOrderAutoGenerationPublishHistory WHERE ServiceSetupId IN (24001, 66196, 66177, 66207, 66239, 29249, 66199, 66231, 66238, 66247, 66292) AND WorkOrderNo IN ('6021540', '8193775', '7343903', '3414290', '9176540', '6721650', '8420097', '2081561', '8852702', '1268972', '2134937') AND GenerateWorkOrderHistoryId = 24308;... (Thread: ThreadPoolExecutor-4_0) - __SPLIT__ 2026-04-13 16:38:33,635 - [24308] - src.utils.log - INFO - βœ… Fetched 11 rows - __SPLIT__ 2026-04-13 16:38:33,636 - [24308] - src.utils.log - INFO - 🏁 Final merged rows: 11 - __SPLIT__ 2026-04-13 16:38:33,641 - [24308] - src.utils.log - INFO - Sequential Insertion in work order tables begin - __SPLIT__ 2026-04-13 16:38:33,641 - [24308] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-13 16:38:33,641 - [24308] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderServices: 17 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-13 16:38:33,706 - [24308] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 17) into ServiceCore.WorkOrderServices - __SPLIT__ 2026-04-13 16:38:33,852 - [24308] - src.utils.log - INFO - βœ… All 17 rows inserted successfully into ServiceCore.WorkOrderServices in 1 batches - __SPLIT__ 2026-04-13 16:38:33,852 - [24308] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-13 16:38:33,852 - [24308] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.WorkOrderAppliedDiscount: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-13 16:38:33,903 - [24308] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceAuto.WorkOrderAppliedDiscount - __SPLIT__ 2026-04-13 16:38:34,058 - [24308] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceAuto.WorkOrderAppliedDiscount in 1 batches - __SPLIT__ 2026-04-13 16:38:34,058 - [24308] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderSalesPersonCommission: - __SPLIT__ 2026-04-13 16:38:34,058 - [24308] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderCommissionAdjustment: - __SPLIT__ 2026-04-13 16:38:34,058 - [24308] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-13 16:38:34,058 - [24308] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderCrew: 11 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-13 16:38:34,109 - [24308] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 11) into ServiceCore.WorkOrderCrew - __SPLIT__ 2026-04-13 16:38:34,235 - [24308] - src.utils.log - INFO - βœ… All 11 rows inserted successfully into ServiceCore.WorkOrderCrew in 1 batches - __SPLIT__ 2026-04-13 16:38:34,235 - [24308] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkorderSourceMapping: - __SPLIT__ 2026-04-13 16:38:34,235 - [24308] - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-04-13 16:38:34,235 - [24308] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-13 16:38:34,235 - [24308] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishServices: 17 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-13 16:38:34,285 - [24308] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 17) into ServiceCore.WorkOrderAutoGenerationPublishServices - __SPLIT__ 2026-04-13 16:38:34,418 - [24308] - src.utils.log - INFO - βœ… All 17 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishServices in 1 batches - __SPLIT__ 2026-04-13 16:38:34,419 - [24308] - src.utils.log - INFO - πŸ” Fetching data: SELECT ss.ServiceSetupId as SetupId, ss.FrequencyScheduleId as setup_frequency_schedule_id, ss.AccountNumber, ss.CompanyId, ss.BillingLocationId, ss.ServiceLocationId, ss.TaxSysName, ss.TermId, ss.TaxPercent, ss.PoNumber, ss.IsTaxExempt, ss.DisplayServiceAsSeparateLineItem, ss.GenerateInvoice, ss.IsGenerateInvoiceforInitalSetup, ss.IsGenerateInvoiceforInitalSetupBilling, ss.IsBilling, t.NetDueIn, ptm.PaymentType, ssb.* FROM ServiceCore.ServiceSetup ss LEFT JOIN ServiceCore.ServiceSetupBilling ssb ON ss.ServiceSetupId = ssb.ServiceSetupId LEFT JOIN Billing.PaymentTypeMaster ptm ON ptm.PaymentTypeMasterId = ssb.PaymentTypeMasterId left join Billing.Term t on ss.TermId = t.TermId WHERE ss.ServiceSetupId in (24001, 66196, 66177, 66207, 66239, 29249, 66199, 66231, 66238, 66247, 66292)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-13 16:38:34,448 - [24308] - src.utils.log - INFO - βœ… Fetched 11 rows - __SPLIT__ 2026-04-13 16:38:34,457 - [24308] - src.utils.log - INFO - Size of Transaction: 9 - __SPLIT__ 2026-04-13 16:38:34,458 - [24308] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 9 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-13 16:38:34,525 - [24308] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 9) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-04-13 16:38:34,726 - [24308] - src.utils.log - INFO - βœ… All 9 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-04-13 16:38:34,740 - [24308] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-04-13 16:38:34,741 - [24308] - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionId, ModifiedBy, TransactionDate as InvoiceDate from Billing.[Transaction] t WHERE t.ModifiedBy in (12345678910, 12345678911, 12345678912, 12345678913, 12345678914, 12345678915, 12345678916, 12345678917, 12345678918) and t.CompanyId = 133 AND t.TransactionType ='Invoice' AND t.CreatedDate = '2026-04-13 12:38:34.453';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-13 16:38:35,605 - [24308] - src.utils.log - INFO - βœ… Fetched 9 rows - __SPLIT__ 2026-04-13 16:38:35,608 - [24308] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId in (24001, 29249, 66177, 66196, 66199, 66207, 66231, 66238, 66239, 66247, 66292);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-13 16:38:35,641 - [24308] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-13 16:38:35,650 - [24308] - src.utils.log - INFO - πŸ“ Executing: UPDATE Billing.[Transaction] SET ModifiedBy = NULL WHERE ModifiedBy IN (12345678910,12345678911,12345678912,12345678913,12345678914,12345678915,12345678916,12345678917,12345678918) AND CreatedDate = '2026-04-13 12:38:34.453'; ... (Thread: ThreadPoolExecutor-5_0) - __SPLIT__ 2026-04-13 16:38:36,072 - [24308] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-04-13 16:38:36,077 - [24308] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-13 16:38:36,077 - [24308] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 9 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-13 16:38:36,133 - [24308] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 9) into Billing.Invoice - __SPLIT__ 2026-04-13 16:38:36,251 - [24308] - src.utils.log - INFO - βœ… All 9 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-04-13 16:38:36,251 - [24308] - src.utils.log - INFO - πŸ” Fetching data: SELECT InvoiceId, WorkOrderNo FROM Billing.Invoice i WHERE i.WorkOrderNo in ('477288', '477290', '477289', '477294', '477295', '477296', '477292', '477297', '477298')... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-13 16:38:36,698 - [24308] - src.utils.log - INFO - βœ… Fetched 9 rows - __SPLIT__ 2026-04-13 16:38:36,706 - [24308] - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceSetupId, sss.NonStdSoldServiceId as SoldServiceNonStandardId, sss.Qty as Quantity, sss.Price as Rate, sss.IsTaxable, sm.Name as NonStandardServiceName, sm.Description , sm.ServiceMasterId as ServiceId FROM ServiceCore.ServiceSetupServices sss join ServiceCore.ServiceMaster sm on sm.ServiceMasterId = sss.ServiceId where ServiceSetupId in (24001, 66196, 66177, 66239, 66199, 66231, 66238, 66247, 66292) and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-13 16:38:36,739 - [24308] - src.utils.log - INFO - βœ… Fetched 13 rows - __SPLIT__ 2026-04-13 16:38:36,739 - [24308] - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceSetupId, sss.NonStdSoldServiceId as SoldServiceNonStandardId, sss.Qty as Quantity, sss.Price as Rate, sss.IsTaxable, sm.Name as NonStandardServiceName, sm.Description , sm.ServiceMasterId as ServiceId FROM ServiceCore.ServiceSetupInitialServices sss join ServiceCore.ServiceMaster sm on sm.ServiceMasterId = sss.ServiceId where ServiceSetupId in (24001, 66196, 66177, 66239, 66199, 66231, 66238, 66247, 66292) and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-13 16:38:36,776 - [24308] - src.utils.log - INFO - βœ… Fetched 8 rows - __SPLIT__ 2026-04-13 16:38:36,776 - [24308] - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceSetupId, sss.NonStdSoldServiceId as SoldServiceNonStandardId, sss.Qty as Quantity, sss.Price as Rate, sss.IsTaxable, sm.servicename as NonStandardServiceName, sm.Description , sss.ServiceId FROM ServiceCore.ServiceSetupServices sss join ServiceCore.SoldServiceNonStandard sm on sm.SoldServiceNonStandardId = sss.NonStdSoldServiceId where ServiceSetupId in (24001, 66196, 66177, 66239, 66199, 66231, 66238, 66247, 66292) and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-13 16:38:36,812 - [24308] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-13 16:38:36,812 - [24308] - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceSetupId, sss.NonStdSoldServiceId as SoldServiceNonStandardId, sss.Qty as Quantity, sss.Price as Rate, sss.IsTaxable, sm.servicename as NonStandardServiceName, sm.Description , sss.ServiceId FROM ServiceCore.ServiceSetupInitialServices sss join ServiceCore.SoldServiceNonStandard sm on sm.SoldServiceNonStandardId = sss.NonStdSoldServiceId where ServiceSetupId in (24001, 66196, 66177, 66239, 66199, 66231, 66238, 66247, 66292) and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-13 16:38:36,845 - [24308] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-13 16:38:36,859 - [24308] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId in (24001, 66196, 66177, 66239, 66199, 66231, 66238, 66247, 66292);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-13 16:38:36,891 - [24308] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-13 16:38:36,896 - [24308] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId, AppliedDiscountAmt as AppliedDiscountAmount,IsActive ,ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId in (24001, 66196, 66177, 66239, 66199, 66231, 66238, 66247, 66292);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-13 16:38:36,926 - [24308] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-13 16:38:36,937 - [24308] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId,IsActive,DiscountAmount, IsDiscountPercent,DiscountPercent,DiscountDescription, ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId in (24001, 66196, 66177, 66239, 66199, 66231, 66238, 66247, 66292);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-13 16:38:36,967 - [24308] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-13 16:38:36,975 - [24308] - src.utils.log - INFO - Sequential Insertion in invoice tables begin - __SPLIT__ 2026-04-13 16:38:36,975 - [24308] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-13 16:38:36,975 - [24308] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.AccountDiscountSetup: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-13 16:38:37,025 - [24308] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into Billing.AccountDiscountSetup - __SPLIT__ 2026-04-13 16:38:37,136 - [24308] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into Billing.AccountDiscountSetup in 1 batches - __SPLIT__ 2026-04-13 16:38:37,136 - [24308] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-13 16:38:37,136 - [24308] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceCharges: 13 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-13 16:38:37,194 - [24308] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 13) into Billing.InvoiceCharges - __SPLIT__ 2026-04-13 16:38:37,325 - [24308] - src.utils.log - INFO - βœ… All 13 rows inserted successfully into Billing.InvoiceCharges in 1 batches - __SPLIT__ 2026-04-13 16:38:37,326 - [24308] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-13 16:38:37,326 - [24308] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.DiscountApplied: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-13 16:38:37,372 - [24308] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into Billing.DiscountApplied - __SPLIT__ 2026-04-13 16:38:37,479 - [24308] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into Billing.DiscountApplied in 1 batches - __SPLIT__ 2026-04-13 16:38:37,479 - [24308] - src.utils.log - INFO - Invoice Publish Done - __SPLIT__ 2026-04-13 16:38:37,479 - [24308] - src.utils.log - INFO - Updating Next GenerationDate - __SPLIT__ 2026-04-13 16:38:37,480 - [24308] - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, MAX(NextWorkOrderGenerationDate) AS MaxNextWorkOrderGeneration FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 24308 GROUP BY ServiceSetupId; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-13 16:38:37,515 - [24308] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-13 16:38:37,521 - [24308] - src.utils.log - INFO - πŸ”„ Updating next gen date sequentially: inside update_next_workorder_generation - __SPLIT__ 2026-04-13 16:38:37,535 - [24308] - src.utils.log - INFO - πŸ›  Creating temp table #tbl_35683f96af - __SPLIT__ 2026-04-13 16:38:37,566 - [24308] - src.utils.log - INFO - πŸ“Œ Bulk inserting 11 rows into #tbl_35683f96af - __SPLIT__ 2026-04-13 16:38:37,774 - [24308] - src.utils.log - INFO - πŸ” Running MERGE update to apply changes - __SPLIT__ 2026-04-13 16:38:37,794 - [24308] - src.utils.log - INFO - βœ” SQL reported affected rows: 11 - __SPLIT__ 2026-04-13 16:38:37,814 - [24308] - src.utils.log - INFO - πŸ” Verified successfully updated 11 rows via #tbl_35683f96af - __SPLIT__ 2026-04-13 16:38:37,814 - [24308] - src.utils.log - INFO - πŸŽ‰ Successfully updated NextGenerationDate using temp table #tbl_35683f96af - __SPLIT__ 2026-04-13 16:38:37,814 - [24308] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 24308 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-13 16:38:37,843 - [24308] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-13 16:38:37,843 - [24308] - src.utils.log - INFO - Sequential deletion from temp tables begin - __SPLIT__ 2026-04-13 16:38:37,843 - [24308] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId in (643288, 643289, 643290, 643291, 643292, 643293, 643294, 643295, 643296, 643297, 643298) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-13 16:38:37,882 - [24308] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-13 16:38:37,882 - [24308] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId in (643288, 643289, 643290, 643291, 643292, 643293, 643294, 643295, 643296, 643297, 643298) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-13 16:38:37,916 - [24308] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-13 16:38:37,917 - [24308] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId in (643288, 643289, 643290, 643291, 643292, 643293, 643294, 643295, 643296, 643297, 643298) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-13 16:38:37,946 - [24308] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-13 16:38:37,946 - [24308] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId in (643288, 643289, 643290, 643291, 643292, 643293, 643294, 643295, 643296, 643297, 643298) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-13 16:38:38,035 - [24308] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-13 16:38:38,036 - [24308] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId in (643288, 643289, 643290, 643291, 643292, 643293, 643294, 643295, 643296, 643297, 643298) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-13 16:38:38,089 - [24308] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-13 16:38:38,089 - [24308] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (643288, 643289, 643290, 643291, 643292, 643293, 643294, 643295, 643296, 643297, 643298) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-13 16:38:38,120 - [24308] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-13 16:38:38,120 - [24308] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId in (643288, 643289, 643290, 643291, 643292, 643293, 643294, 643295, 643296, 643297, 643298) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-13 16:38:38,149 - [24308] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-13 16:38:38,149 - [24308] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (643288, 643289, 643290, 643291, 643292, 643293, 643294, 643295, 643296, 643297, 643298) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-13 16:38:38,248 - [24308] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-13 16:38:38,248 - [24308] - src.utils.log - INFO - Work order published ids: (643288, 643289, 643290, 643291, 643292, 643293, 643294, 643295, 643296, 643297, 643298) - __SPLIT__ 2026-04-13 16:38:38,248 - [24308] - src.utils.log - INFO - Time took to perform operation in publishing [24308]: 6.68 - __SPLIT__ 2026-04-13 16:38:38,248 - [24308] - src.utils.log - INFO - Publish Completed for GenerateWorkOrderHistoryId: [24308] - __SPLIT__ 2026-04-13 16:38:38,248 - [24308] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-04-13 12:38:38.248' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 24308;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-13 16:38:38,278 - [24308] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-04-17 10:25:17,674 - 56218 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=56218 - __SPLIT__ 2026-04-17 10:25:17,675 - 56218 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 56218 - __SPLIT__ 2026-04-17 10:25:17,690 - 56218 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-04-17 10:25:17,690 - 56218 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:25:18,162 - 56218 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-17 10:25:18,162 - 56218 - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-04-17 10:25:18,162 - 56218 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 56218;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:25:18,189 - 56218 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-04-17 10:25:18,190 - 56218 - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.RecurringServicePrice, gw.StartDate, gw.EndDate, gw.CreatedBy AS NewCreatedBy, gw.RouteIds, ss.* FROM ServiceCore.GenerateWorkOrderHistory gw JOIN ServiceCore.ServiceSetup ss ON gw.CompanyId = ss.CompanyId AND ( (ss.NextGenerationDate <= gw.EndDate AND ss.NextGenerationDate >= gw.StartDate) OR ss.NextGenerationDate IS NULL) AND (gw.AccountNumber IS NULL OR ss.AccountNumber = gw.AccountNumber) AND (gw.ServiceSetupId IS NULL OR ss.ServiceSetupId = gw.ServiceSetupId)AND (gw.RouteIds IS NULL OR ss.RouteMasterId IN (SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 56218), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 56218), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 56218 AND ss.FrequencyScheduleId IS NOT NULL AND ss.IsActive = 1 AND ss.IsDeleted = 0 AND ss.Status <> 'Canceled';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:25:18,256 - 56218 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-17 10:25:18,256 - 56218 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 56218;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:25:18,283 - 56218 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-17 10:25:18,287 - 56218 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-04-17 10:25:18,288 - 56218 - src.utils.log - INFO - πŸ” Fetching data: SELECT fsd.IntervalDays, fs.CreatedDate ,f.FrequencyId , fs.FrequencyScheduleId, f.[SysName], f.FrequencyValue, f.YearlyOccurrence , fs.ScheduleFormat,fsd.Days, fsd.Weeks, fsd.Months,fsc.[Month] as sch_months, fsd.StartMonth , fsd.DateDay,fsd.DateMonth FROM [ServiceCore].[FrequencyMaster] f inner join [ServiceCore].[FrequencySchedule] fs on fs.FrequencyId = f.FrequencyId left join ServiceCore.FrequencyScheduleCycle fsc on fsc.FrequencyScheduleId = fs.FrequencyScheduleId left join [ServiceCore].[FrequencyScheduleDetail] fsd on fsd.FrequencyScheduleId = fs.FrequencyScheduleId WHERE fsd.FrequencyScheduleId = 14923... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:25:18,322 - 56218 - src.utils.log - INFO - βœ… Fetched 60 rows - __SPLIT__ 2026-04-17 10:25:18,322 - 56218 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-04-17 10:25:18,325 - 56218 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-04-17 10:25:18,325 - 56218 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 95819;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:25:18,365 - 56218 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-17 10:25:18,365 - 56218 - src.utils.log - INFO - πŸ” Fetching data: select ServiceDate, ServiceSetupId, IsInitial from serviceCore.WorkOrder wo inner join ServiceCore.WorkOrderStatus wos on wo.WoStatusId = wos.WoStatusId where ServiceDate >= '2026-04-17 00:00:00' and ServiceDate <= '2026-05-31 00:00:00' and ServiceSetupId = 95819 and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:25:18,400 - 56218 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-17 10:25:18,482 - 56218 - src.utils.log - INFO - Generating work orders for setup: 95819 - __SPLIT__ 2026-04-17 10:25:18,756 - 56218 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 11459;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:25:18,783 - 56218 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-17 10:25:18,790 - 56218 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 11459;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:25:18,815 - 56218 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-17 10:25:18,854 - 56218 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-04-17 10:25:18,859 - 56218 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=146 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:25:18,885 - 56218 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-17 10:25:18,888 - 56218 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-04-17 10:25:18,888 - 56218 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-04-17 10:25:18,888 - 56218 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 95819 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:25:19,001 - 56218 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-17 10:25:19,001 - 56218 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 95819 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:25:19,048 - 56218 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-17 10:25:19,048 - 56218 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 95819 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:25:19,094 - 56218 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-17 10:25:19,094 - 56218 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 95819 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:25:19,140 - 56218 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-17 10:25:19,140 - 56218 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 95819 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:25:19,184 - 56218 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-17 10:25:19,185 - 56218 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 95819 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:25:19,231 - 56218 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-17 10:25:19,231 - 56218 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 95819 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:25:19,264 - 56218 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-17 10:25:19,264 - 56218 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 95819 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:25:19,337 - 56218 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-17 10:25:19,337 - 56218 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-17 10:25:19,337 - 56218 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 43 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:25:19,425 - 56218 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 43) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-04-17 10:25:20,064 - 56218 - src.utils.log - INFO - βœ… All 43 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-04-17 10:25:20,065 - 56218 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 43 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-04-17 15:40:13.228' and ServiceSetupId = 95819... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:25:20,108 - 56218 - src.utils.log - INFO - βœ… Fetched 43 rows - __SPLIT__ 2026-04-17 10:25:20,109 - 56218 - src.utils.log - INFO - Id's of work order inserted to DB: [507810 507811 507812 507813 507814 507815 507816 507817 507818 507819 507820 507821 507822 507823 507824 507825 507826 507827 507828 507829 507830 507831 507832 507833 507834 507835 507836 507837 507838 507839 507840 507841 507842 507843 507844 507845 507846 507847 507848 507849 507850 507851 507852] - __SPLIT__ 2026-04-17 10:25:20,109 - 56218 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 95819;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:25:20,136 - 56218 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-17 10:25:20,136 - 56218 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-04-17 10:25:20,137 - 56218 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId = 95819... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:25:20,164 - 56218 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-17 10:25:20,164 - 56218 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId = 95819... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:25:20,189 - 56218 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-17 10:25:20,193 - 56218 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId = 95819... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:25:20,236 - 56218 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-17 10:25:20,237 - 56218 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId = 95819... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:25:20,262 - 56218 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-17 10:25:20,263 - 56218 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId = 95819... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:25:20,289 - 56218 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-17 10:25:20,290 - 56218 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId = 95819;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:25:20,319 - 56218 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-17 10:25:20,320 - 56218 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId = 95819;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:25:20,347 - 56218 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-17 10:25:20,347 - 56218 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId = 95819;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:25:20,994 - 56218 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-17 10:25:20,994 - 56218 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId = 95819;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:25:21,024 - 56218 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-17 10:25:21,032 - 56218 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-04-17 10:25:21,032 - 56218 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-04-17 10:25:21,032 - 56218 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-04-17 10:25:21,032 - 56218 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.CommunicationPreferencesServiceReportNotification: - __SPLIT__ 2026-04-17 10:25:21,032 - 56218 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-04-17 10:25:21,032 - 56218 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SetupAutoGenerationSourceMapping: - __SPLIT__ 2026-04-17 10:25:21,032 - 56218 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-04-17 10:25:21,033 - 56218 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationAppliedDiscount: - __SPLIT__ 2026-04-17 10:25:21,033 - 56218 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-04-17 10:25:21,033 - 56218 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-17 10:25:21,033 - 56218 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (507810, 507811, 507812, 507813, 507814, 507815, 507816, 507817, 507818, 507819, 507820, 507821, 507822, 507823, 507824, 507825, 507826, 507827, 507828, 507829, 507830, 507831, 507832, 507833, 507834, 507835, 507836, 507837, 507838, 507839, 507840, 507841, 507842, 507843, 507844, 507845, 507846, 507847, 507848, 507849, 507850, 507851, 507852) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:25:21,059 - 56218 - src.utils.log - INFO - βœ… Fetched 43 rows - __SPLIT__ 2026-04-17 10:25:21,059 - 56218 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.SubWorkOrderAutoGeneration: 43 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:25:21,111 - 56218 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 43) into ServiceCore.SubWorkOrderAutoGeneration - __SPLIT__ 2026-04-17 10:25:21,396 - 56218 - src.utils.log - INFO - βœ… All 43 rows inserted successfully into ServiceCore.SubWorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-04-17 10:25:21,397 - 56218 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-04-17 10:25:21,397 - 56218 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: - __SPLIT__ 2026-04-17 10:25:21,397 - 56218 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-04-17 10:25:21,397 - 56218 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: - __SPLIT__ 2026-04-17 10:25:21,397 - 56218 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-04-17 10:25:21,397 - 56218 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCrews: - __SPLIT__ 2026-04-17 10:25:21,397 - 56218 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-04-17 10:25:21,397 - 56218 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationServices: - __SPLIT__ 2026-04-17 10:25:21,397 - 56218 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-04-17 10:25:21,397 - 56218 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-17 10:25:21,397 - 56218 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 43 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:25:21,445 - 56218 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 43) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-04-17 10:25:21,578 - 56218 - src.utils.log - INFO - βœ… All 43 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-04-17 10:25:21,578 - 56218 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-04-17 10:25:21,578 - 56218 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 56218;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:25:21,602 - 56218 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-04-17 10:25:21,602 - 56218 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-04-17 10:25:21,603 - 56218 - src.utils.log - INFO - Time took to perform operation: 3.93 - __SPLIT__ 2026-04-17 10:25:21,603 - 56218 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 56218;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:25:21,626 - 56218 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-04-17 10:25:21,626 - 56218 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET WorkOrderStatusDateTime = '2026-04-17 06:25:21.626' WHERE GenerateWorkOrderHistoryId = 56218;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:25:21,652 - 56218 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-04-17 10:25:44,946 - [56218] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[507810] user_id=44506 company_id=146 project_id=[56218] publish_all=False - __SPLIT__ 2026-04-17 10:25:44,947 - [56218] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[507810] user_id=44506 company_id=146 project_id=[56218] publish_all=False - __SPLIT__ 2026-04-17 10:25:44,948 - [56218] - src.utils.log - INFO - Sequential Work order publish in progress for GenerateWorkOrderHistoryId: [56218] - __SPLIT__ 2026-04-17 10:25:44,963 - [56218] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-04-17 10:25:44,963 - [56218] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:25:45,190 - [56218] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-17 10:25:45,190 - [56218] - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-04-17 10:25:45,190 - [56218] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'InProgress' WHERE CompanyId = 146 AND GenerateWorkOrderHistoryId = 56218;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:25:45,216 - [56218] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-04-17 10:25:45,216 - [56218] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId = 507810... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:25:45,245 - [56218] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-17 10:25:45,245 - [56218] - src.utils.log - INFO - Inside get_work_order_table - __SPLIT__ 2026-04-17 10:25:45,246 - [56218] - src.utils.log - INFO - πŸ” Fetching data: SELECT DISTINCT sss.ServiceSetupId, dm.DepartmentMasterId, bm.BranchMasterId FROM Common.DepartmentMaster dm JOIN Common.DivisionMaster d2 ON dm.DivisionMasterId = d2.DivisionMasterId JOIN Common.BranchMaster bm ON d2.BranchMasterId = bm.BranchMasterId JOIN ServiceCore.ServiceCategoryMaster c ON c.DepartmentId = dm.DepartmentMasterId JOIN ServiceCore.ServiceMaster sm ON c.CategoryId = sm.CategoryId JOIN ServiceCore.ServiceSetupServices sss ON sss.ServiceId = sm.ServiceMasterId WHERE dm.CompanyId = 146 AND d2.CompanyId = bm.CompanyId AND sss.ServiceSetupId = 95819 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:25:45,278 - [56218] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-17 10:25:45,278 - [56218] - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceSetupId, dm.DepartmentMasterId, bm.BranchMasterId FROM Common.DepartmentMaster dm JOIN Common.DivisionMaster d2 ON dm.DivisionMasterId = d2.DivisionMasterId JOIN Common.BranchMaster bm ON d2.BranchMasterId = bm.BranchMasterId JOIN ServiceCore.SoldServiceNonStandard x on dm.DepartmentMasterId = x.DepartmentId JOIN ServiceCore.ServiceSetupServices sss ON sss.NonStdSoldServiceId = x.SoldServiceNonStandardId WHERE dm.CompanyId = 146 AND d2.CompanyId = bm.CompanyId AND sss.ServiceSetupId = 95819 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:25:45,307 - [56218] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-17 10:25:45,308 - [56218] - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceSetupId, dm.DepartmentMasterId, bm.BranchMasterId FROM Common.DepartmentMaster dm Inner JOIN Common.DivisionMaster d2 ON dm.DivisionMasterId = d2.DivisionMasterId Inner JOIN Common.BranchMaster bm ON d2.BranchMasterId = bm.BranchMasterId Inner JOIN [ServiceCore].[ServiceCategoryMaster] scm ON dm.DepartmentMasterId = scm.DepartmentId Inner JOIN ServiceCore.ServiceMaster sm ON scm.CategoryId = sm.CategoryId Inner JOIN ServiceCore.SoldServiceStandard x on x.ServiceId = sm.ServiceMasterId Inner JOIN ServiceCore.ServiceSetupServices sss ON sss.StdSoldServiceId = x.SoldServiceStandardId WHERE dm.CompanyId = 146 AND d2.CompanyId = bm.CompanyId AND sss.ServiceSetupId = 95819 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:25:45,339 - [56218] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-17 10:25:45,343 - [56218] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder,BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 146;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:25:45,368 - [56218] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-17 10:25:45,368 - [56218] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 146 AND EnitityNumberType in ('WorkOrder','Invoice'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:25:45,394 - [56218] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-04-17 10:25:45,394 - [56218] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder, BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 146; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:25:45,420 - [56218] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-17 10:25:45,421 - [56218] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 1 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 146 AND EnitityNumberType = 'WorkOrder'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:25:45,447 - [56218] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-17 10:25:45,447 - [56218] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 1 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 146 AND EnitityNumberType = 'Invoice'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:25:45,473 - [56218] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-17 10:25:45,477 - [56218] - src.utils.log - INFO - πŸ” Fetching data: SELECT ss.ServiceSetupId as SetupId, ss.FrequencyScheduleId as setup_frequency_schedule_id, ss.AccountNumber, ss.CompanyId, ss.BillingLocationId, ss.ServiceLocationId, ss.TaxSysName, ss.TermId, ss.TaxPercent, ss.PoNumber, ss.IsTaxExempt, ss.DisplayServiceAsSeparateLineItem, ss.GenerateInvoice, ss.IsGenerateInvoiceforInitalSetup, ss.IsGenerateInvoiceforInitalSetupBilling, ss.IsBilling, t.NetDueIn, ptm.PaymentType, ssb.* FROM ServiceCore.ServiceSetup ss LEFT JOIN ServiceCore.ServiceSetupBilling ssb ON ss.ServiceSetupId = ssb.ServiceSetupId LEFT JOIN Billing.PaymentTypeMaster ptm ON ptm.PaymentTypeMasterId = ssb.PaymentTypeMasterId left join Billing.Term t on ss.TermId = t.TermId WHERE ss.ServiceSetupId = 95819... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:25:45,506 - [56218] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-17 10:25:45,508 - [56218] - src.utils.log - INFO - πŸ” Fetching data: SELECT x.CompanyId FROM CRM.CompanyMaster x WHERE CompanyKey = 'Fortive';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:25:45,532 - [56218] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-17 10:25:45,533 - [56218] - src.utils.log - INFO - πŸ” Fetching data: SELECT CollectionStatus,IsHold,AccountNo FROM CRM.Account a WHERE a.AccountNo = '2080' and a.CompanyId = 134;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:25:45,558 - [56218] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-17 10:25:45,561 - [56218] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderNo FROM ServiceCore.WorkOrder WHERE WorkOrderNo = '53662' AND CompanyId = 146 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:25:45,588 - [56218] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-17 10:25:45,588 - [56218] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrder (skip triggers): 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:25:45,677 - [56218] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrder (triggers skipped) - __SPLIT__ 2026-04-17 10:25:45,826 - [56218] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrder in 1 batches (triggers skipped) - __SPLIT__ 2026-04-17 10:25:45,838 - [56218] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-04-17 10:25:45,840 - [56218] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.ServiceSetup SET IsInitialWoGenerated = 1 WHERE CompanyId = 146 AND ServiceSetupId = 95819;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:25:45,869 - [56218] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-04-17 10:25:45,870 - [56218] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkorderId, WorkOrderNo FROM ServiceCore.WorkOrder wo WHERE wo.WorkOrderNo = '53662' AND wo.AccountNumber = '2080' AND wo.CompanyId = 146 ... (Thread: ThreadPoolExecutor-0_0) - __SPLIT__ 2026-04-17 10:25:45,898 - [56218] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-17 10:25:45,899 - [56218] - src.utils.log - INFO - Sequential fetching temp table records - __SPLIT__ 2026-04-17 10:25:45,899 - [56218] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationServices woag WHERE woag.WorkOrderAutoGenerationId = 507810... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:25:45,948 - [56218] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-17 10:25:45,948 - [56218] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SubWorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId = 507810... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:25:46,224 - [56218] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-17 10:25:46,224 - [56218] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationCrews woag WHERE woag.WorkOrderAutoGenerationId = 507810... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:25:46,267 - [56218] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-17 10:25:46,267 - [56218] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationSalesPersonCommission woag WHERE woag.WorkOrderAutoGenerationId = 507810... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:25:46,296 - [56218] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-17 10:25:46,296 - [56218] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupAutoGenerationSourceMapping woag WHERE woag.WorkOrderAutoGenerationId = 507810... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:25:46,327 - [56218] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-17 10:25:46,327 - [56218] - src.utils.log - INFO - πŸ” Fetching data: SELECT DiscountType, DiscountCode, DiscountAmount, DiscountDescription, DiscountName, IsActive, CreatedBy, ModifiedBy, CreatedDate, ModifiedDate, DiscountPercent, IsDiscountPercent, AppliedDiscountAmt, ApplyOnPartPrice, ApplyOnLaborPrice, DiscountSetupId, WorkOrderAutoGenerationId from ServiceCore.WorkOrderAutoGenerationAppliedDiscount woag WHERE woag.WorkOrderAutoGenerationId = 507810... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:25:46,362 - [56218] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-17 10:25:46,362 - [56218] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from CRM.LeadNote woag WHERE woag.RefId = 507810 and woag.RefType = 'TempWorkorder';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:25:46,391 - [56218] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-17 10:25:46,391 - [56218] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment woagca WHERE woagca.WorkOrderAutoGenerationId = 507810;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:25:46,416 - [56218] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-17 10:25:46,418 - [56218] - src.utils.log - INFO - Updating temp tables - __SPLIT__ 2026-04-17 10:25:46,434 - [56218] - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyKey FROM Common.CompanyMaster cm WHERE CompanyId = 146;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:25:46,459 - [56218] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-17 10:25:46,459 - [56218] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 146 AND EnitityNumberType in ('SubWorkOrder'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:25:46,485 - [56218] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-17 10:25:46,486 - [56218] - src.utils.log - INFO - πŸ“ Executing: UPDATE Common.GenerateNumberConfig SET NextNumber = '2261' WHERE CompanyId = 146 AND EnitityNumberType in ('SubWorkOrder');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:25:46,512 - [56218] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-04-17 10:25:46,516 - [56218] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-17 10:25:46,516 - [56218] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishHistory: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:25:46,579 - [56218] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderAutoGenerationPublishHistory - __SPLIT__ 2026-04-17 10:25:46,689 - [56218] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishHistory in 1 batches - __SPLIT__ 2026-04-17 10:25:46,689 - [56218] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationPublishHistoryId, WorkOrderNo, ServiceSetupId FROM ServiceCore.WorkOrderAutoGenerationPublishHistory WHERE ServiceSetupId = 95819 AND WorkOrderNo = '3986741' AND GenerateWorkOrderHistoryId = 56218; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:25:46,811 - [56218] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-17 10:25:46,816 - [56218] - src.utils.log - INFO - Sequential Insertion in work order tables begin - __SPLIT__ 2026-04-17 10:25:46,816 - [56218] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-17 10:25:46,816 - [56218] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderServices: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:25:46,864 - [56218] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderServices - __SPLIT__ 2026-04-17 10:25:46,963 - [56218] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderServices in 1 batches - __SPLIT__ 2026-04-17 10:25:46,963 - [56218] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderAppliedDiscount: - __SPLIT__ 2026-04-17 10:25:46,963 - [56218] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderSalesPersonCommission: - __SPLIT__ 2026-04-17 10:25:46,963 - [56218] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderCommissionAdjustment: - __SPLIT__ 2026-04-17 10:25:46,963 - [56218] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderCrew: - __SPLIT__ 2026-04-17 10:25:46,963 - [56218] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkorderSourceMapping: - __SPLIT__ 2026-04-17 10:25:46,963 - [56218] - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-04-17 10:25:46,963 - [56218] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-17 10:25:46,963 - [56218] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishServices: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:25:47,010 - [56218] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderAutoGenerationPublishServices - __SPLIT__ 2026-04-17 10:25:47,110 - [56218] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishServices in 1 batches - __SPLIT__ 2026-04-17 10:25:47,110 - [56218] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-17 10:25:47,111 - [56218] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.SubWorkOrder: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:25:47,167 - [56218] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.SubWorkOrder - __SPLIT__ 2026-04-17 10:25:47,306 - [56218] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.SubWorkOrder in 1 batches - __SPLIT__ 2026-04-17 10:25:47,306 - [56218] - src.utils.log - INFO - πŸ” Fetching data: Select * From ServiceCore.SubWorkOrder where WorkOrderId = 1286033... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:25:47,342 - [56218] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-17 10:25:47,349 - [56218] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-17 10:25:47,349 - [56218] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.subWorkOrderIssue: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:25:47,393 - [56218] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceAuto.subWorkOrderIssue - __SPLIT__ 2026-04-17 10:25:47,486 - [56218] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceAuto.subWorkOrderIssue in 1 batches - __SPLIT__ 2026-04-17 10:25:47,487 - [56218] - src.utils.log - INFO - πŸ” Fetching data: Select SubWorkOrderIssueId, SubWorkOrderId, ModifiedBy From ServiceAuto.subWorkOrderIssue where SubWorkOrderId = 247350 and ModifiedBy = 999999999 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:25:47,516 - [56218] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-17 10:25:47,516 - [56218] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceAuto.subWorkOrderIssue SET ModifiedBy = 'fortive' WHERE ModifiedBy = '999999999'; ... (Thread: ThreadPoolExecutor-1_0) - __SPLIT__ 2026-04-17 10:25:47,574 - [56218] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-04-17 10:25:47,581 - [56218] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-17 10:25:47,581 - [56218] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.subWOIssueRepair: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:25:47,630 - [56218] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceAuto.subWOIssueRepair - __SPLIT__ 2026-04-17 10:25:47,717 - [56218] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceAuto.subWOIssueRepair in 1 batches - __SPLIT__ 2026-04-17 10:25:47,717 - [56218] - src.utils.log - INFO - πŸ” Fetching data: Select IssueRepairId, ModifiedBy From ServiceAuto.subWOIssueRepair where SubWorkOrderIssueId = 214896... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:25:47,744 - [56218] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-17 10:25:47,745 - [56218] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceAuto.subWOIssueRepair SET ModifiedBy = 'fortive' WHERE ModifiedBy = '0___TMP___214896' AND CreatedDate = '2026-04-17 06:25:47.346'; ... (Thread: ThreadPoolExecutor-2_0) - __SPLIT__ 2026-04-17 10:25:47,789 - [56218] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-04-17 10:25:47,795 - [56218] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-17 10:25:47,795 - [56218] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.SubWOIssueRepairLabor: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:25:47,840 - [56218] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceAuto.SubWOIssueRepairLabor - __SPLIT__ 2026-04-17 10:25:47,940 - [56218] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceAuto.SubWOIssueRepairLabor in 1 batches - __SPLIT__ 2026-04-17 10:25:47,946 - [56218] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-17 10:25:47,946 - [56218] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.SubWOIssueRepairPart: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:25:47,996 - [56218] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceAuto.SubWOIssueRepairPart - __SPLIT__ 2026-04-17 10:25:48,099 - [56218] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceAuto.SubWOIssueRepairPart in 1 batches - __SPLIT__ 2026-04-17 10:25:48,100 - [56218] - src.utils.log - INFO - πŸ” Fetching data: SELECT ss.ServiceSetupId as SetupId, ss.FrequencyScheduleId as setup_frequency_schedule_id, ss.AccountNumber, ss.CompanyId, ss.BillingLocationId, ss.ServiceLocationId, ss.TaxSysName, ss.TermId, ss.TaxPercent, ss.PoNumber, ss.IsTaxExempt, ss.DisplayServiceAsSeparateLineItem, ss.GenerateInvoice, ss.IsGenerateInvoiceforInitalSetup, ss.IsGenerateInvoiceforInitalSetupBilling, ss.IsBilling, t.NetDueIn, ptm.PaymentType, ssb.* FROM ServiceCore.ServiceSetup ss LEFT JOIN ServiceCore.ServiceSetupBilling ssb ON ss.ServiceSetupId = ssb.ServiceSetupId LEFT JOIN Billing.PaymentTypeMaster ptm ON ptm.PaymentTypeMasterId = ssb.PaymentTypeMasterId left join Billing.Term t on ss.TermId = t.TermId WHERE ss.ServiceSetupId = 95819... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:25:48,124 - [56218] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-17 10:25:48,129 - [56218] - src.utils.log - INFO - Size of Transaction: 1 - __SPLIT__ 2026-04-17 10:25:48,130 - [56218] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:25:48,189 - [56218] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-04-17 10:25:48,290 - [56218] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-04-17 10:25:48,302 - [56218] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-04-17 10:25:48,302 - [56218] - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionId, ModifiedBy, TransactionDate as InvoiceDate from Billing.[Transaction] t WHERE t.ModifiedBy = 12345678910 and t.CompanyId = 146 AND t.TransactionType ='Invoice' AND t.CreatedDate = '2026-04-17 06:25:48.126';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:25:48,394 - [56218] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-17 10:25:48,397 - [56218] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 95819;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:25:48,424 - [56218] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-17 10:25:48,432 - [56218] - src.utils.log - INFO - πŸ“ Executing: UPDATE Billing.[Transaction] SET ModifiedBy = NULL WHERE ModifiedBy = 12345678910 AND CreatedDate = '2026-04-17 06:25:48.126'; ... (Thread: ThreadPoolExecutor-3_0) - __SPLIT__ 2026-04-17 10:25:48,513 - [56218] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-04-17 10:25:48,516 - [56218] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-17 10:25:48,517 - [56218] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:25:48,566 - [56218] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into Billing.Invoice - __SPLIT__ 2026-04-17 10:25:48,664 - [56218] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-04-17 10:25:48,664 - [56218] - src.utils.log - INFO - πŸ” Fetching data: SELECT InvoiceId, WorkOrderNo FROM Billing.Invoice i WHERE i.WorkOrderNo = '53662'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:25:48,725 - [56218] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-04-17 10:25:48,734 - [56218] - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceSetupId, sss.NonStdSoldServiceId as SoldServiceNonStandardId, sss.Qty as Quantity, sss.Price as Rate, sss.IsTaxable, sm.Name as NonStandardServiceName, sm.Description , sm.ServiceMasterId as ServiceId FROM ServiceCore.ServiceSetupServices sss join ServiceCore.ServiceMaster sm on sm.ServiceMasterId = sss.ServiceId where ServiceSetupId = 95819 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:25:48,762 - [56218] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-17 10:25:48,762 - [56218] - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceSetupId, sss.NonStdSoldServiceId as SoldServiceNonStandardId, sss.Qty as Quantity, sss.Price as Rate, sss.IsTaxable, sm.Name as NonStandardServiceName, sm.Description , sm.ServiceMasterId as ServiceId FROM ServiceCore.ServiceSetupInitialServices sss join ServiceCore.ServiceMaster sm on sm.ServiceMasterId = sss.ServiceId where ServiceSetupId = 95819 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:25:48,791 - [56218] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-17 10:25:48,791 - [56218] - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceSetupId, sss.NonStdSoldServiceId as SoldServiceNonStandardId, sss.Qty as Quantity, sss.Price as Rate, sss.IsTaxable, sm.servicename as NonStandardServiceName, sm.Description , sss.ServiceId FROM ServiceCore.ServiceSetupServices sss join ServiceCore.SoldServiceNonStandard sm on sm.SoldServiceNonStandardId = sss.NonStdSoldServiceId where ServiceSetupId = 95819 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:25:48,817 - [56218] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-17 10:25:48,818 - [56218] - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceSetupId, sss.NonStdSoldServiceId as SoldServiceNonStandardId, sss.Qty as Quantity, sss.Price as Rate, sss.IsTaxable, sm.servicename as NonStandardServiceName, sm.Description , sss.ServiceId FROM ServiceCore.ServiceSetupInitialServices sss join ServiceCore.SoldServiceNonStandard sm on sm.SoldServiceNonStandardId = sss.NonStdSoldServiceId where ServiceSetupId = 95819 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:25:48,845 - [56218] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-17 10:25:48,858 - [56218] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId, AppliedDiscountAmt as AppliedDiscountAmount,IsActive ,ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 95819;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:25:48,883 - [56218] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-17 10:25:48,885 - [56218] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId,IsActive,DiscountAmount, IsDiscountPercent,DiscountPercent,DiscountDescription , ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 95819;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:25:48,910 - [56218] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-17 10:25:48,910 - [56218] - src.utils.log - INFO - Sequential Insertion in invoice tables begin - __SPLIT__ 2026-04-17 10:25:48,910 - [56218] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.AccountDiscountSetup: - __SPLIT__ 2026-04-17 10:25:48,911 - [56218] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.InvoiceCharges: - __SPLIT__ 2026-04-17 10:25:48,911 - [56218] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.DiscountApplied: - __SPLIT__ 2026-04-17 10:25:48,911 - [56218] - src.utils.log - INFO - Invoice Publish Done - __SPLIT__ 2026-04-17 10:25:48,911 - [56218] - src.utils.log - INFO - Updating Next GenerationDate - __SPLIT__ 2026-04-17 10:25:48,911 - [56218] - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, MAX(NextWorkOrderGenerationDate) AS MaxNextWorkOrderGeneration FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 56218 GROUP BY ServiceSetupId; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:25:48,938 - [56218] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-17 10:25:48,943 - [56218] - src.utils.log - INFO - πŸ”„ Updating next gen date sequentially: inside update_next_workorder_generation - __SPLIT__ 2026-04-17 10:25:48,957 - [56218] - src.utils.log - INFO - πŸ›  Creating temp table #tbl_bcce651e45 - __SPLIT__ 2026-04-17 10:25:48,984 - [56218] - src.utils.log - INFO - πŸ“Œ Bulk inserting 1 rows into #tbl_bcce651e45 - __SPLIT__ 2026-04-17 10:25:49,008 - [56218] - src.utils.log - INFO - πŸ” Running MERGE update to apply changes - __SPLIT__ 2026-04-17 10:25:49,027 - [56218] - src.utils.log - INFO - βœ” SQL reported affected rows: 1 - __SPLIT__ 2026-04-17 10:25:49,044 - [56218] - src.utils.log - INFO - πŸ” Verified successfully updated 1 rows via #tbl_bcce651e45 - __SPLIT__ 2026-04-17 10:25:49,045 - [56218] - src.utils.log - INFO - πŸŽ‰ Successfully updated NextGenerationDate using temp table #tbl_bcce651e45 - __SPLIT__ 2026-04-17 10:25:49,045 - [56218] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 56218 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:25:49,071 - [56218] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-17 10:25:49,071 - [56218] - src.utils.log - INFO - Sequential deletion from temp tables begin - __SPLIT__ 2026-04-17 10:25:49,071 - [56218] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId = 507810 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:25:49,127 - [56218] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-17 10:25:49,127 - [56218] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId = 507810 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:25:49,173 - [56218] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-17 10:25:49,173 - [56218] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId = 507810 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:25:49,200 - [56218] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-17 10:25:49,200 - [56218] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId = 507810 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:25:49,232 - [56218] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-17 10:25:49,232 - [56218] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId = 507810 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:25:49,263 - [56218] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-17 10:25:49,264 - [56218] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 507810 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:25:49,320 - [56218] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-17 10:25:49,320 - [56218] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId = 507810 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:25:49,346 - [56218] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-17 10:25:49,346 - [56218] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 507810 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:25:49,406 - [56218] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-17 10:25:49,407 - [56218] - src.utils.log - INFO - Work order published ids: (507810,) - __SPLIT__ 2026-04-17 10:25:49,407 - [56218] - src.utils.log - INFO - Time took to perform operation in publishing [56218]: 4.46 - __SPLIT__ 2026-04-17 10:25:49,407 - [56218] - src.utils.log - INFO - Publish Completed for GenerateWorkOrderHistoryId: [56218] - __SPLIT__ 2026-04-17 10:25:49,407 - [56218] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-04-17 06:25:49.407' WHERE CompanyId = 146 AND GenerateWorkOrderHistoryId = 56218;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:25:49,433 - [56218] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-04-17 10:26:34,580 - [56218] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[] user_id=44506 company_id=146 project_id=[56218] publish_all=True - __SPLIT__ 2026-04-17 10:26:34,581 - [56218] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[] user_id=44506 company_id=146 project_id=[56218] publish_all=True - __SPLIT__ 2026-04-17 10:26:34,582 - [56218] - src.utils.log - INFO - Sequential Work order publish in progress for GenerateWorkOrderHistoryId: [56218] - __SPLIT__ 2026-04-17 10:26:34,597 - [56218] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-04-17 10:26:34,597 - [56218] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:26:34,856 - [56218] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-17 10:26:34,856 - [56218] - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-04-17 10:26:34,856 - [56218] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'InProgress' WHERE CompanyId = 146 AND GenerateWorkOrderHistoryId = 56218;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:26:34,886 - [56218] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-04-17 10:26:34,886 - [56218] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGeneration woag WHERE woag.GenerateWorkOrderHistoryId = 56218... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:26:34,938 - [56218] - src.utils.log - INFO - βœ… Fetched 42 rows - __SPLIT__ 2026-04-17 10:26:34,938 - [56218] - src.utils.log - INFO - Inside get_work_order_table - __SPLIT__ 2026-04-17 10:26:34,939 - [56218] - src.utils.log - INFO - πŸ” Fetching data: SELECT DISTINCT sss.ServiceSetupId, dm.DepartmentMasterId, bm.BranchMasterId FROM Common.DepartmentMaster dm JOIN Common.DivisionMaster d2 ON dm.DivisionMasterId = d2.DivisionMasterId JOIN Common.BranchMaster bm ON d2.BranchMasterId = bm.BranchMasterId JOIN ServiceCore.ServiceCategoryMaster c ON c.DepartmentId = dm.DepartmentMasterId JOIN ServiceCore.ServiceMaster sm ON c.CategoryId = sm.CategoryId JOIN ServiceCore.ServiceSetupServices sss ON sss.ServiceId = sm.ServiceMasterId WHERE dm.CompanyId = 146 AND d2.CompanyId = bm.CompanyId AND sss.ServiceSetupId = 95819 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:26:34,966 - [56218] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-17 10:26:34,966 - [56218] - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceSetupId, dm.DepartmentMasterId, bm.BranchMasterId FROM Common.DepartmentMaster dm JOIN Common.DivisionMaster d2 ON dm.DivisionMasterId = d2.DivisionMasterId JOIN Common.BranchMaster bm ON d2.BranchMasterId = bm.BranchMasterId JOIN ServiceCore.SoldServiceNonStandard x on dm.DepartmentMasterId = x.DepartmentId JOIN ServiceCore.ServiceSetupServices sss ON sss.NonStdSoldServiceId = x.SoldServiceNonStandardId WHERE dm.CompanyId = 146 AND d2.CompanyId = bm.CompanyId AND sss.ServiceSetupId = 95819 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:26:34,995 - [56218] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-17 10:26:34,995 - [56218] - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceSetupId, dm.DepartmentMasterId, bm.BranchMasterId FROM Common.DepartmentMaster dm Inner JOIN Common.DivisionMaster d2 ON dm.DivisionMasterId = d2.DivisionMasterId Inner JOIN Common.BranchMaster bm ON d2.BranchMasterId = bm.BranchMasterId Inner JOIN [ServiceCore].[ServiceCategoryMaster] scm ON dm.DepartmentMasterId = scm.DepartmentId Inner JOIN ServiceCore.ServiceMaster sm ON scm.CategoryId = sm.CategoryId Inner JOIN ServiceCore.SoldServiceStandard x on x.ServiceId = sm.ServiceMasterId Inner JOIN ServiceCore.ServiceSetupServices sss ON sss.StdSoldServiceId = x.SoldServiceStandardId WHERE dm.CompanyId = 146 AND d2.CompanyId = bm.CompanyId AND sss.ServiceSetupId = 95819 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:26:35,023 - [56218] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-17 10:26:35,027 - [56218] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder,BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 146;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:26:35,055 - [56218] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-17 10:26:35,055 - [56218] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 146 AND EnitityNumberType in ('WorkOrder','Invoice'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:26:35,083 - [56218] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-04-17 10:26:35,083 - [56218] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder, BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 146; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:26:35,110 - [56218] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-17 10:26:35,111 - [56218] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 42 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 146 AND EnitityNumberType = 'WorkOrder'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:26:35,141 - [56218] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-17 10:26:35,142 - [56218] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 42 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 146 AND EnitityNumberType = 'Invoice'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:26:35,173 - [56218] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-17 10:26:35,177 - [56218] - src.utils.log - INFO - πŸ” Fetching data: SELECT ss.ServiceSetupId as SetupId, ss.FrequencyScheduleId as setup_frequency_schedule_id, ss.AccountNumber, ss.CompanyId, ss.BillingLocationId, ss.ServiceLocationId, ss.TaxSysName, ss.TermId, ss.TaxPercent, ss.PoNumber, ss.IsTaxExempt, ss.DisplayServiceAsSeparateLineItem, ss.GenerateInvoice, ss.IsGenerateInvoiceforInitalSetup, ss.IsGenerateInvoiceforInitalSetupBilling, ss.IsBilling, t.NetDueIn, ptm.PaymentType, ssb.* FROM ServiceCore.ServiceSetup ss LEFT JOIN ServiceCore.ServiceSetupBilling ssb ON ss.ServiceSetupId = ssb.ServiceSetupId LEFT JOIN Billing.PaymentTypeMaster ptm ON ptm.PaymentTypeMasterId = ssb.PaymentTypeMasterId left join Billing.Term t on ss.TermId = t.TermId WHERE ss.ServiceSetupId = 95819... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:26:35,205 - [56218] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-17 10:26:35,219 - [56218] - src.utils.log - INFO - πŸ” Fetching data: SELECT x.CompanyId FROM CRM.CompanyMaster x WHERE CompanyKey = 'Fortive';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:26:35,247 - [56218] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-17 10:26:35,247 - [56218] - src.utils.log - INFO - πŸ” Fetching data: SELECT CollectionStatus,IsHold,AccountNo FROM CRM.Account a WHERE a.AccountNo = '2080' and a.CompanyId = 134;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:26:35,275 - [56218] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-17 10:26:35,277 - [56218] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderNo FROM ServiceCore.WorkOrder WHERE WorkOrderNo IN ('53663', '53664', '53665', '53666', '53667', '53668', '53669', '53670', '53671', '53672', '53673', '53674', '53675', '53676', '53677', '53678', '53679', '53680', '53681', '53682', '53683', '53684', '53685', '53686', '53687', '53688', '53689', '53690', '53691', '53692', '53693', '53694', '53695', '53696', '53697', '53698', '53699', '53700', '53701', '53702', '53703', '53704') AND CompanyId = 146 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:26:35,314 - [56218] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-17 10:26:35,314 - [56218] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrder (skip triggers): 42 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:26:35,385 - [56218] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 42) into ServiceCore.WorkOrder (triggers skipped) - __SPLIT__ 2026-04-17 10:26:35,952 - [56218] - src.utils.log - INFO - βœ… All 42 rows inserted successfully into ServiceCore.WorkOrder in 1 batches (triggers skipped) - __SPLIT__ 2026-04-17 10:26:35,966 - [56218] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-04-17 10:26:35,968 - [56218] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkorderId, WorkOrderNo FROM ServiceCore.WorkOrder wo WHERE wo.WorkOrderNo IN ('53663', '53664', '53665', '53666', '53667', '53668', '53669', '53670', '53671', '53672', '53673', '53674', '53675', '53676', '53677', '53678', '53679', '53680', '53681', '53682', '53683', '53684', '53685', '53686', '53687', '53688', '53689', '53690', '53691', '53692', '53693', '53694', '53695', '53696', '53697', '53698', '53699', '53700', '53701', '53702', '53703', '53704') AND wo.AccountNumber = '2080' AND wo.CompanyId = 146 ... (Thread: ThreadPoolExecutor-0_0) - __SPLIT__ 2026-04-17 10:26:36,009 - [56218] - src.utils.log - INFO - βœ… Fetched 42 rows - __SPLIT__ 2026-04-17 10:26:36,010 - [56218] - src.utils.log - INFO - Sequential fetching temp table records - __SPLIT__ 2026-04-17 10:26:36,010 - [56218] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationServices woag WHERE woag.WorkOrderAutoGenerationId in (507811, 507812, 507813, 507814, 507815, 507816, 507817, 507818, 507819, 507820, 507821, 507822, 507823, 507824, 507825, 507826, 507827, 507828, 507829, 507830, 507831, 507832, 507833, 507834, 507835, 507836, 507837, 507838, 507839, 507840, 507841, 507842, 507843, 507844, 507845, 507846, 507847, 507848, 507849, 507850, 507851, 507852)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:26:36,073 - [56218] - src.utils.log - INFO - βœ… Fetched 42 rows - __SPLIT__ 2026-04-17 10:26:36,073 - [56218] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SubWorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (507811, 507812, 507813, 507814, 507815, 507816, 507817, 507818, 507819, 507820, 507821, 507822, 507823, 507824, 507825, 507826, 507827, 507828, 507829, 507830, 507831, 507832, 507833, 507834, 507835, 507836, 507837, 507838, 507839, 507840, 507841, 507842, 507843, 507844, 507845, 507846, 507847, 507848, 507849, 507850, 507851, 507852)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:26:36,146 - [56218] - src.utils.log - INFO - βœ… Fetched 42 rows - __SPLIT__ 2026-04-17 10:26:36,146 - [56218] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationCrews woag WHERE woag.WorkOrderAutoGenerationId in (507811, 507812, 507813, 507814, 507815, 507816, 507817, 507818, 507819, 507820, 507821, 507822, 507823, 507824, 507825, 507826, 507827, 507828, 507829, 507830, 507831, 507832, 507833, 507834, 507835, 507836, 507837, 507838, 507839, 507840, 507841, 507842, 507843, 507844, 507845, 507846, 507847, 507848, 507849, 507850, 507851, 507852)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:26:36,196 - [56218] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-17 10:26:36,197 - [56218] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationSalesPersonCommission woag WHERE woag.WorkOrderAutoGenerationId in (507811, 507812, 507813, 507814, 507815, 507816, 507817, 507818, 507819, 507820, 507821, 507822, 507823, 507824, 507825, 507826, 507827, 507828, 507829, 507830, 507831, 507832, 507833, 507834, 507835, 507836, 507837, 507838, 507839, 507840, 507841, 507842, 507843, 507844, 507845, 507846, 507847, 507848, 507849, 507850, 507851, 507852)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:26:36,229 - [56218] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-17 10:26:36,229 - [56218] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupAutoGenerationSourceMapping woag WHERE woag.WorkOrderAutoGenerationId in (507811, 507812, 507813, 507814, 507815, 507816, 507817, 507818, 507819, 507820, 507821, 507822, 507823, 507824, 507825, 507826, 507827, 507828, 507829, 507830, 507831, 507832, 507833, 507834, 507835, 507836, 507837, 507838, 507839, 507840, 507841, 507842, 507843, 507844, 507845, 507846, 507847, 507848, 507849, 507850, 507851, 507852)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:26:36,267 - [56218] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-17 10:26:36,268 - [56218] - src.utils.log - INFO - πŸ” Fetching data: SELECT DiscountType, DiscountCode, DiscountAmount, DiscountDescription, DiscountName, IsActive, CreatedBy, ModifiedBy, CreatedDate, ModifiedDate, DiscountPercent, IsDiscountPercent, AppliedDiscountAmt, ApplyOnPartPrice, ApplyOnLaborPrice, DiscountSetupId, WorkOrderAutoGenerationId from ServiceCore.WorkOrderAutoGenerationAppliedDiscount woag WHERE woag.WorkOrderAutoGenerationId in (507811, 507812, 507813, 507814, 507815, 507816, 507817, 507818, 507819, 507820, 507821, 507822, 507823, 507824, 507825, 507826, 507827, 507828, 507829, 507830, 507831, 507832, 507833, 507834, 507835, 507836, 507837, 507838, 507839, 507840, 507841, 507842, 507843, 507844, 507845, 507846, 507847, 507848, 507849, 507850, 507851, 507852)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:26:36,306 - [56218] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-17 10:26:36,306 - [56218] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from CRM.LeadNote woag WHERE woag.RefId in (507811, 507812, 507813, 507814, 507815, 507816, 507817, 507818, 507819, 507820, 507821, 507822, 507823, 507824, 507825, 507826, 507827, 507828, 507829, 507830, 507831, 507832, 507833, 507834, 507835, 507836, 507837, 507838, 507839, 507840, 507841, 507842, 507843, 507844, 507845, 507846, 507847, 507848, 507849, 507850, 507851, 507852) and woag.RefType = 'TempWorkorder';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:26:36,340 - [56218] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-17 10:26:36,341 - [56218] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment woagca WHERE woagca.WorkOrderAutoGenerationId in (507811, 507812, 507813, 507814, 507815, 507816, 507817, 507818, 507819, 507820, 507821, 507822, 507823, 507824, 507825, 507826, 507827, 507828, 507829, 507830, 507831, 507832, 507833, 507834, 507835, 507836, 507837, 507838, 507839, 507840, 507841, 507842, 507843, 507844, 507845, 507846, 507847, 507848, 507849, 507850, 507851, 507852);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:26:36,371 - [56218] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-17 10:26:36,374 - [56218] - src.utils.log - INFO - Updating temp tables - __SPLIT__ 2026-04-17 10:26:36,390 - [56218] - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyKey FROM Common.CompanyMaster cm WHERE CompanyId = 146;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:26:36,418 - [56218] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-17 10:26:36,418 - [56218] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 146 AND EnitityNumberType in ('SubWorkOrder'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:26:36,447 - [56218] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-17 10:26:36,448 - [56218] - src.utils.log - INFO - πŸ“ Executing: UPDATE Common.GenerateNumberConfig SET NextNumber = '2303' WHERE CompanyId = 146 AND EnitityNumberType in ('SubWorkOrder');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:26:36,477 - [56218] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-04-17 10:26:36,481 - [56218] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-17 10:26:36,481 - [56218] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishHistory: 42 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:26:36,530 - [56218] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 42) into ServiceCore.WorkOrderAutoGenerationPublishHistory - __SPLIT__ 2026-04-17 10:26:36,880 - [56218] - src.utils.log - INFO - βœ… All 42 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishHistory in 1 batches - __SPLIT__ 2026-04-17 10:26:36,881 - [56218] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationPublishHistoryId, WorkOrderNo, ServiceSetupId FROM ServiceCore.WorkOrderAutoGenerationPublishHistory WHERE ServiceSetupId = 95819 AND WorkOrderNo IN ('8340343', '6382552', '1162779', '5725706', '2363353', '6370857', '6711781', '9583779', '4204675', '9674717', '4677367', '2140584', '7843512', '7163322', '4780718', '7710206', '5902598', '3922466', '1861070', '9964996', '7186368', '9466224', '3972627', '8249872', '7715362', '5833757', '3726906', '1049137', '3372787', '1260208', '6953426', '2229021', '3044147', '3124203', '1464434', '8765871', '5123989', '7490934', '4152683', '4222117', '6625632', '7893113') AND GenerateWorkOrderHistoryId = 56218;... (Thread: ThreadPoolExecutor-1_0) - __SPLIT__ 2026-04-17 10:26:36,940 - [56218] - src.utils.log - INFO - βœ… Fetched 42 rows - __SPLIT__ 2026-04-17 10:26:36,941 - [56218] - src.utils.log - INFO - 🏁 Final merged rows: 42 - __SPLIT__ 2026-04-17 10:26:36,946 - [56218] - src.utils.log - INFO - Sequential Insertion in work order tables begin - __SPLIT__ 2026-04-17 10:26:36,946 - [56218] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-17 10:26:36,946 - [56218] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderServices: 42 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:26:36,981 - [56218] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 42) into ServiceCore.WorkOrderServices - __SPLIT__ 2026-04-17 10:26:37,124 - [56218] - src.utils.log - INFO - βœ… All 42 rows inserted successfully into ServiceCore.WorkOrderServices in 1 batches - __SPLIT__ 2026-04-17 10:26:37,124 - [56218] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderAppliedDiscount: - __SPLIT__ 2026-04-17 10:26:37,124 - [56218] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderSalesPersonCommission: - __SPLIT__ 2026-04-17 10:26:37,124 - [56218] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderCommissionAdjustment: - __SPLIT__ 2026-04-17 10:26:37,124 - [56218] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderCrew: - __SPLIT__ 2026-04-17 10:26:37,125 - [56218] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkorderSourceMapping: - __SPLIT__ 2026-04-17 10:26:37,125 - [56218] - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-04-17 10:26:37,125 - [56218] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-17 10:26:37,125 - [56218] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishServices: 42 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:26:37,158 - [56218] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 42) into ServiceCore.WorkOrderAutoGenerationPublishServices - __SPLIT__ 2026-04-17 10:26:37,327 - [56218] - src.utils.log - INFO - βœ… All 42 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishServices in 1 batches - __SPLIT__ 2026-04-17 10:26:37,327 - [56218] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-17 10:26:37,327 - [56218] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.SubWorkOrder: 42 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:26:37,369 - [56218] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 42) into ServiceCore.SubWorkOrder - __SPLIT__ 2026-04-17 10:26:37,705 - [56218] - src.utils.log - INFO - βœ… All 42 rows inserted successfully into ServiceCore.SubWorkOrder in 1 batches - __SPLIT__ 2026-04-17 10:26:37,706 - [56218] - src.utils.log - INFO - πŸ” Fetching data: Select * From ServiceCore.SubWorkOrder where WorkOrderId in (1286034, 1286035, 1286036, 1286037, 1286038, 1286039, 1286040, 1286041, 1286042, 1286043, 1286044, 1286045, 1286046, 1286047, 1286048, 1286049, 1286050, 1286051, 1286052, 1286053, 1286054, 1286055, 1286056, 1286057, 1286058, 1286059, 1286060, 1286061, 1286062, 1286063, 1286064, 1286065, 1286066, 1286067, 1286068, 1286069, 1286070, 1286071, 1286072, 1286073, 1286074, 1286075)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:26:37,782 - [56218] - src.utils.log - INFO - βœ… Fetched 42 rows - __SPLIT__ 2026-04-17 10:26:37,794 - [56218] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-17 10:26:37,794 - [56218] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.subWorkOrderIssue: 42 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:26:37,825 - [56218] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 42) into ServiceAuto.subWorkOrderIssue - __SPLIT__ 2026-04-17 10:26:37,949 - [56218] - src.utils.log - INFO - βœ… All 42 rows inserted successfully into ServiceAuto.subWorkOrderIssue in 1 batches - __SPLIT__ 2026-04-17 10:26:37,950 - [56218] - src.utils.log - INFO - πŸ” Fetching data: Select SubWorkOrderIssueId, SubWorkOrderId, ModifiedBy From ServiceAuto.subWorkOrderIssue where SubWorkOrderId in (247392, 247391, 247390, 247389, 247387, 247388, 247386, 247385, 247383, 247382, 247381, 247384, 247379, 247380, 247378, 247377, 247375, 247374, 247373, 247372, 247371, 247370, 247369, 247376, 247367, 247366, 247365, 247368, 247363, 247364, 247362, 247361, 247359, 247358, 247357, 247356, 247355, 247354, 247353, 247360, 247351, 247352) and ModifiedBy in ('999999999', '1000000000', '1000000001', '1000000002', '1000000003', '1000000004', '1000000005', '1000000006', '1000000007', '1000000008', '1000000009', '1000000010', '1000000011', '1000000012', '1000000013', '1000000014', '1000000015', '1000000016', '1000000017', '1000000018', '1000000019', '1000000020', '1000000021', '1000000022', '1000000023', '1000000024', '1000000025', '1000000026', '1000000027', '1000000028', '1000000029', '1000000030', '1000000031', '1000000032', '1000000033', '1000000034', '1000000035', '1000000036', '1000000037', '1000000038', '1000000039', '1000000040')... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:26:37,985 - [56218] - src.utils.log - INFO - βœ… Fetched 42 rows - __SPLIT__ 2026-04-17 10:26:37,985 - [56218] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceAuto.subWorkOrderIssue SET ModifiedBy = 'fortive' WHERE ModifiedBy IN ('999999999', '1000000000', '1000000001', '1000000002', '1000000003', '1000000004', '1000000005', '1000000006', '1000000007', '1000000008', '1000000009', '1000000010', '1000000011', '1000000012', '1000000013', '1000000014', '1000000015', '1000000016', '1000000017', '1000000018', '1000000019', '1000000020', '1000000021', '1000000022', '1000000023', '1000000024', '1000000025', '1000000026', '1000000027', '1000000028', '1000000029', '1000000030', '1000000031', '1000000032', '1000000033', '1000000034', '1000000035', '1000000036', '1000000037', '1000000038', '1000000039', '1000000040'); ... (Thread: ThreadPoolExecutor-2_0) - __SPLIT__ 2026-04-17 10:26:38,066 - [56218] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-04-17 10:26:38,072 - [56218] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-17 10:26:38,072 - [56218] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.subWOIssueRepair: 42 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:26:38,107 - [56218] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 42) into ServiceAuto.subWOIssueRepair - __SPLIT__ 2026-04-17 10:26:38,243 - [56218] - src.utils.log - INFO - βœ… All 42 rows inserted successfully into ServiceAuto.subWOIssueRepair in 1 batches - __SPLIT__ 2026-04-17 10:26:38,243 - [56218] - src.utils.log - INFO - πŸ” Fetching data: Select IssueRepairId, ModifiedBy From ServiceAuto.subWOIssueRepair where SubWorkOrderIssueId in (214897, 214898, 214899, 214900, 214901, 214902, 214903, 214904, 214905, 214906, 214907, 214908, 214909, 214910, 214911, 214912, 214913, 214914, 214915, 214916, 214917, 214918, 214919, 214920, 214921, 214922, 214923, 214924, 214925, 214926, 214927, 214928, 214929, 214930, 214931, 214932, 214933, 214934, 214935, 214936, 214937, 214938)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:26:38,274 - [56218] - src.utils.log - INFO - βœ… Fetched 42 rows - __SPLIT__ 2026-04-17 10:26:38,275 - [56218] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceAuto.subWOIssueRepair SET ModifiedBy = 'fortive' WHERE ModifiedBy IN ('0___TMP___214897', '0___TMP___214898', '0___TMP___214899', '0___TMP___214900', '0___TMP___214901', '0___TMP___214902', '0___TMP___214903', '0___TMP___214904', '0___TMP___214905', '0___TMP___214906', '0___TMP___214907', '0___TMP___214908', '0___TMP___214909', '0___TMP___214910', '0___TMP___214911', '0___TMP___214912', '0___TMP___214913', '0___TMP___214914', '0___TMP___214915', '0___TMP___214916', '0___TMP___214917', '0___TMP___214918', '0___TMP___214919', '0___TMP___214920', '0___TMP___214921', '0___TMP___214922', '0___TMP___214923', '0___TMP___214924', '0___TMP___214925', '0___TMP___214926', '0___TMP___214927', '0___TMP___214928', '0___TMP___214929', '0___TMP___214930', '0___TMP___214931', '0___TMP___214932', '0___TMP___214933', '0___TMP___214934', '0___TMP___214935', '0___TMP___214936', '0___TMP___214937', '0___TMP___214938') AND CreatedDate = '2026-04-17 06:26:37.792'; ... (Thread: ThreadPoolExecutor-3_0) - __SPLIT__ 2026-04-17 10:26:38,316 - [56218] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-04-17 10:26:38,322 - [56218] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-17 10:26:38,322 - [56218] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.SubWOIssueRepairLabor: 84 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:26:38,354 - [56218] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 84) into ServiceAuto.SubWOIssueRepairLabor - __SPLIT__ 2026-04-17 10:26:38,527 - [56218] - src.utils.log - INFO - βœ… All 84 rows inserted successfully into ServiceAuto.SubWOIssueRepairLabor in 1 batches - __SPLIT__ 2026-04-17 10:26:38,534 - [56218] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-17 10:26:38,535 - [56218] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.SubWOIssueRepairPart: 42 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:26:38,573 - [56218] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 42) into ServiceAuto.SubWOIssueRepairPart - __SPLIT__ 2026-04-17 10:26:38,765 - [56218] - src.utils.log - INFO - βœ… All 42 rows inserted successfully into ServiceAuto.SubWOIssueRepairPart in 1 batches - __SPLIT__ 2026-04-17 10:26:38,766 - [56218] - src.utils.log - INFO - πŸ” Fetching data: SELECT ss.ServiceSetupId as SetupId, ss.FrequencyScheduleId as setup_frequency_schedule_id, ss.AccountNumber, ss.CompanyId, ss.BillingLocationId, ss.ServiceLocationId, ss.TaxSysName, ss.TermId, ss.TaxPercent, ss.PoNumber, ss.IsTaxExempt, ss.DisplayServiceAsSeparateLineItem, ss.GenerateInvoice, ss.IsGenerateInvoiceforInitalSetup, ss.IsGenerateInvoiceforInitalSetupBilling, ss.IsBilling, t.NetDueIn, ptm.PaymentType, ssb.* FROM ServiceCore.ServiceSetup ss LEFT JOIN ServiceCore.ServiceSetupBilling ssb ON ss.ServiceSetupId = ssb.ServiceSetupId LEFT JOIN Billing.PaymentTypeMaster ptm ON ptm.PaymentTypeMasterId = ssb.PaymentTypeMasterId left join Billing.Term t on ss.TermId = t.TermId WHERE ss.ServiceSetupId = 95819... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:26:38,796 - [56218] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-17 10:26:38,801 - [56218] - src.utils.log - INFO - Size of Transaction: 42 - __SPLIT__ 2026-04-17 10:26:38,803 - [56218] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 42 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:26:38,849 - [56218] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 42) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-04-17 10:26:38,990 - [56218] - src.utils.log - INFO - βœ… All 42 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-04-17 10:26:39,004 - [56218] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-04-17 10:26:39,004 - [56218] - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionId, ModifiedBy, TransactionDate as InvoiceDate from Billing.[Transaction] t WHERE t.ModifiedBy in (12345678910, 12345678911, 12345678912, 12345678913, 12345678914, 12345678915, 12345678916, 12345678917, 12345678918, 12345678919, 12345678920, 12345678921, 12345678922, 12345678923, 12345678924, 12345678925, 12345678926, 12345678927, 12345678928, 12345678929, 12345678930, 12345678931, 12345678932, 12345678933, 12345678934, 12345678935, 12345678936, 12345678937, 12345678938, 12345678939, 12345678940, 12345678941, 12345678942, 12345678943, 12345678944, 12345678945, 12345678946, 12345678947, 12345678948, 12345678949, 12345678950, 12345678951) and t.CompanyId = 146 AND t.TransactionType ='Invoice' AND t.CreatedDate = '2026-04-17 06:26:38.797';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:26:39,096 - [56218] - src.utils.log - INFO - βœ… Fetched 42 rows - __SPLIT__ 2026-04-17 10:26:39,098 - [56218] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 95819;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:26:39,128 - [56218] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-17 10:26:39,137 - [56218] - src.utils.log - INFO - πŸ“ Executing: UPDATE Billing.[Transaction] SET ModifiedBy = NULL WHERE ModifiedBy IN (12345678910,12345678911,12345678912,12345678913,12345678914,12345678915,12345678916,12345678917,12345678918,12345678919,12345678920,12345678921,12345678922,12345678923,12345678924,12345678925,12345678926,12345678927,12345678928,12345678929,12345678930,12345678931,12345678932,12345678933,12345678934,12345678935,12345678936,12345678937,12345678938,12345678939,12345678940,12345678941,12345678942,12345678943,12345678944,12345678945,12345678946,12345678947,12345678948,12345678949,12345678950,12345678951) AND CreatedDate = '2026-04-17 06:26:38.797'; ... (Thread: ThreadPoolExecutor-4_0) - __SPLIT__ 2026-04-17 10:26:39,213 - [56218] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-04-17 10:26:39,218 - [56218] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-17 10:26:39,218 - [56218] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 42 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:26:39,256 - [56218] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 42) into Billing.Invoice - __SPLIT__ 2026-04-17 10:26:39,453 - [56218] - src.utils.log - INFO - βœ… All 42 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-04-17 10:26:39,454 - [56218] - src.utils.log - INFO - πŸ” Fetching data: SELECT InvoiceId, WorkOrderNo FROM Billing.Invoice i WHERE i.WorkOrderNo in ('53704', '53703', '53702', '53701', '53699', '53700', '53698', '53697', '53695', '53694', '53693', '53696', '53691', '53692', '53690', '53689', '53687', '53686', '53685', '53684', '53683', '53682', '53681', '53688', '53679', '53678', '53677', '53680', '53675', '53676', '53674', '53673', '53671', '53670', '53669', '53668', '53667', '53666', '53665', '53672', '53663', '53664')... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:26:39,715 - [56218] - src.utils.log - INFO - βœ… Fetched 83 rows - __SPLIT__ 2026-04-17 10:26:39,724 - [56218] - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceSetupId, sss.NonStdSoldServiceId as SoldServiceNonStandardId, sss.Qty as Quantity, sss.Price as Rate, sss.IsTaxable, sm.Name as NonStandardServiceName, sm.Description , sm.ServiceMasterId as ServiceId FROM ServiceCore.ServiceSetupServices sss join ServiceCore.ServiceMaster sm on sm.ServiceMasterId = sss.ServiceId where ServiceSetupId = 95819 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:26:39,752 - [56218] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-17 10:26:39,752 - [56218] - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceSetupId, sss.NonStdSoldServiceId as SoldServiceNonStandardId, sss.Qty as Quantity, sss.Price as Rate, sss.IsTaxable, sm.Name as NonStandardServiceName, sm.Description , sm.ServiceMasterId as ServiceId FROM ServiceCore.ServiceSetupInitialServices sss join ServiceCore.ServiceMaster sm on sm.ServiceMasterId = sss.ServiceId where ServiceSetupId = 95819 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:26:39,780 - [56218] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-17 10:26:39,780 - [56218] - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceSetupId, sss.NonStdSoldServiceId as SoldServiceNonStandardId, sss.Qty as Quantity, sss.Price as Rate, sss.IsTaxable, sm.servicename as NonStandardServiceName, sm.Description , sss.ServiceId FROM ServiceCore.ServiceSetupServices sss join ServiceCore.SoldServiceNonStandard sm on sm.SoldServiceNonStandardId = sss.NonStdSoldServiceId where ServiceSetupId = 95819 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:26:39,809 - [56218] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-17 10:26:39,809 - [56218] - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceSetupId, sss.NonStdSoldServiceId as SoldServiceNonStandardId, sss.Qty as Quantity, sss.Price as Rate, sss.IsTaxable, sm.servicename as NonStandardServiceName, sm.Description , sss.ServiceId FROM ServiceCore.ServiceSetupInitialServices sss join ServiceCore.SoldServiceNonStandard sm on sm.SoldServiceNonStandardId = sss.NonStdSoldServiceId where ServiceSetupId = 95819 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:26:39,837 - [56218] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-17 10:26:39,848 - [56218] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 95819;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:26:39,879 - [56218] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-17 10:26:39,884 - [56218] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId, AppliedDiscountAmt as AppliedDiscountAmount,IsActive ,ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 95819;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:26:39,912 - [56218] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-17 10:26:39,915 - [56218] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId,IsActive,DiscountAmount, IsDiscountPercent,DiscountPercent,DiscountDescription , ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 95819;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:26:39,942 - [56218] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-17 10:26:39,943 - [56218] - src.utils.log - INFO - Sequential Insertion in invoice tables begin - __SPLIT__ 2026-04-17 10:26:39,943 - [56218] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.AccountDiscountSetup: - __SPLIT__ 2026-04-17 10:26:39,943 - [56218] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-17 10:26:39,943 - [56218] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceCharges: 83 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:26:39,993 - [56218] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 83) into Billing.InvoiceCharges - __SPLIT__ 2026-04-17 10:26:40,262 - [56218] - src.utils.log - INFO - βœ… All 83 rows inserted successfully into Billing.InvoiceCharges in 1 batches - __SPLIT__ 2026-04-17 10:26:40,263 - [56218] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.DiscountApplied: - __SPLIT__ 2026-04-17 10:26:40,263 - [56218] - src.utils.log - INFO - Invoice Publish Done - __SPLIT__ 2026-04-17 10:26:40,263 - [56218] - src.utils.log - INFO - Updating Next GenerationDate - __SPLIT__ 2026-04-17 10:26:40,263 - [56218] - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, MAX(NextWorkOrderGenerationDate) AS MaxNextWorkOrderGeneration FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 56218 GROUP BY ServiceSetupId; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:26:40,293 - [56218] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-17 10:26:40,298 - [56218] - src.utils.log - INFO - πŸ”„ Updating next gen date sequentially: inside update_next_workorder_generation - __SPLIT__ 2026-04-17 10:26:40,312 - [56218] - src.utils.log - INFO - πŸ›  Creating temp table #tbl_f8e4b29fc5 - __SPLIT__ 2026-04-17 10:26:40,343 - [56218] - src.utils.log - INFO - πŸ“Œ Bulk inserting 1 rows into #tbl_f8e4b29fc5 - __SPLIT__ 2026-04-17 10:26:40,370 - [56218] - src.utils.log - INFO - πŸ” Running MERGE update to apply changes - __SPLIT__ 2026-04-17 10:26:40,389 - [56218] - src.utils.log - INFO - βœ” SQL reported affected rows: 1 - __SPLIT__ 2026-04-17 10:26:40,407 - [56218] - src.utils.log - INFO - πŸ” Verified successfully updated 1 rows via #tbl_f8e4b29fc5 - __SPLIT__ 2026-04-17 10:26:40,407 - [56218] - src.utils.log - INFO - πŸŽ‰ Successfully updated NextGenerationDate using temp table #tbl_f8e4b29fc5 - __SPLIT__ 2026-04-17 10:26:40,407 - [56218] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 56218 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:26:40,434 - [56218] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-17 10:26:40,435 - [56218] - src.utils.log - INFO - Sequential deletion from temp tables begin - __SPLIT__ 2026-04-17 10:26:40,435 - [56218] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId in (507811, 507812, 507813, 507814, 507815, 507816, 507817, 507818, 507819, 507820, 507821, 507822, 507823, 507824, 507825, 507826, 507827, 507828, 507829, 507830, 507831, 507832, 507833, 507834, 507835, 507836, 507837, 507838, 507839, 507840, 507841, 507842, 507843, 507844, 507845, 507846, 507847, 507848, 507849, 507850, 507851, 507852) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:26:40,518 - [56218] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-17 10:26:40,519 - [56218] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId in (507811, 507812, 507813, 507814, 507815, 507816, 507817, 507818, 507819, 507820, 507821, 507822, 507823, 507824, 507825, 507826, 507827, 507828, 507829, 507830, 507831, 507832, 507833, 507834, 507835, 507836, 507837, 507838, 507839, 507840, 507841, 507842, 507843, 507844, 507845, 507846, 507847, 507848, 507849, 507850, 507851, 507852) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:26:40,585 - [56218] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-17 10:26:40,585 - [56218] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId in (507811, 507812, 507813, 507814, 507815, 507816, 507817, 507818, 507819, 507820, 507821, 507822, 507823, 507824, 507825, 507826, 507827, 507828, 507829, 507830, 507831, 507832, 507833, 507834, 507835, 507836, 507837, 507838, 507839, 507840, 507841, 507842, 507843, 507844, 507845, 507846, 507847, 507848, 507849, 507850, 507851, 507852) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:26:40,618 - [56218] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-17 10:26:40,618 - [56218] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId in (507811, 507812, 507813, 507814, 507815, 507816, 507817, 507818, 507819, 507820, 507821, 507822, 507823, 507824, 507825, 507826, 507827, 507828, 507829, 507830, 507831, 507832, 507833, 507834, 507835, 507836, 507837, 507838, 507839, 507840, 507841, 507842, 507843, 507844, 507845, 507846, 507847, 507848, 507849, 507850, 507851, 507852) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:26:40,660 - [56218] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-17 10:26:40,660 - [56218] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId in (507811, 507812, 507813, 507814, 507815, 507816, 507817, 507818, 507819, 507820, 507821, 507822, 507823, 507824, 507825, 507826, 507827, 507828, 507829, 507830, 507831, 507832, 507833, 507834, 507835, 507836, 507837, 507838, 507839, 507840, 507841, 507842, 507843, 507844, 507845, 507846, 507847, 507848, 507849, 507850, 507851, 507852) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:26:40,702 - [56218] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-17 10:26:40,703 - [56218] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (507811, 507812, 507813, 507814, 507815, 507816, 507817, 507818, 507819, 507820, 507821, 507822, 507823, 507824, 507825, 507826, 507827, 507828, 507829, 507830, 507831, 507832, 507833, 507834, 507835, 507836, 507837, 507838, 507839, 507840, 507841, 507842, 507843, 507844, 507845, 507846, 507847, 507848, 507849, 507850, 507851, 507852) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:26:40,772 - [56218] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-17 10:26:40,772 - [56218] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId in (507811, 507812, 507813, 507814, 507815, 507816, 507817, 507818, 507819, 507820, 507821, 507822, 507823, 507824, 507825, 507826, 507827, 507828, 507829, 507830, 507831, 507832, 507833, 507834, 507835, 507836, 507837, 507838, 507839, 507840, 507841, 507842, 507843, 507844, 507845, 507846, 507847, 507848, 507849, 507850, 507851, 507852) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:26:40,802 - [56218] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-17 10:26:40,802 - [56218] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (507811, 507812, 507813, 507814, 507815, 507816, 507817, 507818, 507819, 507820, 507821, 507822, 507823, 507824, 507825, 507826, 507827, 507828, 507829, 507830, 507831, 507832, 507833, 507834, 507835, 507836, 507837, 507838, 507839, 507840, 507841, 507842, 507843, 507844, 507845, 507846, 507847, 507848, 507849, 507850, 507851, 507852) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:26:41,135 - [56218] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-17 10:26:41,135 - [56218] - src.utils.log - INFO - Work order published ids: (507811, 507812, 507813, 507814, 507815, 507816, 507817, 507818, 507819, 507820, 507821, 507822, 507823, 507824, 507825, 507826, 507827, 507828, 507829, 507830, 507831, 507832, 507833, 507834, 507835, 507836, 507837, 507838, 507839, 507840, 507841, 507842, 507843, 507844, 507845, 507846, 507847, 507848, 507849, 507850, 507851, 507852) - __SPLIT__ 2026-04-17 10:26:41,135 - [56218] - src.utils.log - INFO - Time took to perform operation in publishing [56218]: 6.55 - __SPLIT__ 2026-04-17 10:26:41,135 - [56218] - src.utils.log - INFO - Publish Completed for GenerateWorkOrderHistoryId: [56218] - __SPLIT__ 2026-04-17 10:26:41,135 - [56218] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-04-17 06:26:41.135' WHERE CompanyId = 146 AND GenerateWorkOrderHistoryId = 56218;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:26:41,163 - [56218] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-04-17 10:28:45,383 - 56219 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=56219 - __SPLIT__ 2026-04-17 10:28:45,384 - 56219 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 56219 - __SPLIT__ 2026-04-17 10:28:45,385 - 56219 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-04-17 10:28:45,385 - 56219 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:28:45,582 - 56219 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-17 10:28:45,582 - 56219 - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-04-17 10:28:45,582 - 56219 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 56219;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:28:45,611 - 56219 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-04-17 10:28:45,611 - 56219 - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.RecurringServicePrice, gw.StartDate, gw.EndDate, gw.CreatedBy AS NewCreatedBy, gw.RouteIds, ss.* FROM ServiceCore.GenerateWorkOrderHistory gw JOIN ServiceCore.ServiceSetup ss ON gw.CompanyId = ss.CompanyId AND ( (ss.NextGenerationDate <= gw.EndDate AND ss.NextGenerationDate >= gw.StartDate) OR ss.NextGenerationDate IS NULL) AND (gw.AccountNumber IS NULL OR ss.AccountNumber = gw.AccountNumber) AND (gw.ServiceSetupId IS NULL OR ss.ServiceSetupId = gw.ServiceSetupId)AND (gw.RouteIds IS NULL OR ss.RouteMasterId IN (SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 56219), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 56219), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 56219 AND ss.FrequencyScheduleId IS NOT NULL AND ss.IsActive = 1 AND ss.IsDeleted = 0 AND ss.Status <> 'Canceled';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:28:45,679 - 56219 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-17 10:28:45,679 - 56219 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 56219;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:28:45,709 - 56219 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-17 10:28:45,712 - 56219 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-04-17 10:28:45,712 - 56219 - src.utils.log - INFO - πŸ” Fetching data: SELECT fsd.IntervalDays, fs.CreatedDate ,f.FrequencyId , fs.FrequencyScheduleId, f.[SysName], f.FrequencyValue, f.YearlyOccurrence , fs.ScheduleFormat,fsd.Days, fsd.Weeks, fsd.Months,fsc.[Month] as sch_months, fsd.StartMonth , fsd.DateDay,fsd.DateMonth FROM [ServiceCore].[FrequencyMaster] f inner join [ServiceCore].[FrequencySchedule] fs on fs.FrequencyId = f.FrequencyId left join ServiceCore.FrequencyScheduleCycle fsc on fsc.FrequencyScheduleId = fs.FrequencyScheduleId left join [ServiceCore].[FrequencyScheduleDetail] fsd on fsd.FrequencyScheduleId = fs.FrequencyScheduleId WHERE fsd.FrequencyScheduleId = 14923... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:28:45,747 - 56219 - src.utils.log - INFO - βœ… Fetched 60 rows - __SPLIT__ 2026-04-17 10:28:45,747 - 56219 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-04-17 10:28:45,750 - 56219 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-04-17 10:28:45,750 - 56219 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 95819;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:28:45,781 - 56219 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-17 10:28:45,781 - 56219 - src.utils.log - INFO - πŸ” Fetching data: select ServiceDate, ServiceSetupId, IsInitial from serviceCore.WorkOrder wo inner join ServiceCore.WorkOrderStatus wos on wo.WoStatusId = wos.WoStatusId where ServiceDate >= '2026-04-17 00:00:00' and ServiceDate <= '2026-12-31 00:00:00' and ServiceSetupId = 95819 and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:28:45,821 - 56219 - src.utils.log - INFO - βœ… Fetched 43 rows - __SPLIT__ 2026-04-17 10:28:45,909 - 56219 - src.utils.log - INFO - Generating work orders for setup: 95819 - __SPLIT__ 2026-04-17 10:28:48,822 - 56219 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 11459;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:28:48,852 - 56219 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-17 10:28:48,859 - 56219 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 11459;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:28:48,887 - 56219 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-17 10:28:48,953 - 56219 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-04-17 10:28:48,963 - 56219 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=146 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:28:48,991 - 56219 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-17 10:28:48,992 - 56219 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-04-17 10:28:48,992 - 56219 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-04-17 10:28:48,993 - 56219 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 95819 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:28:49,037 - 56219 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-17 10:28:49,038 - 56219 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 95819 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:28:49,081 - 56219 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-17 10:28:49,081 - 56219 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 95819 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:28:49,124 - 56219 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-17 10:28:49,124 - 56219 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 95819 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:28:49,167 - 56219 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-17 10:28:49,167 - 56219 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 95819 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:28:49,208 - 56219 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-17 10:28:49,209 - 56219 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 95819 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:28:49,251 - 56219 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-17 10:28:49,251 - 56219 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 95819 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:28:49,281 - 56219 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-17 10:28:49,282 - 56219 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 95819 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:28:49,345 - 56219 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-17 10:28:49,346 - 56219 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-17 10:28:49,346 - 56219 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 207 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:28:49,403 - 56219 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 207) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-04-17 10:28:50,580 - 56219 - src.utils.log - INFO - βœ… All 207 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-04-17 10:28:50,581 - 56219 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 207 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-04-17 15:40:13.228' and ServiceSetupId = 95819... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:28:50,628 - 56219 - src.utils.log - INFO - βœ… Fetched 207 rows - __SPLIT__ 2026-04-17 10:28:50,629 - 56219 - src.utils.log - INFO - Id's of work order inserted to DB: [507853 507854 507855 507856 507857 507858 507859 507860 507861 507862 507863 507864 507865 507866 507867 507868 507869 507870 507871 507872 507873 507874 507875 507876 507877 507878 507879 507880 507881 507882 507883 507884 507885 507886 507887 507888 507889 507890 507891 507892 507893 507894 507895 507896 507897 507898 507899 507900 507901 507902 507903 507904 507905 507906 507907 507908 507909 507910 507911 507912 507913 507914 507915 507916 507917 507918 507919 507920 507921 507922 507923 507924 507925 507926 507927 507928 507929 507930 507931 507932 507933 507934 507935 507936 507937 507938 507939 507940 507941 507942 507943 507944 507945 507946 507947 507948 507949 507950 507951 507952 507953 507954 507955 507956 507957 507958 507959 507960 507961 507962 507963 507964 507965 507966 507967 507968 507969 507970 507971 507972 507973 507974 507975 507976 507977 507978 507979 507980 507981 507982 507983 507984 507985 507986 507987 507988 507989 507990 507991 507992 507993 507994 507995 507996 507997 507998 507999 508000 508001 508002 508003 508004 508005 508006 508007 508008 508009 508010 508011 508012 508013 508014 508015 508016 508017 508018 508019 508020 508021 508022 508023 508024 508025 508026 508027 508028 508029 508030 508031 508032 508033 508034 508035 508036 508037 508038 508039 508040 508041 508042 508043 508044 508045 508046 508047 508048 508049 508050 508051 508052 508053 508054 508055 508056 508057 508058 508059] - __SPLIT__ 2026-04-17 10:28:50,629 - 56219 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 95819;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:28:50,659 - 56219 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-17 10:28:50,660 - 56219 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-04-17 10:28:50,660 - 56219 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId = 95819... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:28:50,688 - 56219 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-17 10:28:50,688 - 56219 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId = 95819... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:28:50,716 - 56219 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-17 10:28:50,720 - 56219 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId = 95819... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:28:50,751 - 56219 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-17 10:28:50,751 - 56219 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId = 95819... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:28:50,779 - 56219 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-17 10:28:50,779 - 56219 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId = 95819... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:28:50,806 - 56219 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-17 10:28:50,807 - 56219 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId = 95819;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:28:50,835 - 56219 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-17 10:28:50,835 - 56219 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId = 95819;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:28:50,863 - 56219 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-17 10:28:50,864 - 56219 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId = 95819;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:28:51,040 - 56219 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-17 10:28:51,040 - 56219 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId = 95819;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:28:51,069 - 56219 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-17 10:28:51,076 - 56219 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-04-17 10:28:51,077 - 56219 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-04-17 10:28:51,077 - 56219 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-04-17 10:28:51,077 - 56219 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.CommunicationPreferencesServiceReportNotification: - __SPLIT__ 2026-04-17 10:28:51,077 - 56219 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-04-17 10:28:51,077 - 56219 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SetupAutoGenerationSourceMapping: - __SPLIT__ 2026-04-17 10:28:51,077 - 56219 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-04-17 10:28:51,077 - 56219 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationAppliedDiscount: - __SPLIT__ 2026-04-17 10:28:51,077 - 56219 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-04-17 10:28:51,077 - 56219 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-17 10:28:51,077 - 56219 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (507904, 507905, 507906, 507907, 507908, 507909, 507910, 507911, 507912, 507913, 507914, 507915, 507916, 507917, 507918, 507919, 507920, 507921, 507922, 507923, 507924, 507925, 507926, 507927, 507928, 507929, 507930, 507931, 507932, 507933, 507934, 507935, 507936, 507937, 507938, 507939, 507940, 507941, 507942, 507943, 507944, 507945, 507946, 507947, 507948, 507949, 507950, 507951, 507952, 507953, 507954, 507955, 507956, 507957, 507958, 507959, 507960, 507961, 507962, 507963, 507964, 507965, 507966, 507967, 507968, 507969, 507970, 507971, 507972, 507973, 507974, 507975, 507976, 507977, 507978, 507979, 507980, 507981, 507982, 507983, 507984, 507985, 507986, 507987, 507988, 507989, 507990, 507991, 507992, 507993, 507994, 507995, 507996, 507997, 507998, 507999, 508000, 508001, 508002, 508003, 508004, 508005, 508006, 508007, 508008, 508009, 508010, 508011, 508012, 508013, 508014, 508015, 508016, 508017, 508018, 508019, 508020, 508021, 508022, 508023, 508024, 508025, 508026, 508027, 508028, 508029, 508030, 508031, 508032, 508033, 508034, 508035, 508036, 508037, 508038, 508039, 508040, 508041, 508042, 508043, 508044, 508045, 508046, 508047, 508048, 508049, 508050, 508051, 508052, 508053, 508054, 508055, 508056, 508057, 508058, 508059, 507853, 507854, 507855, 507856, 507857, 507858, 507859, 507860, 507861, 507862, 507863, 507864, 507865, 507866, 507867, 507868, 507869, 507870, 507871, 507872, 507873, 507874, 507875, 507876, 507877, 507878, 507879, 507880, 507881, 507882, 507883, 507884, 507885, 507886, 507887, 507888, 507889, 507890, 507891, 507892, 507893, 507894, 507895, 507896, 507897, 507898, 507899, 507900, 507901, 507902, 507903) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:28:51,116 - 56219 - src.utils.log - INFO - βœ… Fetched 207 rows - __SPLIT__ 2026-04-17 10:28:51,117 - 56219 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.SubWorkOrderAutoGeneration: 207 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:28:51,157 - 56219 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 207) into ServiceCore.SubWorkOrderAutoGeneration - __SPLIT__ 2026-04-17 10:28:51,929 - 56219 - src.utils.log - INFO - βœ… All 207 rows inserted successfully into ServiceCore.SubWorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-04-17 10:28:51,929 - 56219 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-04-17 10:28:51,930 - 56219 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: - __SPLIT__ 2026-04-17 10:28:51,930 - 56219 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-04-17 10:28:51,930 - 56219 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: - __SPLIT__ 2026-04-17 10:28:51,930 - 56219 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-04-17 10:28:51,930 - 56219 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCrews: - __SPLIT__ 2026-04-17 10:28:51,930 - 56219 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-04-17 10:28:51,930 - 56219 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationServices: - __SPLIT__ 2026-04-17 10:28:51,930 - 56219 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-04-17 10:28:51,930 - 56219 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-17 10:28:51,930 - 56219 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 207 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:28:51,965 - 56219 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 207) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-04-17 10:28:52,410 - 56219 - src.utils.log - INFO - βœ… All 207 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-04-17 10:28:52,410 - 56219 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-04-17 10:28:52,410 - 56219 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 56219;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:28:52,438 - 56219 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-04-17 10:28:52,438 - 56219 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-04-17 10:28:52,438 - 56219 - src.utils.log - INFO - Time took to perform operation: 7.05 - __SPLIT__ 2026-04-17 10:28:52,438 - 56219 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 56219;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:28:52,467 - 56219 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-04-17 10:28:52,467 - 56219 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET WorkOrderStatusDateTime = '2026-04-17 06:28:52.467' WHERE GenerateWorkOrderHistoryId = 56219;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:28:52,495 - 56219 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-04-17 10:29:03,140 - [56219] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[] user_id=44506 company_id=146 project_id=[56219] publish_all=True - __SPLIT__ 2026-04-17 10:29:03,140 - [56219] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[] user_id=44506 company_id=146 project_id=[56219] publish_all=True - __SPLIT__ 2026-04-17 10:29:03,140 - [56219] - src.utils.log - INFO - Sequential Work order publish in progress for GenerateWorkOrderHistoryId: [56219] - __SPLIT__ 2026-04-17 10:29:03,141 - [56219] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-04-17 10:29:03,141 - [56219] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:29:03,340 - [56219] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-17 10:29:03,340 - [56219] - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-04-17 10:29:03,340 - [56219] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'InProgress' WHERE CompanyId = 146 AND GenerateWorkOrderHistoryId = 56219;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:29:03,369 - [56219] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-04-17 10:29:03,369 - [56219] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGeneration woag WHERE woag.GenerateWorkOrderHistoryId = 56219... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:29:03,458 - [56219] - src.utils.log - INFO - βœ… Fetched 207 rows - __SPLIT__ 2026-04-17 10:29:03,459 - [56219] - src.utils.log - INFO - Inside get_work_order_table - __SPLIT__ 2026-04-17 10:29:03,459 - [56219] - src.utils.log - INFO - πŸ” Fetching data: SELECT DISTINCT sss.ServiceSetupId, dm.DepartmentMasterId, bm.BranchMasterId FROM Common.DepartmentMaster dm JOIN Common.DivisionMaster d2 ON dm.DivisionMasterId = d2.DivisionMasterId JOIN Common.BranchMaster bm ON d2.BranchMasterId = bm.BranchMasterId JOIN ServiceCore.ServiceCategoryMaster c ON c.DepartmentId = dm.DepartmentMasterId JOIN ServiceCore.ServiceMaster sm ON c.CategoryId = sm.CategoryId JOIN ServiceCore.ServiceSetupServices sss ON sss.ServiceId = sm.ServiceMasterId WHERE dm.CompanyId = 146 AND d2.CompanyId = bm.CompanyId AND sss.ServiceSetupId = 95819 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:29:03,487 - [56219] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-17 10:29:03,488 - [56219] - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceSetupId, dm.DepartmentMasterId, bm.BranchMasterId FROM Common.DepartmentMaster dm JOIN Common.DivisionMaster d2 ON dm.DivisionMasterId = d2.DivisionMasterId JOIN Common.BranchMaster bm ON d2.BranchMasterId = bm.BranchMasterId JOIN ServiceCore.SoldServiceNonStandard x on dm.DepartmentMasterId = x.DepartmentId JOIN ServiceCore.ServiceSetupServices sss ON sss.NonStdSoldServiceId = x.SoldServiceNonStandardId WHERE dm.CompanyId = 146 AND d2.CompanyId = bm.CompanyId AND sss.ServiceSetupId = 95819 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:29:03,515 - [56219] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-17 10:29:03,516 - [56219] - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceSetupId, dm.DepartmentMasterId, bm.BranchMasterId FROM Common.DepartmentMaster dm Inner JOIN Common.DivisionMaster d2 ON dm.DivisionMasterId = d2.DivisionMasterId Inner JOIN Common.BranchMaster bm ON d2.BranchMasterId = bm.BranchMasterId Inner JOIN [ServiceCore].[ServiceCategoryMaster] scm ON dm.DepartmentMasterId = scm.DepartmentId Inner JOIN ServiceCore.ServiceMaster sm ON scm.CategoryId = sm.CategoryId Inner JOIN ServiceCore.SoldServiceStandard x on x.ServiceId = sm.ServiceMasterId Inner JOIN ServiceCore.ServiceSetupServices sss ON sss.StdSoldServiceId = x.SoldServiceStandardId WHERE dm.CompanyId = 146 AND d2.CompanyId = bm.CompanyId AND sss.ServiceSetupId = 95819 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:29:03,544 - [56219] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-17 10:29:03,548 - [56219] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder,BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 146;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:29:03,576 - [56219] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-17 10:29:03,576 - [56219] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 146 AND EnitityNumberType in ('WorkOrder','Invoice'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:29:03,604 - [56219] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-04-17 10:29:03,604 - [56219] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder, BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 146; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:29:03,632 - [56219] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-17 10:29:03,632 - [56219] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 207 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 146 AND EnitityNumberType = 'WorkOrder'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:29:03,663 - [56219] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-17 10:29:03,663 - [56219] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 207 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 146 AND EnitityNumberType = 'Invoice'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:29:03,694 - [56219] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-17 10:29:03,697 - [56219] - src.utils.log - INFO - πŸ” Fetching data: SELECT ss.ServiceSetupId as SetupId, ss.FrequencyScheduleId as setup_frequency_schedule_id, ss.AccountNumber, ss.CompanyId, ss.BillingLocationId, ss.ServiceLocationId, ss.TaxSysName, ss.TermId, ss.TaxPercent, ss.PoNumber, ss.IsTaxExempt, ss.DisplayServiceAsSeparateLineItem, ss.GenerateInvoice, ss.IsGenerateInvoiceforInitalSetup, ss.IsGenerateInvoiceforInitalSetupBilling, ss.IsBilling, t.NetDueIn, ptm.PaymentType, ssb.* FROM ServiceCore.ServiceSetup ss LEFT JOIN ServiceCore.ServiceSetupBilling ssb ON ss.ServiceSetupId = ssb.ServiceSetupId LEFT JOIN Billing.PaymentTypeMaster ptm ON ptm.PaymentTypeMasterId = ssb.PaymentTypeMasterId left join Billing.Term t on ss.TermId = t.TermId WHERE ss.ServiceSetupId = 95819... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:29:03,726 - [56219] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-17 10:29:03,796 - [56219] - src.utils.log - INFO - πŸ” Fetching data: SELECT x.CompanyId FROM CRM.CompanyMaster x WHERE CompanyKey = 'Fortive';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:29:03,824 - [56219] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-17 10:29:03,825 - [56219] - src.utils.log - INFO - πŸ” Fetching data: SELECT CollectionStatus,IsHold,AccountNo FROM CRM.Account a WHERE a.AccountNo = '2080' and a.CompanyId = 134;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:29:03,853 - [56219] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-17 10:29:03,855 - [56219] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderNo FROM ServiceCore.WorkOrder WHERE WorkOrderNo IN ('53705', '53706', '53707', '53708', '53709', '53710', '53711', '53712', '53713', '53714', '53715', '53716', '53717', '53718', '53719', '53720', '53721', '53722', '53723', '53724', '53725', '53726', '53727', '53728', '53729', '53730', '53731', '53732', '53733', '53734', '53735', '53736', '53737', '53738', '53739', '53740', '53741', '53742', '53743', '53744', '53745', '53746', '53747', '53748', '53749', '53750', '53751', '53752', '53753', '53754', '53755', '53756', '53757', '53758', '53759', '53760', '53761', '53762', '53763', '53764', '53765', '53766', '53767', '53768', '53769', '53770', '53771', '53772', '53773', '53774', '53775', '53776', '53777', '53778', '53779', '53780', '53781', '53782', '53783', '53784', '53785', '53786', '53787', '53788', '53789', '53790', '53791', '53792', '53793', '53794', '53795', '53796', '53797', '53798', '53799', '53800', '53801', '53802', '53803', '53804', '53805', '53806', '53807', '53808', '53809', '53810', '53811', '53812', '53813', '53814', '53815', '53816', '53817', '53818', '53819', '53820', '53821', '53822', '53823', '53824', '53825', '53826', '53827', '53828', '53829', '53830', '53831', '53832', '53833', '53834', '53835', '53836', '53837', '53838', '53839', '53840', '53841', '53842', '53843', '53844', '53845', '53846', '53847', '53848', '53849', '53850', '53851', '53852', '53853', '53854', '53855', '53856', '53857', '53858', '53859', '53860', '53861', '53862', '53863', '53864', '53865', '53866', '53867', '53868', '53869', '53870', '53871', '53872', '53873', '53874', '53875', '53876', '53877', '53878', '53879', '53880', '53881', '53882', '53883', '53884', '53885', '53886', '53887', '53888', '53889', '53890', '53891', '53892', '53893', '53894', '53895', '53896', '53897', '53898', '53899', '53900', '53901', '53902', '53903', '53904', '53905', '53906', '53907', '53908', '53909', '53910', '53911') AND CompanyId = 146 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:29:03,905 - [56219] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-17 10:29:03,905 - [56219] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrder (skip triggers): 207 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:29:03,976 - [56219] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 207) into ServiceCore.WorkOrder (triggers skipped) - __SPLIT__ 2026-04-17 10:29:05,114 - [56219] - src.utils.log - INFO - βœ… All 207 rows inserted successfully into ServiceCore.WorkOrder in 1 batches (triggers skipped) - __SPLIT__ 2026-04-17 10:29:05,129 - [56219] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-04-17 10:29:05,131 - [56219] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkorderId, WorkOrderNo FROM ServiceCore.WorkOrder wo WHERE wo.WorkOrderNo IN ('53705', '53706', '53707', '53708', '53709', '53710', '53711', '53712', '53713', '53714', '53715', '53716', '53717', '53718', '53719', '53720', '53721', '53722', '53723', '53724', '53725', '53726', '53727', '53728', '53729', '53730', '53731', '53732', '53733', '53734', '53735', '53736', '53737', '53738', '53739', '53740', '53741', '53742', '53743', '53744', '53745', '53746', '53747', '53748', '53749', '53750', '53751', '53752', '53753', '53754', '53755', '53756', '53757', '53758', '53759', '53760', '53761', '53762', '53763', '53764', '53765', '53766', '53767', '53768', '53769', '53770', '53771', '53772', '53773', '53774', '53775', '53776', '53777', '53778', '53779', '53780', '53781', '53782', '53783', '53784', '53785', '53786', '53787', '53788', '53789', '53790', '53791', '53792', '53793', '53794', '53795', '53796', '53797', '53798', '53799', '53800', '53801', '53802', '53803', '53804', '53805', '53806', '53807', '53808', '53809', '53810', '53811', '53812', '53813', '53814', '53815', '53816', '53817', '53818', '53819', '53820', '53821', '53822', '53823', '53824', '53825', '53826', '53827', '53828', '53829', '53830', '53831', '53832', '53833', '53834', '53835', '53836', '53837', '53838', '53839', '53840', '53841', '53842', '53843', '53844', '53845', '53846', '53847', '53848', '53849', '53850', '53851', '53852', '53853', '53854', '53855', '53856', '53857', '53858', '53859', '53860', '53861', '53862', '53863', '53864', '53865', '53866', '53867', '53868', '53869', '53870', '53871', '53872', '53873', '53874', '53875', '53876', '53877', '53878', '53879', '53880', '53881', '53882', '53883', '53884', '53885', '53886', '53887', '53888', '53889', '53890', '53891', '53892', '53893', '53894', '53895', '53896', '53897', '53898', '53899', '53900', '53901', '53902', '53903', '53904', '53905', '53906', '53907', '53908', '53909', '53910', '53911') AND wo.AccountNumber = '2080' AND wo.CompanyId = 146 ... (Thread: ThreadPoolExecutor-0_0) - __SPLIT__ 2026-04-17 10:29:05,188 - [56219] - src.utils.log - INFO - βœ… Fetched 207 rows - __SPLIT__ 2026-04-17 10:29:05,189 - [56219] - src.utils.log - INFO - Sequential fetching temp table records - __SPLIT__ 2026-04-17 10:29:05,189 - [56219] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationServices woag WHERE woag.WorkOrderAutoGenerationId in (507853, 507854, 507855, 507856, 507857, 507858, 507859, 507860, 507861, 507862, 507863, 507864, 507865, 507866, 507867, 507868, 507869, 507870, 507871, 507872, 507873, 507874, 507875, 507876, 507877, 507878, 507879, 507880, 507881, 507882, 507883, 507884, 507885, 507886, 507887, 507888, 507889, 507890, 507891, 507892, 507893, 507894, 507895, 507896, 507897, 507898, 507899, 507900, 507901, 507902, 507903, 507904, 507905, 507906, 507907, 507908, 507909, 507910, 507911, 507912, 507913, 507914, 507915, 507916, 507917, 507918, 507919, 507920, 507921, 507922, 507923, 507924, 507925, 507926, 507927, 507928, 507929, 507930, 507931, 507932, 507933, 507934, 507935, 507936, 507937, 507938, 507939, 507940, 507941, 507942, 507943, 507944, 507945, 507946, 507947, 507948, 507949, 507950, 507951, 507952, 507953, 507954, 507955, 507956, 507957, 507958, 507959, 507960, 507961, 507962, 507963, 507964, 507965, 507966, 507967, 507968, 507969, 507970, 507971, 507972, 507973, 507974, 507975, 507976, 507977, 507978, 507979, 507980, 507981, 507982, 507983, 507984, 507985, 507986, 507987, 507988, 507989, 507990, 507991, 507992, 507993, 507994, 507995, 507996, 507997, 507998, 507999, 508000, 508001, 508002, 508003, 508004, 508005, 508006, 508007, 508008, 508009, 508010, 508011, 508012, 508013, 508014, 508015, 508016, 508017, 508018, 508019, 508020, 508021, 508022, 508023, 508024, 508025, 508026, 508027, 508028, 508029, 508030, 508031, 508032, 508033, 508034, 508035, 508036, 508037, 508038, 508039, 508040, 508041, 508042, 508043, 508044, 508045, 508046, 508047, 508048, 508049, 508050, 508051, 508052, 508053, 508054, 508055, 508056, 508057, 508058, 508059)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:29:05,246 - [56219] - src.utils.log - INFO - βœ… Fetched 207 rows - __SPLIT__ 2026-04-17 10:29:05,246 - [56219] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SubWorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (507853, 507854, 507855, 507856, 507857, 507858, 507859, 507860, 507861, 507862, 507863, 507864, 507865, 507866, 507867, 507868, 507869, 507870, 507871, 507872, 507873, 507874, 507875, 507876, 507877, 507878, 507879, 507880, 507881, 507882, 507883, 507884, 507885, 507886, 507887, 507888, 507889, 507890, 507891, 507892, 507893, 507894, 507895, 507896, 507897, 507898, 507899, 507900, 507901, 507902, 507903, 507904, 507905, 507906, 507907, 507908, 507909, 507910, 507911, 507912, 507913, 507914, 507915, 507916, 507917, 507918, 507919, 507920, 507921, 507922, 507923, 507924, 507925, 507926, 507927, 507928, 507929, 507930, 507931, 507932, 507933, 507934, 507935, 507936, 507937, 507938, 507939, 507940, 507941, 507942, 507943, 507944, 507945, 507946, 507947, 507948, 507949, 507950, 507951, 507952, 507953, 507954, 507955, 507956, 507957, 507958, 507959, 507960, 507961, 507962, 507963, 507964, 507965, 507966, 507967, 507968, 507969, 507970, 507971, 507972, 507973, 507974, 507975, 507976, 507977, 507978, 507979, 507980, 507981, 507982, 507983, 507984, 507985, 507986, 507987, 507988, 507989, 507990, 507991, 507992, 507993, 507994, 507995, 507996, 507997, 507998, 507999, 508000, 508001, 508002, 508003, 508004, 508005, 508006, 508007, 508008, 508009, 508010, 508011, 508012, 508013, 508014, 508015, 508016, 508017, 508018, 508019, 508020, 508021, 508022, 508023, 508024, 508025, 508026, 508027, 508028, 508029, 508030, 508031, 508032, 508033, 508034, 508035, 508036, 508037, 508038, 508039, 508040, 508041, 508042, 508043, 508044, 508045, 508046, 508047, 508048, 508049, 508050, 508051, 508052, 508053, 508054, 508055, 508056, 508057, 508058, 508059)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:29:05,339 - [56219] - src.utils.log - INFO - βœ… Fetched 207 rows - __SPLIT__ 2026-04-17 10:29:05,340 - [56219] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationCrews woag WHERE woag.WorkOrderAutoGenerationId in (507853, 507854, 507855, 507856, 507857, 507858, 507859, 507860, 507861, 507862, 507863, 507864, 507865, 507866, 507867, 507868, 507869, 507870, 507871, 507872, 507873, 507874, 507875, 507876, 507877, 507878, 507879, 507880, 507881, 507882, 507883, 507884, 507885, 507886, 507887, 507888, 507889, 507890, 507891, 507892, 507893, 507894, 507895, 507896, 507897, 507898, 507899, 507900, 507901, 507902, 507903, 507904, 507905, 507906, 507907, 507908, 507909, 507910, 507911, 507912, 507913, 507914, 507915, 507916, 507917, 507918, 507919, 507920, 507921, 507922, 507923, 507924, 507925, 507926, 507927, 507928, 507929, 507930, 507931, 507932, 507933, 507934, 507935, 507936, 507937, 507938, 507939, 507940, 507941, 507942, 507943, 507944, 507945, 507946, 507947, 507948, 507949, 507950, 507951, 507952, 507953, 507954, 507955, 507956, 507957, 507958, 507959, 507960, 507961, 507962, 507963, 507964, 507965, 507966, 507967, 507968, 507969, 507970, 507971, 507972, 507973, 507974, 507975, 507976, 507977, 507978, 507979, 507980, 507981, 507982, 507983, 507984, 507985, 507986, 507987, 507988, 507989, 507990, 507991, 507992, 507993, 507994, 507995, 507996, 507997, 507998, 507999, 508000, 508001, 508002, 508003, 508004, 508005, 508006, 508007, 508008, 508009, 508010, 508011, 508012, 508013, 508014, 508015, 508016, 508017, 508018, 508019, 508020, 508021, 508022, 508023, 508024, 508025, 508026, 508027, 508028, 508029, 508030, 508031, 508032, 508033, 508034, 508035, 508036, 508037, 508038, 508039, 508040, 508041, 508042, 508043, 508044, 508045, 508046, 508047, 508048, 508049, 508050, 508051, 508052, 508053, 508054, 508055, 508056, 508057, 508058, 508059)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:29:05,386 - [56219] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-17 10:29:05,386 - [56219] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationSalesPersonCommission woag WHERE woag.WorkOrderAutoGenerationId in (507853, 507854, 507855, 507856, 507857, 507858, 507859, 507860, 507861, 507862, 507863, 507864, 507865, 507866, 507867, 507868, 507869, 507870, 507871, 507872, 507873, 507874, 507875, 507876, 507877, 507878, 507879, 507880, 507881, 507882, 507883, 507884, 507885, 507886, 507887, 507888, 507889, 507890, 507891, 507892, 507893, 507894, 507895, 507896, 507897, 507898, 507899, 507900, 507901, 507902, 507903, 507904, 507905, 507906, 507907, 507908, 507909, 507910, 507911, 507912, 507913, 507914, 507915, 507916, 507917, 507918, 507919, 507920, 507921, 507922, 507923, 507924, 507925, 507926, 507927, 507928, 507929, 507930, 507931, 507932, 507933, 507934, 507935, 507936, 507937, 507938, 507939, 507940, 507941, 507942, 507943, 507944, 507945, 507946, 507947, 507948, 507949, 507950, 507951, 507952, 507953, 507954, 507955, 507956, 507957, 507958, 507959, 507960, 507961, 507962, 507963, 507964, 507965, 507966, 507967, 507968, 507969, 507970, 507971, 507972, 507973, 507974, 507975, 507976, 507977, 507978, 507979, 507980, 507981, 507982, 507983, 507984, 507985, 507986, 507987, 507988, 507989, 507990, 507991, 507992, 507993, 507994, 507995, 507996, 507997, 507998, 507999, 508000, 508001, 508002, 508003, 508004, 508005, 508006, 508007, 508008, 508009, 508010, 508011, 508012, 508013, 508014, 508015, 508016, 508017, 508018, 508019, 508020, 508021, 508022, 508023, 508024, 508025, 508026, 508027, 508028, 508029, 508030, 508031, 508032, 508033, 508034, 508035, 508036, 508037, 508038, 508039, 508040, 508041, 508042, 508043, 508044, 508045, 508046, 508047, 508048, 508049, 508050, 508051, 508052, 508053, 508054, 508055, 508056, 508057, 508058, 508059)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:29:05,425 - [56219] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-17 10:29:05,425 - [56219] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupAutoGenerationSourceMapping woag WHERE woag.WorkOrderAutoGenerationId in (507853, 507854, 507855, 507856, 507857, 507858, 507859, 507860, 507861, 507862, 507863, 507864, 507865, 507866, 507867, 507868, 507869, 507870, 507871, 507872, 507873, 507874, 507875, 507876, 507877, 507878, 507879, 507880, 507881, 507882, 507883, 507884, 507885, 507886, 507887, 507888, 507889, 507890, 507891, 507892, 507893, 507894, 507895, 507896, 507897, 507898, 507899, 507900, 507901, 507902, 507903, 507904, 507905, 507906, 507907, 507908, 507909, 507910, 507911, 507912, 507913, 507914, 507915, 507916, 507917, 507918, 507919, 507920, 507921, 507922, 507923, 507924, 507925, 507926, 507927, 507928, 507929, 507930, 507931, 507932, 507933, 507934, 507935, 507936, 507937, 507938, 507939, 507940, 507941, 507942, 507943, 507944, 507945, 507946, 507947, 507948, 507949, 507950, 507951, 507952, 507953, 507954, 507955, 507956, 507957, 507958, 507959, 507960, 507961, 507962, 507963, 507964, 507965, 507966, 507967, 507968, 507969, 507970, 507971, 507972, 507973, 507974, 507975, 507976, 507977, 507978, 507979, 507980, 507981, 507982, 507983, 507984, 507985, 507986, 507987, 507988, 507989, 507990, 507991, 507992, 507993, 507994, 507995, 507996, 507997, 507998, 507999, 508000, 508001, 508002, 508003, 508004, 508005, 508006, 508007, 508008, 508009, 508010, 508011, 508012, 508013, 508014, 508015, 508016, 508017, 508018, 508019, 508020, 508021, 508022, 508023, 508024, 508025, 508026, 508027, 508028, 508029, 508030, 508031, 508032, 508033, 508034, 508035, 508036, 508037, 508038, 508039, 508040, 508041, 508042, 508043, 508044, 508045, 508046, 508047, 508048, 508049, 508050, 508051, 508052, 508053, 508054, 508055, 508056, 508057, 508058, 508059)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:29:05,465 - [56219] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-17 10:29:05,466 - [56219] - src.utils.log - INFO - πŸ” Fetching data: SELECT DiscountType, DiscountCode, DiscountAmount, DiscountDescription, DiscountName, IsActive, CreatedBy, ModifiedBy, CreatedDate, ModifiedDate, DiscountPercent, IsDiscountPercent, AppliedDiscountAmt, ApplyOnPartPrice, ApplyOnLaborPrice, DiscountSetupId, WorkOrderAutoGenerationId from ServiceCore.WorkOrderAutoGenerationAppliedDiscount woag WHERE woag.WorkOrderAutoGenerationId in (507853, 507854, 507855, 507856, 507857, 507858, 507859, 507860, 507861, 507862, 507863, 507864, 507865, 507866, 507867, 507868, 507869, 507870, 507871, 507872, 507873, 507874, 507875, 507876, 507877, 507878, 507879, 507880, 507881, 507882, 507883, 507884, 507885, 507886, 507887, 507888, 507889, 507890, 507891, 507892, 507893, 507894, 507895, 507896, 507897, 507898, 507899, 507900, 507901, 507902, 507903, 507904, 507905, 507906, 507907, 507908, 507909, 507910, 507911, 507912, 507913, 507914, 507915, 507916, 507917, 507918, 507919, 507920, 507921, 507922, 507923, 507924, 507925, 507926, 507927, 507928, 507929, 507930, 507931, 507932, 507933, 507934, 507935, 507936, 507937, 507938, 507939, 507940, 507941, 507942, 507943, 507944, 507945, 507946, 507947, 507948, 507949, 507950, 507951, 507952, 507953, 507954, 507955, 507956, 507957, 507958, 507959, 507960, 507961, 507962, 507963, 507964, 507965, 507966, 507967, 507968, 507969, 507970, 507971, 507972, 507973, 507974, 507975, 507976, 507977, 507978, 507979, 507980, 507981, 507982, 507983, 507984, 507985, 507986, 507987, 507988, 507989, 507990, 507991, 507992, 507993, 507994, 507995, 507996, 507997, 507998, 507999, 508000, 508001, 508002, 508003, 508004, 508005, 508006, 508007, 508008, 508009, 508010, 508011, 508012, 508013, 508014, 508015, 508016, 508017, 508018, 508019, 508020, 508021, 508022, 508023, 508024, 508025, 508026, 508027, 508028, 508029, 508030, 508031, 508032, 508033, 508034, 508035, 508036, 508037, 508038, 508039, 508040, 508041, 508042, 508043, 508044, 508045, 508046, 508047, 508048, 508049, 508050, 508051, 508052, 508053, 508054, 508055, 508056, 508057, 508058, 508059)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:29:05,507 - [56219] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-17 10:29:05,507 - [56219] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from CRM.LeadNote woag WHERE woag.RefId in (507853, 507854, 507855, 507856, 507857, 507858, 507859, 507860, 507861, 507862, 507863, 507864, 507865, 507866, 507867, 507868, 507869, 507870, 507871, 507872, 507873, 507874, 507875, 507876, 507877, 507878, 507879, 507880, 507881, 507882, 507883, 507884, 507885, 507886, 507887, 507888, 507889, 507890, 507891, 507892, 507893, 507894, 507895, 507896, 507897, 507898, 507899, 507900, 507901, 507902, 507903, 507904, 507905, 507906, 507907, 507908, 507909, 507910, 507911, 507912, 507913, 507914, 507915, 507916, 507917, 507918, 507919, 507920, 507921, 507922, 507923, 507924, 507925, 507926, 507927, 507928, 507929, 507930, 507931, 507932, 507933, 507934, 507935, 507936, 507937, 507938, 507939, 507940, 507941, 507942, 507943, 507944, 507945, 507946, 507947, 507948, 507949, 507950, 507951, 507952, 507953, 507954, 507955, 507956, 507957, 507958, 507959, 507960, 507961, 507962, 507963, 507964, 507965, 507966, 507967, 507968, 507969, 507970, 507971, 507972, 507973, 507974, 507975, 507976, 507977, 507978, 507979, 507980, 507981, 507982, 507983, 507984, 507985, 507986, 507987, 507988, 507989, 507990, 507991, 507992, 507993, 507994, 507995, 507996, 507997, 507998, 507999, 508000, 508001, 508002, 508003, 508004, 508005, 508006, 508007, 508008, 508009, 508010, 508011, 508012, 508013, 508014, 508015, 508016, 508017, 508018, 508019, 508020, 508021, 508022, 508023, 508024, 508025, 508026, 508027, 508028, 508029, 508030, 508031, 508032, 508033, 508034, 508035, 508036, 508037, 508038, 508039, 508040, 508041, 508042, 508043, 508044, 508045, 508046, 508047, 508048, 508049, 508050, 508051, 508052, 508053, 508054, 508055, 508056, 508057, 508058, 508059) and woag.RefType = 'TempWorkorder';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:29:05,550 - [56219] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-17 10:29:05,551 - [56219] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment woagca WHERE woagca.WorkOrderAutoGenerationId in (507853, 507854, 507855, 507856, 507857, 507858, 507859, 507860, 507861, 507862, 507863, 507864, 507865, 507866, 507867, 507868, 507869, 507870, 507871, 507872, 507873, 507874, 507875, 507876, 507877, 507878, 507879, 507880, 507881, 507882, 507883, 507884, 507885, 507886, 507887, 507888, 507889, 507890, 507891, 507892, 507893, 507894, 507895, 507896, 507897, 507898, 507899, 507900, 507901, 507902, 507903, 507904, 507905, 507906, 507907, 507908, 507909, 507910, 507911, 507912, 507913, 507914, 507915, 507916, 507917, 507918, 507919, 507920, 507921, 507922, 507923, 507924, 507925, 507926, 507927, 507928, 507929, 507930, 507931, 507932, 507933, 507934, 507935, 507936, 507937, 507938, 507939, 507940, 507941, 507942, 507943, 507944, 507945, 507946, 507947, 507948, 507949, 507950, 507951, 507952, 507953, 507954, 507955, 507956, 507957, 507958, 507959, 507960, 507961, 507962, 507963, 507964, 507965, 507966, 507967, 507968, 507969, 507970, 507971, 507972, 507973, 507974, 507975, 507976, 507977, 507978, 507979, 507980, 507981, 507982, 507983, 507984, 507985, 507986, 507987, 507988, 507989, 507990, 507991, 507992, 507993, 507994, 507995, 507996, 507997, 507998, 507999, 508000, 508001, 508002, 508003, 508004, 508005, 508006, 508007, 508008, 508009, 508010, 508011, 508012, 508013, 508014, 508015, 508016, 508017, 508018, 508019, 508020, 508021, 508022, 508023, 508024, 508025, 508026, 508027, 508028, 508029, 508030, 508031, 508032, 508033, 508034, 508035, 508036, 508037, 508038, 508039, 508040, 508041, 508042, 508043, 508044, 508045, 508046, 508047, 508048, 508049, 508050, 508051, 508052, 508053, 508054, 508055, 508056, 508057, 508058, 508059);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:29:05,589 - [56219] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-17 10:29:05,591 - [56219] - src.utils.log - INFO - Updating temp tables - __SPLIT__ 2026-04-17 10:29:05,606 - [56219] - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyKey FROM Common.CompanyMaster cm WHERE CompanyId = 146;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:29:05,634 - [56219] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-17 10:29:05,634 - [56219] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 146 AND EnitityNumberType in ('SubWorkOrder'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:29:05,663 - [56219] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-17 10:29:05,663 - [56219] - src.utils.log - INFO - πŸ“ Executing: UPDATE Common.GenerateNumberConfig SET NextNumber = '2510' WHERE CompanyId = 146 AND EnitityNumberType in ('SubWorkOrder');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:29:05,692 - [56219] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-04-17 10:29:05,696 - [56219] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-17 10:29:05,696 - [56219] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishHistory: 207 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:29:05,744 - [56219] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 207) into ServiceCore.WorkOrderAutoGenerationPublishHistory - __SPLIT__ 2026-04-17 10:29:06,393 - [56219] - src.utils.log - INFO - βœ… All 207 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishHistory in 1 batches - __SPLIT__ 2026-04-17 10:29:06,394 - [56219] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationPublishHistoryId, WorkOrderNo, ServiceSetupId FROM ServiceCore.WorkOrderAutoGenerationPublishHistory WHERE ServiceSetupId = 95819 AND WorkOrderNo IN ('9030032', '4063368', '9744828', '4293478', '4965985', '4549503', '3834681', '5967680', '9250443', '1586907', '8628719', '9072621', '9175321', '5710755', '6989775', '1745640', '2865216', '5789120', '2896077', '2543323', '8961645', '1622792', '8555617', '5201263', '1989640', '4448097', '3874590', '5355753', '6187842', '3358302', '1340430', '1531728', '7647215', '5302017', '5971000', '2326746', '9732686', '7945323', '2070055', '8329233', '6438528', '2100464', '8729265', '5998491', '3179591', '8320381', '9651704', '8316727', '1803638', '6231486', '7718904', '8613068', '6195543', '6056760', '3085929', '3940223', '9768510', '8710844', '9069557', '4581915', '2852214', '9112570', '2157315', '8073696', '4725085', '4979914', '5930531', '7879793', '4386312', '2044583', '8257662', '9851334', '3804010', '2705384', '3769185', '3870942', '5028841', '3094536', '6568800', '1663588', '1539898', '3472109', '1691607', '2658994', '1123421', '5909930', '5708640', '9837921', '4002923', '7067331', '3143671', '1819570', '2771682', '8297819', '2795578', '3759705', '2860247', '2204639', '3295484', '8996932', '3617955', '4965323', '5043800', '3046446', '5068218', '8918652', '6205012', '3595611', '9710492', '3531555', '4945758', '9149383', '5128713', '5526487', '6983733', '5060999', '4204282', '9812100', '9500920', '7541487', '7663418', '7407574', '6181449', '5046783', '3875523', '7199522', '5296081', '5190942', '2477524', '4026461', '5201167', '9056989', '1928709', '6202131', '9046134', '7250262', '6114389', '2621831', '2680149', '6100190', '7924828', '3898919', '2760913', '6599411', '6063016', '1721491', '6173091', '1664914', '5388987', '7737417', '8014011', '3308071', '7397790', '8328135', '2327290', '3289959', '9613805', '6812226', '8015644', '8228725', '7171019', '5828028', '4535121', '8870666', '1918893', '1498784', '4461023', '8260603', '8950933', '7448972', '4529282', '4716323', '2921366', '1132863', '1149285', '9136755', '3305100', '9165760', '5987264', '3474588', '1938435', '8720974', '9276010', '8268056', '2029209', '4774650', '1740984', '6786396', '6647557', '3156865', '4218896', '4067503', '6161442', '9819786', '9389022', '2790883', '7299457', '7889848', '9023718', '3589997', '3011517', '3452498', '9604445', '2050772', '7857543', '7855578', '7008283') AND GenerateWorkOrderHistoryId = 56219;... (Thread: ThreadPoolExecutor-1_0) - __SPLIT__ 2026-04-17 10:29:06,462 - [56219] - src.utils.log - INFO - βœ… Fetched 207 rows - __SPLIT__ 2026-04-17 10:29:06,463 - [56219] - src.utils.log - INFO - 🏁 Final merged rows: 207 - __SPLIT__ 2026-04-17 10:29:06,469 - [56219] - src.utils.log - INFO - Sequential Insertion in work order tables begin - __SPLIT__ 2026-04-17 10:29:06,469 - [56219] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-17 10:29:06,469 - [56219] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderServices: 207 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:29:06,504 - [56219] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 207) into ServiceCore.WorkOrderServices - __SPLIT__ 2026-04-17 10:29:06,949 - [56219] - src.utils.log - INFO - βœ… All 207 rows inserted successfully into ServiceCore.WorkOrderServices in 1 batches - __SPLIT__ 2026-04-17 10:29:06,949 - [56219] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderAppliedDiscount: - __SPLIT__ 2026-04-17 10:29:06,949 - [56219] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderSalesPersonCommission: - __SPLIT__ 2026-04-17 10:29:06,949 - [56219] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderCommissionAdjustment: - __SPLIT__ 2026-04-17 10:29:06,949 - [56219] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderCrew: - __SPLIT__ 2026-04-17 10:29:06,949 - [56219] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkorderSourceMapping: - __SPLIT__ 2026-04-17 10:29:06,949 - [56219] - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-04-17 10:29:06,949 - [56219] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-17 10:29:06,949 - [56219] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishServices: 207 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:29:06,985 - [56219] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 207) into ServiceCore.WorkOrderAutoGenerationPublishServices - __SPLIT__ 2026-04-17 10:29:07,433 - [56219] - src.utils.log - INFO - βœ… All 207 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishServices in 1 batches - __SPLIT__ 2026-04-17 10:29:07,433 - [56219] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-17 10:29:07,433 - [56219] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.SubWorkOrder: 207 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:29:07,474 - [56219] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 207) into ServiceCore.SubWorkOrder - __SPLIT__ 2026-04-17 10:29:08,321 - [56219] - src.utils.log - INFO - βœ… All 207 rows inserted successfully into ServiceCore.SubWorkOrder in 1 batches - __SPLIT__ 2026-04-17 10:29:08,322 - [56219] - src.utils.log - INFO - πŸ” Fetching data: Select * From ServiceCore.SubWorkOrder where WorkOrderId in (1286076, 1286077, 1286078, 1286079, 1286080, 1286081, 1286082, 1286083, 1286084, 1286085, 1286086, 1286087, 1286088, 1286089, 1286090, 1286091, 1286092, 1286093, 1286094, 1286095, 1286096, 1286097, 1286098, 1286099, 1286100, 1286101, 1286102, 1286103, 1286104, 1286105, 1286106, 1286107, 1286108, 1286109, 1286110, 1286111, 1286112, 1286113, 1286114, 1286115, 1286116, 1286117, 1286118, 1286119, 1286120, 1286121, 1286122, 1286123, 1286124, 1286125, 1286126, 1286127, 1286128, 1286129, 1286130, 1286131, 1286132, 1286133, 1286134, 1286135, 1286136, 1286137, 1286138, 1286139, 1286140, 1286141, 1286142, 1286143, 1286144, 1286145, 1286146, 1286147, 1286148, 1286149, 1286150, 1286151, 1286152, 1286153, 1286154, 1286155, 1286156, 1286157, 1286158, 1286159, 1286160, 1286161, 1286162, 1286163, 1286164, 1286165, 1286166, 1286167, 1286168, 1286169, 1286170, 1286171, 1286172, 1286173, 1286174, 1286175, 1286176, 1286177, 1286178, 1286179, 1286180, 1286181, 1286182, 1286183, 1286184, 1286185, 1286186, 1286187, 1286188, 1286189, 1286190, 1286191, 1286192, 1286193, 1286194, 1286195, 1286196, 1286197, 1286198, 1286199, 1286200, 1286201, 1286202, 1286203, 1286204, 1286205, 1286206, 1286207, 1286208, 1286209, 1286210, 1286211, 1286212, 1286213, 1286214, 1286215, 1286216, 1286217, 1286218, 1286219, 1286220, 1286221, 1286222, 1286223, 1286224, 1286225, 1286226, 1286227, 1286228, 1286229, 1286230, 1286231, 1286232, 1286233, 1286234, 1286235, 1286236, 1286237, 1286238, 1286239, 1286240, 1286241, 1286242, 1286243, 1286244, 1286245, 1286246, 1286247, 1286248, 1286249, 1286250, 1286251, 1286252, 1286253, 1286254, 1286255, 1286256, 1286257, 1286258, 1286259, 1286260, 1286261, 1286262, 1286263, 1286264, 1286265, 1286266, 1286267, 1286268, 1286269, 1286270, 1286271, 1286272, 1286273, 1286274, 1286275, 1286276, 1286277, 1286278, 1286279, 1286280, 1286281, 1286282)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:29:08,496 - [56219] - src.utils.log - INFO - βœ… Fetched 207 rows - __SPLIT__ 2026-04-17 10:29:08,526 - [56219] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-17 10:29:08,526 - [56219] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.subWorkOrderIssue: 207 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:29:08,558 - [56219] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 207) into ServiceAuto.subWorkOrderIssue - __SPLIT__ 2026-04-17 10:29:08,844 - [56219] - src.utils.log - INFO - βœ… All 207 rows inserted successfully into ServiceAuto.subWorkOrderIssue in 1 batches - __SPLIT__ 2026-04-17 10:29:08,845 - [56219] - src.utils.log - INFO - πŸ” Fetching data: Select SubWorkOrderIssueId, SubWorkOrderId, ModifiedBy From ServiceAuto.subWorkOrderIssue where SubWorkOrderId in (247599, 247598, 247597, 247596, 247595, 247594, 247593, 247592, 247591, 247590, 247589, 247588, 247587, 247586, 247585, 247584, 247583, 247582, 247581, 247580, 247579, 247578, 247577, 247576, 247575, 247574, 247573, 247572, 247571, 247570, 247569, 247568, 247567, 247566, 247565, 247564, 247563, 247562, 247561, 247560, 247559, 247558, 247557, 247556, 247555, 247554, 247553, 247552, 247551, 247550, 247549, 247548, 247547, 247546, 247545, 247544, 247543, 247542, 247541, 247540, 247539, 247538, 247537, 247536, 247535, 247534, 247533, 247532, 247531, 247530, 247529, 247528, 247527, 247526, 247525, 247524, 247523, 247522, 247521, 247520, 247519, 247518, 247517, 247516, 247515, 247514, 247513, 247512, 247511, 247510, 247509, 247508, 247507, 247506, 247505, 247504, 247503, 247502, 247501, 247500, 247499, 247498, 247497, 247496, 247495, 247494, 247493, 247492, 247491, 247490, 247489, 247488, 247487, 247486, 247485, 247484, 247483, 247482, 247481, 247480, 247479, 247478, 247477, 247476, 247475, 247474, 247473, 247472, 247471, 247470, 247469, 247468, 247467, 247466, 247465, 247464, 247463, 247462, 247461, 247460, 247459, 247458, 247457, 247456, 247455, 247454, 247453, 247452, 247451, 247450, 247449, 247448, 247447, 247446, 247445, 247444, 247443, 247442, 247441, 247440, 247439, 247438, 247437, 247436, 247435, 247434, 247433, 247432, 247431, 247430, 247429, 247428, 247427, 247426, 247425, 247424, 247423, 247422, 247421, 247420, 247419, 247418, 247417, 247416, 247415, 247414, 247413, 247412, 247411, 247410, 247409, 247408, 247407, 247406, 247405, 247404, 247403, 247402, 247401, 247400, 247399, 247398, 247397, 247396, 247395, 247394, 247393) and ModifiedBy in ('999999999', '1000000000', '1000000001', '1000000002', '1000000003', '1000000004', '1000000005', '1000000006', '1000000007', '1000000008', '1000000009', '1000000010', '1000000011', '1000000012', '1000000013', '1000000014', '1000000015', '1000000016', '1000000017', '1000000018', '1000000019', '1000000020', '1000000021', '1000000022', '1000000023', '1000000024', '1000000025', '1000000026', '1000000027', '1000000028', '1000000029', '1000000030', '1000000031', '1000000032', '1000000033', '1000000034', '1000000035', '1000000036', '1000000037', '1000000038', '1000000039', '1000000040', '1000000041', '1000000042', '1000000043', '1000000044', '1000000045', '1000000046', '1000000047', '1000000048', '1000000049', '1000000050', '1000000051', '1000000052', '1000000053', '1000000054', '1000000055', '1000000056', '1000000057', '1000000058', '1000000059', '1000000060', '1000000061', '1000000062', '1000000063', '1000000064', '1000000065', '1000000066', '1000000067', '1000000068', '1000000069', '1000000070', '1000000071', '1000000072', '1000000073', '1000000074', '1000000075', '1000000076', '1000000077', '1000000078', '1000000079', '1000000080', '1000000081', '1000000082', '1000000083', '1000000084', '1000000085', '1000000086', '1000000087', '1000000088', '1000000089', '1000000090', '1000000091', '1000000092', '1000000093', '1000000094', '1000000095', '1000000096', '1000000097', '1000000098', '1000000099', '1000000100', '1000000101', '1000000102', '1000000103', '1000000104', '1000000105', '1000000106', '1000000107', '1000000108', '1000000109', '1000000110', '1000000111', '1000000112', '1000000113', '1000000114', '1000000115', '1000000116', '1000000117', '1000000118', '1000000119', '1000000120', '1000000121', '1000000122', '1000000123', '1000000124', '1000000125', '1000000126', '1000000127', '1000000128', '1000000129', '1000000130', '1000000131', '1000000132', '1000000133', '1000000134', '1000000135', '1000000136', '1000000137', '1000000138', '1000000139', '1000000140', '1000000141', '1000000142', '1000000143', '1000000144', '1000000145', '1000000146', '1000000147', '1000000148', '1000000149', '1000000150', '1000000151', '1000000152', '1000000153', '1000000154', '1000000155', '1000000156', '1000000157', '1000000158', '1000000159', '1000000160', '1000000161', '1000000162', '1000000163', '1000000164', '1000000165', '1000000166', '1000000167', '1000000168', '1000000169', '1000000170', '1000000171', '1000000172', '1000000173', '1000000174', '1000000175', '1000000176', '1000000177', '1000000178', '1000000179', '1000000180', '1000000181', '1000000182', '1000000183', '1000000184', '1000000185', '1000000186', '1000000187', '1000000188', '1000000189', '1000000190', '1000000191', '1000000192', '1000000193', '1000000194', '1000000195', '1000000196', '1000000197', '1000000198', '1000000199', '1000000200', '1000000201', '1000000202', '1000000203', '1000000204', '1000000205')... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:29:08,897 - [56219] - src.utils.log - INFO - βœ… Fetched 207 rows - __SPLIT__ 2026-04-17 10:29:08,897 - [56219] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceAuto.subWorkOrderIssue SET ModifiedBy = 'fortive' WHERE ModifiedBy IN ('999999999', '1000000000', '1000000001', '1000000002', '1000000003', '1000000004', '1000000005', '1000000006', '1000000007', '1000000008', '1000000009', '1000000010', '1000000011', '1000000012', '1000000013', '1000000014', '1000000015', '1000000016', '1000000017', '1000000018', '1000000019', '1000000020', '1000000021', '1000000022', '1000000023', '1000000024', '1000000025', '1000000026', '1000000027', '1000000028', '1000000029', '1000000030', '1000000031', '1000000032', '1000000033', '1000000034', '1000000035', '1000000036', '1000000037', '1000000038', '1000000039', '1000000040', '1000000041', '1000000042', '1000000043', '1000000044', '1000000045', '1000000046', '1000000047', '1000000048', '1000000049', '1000000050', '1000000051', '1000000052', '1000000053', '1000000054', '1000000055', '1000000056', '1000000057', '1000000058', '1000000059', '1000000060', '1000000061', '1000000062', '1000000063', '1000000064', '1000000065', '1000000066', '1000000067', '1000000068', '1000000069', '1000000070', '1000000071', '1000000072', '1000000073', '1000000074', '1000000075', '1000000076', '1000000077', '1000000078', '1000000079', '1000000080', '1000000081', '1000000082', '1000000083', '1000000084', '1000000085', '1000000086', '1000000087', '1000000088', '1000000089', '1000000090', '1000000091', '1000000092', '1000000093', '1000000094', '1000000095', '1000000096', '1000000097', '1000000098', '1000000099', '1000000100', '1000000101', '1000000102', '1000000103', '1000000104', '1000000105', '1000000106', '1000000107', '1000000108', '1000000109', '1000000110', '1000000111', '1000000112', '1000000113', '1000000114', '1000000115', '1000000116', '1000000117', '1000000118', '1000000119', '1000000120', '1000000121', '1000000122', '1000000123', '1000000124', '1000000125', '1000000126', '1000000127', '1000000128', '1000000129', '1000000130', '1000000131', '1000000132', '1000000133', '1000000134', '1000000135', '1000000136', '1000000137', '1000000138', '1000000139', '1000000140', '1000000141', '1000000142', '1000000143', '1000000144', '1000000145', '1000000146', '1000000147', '1000000148', '1000000149', '1000000150', '1000000151', '1000000152', '1000000153', '1000000154', '1000000155', '1000000156', '1000000157', '1000000158', '1000000159', '1000000160', '1000000161', '1000000162', '1000000163', '1000000164', '1000000165', '1000000166', '1000000167', '1000000168', '1000000169', '1000000170', '1000000171', '1000000172', '1000000173', '1000000174', '1000000175', '1000000176', '1000000177', '1000000178', '1000000179', '1000000180', '1000000181', '1000000182', '1000000183', '1000000184', '1000000185', '1000000186', '1000000187', '1000000188', '1000000189', '1000000190', '1000000191', '1000000192', '1000000193', '1000000194', '1000000195', '1000000196', '1000000197', '1000000198', '1000000199', '1000000200', '1000000201', '1000000202', '1000000203', '1000000204', '1000000205'); ... (Thread: ThreadPoolExecutor-2_0) - __SPLIT__ 2026-04-17 10:29:08,960 - [56219] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-04-17 10:29:08,967 - [56219] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-17 10:29:08,967 - [56219] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.subWOIssueRepair: 207 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:29:09,004 - [56219] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 207) into ServiceAuto.subWOIssueRepair - __SPLIT__ 2026-04-17 10:29:09,292 - [56219] - src.utils.log - INFO - βœ… All 207 rows inserted successfully into ServiceAuto.subWOIssueRepair in 1 batches - __SPLIT__ 2026-04-17 10:29:09,292 - [56219] - src.utils.log - INFO - πŸ” Fetching data: Select IssueRepairId, ModifiedBy From ServiceAuto.subWOIssueRepair where SubWorkOrderIssueId in (214939, 214940, 214941, 214942, 214943, 214944, 214945, 214946, 214947, 214948, 214949, 214950, 214951, 214952, 214953, 214954, 214955, 214956, 214957, 214958, 214959, 214960, 214961, 214962, 214963, 214964, 214965, 214966, 214967, 214968, 214969, 214970, 214971, 214972, 214973, 214974, 214975, 214976, 214977, 214978, 214979, 214980, 214981, 214982, 214983, 214984, 214985, 214986, 214987, 214988, 214989, 214990, 214991, 214992, 214993, 214994, 214995, 214996, 214997, 214998, 214999, 215000, 215001, 215002, 215003, 215004, 215005, 215006, 215007, 215008, 215009, 215010, 215011, 215012, 215013, 215014, 215015, 215016, 215017, 215018, 215019, 215020, 215021, 215022, 215023, 215024, 215025, 215026, 215027, 215028, 215029, 215030, 215031, 215032, 215033, 215034, 215035, 215036, 215037, 215038, 215039, 215040, 215041, 215042, 215043, 215044, 215045, 215046, 215047, 215048, 215049, 215050, 215051, 215052, 215053, 215054, 215055, 215056, 215057, 215058, 215059, 215060, 215061, 215062, 215063, 215064, 215065, 215066, 215067, 215068, 215069, 215070, 215071, 215072, 215073, 215074, 215075, 215076, 215077, 215078, 215079, 215080, 215081, 215082, 215083, 215084, 215085, 215086, 215087, 215088, 215089, 215090, 215091, 215092, 215093, 215094, 215095, 215096, 215097, 215098, 215099, 215100, 215101, 215102, 215103, 215104, 215105, 215106, 215107, 215108, 215109, 215110, 215111, 215112, 215113, 215114, 215115, 215116, 215117, 215118, 215119, 215120, 215121, 215122, 215123, 215124, 215125, 215126, 215127, 215128, 215129, 215130, 215131, 215132, 215133, 215134, 215135, 215136, 215137, 215138, 215139, 215140, 215141, 215142, 215143, 215144, 215145)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:29:09,331 - [56219] - src.utils.log - INFO - βœ… Fetched 207 rows - __SPLIT__ 2026-04-17 10:29:09,332 - [56219] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceAuto.subWOIssueRepair SET ModifiedBy = 'fortive' WHERE ModifiedBy IN ('0___TMP___214939', '0___TMP___214940', '0___TMP___214941', '0___TMP___214942', '0___TMP___214943', '0___TMP___214944', '0___TMP___214945', '0___TMP___214946', '0___TMP___214947', '0___TMP___214948', '0___TMP___214949', '0___TMP___214950', '0___TMP___214951', '0___TMP___214952', '0___TMP___214953', '0___TMP___214954', '0___TMP___214955', '0___TMP___214956', '0___TMP___214957', '0___TMP___214958', '0___TMP___214959', '0___TMP___214960', '0___TMP___214961', '0___TMP___214962', '0___TMP___214963', '0___TMP___214964', '0___TMP___214965', '0___TMP___214966', '0___TMP___214967', '0___TMP___214968', '0___TMP___214969', '0___TMP___214970', '0___TMP___214971', '0___TMP___214972', '0___TMP___214973', '0___TMP___214974', '0___TMP___214975', '0___TMP___214976', '0___TMP___214977', '0___TMP___214978', '0___TMP___214979', '0___TMP___214980', '0___TMP___214981', '0___TMP___214982', '0___TMP___214983', '0___TMP___214984', '0___TMP___214985', '0___TMP___214986', '0___TMP___214987', '0___TMP___214988', '0___TMP___214989', '0___TMP___214990', '0___TMP___214991', '0___TMP___214992', '0___TMP___214993', '0___TMP___214994', '0___TMP___214995', '0___TMP___214996', '0___TMP___214997', '0___TMP___214998', '0___TMP___214999', '0___TMP___215000', '0___TMP___215001', '0___TMP___215002', '0___TMP___215003', '0___TMP___215004', '0___TMP___215005', '0___TMP___215006', '0___TMP___215007', '0___TMP___215008', '0___TMP___215009', '0___TMP___215010', '0___TMP___215011', '0___TMP___215012', '0___TMP___215013', '0___TMP___215014', '0___TMP___215015', '0___TMP___215016', '0___TMP___215017', '0___TMP___215018', '0___TMP___215019', '0___TMP___215020', '0___TMP___215021', '0___TMP___215022', '0___TMP___215023', '0___TMP___215024', '0___TMP___215025', '0___TMP___215026', '0___TMP___215027', '0___TMP___215028', '0___TMP___215029', '0___TMP___215030', '0___TMP___215031', '0___TMP___215032', '0___TMP___215033', '0___TMP___215034', '0___TMP___215035', '0___TMP___215036', '0___TMP___215037', '0___TMP___215038', '0___TMP___215039', '0___TMP___215040', '0___TMP___215041', '0___TMP___215042', '0___TMP___215043', '0___TMP___215044', '0___TMP___215045', '0___TMP___215046', '0___TMP___215047', '0___TMP___215048', '0___TMP___215049', '0___TMP___215050', '0___TMP___215051', '0___TMP___215052', '0___TMP___215053', '0___TMP___215054', '0___TMP___215055', '0___TMP___215056', '0___TMP___215057', '0___TMP___215058', '0___TMP___215059', '0___TMP___215060', '0___TMP___215061', '0___TMP___215062', '0___TMP___215063', '0___TMP___215064', '0___TMP___215065', '0___TMP___215066', '0___TMP___215067', '0___TMP___215068', '0___TMP___215069', '0___TMP___215070', '0___TMP___215071', '0___TMP___215072', '0___TMP___215073', '0___TMP___215074', '0___TMP___215075', '0___TMP___215076', '0___TMP___215077', '0___TMP___215078', '0___TMP___215079', '0___TMP___215080', '0___TMP___215081', '0___TMP___215082', '0___TMP___215083', '0___TMP___215084', '0___TMP___215085', '0___TMP___215086', '0___TMP___215087', '0___TMP___215088', '0___TMP___215089', '0___TMP___215090', '0___TMP___215091', '0___TMP___215092', '0___TMP___215093', '0___TMP___215094', '0___TMP___215095', '0___TMP___215096', '0___TMP___215097', '0___TMP___215098', '0___TMP___215099', '0___TMP___215100', '0___TMP___215101', '0___TMP___215102', '0___TMP___215103', '0___TMP___215104', '0___TMP___215105', '0___TMP___215106', '0___TMP___215107', '0___TMP___215108', '0___TMP___215109', '0___TMP___215110', '0___TMP___215111', '0___TMP___215112', '0___TMP___215113', '0___TMP___215114', '0___TMP___215115', '0___TMP___215116', '0___TMP___215117', '0___TMP___215118', '0___TMP___215119', '0___TMP___215120', '0___TMP___215121', '0___TMP___215122', '0___TMP___215123', '0___TMP___215124', '0___TMP___215125', '0___TMP___215126', '0___TMP___215127', '0___TMP___215128', '0___TMP___215129', '0___TMP___215130', '0___TMP___215131', '0___TMP___215132', '0___TMP___215133', '0___TMP___215134', '0___TMP___215135', '0___TMP___215136', '0___TMP___215137', '0___TMP___215138', '0___TMP___215139', '0___TMP___215140', '0___TMP___215141', '0___TMP___215142', '0___TMP___215143', '0___TMP___215144', '0___TMP___215145') AND CreatedDate = '2026-04-17 06:29:08.524'; ... (Thread: ThreadPoolExecutor-3_0) - __SPLIT__ 2026-04-17 10:29:09,387 - [56219] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-04-17 10:29:09,393 - [56219] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-17 10:29:09,393 - [56219] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.SubWOIssueRepairLabor: 414 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:29:09,426 - [56219] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 414) into ServiceAuto.SubWOIssueRepairLabor - __SPLIT__ 2026-04-17 10:29:09,915 - [56219] - src.utils.log - INFO - βœ… All 414 rows inserted successfully into ServiceAuto.SubWOIssueRepairLabor in 1 batches - __SPLIT__ 2026-04-17 10:29:09,924 - [56219] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-17 10:29:09,924 - [56219] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.SubWOIssueRepairPart: 207 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:29:09,961 - [56219] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 207) into ServiceAuto.SubWOIssueRepairPart - __SPLIT__ 2026-04-17 10:29:10,445 - [56219] - src.utils.log - INFO - βœ… All 207 rows inserted successfully into ServiceAuto.SubWOIssueRepairPart in 1 batches - __SPLIT__ 2026-04-17 10:29:10,447 - [56219] - src.utils.log - INFO - πŸ” Fetching data: SELECT ss.ServiceSetupId as SetupId, ss.FrequencyScheduleId as setup_frequency_schedule_id, ss.AccountNumber, ss.CompanyId, ss.BillingLocationId, ss.ServiceLocationId, ss.TaxSysName, ss.TermId, ss.TaxPercent, ss.PoNumber, ss.IsTaxExempt, ss.DisplayServiceAsSeparateLineItem, ss.GenerateInvoice, ss.IsGenerateInvoiceforInitalSetup, ss.IsGenerateInvoiceforInitalSetupBilling, ss.IsBilling, t.NetDueIn, ptm.PaymentType, ssb.* FROM ServiceCore.ServiceSetup ss LEFT JOIN ServiceCore.ServiceSetupBilling ssb ON ss.ServiceSetupId = ssb.ServiceSetupId LEFT JOIN Billing.PaymentTypeMaster ptm ON ptm.PaymentTypeMasterId = ssb.PaymentTypeMasterId left join Billing.Term t on ss.TermId = t.TermId WHERE ss.ServiceSetupId = 95819... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:29:10,476 - [56219] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-17 10:29:10,482 - [56219] - src.utils.log - INFO - Size of Transaction: 207 - __SPLIT__ 2026-04-17 10:29:10,483 - [56219] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 207 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:29:10,530 - [56219] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 207) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-04-17 10:29:10,857 - [56219] - src.utils.log - INFO - βœ… All 207 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-04-17 10:29:10,870 - [56219] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-04-17 10:29:10,871 - [56219] - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionId, ModifiedBy, TransactionDate as InvoiceDate from Billing.[Transaction] t WHERE t.ModifiedBy in (12345678910, 12345678911, 12345678912, 12345678913, 12345678914, 12345678915, 12345678916, 12345678917, 12345678918, 12345678919, 12345678920, 12345678921, 12345678922, 12345678923, 12345678924, 12345678925, 12345678926, 12345678927, 12345678928, 12345678929, 12345678930, 12345678931, 12345678932, 12345678933, 12345678934, 12345678935, 12345678936, 12345678937, 12345678938, 12345678939, 12345678940, 12345678941, 12345678942, 12345678943, 12345678944, 12345678945, 12345678946, 12345678947, 12345678948, 12345678949, 12345678950, 12345678951, 12345678952, 12345678953, 12345678954, 12345678955, 12345678956, 12345678957, 12345678958, 12345678959, 12345678960, 12345678961, 12345678962, 12345678963, 12345678964, 12345678965, 12345678966, 12345678967, 12345678968, 12345678969, 12345678970, 12345678971, 12345678972, 12345678973, 12345678974, 12345678975, 12345678976, 12345678977, 12345678978, 12345678979, 12345678980, 12345678981, 12345678982, 12345678983, 12345678984, 12345678985, 12345678986, 12345678987, 12345678988, 12345678989, 12345678990, 12345678991, 12345678992, 12345678993, 12345678994, 12345678995, 12345678996, 12345678997, 12345678998, 12345678999, 12345679000, 12345679001, 12345679002, 12345679003, 12345679004, 12345679005, 12345679006, 12345679007, 12345679008, 12345679009, 12345679010, 12345679011, 12345679012, 12345679013, 12345679014, 12345679015, 12345679016, 12345679017, 12345679018, 12345679019, 12345679020, 12345679021, 12345679022, 12345679023, 12345679024, 12345679025, 12345679026, 12345679027, 12345679028, 12345679029, 12345679030, 12345679031, 12345679032, 12345679033, 12345679034, 12345679035, 12345679036, 12345679037, 12345679038, 12345679039, 12345679040, 12345679041, 12345679042, 12345679043, 12345679044, 12345679045, 12345679046, 12345679047, 12345679048, 12345679049, 12345679050, 12345679051, 12345679052, 12345679053, 12345679054, 12345679055, 12345679056, 12345679057, 12345679058, 12345679059, 12345679060, 12345679061, 12345679062, 12345679063, 12345679064, 12345679065, 12345679066, 12345679067, 12345679068, 12345679069, 12345679070, 12345679071, 12345679072, 12345679073, 12345679074, 12345679075, 12345679076, 12345679077, 12345679078, 12345679079, 12345679080, 12345679081, 12345679082, 12345679083, 12345679084, 12345679085, 12345679086, 12345679087, 12345679088, 12345679089, 12345679090, 12345679091, 12345679092, 12345679093, 12345679094, 12345679095, 12345679096, 12345679097, 12345679098, 12345679099, 12345679100, 12345679101, 12345679102, 12345679103, 12345679104, 12345679105, 12345679106, 12345679107, 12345679108, 12345679109, 12345679110, 12345679111, 12345679112, 12345679113, 12345679114, 12345679115, 12345679116) and t.CompanyId = 146 AND t.TransactionType ='Invoice' AND t.CreatedDate = '2026-04-17 06:29:10.477';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:29:10,970 - [56219] - src.utils.log - INFO - βœ… Fetched 207 rows - __SPLIT__ 2026-04-17 10:29:10,973 - [56219] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 95819;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:29:11,003 - [56219] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-17 10:29:11,018 - [56219] - src.utils.log - INFO - πŸ“ Executing: UPDATE Billing.[Transaction] SET ModifiedBy = NULL WHERE ModifiedBy IN (12345678910,12345678911,12345678912,12345678913,12345678914,12345678915,12345678916,12345678917,12345678918,12345678919,12345678920,12345678921,12345678922,12345678923,12345678924,12345678925,12345678926,12345678927,12345678928,12345678929,12345678930,12345678931,12345678932,12345678933,12345678934,12345678935,12345678936,12345678937,12345678938,12345678939,12345678940,12345678941,12345678942,12345678943,12345678944,12345678945,12345678946,12345678947,12345678948,12345678949,12345678950,12345678951,12345678952,12345678953,12345678954,12345678955,12345678956,12345678957,12345678958,12345678959,12345678960,12345678961,12345678962,12345678963,12345678964,12345678965,12345678966,12345678967,12345678968,12345678969,12345678970,12345678971,12345678972,12345678973,12345678974,12345678975,12345678976,12345678977,12345678978,12345678979,12345678980,12345678981,12345678982,12345678983,12345678984,12345678985,12345678986,12345678987,12345678988,12345678989,12345678990,12345678991,12345678992,12345678993,12345678994,12345678995,12345678996,12345678997,12345678998,12345678999,12345679000,12345679001,12345679002,12345679003,12345679004,12345679005,12345679006,12345679007,12345679008,12345679009,12345679010,12345679011,12345679012,12345679013,12345679014,12345679015,12345679016,12345679017,12345679018,12345679019,12345679020,12345679021,12345679022,12345679023,12345679024,12345679025,12345679026,12345679027,12345679028,12345679029,12345679030,12345679031,12345679032,12345679033,12345679034,12345679035,12345679036,12345679037,12345679038,12345679039,12345679040,12345679041,12345679042,12345679043,12345679044,12345679045,12345679046,12345679047,12345679048,12345679049,12345679050,12345679051,12345679052,12345679053,12345679054,12345679055,12345679056,12345679057,12345679058,12345679059,12345679060,12345679061,12345679062,12345679063,12345679064,12345679065,12345679066,12345679067,12345679068,12345679069,12345679070,12345679071,12345679072,12345679073,12345679074,12345679075,12345679076,12345679077,12345679078,12345679079,12345679080,12345679081,12345679082,12345679083,12345679084,12345679085,12345679086,12345679087,12345679088,12345679089,12345679090,12345679091,12345679092,12345679093,12345679094,12345679095,12345679096,12345679097,12345679098,12345679099,12345679100,12345679101,12345679102,12345679103,12345679104,12345679105,12345679106,12345679107,12345679108,12345679109,12345679110,12345679111,12345679112,12345679113,12345679114,12345679115,12345679116) AND CreatedDate = '2026-04-17 06:29:10.477'; ... (Thread: ThreadPoolExecutor-4_0) - __SPLIT__ 2026-04-17 10:29:11,107 - [56219] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-04-17 10:29:11,112 - [56219] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-17 10:29:11,112 - [56219] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 207 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:29:11,149 - [56219] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 207) into Billing.Invoice - __SPLIT__ 2026-04-17 10:29:11,818 - [56219] - src.utils.log - INFO - βœ… All 207 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-04-17 10:29:11,819 - [56219] - src.utils.log - INFO - πŸ” Fetching data: SELECT InvoiceId, WorkOrderNo FROM Billing.Invoice i WHERE i.WorkOrderNo in ('53911', '53910', '53909', '53908', '53907', '53906', '53905', '53904', '53903', '53902', '53901', '53900', '53899', '53898', '53897', '53896', '53895', '53894', '53893', '53892', '53891', '53890', '53889', '53888', '53887', '53886', '53885', '53884', '53883', '53882', '53881', '53880', '53879', '53878', '53877', '53876', '53875', '53874', '53873', '53872', '53871', '53870', '53869', '53868', '53867', '53866', '53865', '53864', '53863', '53862', '53861', '53860', '53859', '53858', '53857', '53856', '53855', '53854', '53853', '53852', '53851', '53850', '53849', '53848', '53847', '53846', '53845', '53844', '53843', '53842', '53841', '53840', '53839', '53838', '53837', '53836', '53835', '53834', '53833', '53832', '53831', '53830', '53829', '53828', '53827', '53826', '53825', '53824', '53823', '53822', '53821', '53820', '53819', '53818', '53817', '53816', '53815', '53814', '53813', '53812', '53811', '53810', '53809', '53808', '53807', '53806', '53805', '53804', '53803', '53802', '53801', '53800', '53799', '53798', '53797', '53796', '53795', '53794', '53793', '53792', '53791', '53790', '53789', '53788', '53787', '53786', '53785', '53784', '53783', '53782', '53781', '53780', '53779', '53778', '53777', '53776', '53775', '53774', '53773', '53772', '53771', '53770', '53769', '53768', '53767', '53766', '53765', '53764', '53763', '53762', '53761', '53760', '53759', '53758', '53757', '53756', '53755', '53754', '53753', '53752', '53751', '53750', '53749', '53748', '53747', '53746', '53745', '53744', '53743', '53742', '53741', '53740', '53739', '53738', '53737', '53736', '53735', '53734', '53733', '53732', '53731', '53730', '53729', '53728', '53727', '53726', '53725', '53724', '53723', '53722', '53721', '53720', '53719', '53718', '53717', '53716', '53715', '53714', '53713', '53712', '53711', '53710', '53709', '53708', '53707', '53706', '53705')... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:29:11,924 - [56219] - src.utils.log - INFO - βœ… Fetched 414 rows - __SPLIT__ 2026-04-17 10:29:11,933 - [56219] - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceSetupId, sss.NonStdSoldServiceId as SoldServiceNonStandardId, sss.Qty as Quantity, sss.Price as Rate, sss.IsTaxable, sm.Name as NonStandardServiceName, sm.Description , sm.ServiceMasterId as ServiceId FROM ServiceCore.ServiceSetupServices sss join ServiceCore.ServiceMaster sm on sm.ServiceMasterId = sss.ServiceId where ServiceSetupId = 95819 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:29:11,960 - [56219] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-17 10:29:11,961 - [56219] - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceSetupId, sss.NonStdSoldServiceId as SoldServiceNonStandardId, sss.Qty as Quantity, sss.Price as Rate, sss.IsTaxable, sm.Name as NonStandardServiceName, sm.Description , sm.ServiceMasterId as ServiceId FROM ServiceCore.ServiceSetupInitialServices sss join ServiceCore.ServiceMaster sm on sm.ServiceMasterId = sss.ServiceId where ServiceSetupId = 95819 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:29:11,989 - [56219] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-17 10:29:11,989 - [56219] - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceSetupId, sss.NonStdSoldServiceId as SoldServiceNonStandardId, sss.Qty as Quantity, sss.Price as Rate, sss.IsTaxable, sm.servicename as NonStandardServiceName, sm.Description , sss.ServiceId FROM ServiceCore.ServiceSetupServices sss join ServiceCore.SoldServiceNonStandard sm on sm.SoldServiceNonStandardId = sss.NonStdSoldServiceId where ServiceSetupId = 95819 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:29:12,018 - [56219] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-17 10:29:12,018 - [56219] - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceSetupId, sss.NonStdSoldServiceId as SoldServiceNonStandardId, sss.Qty as Quantity, sss.Price as Rate, sss.IsTaxable, sm.servicename as NonStandardServiceName, sm.Description , sss.ServiceId FROM ServiceCore.ServiceSetupInitialServices sss join ServiceCore.SoldServiceNonStandard sm on sm.SoldServiceNonStandardId = sss.NonStdSoldServiceId where ServiceSetupId = 95819 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:29:12,046 - [56219] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-17 10:29:12,059 - [56219] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 95819;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:29:12,089 - [56219] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-17 10:29:12,095 - [56219] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId, AppliedDiscountAmt as AppliedDiscountAmount,IsActive ,ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 95819;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:29:12,123 - [56219] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-17 10:29:12,125 - [56219] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId,IsActive,DiscountAmount, IsDiscountPercent,DiscountPercent,DiscountDescription , ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 95819;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:29:12,154 - [56219] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-17 10:29:12,154 - [56219] - src.utils.log - INFO - Sequential Insertion in invoice tables begin - __SPLIT__ 2026-04-17 10:29:12,154 - [56219] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.AccountDiscountSetup: - __SPLIT__ 2026-04-17 10:29:12,154 - [56219] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-17 10:29:12,154 - [56219] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceCharges: 414 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:29:12,189 - [56219] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 414) into Billing.InvoiceCharges - __SPLIT__ 2026-04-17 10:29:12,779 - [56219] - src.utils.log - INFO - βœ… All 414 rows inserted successfully into Billing.InvoiceCharges in 1 batches - __SPLIT__ 2026-04-17 10:29:12,779 - [56219] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.DiscountApplied: - __SPLIT__ 2026-04-17 10:29:12,779 - [56219] - src.utils.log - INFO - Invoice Publish Done - __SPLIT__ 2026-04-17 10:29:12,780 - [56219] - src.utils.log - INFO - Updating Next GenerationDate - __SPLIT__ 2026-04-17 10:29:12,780 - [56219] - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, MAX(NextWorkOrderGenerationDate) AS MaxNextWorkOrderGeneration FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 56219 GROUP BY ServiceSetupId; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:29:12,810 - [56219] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-17 10:29:12,816 - [56219] - src.utils.log - INFO - πŸ”„ Updating next gen date sequentially: inside update_next_workorder_generation - __SPLIT__ 2026-04-17 10:29:12,831 - [56219] - src.utils.log - INFO - πŸ›  Creating temp table #tbl_4bd6b4fd0e - __SPLIT__ 2026-04-17 10:29:12,861 - [56219] - src.utils.log - INFO - πŸ“Œ Bulk inserting 1 rows into #tbl_4bd6b4fd0e - __SPLIT__ 2026-04-17 10:29:12,889 - [56219] - src.utils.log - INFO - πŸ” Running MERGE update to apply changes - __SPLIT__ 2026-04-17 10:29:12,908 - [56219] - src.utils.log - INFO - βœ” SQL reported affected rows: 1 - __SPLIT__ 2026-04-17 10:29:12,926 - [56219] - src.utils.log - INFO - πŸ” Verified successfully updated 1 rows via #tbl_4bd6b4fd0e - __SPLIT__ 2026-04-17 10:29:12,926 - [56219] - src.utils.log - INFO - πŸŽ‰ Successfully updated NextGenerationDate using temp table #tbl_4bd6b4fd0e - __SPLIT__ 2026-04-17 10:29:12,926 - [56219] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 56219 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:29:12,953 - [56219] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-17 10:29:12,954 - [56219] - src.utils.log - INFO - Sequential deletion from temp tables begin - __SPLIT__ 2026-04-17 10:29:12,954 - [56219] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId in (507853, 507854, 507855, 507856, 507857, 507858, 507859, 507860, 507861, 507862, 507863, 507864, 507865, 507866, 507867, 507868, 507869, 507870, 507871, 507872, 507873, 507874, 507875, 507876, 507877, 507878, 507879, 507880, 507881, 507882, 507883, 507884, 507885, 507886, 507887, 507888, 507889, 507890, 507891, 507892, 507893, 507894, 507895, 507896, 507897, 507898, 507899, 507900, 507901, 507902, 507903, 507904, 507905, 507906, 507907, 507908, 507909, 507910, 507911, 507912, 507913, 507914, 507915, 507916, 507917, 507918, 507919, 507920, 507921, 507922, 507923, 507924, 507925, 507926, 507927, 507928, 507929, 507930, 507931, 507932, 507933, 507934, 507935, 507936, 507937, 507938, 507939, 507940, 507941, 507942, 507943, 507944, 507945, 507946, 507947, 507948, 507949, 507950, 507951, 507952, 507953, 507954, 507955, 507956, 507957, 507958, 507959, 507960, 507961, 507962, 507963, 507964, 507965, 507966, 507967, 507968, 507969, 507970, 507971, 507972, 507973, 507974, 507975, 507976, 507977, 507978, 507979, 507980, 507981, 507982, 507983, 507984, 507985, 507986, 507987, 507988, 507989, 507990, 507991, 507992, 507993, 507994, 507995, 507996, 507997, 507998, 507999, 508000, 508001, 508002, 508003, 508004, 508005, 508006, 508007, 508008, 508009, 508010, 508011, 508012, 508013, 508014, 508015, 508016, 508017, 508018, 508019, 508020, 508021, 508022, 508023, 508024, 508025, 508026, 508027, 508028, 508029, 508030, 508031, 508032, 508033, 508034, 508035, 508036, 508037, 508038, 508039, 508040, 508041, 508042, 508043, 508044, 508045, 508046, 508047, 508048, 508049, 508050, 508051, 508052, 508053, 508054, 508055, 508056, 508057, 508058, 508059) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:29:13,009 - [56219] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-17 10:29:13,009 - [56219] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId in (507853, 507854, 507855, 507856, 507857, 507858, 507859, 507860, 507861, 507862, 507863, 507864, 507865, 507866, 507867, 507868, 507869, 507870, 507871, 507872, 507873, 507874, 507875, 507876, 507877, 507878, 507879, 507880, 507881, 507882, 507883, 507884, 507885, 507886, 507887, 507888, 507889, 507890, 507891, 507892, 507893, 507894, 507895, 507896, 507897, 507898, 507899, 507900, 507901, 507902, 507903, 507904, 507905, 507906, 507907, 507908, 507909, 507910, 507911, 507912, 507913, 507914, 507915, 507916, 507917, 507918, 507919, 507920, 507921, 507922, 507923, 507924, 507925, 507926, 507927, 507928, 507929, 507930, 507931, 507932, 507933, 507934, 507935, 507936, 507937, 507938, 507939, 507940, 507941, 507942, 507943, 507944, 507945, 507946, 507947, 507948, 507949, 507950, 507951, 507952, 507953, 507954, 507955, 507956, 507957, 507958, 507959, 507960, 507961, 507962, 507963, 507964, 507965, 507966, 507967, 507968, 507969, 507970, 507971, 507972, 507973, 507974, 507975, 507976, 507977, 507978, 507979, 507980, 507981, 507982, 507983, 507984, 507985, 507986, 507987, 507988, 507989, 507990, 507991, 507992, 507993, 507994, 507995, 507996, 507997, 507998, 507999, 508000, 508001, 508002, 508003, 508004, 508005, 508006, 508007, 508008, 508009, 508010, 508011, 508012, 508013, 508014, 508015, 508016, 508017, 508018, 508019, 508020, 508021, 508022, 508023, 508024, 508025, 508026, 508027, 508028, 508029, 508030, 508031, 508032, 508033, 508034, 508035, 508036, 508037, 508038, 508039, 508040, 508041, 508042, 508043, 508044, 508045, 508046, 508047, 508048, 508049, 508050, 508051, 508052, 508053, 508054, 508055, 508056, 508057, 508058, 508059) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:29:13,056 - [56219] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-17 10:29:13,056 - [56219] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId in (507853, 507854, 507855, 507856, 507857, 507858, 507859, 507860, 507861, 507862, 507863, 507864, 507865, 507866, 507867, 507868, 507869, 507870, 507871, 507872, 507873, 507874, 507875, 507876, 507877, 507878, 507879, 507880, 507881, 507882, 507883, 507884, 507885, 507886, 507887, 507888, 507889, 507890, 507891, 507892, 507893, 507894, 507895, 507896, 507897, 507898, 507899, 507900, 507901, 507902, 507903, 507904, 507905, 507906, 507907, 507908, 507909, 507910, 507911, 507912, 507913, 507914, 507915, 507916, 507917, 507918, 507919, 507920, 507921, 507922, 507923, 507924, 507925, 507926, 507927, 507928, 507929, 507930, 507931, 507932, 507933, 507934, 507935, 507936, 507937, 507938, 507939, 507940, 507941, 507942, 507943, 507944, 507945, 507946, 507947, 507948, 507949, 507950, 507951, 507952, 507953, 507954, 507955, 507956, 507957, 507958, 507959, 507960, 507961, 507962, 507963, 507964, 507965, 507966, 507967, 507968, 507969, 507970, 507971, 507972, 507973, 507974, 507975, 507976, 507977, 507978, 507979, 507980, 507981, 507982, 507983, 507984, 507985, 507986, 507987, 507988, 507989, 507990, 507991, 507992, 507993, 507994, 507995, 507996, 507997, 507998, 507999, 508000, 508001, 508002, 508003, 508004, 508005, 508006, 508007, 508008, 508009, 508010, 508011, 508012, 508013, 508014, 508015, 508016, 508017, 508018, 508019, 508020, 508021, 508022, 508023, 508024, 508025, 508026, 508027, 508028, 508029, 508030, 508031, 508032, 508033, 508034, 508035, 508036, 508037, 508038, 508039, 508040, 508041, 508042, 508043, 508044, 508045, 508046, 508047, 508048, 508049, 508050, 508051, 508052, 508053, 508054, 508055, 508056, 508057, 508058, 508059) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:29:13,100 - [56219] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-17 10:29:13,100 - [56219] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId in (507853, 507854, 507855, 507856, 507857, 507858, 507859, 507860, 507861, 507862, 507863, 507864, 507865, 507866, 507867, 507868, 507869, 507870, 507871, 507872, 507873, 507874, 507875, 507876, 507877, 507878, 507879, 507880, 507881, 507882, 507883, 507884, 507885, 507886, 507887, 507888, 507889, 507890, 507891, 507892, 507893, 507894, 507895, 507896, 507897, 507898, 507899, 507900, 507901, 507902, 507903, 507904, 507905, 507906, 507907, 507908, 507909, 507910, 507911, 507912, 507913, 507914, 507915, 507916, 507917, 507918, 507919, 507920, 507921, 507922, 507923, 507924, 507925, 507926, 507927, 507928, 507929, 507930, 507931, 507932, 507933, 507934, 507935, 507936, 507937, 507938, 507939, 507940, 507941, 507942, 507943, 507944, 507945, 507946, 507947, 507948, 507949, 507950, 507951, 507952, 507953, 507954, 507955, 507956, 507957, 507958, 507959, 507960, 507961, 507962, 507963, 507964, 507965, 507966, 507967, 507968, 507969, 507970, 507971, 507972, 507973, 507974, 507975, 507976, 507977, 507978, 507979, 507980, 507981, 507982, 507983, 507984, 507985, 507986, 507987, 507988, 507989, 507990, 507991, 507992, 507993, 507994, 507995, 507996, 507997, 507998, 507999, 508000, 508001, 508002, 508003, 508004, 508005, 508006, 508007, 508008, 508009, 508010, 508011, 508012, 508013, 508014, 508015, 508016, 508017, 508018, 508019, 508020, 508021, 508022, 508023, 508024, 508025, 508026, 508027, 508028, 508029, 508030, 508031, 508032, 508033, 508034, 508035, 508036, 508037, 508038, 508039, 508040, 508041, 508042, 508043, 508044, 508045, 508046, 508047, 508048, 508049, 508050, 508051, 508052, 508053, 508054, 508055, 508056, 508057, 508058, 508059) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:29:13,140 - [56219] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-17 10:29:13,140 - [56219] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId in (507853, 507854, 507855, 507856, 507857, 507858, 507859, 507860, 507861, 507862, 507863, 507864, 507865, 507866, 507867, 507868, 507869, 507870, 507871, 507872, 507873, 507874, 507875, 507876, 507877, 507878, 507879, 507880, 507881, 507882, 507883, 507884, 507885, 507886, 507887, 507888, 507889, 507890, 507891, 507892, 507893, 507894, 507895, 507896, 507897, 507898, 507899, 507900, 507901, 507902, 507903, 507904, 507905, 507906, 507907, 507908, 507909, 507910, 507911, 507912, 507913, 507914, 507915, 507916, 507917, 507918, 507919, 507920, 507921, 507922, 507923, 507924, 507925, 507926, 507927, 507928, 507929, 507930, 507931, 507932, 507933, 507934, 507935, 507936, 507937, 507938, 507939, 507940, 507941, 507942, 507943, 507944, 507945, 507946, 507947, 507948, 507949, 507950, 507951, 507952, 507953, 507954, 507955, 507956, 507957, 507958, 507959, 507960, 507961, 507962, 507963, 507964, 507965, 507966, 507967, 507968, 507969, 507970, 507971, 507972, 507973, 507974, 507975, 507976, 507977, 507978, 507979, 507980, 507981, 507982, 507983, 507984, 507985, 507986, 507987, 507988, 507989, 507990, 507991, 507992, 507993, 507994, 507995, 507996, 507997, 507998, 507999, 508000, 508001, 508002, 508003, 508004, 508005, 508006, 508007, 508008, 508009, 508010, 508011, 508012, 508013, 508014, 508015, 508016, 508017, 508018, 508019, 508020, 508021, 508022, 508023, 508024, 508025, 508026, 508027, 508028, 508029, 508030, 508031, 508032, 508033, 508034, 508035, 508036, 508037, 508038, 508039, 508040, 508041, 508042, 508043, 508044, 508045, 508046, 508047, 508048, 508049, 508050, 508051, 508052, 508053, 508054, 508055, 508056, 508057, 508058, 508059) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:29:13,180 - [56219] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-17 10:29:13,180 - [56219] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (507853, 507854, 507855, 507856, 507857, 507858, 507859, 507860, 507861, 507862, 507863, 507864, 507865, 507866, 507867, 507868, 507869, 507870, 507871, 507872, 507873, 507874, 507875, 507876, 507877, 507878, 507879, 507880, 507881, 507882, 507883, 507884, 507885, 507886, 507887, 507888, 507889, 507890, 507891, 507892, 507893, 507894, 507895, 507896, 507897, 507898, 507899, 507900, 507901, 507902, 507903, 507904, 507905, 507906, 507907, 507908, 507909, 507910, 507911, 507912, 507913, 507914, 507915, 507916, 507917, 507918, 507919, 507920, 507921, 507922, 507923, 507924, 507925, 507926, 507927, 507928, 507929, 507930, 507931, 507932, 507933, 507934, 507935, 507936, 507937, 507938, 507939, 507940, 507941, 507942, 507943, 507944, 507945, 507946, 507947, 507948, 507949, 507950, 507951, 507952, 507953, 507954, 507955, 507956, 507957, 507958, 507959, 507960, 507961, 507962, 507963, 507964, 507965, 507966, 507967, 507968, 507969, 507970, 507971, 507972, 507973, 507974, 507975, 507976, 507977, 507978, 507979, 507980, 507981, 507982, 507983, 507984, 507985, 507986, 507987, 507988, 507989, 507990, 507991, 507992, 507993, 507994, 507995, 507996, 507997, 507998, 507999, 508000, 508001, 508002, 508003, 508004, 508005, 508006, 508007, 508008, 508009, 508010, 508011, 508012, 508013, 508014, 508015, 508016, 508017, 508018, 508019, 508020, 508021, 508022, 508023, 508024, 508025, 508026, 508027, 508028, 508029, 508030, 508031, 508032, 508033, 508034, 508035, 508036, 508037, 508038, 508039, 508040, 508041, 508042, 508043, 508044, 508045, 508046, 508047, 508048, 508049, 508050, 508051, 508052, 508053, 508054, 508055, 508056, 508057, 508058, 508059) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:29:13,251 - [56219] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-17 10:29:13,251 - [56219] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId in (507853, 507854, 507855, 507856, 507857, 507858, 507859, 507860, 507861, 507862, 507863, 507864, 507865, 507866, 507867, 507868, 507869, 507870, 507871, 507872, 507873, 507874, 507875, 507876, 507877, 507878, 507879, 507880, 507881, 507882, 507883, 507884, 507885, 507886, 507887, 507888, 507889, 507890, 507891, 507892, 507893, 507894, 507895, 507896, 507897, 507898, 507899, 507900, 507901, 507902, 507903, 507904, 507905, 507906, 507907, 507908, 507909, 507910, 507911, 507912, 507913, 507914, 507915, 507916, 507917, 507918, 507919, 507920, 507921, 507922, 507923, 507924, 507925, 507926, 507927, 507928, 507929, 507930, 507931, 507932, 507933, 507934, 507935, 507936, 507937, 507938, 507939, 507940, 507941, 507942, 507943, 507944, 507945, 507946, 507947, 507948, 507949, 507950, 507951, 507952, 507953, 507954, 507955, 507956, 507957, 507958, 507959, 507960, 507961, 507962, 507963, 507964, 507965, 507966, 507967, 507968, 507969, 507970, 507971, 507972, 507973, 507974, 507975, 507976, 507977, 507978, 507979, 507980, 507981, 507982, 507983, 507984, 507985, 507986, 507987, 507988, 507989, 507990, 507991, 507992, 507993, 507994, 507995, 507996, 507997, 507998, 507999, 508000, 508001, 508002, 508003, 508004, 508005, 508006, 508007, 508008, 508009, 508010, 508011, 508012, 508013, 508014, 508015, 508016, 508017, 508018, 508019, 508020, 508021, 508022, 508023, 508024, 508025, 508026, 508027, 508028, 508029, 508030, 508031, 508032, 508033, 508034, 508035, 508036, 508037, 508038, 508039, 508040, 508041, 508042, 508043, 508044, 508045, 508046, 508047, 508048, 508049, 508050, 508051, 508052, 508053, 508054, 508055, 508056, 508057, 508058, 508059) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:29:13,290 - [56219] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-17 10:29:13,290 - [56219] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (507853, 507854, 507855, 507856, 507857, 507858, 507859, 507860, 507861, 507862, 507863, 507864, 507865, 507866, 507867, 507868, 507869, 507870, 507871, 507872, 507873, 507874, 507875, 507876, 507877, 507878, 507879, 507880, 507881, 507882, 507883, 507884, 507885, 507886, 507887, 507888, 507889, 507890, 507891, 507892, 507893, 507894, 507895, 507896, 507897, 507898, 507899, 507900, 507901, 507902, 507903, 507904, 507905, 507906, 507907, 507908, 507909, 507910, 507911, 507912, 507913, 507914, 507915, 507916, 507917, 507918, 507919, 507920, 507921, 507922, 507923, 507924, 507925, 507926, 507927, 507928, 507929, 507930, 507931, 507932, 507933, 507934, 507935, 507936, 507937, 507938, 507939, 507940, 507941, 507942, 507943, 507944, 507945, 507946, 507947, 507948, 507949, 507950, 507951, 507952, 507953, 507954, 507955, 507956, 507957, 507958, 507959, 507960, 507961, 507962, 507963, 507964, 507965, 507966, 507967, 507968, 507969, 507970, 507971, 507972, 507973, 507974, 507975, 507976, 507977, 507978, 507979, 507980, 507981, 507982, 507983, 507984, 507985, 507986, 507987, 507988, 507989, 507990, 507991, 507992, 507993, 507994, 507995, 507996, 507997, 507998, 507999, 508000, 508001, 508002, 508003, 508004, 508005, 508006, 508007, 508008, 508009, 508010, 508011, 508012, 508013, 508014, 508015, 508016, 508017, 508018, 508019, 508020, 508021, 508022, 508023, 508024, 508025, 508026, 508027, 508028, 508029, 508030, 508031, 508032, 508033, 508034, 508035, 508036, 508037, 508038, 508039, 508040, 508041, 508042, 508043, 508044, 508045, 508046, 508047, 508048, 508049, 508050, 508051, 508052, 508053, 508054, 508055, 508056, 508057, 508058, 508059) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:29:13,631 - [56219] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-17 10:29:13,632 - [56219] - src.utils.log - INFO - Work order published ids: (507853, 507854, 507855, 507856, 507857, 507858, 507859, 507860, 507861, 507862, 507863, 507864, 507865, 507866, 507867, 507868, 507869, 507870, 507871, 507872, 507873, 507874, 507875, 507876, 507877, 507878, 507879, 507880, 507881, 507882, 507883, 507884, 507885, 507886, 507887, 507888, 507889, 507890, 507891, 507892, 507893, 507894, 507895, 507896, 507897, 507898, 507899, 507900, 507901, 507902, 507903, 507904, 507905, 507906, 507907, 507908, 507909, 507910, 507911, 507912, 507913, 507914, 507915, 507916, 507917, 507918, 507919, 507920, 507921, 507922, 507923, 507924, 507925, 507926, 507927, 507928, 507929, 507930, 507931, 507932, 507933, 507934, 507935, 507936, 507937, 507938, 507939, 507940, 507941, 507942, 507943, 507944, 507945, 507946, 507947, 507948, 507949, 507950, 507951, 507952, 507953, 507954, 507955, 507956, 507957, 507958, 507959, 507960, 507961, 507962, 507963, 507964, 507965, 507966, 507967, 507968, 507969, 507970, 507971, 507972, 507973, 507974, 507975, 507976, 507977, 507978, 507979, 507980, 507981, 507982, 507983, 507984, 507985, 507986, 507987, 507988, 507989, 507990, 507991, 507992, 507993, 507994, 507995, 507996, 507997, 507998, 507999, 508000, 508001, 508002, 508003, 508004, 508005, 508006, 508007, 508008, 508009, 508010, 508011, 508012, 508013, 508014, 508015, 508016, 508017, 508018, 508019, 508020, 508021, 508022, 508023, 508024, 508025, 508026, 508027, 508028, 508029, 508030, 508031, 508032, 508033, 508034, 508035, 508036, 508037, 508038, 508039, 508040, 508041, 508042, 508043, 508044, 508045, 508046, 508047, 508048, 508049, 508050, 508051, 508052, 508053, 508054, 508055, 508056, 508057, 508058, 508059) - __SPLIT__ 2026-04-17 10:29:13,632 - [56219] - src.utils.log - INFO - Time took to perform operation in publishing [56219]: 10.49 - __SPLIT__ 2026-04-17 10:29:13,632 - [56219] - src.utils.log - INFO - Publish Completed for GenerateWorkOrderHistoryId: [56219] - __SPLIT__ 2026-04-17 10:29:13,632 - [56219] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-04-17 06:29:13.632' WHERE CompanyId = 146 AND GenerateWorkOrderHistoryId = 56219;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:29:13,661 - [56219] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-04-17 10:33:41,069 - 56220 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=56220 - __SPLIT__ 2026-04-17 10:33:41,070 - 56220 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 56220 - __SPLIT__ 2026-04-17 10:33:41,071 - 56220 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-04-17 10:33:41,071 - 56220 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:33:41,218 - 56220 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-17 10:33:41,218 - 56220 - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-04-17 10:33:41,218 - 56220 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 56220;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:33:41,239 - 56220 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-04-17 10:33:41,239 - 56220 - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.RecurringServicePrice, gw.StartDate, gw.EndDate, gw.CreatedBy AS NewCreatedBy, gw.RouteIds, ss.* FROM ServiceCore.GenerateWorkOrderHistory gw JOIN ServiceCore.ServiceSetup ss ON gw.CompanyId = ss.CompanyId AND ( (ss.NextGenerationDate <= gw.EndDate AND ss.NextGenerationDate >= gw.StartDate) OR ss.NextGenerationDate IS NULL) AND (gw.AccountNumber IS NULL OR ss.AccountNumber = gw.AccountNumber) AND (gw.ServiceSetupId IS NULL OR ss.ServiceSetupId = gw.ServiceSetupId)AND (gw.RouteIds IS NULL OR ss.RouteMasterId IN (SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 56220), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 56220), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 56220 AND ss.FrequencyScheduleId IS NOT NULL AND ss.IsActive = 1 AND ss.IsDeleted = 0 AND ss.Status <> 'Canceled';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:33:41,298 - 56220 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-17 10:33:41,299 - 56220 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 56220;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:33:41,321 - 56220 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-17 10:33:41,323 - 56220 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-04-17 10:33:41,324 - 56220 - src.utils.log - INFO - πŸ” Fetching data: SELECT fsd.IntervalDays, fs.CreatedDate ,f.FrequencyId , fs.FrequencyScheduleId, f.[SysName], f.FrequencyValue, f.YearlyOccurrence , fs.ScheduleFormat,fsd.Days, fsd.Weeks, fsd.Months,fsc.[Month] as sch_months, fsd.StartMonth , fsd.DateDay,fsd.DateMonth FROM [ServiceCore].[FrequencyMaster] f inner join [ServiceCore].[FrequencySchedule] fs on fs.FrequencyId = f.FrequencyId left join ServiceCore.FrequencyScheduleCycle fsc on fsc.FrequencyScheduleId = fs.FrequencyScheduleId left join [ServiceCore].[FrequencyScheduleDetail] fsd on fsd.FrequencyScheduleId = fs.FrequencyScheduleId WHERE fsd.FrequencyScheduleId = 13930... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:33:41,353 - 56220 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-17 10:33:41,353 - 56220 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-04-17 10:33:41,356 - 56220 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-04-17 10:33:41,356 - 56220 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 95820;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:33:41,378 - 56220 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-17 10:33:41,379 - 56220 - src.utils.log - INFO - πŸ” Fetching data: select ServiceDate, ServiceSetupId, IsInitial from serviceCore.WorkOrder wo inner join ServiceCore.WorkOrderStatus wos on wo.WoStatusId = wos.WoStatusId where ServiceDate >= '2026-04-17 00:00:00' and ServiceDate <= '2026-05-31 00:00:00' and ServiceSetupId = 95820 and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:33:41,410 - 56220 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-17 10:33:41,471 - 56220 - src.utils.log - INFO - Generating work orders for setup: 95820 - __SPLIT__ 2026-04-17 10:33:41,490 - 56220 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 11513;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:33:41,511 - 56220 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-17 10:33:41,517 - 56220 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 11524;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:33:41,539 - 56220 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-17 10:33:41,569 - 56220 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-04-17 10:33:41,575 - 56220 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=146 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:33:41,595 - 56220 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-17 10:33:41,597 - 56220 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-04-17 10:33:41,597 - 56220 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-04-17 10:33:41,597 - 56220 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 95820 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:33:41,637 - 56220 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-17 10:33:41,637 - 56220 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 95820 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:33:41,675 - 56220 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-17 10:33:41,675 - 56220 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 95820 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:33:41,714 - 56220 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-17 10:33:41,714 - 56220 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 95820 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:33:41,751 - 56220 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-17 10:33:41,751 - 56220 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 95820 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:33:41,789 - 56220 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-17 10:33:41,789 - 56220 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 95820 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:33:41,826 - 56220 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-17 10:33:41,827 - 56220 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 95820 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:33:41,852 - 56220 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-17 10:33:41,852 - 56220 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 95820 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:33:41,913 - 56220 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-17 10:33:41,913 - 56220 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-17 10:33:41,913 - 56220 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 3 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:33:41,962 - 56220 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-04-17 10:33:42,083 - 56220 - src.utils.log - INFO - βœ… All 3 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-04-17 10:33:42,084 - 56220 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 3 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-04-17 15:40:13.228' and ServiceSetupId = 95820... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:33:42,124 - 56220 - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-04-17 10:33:42,124 - 56220 - src.utils.log - INFO - Id's of work order inserted to DB: [508060 508061 508062] - __SPLIT__ 2026-04-17 10:33:42,125 - 56220 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 95820;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:33:42,147 - 56220 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-17 10:33:42,147 - 56220 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-04-17 10:33:42,147 - 56220 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId = 95820... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:33:42,170 - 56220 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-04-17 10:33:42,170 - 56220 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId = 95820... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:33:42,192 - 56220 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-04-17 10:33:42,198 - 56220 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId = 95820... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:33:42,223 - 56220 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-04-17 10:33:42,224 - 56220 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId = 95820... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:33:42,244 - 56220 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-17 10:33:42,245 - 56220 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId = 95820... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:33:42,265 - 56220 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-17 10:33:42,266 - 56220 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId = 95820;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:33:42,288 - 56220 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-04-17 10:33:42,289 - 56220 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId = 95820;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:33:42,311 - 56220 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-17 10:33:42,311 - 56220 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId = 95820;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:33:42,487 - 56220 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-17 10:33:42,487 - 56220 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId = 95820;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:33:42,509 - 56220 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-17 10:33:42,595 - 56220 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-04-17 10:33:42,595 - 56220 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-04-17 10:33:42,595 - 56220 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-04-17 10:33:42,595 - 56220 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.CommunicationPreferencesServiceReportNotification: - __SPLIT__ 2026-04-17 10:33:42,595 - 56220 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-04-17 10:33:42,595 - 56220 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SetupAutoGenerationSourceMapping: - __SPLIT__ 2026-04-17 10:33:42,596 - 56220 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-04-17 10:33:42,596 - 56220 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-17 10:33:42,597 - 56220 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (508060, 508061, 508062) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:33:42,618 - 56220 - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-04-17 10:33:42,619 - 56220 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationAppliedDiscount: 3 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:33:42,661 - 56220 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into ServiceCore.WorkOrderAutoGenerationAppliedDiscount - __SPLIT__ 2026-04-17 10:33:42,752 - 56220 - src.utils.log - INFO - βœ… All 3 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationAppliedDiscount in 1 batches - __SPLIT__ 2026-04-17 10:33:42,752 - 56220 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-04-17 10:33:42,753 - 56220 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SubWorkOrderAutoGeneration: - __SPLIT__ 2026-04-17 10:33:42,753 - 56220 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-04-17 10:33:42,753 - 56220 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: - __SPLIT__ 2026-04-17 10:33:42,753 - 56220 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-04-17 10:33:42,753 - 56220 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: - __SPLIT__ 2026-04-17 10:33:42,753 - 56220 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-04-17 10:33:42,753 - 56220 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-17 10:33:42,753 - 56220 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (508060, 508061, 508062) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:33:42,773 - 56220 - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-04-17 10:33:42,774 - 56220 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationCrews: 3 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:33:42,813 - 56220 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into ServiceCore.WorkOrderAutoGenerationCrews - __SPLIT__ 2026-04-17 10:33:42,893 - 56220 - src.utils.log - INFO - βœ… All 3 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationCrews in 1 batches - __SPLIT__ 2026-04-17 10:33:42,894 - 56220 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-04-17 10:33:42,894 - 56220 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-17 10:33:42,894 - 56220 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:33:42,922 - 56220 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-04-17 10:33:43,008 - 56220 - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-04-17 10:33:43,008 - 56220 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-04-17 10:33:43,008 - 56220 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-17 10:33:43,008 - 56220 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 4 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:33:43,036 - 56220 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 4) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-04-17 10:33:43,122 - 56220 - src.utils.log - INFO - βœ… All 4 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-04-17 10:33:43,122 - 56220 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-04-17 10:33:43,122 - 56220 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 56220;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:33:43,143 - 56220 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-04-17 10:33:43,143 - 56220 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-04-17 10:33:43,143 - 56220 - src.utils.log - INFO - Time took to perform operation: 2.07 - __SPLIT__ 2026-04-17 10:33:43,143 - 56220 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 56220;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:33:43,163 - 56220 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-04-17 10:33:43,163 - 56220 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET WorkOrderStatusDateTime = '2026-04-17 06:33:43.163' WHERE GenerateWorkOrderHistoryId = 56220;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:33:43,185 - 56220 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-04-17 10:35:07,416 - 56221 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=56221 - __SPLIT__ 2026-04-17 10:35:07,417 - 56221 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 56221 - __SPLIT__ 2026-04-17 10:35:07,418 - 56221 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-04-17 10:35:07,418 - 56221 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:35:07,589 - 56221 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-17 10:35:07,589 - 56221 - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-04-17 10:35:07,589 - 56221 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 56221;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:35:07,614 - 56221 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-04-17 10:35:07,614 - 56221 - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.RecurringServicePrice, gw.StartDate, gw.EndDate, gw.CreatedBy AS NewCreatedBy, gw.RouteIds, ss.* FROM ServiceCore.GenerateWorkOrderHistory gw JOIN ServiceCore.ServiceSetup ss ON gw.CompanyId = ss.CompanyId AND ( (ss.NextGenerationDate <= gw.EndDate AND ss.NextGenerationDate >= gw.StartDate) OR ss.NextGenerationDate IS NULL) AND (gw.AccountNumber IS NULL OR ss.AccountNumber = gw.AccountNumber) AND (gw.ServiceSetupId IS NULL OR ss.ServiceSetupId = gw.ServiceSetupId)AND (gw.RouteIds IS NULL OR ss.RouteMasterId IN (SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 56221), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 56221), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 56221 AND ss.FrequencyScheduleId IS NOT NULL AND ss.IsActive = 1 AND ss.IsDeleted = 0 AND ss.Status <> 'Canceled';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:35:07,677 - 56221 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-17 10:35:07,678 - 56221 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 56221;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:35:07,704 - 56221 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-17 10:35:07,707 - 56221 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-04-17 10:35:07,708 - 56221 - src.utils.log - INFO - πŸ” Fetching data: SELECT fsd.IntervalDays, fs.CreatedDate ,f.FrequencyId , fs.FrequencyScheduleId, f.[SysName], f.FrequencyValue, f.YearlyOccurrence , fs.ScheduleFormat,fsd.Days, fsd.Weeks, fsd.Months,fsc.[Month] as sch_months, fsd.StartMonth , fsd.DateDay,fsd.DateMonth FROM [ServiceCore].[FrequencyMaster] f inner join [ServiceCore].[FrequencySchedule] fs on fs.FrequencyId = f.FrequencyId left join ServiceCore.FrequencyScheduleCycle fsc on fsc.FrequencyScheduleId = fs.FrequencyScheduleId left join [ServiceCore].[FrequencyScheduleDetail] fsd on fsd.FrequencyScheduleId = fs.FrequencyScheduleId WHERE fsd.FrequencyScheduleId = 14923... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:35:07,740 - 56221 - src.utils.log - INFO - βœ… Fetched 60 rows - __SPLIT__ 2026-04-17 10:35:07,740 - 56221 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-04-17 10:35:07,742 - 56221 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-04-17 10:35:07,742 - 56221 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 95820;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:35:07,768 - 56221 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-17 10:35:07,769 - 56221 - src.utils.log - INFO - πŸ” Fetching data: select ServiceDate, ServiceSetupId, IsInitial from serviceCore.WorkOrder wo inner join ServiceCore.WorkOrderStatus wos on wo.WoStatusId = wos.WoStatusId where ServiceDate >= '2026-04-17 00:00:00' and ServiceDate <= '2026-05-31 00:00:00' and ServiceSetupId = 95820 and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:35:07,793 - 56221 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-17 10:35:07,871 - 56221 - src.utils.log - INFO - Generating work orders for setup: 95820 - __SPLIT__ 2026-04-17 10:35:08,175 - 56221 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 11513;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:35:08,200 - 56221 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-17 10:35:08,206 - 56221 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 11524;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:35:08,231 - 56221 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-17 10:35:08,267 - 56221 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-04-17 10:35:08,272 - 56221 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=146 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:35:08,296 - 56221 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-17 10:35:08,298 - 56221 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-04-17 10:35:08,298 - 56221 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-04-17 10:35:08,298 - 56221 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 95820 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:35:08,351 - 56221 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-17 10:35:08,351 - 56221 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 95820 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:35:08,400 - 56221 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-17 10:35:08,400 - 56221 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 95820 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:35:08,443 - 56221 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-17 10:35:08,444 - 56221 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 95820 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:35:08,510 - 56221 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-17 10:35:08,510 - 56221 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 95820 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:35:08,551 - 56221 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-17 10:35:08,552 - 56221 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 95820 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:35:08,619 - 56221 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-17 10:35:08,619 - 56221 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 95820 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:35:08,645 - 56221 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-17 10:35:08,645 - 56221 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 95820 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:35:08,998 - 56221 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-17 10:35:08,998 - 56221 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-17 10:35:08,999 - 56221 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 39 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:35:09,052 - 56221 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 39) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-04-17 10:35:09,535 - 56221 - src.utils.log - INFO - βœ… All 39 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-04-17 10:35:09,535 - 56221 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 39 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-04-17 15:40:13.024' and ServiceSetupId = 95820... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:35:09,577 - 56221 - src.utils.log - INFO - βœ… Fetched 39 rows - __SPLIT__ 2026-04-17 10:35:09,577 - 56221 - src.utils.log - INFO - Id's of work order inserted to DB: [508063 508064 508065 508066 508067 508068 508069 508070 508071 508072 508073 508074 508075 508076 508077 508078 508079 508080 508081 508082 508083 508084 508085 508086 508087 508088 508089 508090 508091 508092 508093 508094 508095 508096 508097 508098 508099 508100 508101] - __SPLIT__ 2026-04-17 10:35:09,577 - 56221 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 95820;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:35:09,602 - 56221 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-17 10:35:09,603 - 56221 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-04-17 10:35:09,604 - 56221 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId = 95820... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:35:09,628 - 56221 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-04-17 10:35:09,629 - 56221 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId = 95820... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:35:09,654 - 56221 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-04-17 10:35:09,661 - 56221 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId = 95820... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:35:09,689 - 56221 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-04-17 10:35:09,690 - 56221 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId = 95820... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:35:09,715 - 56221 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-17 10:35:09,715 - 56221 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId = 95820... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:35:09,739 - 56221 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-17 10:35:09,740 - 56221 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId = 95820;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:35:09,765 - 56221 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-04-17 10:35:09,766 - 56221 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId = 95820;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:35:09,790 - 56221 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-17 10:35:09,791 - 56221 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId = 95820;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:35:09,966 - 56221 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-17 10:35:09,966 - 56221 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId = 95820;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:35:09,991 - 56221 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-17 10:35:10,006 - 56221 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-04-17 10:35:10,006 - 56221 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-04-17 10:35:10,006 - 56221 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-04-17 10:35:10,006 - 56221 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.CommunicationPreferencesServiceReportNotification: - __SPLIT__ 2026-04-17 10:35:10,006 - 56221 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-04-17 10:35:10,006 - 56221 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SetupAutoGenerationSourceMapping: - __SPLIT__ 2026-04-17 10:35:10,006 - 56221 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-04-17 10:35:10,006 - 56221 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-17 10:35:10,006 - 56221 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (508063, 508064, 508065, 508066, 508067, 508068, 508069, 508070, 508071, 508072, 508073, 508074, 508075, 508076, 508077, 508078, 508079, 508080, 508081, 508082, 508083, 508084, 508085, 508086, 508087, 508088, 508089, 508090, 508091, 508092, 508093, 508094, 508095, 508096, 508097, 508098, 508099, 508100, 508101) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:35:10,034 - 56221 - src.utils.log - INFO - βœ… Fetched 39 rows - __SPLIT__ 2026-04-17 10:35:10,035 - 56221 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationAppliedDiscount: 39 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:35:10,066 - 56221 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 39) into ServiceCore.WorkOrderAutoGenerationAppliedDiscount - __SPLIT__ 2026-04-17 10:35:10,190 - 56221 - src.utils.log - INFO - βœ… All 39 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationAppliedDiscount in 1 batches - __SPLIT__ 2026-04-17 10:35:10,190 - 56221 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-04-17 10:35:10,190 - 56221 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SubWorkOrderAutoGeneration: - __SPLIT__ 2026-04-17 10:35:10,190 - 56221 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-04-17 10:35:10,190 - 56221 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: - __SPLIT__ 2026-04-17 10:35:10,190 - 56221 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-04-17 10:35:10,190 - 56221 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: - __SPLIT__ 2026-04-17 10:35:10,190 - 56221 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-04-17 10:35:10,190 - 56221 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-17 10:35:10,190 - 56221 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (508063, 508064, 508065, 508066, 508067, 508068, 508069, 508070, 508071, 508072, 508073, 508074, 508075, 508076, 508077, 508078, 508079, 508080, 508081, 508082, 508083, 508084, 508085, 508086, 508087, 508088, 508089, 508090, 508091, 508092, 508093, 508094, 508095, 508096, 508097, 508098, 508099, 508100, 508101) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:35:10,215 - 56221 - src.utils.log - INFO - βœ… Fetched 39 rows - __SPLIT__ 2026-04-17 10:35:10,215 - 56221 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationCrews: 39 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:35:10,244 - 56221 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 39) into ServiceCore.WorkOrderAutoGenerationCrews - __SPLIT__ 2026-04-17 10:35:10,359 - 56221 - src.utils.log - INFO - βœ… All 39 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationCrews in 1 batches - __SPLIT__ 2026-04-17 10:35:10,359 - 56221 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-04-17 10:35:10,359 - 56221 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-17 10:35:10,359 - 56221 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:35:10,390 - 56221 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-04-17 10:35:10,482 - 56221 - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-04-17 10:35:10,482 - 56221 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-04-17 10:35:10,482 - 56221 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-17 10:35:10,482 - 56221 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 76 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:35:10,513 - 56221 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 76) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-04-17 10:35:10,704 - 56221 - src.utils.log - INFO - βœ… All 76 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-04-17 10:35:10,705 - 56221 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-04-17 10:35:10,705 - 56221 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 56221;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:35:10,730 - 56221 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-04-17 10:35:10,730 - 56221 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-04-17 10:35:10,730 - 56221 - src.utils.log - INFO - Time took to perform operation: 3.31 - __SPLIT__ 2026-04-17 10:35:10,730 - 56221 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 56221;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:35:10,754 - 56221 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-04-17 10:35:10,755 - 56221 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET WorkOrderStatusDateTime = '2026-04-17 06:35:10.755' WHERE GenerateWorkOrderHistoryId = 56221;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:35:10,779 - 56221 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-04-17 10:35:41,196 - [56221] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[508063] user_id=44506 company_id=146 project_id=[56221] publish_all=False - __SPLIT__ 2026-04-17 10:35:41,197 - [56221] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[508063] user_id=44506 company_id=146 project_id=[56221] publish_all=False - __SPLIT__ 2026-04-17 10:35:41,197 - [56221] - src.utils.log - INFO - Sequential Work order publish in progress for GenerateWorkOrderHistoryId: [56221] - __SPLIT__ 2026-04-17 10:35:41,198 - [56221] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-04-17 10:35:41,198 - [56221] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:35:41,397 - [56221] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-17 10:35:41,397 - [56221] - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-04-17 10:35:41,397 - [56221] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'InProgress' WHERE CompanyId = 146 AND GenerateWorkOrderHistoryId = 56221;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:35:41,426 - [56221] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-04-17 10:35:41,426 - [56221] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId = 508063... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:35:41,458 - [56221] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-17 10:35:41,459 - [56221] - src.utils.log - INFO - Inside get_work_order_table - __SPLIT__ 2026-04-17 10:35:41,459 - [56221] - src.utils.log - INFO - πŸ” Fetching data: SELECT DISTINCT sss.ServiceSetupId, dm.DepartmentMasterId, bm.BranchMasterId FROM Common.DepartmentMaster dm JOIN Common.DivisionMaster d2 ON dm.DivisionMasterId = d2.DivisionMasterId JOIN Common.BranchMaster bm ON d2.BranchMasterId = bm.BranchMasterId JOIN ServiceCore.ServiceCategoryMaster c ON c.DepartmentId = dm.DepartmentMasterId JOIN ServiceCore.ServiceMaster sm ON c.CategoryId = sm.CategoryId JOIN ServiceCore.ServiceSetupServices sss ON sss.ServiceId = sm.ServiceMasterId WHERE dm.CompanyId = 146 AND d2.CompanyId = bm.CompanyId AND sss.ServiceSetupId = 95820 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:35:41,495 - [56221] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-17 10:35:41,495 - [56221] - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceSetupId, dm.DepartmentMasterId, bm.BranchMasterId FROM Common.DepartmentMaster dm JOIN Common.DivisionMaster d2 ON dm.DivisionMasterId = d2.DivisionMasterId JOIN Common.BranchMaster bm ON d2.BranchMasterId = bm.BranchMasterId JOIN ServiceCore.SoldServiceNonStandard x on dm.DepartmentMasterId = x.DepartmentId JOIN ServiceCore.ServiceSetupServices sss ON sss.NonStdSoldServiceId = x.SoldServiceNonStandardId WHERE dm.CompanyId = 146 AND d2.CompanyId = bm.CompanyId AND sss.ServiceSetupId = 95820 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:35:41,528 - [56221] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-17 10:35:41,529 - [56221] - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceSetupId, dm.DepartmentMasterId, bm.BranchMasterId FROM Common.DepartmentMaster dm Inner JOIN Common.DivisionMaster d2 ON dm.DivisionMasterId = d2.DivisionMasterId Inner JOIN Common.BranchMaster bm ON d2.BranchMasterId = bm.BranchMasterId Inner JOIN [ServiceCore].[ServiceCategoryMaster] scm ON dm.DepartmentMasterId = scm.DepartmentId Inner JOIN ServiceCore.ServiceMaster sm ON scm.CategoryId = sm.CategoryId Inner JOIN ServiceCore.SoldServiceStandard x on x.ServiceId = sm.ServiceMasterId Inner JOIN ServiceCore.ServiceSetupServices sss ON sss.StdSoldServiceId = x.SoldServiceStandardId WHERE dm.CompanyId = 146 AND d2.CompanyId = bm.CompanyId AND sss.ServiceSetupId = 95820 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:35:41,565 - [56221] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-17 10:35:41,568 - [56221] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder,BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 146;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:35:41,596 - [56221] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-17 10:35:41,596 - [56221] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 146 AND EnitityNumberType in ('WorkOrder','Invoice'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:35:41,624 - [56221] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-04-17 10:35:41,624 - [56221] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder, BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 146; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:35:41,653 - [56221] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-17 10:35:41,653 - [56221] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 1 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 146 AND EnitityNumberType = 'WorkOrder'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:35:41,682 - [56221] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-17 10:35:41,682 - [56221] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 1 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 146 AND EnitityNumberType = 'Invoice'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:35:41,711 - [56221] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-17 10:35:41,715 - [56221] - src.utils.log - INFO - πŸ” Fetching data: SELECT ss.ServiceSetupId as SetupId, ss.FrequencyScheduleId as setup_frequency_schedule_id, ss.AccountNumber, ss.CompanyId, ss.BillingLocationId, ss.ServiceLocationId, ss.TaxSysName, ss.TermId, ss.TaxPercent, ss.PoNumber, ss.IsTaxExempt, ss.DisplayServiceAsSeparateLineItem, ss.GenerateInvoice, ss.IsGenerateInvoiceforInitalSetup, ss.IsGenerateInvoiceforInitalSetupBilling, ss.IsBilling, t.NetDueIn, ptm.PaymentType, ssb.* FROM ServiceCore.ServiceSetup ss LEFT JOIN ServiceCore.ServiceSetupBilling ssb ON ss.ServiceSetupId = ssb.ServiceSetupId LEFT JOIN Billing.PaymentTypeMaster ptm ON ptm.PaymentTypeMasterId = ssb.PaymentTypeMasterId left join Billing.Term t on ss.TermId = t.TermId WHERE ss.ServiceSetupId = 95820... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:35:41,748 - [56221] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-17 10:35:41,750 - [56221] - src.utils.log - INFO - πŸ” Fetching data: SELECT x.CompanyId FROM CRM.CompanyMaster x WHERE CompanyKey = 'Fortive';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:35:41,777 - [56221] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-17 10:35:41,778 - [56221] - src.utils.log - INFO - πŸ” Fetching data: SELECT CollectionStatus,IsHold,AccountNo FROM CRM.Account a WHERE a.AccountNo = '2080' and a.CompanyId = 134;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:35:41,805 - [56221] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-17 10:35:41,808 - [56221] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderNo FROM ServiceCore.WorkOrder WHERE WorkOrderNo = '53912' AND CompanyId = 146 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:35:41,835 - [56221] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-17 10:35:41,836 - [56221] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrder (skip triggers): 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:35:41,908 - [56221] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrder (triggers skipped) - __SPLIT__ 2026-04-17 10:35:42,036 - [56221] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrder in 1 batches (triggers skipped) - __SPLIT__ 2026-04-17 10:35:42,050 - [56221] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-04-17 10:35:42,051 - [56221] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.ServiceSetup SET IsInitialWoGenerated = 1 WHERE CompanyId = 146 AND ServiceSetupId = 95820;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:35:42,079 - [56221] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-04-17 10:35:42,080 - [56221] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkorderId, WorkOrderNo FROM ServiceCore.WorkOrder wo WHERE wo.WorkOrderNo = '53912' AND wo.AccountNumber = '2080' AND wo.CompanyId = 146 ... (Thread: ThreadPoolExecutor-5_0) - __SPLIT__ 2026-04-17 10:35:42,108 - [56221] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-17 10:35:42,108 - [56221] - src.utils.log - INFO - Sequential fetching temp table records - __SPLIT__ 2026-04-17 10:35:42,109 - [56221] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationServices woag WHERE woag.WorkOrderAutoGenerationId = 508063... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:35:42,144 - [56221] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-04-17 10:35:42,144 - [56221] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SubWorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId = 508063... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:35:42,191 - [56221] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-17 10:35:42,192 - [56221] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationCrews woag WHERE woag.WorkOrderAutoGenerationId = 508063... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:35:42,224 - [56221] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-17 10:35:42,224 - [56221] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationSalesPersonCommission woag WHERE woag.WorkOrderAutoGenerationId = 508063... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:35:42,253 - [56221] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-17 10:35:42,253 - [56221] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupAutoGenerationSourceMapping woag WHERE woag.WorkOrderAutoGenerationId = 508063... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:35:42,282 - [56221] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-17 10:35:42,283 - [56221] - src.utils.log - INFO - πŸ” Fetching data: SELECT DiscountType, DiscountCode, DiscountAmount, DiscountDescription, DiscountName, IsActive, CreatedBy, ModifiedBy, CreatedDate, ModifiedDate, DiscountPercent, IsDiscountPercent, AppliedDiscountAmt, ApplyOnPartPrice, ApplyOnLaborPrice, DiscountSetupId, WorkOrderAutoGenerationId from ServiceCore.WorkOrderAutoGenerationAppliedDiscount woag WHERE woag.WorkOrderAutoGenerationId = 508063... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:35:42,314 - [56221] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-17 10:35:42,314 - [56221] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from CRM.LeadNote woag WHERE woag.RefId = 508063 and woag.RefType = 'TempWorkorder';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:35:42,344 - [56221] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-17 10:35:42,344 - [56221] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment woagca WHERE woagca.WorkOrderAutoGenerationId = 508063;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:35:42,373 - [56221] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-17 10:35:42,376 - [56221] - src.utils.log - INFO - Updating temp tables - __SPLIT__ 2026-04-17 10:35:42,386 - [56221] - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyKey FROM Common.CompanyMaster cm WHERE CompanyId = 146;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:35:42,414 - [56221] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-17 10:35:42,416 - [56221] - src.utils.log - INFO - πŸ” Fetching data: Select DiscountSetupId, [SysName] as DiscountSysName from Common.DiscountSetupMaster WHERE DiscountSetupId = 1045 AND CompanyId = 146;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:35:42,444 - [56221] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-17 10:35:42,446 - [56221] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 146 AND EnitityNumberType in ('SubWorkOrder'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:35:42,474 - [56221] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-17 10:35:42,477 - [56221] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-17 10:35:42,477 - [56221] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishHistory: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:35:42,527 - [56221] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderAutoGenerationPublishHistory - __SPLIT__ 2026-04-17 10:35:42,644 - [56221] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishHistory in 1 batches - __SPLIT__ 2026-04-17 10:35:42,645 - [56221] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationPublishHistoryId, WorkOrderNo, ServiceSetupId FROM ServiceCore.WorkOrderAutoGenerationPublishHistory WHERE ServiceSetupId = 95820 AND WorkOrderNo = '570572' AND GenerateWorkOrderHistoryId = 56221; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:35:42,702 - [56221] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-17 10:35:42,708 - [56221] - src.utils.log - INFO - Sequential Insertion in work order tables begin - __SPLIT__ 2026-04-17 10:35:42,708 - [56221] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-17 10:35:42,708 - [56221] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderServices: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:35:42,743 - [56221] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderServices - __SPLIT__ 2026-04-17 10:35:42,920 - [56221] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderServices in 1 batches - __SPLIT__ 2026-04-17 10:35:42,920 - [56221] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-17 10:35:42,920 - [56221] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.WorkOrderAppliedDiscount: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:35:42,969 - [56221] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceAuto.WorkOrderAppliedDiscount - __SPLIT__ 2026-04-17 10:35:43,087 - [56221] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceAuto.WorkOrderAppliedDiscount in 1 batches - __SPLIT__ 2026-04-17 10:35:43,088 - [56221] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderSalesPersonCommission: - __SPLIT__ 2026-04-17 10:35:43,088 - [56221] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderCommissionAdjustment: - __SPLIT__ 2026-04-17 10:35:43,088 - [56221] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-17 10:35:43,088 - [56221] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderCrew: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:35:43,136 - [56221] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderCrew - __SPLIT__ 2026-04-17 10:35:43,245 - [56221] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderCrew in 1 batches - __SPLIT__ 2026-04-17 10:35:43,246 - [56221] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkorderSourceMapping: - __SPLIT__ 2026-04-17 10:35:43,246 - [56221] - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-04-17 10:35:43,246 - [56221] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-17 10:35:43,246 - [56221] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishServices: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:35:43,280 - [56221] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationPublishServices - __SPLIT__ 2026-04-17 10:35:43,390 - [56221] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishServices in 1 batches - __SPLIT__ 2026-04-17 10:35:43,390 - [56221] - src.utils.log - INFO - πŸ” Fetching data: SELECT ss.ServiceSetupId as SetupId, ss.FrequencyScheduleId as setup_frequency_schedule_id, ss.AccountNumber, ss.CompanyId, ss.BillingLocationId, ss.ServiceLocationId, ss.TaxSysName, ss.TermId, ss.TaxPercent, ss.PoNumber, ss.IsTaxExempt, ss.DisplayServiceAsSeparateLineItem, ss.GenerateInvoice, ss.IsGenerateInvoiceforInitalSetup, ss.IsGenerateInvoiceforInitalSetupBilling, ss.IsBilling, t.NetDueIn, ptm.PaymentType, ssb.* FROM ServiceCore.ServiceSetup ss LEFT JOIN ServiceCore.ServiceSetupBilling ssb ON ss.ServiceSetupId = ssb.ServiceSetupId LEFT JOIN Billing.PaymentTypeMaster ptm ON ptm.PaymentTypeMasterId = ssb.PaymentTypeMasterId left join Billing.Term t on ss.TermId = t.TermId WHERE ss.ServiceSetupId = 95820... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:35:43,419 - [56221] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-17 10:35:43,425 - [56221] - src.utils.log - INFO - Size of Transaction: 1 - __SPLIT__ 2026-04-17 10:35:43,425 - [56221] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:35:43,472 - [56221] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-04-17 10:35:43,575 - [56221] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-04-17 10:35:43,588 - [56221] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-04-17 10:35:43,589 - [56221] - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionId, ModifiedBy, TransactionDate as InvoiceDate from Billing.[Transaction] t WHERE t.ModifiedBy = 12345678910 and t.CompanyId = 146 AND t.TransactionType ='Invoice' AND t.CreatedDate = '2026-04-17 06:35:43.420';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:35:43,684 - [56221] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-17 10:35:43,686 - [56221] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 95820;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:35:43,715 - [56221] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-17 10:35:43,722 - [56221] - src.utils.log - INFO - πŸ“ Executing: UPDATE Billing.[Transaction] SET ModifiedBy = NULL WHERE ModifiedBy = 12345678910 AND CreatedDate = '2026-04-17 06:35:43.420'; ... (Thread: ThreadPoolExecutor-6_0) - __SPLIT__ 2026-04-17 10:35:43,806 - [56221] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-04-17 10:35:43,811 - [56221] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-17 10:35:43,811 - [56221] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:35:43,847 - [56221] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into Billing.Invoice - __SPLIT__ 2026-04-17 10:35:43,954 - [56221] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-04-17 10:35:43,954 - [56221] - src.utils.log - INFO - πŸ” Fetching data: SELECT InvoiceId, WorkOrderNo FROM Billing.Invoice i WHERE i.WorkOrderNo = '53912'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:35:44,017 - [56221] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-04-17 10:35:44,024 - [56221] - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceSetupId, sss.NonStdSoldServiceId as SoldServiceNonStandardId, sss.Qty as Quantity, sss.Price as Rate, sss.IsTaxable, sm.Name as NonStandardServiceName, sm.Description , sm.ServiceMasterId as ServiceId FROM ServiceCore.ServiceSetupServices sss join ServiceCore.ServiceMaster sm on sm.ServiceMasterId = sss.ServiceId where ServiceSetupId = 95820 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:35:44,056 - [56221] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-04-17 10:35:44,056 - [56221] - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceSetupId, sss.NonStdSoldServiceId as SoldServiceNonStandardId, sss.Qty as Quantity, sss.Price as Rate, sss.IsTaxable, sm.Name as NonStandardServiceName, sm.Description , sm.ServiceMasterId as ServiceId FROM ServiceCore.ServiceSetupInitialServices sss join ServiceCore.ServiceMaster sm on sm.ServiceMasterId = sss.ServiceId where ServiceSetupId = 95820 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:35:44,087 - [56221] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-04-17 10:35:44,087 - [56221] - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceSetupId, sss.NonStdSoldServiceId as SoldServiceNonStandardId, sss.Qty as Quantity, sss.Price as Rate, sss.IsTaxable, sm.servicename as NonStandardServiceName, sm.Description , sss.ServiceId FROM ServiceCore.ServiceSetupServices sss join ServiceCore.SoldServiceNonStandard sm on sm.SoldServiceNonStandardId = sss.NonStdSoldServiceId where ServiceSetupId = 95820 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:35:44,118 - [56221] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-17 10:35:44,118 - [56221] - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceSetupId, sss.NonStdSoldServiceId as SoldServiceNonStandardId, sss.Qty as Quantity, sss.Price as Rate, sss.IsTaxable, sm.servicename as NonStandardServiceName, sm.Description , sss.ServiceId FROM ServiceCore.ServiceSetupInitialServices sss join ServiceCore.SoldServiceNonStandard sm on sm.SoldServiceNonStandardId = sss.NonStdSoldServiceId where ServiceSetupId = 95820 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:35:44,149 - [56221] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-17 10:35:44,161 - [56221] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 95820;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:35:44,191 - [56221] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-17 10:35:44,196 - [56221] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId, AppliedDiscountAmt as AppliedDiscountAmount,IsActive ,ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 95820;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:35:44,226 - [56221] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-04-17 10:35:44,235 - [56221] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId,IsActive,DiscountAmount, IsDiscountPercent,DiscountPercent,DiscountDescription , ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 95820;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:35:44,265 - [56221] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-04-17 10:35:44,273 - [56221] - src.utils.log - INFO - Sequential Insertion in invoice tables begin - __SPLIT__ 2026-04-17 10:35:44,273 - [56221] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-17 10:35:44,273 - [56221] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.AccountDiscountSetup: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:35:44,321 - [56221] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.AccountDiscountSetup - __SPLIT__ 2026-04-17 10:35:44,430 - [56221] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.AccountDiscountSetup in 1 batches - __SPLIT__ 2026-04-17 10:35:44,430 - [56221] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-17 10:35:44,430 - [56221] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceCharges: 4 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:35:44,466 - [56221] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 4) into Billing.InvoiceCharges - __SPLIT__ 2026-04-17 10:35:44,576 - [56221] - src.utils.log - INFO - βœ… All 4 rows inserted successfully into Billing.InvoiceCharges in 1 batches - __SPLIT__ 2026-04-17 10:35:44,577 - [56221] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-17 10:35:44,577 - [56221] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.DiscountApplied: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:35:44,624 - [56221] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.DiscountApplied - __SPLIT__ 2026-04-17 10:35:44,731 - [56221] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.DiscountApplied in 1 batches - __SPLIT__ 2026-04-17 10:35:44,731 - [56221] - src.utils.log - INFO - Invoice Publish Done - __SPLIT__ 2026-04-17 10:35:44,731 - [56221] - src.utils.log - INFO - Updating Next GenerationDate - __SPLIT__ 2026-04-17 10:35:44,732 - [56221] - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, MAX(NextWorkOrderGenerationDate) AS MaxNextWorkOrderGeneration FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 56221 GROUP BY ServiceSetupId; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:35:44,761 - [56221] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-17 10:35:44,765 - [56221] - src.utils.log - INFO - πŸ”„ Updating next gen date sequentially: inside update_next_workorder_generation - __SPLIT__ 2026-04-17 10:35:44,781 - [56221] - src.utils.log - INFO - πŸ›  Creating temp table #tbl_cef71a9872 - __SPLIT__ 2026-04-17 10:35:44,810 - [56221] - src.utils.log - INFO - πŸ“Œ Bulk inserting 1 rows into #tbl_cef71a9872 - __SPLIT__ 2026-04-17 10:35:44,838 - [56221] - src.utils.log - INFO - πŸ” Running MERGE update to apply changes - __SPLIT__ 2026-04-17 10:35:44,856 - [56221] - src.utils.log - INFO - βœ” SQL reported affected rows: 1 - __SPLIT__ 2026-04-17 10:35:44,873 - [56221] - src.utils.log - INFO - πŸ” Verified successfully updated 1 rows via #tbl_cef71a9872 - __SPLIT__ 2026-04-17 10:35:44,873 - [56221] - src.utils.log - INFO - πŸŽ‰ Successfully updated NextGenerationDate using temp table #tbl_cef71a9872 - __SPLIT__ 2026-04-17 10:35:44,873 - [56221] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 56221 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:35:44,901 - [56221] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-17 10:35:44,901 - [56221] - src.utils.log - INFO - Sequential deletion from temp tables begin - __SPLIT__ 2026-04-17 10:35:44,901 - [56221] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId = 508063 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:35:44,959 - [56221] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-17 10:35:44,959 - [56221] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId = 508063 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:35:45,006 - [56221] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-17 10:35:45,007 - [56221] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId = 508063 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:35:45,035 - [56221] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-17 10:35:45,035 - [56221] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId = 508063 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:35:45,069 - [56221] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-17 10:35:45,070 - [56221] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId = 508063 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:35:45,103 - [56221] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-17 10:35:45,103 - [56221] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 508063 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:35:45,160 - [56221] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-17 10:35:45,160 - [56221] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId = 508063 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:35:45,188 - [56221] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-17 10:35:45,188 - [56221] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 508063 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:35:45,249 - [56221] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-17 10:35:45,249 - [56221] - src.utils.log - INFO - Work order published ids: (508063,) - __SPLIT__ 2026-04-17 10:35:45,249 - [56221] - src.utils.log - INFO - Time took to perform operation in publishing [56221]: 4.05 - __SPLIT__ 2026-04-17 10:35:45,249 - [56221] - src.utils.log - INFO - Publish Completed for GenerateWorkOrderHistoryId: [56221] - __SPLIT__ 2026-04-17 10:35:45,249 - [56221] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-04-17 06:35:45.249' WHERE CompanyId = 146 AND GenerateWorkOrderHistoryId = 56221;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:35:45,277 - [56221] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-04-17 10:48:03,966 - [56221] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[] user_id=44506 company_id=146 project_id=[56221] publish_all=True - __SPLIT__ 2026-04-17 10:48:03,967 - [56221] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[] user_id=44506 company_id=146 project_id=[56221] publish_all=True - __SPLIT__ 2026-04-17 10:48:03,967 - [56221] - src.utils.log - INFO - Sequential Work order publish in progress for GenerateWorkOrderHistoryId: [56221] - __SPLIT__ 2026-04-17 10:48:03,968 - [56221] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-04-17 10:48:03,968 - [56221] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:48:04,140 - [56221] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-17 10:48:04,140 - [56221] - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-04-17 10:48:04,140 - [56221] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'InProgress' WHERE CompanyId = 146 AND GenerateWorkOrderHistoryId = 56221;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:48:04,165 - [56221] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-04-17 10:48:04,165 - [56221] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGeneration woag WHERE woag.GenerateWorkOrderHistoryId = 56221... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:48:04,219 - [56221] - src.utils.log - INFO - βœ… Fetched 38 rows - __SPLIT__ 2026-04-17 10:48:04,220 - [56221] - src.utils.log - INFO - Inside get_work_order_table - __SPLIT__ 2026-04-17 10:48:04,220 - [56221] - src.utils.log - INFO - πŸ” Fetching data: SELECT DISTINCT sss.ServiceSetupId, dm.DepartmentMasterId, bm.BranchMasterId FROM Common.DepartmentMaster dm JOIN Common.DivisionMaster d2 ON dm.DivisionMasterId = d2.DivisionMasterId JOIN Common.BranchMaster bm ON d2.BranchMasterId = bm.BranchMasterId JOIN ServiceCore.ServiceCategoryMaster c ON c.DepartmentId = dm.DepartmentMasterId JOIN ServiceCore.ServiceMaster sm ON c.CategoryId = sm.CategoryId JOIN ServiceCore.ServiceSetupServices sss ON sss.ServiceId = sm.ServiceMasterId WHERE dm.CompanyId = 146 AND d2.CompanyId = bm.CompanyId AND sss.ServiceSetupId = 95820 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:48:04,244 - [56221] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-17 10:48:04,245 - [56221] - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceSetupId, dm.DepartmentMasterId, bm.BranchMasterId FROM Common.DepartmentMaster dm JOIN Common.DivisionMaster d2 ON dm.DivisionMasterId = d2.DivisionMasterId JOIN Common.BranchMaster bm ON d2.BranchMasterId = bm.BranchMasterId JOIN ServiceCore.SoldServiceNonStandard x on dm.DepartmentMasterId = x.DepartmentId JOIN ServiceCore.ServiceSetupServices sss ON sss.NonStdSoldServiceId = x.SoldServiceNonStandardId WHERE dm.CompanyId = 146 AND d2.CompanyId = bm.CompanyId AND sss.ServiceSetupId = 95820 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:48:04,269 - [56221] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-17 10:48:04,270 - [56221] - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceSetupId, dm.DepartmentMasterId, bm.BranchMasterId FROM Common.DepartmentMaster dm Inner JOIN Common.DivisionMaster d2 ON dm.DivisionMasterId = d2.DivisionMasterId Inner JOIN Common.BranchMaster bm ON d2.BranchMasterId = bm.BranchMasterId Inner JOIN [ServiceCore].[ServiceCategoryMaster] scm ON dm.DepartmentMasterId = scm.DepartmentId Inner JOIN ServiceCore.ServiceMaster sm ON scm.CategoryId = sm.CategoryId Inner JOIN ServiceCore.SoldServiceStandard x on x.ServiceId = sm.ServiceMasterId Inner JOIN ServiceCore.ServiceSetupServices sss ON sss.StdSoldServiceId = x.SoldServiceStandardId WHERE dm.CompanyId = 146 AND d2.CompanyId = bm.CompanyId AND sss.ServiceSetupId = 95820 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:48:04,294 - [56221] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-17 10:48:04,297 - [56221] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder,BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 146;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:48:04,322 - [56221] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-17 10:48:04,322 - [56221] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 146 AND EnitityNumberType in ('WorkOrder','Invoice'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:48:04,346 - [56221] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-04-17 10:48:04,346 - [56221] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder, BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 146; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:48:04,370 - [56221] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-17 10:48:04,370 - [56221] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 38 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 146 AND EnitityNumberType = 'WorkOrder'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:48:04,397 - [56221] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-17 10:48:04,397 - [56221] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 38 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 146 AND EnitityNumberType = 'Invoice'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:48:04,423 - [56221] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-17 10:48:04,426 - [56221] - src.utils.log - INFO - πŸ” Fetching data: SELECT ss.ServiceSetupId as SetupId, ss.FrequencyScheduleId as setup_frequency_schedule_id, ss.AccountNumber, ss.CompanyId, ss.BillingLocationId, ss.ServiceLocationId, ss.TaxSysName, ss.TermId, ss.TaxPercent, ss.PoNumber, ss.IsTaxExempt, ss.DisplayServiceAsSeparateLineItem, ss.GenerateInvoice, ss.IsGenerateInvoiceforInitalSetup, ss.IsGenerateInvoiceforInitalSetupBilling, ss.IsBilling, t.NetDueIn, ptm.PaymentType, ssb.* FROM ServiceCore.ServiceSetup ss LEFT JOIN ServiceCore.ServiceSetupBilling ssb ON ss.ServiceSetupId = ssb.ServiceSetupId LEFT JOIN Billing.PaymentTypeMaster ptm ON ptm.PaymentTypeMasterId = ssb.PaymentTypeMasterId left join Billing.Term t on ss.TermId = t.TermId WHERE ss.ServiceSetupId = 95820... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:48:04,453 - [56221] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-17 10:48:04,468 - [56221] - src.utils.log - INFO - πŸ” Fetching data: SELECT x.CompanyId FROM CRM.CompanyMaster x WHERE CompanyKey = 'Fortive';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:48:04,492 - [56221] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-17 10:48:04,493 - [56221] - src.utils.log - INFO - πŸ” Fetching data: SELECT CollectionStatus,IsHold,AccountNo FROM CRM.Account a WHERE a.AccountNo = '2080' and a.CompanyId = 134;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:48:04,517 - [56221] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-17 10:48:04,519 - [56221] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderNo FROM ServiceCore.WorkOrder WHERE WorkOrderNo IN ('53913', '53914', '53915', '53916', '53917', '53918', '53919', '53920', '53921', '53922', '53923', '53924', '53925', '53926', '53927', '53928', '53929', '53930', '53931', '53932', '53933', '53934', '53935', '53936', '53937', '53938', '53939', '53940', '53941', '53942', '53943', '53944', '53945', '53946', '53947', '53948', '53949', '53950') AND CompanyId = 146 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:48:04,551 - [56221] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-17 10:48:04,552 - [56221] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrder (skip triggers): 38 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:48:04,618 - [56221] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 38) into ServiceCore.WorkOrder (triggers skipped) - __SPLIT__ 2026-04-17 10:48:05,133 - [56221] - src.utils.log - INFO - βœ… All 38 rows inserted successfully into ServiceCore.WorkOrder in 1 batches (triggers skipped) - __SPLIT__ 2026-04-17 10:48:05,145 - [56221] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-04-17 10:48:05,146 - [56221] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkorderId, WorkOrderNo FROM ServiceCore.WorkOrder wo WHERE wo.WorkOrderNo IN ('53913', '53914', '53915', '53916', '53917', '53918', '53919', '53920', '53921', '53922', '53923', '53924', '53925', '53926', '53927', '53928', '53929', '53930', '53931', '53932', '53933', '53934', '53935', '53936', '53937', '53938', '53939', '53940', '53941', '53942', '53943', '53944', '53945', '53946', '53947', '53948', '53949', '53950') AND wo.AccountNumber = '2080' AND wo.CompanyId = 146 ... (Thread: ThreadPoolExecutor-5_0) - __SPLIT__ 2026-04-17 10:48:05,183 - [56221] - src.utils.log - INFO - βœ… Fetched 38 rows - __SPLIT__ 2026-04-17 10:48:05,184 - [56221] - src.utils.log - INFO - Sequential fetching temp table records - __SPLIT__ 2026-04-17 10:48:05,184 - [56221] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationServices woag WHERE woag.WorkOrderAutoGenerationId in (508064, 508065, 508066, 508067, 508068, 508069, 508070, 508071, 508072, 508073, 508074, 508075, 508076, 508077, 508078, 508079, 508080, 508081, 508082, 508083, 508084, 508085, 508086, 508087, 508088, 508089, 508090, 508091, 508092, 508093, 508094, 508095, 508096, 508097, 508098, 508099, 508100, 508101)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:48:05,241 - [56221] - src.utils.log - INFO - βœ… Fetched 76 rows - __SPLIT__ 2026-04-17 10:48:05,242 - [56221] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SubWorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (508064, 508065, 508066, 508067, 508068, 508069, 508070, 508071, 508072, 508073, 508074, 508075, 508076, 508077, 508078, 508079, 508080, 508081, 508082, 508083, 508084, 508085, 508086, 508087, 508088, 508089, 508090, 508091, 508092, 508093, 508094, 508095, 508096, 508097, 508098, 508099, 508100, 508101)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:48:05,299 - [56221] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-17 10:48:05,300 - [56221] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationCrews woag WHERE woag.WorkOrderAutoGenerationId in (508064, 508065, 508066, 508067, 508068, 508069, 508070, 508071, 508072, 508073, 508074, 508075, 508076, 508077, 508078, 508079, 508080, 508081, 508082, 508083, 508084, 508085, 508086, 508087, 508088, 508089, 508090, 508091, 508092, 508093, 508094, 508095, 508096, 508097, 508098, 508099, 508100, 508101)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:48:05,347 - [56221] - src.utils.log - INFO - βœ… Fetched 38 rows - __SPLIT__ 2026-04-17 10:48:05,347 - [56221] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationSalesPersonCommission woag WHERE woag.WorkOrderAutoGenerationId in (508064, 508065, 508066, 508067, 508068, 508069, 508070, 508071, 508072, 508073, 508074, 508075, 508076, 508077, 508078, 508079, 508080, 508081, 508082, 508083, 508084, 508085, 508086, 508087, 508088, 508089, 508090, 508091, 508092, 508093, 508094, 508095, 508096, 508097, 508098, 508099, 508100, 508101)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:48:05,378 - [56221] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-17 10:48:05,378 - [56221] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupAutoGenerationSourceMapping woag WHERE woag.WorkOrderAutoGenerationId in (508064, 508065, 508066, 508067, 508068, 508069, 508070, 508071, 508072, 508073, 508074, 508075, 508076, 508077, 508078, 508079, 508080, 508081, 508082, 508083, 508084, 508085, 508086, 508087, 508088, 508089, 508090, 508091, 508092, 508093, 508094, 508095, 508096, 508097, 508098, 508099, 508100, 508101)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:48:05,412 - [56221] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-17 10:48:05,412 - [56221] - src.utils.log - INFO - πŸ” Fetching data: SELECT DiscountType, DiscountCode, DiscountAmount, DiscountDescription, DiscountName, IsActive, CreatedBy, ModifiedBy, CreatedDate, ModifiedDate, DiscountPercent, IsDiscountPercent, AppliedDiscountAmt, ApplyOnPartPrice, ApplyOnLaborPrice, DiscountSetupId, WorkOrderAutoGenerationId from ServiceCore.WorkOrderAutoGenerationAppliedDiscount woag WHERE woag.WorkOrderAutoGenerationId in (508064, 508065, 508066, 508067, 508068, 508069, 508070, 508071, 508072, 508073, 508074, 508075, 508076, 508077, 508078, 508079, 508080, 508081, 508082, 508083, 508084, 508085, 508086, 508087, 508088, 508089, 508090, 508091, 508092, 508093, 508094, 508095, 508096, 508097, 508098, 508099, 508100, 508101)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:48:05,447 - [56221] - src.utils.log - INFO - βœ… Fetched 38 rows - __SPLIT__ 2026-04-17 10:48:05,447 - [56221] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from CRM.LeadNote woag WHERE woag.RefId in (508064, 508065, 508066, 508067, 508068, 508069, 508070, 508071, 508072, 508073, 508074, 508075, 508076, 508077, 508078, 508079, 508080, 508081, 508082, 508083, 508084, 508085, 508086, 508087, 508088, 508089, 508090, 508091, 508092, 508093, 508094, 508095, 508096, 508097, 508098, 508099, 508100, 508101) and woag.RefType = 'TempWorkorder';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:48:05,476 - [56221] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-17 10:48:05,476 - [56221] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment woagca WHERE woagca.WorkOrderAutoGenerationId in (508064, 508065, 508066, 508067, 508068, 508069, 508070, 508071, 508072, 508073, 508074, 508075, 508076, 508077, 508078, 508079, 508080, 508081, 508082, 508083, 508084, 508085, 508086, 508087, 508088, 508089, 508090, 508091, 508092, 508093, 508094, 508095, 508096, 508097, 508098, 508099, 508100, 508101);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:48:05,505 - [56221] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-17 10:48:05,506 - [56221] - src.utils.log - INFO - Updating temp tables - __SPLIT__ 2026-04-17 10:48:05,518 - [56221] - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyKey FROM Common.CompanyMaster cm WHERE CompanyId = 146;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:48:05,542 - [56221] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-17 10:48:05,544 - [56221] - src.utils.log - INFO - πŸ” Fetching data: Select DiscountSetupId, [SysName] as DiscountSysName from Common.DiscountSetupMaster WHERE DiscountSetupId = 670 AND CompanyId = 146;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:48:05,569 - [56221] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-17 10:48:05,573 - [56221] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 146 AND EnitityNumberType in ('SubWorkOrder'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:48:05,598 - [56221] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-17 10:48:05,601 - [56221] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-17 10:48:05,601 - [56221] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishHistory: 38 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:48:05,646 - [56221] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 38) into ServiceCore.WorkOrderAutoGenerationPublishHistory - __SPLIT__ 2026-04-17 10:48:05,932 - [56221] - src.utils.log - INFO - βœ… All 38 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishHistory in 1 batches - __SPLIT__ 2026-04-17 10:48:05,933 - [56221] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationPublishHistoryId, WorkOrderNo, ServiceSetupId FROM ServiceCore.WorkOrderAutoGenerationPublishHistory WHERE ServiceSetupId = 95820 AND WorkOrderNo IN ('6148340', '2100503', '6441995', '6007200', '9703973', '6502492', '3852583', '3294181', '8860264', '4520055', '4938569', '6178508', '9538471', '8734311', '8861216', '5806938', '7241275', '1081694', '2778275', '7092901', '9935340', '8397696', '7366666', '4101427', '5719582', '2670205', '9341742', '2858321', '5261100', '4486841', '4740196', '9616118', '3242872', '8947001', '9558573', '7355073', '3301808', '5997378') AND GenerateWorkOrderHistoryId = 56221;... (Thread: ThreadPoolExecutor-6_0) - __SPLIT__ 2026-04-17 10:48:05,989 - [56221] - src.utils.log - INFO - βœ… Fetched 38 rows - __SPLIT__ 2026-04-17 10:48:05,990 - [56221] - src.utils.log - INFO - 🏁 Final merged rows: 38 - __SPLIT__ 2026-04-17 10:48:05,995 - [56221] - src.utils.log - INFO - Sequential Insertion in work order tables begin - __SPLIT__ 2026-04-17 10:48:05,995 - [56221] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-17 10:48:05,995 - [56221] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderServices: 76 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:48:06,026 - [56221] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 76) into ServiceCore.WorkOrderServices - __SPLIT__ 2026-04-17 10:48:06,153 - [56221] - src.utils.log - INFO - βœ… All 76 rows inserted successfully into ServiceCore.WorkOrderServices in 1 batches - __SPLIT__ 2026-04-17 10:48:06,153 - [56221] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-17 10:48:06,153 - [56221] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.WorkOrderAppliedDiscount: 38 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:48:06,183 - [56221] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 38) into ServiceAuto.WorkOrderAppliedDiscount - __SPLIT__ 2026-04-17 10:48:06,329 - [56221] - src.utils.log - INFO - βœ… All 38 rows inserted successfully into ServiceAuto.WorkOrderAppliedDiscount in 1 batches - __SPLIT__ 2026-04-17 10:48:06,329 - [56221] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderSalesPersonCommission: - __SPLIT__ 2026-04-17 10:48:06,329 - [56221] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderCommissionAdjustment: - __SPLIT__ 2026-04-17 10:48:06,329 - [56221] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-17 10:48:06,329 - [56221] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderCrew: 38 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:48:06,358 - [56221] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 38) into ServiceCore.WorkOrderCrew - __SPLIT__ 2026-04-17 10:48:06,484 - [56221] - src.utils.log - INFO - βœ… All 38 rows inserted successfully into ServiceCore.WorkOrderCrew in 1 batches - __SPLIT__ 2026-04-17 10:48:06,485 - [56221] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkorderSourceMapping: - __SPLIT__ 2026-04-17 10:48:06,485 - [56221] - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-04-17 10:48:06,485 - [56221] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-17 10:48:06,485 - [56221] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishServices: 76 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:48:06,516 - [56221] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 76) into ServiceCore.WorkOrderAutoGenerationPublishServices - __SPLIT__ 2026-04-17 10:48:06,707 - [56221] - src.utils.log - INFO - βœ… All 76 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishServices in 1 batches - __SPLIT__ 2026-04-17 10:48:06,707 - [56221] - src.utils.log - INFO - πŸ” Fetching data: SELECT ss.ServiceSetupId as SetupId, ss.FrequencyScheduleId as setup_frequency_schedule_id, ss.AccountNumber, ss.CompanyId, ss.BillingLocationId, ss.ServiceLocationId, ss.TaxSysName, ss.TermId, ss.TaxPercent, ss.PoNumber, ss.IsTaxExempt, ss.DisplayServiceAsSeparateLineItem, ss.GenerateInvoice, ss.IsGenerateInvoiceforInitalSetup, ss.IsGenerateInvoiceforInitalSetupBilling, ss.IsBilling, t.NetDueIn, ptm.PaymentType, ssb.* FROM ServiceCore.ServiceSetup ss LEFT JOIN ServiceCore.ServiceSetupBilling ssb ON ss.ServiceSetupId = ssb.ServiceSetupId LEFT JOIN Billing.PaymentTypeMaster ptm ON ptm.PaymentTypeMasterId = ssb.PaymentTypeMasterId left join Billing.Term t on ss.TermId = t.TermId WHERE ss.ServiceSetupId = 95820... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:48:06,733 - [56221] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-17 10:48:06,737 - [56221] - src.utils.log - INFO - Size of Transaction: 38 - __SPLIT__ 2026-04-17 10:48:06,738 - [56221] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 38 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:48:06,779 - [56221] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 38) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-04-17 10:48:06,892 - [56221] - src.utils.log - INFO - βœ… All 38 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-04-17 10:48:06,904 - [56221] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-04-17 10:48:06,904 - [56221] - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionId, ModifiedBy, TransactionDate as InvoiceDate from Billing.[Transaction] t WHERE t.ModifiedBy in (12345678910, 12345678911, 12345678912, 12345678913, 12345678914, 12345678915, 12345678916, 12345678917, 12345678918, 12345678919, 12345678920, 12345678921, 12345678922, 12345678923, 12345678924, 12345678925, 12345678926, 12345678927, 12345678928, 12345678929, 12345678930, 12345678931, 12345678932, 12345678933, 12345678934, 12345678935, 12345678936, 12345678937, 12345678938, 12345678939, 12345678940, 12345678941, 12345678942, 12345678943, 12345678944, 12345678945, 12345678946, 12345678947) and t.CompanyId = 146 AND t.TransactionType ='Invoice' AND t.CreatedDate = '2026-04-17 06:48:06.734';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:48:06,993 - [56221] - src.utils.log - INFO - βœ… Fetched 38 rows - __SPLIT__ 2026-04-17 10:48:06,995 - [56221] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 95820;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:48:07,020 - [56221] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-17 10:48:07,029 - [56221] - src.utils.log - INFO - πŸ“ Executing: UPDATE Billing.[Transaction] SET ModifiedBy = NULL WHERE ModifiedBy IN (12345678910,12345678911,12345678912,12345678913,12345678914,12345678915,12345678916,12345678917,12345678918,12345678919,12345678920,12345678921,12345678922,12345678923,12345678924,12345678925,12345678926,12345678927,12345678928,12345678929,12345678930,12345678931,12345678932,12345678933,12345678934,12345678935,12345678936,12345678937,12345678938,12345678939,12345678940,12345678941,12345678942,12345678943,12345678944,12345678945,12345678946,12345678947) AND CreatedDate = '2026-04-17 06:48:06.734'; ... (Thread: ThreadPoolExecutor-7_0) - __SPLIT__ 2026-04-17 10:48:07,102 - [56221] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-04-17 10:48:07,107 - [56221] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-17 10:48:07,107 - [56221] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 38 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:48:07,139 - [56221] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 38) into Billing.Invoice - __SPLIT__ 2026-04-17 10:48:07,274 - [56221] - src.utils.log - INFO - βœ… All 38 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-04-17 10:48:07,274 - [56221] - src.utils.log - INFO - πŸ” Fetching data: SELECT InvoiceId, WorkOrderNo FROM Billing.Invoice i WHERE i.WorkOrderNo in ('53950', '53949', '53948', '53947', '53945', '53946', '53944', '53943', '53941', '53940', '53939', '53942', '53937', '53938', '53936', '53935', '53933', '53932', '53931', '53930', '53929', '53928', '53927', '53934', '53925', '53924', '53923', '53926', '53921', '53922', '53920', '53919', '53917', '53916', '53915', '53918', '53913', '53914')... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:48:07,516 - [56221] - src.utils.log - INFO - βœ… Fetched 76 rows - __SPLIT__ 2026-04-17 10:48:07,526 - [56221] - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceSetupId, sss.NonStdSoldServiceId as SoldServiceNonStandardId, sss.Qty as Quantity, sss.Price as Rate, sss.IsTaxable, sm.Name as NonStandardServiceName, sm.Description , sm.ServiceMasterId as ServiceId FROM ServiceCore.ServiceSetupServices sss join ServiceCore.ServiceMaster sm on sm.ServiceMasterId = sss.ServiceId where ServiceSetupId = 95820 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:48:07,551 - [56221] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-04-17 10:48:07,551 - [56221] - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceSetupId, sss.NonStdSoldServiceId as SoldServiceNonStandardId, sss.Qty as Quantity, sss.Price as Rate, sss.IsTaxable, sm.Name as NonStandardServiceName, sm.Description , sm.ServiceMasterId as ServiceId FROM ServiceCore.ServiceSetupInitialServices sss join ServiceCore.ServiceMaster sm on sm.ServiceMasterId = sss.ServiceId where ServiceSetupId = 95820 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:48:07,576 - [56221] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-04-17 10:48:07,576 - [56221] - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceSetupId, sss.NonStdSoldServiceId as SoldServiceNonStandardId, sss.Qty as Quantity, sss.Price as Rate, sss.IsTaxable, sm.servicename as NonStandardServiceName, sm.Description , sss.ServiceId FROM ServiceCore.ServiceSetupServices sss join ServiceCore.SoldServiceNonStandard sm on sm.SoldServiceNonStandardId = sss.NonStdSoldServiceId where ServiceSetupId = 95820 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:48:07,600 - [56221] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-17 10:48:07,601 - [56221] - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceSetupId, sss.NonStdSoldServiceId as SoldServiceNonStandardId, sss.Qty as Quantity, sss.Price as Rate, sss.IsTaxable, sm.servicename as NonStandardServiceName, sm.Description , sss.ServiceId FROM ServiceCore.ServiceSetupInitialServices sss join ServiceCore.SoldServiceNonStandard sm on sm.SoldServiceNonStandardId = sss.NonStdSoldServiceId where ServiceSetupId = 95820 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:48:07,625 - [56221] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-17 10:48:07,638 - [56221] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 95820;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:48:07,663 - [56221] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-17 10:48:07,668 - [56221] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId, AppliedDiscountAmt as AppliedDiscountAmount,IsActive ,ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 95820;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:48:07,692 - [56221] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-04-17 10:48:07,702 - [56221] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId,IsActive,DiscountAmount, IsDiscountPercent,DiscountPercent,DiscountDescription , ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 95820;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:48:07,727 - [56221] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-04-17 10:48:07,736 - [56221] - src.utils.log - INFO - Sequential Insertion in invoice tables begin - __SPLIT__ 2026-04-17 10:48:07,736 - [56221] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-17 10:48:07,737 - [56221] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.AccountDiscountSetup: 76 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:48:07,765 - [56221] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 76) into Billing.AccountDiscountSetup - __SPLIT__ 2026-04-17 10:48:07,914 - [56221] - src.utils.log - INFO - βœ… All 76 rows inserted successfully into Billing.AccountDiscountSetup in 1 batches - __SPLIT__ 2026-04-17 10:48:07,914 - [56221] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-17 10:48:07,914 - [56221] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceCharges: 152 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:48:07,945 - [56221] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 152) into Billing.InvoiceCharges - __SPLIT__ 2026-04-17 10:48:08,191 - [56221] - src.utils.log - INFO - βœ… All 152 rows inserted successfully into Billing.InvoiceCharges in 1 batches - __SPLIT__ 2026-04-17 10:48:08,191 - [56221] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-17 10:48:08,191 - [56221] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.DiscountApplied: 76 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:48:08,219 - [56221] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 76) into Billing.DiscountApplied - __SPLIT__ 2026-04-17 10:48:08,354 - [56221] - src.utils.log - INFO - βœ… All 76 rows inserted successfully into Billing.DiscountApplied in 1 batches - __SPLIT__ 2026-04-17 10:48:08,354 - [56221] - src.utils.log - INFO - Invoice Publish Done - __SPLIT__ 2026-04-17 10:48:08,355 - [56221] - src.utils.log - INFO - Updating Next GenerationDate - __SPLIT__ 2026-04-17 10:48:08,355 - [56221] - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, MAX(NextWorkOrderGenerationDate) AS MaxNextWorkOrderGeneration FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 56221 GROUP BY ServiceSetupId; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:48:08,379 - [56221] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-17 10:48:08,385 - [56221] - src.utils.log - INFO - πŸ”„ Updating next gen date sequentially: inside update_next_workorder_generation - __SPLIT__ 2026-04-17 10:48:08,398 - [56221] - src.utils.log - INFO - πŸ›  Creating temp table #tbl_e1a7eb30cb - __SPLIT__ 2026-04-17 10:48:08,424 - [56221] - src.utils.log - INFO - πŸ“Œ Bulk inserting 1 rows into #tbl_e1a7eb30cb - __SPLIT__ 2026-04-17 10:48:08,448 - [56221] - src.utils.log - INFO - πŸ” Running MERGE update to apply changes - __SPLIT__ 2026-04-17 10:48:08,466 - [56221] - src.utils.log - INFO - βœ” SQL reported affected rows: 1 - __SPLIT__ 2026-04-17 10:48:08,481 - [56221] - src.utils.log - INFO - πŸ” Verified successfully updated 1 rows via #tbl_e1a7eb30cb - __SPLIT__ 2026-04-17 10:48:08,481 - [56221] - src.utils.log - INFO - πŸŽ‰ Successfully updated NextGenerationDate using temp table #tbl_e1a7eb30cb - __SPLIT__ 2026-04-17 10:48:08,482 - [56221] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 56221 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:48:08,505 - [56221] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-17 10:48:08,506 - [56221] - src.utils.log - INFO - Sequential deletion from temp tables begin - __SPLIT__ 2026-04-17 10:48:08,506 - [56221] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId in (508064, 508065, 508066, 508067, 508068, 508069, 508070, 508071, 508072, 508073, 508074, 508075, 508076, 508077, 508078, 508079, 508080, 508081, 508082, 508083, 508084, 508085, 508086, 508087, 508088, 508089, 508090, 508091, 508092, 508093, 508094, 508095, 508096, 508097, 508098, 508099, 508100, 508101) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:48:08,585 - [56221] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-17 10:48:08,585 - [56221] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId in (508064, 508065, 508066, 508067, 508068, 508069, 508070, 508071, 508072, 508073, 508074, 508075, 508076, 508077, 508078, 508079, 508080, 508081, 508082, 508083, 508084, 508085, 508086, 508087, 508088, 508089, 508090, 508091, 508092, 508093, 508094, 508095, 508096, 508097, 508098, 508099, 508100, 508101) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:48:08,647 - [56221] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-17 10:48:08,648 - [56221] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId in (508064, 508065, 508066, 508067, 508068, 508069, 508070, 508071, 508072, 508073, 508074, 508075, 508076, 508077, 508078, 508079, 508080, 508081, 508082, 508083, 508084, 508085, 508086, 508087, 508088, 508089, 508090, 508091, 508092, 508093, 508094, 508095, 508096, 508097, 508098, 508099, 508100, 508101) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:48:08,676 - [56221] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-17 10:48:08,676 - [56221] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId in (508064, 508065, 508066, 508067, 508068, 508069, 508070, 508071, 508072, 508073, 508074, 508075, 508076, 508077, 508078, 508079, 508080, 508081, 508082, 508083, 508084, 508085, 508086, 508087, 508088, 508089, 508090, 508091, 508092, 508093, 508094, 508095, 508096, 508097, 508098, 508099, 508100, 508101) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:48:08,714 - [56221] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-17 10:48:08,714 - [56221] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId in (508064, 508065, 508066, 508067, 508068, 508069, 508070, 508071, 508072, 508073, 508074, 508075, 508076, 508077, 508078, 508079, 508080, 508081, 508082, 508083, 508084, 508085, 508086, 508087, 508088, 508089, 508090, 508091, 508092, 508093, 508094, 508095, 508096, 508097, 508098, 508099, 508100, 508101) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:48:08,753 - [56221] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-17 10:48:08,753 - [56221] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (508064, 508065, 508066, 508067, 508068, 508069, 508070, 508071, 508072, 508073, 508074, 508075, 508076, 508077, 508078, 508079, 508080, 508081, 508082, 508083, 508084, 508085, 508086, 508087, 508088, 508089, 508090, 508091, 508092, 508093, 508094, 508095, 508096, 508097, 508098, 508099, 508100, 508101) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:48:08,815 - [56221] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-17 10:48:08,816 - [56221] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId in (508064, 508065, 508066, 508067, 508068, 508069, 508070, 508071, 508072, 508073, 508074, 508075, 508076, 508077, 508078, 508079, 508080, 508081, 508082, 508083, 508084, 508085, 508086, 508087, 508088, 508089, 508090, 508091, 508092, 508093, 508094, 508095, 508096, 508097, 508098, 508099, 508100, 508101) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:48:08,843 - [56221] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-17 10:48:08,843 - [56221] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (508064, 508065, 508066, 508067, 508068, 508069, 508070, 508071, 508072, 508073, 508074, 508075, 508076, 508077, 508078, 508079, 508080, 508081, 508082, 508083, 508084, 508085, 508086, 508087, 508088, 508089, 508090, 508091, 508092, 508093, 508094, 508095, 508096, 508097, 508098, 508099, 508100, 508101) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:48:10,060 - [56221] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-17 10:48:10,061 - [56221] - src.utils.log - INFO - Work order published ids: (508064, 508065, 508066, 508067, 508068, 508069, 508070, 508071, 508072, 508073, 508074, 508075, 508076, 508077, 508078, 508079, 508080, 508081, 508082, 508083, 508084, 508085, 508086, 508087, 508088, 508089, 508090, 508091, 508092, 508093, 508094, 508095, 508096, 508097, 508098, 508099, 508100, 508101) - __SPLIT__ 2026-04-17 10:48:10,061 - [56221] - src.utils.log - INFO - Time took to perform operation in publishing [56221]: 6.09 - __SPLIT__ 2026-04-17 10:48:10,061 - [56221] - src.utils.log - INFO - Publish Completed for GenerateWorkOrderHistoryId: [56221] - __SPLIT__ 2026-04-17 10:48:10,061 - [56221] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-04-17 06:48:10.061' WHERE CompanyId = 146 AND GenerateWorkOrderHistoryId = 56221;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-17 10:48:10,085 - [56221] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-04-22 07:43:45,468 - 56226 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=56226 - __SPLIT__ 2026-04-22 07:43:47,374 - 56226 - src.utils.log - INFO - Work order Generation/Publish algo started for GenerateWorkOrderHistoryId: 56226 - __SPLIT__ 2026-04-22 07:43:48,044 - 56226 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-04-22 07:43:48,708 - 56226 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 07:43:49,548 - 56226 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-22 07:43:50,212 - 56226 - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-04-22 07:43:50,874 - 56226 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 56226;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 07:43:51,567 - 56226 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-04-22 07:43:52,228 - 56226 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET WoGenStartDateTime = '2026-04-22 03:43:52.228' WHERE GenerateWorkOrderHistoryId = 56226;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 07:43:52,916 - 56226 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-04-22 07:43:53,589 - 56226 - src.utils.log - INFO - πŸ” Fetching data: Select CreatedBy, CompanyId from ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryId = 56226;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 07:43:54,276 - 56226 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-22 07:43:54,939 - 56226 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'New', WoPublishStartDateTime = '2026-04-22 03:43:54.939' WHERE CompanyId = 146 AND GenerateWorkOrderHistoryId = 56226;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 07:43:55,630 - 56226 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-04-22 07:43:56,305 - 56226 - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.RecurringServicePrice, gw.StartDate, gw.EndDate, gw.CreatedBy AS NewCreatedBy, gw.RouteIds, ss.* FROM ServiceCore.GenerateWorkOrderHistory gw JOIN ServiceCore.ServiceSetup ss ON gw.CompanyId = ss.CompanyId AND ( (ss.NextGenerationDate <= gw.EndDate AND ss.NextGenerationDate >= gw.StartDate) OR ss.NextGenerationDate IS NULL) AND (gw.AccountNumber IS NULL OR ss.AccountNumber = gw.AccountNumber) AND (gw.ServiceSetupId IS NULL OR ss.ServiceSetupId = gw.ServiceSetupId)AND (gw.RouteIds IS NULL OR ss.RouteMasterId IN (SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 56226), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 56226), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 56226 AND ss.FrequencyScheduleId IS NOT NULL AND ss.IsActive = 1 AND ss.IsDeleted = 0 AND ss.Status <> 'Canceled';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 07:43:57,044 - 56226 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-22 07:43:57,711 - 56226 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 56226;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 07:43:58,406 - 56226 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-22 07:43:59,072 - 56226 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-04-22 07:43:59,743 - 56226 - src.utils.log - INFO - πŸ” Fetching data: SELECT fsd.IntervalDays, fs.CreatedDate ,f.FrequencyId , fs.FrequencyScheduleId, f.[SysName], f.FrequencyValue, f.YearlyOccurrence , fs.ScheduleFormat,fsd.Days, fsd.Weeks, fsd.Months,fsc.[Month] as sch_months, fsd.StartMonth , fsd.DateDay,fsd.DateMonth FROM [ServiceCore].[FrequencyMaster] f inner join [ServiceCore].[FrequencySchedule] fs on fs.FrequencyId = f.FrequencyId left join ServiceCore.FrequencyScheduleCycle fsc on fsc.FrequencyScheduleId = fs.FrequencyScheduleId left join [ServiceCore].[FrequencyScheduleDetail] fsd on fsd.FrequencyScheduleId = fs.FrequencyScheduleId WHERE fsd.FrequencyScheduleId = 14825... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 07:44:00,735 - 56226 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-22 07:44:01,382 - 56226 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-04-22 07:44:02,035 - 56226 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-04-22 07:44:02,683 - 56226 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 95848;... (Thread: ThreadPoolExecutor-7_0) - __SPLIT__ 2026-04-22 07:44:03,364 - 56226 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-22 07:44:04,010 - 56226 - src.utils.log - INFO - πŸ” Fetching data: select ServiceDate, ServiceSetupId, IsInitial from serviceCore.WorkOrder wo inner join ServiceCore.WorkOrderStatus wos on wo.WoStatusId = wos.WoStatusId where ServiceDate >= '2026-04-22 00:00:00' and ServiceDate <= '2026-09-30 00:00:00' and ServiceSetupId = 95848 and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: ThreadPoolExecutor-7_0) - __SPLIT__ 2026-04-22 07:44:04,705 - 56226 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-22 07:44:05,424 - 56226 - src.utils.log - INFO - Generating work orders for setup: 95848 - __SPLIT__ 2026-04-22 07:44:06,113 - 56226 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-04-22 07:44:06,774 - 56226 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=146 and [SysName]= 'Incomplete' ;... (Thread: ThreadPoolExecutor-7_0) - __SPLIT__ 2026-04-22 07:44:07,450 - 56226 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-22 07:44:08,098 - 56226 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-04-22 07:44:08,750 - 56226 - src.utils.log - INFO - Running deletes in PARALLEL… - __SPLIT__ 2026-04-22 07:44:09,396 - 56226 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 95848 ) (Thread: ThreadPoolExecutor-8_0) - __SPLIT__ 2026-04-22 07:44:09,397 - 56226 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 95848 ) (Thread: ThreadPoolExecutor-8_4) - __SPLIT__ 2026-04-22 07:44:09,396 - 56226 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 95848 ) (Thread: ThreadPoolExecutor-8_1) - __SPLIT__ 2026-04-22 07:44:09,396 - 56226 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 95848 ) (Thread: ThreadPoolExecutor-8_3) - __SPLIT__ 2026-04-22 07:44:09,396 - 56226 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 95848 ) (Thread: ThreadPoolExecutor-8_2) - __SPLIT__ 2026-04-22 07:44:09,399 - 56226 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 95848 ) (Thread: ThreadPoolExecutor-8_5) - __SPLIT__ 2026-04-22 07:44:09,399 - 56226 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 95848 ) (Thread: ThreadPoolExecutor-8_6) - __SPLIT__ 2026-04-22 07:44:10,105 - 56226 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-22 07:44:10,841 - 56226 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-22 07:44:11,511 - 56226 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-22 07:44:12,148 - 56226 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-22 07:44:12,835 - 56226 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-22 07:44:13,466 - 56226 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-22 07:44:14,356 - 56226 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-22 07:44:18,814 - 56226 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 95848 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 07:44:19,833 - 56226 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-22 07:44:20,490 - 56226 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 95848;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 07:44:21,166 - 56226 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-22 07:44:21,816 - 56226 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-04-22 07:44:22,471 - 56226 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId = 95848... (Thread: ThreadPoolExecutor-9_0) - __SPLIT__ 2026-04-22 07:44:22,471 - 56226 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId = 95848... (Thread: ThreadPoolExecutor-9_1) - __SPLIT__ 2026-04-22 07:44:22,471 - 56226 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId = 95848... (Thread: ThreadPoolExecutor-9_2) - __SPLIT__ 2026-04-22 07:44:22,472 - 56226 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId = 95848;... (Thread: ThreadPoolExecutor-9_4) - __SPLIT__ 2026-04-22 07:44:22,471 - 56226 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId = 95848... (Thread: ThreadPoolExecutor-9_3) - __SPLIT__ 2026-04-22 07:44:22,473 - 56226 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId = 95848;... (Thread: ThreadPoolExecutor-9_5) - __SPLIT__ 2026-04-22 07:44:22,474 - 56226 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId = 95848;... (Thread: ThreadPoolExecutor-9_6) - __SPLIT__ 2026-04-22 07:44:22,475 - 56226 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId = 95848;... (Thread: ThreadPoolExecutor-9_7) - __SPLIT__ 2026-04-22 07:44:23,151 - 56226 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-22 07:44:23,800 - 56226 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-22 07:44:24,452 - 56226 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-22 07:44:25,100 - 56226 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-22 07:44:25,750 - 56226 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-22 07:44:26,401 - 56226 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-22 07:44:27,237 - 56226 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-22 07:44:28,061 - 56226 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-22 07:44:28,604 - 56226 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId = 95848... (Thread: ThreadPoolExecutor-9_0) - __SPLIT__ 2026-04-22 07:44:33,856 - 56226 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-22 07:44:34,519 - 56226 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 56226;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 07:44:35,200 - 56226 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-04-22 07:44:35,849 - 56226 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET WorkOrderStatusDateTime = '2026-04-22 03:44:35.849' WHERE CompanyId = 146 AND GenerateWorkOrderHistoryId = 56226;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 07:44:36,533 - 56226 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-04-22 07:44:37,179 - 56226 - src.utils.log - INFO - - __SPLIT__ 2026-04-22 07:44:37,819 - 56226 - src.utils.log - INFO - Work order generation successful - Time took: 49.14 - __SPLIT__ 2026-04-22 07:44:38,464 - 56226 - src.utils.log - INFO - Work order publish in progress for GenerateWorkOrderHistoryId: 56226 - __SPLIT__ 2026-04-22 07:44:39,111 - 56226 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'InProgress', WoPublishStartDateTime = '2026-04-22 03:44:39.111' WHERE CompanyId = 146 AND GenerateWorkOrderHistoryId = 56226;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 07:44:39,785 - 56226 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-04-22 07:44:40,431 - 56226 - src.utils.log - INFO - πŸ” Fetching data: Select CreatedBy from ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryId = 56226;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 07:44:41,386 - 56226 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-22 07:44:42,033 - 56226 - src.utils.log - INFO - Inside get_work_order_table - __SPLIT__ 2026-04-22 07:44:42,693 - 56226 - src.utils.log - INFO - πŸ” Fetching data: SELECT DISTINCT sss.ServiceSetupId, dm.DepartmentMasterId, bm.BranchMasterId FROM Common.DepartmentMaster dm JOIN Common.DivisionMaster d2 ON dm.DivisionMasterId = d2.DivisionMasterId JOIN Common.BranchMaster bm ON d2.BranchMasterId = bm.BranchMasterId JOIN ServiceCore.ServiceCategoryMaster c ON c.DepartmentId = dm.DepartmentMasterId JOIN ServiceCore.ServiceMaster sm ON c.CategoryId = sm.CategoryId JOIN ServiceCore.ServiceSetupServices sss ON sss.ServiceId = sm.ServiceMasterId WHERE dm.CompanyId = 146 AND d2.CompanyId = bm.CompanyId AND sss.ServiceSetupId = 95848 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 07:44:43,386 - 56226 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-22 07:44:44,033 - 56226 - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceSetupId, dm.DepartmentMasterId, bm.BranchMasterId FROM Common.DepartmentMaster dm JOIN Common.DivisionMaster d2 ON dm.DivisionMasterId = d2.DivisionMasterId JOIN Common.BranchMaster bm ON d2.BranchMasterId = bm.BranchMasterId JOIN ServiceCore.SoldServiceNonStandard x on dm.DepartmentMasterId = x.DepartmentId JOIN ServiceCore.ServiceSetupServices sss ON sss.NonStdSoldServiceId = x.SoldServiceNonStandardId WHERE dm.CompanyId = 146 AND d2.CompanyId = bm.CompanyId AND sss.ServiceSetupId = 95848 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 07:44:44,720 - 56226 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-22 07:44:45,374 - 56226 - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceSetupId, dm.DepartmentMasterId, bm.BranchMasterId FROM Common.DepartmentMaster dm Inner JOIN Common.DivisionMaster d2 ON dm.DivisionMasterId = d2.DivisionMasterId Inner JOIN Common.BranchMaster bm ON d2.BranchMasterId = bm.BranchMasterId Inner JOIN [ServiceCore].[ServiceCategoryMaster] scm ON dm.DepartmentMasterId = scm.DepartmentId Inner JOIN ServiceCore.ServiceMaster sm ON scm.CategoryId = sm.CategoryId Inner JOIN ServiceCore.SoldServiceStandard x on x.ServiceId = sm.ServiceMasterId Inner JOIN ServiceCore.ServiceSetupServices sss ON sss.StdSoldServiceId = x.SoldServiceStandardId WHERE dm.CompanyId = 146 AND d2.CompanyId = bm.CompanyId AND sss.ServiceSetupId = 95848 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 07:44:46,061 - 56226 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-22 07:44:46,722 - 56226 - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder,BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 146;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 07:44:47,406 - 56226 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-22 07:44:48,055 - 56226 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 146 AND EnitityNumberType in ('WorkOrder','Invoice'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 07:44:48,737 - 56226 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-04-22 07:44:49,387 - 56226 - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder, BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 146; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 07:44:50,076 - 56226 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-22 07:44:50,729 - 56226 - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 5 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 146 AND EnitityNumberType = 'WorkOrder'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 07:44:51,411 - 56226 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-22 07:44:52,066 - 56226 - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 5 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 146 AND EnitityNumberType = 'Invoice'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 07:44:52,747 - 56226 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-22 07:44:53,403 - 56226 - src.utils.log - INFO - πŸ” Fetching data: SELECT ss.ServiceSetupId as SetupId, ss.FrequencyScheduleId as setup_frequency_schedule_id, ss.AccountNumber, ss.CompanyId, ss.BillingLocationId, ss.ServiceLocationId, ss.TaxSysName, ss.TermId, ss.TaxPercent, ss.PoNumber, ss.IsTaxExempt, ss.DisplayServiceAsSeparateLineItem, ss.GenerateInvoice, ss.IsGenerateInvoiceforInitalSetup, ss.IsGenerateInvoiceforInitalSetupBilling, ss.IsBilling, t.NetDueIn, ptm.PaymentType, ssb.* FROM ServiceCore.ServiceSetup ss LEFT JOIN ServiceCore.ServiceSetupBilling ssb ON ss.ServiceSetupId = ssb.ServiceSetupId LEFT JOIN Billing.PaymentTypeMaster ptm ON ptm.PaymentTypeMasterId = ssb.PaymentTypeMasterId left join Billing.Term t on ss.TermId = t.TermId WHERE ss.ServiceSetupId = 95848... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 07:44:54,087 - 56226 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-22 07:44:55,036 - 56226 - src.utils.log - INFO - πŸ” Fetching data: SELECT x.CompanyId FROM CRM.CompanyMaster x WHERE CompanyKey = 'Fortive';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 07:44:55,725 - 56226 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-22 07:44:56,384 - 56226 - src.utils.log - INFO - πŸ” Fetching data: SELECT CollectionStatus,IsHold,AccountNo FROM CRM.Account a WHERE a.AccountNo = '2110' and a.CompanyId = 134;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 07:44:57,071 - 56226 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-22 07:44:57,731 - 56226 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderNo FROM ServiceCore.WorkOrder WHERE WorkOrderNo IN ('53966', '53967', '53968', '53969', '53970') AND CompanyId = 146 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 07:44:58,422 - 56226 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-22 07:44:59,082 - 56226 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrder (skip triggers): 5 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 07:44:59,823 - 56226 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 5) into ServiceCore.WorkOrder (triggers skipped) - __SPLIT__ 2026-04-22 07:45:00,660 - 56226 - src.utils.log - INFO - βœ… All 5 rows inserted successfully into ServiceCore.WorkOrder in 1 batches (triggers skipped) - __SPLIT__ 2026-04-22 07:45:01,333 - 56226 - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-04-22 07:45:02,003 - 56226 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkorderId, WorkOrderNo FROM ServiceCore.WorkOrder wo WHERE wo.WorkOrderNo IN ('53966', '53967', '53968', '53969', '53970') AND wo.AccountNumber = '2110' AND wo.CompanyId = 146 ... (Thread: ThreadPoolExecutor-10_0) - __SPLIT__ 2026-04-22 07:45:02,703 - 56226 - src.utils.log - INFO - βœ… Fetched 5 rows - __SPLIT__ 2026-04-22 07:45:03,376 - 56226 - src.utils.log - INFO - Updating temp tables - __SPLIT__ 2026-04-22 07:45:04,044 - 56226 - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyKey FROM Common.CompanyMaster cm WHERE CompanyId = 146;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 07:45:04,734 - 56226 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-22 07:45:05,397 - 56226 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 146 AND EnitityNumberType in ('SubWorkOrder'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 07:45:06,082 - 56226 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-22 07:45:06,750 - 56226 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-22 07:45:07,410 - 56226 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishHistory: 5 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 07:45:08,131 - 56226 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 5) into ServiceCore.WorkOrderAutoGenerationPublishHistory - __SPLIT__ 2026-04-22 07:45:09,206 - 56226 - src.utils.log - INFO - βœ… All 5 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishHistory in 1 batches - __SPLIT__ 2026-04-22 07:45:09,863 - 56226 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationPublishHistoryId, WorkOrderNo, ServiceSetupId FROM ServiceCore.WorkOrderAutoGenerationPublishHistory WHERE ServiceSetupId = 95848 AND WorkOrderNo IN (1293769, 8378720, 8879982, 2180788, 3688659) AND GenerateWorkOrderHistoryId = 56226;... (Thread: ThreadPoolExecutor-11_0) - __SPLIT__ 2026-04-22 07:45:10,580 - 56226 - src.utils.log - INFO - βœ… Fetched 5 rows - __SPLIT__ 2026-04-22 07:45:11,237 - 56226 - src.utils.log - INFO - 🏁 Final merged rows: 5 - __SPLIT__ 2026-04-22 07:45:11,902 - 56226 - src.utils.log - INFO - Error: insert_all_publish_tables_parallel() takes 11 positional arguments but 12 were given - __SPLIT__ 2026-04-22 07:45:12,554 - 56226 - src.utils.log - INFO - Time took to perform operation in publishing 56226: 84.51 - __SPLIT__ 2026-04-22 07:45:13,210 - 56226 - src.utils.log - INFO - Publish Completed for GenerateWorkOrderHistoryId: 56226 - __SPLIT__ 2026-04-22 07:45:13,864 - 56226 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-04-22 03:45:13.864' WHERE CompanyId = 146 AND GenerateWorkOrderHistoryId = 56226;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 07:45:14,545 - 56226 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-04-22 07:47:27,907 - [56227] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[508151, 508152] user_id=44502 company_id=145 project_id=[56227] publish_all=False - __SPLIT__ 2026-04-22 07:47:29,814 - [56227] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[508151, 508152] user_id=44502 company_id=145 project_id=[56227] publish_all=False - __SPLIT__ 2026-04-22 07:47:30,481 - [56227] - src.utils.log - INFO - Sequential Work order publish in progress for GenerateWorkOrderHistoryId: [56227] - __SPLIT__ 2026-04-22 07:47:31,174 - [56227] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-04-22 07:47:31,836 - [56227] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Samsung'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 07:47:32,806 - [56227] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-22 07:47:33,473 - [56227] - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-04-22 07:47:34,132 - [56227] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'InProgress' WHERE CompanyId = 145 AND GenerateWorkOrderHistoryId = 56227;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 07:47:34,833 - [56227] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-04-22 07:47:35,496 - [56227] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (508151, 508152)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 07:47:36,198 - [56227] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-04-22 07:47:36,867 - [56227] - src.utils.log - INFO - Inside get_work_order_table - __SPLIT__ 2026-04-22 07:47:37,531 - [56227] - src.utils.log - INFO - πŸ” Fetching data: SELECT DISTINCT sss.ServiceSetupId, dm.DepartmentMasterId, bm.BranchMasterId FROM Common.DepartmentMaster dm JOIN Common.DivisionMaster d2 ON dm.DivisionMasterId = d2.DivisionMasterId JOIN Common.BranchMaster bm ON d2.BranchMasterId = bm.BranchMasterId JOIN ServiceCore.ServiceCategoryMaster c ON c.DepartmentId = dm.DepartmentMasterId JOIN ServiceCore.ServiceMaster sm ON c.CategoryId = sm.CategoryId JOIN ServiceCore.ServiceSetupServices sss ON sss.ServiceId = sm.ServiceMasterId WHERE dm.CompanyId = 145 AND d2.CompanyId = bm.CompanyId AND sss.ServiceSetupId = 95854 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 07:47:38,240 - [56227] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-22 07:47:38,907 - [56227] - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceSetupId, dm.DepartmentMasterId, bm.BranchMasterId FROM Common.DepartmentMaster dm JOIN Common.DivisionMaster d2 ON dm.DivisionMasterId = d2.DivisionMasterId JOIN Common.BranchMaster bm ON d2.BranchMasterId = bm.BranchMasterId JOIN ServiceCore.SoldServiceNonStandard x on dm.DepartmentMasterId = x.DepartmentId JOIN ServiceCore.ServiceSetupServices sss ON sss.NonStdSoldServiceId = x.SoldServiceNonStandardId WHERE dm.CompanyId = 145 AND d2.CompanyId = bm.CompanyId AND sss.ServiceSetupId = 95854 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 07:47:39,604 - [56227] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-22 07:47:40,270 - [56227] - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceSetupId, dm.DepartmentMasterId, bm.BranchMasterId FROM Common.DepartmentMaster dm Inner JOIN Common.DivisionMaster d2 ON dm.DivisionMasterId = d2.DivisionMasterId Inner JOIN Common.BranchMaster bm ON d2.BranchMasterId = bm.BranchMasterId Inner JOIN [ServiceCore].[ServiceCategoryMaster] scm ON dm.DepartmentMasterId = scm.DepartmentId Inner JOIN ServiceCore.ServiceMaster sm ON scm.CategoryId = sm.CategoryId Inner JOIN ServiceCore.SoldServiceStandard x on x.ServiceId = sm.ServiceMasterId Inner JOIN ServiceCore.ServiceSetupServices sss ON sss.StdSoldServiceId = x.SoldServiceStandardId WHERE dm.CompanyId = 145 AND d2.CompanyId = bm.CompanyId AND sss.ServiceSetupId = 95854 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 07:47:40,977 - [56227] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-22 07:47:41,644 - [56227] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder,BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 145;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 07:47:42,339 - [56227] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-22 07:47:43,298 - [56227] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 145 AND EnitityNumberType in ('WorkOrder','Invoice'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 07:47:43,992 - [56227] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-04-22 07:47:44,667 - [56227] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder, BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 145; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 07:47:45,365 - [56227] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-22 07:47:46,038 - [56227] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig SET NextNumber = NextNumber + 2 OUTPUT INSERTED.NextNumber - 2 AS StartNumber WHERE CompanyId = 145 AND EnitityNumberType IN ('WorkOrder','Invoice'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 07:47:46,724 - [56227] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-04-22 07:47:47,395 - [56227] - src.utils.log - INFO - πŸ” Fetching data: SELECT ss.ServiceSetupId as SetupId, ss.FrequencyScheduleId as setup_frequency_schedule_id, ss.AccountNumber, ss.CompanyId, ss.BillingLocationId, ss.ServiceLocationId, ss.TaxSysName, ss.TermId, ss.TaxPercent, ss.PoNumber, ss.IsTaxExempt, ss.DisplayServiceAsSeparateLineItem, ss.GenerateInvoice, ss.IsGenerateInvoiceforInitalSetup, ss.IsGenerateInvoiceforInitalSetupBilling, ss.IsBilling, t.NetDueIn, ptm.PaymentType, ssb.* FROM ServiceCore.ServiceSetup ss LEFT JOIN ServiceCore.ServiceSetupBilling ssb ON ss.ServiceSetupId = ssb.ServiceSetupId LEFT JOIN Billing.PaymentTypeMaster ptm ON ptm.PaymentTypeMasterId = ssb.PaymentTypeMasterId left join Billing.Term t on ss.TermId = t.TermId WHERE ss.ServiceSetupId = 95854... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 07:47:48,097 - [56227] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-22 07:47:48,764 - [56227] - src.utils.log - INFO - πŸ” Fetching data: SELECT x.CompanyId FROM CRM.CompanyMaster x WHERE CompanyKey = 'Samsung';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 07:47:49,459 - [56227] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-22 07:47:50,126 - [56227] - src.utils.log - INFO - πŸ” Fetching data: SELECT CollectionStatus,IsHold,AccountNo FROM CRM.Account a WHERE a.AccountNo = '3486' and a.CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 07:47:50,821 - [56227] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-22 07:47:51,493 - [56227] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderNo FROM ServiceCore.WorkOrder WHERE WorkOrderNo IN ('225190', '225191') AND CompanyId = 145 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 07:47:52,195 - [56227] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-22 07:47:52,863 - [56227] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrder (skip triggers): 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 07:47:53,601 - [56227] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrder (triggers skipped) - __SPLIT__ 2026-04-22 07:47:54,413 - [56227] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrder in 1 batches (triggers skipped) - __SPLIT__ 2026-04-22 07:47:55,096 - [56227] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-04-22 07:47:55,765 - [56227] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkorderId, WorkOrderNo FROM ServiceCore.WorkOrder wo WHERE wo.WorkOrderNo IN ('225190', '225191') AND wo.AccountNumber = '3486' AND wo.CompanyId = 145 ... (Thread: ThreadPoolExecutor-0_0) - __SPLIT__ 2026-04-22 07:47:56,468 - [56227] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-04-22 07:47:57,423 - [56227] - src.utils.log - INFO - Sequential fetching temp table records - __SPLIT__ 2026-04-22 07:47:58,076 - [56227] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationServices woag WHERE woag.WorkOrderAutoGenerationId in (508151, 508152)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 07:47:58,770 - [56227] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-04-22 07:47:59,426 - [56227] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SubWorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (508151, 508152)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 07:48:00,134 - [56227] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-22 07:48:00,790 - [56227] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationCrews woag WHERE woag.WorkOrderAutoGenerationId in (508151, 508152)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 07:48:01,482 - [56227] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-04-22 07:48:02,139 - [56227] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationSalesPersonCommission woag WHERE woag.WorkOrderAutoGenerationId in (508151, 508152)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 07:48:02,826 - [56227] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-22 07:48:03,481 - [56227] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupAutoGenerationSourceMapping woag WHERE woag.WorkOrderAutoGenerationId in (508151, 508152)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 07:48:04,177 - [56227] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-22 07:48:04,836 - [56227] - src.utils.log - INFO - πŸ” Fetching data: SELECT DiscountType, DiscountCode, DiscountAmount, DiscountDescription, DiscountName, IsActive, CreatedBy, ModifiedBy, CreatedDate, ModifiedDate, DiscountPercent, IsDiscountPercent, AppliedDiscountAmt, ApplyOnPartPrice, ApplyOnLaborPrice, DiscountSetupId, WorkOrderAutoGenerationId from ServiceCore.WorkOrderAutoGenerationAppliedDiscount woag WHERE woag.WorkOrderAutoGenerationId in (508151, 508152)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 07:48:05,534 - [56227] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-22 07:48:06,189 - [56227] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from CRM.LeadNote woag WHERE woag.RefId in (508151, 508152) and woag.RefType = 'TempWorkorder';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 07:48:06,887 - [56227] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-22 07:48:07,550 - [56227] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment woagca WHERE woagca.WorkOrderAutoGenerationId in (508151, 508152);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 07:48:08,241 - [56227] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-22 07:48:08,895 - [56227] - src.utils.log - INFO - Updating temp tables - __SPLIT__ 2026-04-22 07:48:09,562 - [56227] - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyKey FROM Common.CompanyMaster cm WHERE CompanyId = 145;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 07:48:10,244 - [56227] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-22 07:48:11,189 - [56227] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 145 AND EnitityNumberType in ('SubWorkOrder'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 07:48:11,875 - [56227] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-22 07:48:12,539 - [56227] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-22 07:48:13,192 - [56227] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishHistory: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 07:48:13,900 - [56227] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationPublishHistory - __SPLIT__ 2026-04-22 07:48:14,774 - [56227] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishHistory in 1 batches - __SPLIT__ 2026-04-22 07:48:15,431 - [56227] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationPublishHistoryId, WorkOrderNo, ServiceSetupId FROM ServiceCore.WorkOrderAutoGenerationPublishHistory WHERE ServiceSetupId = 95854 AND WorkOrderNo IN ('6120817', '4156457') AND GenerateWorkOrderHistoryId = 56227;... (Thread: ThreadPoolExecutor-1_0) - __SPLIT__ 2026-04-22 07:48:16,155 - [56227] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-04-22 07:48:16,810 - [56227] - src.utils.log - INFO - 🏁 Final merged rows: 2 - __SPLIT__ 2026-04-22 07:48:17,465 - [56227] - src.utils.log - INFO - Sequential Insertion in work order tables begin - __SPLIT__ 2026-04-22 07:48:18,124 - [56227] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-22 07:48:18,776 - [56227] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderServices: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 07:48:19,481 - [56227] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderServices - __SPLIT__ 2026-04-22 07:48:20,254 - [56227] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderServices in 1 batches - __SPLIT__ 2026-04-22 07:48:20,916 - [56227] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderAppliedDiscount: - __SPLIT__ 2026-04-22 07:48:21,574 - [56227] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderSalesPersonCommission: - __SPLIT__ 2026-04-22 07:48:22,224 - [56227] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderCommissionAdjustment: - __SPLIT__ 2026-04-22 07:48:22,874 - [56227] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-22 07:48:23,528 - [56227] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderCrew: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 07:48:24,230 - [56227] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderCrew - __SPLIT__ 2026-04-22 07:48:25,285 - [56227] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderCrew in 1 batches - __SPLIT__ 2026-04-22 07:48:25,948 - [56227] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkorderSourceMapping: - __SPLIT__ 2026-04-22 07:48:26,608 - [56227] - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-04-22 07:48:27,268 - [56227] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-22 07:48:27,928 - [56227] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishServices: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 07:48:28,644 - [56227] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationPublishServices - __SPLIT__ 2026-04-22 07:48:29,419 - [56227] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishServices in 1 batches - __SPLIT__ 2026-04-22 07:48:30,078 - [56227] - src.utils.log - INFO - πŸ” Fetching data: SELECT ss.ServiceSetupId as SetupId, ss.FrequencyScheduleId as setup_frequency_schedule_id, ss.AccountNumber, ss.CompanyId, ss.BillingLocationId, ss.ServiceLocationId, ss.TaxSysName, ss.TermId, ss.TaxPercent, ss.PoNumber, ss.IsTaxExempt, ss.DisplayServiceAsSeparateLineItem, ss.GenerateInvoice, ss.IsGenerateInvoiceforInitalSetup, ss.IsGenerateInvoiceforInitalSetupBilling, ss.IsBilling, t.NetDueIn, ptm.PaymentType, ssb.* FROM ServiceCore.ServiceSetup ss LEFT JOIN ServiceCore.ServiceSetupBilling ssb ON ss.ServiceSetupId = ssb.ServiceSetupId LEFT JOIN Billing.PaymentTypeMaster ptm ON ptm.PaymentTypeMasterId = ssb.PaymentTypeMasterId left join Billing.Term t on ss.TermId = t.TermId WHERE ss.ServiceSetupId = 95854... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 07:48:30,773 - [56227] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-22 07:48:31,436 - [56227] - src.utils.log - INFO - Size of Transaction: 2 - __SPLIT__ 2026-04-22 07:48:32,098 - [56227] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 07:48:32,824 - [56227] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-04-22 07:48:33,597 - [56227] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-04-22 07:48:34,269 - [56227] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-04-22 07:48:34,931 - [56227] - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionId, ModifiedBy, TransactionDate as InvoiceDate from Billing.[Transaction] t WHERE t.ModifiedBy in (12345678910, 12345678911) and t.CompanyId = 145 AND t.TransactionType ='Invoice' AND t.CreatedDate = '2026-04-22 03:48:31.431';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 07:48:35,755 - [56227] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-04-22 07:48:36,420 - [56227] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 95854;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 07:48:37,113 - [56227] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-22 07:48:37,778 - [56227] - src.utils.log - INFO - πŸ“ Executing: UPDATE Billing.[Transaction] SET ModifiedBy = NULL WHERE ModifiedBy IN (12345678910,12345678911) AND CreatedDate = '2026-04-22 03:48:31.431'; ... (Thread: ThreadPoolExecutor-2_0) - __SPLIT__ 2026-04-22 07:48:38,527 - [56227] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-04-22 07:48:39,483 - [56227] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-22 07:48:40,157 - [56227] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 07:48:40,882 - [56227] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.Invoice - __SPLIT__ 2026-04-22 07:48:41,689 - [56227] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-04-22 07:48:42,363 - [56227] - src.utils.log - INFO - πŸ” Fetching data: SELECT InvoiceId, WorkOrderNo FROM Billing.Invoice i WHERE i.WorkOrderNo in ('225191', '225190')... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 07:48:43,111 - [56227] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-04-22 07:48:43,799 - [56227] - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceSetupId, sss.NonStdSoldServiceId as SoldServiceNonStandardId, sss.Qty as Quantity, sss.Price as Rate, sss.IsTaxable, sm.Name as NonStandardServiceName, sm.Description , sm.ServiceMasterId as ServiceId FROM ServiceCore.ServiceSetupServices sss join ServiceCore.ServiceMaster sm on sm.ServiceMasterId = sss.ServiceId where ServiceSetupId = 95854 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 07:48:44,510 - [56227] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-22 07:48:45,188 - [56227] - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceSetupId, sss.NonStdSoldServiceId as SoldServiceNonStandardId, sss.Qty as Quantity, sss.Price as Rate, sss.IsTaxable, sm.Name as NonStandardServiceName, sm.Description , sm.ServiceMasterId as ServiceId FROM ServiceCore.ServiceSetupInitialServices sss join ServiceCore.ServiceMaster sm on sm.ServiceMasterId = sss.ServiceId where ServiceSetupId = 95854 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 07:48:45,892 - [56227] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-22 07:48:46,572 - [56227] - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceSetupId, sss.NonStdSoldServiceId as SoldServiceNonStandardId, sss.Qty as Quantity, sss.Price as Rate, sss.IsTaxable, sm.servicename as NonStandardServiceName, sm.Description , sss.ServiceId FROM ServiceCore.ServiceSetupServices sss join ServiceCore.SoldServiceNonStandard sm on sm.SoldServiceNonStandardId = sss.NonStdSoldServiceId where ServiceSetupId = 95854 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 07:48:47,286 - [56227] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-22 07:48:47,971 - [56227] - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceSetupId, sss.NonStdSoldServiceId as SoldServiceNonStandardId, sss.Qty as Quantity, sss.Price as Rate, sss.IsTaxable, sm.servicename as NonStandardServiceName, sm.Description , sss.ServiceId FROM ServiceCore.ServiceSetupInitialServices sss join ServiceCore.SoldServiceNonStandard sm on sm.SoldServiceNonStandardId = sss.NonStdSoldServiceId where ServiceSetupId = 95854 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 07:48:48,681 - [56227] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-22 07:48:49,370 - [56227] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 95854;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 07:48:50,083 - [56227] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-22 07:48:50,776 - [56227] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId, AppliedDiscountAmt as AppliedDiscountAmount,IsActive ,ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 95854;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 07:48:51,485 - [56227] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-22 07:48:52,166 - [56227] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId,IsActive,DiscountAmount, IsDiscountPercent,DiscountPercent,DiscountDescription , ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 95854;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 07:48:52,873 - [56227] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-22 07:48:53,846 - [56227] - src.utils.log - INFO - Sequential Insertion in invoice tables begin - __SPLIT__ 2026-04-22 07:48:54,541 - [56227] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.AccountDiscountSetup: - __SPLIT__ 2026-04-22 07:48:55,214 - [56227] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-22 07:48:55,880 - [56227] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceCharges: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 07:48:56,602 - [56227] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.InvoiceCharges - __SPLIT__ 2026-04-22 07:48:57,381 - [56227] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.InvoiceCharges in 1 batches - __SPLIT__ 2026-04-22 07:48:58,046 - [56227] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.DiscountApplied: - __SPLIT__ 2026-04-22 07:48:58,717 - [56227] - src.utils.log - INFO - Invoice Publish Done - __SPLIT__ 2026-04-22 07:48:59,389 - [56227] - src.utils.log - INFO - Updating Next GenerationDate - __SPLIT__ 2026-04-22 07:49:00,057 - [56227] - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, MAX(NextWorkOrderGenerationDate) AS MaxNextWorkOrderGeneration FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 56227 GROUP BY ServiceSetupId; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 07:49:00,758 - [56227] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-22 07:49:01,432 - [56227] - src.utils.log - INFO - πŸ”„ Updating next gen date sequentially: inside update_next_workorder_generation - __SPLIT__ 2026-04-22 07:49:02,115 - [56227] - src.utils.log - INFO - πŸ›  Creating temp table #tbl_5a723f86f6 - __SPLIT__ 2026-04-22 07:49:02,814 - [56227] - src.utils.log - INFO - πŸ“Œ Bulk inserting 1 rows into #tbl_5a723f86f6 - __SPLIT__ 2026-04-22 07:49:03,521 - [56227] - src.utils.log - INFO - πŸ” Running MERGE update to apply changes - __SPLIT__ 2026-04-22 07:49:04,218 - [56227] - src.utils.log - INFO - βœ” SQL reported affected rows: 1 - __SPLIT__ 2026-04-22 07:49:04,911 - [56227] - src.utils.log - INFO - πŸ” Verified successfully updated 1 rows via #tbl_5a723f86f6 - __SPLIT__ 2026-04-22 07:49:05,587 - [56227] - src.utils.log - INFO - πŸŽ‰ Successfully updated NextGenerationDate using temp table #tbl_5a723f86f6 - __SPLIT__ 2026-04-22 07:49:06,260 - [56227] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 56227 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 07:49:06,961 - [56227] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-22 07:49:07,919 - [56227] - src.utils.log - INFO - Sequential deletion from temp tables begin - __SPLIT__ 2026-04-22 07:49:08,577 - [56227] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId in (508151, 508152) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 07:49:09,300 - [56227] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-22 07:49:09,957 - [56227] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId in (508151, 508152) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 07:49:10,661 - [56227] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-22 07:49:11,316 - [56227] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId in (508151, 508152) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 07:49:12,000 - [56227] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-22 07:49:12,654 - [56227] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId in (508151, 508152) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 07:49:13,353 - [56227] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-22 07:49:14,010 - [56227] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId in (508151, 508152) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 07:49:14,736 - [56227] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-22 07:49:15,388 - [56227] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (508151, 508152) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 07:49:16,105 - [56227] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-22 07:49:16,765 - [56227] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId in (508151, 508152) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 07:49:17,459 - [56227] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-22 07:49:18,110 - [56227] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (508151, 508152) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 07:49:18,865 - [56227] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-22 07:49:19,533 - [56227] - src.utils.log - INFO - Work order published ids: (508151, 508152) - __SPLIT__ 2026-04-22 07:49:20,196 - [56227] - src.utils.log - INFO - Time took to perform operation in publishing [56227]: 109.04 - __SPLIT__ 2026-04-22 07:49:20,854 - [56227] - src.utils.log - INFO - Publish Completed for GenerateWorkOrderHistoryId: [56227] - __SPLIT__ 2026-04-22 07:49:21,814 - [56227] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-04-22 03:49:19.533' WHERE CompanyId = 145 AND GenerateWorkOrderHistoryId = 56227;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 07:49:22,506 - [56227] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-04-22 07:56:07,025 - 11905 - src.utils.log - INFO - ParallelProcessing=False GenerateInvoiceHistoryId=11905 - __SPLIT__ 2026-04-22 07:56:07,969 - 11905 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-04-22 07:56:08,617 - 11905 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 07:56:09,470 - 11905 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-22 07:56:10,127 - 11905 - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-04-22 07:56:10,785 - 11905 - src.utils.log - INFO - Sequential Invoice generation algo started for GenerateInvoiceHistoryId: 11905 - __SPLIT__ 2026-04-22 07:56:11,440 - 11905 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET Status = 'InProgress' WHERE GenerateInvoiceHistoryId = 11905;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 07:56:12,120 - 11905 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-04-22 07:56:12,776 - 11905 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateInvoiceHistory WHERE GenerateInvoiceHistoryId = 11905;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 07:56:13,471 - 11905 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-22 07:56:14,124 - 11905 - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceId as ServiceMasterId,ss.FrequencyScheduleId as setup_frequency_schedule_id, ssb.*, ss.IsBilling, ss.DepartmentMasterId, ss.AccountNumber, ss.CompanyId, ss.BillingLocationId, ss.ServiceLocationId, ss.TaxSysName, ss.TermId, t.NetDueIn, ss.TaxPercent, ss.PoNumber, ss.DisplayServiceAsSeparateLineItem, ss.SetupEndDate, ss.SetupStartDate from ServiceCore.ServiceSetup ss join ServiceCore.ServiceSetupBilling ssb on ss.ServiceSetupId = ssb.ServiceSetupId join Billing.PaymentTypeMaster ptm on ptm.PaymentTypeMasterId = ssb.PaymentTypeMasterId join Billing.Term t on ss.TermId = t.TermId join ServiceCore.ServiceSetupServices sss on ss.ServiceSetupId = sss.ServiceSetupId where ptm.PaymentType= 'Payment Plan' and ss.IsActive =1 and ss.CompanyId= 146 AND ss.IsDeleted =0 AND ss.Status <> 'Canceled' and ss.AccountNumber = '2108' and ss.ServiceSetupId = 95853;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 07:56:14,815 - 11905 - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-04-22 07:56:15,480 - 11905 - src.utils.log - INFO - No filter selected - __SPLIT__ 2026-04-22 07:56:16,136 - 11905 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-04-22 07:56:16,798 - 11905 - src.utils.log - INFO - πŸ” Fetching data: SELECT fsd.IntervalDays, fs.CreatedDate ,f.FrequencyId , fs.FrequencyScheduleId, f.[SysName], f.FrequencyValue, f.YearlyOccurrence , fs.ScheduleFormat,fsd.Days, fsd.Weeks, fsd.Months,fsc.[Month] as sch_months, fsd.StartMonth , fsd.DateDay,fsd.DateMonth FROM [ServiceCore].[FrequencyMaster] f inner join [ServiceCore].[FrequencySchedule] fs on fs.FrequencyId = f.FrequencyId left join ServiceCore.FrequencyScheduleCycle fsc on fsc.FrequencyScheduleId = fs.FrequencyScheduleId left join [ServiceCore].[FrequencyScheduleDetail] fsd on fsd.FrequencyScheduleId = fs.FrequencyScheduleId WHERE fsd.FrequencyScheduleId = 14946... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 07:56:17,489 - 11905 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-22 07:56:18,144 - 11905 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-04-22 07:56:18,804 - 11905 - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionAutoGenerationId FROM Billing.TransactionAutoGeneration WHERE ServiceSetupId = 95853 AND TransactionDate BETWEEN '2026-04-22 00:00:00' AND '2027-06-30 00:00:00' AND IsActive = 1 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 07:56:19,484 - 11905 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-22 07:56:20,145 - 11905 - src.utils.log - INFO - πŸ” Fetching data: SELECT Inv.ServiceSetupId, MAX(Inv.InvoiceDate) AS InvoiceDate FROM Billing.Invoice Inv INNER JOIN Billing.[Transaction] T ON Inv.TransactionId = T.TransactionId WHERE Inv.InvoiceDate BETWEEN '2026-04-22 00:00:00' AND '2027-06-30 00:00:00' AND Inv.IsActive = 1 AND Inv.IsDelete = 0 AND T.IsActive = 1 AND T.IsDelete = 0 AND Inv.ServiceSetupId = 95853 GROUP BY Inv.ServiceSetupId;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 07:56:20,843 - 11905 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-22 07:56:21,777 - 11905 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-22 07:56:22,421 - 11905 - src.utils.log - INFO - πŸ“₯ Inserting into Billing.TransactionAutoGeneration: 15 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 07:56:23,119 - 11905 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 15) into Billing.TransactionAutoGeneration - __SPLIT__ 2026-04-22 07:56:23,879 - 11905 - src.utils.log - INFO - βœ… All 15 rows inserted successfully into Billing.TransactionAutoGeneration in 1 batches - __SPLIT__ 2026-04-22 07:56:24,524 - 11905 - src.utils.log - INFO - - __SPLIT__ 2026-04-22 07:56:25,162 - 11905 - src.utils.log - INFO - Total invoice generated: 15 - __SPLIT__ 2026-04-22 07:56:25,802 - 11905 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 15 TransactionAutoGenerationId, ServiceSetupId, TransactionDate as InvoiceDate From Billing.TransactionAutoGeneration WHERE CreatedDate = '2026-04-17 10:10:13.237' and ServiceSetupId = 95853 and GenerateWorkOrderHistoryId= 11905;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 07:56:26,480 - 11905 - src.utils.log - INFO - βœ… Fetched 15 rows - __SPLIT__ 2026-04-22 07:56:27,129 - 11905 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-22 07:56:27,766 - 11905 - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceAutoGeneration: 15 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 07:56:28,458 - 11905 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 15) into Billing.InvoiceAutoGeneration - __SPLIT__ 2026-04-22 07:56:29,221 - 11905 - src.utils.log - INFO - βœ… All 15 rows inserted successfully into Billing.InvoiceAutoGeneration in 1 batches - __SPLIT__ 2026-04-22 07:56:29,862 - 11905 - src.utils.log - INFO - πŸ” Fetching data: SELECT I.InvoiceAutoGenerationId, T.ServiceSetupId FROM Billing.InvoiceAutoGeneration I JOIN Billing.TransactionAutoGeneration T ON I.TransactionAutoGenerationId = T.TransactionAutoGenerationId where T.TransactionAutoGenerationId in (245344, 245345, 245331, 245332, 245333, 245334, 245335, 245336, 245337, 245338, 245339, 245340, 245341, 245342, 245343);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 07:56:30,545 - 11905 - src.utils.log - INFO - βœ… Fetched 15 rows - __SPLIT__ 2026-04-22 07:56:31,189 - 11905 - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceSetupId, sss.NonStdSoldServiceId as SoldServiceNonStandardId, sss.Qty as Quantity, sss.Price as Rate, sss.IsTaxable, sm.Name as NonStandardServiceName, sm.Description , sm.ServiceMasterId as ServiceId FROM ServiceCore.ServiceSetupServices sss join ServiceCore.ServiceMaster sm on sm.ServiceMasterId = sss.ServiceId where ServiceSetupId = 95853 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 07:56:31,861 - 11905 - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-04-22 07:56:32,513 - 11905 - src.utils.log - INFO - πŸ” Fetching data: SELECT fm.YearlyOccurrence, fs.FrequencyScheduleId From ServiceCore.FrequencySchedule fs join ServiceCore.FrequencyMaster fm on fs.FrequencyId = fm.FrequencyId where fs.FrequencyScheduleId = 14825;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 07:56:33,178 - 11905 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-22 07:56:33,821 - 11905 - src.utils.log - INFO - πŸ” Fetching data: SELECT fm.YearlyOccurrence, fs.FrequencyScheduleId From ServiceCore.FrequencySchedule fs join ServiceCore.FrequencyMaster fm on fs.FrequencyId = fm.FrequencyId where fs.FrequencyScheduleId = 14946;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 07:56:34,491 - 11905 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-22 07:56:35,433 - 11905 - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, DiscountSetupId,DiscountType,DiscountCode,DiscountAmount,DiscountDescription,DiscountName, DiscountPercent, IsDiscountPercent,AppliedDiscountAmt,ApplyOnPartPrice,ApplyOnLaborPrice from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE IsInitialSetupDiscount = 0 AND ssad.ServiceSetupId = 95853;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 07:56:36,118 - 11905 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-22 07:56:36,775 - 11905 - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.InvoiceAutoGenerationAppliedDiscount: - __SPLIT__ 2026-04-22 07:56:37,425 - 11905 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-22 07:56:38,079 - 11905 - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceChargesAutoGeneration: 45 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 07:56:38,780 - 11905 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 45) into Billing.InvoiceChargesAutoGeneration - __SPLIT__ 2026-04-22 07:56:39,592 - 11905 - src.utils.log - INFO - βœ… All 45 rows inserted successfully into Billing.InvoiceChargesAutoGeneration in 1 batches - __SPLIT__ 2026-04-22 07:56:40,252 - 11905 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET Status = 'Completed' WHERE GenerateInvoiceHistoryId = 11905;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 07:56:40,928 - 11905 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-04-22 07:56:41,586 - 11905 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET InvoiceStatusDateTime = '2026-04-22 03:56:41.586' WHERE GenerateInvoiceHistoryId = 11905;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 07:56:42,267 - 11905 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-04-22 07:56:42,924 - 11905 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-04-22 07:56:43,578 - 11905 - src.utils.log - INFO - Sequential Invoice Gen Complete Successfully ProjectId:11905 - Time took: 35.61 - __SPLIT__ 2026-04-22 08:58:53,033 - 11906 - src.utils.log - INFO - ParallelProcessing=False GenerateInvoiceHistoryId=11906 - __SPLIT__ 2026-04-22 08:58:54,929 - 11906 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-04-22 08:58:55,590 - 11906 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 08:58:56,436 - 11906 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-22 08:58:57,087 - 11906 - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-04-22 08:58:57,740 - 11906 - src.utils.log - INFO - Sequential Invoice generation algo started for GenerateInvoiceHistoryId: 11906 - __SPLIT__ 2026-04-22 08:58:58,394 - 11906 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET Status = 'InProgress' WHERE GenerateInvoiceHistoryId = 11906;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 08:58:59,067 - 11906 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-04-22 08:58:59,719 - 11906 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateInvoiceHistory WHERE GenerateInvoiceHistoryId = 11906;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 08:59:00,400 - 11906 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-22 08:59:01,050 - 11906 - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceId as ServiceMasterId,ss.FrequencyScheduleId as setup_frequency_schedule_id, ssb.*, ss.IsBilling, ss.DepartmentMasterId, ss.AccountNumber, ss.CompanyId, ss.BillingLocationId, ss.ServiceLocationId, ss.TaxSysName, ss.TermId, t.NetDueIn, ss.TaxPercent, ss.PoNumber, ss.DisplayServiceAsSeparateLineItem, ss.SetupEndDate, ss.SetupStartDate from ServiceCore.ServiceSetup ss join ServiceCore.ServiceSetupBilling ssb on ss.ServiceSetupId = ssb.ServiceSetupId join Billing.PaymentTypeMaster ptm on ptm.PaymentTypeMasterId = ssb.PaymentTypeMasterId join Billing.Term t on ss.TermId = t.TermId join ServiceCore.ServiceSetupServices sss on ss.ServiceSetupId = sss.ServiceSetupId where ptm.PaymentType= 'Payment Plan' and ss.IsActive =1 and ss.CompanyId= 146 AND ss.IsDeleted =0 AND ss.Status <> 'Canceled' and ss.AccountNumber = '2108' and ss.ServiceSetupId = 95857;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 08:59:01,733 - 11906 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-22 08:59:02,388 - 11906 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET Status = 'Completed' WHERE GenerateInvoiceHistoryId = 11906;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 08:59:03,074 - 11906 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-04-22 08:59:03,725 - 11906 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET InvoiceStatusDateTime = '2026-04-22 04:59:03.725' WHERE GenerateInvoiceHistoryId = 11906;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 08:59:04,407 - 11906 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-04-22 08:59:05,055 - 11906 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-04-22 08:59:05,706 - 11906 - src.utils.log - INFO - Error in Sequential Invoice Gen ProjectId:11906 - Time took: 10.78 - Error:No setups found for GenerateWorkOrderHistoryid: 11906 - __SPLIT__ 2026-04-22 09:02:17,889 - 56231 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=56231 - __SPLIT__ 2026-04-22 09:02:18,835 - 56231 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 56231 - __SPLIT__ 2026-04-22 09:02:19,485 - 56231 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-04-22 09:02:20,138 - 56231 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 09:02:20,993 - 56231 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-22 09:02:21,650 - 56231 - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-04-22 09:02:22,296 - 56231 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 56231;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 09:02:22,974 - 56231 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-04-22 09:02:23,624 - 56231 - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.RecurringServicePrice, gw.StartDate, gw.EndDate, gw.CreatedBy AS NewCreatedBy, gw.RouteIds, ss.* FROM ServiceCore.GenerateWorkOrderHistory gw JOIN ServiceCore.ServiceSetup ss ON gw.CompanyId = ss.CompanyId AND ( (ss.NextGenerationDate <= gw.EndDate AND ss.NextGenerationDate >= gw.StartDate) OR ss.NextGenerationDate IS NULL) AND (gw.AccountNumber IS NULL OR ss.AccountNumber = gw.AccountNumber) AND (gw.ServiceSetupId IS NULL OR ss.ServiceSetupId = gw.ServiceSetupId)AND (gw.RouteIds IS NULL OR ss.RouteMasterId IN (SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 56231), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 56231), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 56231 AND ss.FrequencyScheduleId IS NOT NULL AND ss.IsActive = 1 AND ss.IsDeleted = 0 AND ss.Status <> 'Canceled';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 09:02:24,336 - 56231 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-22 09:02:24,990 - 56231 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 56231;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 09:02:25,674 - 56231 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-22 09:02:26,330 - 56231 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-04-22 09:02:26,983 - 56231 - src.utils.log - INFO - πŸ” Fetching data: SELECT fsd.IntervalDays, fs.CreatedDate ,f.FrequencyId , fs.FrequencyScheduleId, f.[SysName], f.FrequencyValue, f.YearlyOccurrence , fs.ScheduleFormat,fsd.Days, fsd.Weeks, fsd.Months,fsc.[Month] as sch_months, fsd.StartMonth , fsd.DateDay,fsd.DateMonth FROM [ServiceCore].[FrequencyMaster] f inner join [ServiceCore].[FrequencySchedule] fs on fs.FrequencyId = f.FrequencyId left join ServiceCore.FrequencyScheduleCycle fsc on fsc.FrequencyScheduleId = fs.FrequencyScheduleId left join [ServiceCore].[FrequencyScheduleDetail] fsd on fsd.FrequencyScheduleId = fs.FrequencyScheduleId WHERE fsd.FrequencyScheduleId = 14825... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 09:02:27,670 - 56231 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-22 09:02:28,322 - 56231 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-04-22 09:02:28,977 - 56231 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-04-22 09:02:29,640 - 56231 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 95857;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 09:02:30,320 - 56231 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-22 09:02:30,972 - 56231 - src.utils.log - INFO - πŸ” Fetching data: select ServiceDate, ServiceSetupId, IsInitial from serviceCore.WorkOrder wo inner join ServiceCore.WorkOrderStatus wos on wo.WoStatusId = wos.WoStatusId where ServiceDate >= '2026-04-22 00:00:00' and ServiceDate <= '2028-02-29 00:00:00' and ServiceSetupId = 95857 and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 09:02:31,662 - 56231 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-22 09:02:32,673 - 56231 - src.utils.log - INFO - Generating work orders for setup: 95857 - __SPLIT__ 2026-04-22 09:02:33,468 - 56231 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=146 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 09:02:34,147 - 56231 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-22 09:02:34,801 - 56231 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-04-22 09:02:35,454 - 56231 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-04-22 09:02:36,104 - 56231 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 95857 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 09:02:36,827 - 56231 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-22 09:02:37,483 - 56231 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 95857 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 09:02:38,182 - 56231 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-22 09:02:38,831 - 56231 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 95857 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 09:02:39,531 - 56231 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-22 09:02:40,186 - 56231 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 95857 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 09:02:40,900 - 56231 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-22 09:02:41,547 - 56231 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 95857 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 09:02:42,244 - 56231 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-22 09:02:42,893 - 56231 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 95857 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 09:02:43,812 - 56231 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-22 09:02:44,466 - 56231 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 95857 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 09:02:45,145 - 56231 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-22 09:02:45,797 - 56231 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 95857 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 09:02:47,084 - 56231 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-22 09:02:47,736 - 56231 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-22 09:02:48,383 - 56231 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 09:02:49,090 - 56231 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-04-22 09:02:49,856 - 56231 - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-04-22 09:02:50,508 - 56231 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 1 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-04-17 15:40:12.910' and ServiceSetupId = 95857... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 09:02:51,202 - 56231 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-22 09:02:51,858 - 56231 - src.utils.log - INFO - Id's of work order inserted to DB: [508163] - __SPLIT__ 2026-04-22 09:02:52,512 - 56231 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 95857;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 09:02:53,187 - 56231 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-22 09:02:53,835 - 56231 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-04-22 09:02:54,486 - 56231 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId = 95857... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 09:02:55,172 - 56231 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-22 09:02:55,823 - 56231 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId = 95857... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 09:02:56,530 - 56231 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-22 09:02:57,184 - 56231 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId = 95857... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 09:02:57,870 - 56231 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-22 09:02:58,519 - 56231 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId = 95857... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 09:02:59,191 - 56231 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-22 09:02:59,841 - 56231 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId = 95857... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 09:03:00,798 - 56231 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-22 09:03:01,446 - 56231 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId = 95857;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 09:03:02,121 - 56231 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-22 09:03:02,769 - 56231 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId = 95857;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 09:03:03,446 - 56231 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-22 09:03:04,094 - 56231 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId = 95857;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 09:03:04,780 - 56231 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-22 09:03:05,431 - 56231 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId = 95857;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 09:03:06,107 - 56231 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-22 09:03:06,762 - 56231 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-04-22 09:03:07,413 - 56231 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-04-22 09:03:08,059 - 56231 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-04-22 09:03:08,713 - 56231 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.CommunicationPreferencesServiceReportNotification: - __SPLIT__ 2026-04-22 09:03:09,361 - 56231 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-04-22 09:03:10,009 - 56231 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SetupAutoGenerationSourceMapping: - __SPLIT__ 2026-04-22 09:03:10,664 - 56231 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-04-22 09:03:11,310 - 56231 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationAppliedDiscount: - __SPLIT__ 2026-04-22 09:03:11,957 - 56231 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-04-22 09:03:12,608 - 56231 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-22 09:03:13,258 - 56231 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 508163 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 09:03:14,267 - 56231 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-22 09:03:14,925 - 56231 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.SubWorkOrderAutoGeneration: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 09:03:15,620 - 56231 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.SubWorkOrderAutoGeneration - __SPLIT__ 2026-04-22 09:03:16,462 - 56231 - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.SubWorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-04-22 09:03:17,121 - 56231 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-04-22 09:03:17,785 - 56231 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: - __SPLIT__ 2026-04-22 09:03:18,439 - 56231 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-04-22 09:03:19,096 - 56231 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: - __SPLIT__ 2026-04-22 09:03:19,760 - 56231 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-04-22 09:03:20,420 - 56231 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCrews: - __SPLIT__ 2026-04-22 09:03:21,080 - 56231 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-04-22 09:03:21,737 - 56231 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationServices: - __SPLIT__ 2026-04-22 09:03:22,396 - 56231 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-04-22 09:03:23,054 - 56231 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-22 09:03:23,712 - 56231 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 09:03:24,405 - 56231 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-04-22 09:03:25,158 - 56231 - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-04-22 09:03:25,814 - 56231 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-04-22 09:03:26,467 - 56231 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 56231;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 09:03:27,146 - 56231 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-04-22 09:03:28,144 - 56231 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-04-22 09:03:28,813 - 56231 - src.utils.log - INFO - Time took to perform operation: 68.66 - __SPLIT__ 2026-04-22 09:03:29,487 - 56231 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 56231;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 09:03:30,186 - 56231 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-04-22 09:03:30,856 - 56231 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET WorkOrderStatusDateTime = '2026-04-22 05:03:30.856' WHERE GenerateWorkOrderHistoryId = 56231;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 09:03:31,550 - 56231 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-04-22 09:04:38,237 - [56232] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[508164] user_id=44506 company_id=146 project_id=[56232] publish_all=False - __SPLIT__ 2026-04-22 09:04:39,188 - [56232] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[508164] user_id=44506 company_id=146 project_id=[56232] publish_all=False - __SPLIT__ 2026-04-22 09:04:39,849 - [56232] - src.utils.log - INFO - Sequential Work order publish in progress for GenerateWorkOrderHistoryId: [56232] - __SPLIT__ 2026-04-22 09:04:40,508 - [56232] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-04-22 09:04:41,165 - [56232] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 09:04:41,990 - [56232] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-22 09:04:42,646 - [56232] - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-04-22 09:04:43,297 - [56232] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'InProgress' WHERE CompanyId = 146 AND GenerateWorkOrderHistoryId = 56232;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 09:04:43,972 - [56232] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-04-22 09:04:44,622 - [56232] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId = 508164... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 09:04:45,302 - [56232] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-22 09:04:45,955 - [56232] - src.utils.log - INFO - Inside get_work_order_table - __SPLIT__ 2026-04-22 09:04:46,605 - [56232] - src.utils.log - INFO - πŸ” Fetching data: SELECT DISTINCT sss.ServiceSetupId, dm.DepartmentMasterId, bm.BranchMasterId FROM Common.DepartmentMaster dm JOIN Common.DivisionMaster d2 ON dm.DivisionMasterId = d2.DivisionMasterId JOIN Common.BranchMaster bm ON d2.BranchMasterId = bm.BranchMasterId JOIN ServiceCore.ServiceCategoryMaster c ON c.DepartmentId = dm.DepartmentMasterId JOIN ServiceCore.ServiceMaster sm ON c.CategoryId = sm.CategoryId JOIN ServiceCore.ServiceSetupServices sss ON sss.ServiceId = sm.ServiceMasterId WHERE dm.CompanyId = 146 AND d2.CompanyId = bm.CompanyId AND sss.ServiceSetupId = 95857 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 09:04:47,287 - [56232] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-22 09:04:47,939 - [56232] - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceSetupId, dm.DepartmentMasterId, bm.BranchMasterId FROM Common.DepartmentMaster dm JOIN Common.DivisionMaster d2 ON dm.DivisionMasterId = d2.DivisionMasterId JOIN Common.BranchMaster bm ON d2.BranchMasterId = bm.BranchMasterId JOIN ServiceCore.SoldServiceNonStandard x on dm.DepartmentMasterId = x.DepartmentId JOIN ServiceCore.ServiceSetupServices sss ON sss.NonStdSoldServiceId = x.SoldServiceNonStandardId WHERE dm.CompanyId = 146 AND d2.CompanyId = bm.CompanyId AND sss.ServiceSetupId = 95857 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 09:04:48,622 - [56232] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-22 09:04:49,273 - [56232] - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceSetupId, dm.DepartmentMasterId, bm.BranchMasterId FROM Common.DepartmentMaster dm Inner JOIN Common.DivisionMaster d2 ON dm.DivisionMasterId = d2.DivisionMasterId Inner JOIN Common.BranchMaster bm ON d2.BranchMasterId = bm.BranchMasterId Inner JOIN [ServiceCore].[ServiceCategoryMaster] scm ON dm.DepartmentMasterId = scm.DepartmentId Inner JOIN ServiceCore.ServiceMaster sm ON scm.CategoryId = sm.CategoryId Inner JOIN ServiceCore.SoldServiceStandard x on x.ServiceId = sm.ServiceMasterId Inner JOIN ServiceCore.ServiceSetupServices sss ON sss.StdSoldServiceId = x.SoldServiceStandardId WHERE dm.CompanyId = 146 AND d2.CompanyId = bm.CompanyId AND sss.ServiceSetupId = 95857 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 09:04:49,957 - [56232] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-22 09:04:50,617 - [56232] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder,BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 146;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 09:04:51,283 - [56232] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-22 09:04:51,931 - [56232] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 146 AND EnitityNumberType in ('WorkOrder','Invoice'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 09:04:52,920 - [56232] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-04-22 09:04:53,579 - [56232] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder, BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 146; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 09:04:54,267 - [56232] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-22 09:04:54,927 - [56232] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 1 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 146 AND EnitityNumberType = 'WorkOrder'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 09:04:55,613 - [56232] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-22 09:04:56,275 - [56232] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 1 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 146 AND EnitityNumberType = 'Invoice'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 09:04:56,959 - [56232] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-22 09:04:57,617 - [56232] - src.utils.log - INFO - πŸ” Fetching data: SELECT ss.ServiceSetupId as SetupId, ss.FrequencyScheduleId as setup_frequency_schedule_id, ss.AccountNumber, ss.CompanyId, ss.BillingLocationId, ss.ServiceLocationId, ss.TaxSysName, ss.TermId, ss.TaxPercent, ss.PoNumber, ss.IsTaxExempt, ss.DisplayServiceAsSeparateLineItem, ss.GenerateInvoice, ss.IsGenerateInvoiceforInitalSetup, ss.IsGenerateInvoiceforInitalSetupBilling, ss.IsBilling, t.NetDueIn, ptm.PaymentType, ssb.* FROM ServiceCore.ServiceSetup ss LEFT JOIN ServiceCore.ServiceSetupBilling ssb ON ss.ServiceSetupId = ssb.ServiceSetupId LEFT JOIN Billing.PaymentTypeMaster ptm ON ptm.PaymentTypeMasterId = ssb.PaymentTypeMasterId left join Billing.Term t on ss.TermId = t.TermId WHERE ss.ServiceSetupId = 95857... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 09:04:58,303 - [56232] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-22 09:04:58,956 - [56232] - src.utils.log - INFO - πŸ” Fetching data: SELECT x.CompanyId FROM CRM.CompanyMaster x WHERE CompanyKey = 'Fortive';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 09:04:59,641 - [56232] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-22 09:05:00,298 - [56232] - src.utils.log - INFO - πŸ” Fetching data: SELECT CollectionStatus,IsHold,AccountNo FROM CRM.Account a WHERE a.AccountNo = '2108' and a.CompanyId = 134;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 09:05:00,977 - [56232] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-22 09:05:01,638 - [56232] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderNo FROM ServiceCore.WorkOrder WHERE WorkOrderNo = '53993' AND CompanyId = 146 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 09:05:02,328 - [56232] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-22 09:05:02,988 - [56232] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrder (skip triggers): 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 09:05:03,713 - [56232] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrder (triggers skipped) - __SPLIT__ 2026-04-22 09:05:04,488 - [56232] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrder in 1 batches (triggers skipped) - __SPLIT__ 2026-04-22 09:05:05,163 - [56232] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-04-22 09:05:05,821 - [56232] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.ServiceSetup SET IsInitialWoGenerated = 1 WHERE CompanyId = 146 AND ServiceSetupId = 95857;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 09:05:06,822 - [56232] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-04-22 09:05:07,486 - [56232] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkorderId, WorkOrderNo FROM ServiceCore.WorkOrder wo WHERE wo.WorkOrderNo = '53993' AND wo.AccountNumber = '2108' AND wo.CompanyId = 146 ... (Thread: ThreadPoolExecutor-12_0) - __SPLIT__ 2026-04-22 09:05:08,175 - [56232] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-22 09:05:08,838 - [56232] - src.utils.log - INFO - Sequential fetching temp table records - __SPLIT__ 2026-04-22 09:05:09,498 - [56232] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationServices woag WHERE woag.WorkOrderAutoGenerationId = 508164... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 09:05:10,192 - [56232] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-22 09:05:10,854 - [56232] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SubWorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId = 508164... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 09:05:11,564 - [56232] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-22 09:05:12,227 - [56232] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationCrews woag WHERE woag.WorkOrderAutoGenerationId = 508164... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 09:05:12,918 - [56232] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-22 09:05:13,582 - [56232] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationSalesPersonCommission woag WHERE woag.WorkOrderAutoGenerationId = 508164... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 09:05:14,276 - [56232] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-22 09:05:14,934 - [56232] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupAutoGenerationSourceMapping woag WHERE woag.WorkOrderAutoGenerationId = 508164... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 09:05:15,618 - [56232] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-22 09:05:16,280 - [56232] - src.utils.log - INFO - πŸ” Fetching data: SELECT DiscountType, DiscountCode, DiscountAmount, DiscountDescription, DiscountName, IsActive, CreatedBy, ModifiedBy, CreatedDate, ModifiedDate, DiscountPercent, IsDiscountPercent, AppliedDiscountAmt, ApplyOnPartPrice, ApplyOnLaborPrice, DiscountSetupId, WorkOrderAutoGenerationId from ServiceCore.WorkOrderAutoGenerationAppliedDiscount woag WHERE woag.WorkOrderAutoGenerationId = 508164... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 09:05:16,963 - [56232] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-22 09:05:17,623 - [56232] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from CRM.LeadNote woag WHERE woag.RefId = 508164 and woag.RefType = 'TempWorkorder';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 09:05:18,313 - [56232] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-22 09:05:18,973 - [56232] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment woagca WHERE woagca.WorkOrderAutoGenerationId = 508164;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 09:05:19,653 - [56232] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-22 09:05:20,623 - [56232] - src.utils.log - INFO - Updating temp tables - __SPLIT__ 2026-04-22 09:05:21,312 - [56232] - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyKey FROM Common.CompanyMaster cm WHERE CompanyId = 146;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 09:05:22,007 - [56232] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-22 09:05:22,672 - [56232] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 146 AND EnitityNumberType in ('SubWorkOrder'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 09:05:23,370 - [56232] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-22 09:05:24,079 - [56232] - src.utils.log - INFO - πŸ“ Executing: UPDATE Common.GenerateNumberConfig SET NextNumber = '2511' WHERE CompanyId = 146 AND EnitityNumberType in ('SubWorkOrder');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 09:05:24,777 - [56232] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-04-22 09:05:25,455 - [56232] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-22 09:05:26,124 - [56232] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishHistory: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 09:05:26,838 - [56232] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderAutoGenerationPublishHistory - __SPLIT__ 2026-04-22 09:05:27,616 - [56232] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishHistory in 1 batches - __SPLIT__ 2026-04-22 09:05:28,344 - [56232] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationPublishHistoryId, WorkOrderNo, ServiceSetupId FROM ServiceCore.WorkOrderAutoGenerationPublishHistory WHERE ServiceSetupId = 95857 AND WorkOrderNo = '9042170' AND GenerateWorkOrderHistoryId = 56232; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 09:05:29,070 - [56232] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-22 09:05:29,749 - [56232] - src.utils.log - INFO - Sequential Insertion in work order tables begin - __SPLIT__ 2026-04-22 09:05:30,425 - [56232] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-22 09:05:31,091 - [56232] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderServices: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 09:05:31,810 - [56232] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderServices - __SPLIT__ 2026-04-22 09:05:32,578 - [56232] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderServices in 1 batches - __SPLIT__ 2026-04-22 09:05:33,254 - [56232] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderAppliedDiscount: - __SPLIT__ 2026-04-22 09:05:33,926 - [56232] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderSalesPersonCommission: - __SPLIT__ 2026-04-22 09:05:34,877 - [56232] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderCommissionAdjustment: - __SPLIT__ 2026-04-22 09:05:35,543 - [56232] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderCrew: - __SPLIT__ 2026-04-22 09:05:36,214 - [56232] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkorderSourceMapping: - __SPLIT__ 2026-04-22 09:05:36,880 - [56232] - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-04-22 09:05:37,544 - [56232] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-22 09:05:38,214 - [56232] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishServices: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 09:05:38,941 - [56232] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderAutoGenerationPublishServices - __SPLIT__ 2026-04-22 09:05:39,702 - [56232] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishServices in 1 batches - __SPLIT__ 2026-04-22 09:05:40,365 - [56232] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-22 09:05:41,033 - [56232] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.SubWorkOrder: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 09:05:41,759 - [56232] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.SubWorkOrder - __SPLIT__ 2026-04-22 09:05:42,541 - [56232] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.SubWorkOrder in 1 batches - __SPLIT__ 2026-04-22 09:05:43,207 - [56232] - src.utils.log - INFO - πŸ” Fetching data: Select * From ServiceCore.SubWorkOrder where WorkOrderId = 1286390... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 09:05:43,905 - [56232] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-22 09:05:44,574 - [56232] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-22 09:05:45,259 - [56232] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.subWorkOrderIssue: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 09:05:45,969 - [56232] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceAuto.subWorkOrderIssue - __SPLIT__ 2026-04-22 09:05:46,723 - [56232] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceAuto.subWorkOrderIssue in 1 batches - __SPLIT__ 2026-04-22 09:05:47,393 - [56232] - src.utils.log - INFO - πŸ” Fetching data: Select SubWorkOrderIssueId, SubWorkOrderId, ModifiedBy From ServiceAuto.subWorkOrderIssue where SubWorkOrderId = 247601 and ModifiedBy = 999999999 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 09:05:48,085 - [56232] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-22 09:05:49,038 - [56232] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceAuto.subWorkOrderIssue SET ModifiedBy = 'fortive' WHERE ModifiedBy = '999999999'; ... (Thread: ThreadPoolExecutor-13_0) - __SPLIT__ 2026-04-22 09:05:49,761 - [56232] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-04-22 09:05:50,449 - [56232] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-22 09:05:51,109 - [56232] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.subWOIssueRepair: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 09:05:51,817 - [56232] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceAuto.subWOIssueRepair - __SPLIT__ 2026-04-22 09:05:52,572 - [56232] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceAuto.subWOIssueRepair in 1 batches - __SPLIT__ 2026-04-22 09:05:53,235 - [56232] - src.utils.log - INFO - πŸ” Fetching data: Select IssueRepairId, ModifiedBy From ServiceAuto.subWOIssueRepair where SubWorkOrderIssueId = 215147... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 09:05:53,924 - [56232] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-22 09:05:54,586 - [56232] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceAuto.subWOIssueRepair SET ModifiedBy = 'fortive' WHERE ModifiedBy = '0___TMP___215147' AND CreatedDate = '2026-04-22 05:05:44.571'; ... (Thread: ThreadPoolExecutor-14_0) - __SPLIT__ 2026-04-22 09:05:55,293 - [56232] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-04-22 09:05:55,975 - [56232] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-22 09:05:56,633 - [56232] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.SubWOIssueRepairLabor: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 09:05:57,336 - [56232] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceAuto.SubWOIssueRepairLabor - __SPLIT__ 2026-04-22 09:05:58,089 - [56232] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceAuto.SubWOIssueRepairLabor in 1 batches - __SPLIT__ 2026-04-22 09:05:58,755 - [56232] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-22 09:05:59,422 - [56232] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.SubWOIssueRepairPart: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 09:06:00,135 - [56232] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceAuto.SubWOIssueRepairPart - __SPLIT__ 2026-04-22 09:06:00,900 - [56232] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceAuto.SubWOIssueRepairPart in 1 batches - __SPLIT__ 2026-04-22 09:06:01,563 - [56232] - src.utils.log - INFO - πŸ” Fetching data: SELECT ss.ServiceSetupId as SetupId, ss.FrequencyScheduleId as setup_frequency_schedule_id, ss.AccountNumber, ss.CompanyId, ss.BillingLocationId, ss.ServiceLocationId, ss.TaxSysName, ss.TermId, ss.TaxPercent, ss.PoNumber, ss.IsTaxExempt, ss.DisplayServiceAsSeparateLineItem, ss.GenerateInvoice, ss.IsGenerateInvoiceforInitalSetup, ss.IsGenerateInvoiceforInitalSetupBilling, ss.IsBilling, t.NetDueIn, ptm.PaymentType, ssb.* FROM ServiceCore.ServiceSetup ss LEFT JOIN ServiceCore.ServiceSetupBilling ssb ON ss.ServiceSetupId = ssb.ServiceSetupId LEFT JOIN Billing.PaymentTypeMaster ptm ON ptm.PaymentTypeMasterId = ssb.PaymentTypeMasterId left join Billing.Term t on ss.TermId = t.TermId WHERE ss.ServiceSetupId = 95857... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 09:06:02,246 - [56232] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-22 09:06:03,213 - [56232] - src.utils.log - INFO - Size of Transaction: 1 - __SPLIT__ 2026-04-22 09:06:03,884 - [56232] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 09:06:04,607 - [56232] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-04-22 09:06:05,370 - [56232] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-04-22 09:06:06,075 - [56232] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-04-22 09:06:06,745 - [56232] - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionId, ModifiedBy, TransactionDate as InvoiceDate from Billing.[Transaction] t WHERE t.ModifiedBy = 12345678910 and t.CompanyId = 146 AND t.TransactionType ='Invoice' AND t.CreatedDate = '2026-04-22 05:06:03.209';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 09:06:07,507 - [56232] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-22 09:06:08,179 - [56232] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 95857;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 09:06:08,880 - [56232] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-22 09:06:09,556 - [56232] - src.utils.log - INFO - πŸ“ Executing: UPDATE Billing.[Transaction] SET ModifiedBy = NULL WHERE ModifiedBy = 12345678910 AND CreatedDate = '2026-04-22 05:06:03.209'; ... (Thread: ThreadPoolExecutor-15_0) - __SPLIT__ 2026-04-22 09:06:10,305 - [56232] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-04-22 09:06:10,967 - [56232] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-22 09:06:11,636 - [56232] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 09:06:12,356 - [56232] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into Billing.Invoice - __SPLIT__ 2026-04-22 09:06:13,122 - [56232] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-04-22 09:06:13,795 - [56232] - src.utils.log - INFO - πŸ” Fetching data: SELECT InvoiceId, WorkOrderNo FROM Billing.Invoice i WHERE i.WorkOrderNo = '53993'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 09:06:14,525 - [56232] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-04-22 09:06:15,202 - [56232] - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceSetupId, sss.NonStdSoldServiceId as SoldServiceNonStandardId, sss.Qty as Quantity, sss.Price as Rate, sss.IsTaxable, sm.Name as NonStandardServiceName, sm.Description , sm.ServiceMasterId as ServiceId FROM ServiceCore.ServiceSetupServices sss join ServiceCore.ServiceMaster sm on sm.ServiceMasterId = sss.ServiceId where ServiceSetupId = 95857 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 09:06:15,903 - [56232] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-22 09:06:16,567 - [56232] - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceSetupId, sss.NonStdSoldServiceId as SoldServiceNonStandardId, sss.Qty as Quantity, sss.Price as Rate, sss.IsTaxable, sm.Name as NonStandardServiceName, sm.Description , sm.ServiceMasterId as ServiceId FROM ServiceCore.ServiceSetupInitialServices sss join ServiceCore.ServiceMaster sm on sm.ServiceMasterId = sss.ServiceId where ServiceSetupId = 95857 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 09:06:17,566 - [56232] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-22 09:06:18,258 - [56232] - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceSetupId, sss.NonStdSoldServiceId as SoldServiceNonStandardId, sss.Qty as Quantity, sss.Price as Rate, sss.IsTaxable, sm.servicename as NonStandardServiceName, sm.Description , sss.ServiceId FROM ServiceCore.ServiceSetupServices sss join ServiceCore.SoldServiceNonStandard sm on sm.SoldServiceNonStandardId = sss.NonStdSoldServiceId where ServiceSetupId = 95857 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 09:06:18,962 - [56232] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-22 09:06:19,632 - [56232] - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceSetupId, sss.NonStdSoldServiceId as SoldServiceNonStandardId, sss.Qty as Quantity, sss.Price as Rate, sss.IsTaxable, sm.servicename as NonStandardServiceName, sm.Description , sss.ServiceId FROM ServiceCore.ServiceSetupInitialServices sss join ServiceCore.SoldServiceNonStandard sm on sm.SoldServiceNonStandardId = sss.NonStdSoldServiceId where ServiceSetupId = 95857 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 09:06:20,339 - [56232] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-22 09:06:21,030 - [56232] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId, AppliedDiscountAmt as AppliedDiscountAmount,IsActive ,ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 95857;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 09:06:21,733 - [56232] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-22 09:06:22,420 - [56232] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId,IsActive,DiscountAmount, IsDiscountPercent,DiscountPercent,DiscountDescription , ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 95857;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 09:06:23,126 - [56232] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-22 09:06:23,809 - [56232] - src.utils.log - INFO - Sequential Insertion in invoice tables begin - __SPLIT__ 2026-04-22 09:06:24,485 - [56232] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.AccountDiscountSetup: - __SPLIT__ 2026-04-22 09:06:25,162 - [56232] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.InvoiceCharges: - __SPLIT__ 2026-04-22 09:06:25,844 - [56232] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.DiscountApplied: - __SPLIT__ 2026-04-22 09:06:26,519 - [56232] - src.utils.log - INFO - Invoice Publish Done - __SPLIT__ 2026-04-22 09:06:27,204 - [56232] - src.utils.log - INFO - Updating Next GenerationDate - __SPLIT__ 2026-04-22 09:06:27,885 - [56232] - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, MAX(NextWorkOrderGenerationDate) AS MaxNextWorkOrderGeneration FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 56232 GROUP BY ServiceSetupId; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 09:06:28,590 - [56232] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-22 09:06:29,279 - [56232] - src.utils.log - INFO - πŸ”„ Updating next gen date sequentially: inside update_next_workorder_generation - __SPLIT__ 2026-04-22 09:06:29,967 - [56232] - src.utils.log - INFO - πŸ›  Creating temp table #tbl_2014a20a0e - __SPLIT__ 2026-04-22 09:06:30,669 - [56232] - src.utils.log - INFO - πŸ“Œ Bulk inserting 1 rows into #tbl_2014a20a0e - __SPLIT__ 2026-04-22 09:06:31,653 - [56232] - src.utils.log - INFO - πŸ” Running MERGE update to apply changes - __SPLIT__ 2026-04-22 09:06:32,335 - [56232] - src.utils.log - INFO - βœ” SQL reported affected rows: 1 - __SPLIT__ 2026-04-22 09:06:33,012 - [56232] - src.utils.log - INFO - πŸ” Verified successfully updated 1 rows via #tbl_2014a20a0e - __SPLIT__ 2026-04-22 09:06:33,678 - [56232] - src.utils.log - INFO - πŸŽ‰ Successfully updated NextGenerationDate using temp table #tbl_2014a20a0e - __SPLIT__ 2026-04-22 09:06:34,341 - [56232] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 56232 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 09:06:35,033 - [56232] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-22 09:06:35,697 - [56232] - src.utils.log - INFO - Sequential deletion from temp tables begin - __SPLIT__ 2026-04-22 09:06:36,364 - [56232] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId = 508164 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 09:06:37,084 - [56232] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-22 09:06:37,745 - [56232] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId = 508164 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 09:06:38,453 - [56232] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-22 09:06:39,123 - [56232] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId = 508164 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 09:06:39,813 - [56232] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-22 09:06:40,475 - [56232] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId = 508164 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 09:06:41,172 - [56232] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-22 09:06:41,836 - [56232] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId = 508164 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 09:06:42,526 - [56232] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-22 09:06:43,191 - [56232] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 508164 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 09:06:43,914 - [56232] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-22 09:06:44,581 - [56232] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId = 508164 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 09:06:45,558 - [56232] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-22 09:06:46,217 - [56232] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 508164 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 09:06:46,944 - [56232] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-22 09:06:47,613 - [56232] - src.utils.log - INFO - Work order published ids: (508164,) - __SPLIT__ 2026-04-22 09:06:48,280 - [56232] - src.utils.log - INFO - Time took to perform operation in publishing [56232]: 127.77 - __SPLIT__ 2026-04-22 09:06:48,949 - [56232] - src.utils.log - INFO - Publish Completed for GenerateWorkOrderHistoryId: [56232] - __SPLIT__ 2026-04-22 09:06:49,617 - [56232] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-04-22 05:06:47.613' WHERE CompanyId = 146 AND GenerateWorkOrderHistoryId = 56232;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 09:06:50,307 - [56232] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-04-22 10:33:11,872 - [56234] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[508169] user_id=44502 company_id=145 project_id=[56234] publish_all=False - __SPLIT__ 2026-04-22 10:33:12,842 - [56234] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[508169] user_id=44502 company_id=145 project_id=[56234] publish_all=False - __SPLIT__ 2026-04-22 10:33:13,514 - [56234] - src.utils.log - INFO - Sequential Work order publish in progress for GenerateWorkOrderHistoryId: [56234] - __SPLIT__ 2026-04-22 10:33:14,187 - [56234] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-04-22 10:33:14,850 - [56234] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Samsung'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 10:33:15,658 - [56234] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-22 10:33:16,316 - [56234] - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-04-22 10:33:16,974 - [56234] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'InProgress' WHERE CompanyId = 145 AND GenerateWorkOrderHistoryId = 56234;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 10:33:17,659 - [56234] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-04-22 10:33:18,321 - [56234] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId = 508169... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 10:33:19,066 - [56234] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-22 10:33:19,733 - [56234] - src.utils.log - INFO - Inside get_work_order_table - __SPLIT__ 2026-04-22 10:33:20,396 - [56234] - src.utils.log - INFO - πŸ” Fetching data: SELECT DISTINCT sss.ServiceSetupId, dm.DepartmentMasterId, bm.BranchMasterId FROM Common.DepartmentMaster dm JOIN Common.DivisionMaster d2 ON dm.DivisionMasterId = d2.DivisionMasterId JOIN Common.BranchMaster bm ON d2.BranchMasterId = bm.BranchMasterId JOIN ServiceCore.ServiceCategoryMaster c ON c.DepartmentId = dm.DepartmentMasterId JOIN ServiceCore.ServiceMaster sm ON c.CategoryId = sm.CategoryId JOIN ServiceCore.ServiceSetupServices sss ON sss.ServiceId = sm.ServiceMasterId WHERE dm.CompanyId = 145 AND d2.CompanyId = bm.CompanyId AND sss.ServiceSetupId = 95854 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 10:33:21,084 - [56234] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-22 10:33:21,744 - [56234] - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceSetupId, dm.DepartmentMasterId, bm.BranchMasterId FROM Common.DepartmentMaster dm JOIN Common.DivisionMaster d2 ON dm.DivisionMasterId = d2.DivisionMasterId JOIN Common.BranchMaster bm ON d2.BranchMasterId = bm.BranchMasterId JOIN ServiceCore.SoldServiceNonStandard x on dm.DepartmentMasterId = x.DepartmentId JOIN ServiceCore.ServiceSetupServices sss ON sss.NonStdSoldServiceId = x.SoldServiceNonStandardId WHERE dm.CompanyId = 145 AND d2.CompanyId = bm.CompanyId AND sss.ServiceSetupId = 95854 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 10:33:22,431 - [56234] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-22 10:33:23,105 - [56234] - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceSetupId, dm.DepartmentMasterId, bm.BranchMasterId FROM Common.DepartmentMaster dm Inner JOIN Common.DivisionMaster d2 ON dm.DivisionMasterId = d2.DivisionMasterId Inner JOIN Common.BranchMaster bm ON d2.BranchMasterId = bm.BranchMasterId Inner JOIN [ServiceCore].[ServiceCategoryMaster] scm ON dm.DepartmentMasterId = scm.DepartmentId Inner JOIN ServiceCore.ServiceMaster sm ON scm.CategoryId = sm.CategoryId Inner JOIN ServiceCore.SoldServiceStandard x on x.ServiceId = sm.ServiceMasterId Inner JOIN ServiceCore.ServiceSetupServices sss ON sss.StdSoldServiceId = x.SoldServiceStandardId WHERE dm.CompanyId = 145 AND d2.CompanyId = bm.CompanyId AND sss.ServiceSetupId = 95854 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 10:33:23,799 - [56234] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-22 10:33:24,465 - [56234] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder,BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 145;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 10:33:25,147 - [56234] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-22 10:33:25,808 - [56234] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 145 AND EnitityNumberType in ('WorkOrder','Invoice'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 10:33:26,786 - [56234] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-04-22 10:33:27,458 - [56234] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder, BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 145; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 10:33:28,152 - [56234] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-22 10:33:28,831 - [56234] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig SET NextNumber = NextNumber + 1 OUTPUT INSERTED.NextNumber - 1 AS StartNumber WHERE CompanyId = 145 AND EnitityNumberType IN ('WorkOrder','Invoice'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 10:33:29,531 - [56234] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-04-22 10:33:30,205 - [56234] - src.utils.log - INFO - πŸ” Fetching data: SELECT ss.ServiceSetupId as SetupId, ss.FrequencyScheduleId as setup_frequency_schedule_id, ss.AccountNumber, ss.CompanyId, ss.BillingLocationId, ss.ServiceLocationId, ss.TaxSysName, ss.TermId, ss.TaxPercent, ss.PoNumber, ss.IsTaxExempt, ss.DisplayServiceAsSeparateLineItem, ss.GenerateInvoice, ss.IsGenerateInvoiceforInitalSetup, ss.IsGenerateInvoiceforInitalSetupBilling, ss.IsBilling, t.NetDueIn, ptm.PaymentType, ssb.* FROM ServiceCore.ServiceSetup ss LEFT JOIN ServiceCore.ServiceSetupBilling ssb ON ss.ServiceSetupId = ssb.ServiceSetupId LEFT JOIN Billing.PaymentTypeMaster ptm ON ptm.PaymentTypeMasterId = ssb.PaymentTypeMasterId left join Billing.Term t on ss.TermId = t.TermId WHERE ss.ServiceSetupId = 95854... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 10:33:30,890 - [56234] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-22 10:33:31,560 - [56234] - src.utils.log - INFO - πŸ” Fetching data: SELECT x.CompanyId FROM CRM.CompanyMaster x WHERE CompanyKey = 'Samsung';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 10:33:32,275 - [56234] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-22 10:33:32,943 - [56234] - src.utils.log - INFO - πŸ” Fetching data: SELECT CollectionStatus,IsHold,AccountNo FROM CRM.Account a WHERE a.AccountNo = '3486' and a.CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 10:33:33,627 - [56234] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-22 10:33:34,300 - [56234] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderNo FROM ServiceCore.WorkOrder WHERE WorkOrderNo = '225198' AND CompanyId = 145 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 10:33:34,999 - [56234] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-22 10:33:35,668 - [56234] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrder (skip triggers): 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 10:33:36,465 - [56234] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrder (triggers skipped) - __SPLIT__ 2026-04-22 10:33:37,248 - [56234] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrder in 1 batches (triggers skipped) - __SPLIT__ 2026-04-22 10:33:37,940 - [56234] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-04-22 10:33:38,613 - [56234] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkorderId, WorkOrderNo FROM ServiceCore.WorkOrder wo WHERE wo.WorkOrderNo = '225198' AND wo.AccountNumber = '3486' AND wo.CompanyId = 145 ... (Thread: ThreadPoolExecutor-16_0) - __SPLIT__ 2026-04-22 10:33:39,310 - [56234] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-22 10:33:39,984 - [56234] - src.utils.log - INFO - Sequential fetching temp table records - __SPLIT__ 2026-04-22 10:33:40,942 - [56234] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationServices woag WHERE woag.WorkOrderAutoGenerationId = 508169... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 10:33:41,643 - [56234] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-22 10:33:42,311 - [56234] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SubWorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId = 508169... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 10:33:43,026 - [56234] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-22 10:33:43,691 - [56234] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationCrews woag WHERE woag.WorkOrderAutoGenerationId = 508169... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 10:33:44,382 - [56234] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-22 10:33:45,045 - [56234] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationSalesPersonCommission woag WHERE woag.WorkOrderAutoGenerationId = 508169... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 10:33:45,735 - [56234] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-22 10:33:46,407 - [56234] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupAutoGenerationSourceMapping woag WHERE woag.WorkOrderAutoGenerationId = 508169... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 10:33:47,098 - [56234] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-22 10:33:47,762 - [56234] - src.utils.log - INFO - πŸ” Fetching data: SELECT DiscountType, DiscountCode, DiscountAmount, DiscountDescription, DiscountName, IsActive, CreatedBy, ModifiedBy, CreatedDate, ModifiedDate, DiscountPercent, IsDiscountPercent, AppliedDiscountAmt, ApplyOnPartPrice, ApplyOnLaborPrice, DiscountSetupId, WorkOrderAutoGenerationId from ServiceCore.WorkOrderAutoGenerationAppliedDiscount woag WHERE woag.WorkOrderAutoGenerationId = 508169... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 10:33:48,456 - [56234] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-22 10:33:49,126 - [56234] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from CRM.LeadNote woag WHERE woag.RefId = 508169 and woag.RefType = 'TempWorkorder';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 10:33:49,819 - [56234] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-22 10:33:50,486 - [56234] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment woagca WHERE woagca.WorkOrderAutoGenerationId = 508169;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 10:33:51,174 - [56234] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-22 10:33:51,854 - [56234] - src.utils.log - INFO - Updating temp tables - __SPLIT__ 2026-04-22 10:33:52,534 - [56234] - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyKey FROM Common.CompanyMaster cm WHERE CompanyId = 145;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 10:33:53,215 - [56234] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-22 10:33:53,885 - [56234] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 145 AND EnitityNumberType in ('SubWorkOrder'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 10:33:54,875 - [56234] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-22 10:33:55,547 - [56234] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-22 10:33:56,213 - [56234] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishHistory: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 10:33:56,962 - [56234] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderAutoGenerationPublishHistory - __SPLIT__ 2026-04-22 10:33:57,737 - [56234] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishHistory in 1 batches - __SPLIT__ 2026-04-22 10:33:58,400 - [56234] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationPublishHistoryId, WorkOrderNo, ServiceSetupId FROM ServiceCore.WorkOrderAutoGenerationPublishHistory WHERE ServiceSetupId = 95854 AND WorkOrderNo = '8034712' AND GenerateWorkOrderHistoryId = 56234; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 10:33:59,139 - [56234] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-22 10:33:59,804 - [56234] - src.utils.log - INFO - Sequential Insertion in work order tables begin - __SPLIT__ 2026-04-22 10:34:00,481 - [56234] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-22 10:34:01,147 - [56234] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderServices: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 10:34:01,858 - [56234] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderServices - __SPLIT__ 2026-04-22 10:34:02,628 - [56234] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderServices in 1 batches - __SPLIT__ 2026-04-22 10:34:03,308 - [56234] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderAppliedDiscount: - __SPLIT__ 2026-04-22 10:34:03,975 - [56234] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderSalesPersonCommission: - __SPLIT__ 2026-04-22 10:34:04,674 - [56234] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderCommissionAdjustment: - __SPLIT__ 2026-04-22 10:34:05,338 - [56234] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-22 10:34:06,005 - [56234] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderCrew: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 10:34:06,717 - [56234] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderCrew - __SPLIT__ 2026-04-22 10:34:07,485 - [56234] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderCrew in 1 batches - __SPLIT__ 2026-04-22 10:34:08,155 - [56234] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkorderSourceMapping: - __SPLIT__ 2026-04-22 10:34:09,102 - [56234] - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-04-22 10:34:09,760 - [56234] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-22 10:34:10,410 - [56234] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishServices: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 10:34:11,105 - [56234] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderAutoGenerationPublishServices - __SPLIT__ 2026-04-22 10:34:11,851 - [56234] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishServices in 1 batches - __SPLIT__ 2026-04-22 10:34:12,499 - [56234] - src.utils.log - INFO - πŸ” Fetching data: SELECT ss.ServiceSetupId as SetupId, ss.FrequencyScheduleId as setup_frequency_schedule_id, ss.AccountNumber, ss.CompanyId, ss.BillingLocationId, ss.ServiceLocationId, ss.TaxSysName, ss.TermId, ss.TaxPercent, ss.PoNumber, ss.IsTaxExempt, ss.DisplayServiceAsSeparateLineItem, ss.GenerateInvoice, ss.IsGenerateInvoiceforInitalSetup, ss.IsGenerateInvoiceforInitalSetupBilling, ss.IsBilling, t.NetDueIn, ptm.PaymentType, ssb.* FROM ServiceCore.ServiceSetup ss LEFT JOIN ServiceCore.ServiceSetupBilling ssb ON ss.ServiceSetupId = ssb.ServiceSetupId LEFT JOIN Billing.PaymentTypeMaster ptm ON ptm.PaymentTypeMasterId = ssb.PaymentTypeMasterId left join Billing.Term t on ss.TermId = t.TermId WHERE ss.ServiceSetupId = 95854... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 10:34:13,173 - [56234] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-22 10:34:13,833 - [56234] - src.utils.log - INFO - Size of Transaction: 1 - __SPLIT__ 2026-04-22 10:34:14,487 - [56234] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 10:34:15,195 - [56234] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-04-22 10:34:15,930 - [56234] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-04-22 10:34:16,597 - [56234] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-04-22 10:34:17,251 - [56234] - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionId, ModifiedBy, TransactionDate as InvoiceDate from Billing.[Transaction] t WHERE t.ModifiedBy = 12345678910 and t.CompanyId = 145 AND t.TransactionType ='Invoice' AND t.CreatedDate = '2026-04-22 06:34:13.829';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 10:34:17,986 - [56234] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-22 10:34:18,649 - [56234] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 95854;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 10:34:19,375 - [56234] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-22 10:34:20,037 - [56234] - src.utils.log - INFO - πŸ“ Executing: UPDATE Billing.[Transaction] SET ModifiedBy = NULL WHERE ModifiedBy = 12345678910 AND CreatedDate = '2026-04-22 06:34:13.829'; ... (Thread: ThreadPoolExecutor-17_0) - __SPLIT__ 2026-04-22 10:34:20,782 - [56234] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-04-22 10:34:21,443 - [56234] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-22 10:34:22,103 - [56234] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 10:34:23,085 - [56234] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into Billing.Invoice - __SPLIT__ 2026-04-22 10:34:23,820 - [56234] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-04-22 10:34:24,476 - [56234] - src.utils.log - INFO - πŸ” Fetching data: SELECT InvoiceId, WorkOrderNo FROM Billing.Invoice i WHERE i.WorkOrderNo = '225198'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 10:34:25,184 - [56234] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-22 10:34:25,853 - [56234] - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceSetupId, sss.NonStdSoldServiceId as SoldServiceNonStandardId, sss.Qty as Quantity, sss.Price as Rate, sss.IsTaxable, sm.Name as NonStandardServiceName, sm.Description , sm.ServiceMasterId as ServiceId FROM ServiceCore.ServiceSetupServices sss join ServiceCore.ServiceMaster sm on sm.ServiceMasterId = sss.ServiceId where ServiceSetupId = 95854 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 10:34:26,527 - [56234] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-22 10:34:27,176 - [56234] - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceSetupId, sss.NonStdSoldServiceId as SoldServiceNonStandardId, sss.Qty as Quantity, sss.Price as Rate, sss.IsTaxable, sm.Name as NonStandardServiceName, sm.Description , sm.ServiceMasterId as ServiceId FROM ServiceCore.ServiceSetupInitialServices sss join ServiceCore.ServiceMaster sm on sm.ServiceMasterId = sss.ServiceId where ServiceSetupId = 95854 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 10:34:27,856 - [56234] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-22 10:34:28,512 - [56234] - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceSetupId, sss.NonStdSoldServiceId as SoldServiceNonStandardId, sss.Qty as Quantity, sss.Price as Rate, sss.IsTaxable, sm.servicename as NonStandardServiceName, sm.Description , sss.ServiceId FROM ServiceCore.ServiceSetupServices sss join ServiceCore.SoldServiceNonStandard sm on sm.SoldServiceNonStandardId = sss.NonStdSoldServiceId where ServiceSetupId = 95854 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 10:34:29,189 - [56234] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-22 10:34:29,838 - [56234] - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceSetupId, sss.NonStdSoldServiceId as SoldServiceNonStandardId, sss.Qty as Quantity, sss.Price as Rate, sss.IsTaxable, sm.servicename as NonStandardServiceName, sm.Description , sss.ServiceId FROM ServiceCore.ServiceSetupInitialServices sss join ServiceCore.SoldServiceNonStandard sm on sm.SoldServiceNonStandardId = sss.NonStdSoldServiceId where ServiceSetupId = 95854 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 10:34:30,512 - [56234] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-22 10:34:31,181 - [56234] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 95854;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 10:34:31,861 - [56234] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-22 10:34:32,520 - [56234] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId, AppliedDiscountAmt as AppliedDiscountAmount,IsActive ,ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 95854;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 10:34:33,202 - [56234] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-22 10:34:33,853 - [56234] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId,IsActive,DiscountAmount, IsDiscountPercent,DiscountPercent,DiscountDescription , ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 95854;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 10:34:34,533 - [56234] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-22 10:34:35,186 - [56234] - src.utils.log - INFO - Sequential Insertion in invoice tables begin - __SPLIT__ 2026-04-22 10:34:35,841 - [56234] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.AccountDiscountSetup: - __SPLIT__ 2026-04-22 10:34:36,802 - [56234] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-22 10:34:37,469 - [56234] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceCharges: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 10:34:38,179 - [56234] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into Billing.InvoiceCharges - __SPLIT__ 2026-04-22 10:34:38,922 - [56234] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into Billing.InvoiceCharges in 1 batches - __SPLIT__ 2026-04-22 10:34:39,583 - [56234] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.DiscountApplied: - __SPLIT__ 2026-04-22 10:34:40,246 - [56234] - src.utils.log - INFO - Invoice Publish Done - __SPLIT__ 2026-04-22 10:34:40,906 - [56234] - src.utils.log - INFO - Updating Next GenerationDate - __SPLIT__ 2026-04-22 10:34:41,576 - [56234] - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, MAX(NextWorkOrderGenerationDate) AS MaxNextWorkOrderGeneration FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 56234 GROUP BY ServiceSetupId; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 10:34:42,267 - [56234] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-22 10:34:42,936 - [56234] - src.utils.log - INFO - πŸ”„ Updating next gen date sequentially: inside update_next_workorder_generation - __SPLIT__ 2026-04-22 10:34:43,609 - [56234] - src.utils.log - INFO - πŸ›  Creating temp table #tbl_cc3cc2923a - __SPLIT__ 2026-04-22 10:34:44,292 - [56234] - src.utils.log - INFO - πŸ“Œ Bulk inserting 1 rows into #tbl_cc3cc2923a - __SPLIT__ 2026-04-22 10:34:44,980 - [56234] - src.utils.log - INFO - πŸ” Running MERGE update to apply changes - __SPLIT__ 2026-04-22 10:34:45,663 - [56234] - src.utils.log - INFO - βœ” SQL reported affected rows: 1 - __SPLIT__ 2026-04-22 10:34:46,345 - [56234] - src.utils.log - INFO - πŸ” Verified successfully updated 1 rows via #tbl_cc3cc2923a - __SPLIT__ 2026-04-22 10:34:47,013 - [56234] - src.utils.log - INFO - πŸŽ‰ Successfully updated NextGenerationDate using temp table #tbl_cc3cc2923a - __SPLIT__ 2026-04-22 10:34:47,672 - [56234] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 56234 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 10:34:48,365 - [56234] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-22 10:34:49,032 - [56234] - src.utils.log - INFO - Sequential deletion from temp tables begin - __SPLIT__ 2026-04-22 10:34:49,704 - [56234] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId = 508169 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 10:34:50,700 - [56234] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-22 10:34:51,352 - [56234] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId = 508169 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 10:34:52,049 - [56234] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-22 10:34:52,705 - [56234] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId = 508169 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 10:34:53,397 - [56234] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-22 10:34:54,057 - [56234] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId = 508169 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 10:34:54,747 - [56234] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-22 10:34:55,408 - [56234] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId = 508169 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 10:34:56,101 - [56234] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-22 10:34:56,761 - [56234] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 508169 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 10:34:57,484 - [56234] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-22 10:34:58,151 - [56234] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId = 508169 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 10:34:58,835 - [56234] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-22 10:34:59,500 - [56234] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 508169 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 10:35:00,218 - [56234] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-22 10:35:00,878 - [56234] - src.utils.log - INFO - Work order published ids: (508169,) - __SPLIT__ 2026-04-22 10:35:01,540 - [56234] - src.utils.log - INFO - Time took to perform operation in publishing [56234]: 107.35 - __SPLIT__ 2026-04-22 10:35:02,197 - [56234] - src.utils.log - INFO - Publish Completed for GenerateWorkOrderHistoryId: [56234] - __SPLIT__ 2026-04-22 10:35:02,859 - [56234] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-04-22 06:35:00.878' WHERE CompanyId = 145 AND GenerateWorkOrderHistoryId = 56234;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 10:35:03,553 - [56234] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-04-22 11:20:03,952 - [56235] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[508170, 508171] user_id=44502 company_id=145 project_id=[56235] publish_all=False - __SPLIT__ 2026-04-22 11:20:04,936 - [56235] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[508170, 508171] user_id=44502 company_id=145 project_id=[56235] publish_all=False - __SPLIT__ 2026-04-22 11:20:05,618 - [56235] - src.utils.log - INFO - Sequential Work order publish in progress for GenerateWorkOrderHistoryId: [56235] - __SPLIT__ 2026-04-22 11:20:06,300 - [56235] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-04-22 11:20:06,988 - [56235] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Samsung'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 11:20:07,867 - [56235] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-22 11:20:08,545 - [56235] - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-04-22 11:20:09,217 - [56235] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'InProgress' WHERE CompanyId = 145 AND GenerateWorkOrderHistoryId = 56235;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 11:20:09,918 - [56235] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-04-22 11:20:10,595 - [56235] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (508170, 508171)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 11:20:11,307 - [56235] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-04-22 11:20:11,983 - [56235] - src.utils.log - INFO - Inside get_work_order_table - __SPLIT__ 2026-04-22 11:20:12,657 - [56235] - src.utils.log - INFO - πŸ” Fetching data: SELECT DISTINCT sss.ServiceSetupId, dm.DepartmentMasterId, bm.BranchMasterId FROM Common.DepartmentMaster dm JOIN Common.DivisionMaster d2 ON dm.DivisionMasterId = d2.DivisionMasterId JOIN Common.BranchMaster bm ON d2.BranchMasterId = bm.BranchMasterId JOIN ServiceCore.ServiceCategoryMaster c ON c.DepartmentId = dm.DepartmentMasterId JOIN ServiceCore.ServiceMaster sm ON c.CategoryId = sm.CategoryId JOIN ServiceCore.ServiceSetupServices sss ON sss.ServiceId = sm.ServiceMasterId WHERE dm.CompanyId = 145 AND d2.CompanyId = bm.CompanyId AND sss.ServiceSetupId = 95854 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 11:20:13,360 - [56235] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-22 11:20:14,034 - [56235] - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceSetupId, dm.DepartmentMasterId, bm.BranchMasterId FROM Common.DepartmentMaster dm JOIN Common.DivisionMaster d2 ON dm.DivisionMasterId = d2.DivisionMasterId JOIN Common.BranchMaster bm ON d2.BranchMasterId = bm.BranchMasterId JOIN ServiceCore.SoldServiceNonStandard x on dm.DepartmentMasterId = x.DepartmentId JOIN ServiceCore.ServiceSetupServices sss ON sss.NonStdSoldServiceId = x.SoldServiceNonStandardId WHERE dm.CompanyId = 145 AND d2.CompanyId = bm.CompanyId AND sss.ServiceSetupId = 95854 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 11:20:14,749 - [56235] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-22 11:20:15,420 - [56235] - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceSetupId, dm.DepartmentMasterId, bm.BranchMasterId FROM Common.DepartmentMaster dm Inner JOIN Common.DivisionMaster d2 ON dm.DivisionMasterId = d2.DivisionMasterId Inner JOIN Common.BranchMaster bm ON d2.BranchMasterId = bm.BranchMasterId Inner JOIN [ServiceCore].[ServiceCategoryMaster] scm ON dm.DepartmentMasterId = scm.DepartmentId Inner JOIN ServiceCore.ServiceMaster sm ON scm.CategoryId = sm.CategoryId Inner JOIN ServiceCore.SoldServiceStandard x on x.ServiceId = sm.ServiceMasterId Inner JOIN ServiceCore.ServiceSetupServices sss ON sss.StdSoldServiceId = x.SoldServiceStandardId WHERE dm.CompanyId = 145 AND d2.CompanyId = bm.CompanyId AND sss.ServiceSetupId = 95854 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 11:20:16,128 - [56235] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-22 11:20:16,808 - [56235] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder,BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 145;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 11:20:17,514 - [56235] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-22 11:20:18,185 - [56235] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 145 AND EnitityNumberType in ('WorkOrder','Invoice'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 11:20:19,158 - [56235] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-04-22 11:20:19,813 - [56235] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder, BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 145; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 11:20:20,499 - [56235] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-22 11:20:21,148 - [56235] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig SET NextNumber = NextNumber + 2 OUTPUT INSERTED.NextNumber - 2 AS StartNumber WHERE CompanyId = 145 AND EnitityNumberType IN ('WorkOrder','Invoice'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 11:20:21,831 - [56235] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-04-22 11:20:22,482 - [56235] - src.utils.log - INFO - πŸ” Fetching data: SELECT ss.ServiceSetupId as SetupId, ss.FrequencyScheduleId as setup_frequency_schedule_id, ss.AccountNumber, ss.CompanyId, ss.BillingLocationId, ss.ServiceLocationId, ss.TaxSysName, ss.TermId, ss.TaxPercent, ss.PoNumber, ss.IsTaxExempt, ss.DisplayServiceAsSeparateLineItem, ss.GenerateInvoice, ss.IsGenerateInvoiceforInitalSetup, ss.IsGenerateInvoiceforInitalSetupBilling, ss.IsBilling, t.NetDueIn, ptm.PaymentType, ssb.* FROM ServiceCore.ServiceSetup ss LEFT JOIN ServiceCore.ServiceSetupBilling ssb ON ss.ServiceSetupId = ssb.ServiceSetupId LEFT JOIN Billing.PaymentTypeMaster ptm ON ptm.PaymentTypeMasterId = ssb.PaymentTypeMasterId left join Billing.Term t on ss.TermId = t.TermId WHERE ss.ServiceSetupId = 95854... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 11:20:23,165 - [56235] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-22 11:20:23,866 - [56235] - src.utils.log - INFO - πŸ” Fetching data: SELECT x.CompanyId FROM CRM.CompanyMaster x WHERE CompanyKey = 'Samsung';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 11:20:24,542 - [56235] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-22 11:20:25,188 - [56235] - src.utils.log - INFO - πŸ” Fetching data: SELECT CollectionStatus,IsHold,AccountNo FROM CRM.Account a WHERE a.AccountNo = '3486' and a.CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 11:20:25,868 - [56235] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-22 11:20:26,526 - [56235] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderNo FROM ServiceCore.WorkOrder WHERE WorkOrderNo IN ('225203', '225204') AND CompanyId = 145 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 11:20:27,216 - [56235] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-22 11:20:27,858 - [56235] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrder (skip triggers): 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 11:20:28,581 - [56235] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrder (triggers skipped) - __SPLIT__ 2026-04-22 11:20:29,467 - [56235] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrder in 1 batches (triggers skipped) - __SPLIT__ 2026-04-22 11:20:30,135 - [56235] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-04-22 11:20:30,797 - [56235] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkorderId, WorkOrderNo FROM ServiceCore.WorkOrder wo WHERE wo.WorkOrderNo IN ('225203', '225204') AND wo.AccountNumber = '3486' AND wo.CompanyId = 145 ... (Thread: ThreadPoolExecutor-18_0) - __SPLIT__ 2026-04-22 11:20:31,484 - [56235] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-04-22 11:20:32,137 - [56235] - src.utils.log - INFO - Sequential fetching temp table records - __SPLIT__ 2026-04-22 11:20:33,095 - [56235] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationServices woag WHERE woag.WorkOrderAutoGenerationId in (508170, 508171)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 11:20:33,806 - [56235] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-04-22 11:20:34,474 - [56235] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SubWorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (508170, 508171)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 11:20:35,207 - [56235] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-22 11:20:35,867 - [56235] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationCrews woag WHERE woag.WorkOrderAutoGenerationId in (508170, 508171)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 11:20:36,568 - [56235] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-04-22 11:20:37,233 - [56235] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationSalesPersonCommission woag WHERE woag.WorkOrderAutoGenerationId in (508170, 508171)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 11:20:37,927 - [56235] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-22 11:20:38,598 - [56235] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupAutoGenerationSourceMapping woag WHERE woag.WorkOrderAutoGenerationId in (508170, 508171)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 11:20:39,296 - [56235] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-22 11:20:39,967 - [56235] - src.utils.log - INFO - πŸ” Fetching data: SELECT DiscountType, DiscountCode, DiscountAmount, DiscountDescription, DiscountName, IsActive, CreatedBy, ModifiedBy, CreatedDate, ModifiedDate, DiscountPercent, IsDiscountPercent, AppliedDiscountAmt, ApplyOnPartPrice, ApplyOnLaborPrice, DiscountSetupId, WorkOrderAutoGenerationId from ServiceCore.WorkOrderAutoGenerationAppliedDiscount woag WHERE woag.WorkOrderAutoGenerationId in (508170, 508171)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 11:20:40,661 - [56235] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-22 11:20:41,333 - [56235] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from CRM.LeadNote woag WHERE woag.RefId in (508170, 508171) and woag.RefType = 'TempWorkorder';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 11:20:42,032 - [56235] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-22 11:20:42,694 - [56235] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment woagca WHERE woagca.WorkOrderAutoGenerationId in (508170, 508171);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 11:20:43,387 - [56235] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-22 11:20:44,059 - [56235] - src.utils.log - INFO - Updating temp tables - __SPLIT__ 2026-04-22 11:20:44,736 - [56235] - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyKey FROM Common.CompanyMaster cm WHERE CompanyId = 145;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 11:20:45,435 - [56235] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-22 11:20:46,109 - [56235] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 145 AND EnitityNumberType in ('SubWorkOrder'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 11:20:47,099 - [56235] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-22 11:20:47,768 - [56235] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-22 11:20:48,437 - [56235] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishHistory: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 11:20:49,148 - [56235] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationPublishHistory - __SPLIT__ 2026-04-22 11:20:49,959 - [56235] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishHistory in 1 batches - __SPLIT__ 2026-04-22 11:20:50,623 - [56235] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationPublishHistoryId, WorkOrderNo, ServiceSetupId FROM ServiceCore.WorkOrderAutoGenerationPublishHistory WHERE ServiceSetupId = 95854 AND WorkOrderNo IN ('8272483', '5952461') AND GenerateWorkOrderHistoryId = 56235;... (Thread: ThreadPoolExecutor-19_0) - __SPLIT__ 2026-04-22 11:20:51,367 - [56235] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-04-22 11:20:52,038 - [56235] - src.utils.log - INFO - 🏁 Final merged rows: 2 - __SPLIT__ 2026-04-22 11:20:52,713 - [56235] - src.utils.log - INFO - Sequential Insertion in work order tables begin - __SPLIT__ 2026-04-22 11:20:53,379 - [56235] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-22 11:20:54,064 - [56235] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderServices: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 11:20:54,791 - [56235] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderServices - __SPLIT__ 2026-04-22 11:20:55,579 - [56235] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderServices in 1 batches - __SPLIT__ 2026-04-22 11:20:56,249 - [56235] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderAppliedDiscount: - __SPLIT__ 2026-04-22 11:20:56,935 - [56235] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderSalesPersonCommission: - __SPLIT__ 2026-04-22 11:20:57,598 - [56235] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderCommissionAdjustment: - __SPLIT__ 2026-04-22 11:20:58,266 - [56235] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-22 11:20:58,940 - [56235] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderCrew: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 11:20:59,659 - [56235] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderCrew - __SPLIT__ 2026-04-22 11:21:00,440 - [56235] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderCrew in 1 batches - __SPLIT__ 2026-04-22 11:21:01,398 - [56235] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkorderSourceMapping: - __SPLIT__ 2026-04-22 11:21:02,070 - [56235] - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-04-22 11:21:02,739 - [56235] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-22 11:21:03,413 - [56235] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishServices: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 11:21:04,130 - [56235] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationPublishServices - __SPLIT__ 2026-04-22 11:21:04,922 - [56235] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishServices in 1 batches - __SPLIT__ 2026-04-22 11:21:05,595 - [56235] - src.utils.log - INFO - πŸ” Fetching data: SELECT ss.ServiceSetupId as SetupId, ss.FrequencyScheduleId as setup_frequency_schedule_id, ss.AccountNumber, ss.CompanyId, ss.BillingLocationId, ss.ServiceLocationId, ss.TaxSysName, ss.TermId, ss.TaxPercent, ss.PoNumber, ss.IsTaxExempt, ss.DisplayServiceAsSeparateLineItem, ss.GenerateInvoice, ss.IsGenerateInvoiceforInitalSetup, ss.IsGenerateInvoiceforInitalSetupBilling, ss.IsBilling, t.NetDueIn, ptm.PaymentType, ssb.* FROM ServiceCore.ServiceSetup ss LEFT JOIN ServiceCore.ServiceSetupBilling ssb ON ss.ServiceSetupId = ssb.ServiceSetupId LEFT JOIN Billing.PaymentTypeMaster ptm ON ptm.PaymentTypeMasterId = ssb.PaymentTypeMasterId left join Billing.Term t on ss.TermId = t.TermId WHERE ss.ServiceSetupId = 95854... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 11:21:06,295 - [56235] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-22 11:21:06,970 - [56235] - src.utils.log - INFO - Size of Transaction: 2 - __SPLIT__ 2026-04-22 11:21:07,641 - [56235] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 11:21:08,369 - [56235] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-04-22 11:21:09,151 - [56235] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-04-22 11:21:09,832 - [56235] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-04-22 11:21:10,504 - [56235] - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionId, ModifiedBy, TransactionDate as InvoiceDate from Billing.[Transaction] t WHERE t.ModifiedBy in (12345678910, 12345678911) and t.CompanyId = 145 AND t.TransactionType ='Invoice' AND t.CreatedDate = '2026-04-22 07:21:06.965';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 11:21:11,335 - [56235] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-04-22 11:21:12,009 - [56235] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 95854;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 11:21:12,705 - [56235] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-22 11:21:13,377 - [56235] - src.utils.log - INFO - πŸ“ Executing: UPDATE Billing.[Transaction] SET ModifiedBy = NULL WHERE ModifiedBy IN (12345678910,12345678911) AND CreatedDate = '2026-04-22 07:21:06.965'; ... (Thread: ThreadPoolExecutor-20_0) - __SPLIT__ 2026-04-22 11:21:14,130 - [56235] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-04-22 11:21:14,802 - [56235] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-22 11:21:15,761 - [56235] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 11:21:16,492 - [56235] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.Invoice - __SPLIT__ 2026-04-22 11:21:17,269 - [56235] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-04-22 11:21:17,934 - [56235] - src.utils.log - INFO - πŸ” Fetching data: SELECT InvoiceId, WorkOrderNo FROM Billing.Invoice i WHERE i.WorkOrderNo in ('225204', '225203')... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 11:21:18,688 - [56235] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-04-22 11:21:19,437 - [56235] - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceSetupId, sss.NonStdSoldServiceId as SoldServiceNonStandardId, sss.Qty as Quantity, sss.Price as Rate, sss.IsTaxable, sm.Name as NonStandardServiceName, sm.Description , sm.ServiceMasterId as ServiceId FROM ServiceCore.ServiceSetupServices sss join ServiceCore.ServiceMaster sm on sm.ServiceMasterId = sss.ServiceId where ServiceSetupId = 95854 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 11:21:20,133 - [56235] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-22 11:21:20,803 - [56235] - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceSetupId, sss.NonStdSoldServiceId as SoldServiceNonStandardId, sss.Qty as Quantity, sss.Price as Rate, sss.IsTaxable, sm.Name as NonStandardServiceName, sm.Description , sm.ServiceMasterId as ServiceId FROM ServiceCore.ServiceSetupInitialServices sss join ServiceCore.ServiceMaster sm on sm.ServiceMasterId = sss.ServiceId where ServiceSetupId = 95854 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 11:21:21,500 - [56235] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-22 11:21:22,161 - [56235] - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceSetupId, sss.NonStdSoldServiceId as SoldServiceNonStandardId, sss.Qty as Quantity, sss.Price as Rate, sss.IsTaxable, sm.servicename as NonStandardServiceName, sm.Description , sss.ServiceId FROM ServiceCore.ServiceSetupServices sss join ServiceCore.SoldServiceNonStandard sm on sm.SoldServiceNonStandardId = sss.NonStdSoldServiceId where ServiceSetupId = 95854 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 11:21:22,850 - [56235] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-22 11:21:23,518 - [56235] - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceSetupId, sss.NonStdSoldServiceId as SoldServiceNonStandardId, sss.Qty as Quantity, sss.Price as Rate, sss.IsTaxable, sm.servicename as NonStandardServiceName, sm.Description , sss.ServiceId FROM ServiceCore.ServiceSetupInitialServices sss join ServiceCore.SoldServiceNonStandard sm on sm.SoldServiceNonStandardId = sss.NonStdSoldServiceId where ServiceSetupId = 95854 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 11:21:24,215 - [56235] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-22 11:21:24,887 - [56235] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 95854;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 11:21:25,580 - [56235] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-22 11:21:26,244 - [56235] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId, AppliedDiscountAmt as AppliedDiscountAmount,IsActive ,ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 95854;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 11:21:26,931 - [56235] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-22 11:21:27,603 - [56235] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId,IsActive,DiscountAmount, IsDiscountPercent,DiscountPercent,DiscountDescription , ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 95854;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 11:21:28,290 - [56235] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-22 11:21:28,955 - [56235] - src.utils.log - INFO - Sequential Insertion in invoice tables begin - __SPLIT__ 2026-04-22 11:21:29,912 - [56235] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.AccountDiscountSetup: - __SPLIT__ 2026-04-22 11:21:30,571 - [56235] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-22 11:21:31,229 - [56235] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceCharges: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 11:21:31,966 - [56235] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.InvoiceCharges - __SPLIT__ 2026-04-22 11:21:32,737 - [56235] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.InvoiceCharges in 1 batches - __SPLIT__ 2026-04-22 11:21:33,399 - [56235] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.DiscountApplied: - __SPLIT__ 2026-04-22 11:21:34,092 - [56235] - src.utils.log - INFO - Invoice Publish Done - __SPLIT__ 2026-04-22 11:21:34,752 - [56235] - src.utils.log - INFO - Updating Next GenerationDate - __SPLIT__ 2026-04-22 11:21:35,415 - [56235] - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, MAX(NextWorkOrderGenerationDate) AS MaxNextWorkOrderGeneration FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 56235 GROUP BY ServiceSetupId; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 11:21:36,110 - [56235] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-22 11:21:36,776 - [56235] - src.utils.log - INFO - πŸ”„ Updating next gen date sequentially: inside update_next_workorder_generation - __SPLIT__ 2026-04-22 11:21:37,454 - [56235] - src.utils.log - INFO - πŸ›  Creating temp table #tbl_d5c9eb4737 - __SPLIT__ 2026-04-22 11:21:38,145 - [56235] - src.utils.log - INFO - πŸ“Œ Bulk inserting 1 rows into #tbl_d5c9eb4737 - __SPLIT__ 2026-04-22 11:21:38,836 - [56235] - src.utils.log - INFO - πŸ” Running MERGE update to apply changes - __SPLIT__ 2026-04-22 11:21:39,515 - [56235] - src.utils.log - INFO - βœ” SQL reported affected rows: 1 - __SPLIT__ 2026-04-22 11:21:40,191 - [56235] - src.utils.log - INFO - πŸ” Verified successfully updated 1 rows via #tbl_d5c9eb4737 - __SPLIT__ 2026-04-22 11:21:40,852 - [56235] - src.utils.log - INFO - πŸŽ‰ Successfully updated NextGenerationDate using temp table #tbl_d5c9eb4737 - __SPLIT__ 2026-04-22 11:21:41,515 - [56235] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 56235 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 11:21:42,198 - [56235] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-22 11:21:42,861 - [56235] - src.utils.log - INFO - Sequential deletion from temp tables begin - __SPLIT__ 2026-04-22 11:21:43,781 - [56235] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId in (508170, 508171) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 11:21:44,491 - [56235] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-22 11:21:45,150 - [56235] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId in (508170, 508171) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 11:21:45,853 - [56235] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-22 11:21:46,504 - [56235] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId in (508170, 508171) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 11:21:47,194 - [56235] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-22 11:21:47,836 - [56235] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId in (508170, 508171) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 11:21:48,521 - [56235] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-22 11:21:49,186 - [56235] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId in (508170, 508171) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 11:21:49,876 - [56235] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-22 11:21:50,529 - [56235] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (508170, 508171) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 11:21:51,241 - [56235] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-22 11:21:51,893 - [56235] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId in (508170, 508171) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 11:21:52,574 - [56235] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-22 11:21:53,223 - [56235] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (508170, 508171) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 11:21:53,966 - [56235] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-22 11:21:54,616 - [56235] - src.utils.log - INFO - Work order published ids: (508170, 508171) - __SPLIT__ 2026-04-22 11:21:55,271 - [56235] - src.utils.log - INFO - Time took to perform operation in publishing [56235]: 108.97 - __SPLIT__ 2026-04-22 11:21:55,921 - [56235] - src.utils.log - INFO - Publish Completed for GenerateWorkOrderHistoryId: [56235] - __SPLIT__ 2026-04-22 11:21:56,572 - [56235] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-04-22 07:21:54.616' WHERE CompanyId = 145 AND GenerateWorkOrderHistoryId = 56235;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 11:21:57,566 - [56235] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-04-22 12:42:45,353 - 11909 - src.utils.log - INFO - ParallelProcessing=False GenerateInvoiceHistoryId=11909 - __SPLIT__ 2026-04-22 12:42:46,323 - 11909 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-04-22 12:42:46,991 - 11909 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Samsung'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 12:42:47,823 - 11909 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-22 12:42:48,488 - 11909 - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-04-22 12:42:49,151 - 11909 - src.utils.log - INFO - Invoice generation and publish algo started for GenerateInvoiceHistoryId: 11909 - __SPLIT__ 2026-04-22 12:42:49,808 - 11909 - src.utils.log - INFO - πŸ” Fetching data: Select CreatedBy, CompanyId from ServiceCore.GenerateInvoiceHistory WHERE GenerateInvoiceHistoryId = 11909;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 12:42:50,495 - 11909 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-22 12:42:51,149 - 11909 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET Status = 'InProgress' WHERE GenerateInvoiceHistoryId = 11909;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 12:42:51,838 - 11909 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-04-22 12:42:52,499 - 11909 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET InvoiceGenStartDateTime = '2026-04-22 08:42:51.149', InvoicePublishStartDateTime = '2026-04-22 08:42:51.149' WHERE GenerateInvoiceHistoryId = 11909;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 12:42:53,196 - 11909 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-04-22 12:42:53,855 - 11909 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateInvoiceHistory WHERE GenerateInvoiceHistoryId = 11909;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 12:42:54,542 - 11909 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-22 12:42:55,202 - 11909 - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceId as ServiceMasterId,ss.FrequencyScheduleId as setup_frequency_schedule_id, ssb.*, ss.IsBilling, ss.DepartmentMasterId, ss.AccountNumber, ss.CompanyId, ss.BillingLocationId, ss.ServiceLocationId, ss.TaxSysName, ss.TermId, t.NetDueIn, ss.TaxPercent, ss.PoNumber, ss.DisplayServiceAsSeparateLineItem, ss.SetupEndDate, ss.SetupStartDate from ServiceCore.ServiceSetup ss join ServiceCore.ServiceSetupBilling ssb on ss.ServiceSetupId = ssb.ServiceSetupId join Billing.PaymentTypeMaster ptm on ptm.PaymentTypeMasterId = ssb.PaymentTypeMasterId join Billing.Term t on ss.TermId = t.TermId join ServiceCore.ServiceSetupServices sss on ss.ServiceSetupId = sss.ServiceSetupId where ptm.PaymentType= 'Payment Plan' and ss.IsActive =1 and ss.CompanyId= 145 AND ss.IsDeleted =0 AND ss.Status <> 'Canceled' and ss.AccountNumber = '3487' and ss.ServiceSetupId = 95873;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 12:42:55,900 - 11909 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-22 12:42:56,561 - 11909 - src.utils.log - INFO - No filter selected - __SPLIT__ 2026-04-22 12:42:57,220 - 11909 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-04-22 12:42:57,877 - 11909 - src.utils.log - INFO - πŸ” Fetching data: SELECT fsd.IntervalDays, fs.CreatedDate ,f.FrequencyId , fs.FrequencyScheduleId, f.[SysName], f.FrequencyValue, f.YearlyOccurrence , fs.ScheduleFormat,fsd.Days, fsd.Weeks, fsd.Months,fsc.[Month] as sch_months, fsd.StartMonth , fsd.DateDay,fsd.DateMonth FROM [ServiceCore].[FrequencyMaster] f inner join [ServiceCore].[FrequencySchedule] fs on fs.FrequencyId = f.FrequencyId left join ServiceCore.FrequencyScheduleCycle fsc on fsc.FrequencyScheduleId = fs.FrequencyScheduleId left join [ServiceCore].[FrequencyScheduleDetail] fsd on fsd.FrequencyScheduleId = fs.FrequencyScheduleId WHERE fsd.FrequencyScheduleId = 13959... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 12:42:58,569 - 11909 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-22 12:42:59,228 - 11909 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-04-22 12:43:00,180 - 11909 - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionAutoGenerationId FROM Billing.TransactionAutoGeneration WHERE ServiceSetupId = 95873 AND TransactionDate BETWEEN '2026-04-22 00:00:00' AND '2026-12-31 00:00:00' AND IsActive = 1 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 12:43:00,876 - 11909 - src.utils.log - INFO - βœ… Fetched 9 rows - __SPLIT__ 2026-04-22 12:43:01,530 - 11909 - src.utils.log - INFO - πŸ” Fetching data: SELECT InvoiceAutoGenerationId FROM Billing.InvoiceAutoGeneration WHERE TransactionAutoGenerationId IN (245346, 245347, 245348, 245349, 245350, 245351, 245352, 245353, 245354) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 12:43:02,217 - 11909 - src.utils.log - INFO - βœ… Fetched 9 rows - __SPLIT__ 2026-04-22 12:43:02,878 - 11909 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM Billing.InvoiceChargesAutoGeneration WHERE InvoiceAutoGenerationId IN (245262, 245263, 245264, 245265, 245266, 245267, 245268, 245269, 245270) (Thread: ThreadPoolExecutor-21_0) - __SPLIT__ 2026-04-22 12:43:02,880 - 11909 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM Billing.InvoiceAutoGenerationAppliedDiscount WHERE InvoiceAutoGenerationId IN (245262, 245263, 245264, 245265, 245266, 245267, 245268, 245269, 245270) (Thread: ThreadPoolExecutor-21_1) - __SPLIT__ 2026-04-22 12:43:03,658 - 11909 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-22 12:43:04,281 - 11909 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-22 12:43:05,504 - 11909 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM Billing.InvoiceAutoGeneration WHERE InvoiceAutoGenerationId IN (245262, 245263, 245264, 245265, 245266, 245267, 245268, 245269, 245270) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 12:43:06,255 - 11909 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-22 12:43:06,916 - 11909 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM Billing.TransactionAutoGeneration WHERE TransactionAutoGenerationId IN (245346, 245347, 245348, 245349, 245350, 245351, 245352, 245353, 245354) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 12:43:07,642 - 11909 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-22 12:43:08,303 - 11909 - src.utils.log - INFO - πŸ” Fetching data: SELECT Inv.ServiceSetupId, MAX(Inv.InvoiceDate) AS InvoiceDate FROM Billing.Invoice Inv INNER JOIN Billing.[Transaction] T ON Inv.TransactionId = T.TransactionId WHERE Inv.InvoiceDate BETWEEN '2026-04-22 00:00:00' AND '2026-12-31 00:00:00' AND Inv.IsActive = 1 AND Inv.IsDelete = 0 AND T.IsActive = 1 AND T.IsDelete = 0 AND Inv.ServiceSetupId = 95873 GROUP BY Inv.ServiceSetupId;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 12:43:08,993 - 11909 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-22 12:43:09,671 - 11909 - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceSetupId, sss.NonStdSoldServiceId as SoldServiceNonStandardId, sss.Qty as Quantity, sss.Price as Rate, sss.IsTaxable, sm.Name as NonStandardServiceName, sm.Description , sm.ServiceMasterId as ServiceId FROM ServiceCore.ServiceSetupServices sss join ServiceCore.ServiceMaster sm on sm.ServiceMasterId = sss.ServiceId where ServiceSetupId = 95873 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 12:43:10,358 - 11909 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-22 12:43:11,019 - 11909 - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, DiscountSetupId,DiscountType,DiscountCode,DiscountAmount,DiscountDescription,DiscountName, DiscountPercent, IsDiscountPercent,AppliedDiscountAmt,ApplyOnPartPrice,ApplyOnLaborPrice from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE IsInitialSetupDiscount = 0 AND ssad.ServiceSetupId = 95873;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 12:43:11,707 - 11909 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-22 12:43:12,362 - 11909 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET Status = 'Completed' WHERE GenerateInvoiceHistoryId = 11909;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 12:43:13,043 - 11909 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-04-22 12:43:13,991 - 11909 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET InvoiceStatusDateTime = '2026-04-22 08:42:51.149' WHERE CompanyId = 145 AND GenerateInvoiceHistoryId = 11909;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 12:43:14,682 - 11909 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-04-22 12:43:15,348 - 11909 - src.utils.log - INFO - Invoice Gen/Publish GENERATION Complete Successfully ProjectId:11909 - Time took: 29.03 - __SPLIT__ 2026-04-22 12:43:16,029 - 11909 - src.utils.log - INFO - Invoice Gen/Publish PUBLISH Begin - __SPLIT__ 2026-04-22 12:43:16,691 - 11909 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET PublishStatus = 'InProgress', PublishStatusDateTime = '2026-04-22 08:42:51.149' WHERE CompanyId = 145 AND GenerateInvoiceHistoryId = 11909;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 12:43:17,375 - 11909 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-04-22 12:43:18,039 - 11909 - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 9 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 12:43:18,757 - 11909 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 9) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-04-22 12:43:19,525 - 11909 - src.utils.log - INFO - βœ… All 9 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-04-22 12:43:20,199 - 11909 - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-04-22 12:43:20,865 - 11909 - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionId, ModifiedBy from Billing.[Transaction] t WHERE t.ModifiedBy in (12345678910, 12345678911, 12345678912, 12345678913, 12345678914, 12345678915, 12345678916, 12345678917, 12345678918);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 12:43:21,837 - 11909 - src.utils.log - INFO - βœ… Fetched 9 rows - __SPLIT__ 2026-04-22 12:43:22,505 - 11909 - src.utils.log - INFO - πŸ“ Executing: UPDATE Billing.[Transaction] SET ModifiedBy = NULL WHERE ModifiedBy IN (12345678910,12345678911,12345678912,12345678913,12345678914,12345678915,12345678916,12345678917,12345678918); ... (Thread: ThreadPoolExecutor-22_0) - __SPLIT__ 2026-04-22 12:43:23,426 - 11909 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-04-22 12:43:24,086 - 11909 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 145 AND EnitityNumberType in ('Invoice'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 12:43:24,773 - 11909 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-22 12:43:25,437 - 11909 - src.utils.log - INFO - 9 Invoice Generated : [225208, 225209, 225210, 225211, 225212, 225213, 225214, 225215, 225216] - __SPLIT__ 2026-04-22 12:43:26,096 - 11909 - src.utils.log - INFO - πŸ“ Executing: UPDATE Common.GenerateNumberConfig SET NextNumber = '225217' WHERE CompanyId = 145 AND EnitityNumberType in ('Invoice');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 12:43:26,784 - 11909 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-04-22 12:43:27,448 - 11909 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-22 12:43:28,410 - 11909 - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 9 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 12:43:29,126 - 11909 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 9) into Billing.Invoice - __SPLIT__ 2026-04-22 12:43:29,896 - 11909 - src.utils.log - INFO - βœ… All 9 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-04-22 12:43:30,572 - 11909 - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionId, InvoiceId FROM Billing.Invoice WHERE TransactionId in (805123, 805124, 805125, 805126, 805127, 805128, 805129, 805130, 805131);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 12:43:31,274 - 11909 - src.utils.log - INFO - βœ… Fetched 9 rows - __SPLIT__ 2026-04-22 12:43:31,951 - 11909 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-22 12:43:31,953 - 11909 - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.AccountDiscountSetup: - __SPLIT__ 2026-04-22 12:43:31,953 - 11909 - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.DiscountApplied: - __SPLIT__ 2026-04-22 12:43:32,620 - 11909 - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceCharges: 9 rows in batches of 25000 (Thread: ThreadPoolExecutor-23_0) - __SPLIT__ 2026-04-22 12:43:34,670 - 11909 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 9) into Billing.InvoiceCharges - __SPLIT__ 2026-04-22 12:43:35,437 - 11909 - src.utils.log - INFO - βœ… All 9 rows inserted successfully into Billing.InvoiceCharges in 1 batches - __SPLIT__ 2026-04-22 12:43:36,110 - 11909 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-04-22 08:42:51.149' WHERE CompanyId = 145 AND GenerateInvoiceHistoryId = 11909;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 12:43:36,804 - 11909 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-04-22 12:43:37,474 - 11909 - src.utils.log - INFO - Invoice Gen/Publish PUBLISH Complete Successfully - Time took: 51.15 - __SPLIT__ 2026-04-22 14:35:35,123 - 56238 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=56238 - __SPLIT__ 2026-04-22 14:35:36,111 - 56238 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 56238 - __SPLIT__ 2026-04-22 14:35:36,765 - 56238 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-04-22 14:35:37,418 - 56238 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Samsung'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 14:35:38,295 - 56238 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-22 14:35:38,956 - 56238 - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-04-22 14:35:39,612 - 56238 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 56238;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 14:35:40,303 - 56238 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-04-22 14:35:40,955 - 56238 - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.RecurringServicePrice, gw.StartDate, gw.EndDate, gw.CreatedBy AS NewCreatedBy, gw.RouteIds, ss.* FROM ServiceCore.GenerateWorkOrderHistory gw JOIN ServiceCore.ServiceSetup ss ON gw.CompanyId = ss.CompanyId AND ( (ss.NextGenerationDate <= gw.EndDate AND ss.NextGenerationDate >= gw.StartDate) OR ss.NextGenerationDate IS NULL) AND (gw.AccountNumber IS NULL OR ss.AccountNumber = gw.AccountNumber) AND (gw.ServiceSetupId IS NULL OR ss.ServiceSetupId = gw.ServiceSetupId)AND (gw.RouteIds IS NULL OR ss.RouteMasterId IN (SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 56238), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 56238), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 56238 AND ss.FrequencyScheduleId IS NOT NULL AND ss.IsActive = 1 AND ss.IsDeleted = 0 AND ss.Status <> 'Canceled';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 14:35:41,700 - 56238 - src.utils.log - INFO - βœ… Fetched 60 rows - __SPLIT__ 2026-04-22 14:35:42,347 - 56238 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 56238;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 14:35:43,032 - 56238 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-22 14:35:43,697 - 56238 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-04-22 14:35:44,349 - 56238 - src.utils.log - INFO - πŸ” Fetching data: SELECT fsd.IntervalDays, fs.CreatedDate ,f.FrequencyId , fs.FrequencyScheduleId, f.[SysName], f.FrequencyValue, f.YearlyOccurrence , fs.ScheduleFormat,fsd.Days, fsd.Weeks, fsd.Months,fsc.[Month] as sch_months, fsd.StartMonth , fsd.DateDay,fsd.DateMonth FROM [ServiceCore].[FrequencyMaster] f inner join [ServiceCore].[FrequencySchedule] fs on fs.FrequencyId = f.FrequencyId left join ServiceCore.FrequencyScheduleCycle fsc on fsc.FrequencyScheduleId = fs.FrequencyScheduleId left join [ServiceCore].[FrequencyScheduleDetail] fsd on fsd.FrequencyScheduleId = fs.FrequencyScheduleId WHERE fsd.FrequencyScheduleId in (14852, 14853, 13959, 14857, 14869, 14870, 14902, 14915, 14921, 14691, 14694, 14822, 14826, 14827, 14829, 14831, 14708, 14714, 14845)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 14:35:45,072 - 56238 - src.utils.log - INFO - βœ… Fetched 421 rows - __SPLIT__ 2026-04-22 14:35:45,730 - 56238 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-04-22 14:35:46,389 - 56238 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-04-22 14:35:47,045 - 56238 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId in (84224, 95873, 95874, 84229, 22663, 84239, 84240, 95248, 95249, 95765, 84247, 84504, 95767, 84508, 84636, 84383, 95007, 84513, 84515, 84273, 95537, 95539, 11444, 95541, 95542, 95674, 95547, 11452, 95549, 95550, 11455, 11456, 95551, 95552, 95676, 95685, 95558, 95560, 95689, 94923, 95052, 11469, 94801, 84435, 95445, 95063, 95064, 84444, 11873, 95204, 95462, 95591, 84456, 84457, 95466, 95340, 34285, 84212, 95098, 95227);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 14:35:47,740 - 56238 - src.utils.log - INFO - βœ… Fetched 11 rows - __SPLIT__ 2026-04-22 14:35:48,391 - 56238 - src.utils.log - INFO - πŸ” Fetching data: select ServiceDate, ServiceSetupId,IsInitial from serviceCore.WorkOrder wo inner join ServiceCore.WorkOrderStatus wos on wo.WoStatusId = wos.WoStatusId where ServiceDate >= '2026-04-22 00:00:00' and ServiceDate <= '2026-07-01 00:00:00' and ServiceSetupId in (84224, 95873, 95874, 84229, 22663, 84239, 84240, 95248, 95249, 95765, 84247, 84504, 95767, 84508, 84636, 84383, 95007, 84513, 84515, 84273, 95537, 95539, 11444, 95541, 95542, 95674, 95547, 11452, 95549, 95550, 11455, 11456, 95551, 95552, 95676, 95685, 95558, 95560, 95689, 94923, 95052, 11469, 94801, 84435, 95445, 95063, 95064, 84444, 11873, 95204, 95462, 95591, 84456, 84457, 95466, 95340, 34285, 84212, 95098, 95227) and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 14:35:49,089 - 56238 - src.utils.log - INFO - βœ… Fetched 51 rows - __SPLIT__ 2026-04-22 14:35:50,240 - 56238 - src.utils.log - INFO - Generating work orders for setup: 11444 - __SPLIT__ 2026-04-22 14:35:50,913 - 56238 - src.utils.log - INFO - Error processing schedule ID 14694: cannot access local variable 'sorted_service_dates' where it is not associated with a value - __SPLIT__ 2026-04-22 14:35:51,597 - 56238 - src.utils.log - INFO - Generating work orders for setup: 11452 - __SPLIT__ 2026-04-22 14:35:52,277 - 56238 - src.utils.log - INFO - Error processing schedule ID 13959: cannot access local variable 'sorted_service_dates' where it is not associated with a value - __SPLIT__ 2026-04-22 14:35:52,954 - 56238 - src.utils.log - INFO - Generating work orders for setup: 11455 - __SPLIT__ 2026-04-22 14:35:53,635 - 56238 - src.utils.log - INFO - Error processing schedule ID 14694: cannot access local variable 'sorted_service_dates' where it is not associated with a value - __SPLIT__ 2026-04-22 14:35:54,307 - 56238 - src.utils.log - INFO - Generating work orders for setup: 11456 - __SPLIT__ 2026-04-22 14:35:54,982 - 56238 - src.utils.log - INFO - Error processing schedule ID 14694: cannot access local variable 'sorted_service_dates' where it is not associated with a value - __SPLIT__ 2026-04-22 14:35:55,654 - 56238 - src.utils.log - INFO - Generating work orders for setup: 11469 - __SPLIT__ 2026-04-22 14:35:56,324 - 56238 - src.utils.log - INFO - Error processing schedule ID 13959: cannot access local variable 'sorted_service_dates' where it is not associated with a value - __SPLIT__ 2026-04-22 14:35:56,995 - 56238 - src.utils.log - INFO - Generating work orders for setup: 11873 - __SPLIT__ 2026-04-22 14:35:57,668 - 56238 - src.utils.log - INFO - Error processing schedule ID 13959: cannot access local variable 'sorted_service_dates' where it is not associated with a value - __SPLIT__ 2026-04-22 14:35:58,342 - 56238 - src.utils.log - INFO - Generating work orders for setup: 22663 - __SPLIT__ 2026-04-22 14:35:59,017 - 56238 - src.utils.log - INFO - Error processing schedule ID 14714: cannot access local variable 'sorted_service_dates' where it is not associated with a value - __SPLIT__ 2026-04-22 14:35:59,688 - 56238 - src.utils.log - INFO - Generating work orders for setup: 84212 - __SPLIT__ 2026-04-22 14:36:00,431 - 56238 - src.utils.log - INFO - Error processing schedule ID 13959: cannot access local variable 'sorted_service_dates' where it is not associated with a value - __SPLIT__ 2026-04-22 14:36:01,102 - 56238 - src.utils.log - INFO - Generating work orders for setup: 84224 - __SPLIT__ 2026-04-22 14:36:01,799 - 56238 - src.utils.log - INFO - Generating work orders for setup: 95052 - __SPLIT__ 2026-04-22 14:36:02,487 - 56238 - src.utils.log - INFO - Generating work orders for setup: 95063 - __SPLIT__ 2026-04-22 14:36:03,162 - 56238 - src.utils.log - INFO - Generating work orders for setup: 95064 - __SPLIT__ 2026-04-22 14:36:04,146 - 56238 - src.utils.log - INFO - Generating work orders for setup: 95204 - __SPLIT__ 2026-04-22 14:36:04,835 - 56238 - src.utils.log - INFO - Generating work orders for setup: 95227 - __SPLIT__ 2026-04-22 14:36:06,045 - 56238 - src.utils.log - INFO - Generating work orders for setup: 95248 - __SPLIT__ 2026-04-22 14:36:06,970 - 56238 - src.utils.log - INFO - Generating work orders for setup: 95249 - __SPLIT__ 2026-04-22 14:36:07,663 - 56238 - src.utils.log - INFO - Generating work orders for setup: 95340 - __SPLIT__ 2026-04-22 14:36:08,361 - 56238 - src.utils.log - INFO - Generating work orders for setup: 95445 - __SPLIT__ 2026-04-22 14:36:09,052 - 56238 - src.utils.log - INFO - Generating work orders for setup: 95462 - __SPLIT__ 2026-04-22 14:36:09,749 - 56238 - src.utils.log - INFO - Generating work orders for setup: 95466 - __SPLIT__ 2026-04-22 14:36:10,438 - 56238 - src.utils.log - INFO - Generating work orders for setup: 95537 - __SPLIT__ 2026-04-22 14:36:11,132 - 56238 - src.utils.log - INFO - Generating work orders for setup: 95539 - __SPLIT__ 2026-04-22 14:36:11,836 - 56238 - src.utils.log - INFO - Generating work orders for setup: 95541 - __SPLIT__ 2026-04-22 14:36:12,519 - 56238 - src.utils.log - INFO - Generating work orders for setup: 95542 - __SPLIT__ 2026-04-22 14:36:13,212 - 56238 - src.utils.log - INFO - Generating work orders for setup: 95547 - __SPLIT__ 2026-04-22 14:36:13,902 - 56238 - src.utils.log - INFO - Generating work orders for setup: 95549 - __SPLIT__ 2026-04-22 14:36:14,638 - 56238 - src.utils.log - INFO - Generating work orders for setup: 95550 - __SPLIT__ 2026-04-22 14:36:15,329 - 56238 - src.utils.log - INFO - Generating work orders for setup: 95551 - __SPLIT__ 2026-04-22 14:36:16,073 - 56238 - src.utils.log - INFO - Generating work orders for setup: 95552 - __SPLIT__ 2026-04-22 14:36:16,842 - 56238 - src.utils.log - INFO - Generating work orders for setup: 95558 - __SPLIT__ 2026-04-22 14:36:17,591 - 56238 - src.utils.log - INFO - Generating work orders for setup: 95560 - __SPLIT__ 2026-04-22 14:36:18,283 - 56238 - src.utils.log - INFO - Generating work orders for setup: 95591 - __SPLIT__ 2026-04-22 14:36:19,249 - 56238 - src.utils.log - INFO - Generating work orders for setup: 95674 - __SPLIT__ 2026-04-22 14:36:19,915 - 56238 - src.utils.log - INFO - Generating work orders for setup: 95676 - __SPLIT__ 2026-04-22 14:36:20,578 - 56238 - src.utils.log - INFO - Generating work orders for setup: 95689 - __SPLIT__ 2026-04-22 14:36:21,247 - 56238 - src.utils.log - INFO - Generating work orders for setup: 95765 - __SPLIT__ 2026-04-22 14:36:21,955 - 56238 - src.utils.log - INFO - Generating work orders for setup: 95767 - __SPLIT__ 2026-04-22 14:36:22,705 - 56238 - src.utils.log - INFO - Generating work orders for setup: 95873 - __SPLIT__ 2026-04-22 14:36:23,395 - 56238 - src.utils.log - INFO - Generating work orders for setup: 95874 - __SPLIT__ 2026-04-22 14:36:24,073 - 56238 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId in (11398.0, 11463.0, 11338.0, 11468.0, 11436.0, 11414.0);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 14:36:24,782 - 56238 - src.utils.log - INFO - βœ… Fetched 6 rows - __SPLIT__ 2026-04-22 14:36:25,498 - 56238 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-04-22 14:36:26,176 - 56238 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=145 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 14:36:26,864 - 56238 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-22 14:36:27,519 - 56238 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-04-22 14:36:28,177 - 56238 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-04-22 14:36:28,833 - 56238 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (84224, 95873, 95874, 84229, 22663, 84239, 84240, 95248, 95249, 95765, 84247, 84504, 95767, 84508, 84636, 84383, 95007, 84513, 84515, 84273, 95537, 95539, 11444, 95541, 95542, 95674, 95547, 11452, 95549, 95550, 11455, 11456, 95551, 95552, 95676, 95685, 95558, 95560, 95689, 94923, 95052, 11469, 94801, 84435, 95445, 95063, 95064, 84444, 11873, 95204, 95462, 95591, 84456, 84457, 95466, 95340, 34285, 84212, 95098, 95227) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 14:36:29,613 - 56238 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-22 14:36:30,265 - 56238 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (84224, 95873, 95874, 84229, 22663, 84239, 84240, 95248, 95249, 95765, 84247, 84504, 95767, 84508, 84636, 84383, 95007, 84513, 84515, 84273, 95537, 95539, 11444, 95541, 95542, 95674, 95547, 11452, 95549, 95550, 11455, 11456, 95551, 95552, 95676, 95685, 95558, 95560, 95689, 94923, 95052, 11469, 94801, 84435, 95445, 95063, 95064, 84444, 11873, 95204, 95462, 95591, 84456, 84457, 95466, 95340, 34285, 84212, 95098, 95227) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 14:36:31,031 - 56238 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-22 14:36:31,688 - 56238 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (84224, 95873, 95874, 84229, 22663, 84239, 84240, 95248, 95249, 95765, 84247, 84504, 95767, 84508, 84636, 84383, 95007, 84513, 84515, 84273, 95537, 95539, 11444, 95541, 95542, 95674, 95547, 11452, 95549, 95550, 11455, 11456, 95551, 95552, 95676, 95685, 95558, 95560, 95689, 94923, 95052, 11469, 94801, 84435, 95445, 95063, 95064, 84444, 11873, 95204, 95462, 95591, 84456, 84457, 95466, 95340, 34285, 84212, 95098, 95227) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 14:36:32,391 - 56238 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-22 14:36:33,334 - 56238 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (84224, 95873, 95874, 84229, 22663, 84239, 84240, 95248, 95249, 95765, 84247, 84504, 95767, 84508, 84636, 84383, 95007, 84513, 84515, 84273, 95537, 95539, 11444, 95541, 95542, 95674, 95547, 11452, 95549, 95550, 11455, 11456, 95551, 95552, 95676, 95685, 95558, 95560, 95689, 94923, 95052, 11469, 94801, 84435, 95445, 95063, 95064, 84444, 11873, 95204, 95462, 95591, 84456, 84457, 95466, 95340, 34285, 84212, 95098, 95227) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 14:36:34,077 - 56238 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-22 14:36:34,739 - 56238 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (84224, 95873, 95874, 84229, 22663, 84239, 84240, 95248, 95249, 95765, 84247, 84504, 95767, 84508, 84636, 84383, 95007, 84513, 84515, 84273, 95537, 95539, 11444, 95541, 95542, 95674, 95547, 11452, 95549, 95550, 11455, 11456, 95551, 95552, 95676, 95685, 95558, 95560, 95689, 94923, 95052, 11469, 94801, 84435, 95445, 95063, 95064, 84444, 11873, 95204, 95462, 95591, 84456, 84457, 95466, 95340, 34285, 84212, 95098, 95227) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 14:36:35,493 - 56238 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-22 14:36:36,152 - 56238 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (84224, 95873, 95874, 84229, 22663, 84239, 84240, 95248, 95249, 95765, 84247, 84504, 95767, 84508, 84636, 84383, 95007, 84513, 84515, 84273, 95537, 95539, 11444, 95541, 95542, 95674, 95547, 11452, 95549, 95550, 11455, 11456, 95551, 95552, 95676, 95685, 95558, 95560, 95689, 94923, 95052, 11469, 94801, 84435, 95445, 95063, 95064, 84444, 11873, 95204, 95462, 95591, 84456, 84457, 95466, 95340, 34285, 84212, 95098, 95227) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 14:36:37,151 - 56238 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-22 14:36:37,808 - 56238 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (84224, 95873, 95874, 84229, 22663, 84239, 84240, 95248, 95249, 95765, 84247, 84504, 95767, 84508, 84636, 84383, 95007, 84513, 84515, 84273, 95537, 95539, 11444, 95541, 95542, 95674, 95547, 11452, 95549, 95550, 11455, 11456, 95551, 95552, 95676, 95685, 95558, 95560, 95689, 94923, 95052, 11469, 94801, 84435, 95445, 95063, 95064, 84444, 11873, 95204, 95462, 95591, 84456, 84457, 95466, 95340, 34285, 84212, 95098, 95227) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 14:36:38,508 - 56238 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-22 14:36:39,153 - 56238 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (84224, 95873, 95874, 84229, 22663, 84239, 84240, 95248, 95249, 95765, 84247, 84504, 95767, 84508, 84636, 84383, 95007, 84513, 84515, 84273, 95537, 95539, 11444, 95541, 95542, 95674, 95547, 11452, 95549, 95550, 11455, 11456, 95551, 95552, 95676, 95685, 95558, 95560, 95689, 94923, 95052, 11469, 94801, 84435, 95445, 95063, 95064, 84444, 11873, 95204, 95462, 95591, 84456, 84457, 95466, 95340, 34285, 84212, 95098, 95227) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 14:36:40,243 - 56238 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-22 14:36:40,902 - 56238 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-22 14:36:41,552 - 56238 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 91 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 14:36:42,288 - 56238 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 91) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-04-22 14:36:43,911 - 56238 - src.utils.log - INFO - βœ… All 91 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-04-22 14:36:44,557 - 56238 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 91 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-04-17 15:40:13.230' and ServiceSetupId in (84224, 95873, 95874, 84229, 22663, 84239, 84240, 95248, 95249, 95765, 84247, 84504, 95767, 84508, 84636, 84383, 95007, 84513, 84515, 84273, 95537, 95539, 11444, 95541, 95542, 95674, 95547, 11452, 95549, 95550, 11455, 11456, 95551, 95552, 95676, 95685, 95558, 95560, 95689, 94923, 95052, 11469, 94801, 84435, 95445, 95063, 95064, 84444, 11873, 95204, 95462, 95591, 84456, 84457, 95466, 95340, 34285, 84212, 95098, 95227)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 14:36:45,260 - 56238 - src.utils.log - INFO - βœ… Fetched 91 rows - __SPLIT__ 2026-04-22 14:36:45,919 - 56238 - src.utils.log - INFO - Id's of work order inserted to DB: [508181 508182 508183 508184 508185 508186 508187 508188 508189 508190 508191 508192 508193 508194 508195 508196 508197 508198 508199 508200 508201 508202 508203 508204 508205 508206 508207 508208 508209 508210 508211 508212 508213 508214 508215 508216 508217 508218 508219 508220 508221 508222 508223 508224 508225 508226 508227 508228 508229 508230 508231 508232 508233 508234 508235 508236 508237 508238 508239 508240 508241 508242 508243 508244 508245 508246 508247 508248 508249 508250 508251 508252 508253 508254 508255 508256 508257 508258 508259 508260 508261 508262 508263 508264 508265 508266 508267 508268 508269 508270 508271] - __SPLIT__ 2026-04-22 14:36:46,579 - 56238 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId in (84224, 95873, 95874, 84229, 22663, 84239, 84240, 95248, 95249, 95765, 84247, 84504, 95767, 84508, 84636, 84383, 95007, 84513, 84515, 84273, 95537, 95539, 11444, 95541, 95542, 95674, 95547, 11452, 95549, 95550, 11455, 11456, 95551, 95552, 95676, 95685, 95558, 95560, 95689, 94923, 95052, 11469, 94801, 84435, 95445, 95063, 95064, 84444, 11873, 95204, 95462, 95591, 84456, 84457, 95466, 95340, 34285, 84212, 95098, 95227);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 14:36:47,269 - 56238 - src.utils.log - INFO - βœ… Fetched 11 rows - __SPLIT__ 2026-04-22 14:36:47,922 - 56238 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-04-22 14:36:48,899 - 56238 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId in (84224, 95873, 95874, 95248, 95765, 95767, 95537, 95541, 95542, 95674, 95547, 95676, 95549, 95550, 95551, 95552, 95558, 95560, 95689, 95052, 95445, 95204, 95462, 95591, 95466, 95340)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 14:36:49,590 - 56238 - src.utils.log - INFO - βœ… Fetched 46 rows - __SPLIT__ 2026-04-22 14:36:50,252 - 56238 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId in (84224, 95873, 95874, 95248, 95765, 95767, 95537, 95541, 95542, 95674, 95547, 95676, 95549, 95550, 95551, 95552, 95558, 95560, 95689, 95052, 95445, 95204, 95462, 95591, 95466, 95340)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 14:36:50,943 - 56238 - src.utils.log - INFO - βœ… Fetched 6 rows - __SPLIT__ 2026-04-22 14:36:51,609 - 56238 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId in (84224, 95873, 95874, 95248, 95765, 95767, 95537, 95541, 95542, 95674, 95547, 95676, 95549, 95550, 95551, 95552, 95558, 95560, 95689, 95052, 95445, 95204, 95462, 95591, 95466, 95340)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 14:36:52,327 - 56238 - src.utils.log - INFO - βœ… Fetched 56 rows - __SPLIT__ 2026-04-22 14:36:52,988 - 56238 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId in (84224, 95873, 95874, 95248, 95765, 95767, 95537, 95541, 95542, 95674, 95547, 95676, 95549, 95550, 95551, 95552, 95558, 95560, 95689, 95052, 95445, 95204, 95462, 95591, 95466, 95340)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 14:36:53,683 - 56238 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-22 14:36:54,357 - 56238 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId in (84224, 95873, 95874, 95248, 95765, 95767, 95537, 95541, 95542, 95674, 95547, 95676, 95549, 95550, 95551, 95552, 95558, 95560, 95689, 95052, 95445, 95204, 95462, 95591, 95466, 95340)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 14:36:55,047 - 56238 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-04-22 14:36:55,722 - 56238 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId in (84224, 95873, 95874, 95248, 95765, 95767, 95537, 95541, 95542, 95674, 95547, 95676, 95549, 95550, 95551, 95552, 95558, 95560, 95689, 95052, 95445, 95204, 95462, 95591, 95466, 95340);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 14:36:56,424 - 56238 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-04-22 14:36:57,094 - 56238 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId in (84224, 95873, 95874, 95248, 95765, 95767, 95537, 95541, 95542, 95674, 95547, 95676, 95549, 95550, 95551, 95552, 95558, 95560, 95689, 95052, 95445, 95204, 95462, 95591, 95466, 95340);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 14:36:57,797 - 56238 - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-04-22 14:36:58,459 - 56238 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId in (84224, 95873, 95874, 95248, 95765, 95767, 95537, 95541, 95542, 95674, 95547, 95676, 95549, 95550, 95551, 95552, 95558, 95560, 95689, 95052, 95445, 95204, 95462, 95591, 95466, 95340);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 14:36:59,365 - 56238 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-22 14:37:00,025 - 56238 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId in (84224, 95873, 95874, 95248, 95765, 95767, 95537, 95541, 95542, 95674, 95547, 95676, 95549, 95550, 95551, 95552, 95558, 95560, 95689, 95052, 95445, 95204, 95462, 95591, 95466, 95340);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 14:37:00,717 - 56238 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-22 14:37:01,419 - 56238 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-04-22 14:37:02,081 - 56238 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-04-22 14:37:03,051 - 56238 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-04-22 14:37:03,708 - 56238 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.CommunicationPreferencesServiceReportNotification: - __SPLIT__ 2026-04-22 14:37:04,373 - 56238 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-04-22 14:37:05,039 - 56238 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-22 14:37:05,695 - 56238 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ('508182', '508261', '508263', '508231', '508248') ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 14:37:06,384 - 56238 - src.utils.log - INFO - βœ… Fetched 5 rows - __SPLIT__ 2026-04-22 14:37:07,048 - 56238 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.SetupAutoGenerationSourceMapping: 0 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 14:37:07,754 - 56238 - src.utils.log - INFO - βœ… All 0 rows inserted successfully into ServiceCore.SetupAutoGenerationSourceMapping in 0 batches - __SPLIT__ 2026-04-22 14:37:08,412 - 56238 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-04-22 14:37:09,067 - 56238 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-22 14:37:09,725 - 56238 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (508189, 508247) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 14:37:10,419 - 56238 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-04-22 14:37:11,080 - 56238 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationAppliedDiscount: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 14:37:11,789 - 56238 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationAppliedDiscount - __SPLIT__ 2026-04-22 14:37:12,560 - 56238 - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationAppliedDiscount in 1 batches - __SPLIT__ 2026-04-22 14:37:13,219 - 56238 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-04-22 14:37:13,873 - 56238 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-22 14:37:14,537 - 56238 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (508261.0, 508182.0, 508231.0) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 14:37:15,228 - 56238 - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-04-22 14:37:15,895 - 56238 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.SubWorkOrderAutoGeneration: 3 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 14:37:16,896 - 56238 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into ServiceCore.SubWorkOrderAutoGeneration - __SPLIT__ 2026-04-22 14:37:17,705 - 56238 - src.utils.log - INFO - βœ… All 3 rows inserted successfully into ServiceCore.SubWorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-04-22 14:37:18,370 - 56238 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-04-22 14:37:19,032 - 56238 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-22 14:37:19,698 - 56238 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (508261, 508182, 508231) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 14:37:20,397 - 56238 - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-04-22 14:37:21,058 - 56238 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: 3 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 14:37:21,770 - 56238 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into ServiceCore.WorkOrderAutoGenerationCommissionAdjustment - __SPLIT__ 2026-04-22 14:37:22,549 - 56238 - src.utils.log - INFO - βœ… All 3 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationCommissionAdjustment in 1 batches - __SPLIT__ 2026-04-22 14:37:23,210 - 56238 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-04-22 14:37:23,875 - 56238 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: - __SPLIT__ 2026-04-22 14:37:24,541 - 56238 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-04-22 14:37:25,210 - 56238 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-22 14:37:25,877 - 56238 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (508181, 508183, 508184, 508185, 508186, 508187, 508188, 508189, 508190, 508191, 508192, 508193, 508194, 508196, 508197, 508198, 508199, 508200, 508201, 508202, 508203, 508204, 508205, 508206, 508207, 508208, 508209, 508210, 508211, 508212, 508213, 508214, 508215, 508216, 508217, 508218, 508219, 508220, 508221, 508222, 508223, 508224, 508225, 508226, 508227, 508228, 508229, 508230, 508232, 508233, 508234, 508235, 508236, 508237, 508238, 508239, 508240, 508241, 508242, 508243, 508244, 508245, 508246, 508247, 508248, 508249, 508250, 508251, 508252, 508253, 508255, 508256, 508257, 508258, 508259, 508260, 508262, 508263, 508264, 508265, 508266, 508268, 508269, 508270, 508271) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 14:37:26,569 - 56238 - src.utils.log - INFO - βœ… Fetched 85 rows - __SPLIT__ 2026-04-22 14:37:27,237 - 56238 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationCrews: 120 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 14:37:27,950 - 56238 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 120) into ServiceCore.WorkOrderAutoGenerationCrews - __SPLIT__ 2026-04-22 14:37:28,841 - 56238 - src.utils.log - INFO - βœ… All 120 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationCrews in 1 batches - __SPLIT__ 2026-04-22 14:37:29,506 - 56238 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-04-22 14:37:30,164 - 56238 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-22 14:37:31,104 - 56238 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 14:37:31,806 - 56238 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-04-22 14:37:32,572 - 56238 - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-04-22 14:37:33,227 - 56238 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-04-22 14:37:33,885 - 56238 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-22 14:37:34,536 - 56238 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 116 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 14:37:35,222 - 56238 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 116) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-04-22 14:37:36,297 - 56238 - src.utils.log - INFO - βœ… All 116 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-04-22 14:37:36,947 - 56238 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-04-22 14:37:37,605 - 56238 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 56238;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 14:37:38,289 - 56238 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-04-22 14:37:38,939 - 56238 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-04-22 14:37:39,598 - 56238 - src.utils.log - INFO - Time took to perform operation: 122.17 - __SPLIT__ 2026-04-22 14:37:40,256 - 56238 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 56238;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 14:37:40,930 - 56238 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-04-22 14:37:41,583 - 56238 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET WorkOrderStatusDateTime = '2026-04-22 10:37:41.583' WHERE GenerateWorkOrderHistoryId = 56238;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 14:37:42,273 - 56238 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-04-22 14:39:31,671 - [56238] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[508181, 508182, 508183] user_id=44502 company_id=145 project_id=[56238] publish_all=False - __SPLIT__ 2026-04-22 14:39:32,632 - [56238] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[508181, 508182, 508183] user_id=44502 company_id=145 project_id=[56238] publish_all=False - __SPLIT__ 2026-04-22 14:39:33,299 - [56238] - src.utils.log - INFO - Sequential Work order publish in progress for GenerateWorkOrderHistoryId: [56238] - __SPLIT__ 2026-04-22 14:39:33,968 - [56238] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-04-22 14:39:34,629 - [56238] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Samsung'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 14:39:35,524 - [56238] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-22 14:39:36,185 - [56238] - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-04-22 14:39:36,853 - [56238] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'InProgress' WHERE CompanyId = 145 AND GenerateWorkOrderHistoryId = 56238;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 14:39:37,551 - [56238] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-04-22 14:39:38,213 - [56238] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (508181, 508182, 508183)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 14:39:38,915 - [56238] - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-04-22 14:39:39,576 - [56238] - src.utils.log - INFO - Inside get_work_order_table - __SPLIT__ 2026-04-22 14:39:40,237 - [56238] - src.utils.log - INFO - πŸ” Fetching data: SELECT DISTINCT sss.ServiceSetupId, dm.DepartmentMasterId, bm.BranchMasterId FROM Common.DepartmentMaster dm JOIN Common.DivisionMaster d2 ON dm.DivisionMasterId = d2.DivisionMasterId JOIN Common.BranchMaster bm ON d2.BranchMasterId = bm.BranchMasterId JOIN ServiceCore.ServiceCategoryMaster c ON c.DepartmentId = dm.DepartmentMasterId JOIN ServiceCore.ServiceMaster sm ON c.CategoryId = sm.CategoryId JOIN ServiceCore.ServiceSetupServices sss ON sss.ServiceId = sm.ServiceMasterId WHERE dm.CompanyId = 145 AND d2.CompanyId = bm.CompanyId AND sss.ServiceSetupId in (95874, 95052, 95248) AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 14:39:40,951 - [56238] - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-04-22 14:39:41,616 - [56238] - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceSetupId, dm.DepartmentMasterId, bm.BranchMasterId FROM Common.DepartmentMaster dm JOIN Common.DivisionMaster d2 ON dm.DivisionMasterId = d2.DivisionMasterId JOIN Common.BranchMaster bm ON d2.BranchMasterId = bm.BranchMasterId JOIN ServiceCore.SoldServiceNonStandard x on dm.DepartmentMasterId = x.DepartmentId JOIN ServiceCore.ServiceSetupServices sss ON sss.NonStdSoldServiceId = x.SoldServiceNonStandardId WHERE dm.CompanyId = 145 AND d2.CompanyId = bm.CompanyId AND sss.ServiceSetupId in (95874, 95052, 95248) AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 14:39:42,322 - [56238] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-22 14:39:42,988 - [56238] - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceSetupId, dm.DepartmentMasterId, bm.BranchMasterId FROM Common.DepartmentMaster dm Inner JOIN Common.DivisionMaster d2 ON dm.DivisionMasterId = d2.DivisionMasterId Inner JOIN Common.BranchMaster bm ON d2.BranchMasterId = bm.BranchMasterId Inner JOIN [ServiceCore].[ServiceCategoryMaster] scm ON dm.DepartmentMasterId = scm.DepartmentId Inner JOIN ServiceCore.ServiceMaster sm ON scm.CategoryId = sm.CategoryId Inner JOIN ServiceCore.SoldServiceStandard x on x.ServiceId = sm.ServiceMasterId Inner JOIN ServiceCore.ServiceSetupServices sss ON sss.StdSoldServiceId = x.SoldServiceStandardId WHERE dm.CompanyId = 145 AND d2.CompanyId = bm.CompanyId AND sss.ServiceSetupId in (95874, 95052, 95248) AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 14:39:43,700 - [56238] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-22 14:39:44,366 - [56238] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder,BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 145;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 14:39:45,067 - [56238] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-22 14:39:45,730 - [56238] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 145 AND EnitityNumberType in ('WorkOrder','Invoice'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 14:39:46,710 - [56238] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-04-22 14:39:47,377 - [56238] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder, BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 145; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 14:39:48,057 - [56238] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-22 14:39:48,713 - [56238] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig SET NextNumber = NextNumber + 3 OUTPUT INSERTED.NextNumber - 3 AS StartNumber WHERE CompanyId = 145 AND EnitityNumberType IN ('WorkOrder','Invoice'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 14:39:49,400 - [56238] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-04-22 14:39:50,061 - [56238] - src.utils.log - INFO - πŸ” Fetching data: SELECT ss.ServiceSetupId as SetupId, ss.FrequencyScheduleId as setup_frequency_schedule_id, ss.AccountNumber, ss.CompanyId, ss.BillingLocationId, ss.ServiceLocationId, ss.TaxSysName, ss.TermId, ss.TaxPercent, ss.PoNumber, ss.IsTaxExempt, ss.DisplayServiceAsSeparateLineItem, ss.GenerateInvoice, ss.IsGenerateInvoiceforInitalSetup, ss.IsGenerateInvoiceforInitalSetupBilling, ss.IsBilling, t.NetDueIn, ptm.PaymentType, ssb.* FROM ServiceCore.ServiceSetup ss LEFT JOIN ServiceCore.ServiceSetupBilling ssb ON ss.ServiceSetupId = ssb.ServiceSetupId LEFT JOIN Billing.PaymentTypeMaster ptm ON ptm.PaymentTypeMasterId = ssb.PaymentTypeMasterId left join Billing.Term t on ss.TermId = t.TermId WHERE ss.ServiceSetupId in (95874, 95052, 95248)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 14:39:50,762 - [56238] - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-04-22 14:39:51,421 - [56238] - src.utils.log - INFO - πŸ” Fetching data: SELECT x.CompanyId FROM CRM.CompanyMaster x WHERE CompanyKey = 'Samsung';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 14:39:52,109 - [56238] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-22 14:39:52,768 - [56238] - src.utils.log - INFO - πŸ” Fetching data: SELECT CollectionStatus,IsHold,AccountNo FROM CRM.Account a WHERE a.AccountNo in ('3490', '7019', '2696') and a.CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 14:39:53,459 - [56238] - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-04-22 14:39:54,123 - [56238] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderNo FROM ServiceCore.WorkOrder WHERE WorkOrderNo IN ('225221', '225222', '225223') AND CompanyId = 145 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 14:39:54,815 - [56238] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-22 14:39:55,469 - [56238] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrder (skip triggers): 3 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 14:39:56,215 - [56238] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into ServiceCore.WorkOrder (triggers skipped) - __SPLIT__ 2026-04-22 14:39:57,134 - [56238] - src.utils.log - INFO - βœ… All 3 rows inserted successfully into ServiceCore.WorkOrder in 1 batches (triggers skipped) - __SPLIT__ 2026-04-22 14:39:57,807 - [56238] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-04-22 14:39:58,483 - [56238] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.ServiceSetup SET IsInitialWoGenerated = 1 WHERE CompanyId = 145 AND ServiceSetupId in (95874, 95052);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 14:39:59,172 - [56238] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-04-22 14:39:59,832 - [56238] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkorderId, WorkOrderNo FROM ServiceCore.WorkOrder wo WHERE wo.WorkOrderNo IN ('225221', '225222', '225223') AND wo.AccountNumber IN ('3490', '7019', '2696') AND wo.CompanyId = 145 ... (Thread: ThreadPoolExecutor-24_0) - __SPLIT__ 2026-04-22 14:40:00,811 - [56238] - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-04-22 14:40:01,468 - [56238] - src.utils.log - INFO - Sequential fetching temp table records - __SPLIT__ 2026-04-22 14:40:02,123 - [56238] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationServices woag WHERE woag.WorkOrderAutoGenerationId in (508181, 508182, 508183)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 14:40:02,818 - [56238] - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-04-22 14:40:03,476 - [56238] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SubWorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (508181, 508182, 508183)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 14:40:04,200 - [56238] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-22 14:40:04,856 - [56238] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationCrews woag WHERE woag.WorkOrderAutoGenerationId in (508181, 508182, 508183)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 14:40:05,566 - [56238] - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-04-22 14:40:06,224 - [56238] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationSalesPersonCommission woag WHERE woag.WorkOrderAutoGenerationId in (508181, 508182, 508183)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 14:40:06,910 - [56238] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-22 14:40:07,570 - [56238] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupAutoGenerationSourceMapping woag WHERE woag.WorkOrderAutoGenerationId in (508181, 508182, 508183)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 14:40:08,264 - [56238] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-22 14:40:08,918 - [56238] - src.utils.log - INFO - πŸ” Fetching data: SELECT DiscountType, DiscountCode, DiscountAmount, DiscountDescription, DiscountName, IsActive, CreatedBy, ModifiedBy, CreatedDate, ModifiedDate, DiscountPercent, IsDiscountPercent, AppliedDiscountAmt, ApplyOnPartPrice, ApplyOnLaborPrice, DiscountSetupId, WorkOrderAutoGenerationId from ServiceCore.WorkOrderAutoGenerationAppliedDiscount woag WHERE woag.WorkOrderAutoGenerationId in (508181, 508182, 508183)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 14:40:09,609 - [56238] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-22 14:40:10,281 - [56238] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from CRM.LeadNote woag WHERE woag.RefId in (508181, 508182, 508183) and woag.RefType = 'TempWorkorder';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 14:40:10,985 - [56238] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-22 14:40:11,640 - [56238] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment woagca WHERE woagca.WorkOrderAutoGenerationId in (508181, 508182, 508183);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 14:40:12,323 - [56238] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-22 14:40:12,974 - [56238] - src.utils.log - INFO - Updating temp tables - __SPLIT__ 2026-04-22 14:40:13,644 - [56238] - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyKey FROM Common.CompanyMaster cm WHERE CompanyId = 145;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 14:40:14,630 - [56238] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-22 14:40:15,302 - [56238] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 145 AND EnitityNumberType in ('SubWorkOrder'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 14:40:16,009 - [56238] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-22 14:40:16,671 - [56238] - src.utils.log - INFO - πŸ“ Executing: UPDATE Common.GenerateNumberConfig SET NextNumber = '38118' WHERE CompanyId = 145 AND EnitityNumberType in ('SubWorkOrder');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 14:40:17,372 - [56238] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-04-22 14:40:18,034 - [56238] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-22 14:40:18,695 - [56238] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishHistory: 3 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 14:40:19,443 - [56238] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into ServiceCore.WorkOrderAutoGenerationPublishHistory - __SPLIT__ 2026-04-22 14:40:20,262 - [56238] - src.utils.log - INFO - βœ… All 3 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishHistory in 1 batches - __SPLIT__ 2026-04-22 14:40:20,918 - [56238] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationPublishHistoryId, WorkOrderNo, ServiceSetupId FROM ServiceCore.WorkOrderAutoGenerationPublishHistory WHERE ServiceSetupId IN (95874, 95052, 95248) AND WorkOrderNo IN ('322306', '5735989', '6672921') AND GenerateWorkOrderHistoryId = 56238;... (Thread: ThreadPoolExecutor-25_0) - __SPLIT__ 2026-04-22 14:40:21,649 - [56238] - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-04-22 14:40:22,312 - [56238] - src.utils.log - INFO - 🏁 Final merged rows: 3 - __SPLIT__ 2026-04-22 14:40:22,980 - [56238] - src.utils.log - INFO - Sequential Insertion in work order tables begin - __SPLIT__ 2026-04-22 14:40:23,642 - [56238] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-22 14:40:24,303 - [56238] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderServices: 3 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 14:40:25,020 - [56238] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into ServiceCore.WorkOrderServices - __SPLIT__ 2026-04-22 14:40:25,793 - [56238] - src.utils.log - INFO - βœ… All 3 rows inserted successfully into ServiceCore.WorkOrderServices in 1 batches - __SPLIT__ 2026-04-22 14:40:26,450 - [56238] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderAppliedDiscount: - __SPLIT__ 2026-04-22 14:40:27,110 - [56238] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderSalesPersonCommission: - __SPLIT__ 2026-04-22 14:40:27,767 - [56238] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-22 14:40:28,733 - [56238] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.WorkOrderCommissionAdjustment: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 14:40:29,450 - [56238] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceAuto.WorkOrderCommissionAdjustment - __SPLIT__ 2026-04-22 14:40:30,214 - [56238] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceAuto.WorkOrderCommissionAdjustment in 1 batches - __SPLIT__ 2026-04-22 14:40:30,875 - [56238] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-22 14:40:31,547 - [56238] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderCrew: 3 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 14:40:32,263 - [56238] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into ServiceCore.WorkOrderCrew - __SPLIT__ 2026-04-22 14:40:33,068 - [56238] - src.utils.log - INFO - βœ… All 3 rows inserted successfully into ServiceCore.WorkOrderCrew in 1 batches - __SPLIT__ 2026-04-22 14:40:33,738 - [56238] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkorderSourceMapping: - __SPLIT__ 2026-04-22 14:40:34,402 - [56238] - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-04-22 14:40:35,074 - [56238] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-22 14:40:35,739 - [56238] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishServices: 3 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 14:40:36,462 - [56238] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into ServiceCore.WorkOrderAutoGenerationPublishServices - __SPLIT__ 2026-04-22 14:40:37,247 - [56238] - src.utils.log - INFO - βœ… All 3 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishServices in 1 batches - __SPLIT__ 2026-04-22 14:40:37,908 - [56238] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-22 14:40:38,573 - [56238] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.SubWorkOrder: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 14:40:39,301 - [56238] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.SubWorkOrder - __SPLIT__ 2026-04-22 14:40:40,097 - [56238] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.SubWorkOrder in 1 batches - __SPLIT__ 2026-04-22 14:40:40,759 - [56238] - src.utils.log - INFO - πŸ” Fetching data: Select * From ServiceCore.SubWorkOrder where WorkOrderId = 1286419... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 14:40:41,466 - [56238] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-22 14:40:42,139 - [56238] - src.utils.log - INFO - πŸ” Fetching data: SELECT ss.ServiceSetupId as SetupId, ss.FrequencyScheduleId as setup_frequency_schedule_id, ss.AccountNumber, ss.CompanyId, ss.BillingLocationId, ss.ServiceLocationId, ss.TaxSysName, ss.TermId, ss.TaxPercent, ss.PoNumber, ss.IsTaxExempt, ss.DisplayServiceAsSeparateLineItem, ss.GenerateInvoice, ss.IsGenerateInvoiceforInitalSetup, ss.IsGenerateInvoiceforInitalSetupBilling, ss.IsBilling, t.NetDueIn, ptm.PaymentType, ssb.* FROM ServiceCore.ServiceSetup ss LEFT JOIN ServiceCore.ServiceSetupBilling ssb ON ss.ServiceSetupId = ssb.ServiceSetupId LEFT JOIN Billing.PaymentTypeMaster ptm ON ptm.PaymentTypeMasterId = ssb.PaymentTypeMasterId left join Billing.Term t on ss.TermId = t.TermId WHERE ss.ServiceSetupId in (95874, 95052, 95248)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 14:40:43,131 - [56238] - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-04-22 14:40:43,802 - [56238] - src.utils.log - INFO - Size of Transaction: 3 - __SPLIT__ 2026-04-22 14:40:44,468 - [56238] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 3 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 14:40:45,194 - [56238] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-04-22 14:40:45,984 - [56238] - src.utils.log - INFO - βœ… All 3 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-04-22 14:40:46,658 - [56238] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-04-22 14:40:47,325 - [56238] - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionId, ModifiedBy, TransactionDate as InvoiceDate from Billing.[Transaction] t WHERE t.ModifiedBy in (12345678910, 12345678911, 12345678912) and t.CompanyId = 145 AND t.TransactionType ='Invoice' AND t.CreatedDate = '2026-04-22 10:40:43.798';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 14:40:48,122 - [56238] - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-04-22 14:40:48,781 - [56238] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId in (95052, 95248, 95874);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 14:40:49,481 - [56238] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-22 14:40:50,157 - [56238] - src.utils.log - INFO - πŸ“ Executing: UPDATE Billing.[Transaction] SET ModifiedBy = NULL WHERE ModifiedBy IN (12345678910,12345678911,12345678912) AND CreatedDate = '2026-04-22 10:40:43.798'; ... (Thread: ThreadPoolExecutor-26_0) - __SPLIT__ 2026-04-22 14:40:50,900 - [56238] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-04-22 14:40:51,571 - [56238] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-22 14:40:52,230 - [56238] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 3 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 14:40:52,942 - [56238] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into Billing.Invoice - __SPLIT__ 2026-04-22 14:40:53,715 - [56238] - src.utils.log - INFO - βœ… All 3 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-04-22 14:40:54,376 - [56238] - src.utils.log - INFO - πŸ” Fetching data: SELECT InvoiceId, WorkOrderNo FROM Billing.Invoice i WHERE i.WorkOrderNo in ('225222', '225223', '225221')... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 14:40:55,107 - [56238] - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-04-22 14:40:55,771 - [56238] - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceSetupId, sss.NonStdSoldServiceId as SoldServiceNonStandardId, sss.Qty as Quantity, sss.Price as Rate, sss.IsTaxable, sm.Name as NonStandardServiceName, sm.Description , sm.ServiceMasterId as ServiceId FROM ServiceCore.ServiceSetupServices sss join ServiceCore.ServiceMaster sm on sm.ServiceMasterId = sss.ServiceId where ServiceSetupId in (95874, 95052, 95248) and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 14:40:56,454 - [56238] - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-04-22 14:40:57,402 - [56238] - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceSetupId, sss.NonStdSoldServiceId as SoldServiceNonStandardId, sss.Qty as Quantity, sss.Price as Rate, sss.IsTaxable, sm.Name as NonStandardServiceName, sm.Description , sm.ServiceMasterId as ServiceId FROM ServiceCore.ServiceSetupInitialServices sss join ServiceCore.ServiceMaster sm on sm.ServiceMasterId = sss.ServiceId where ServiceSetupId in (95874, 95052, 95248) and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 14:40:58,096 - [56238] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-22 14:40:58,755 - [56238] - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceSetupId, sss.NonStdSoldServiceId as SoldServiceNonStandardId, sss.Qty as Quantity, sss.Price as Rate, sss.IsTaxable, sm.servicename as NonStandardServiceName, sm.Description , sss.ServiceId FROM ServiceCore.ServiceSetupServices sss join ServiceCore.SoldServiceNonStandard sm on sm.SoldServiceNonStandardId = sss.NonStdSoldServiceId where ServiceSetupId in (95874, 95052, 95248) and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 14:40:59,444 - [56238] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-22 14:41:00,095 - [56238] - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceSetupId, sss.NonStdSoldServiceId as SoldServiceNonStandardId, sss.Qty as Quantity, sss.Price as Rate, sss.IsTaxable, sm.servicename as NonStandardServiceName, sm.Description , sss.ServiceId FROM ServiceCore.ServiceSetupInitialServices sss join ServiceCore.SoldServiceNonStandard sm on sm.SoldServiceNonStandardId = sss.NonStdSoldServiceId where ServiceSetupId in (95874, 95052, 95248) and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 14:41:00,787 - [56238] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-22 14:41:01,449 - [56238] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId in (95874, 95248);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 14:41:02,133 - [56238] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-22 14:41:02,793 - [56238] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId, AppliedDiscountAmt as AppliedDiscountAmount,IsActive ,ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId in (95874, 95052, 95248);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 14:41:03,493 - [56238] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-22 14:41:04,168 - [56238] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId,IsActive,DiscountAmount, IsDiscountPercent,DiscountPercent,DiscountDescription, ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId in (95874, 95052, 95248);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 14:41:04,853 - [56238] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-22 14:41:05,519 - [56238] - src.utils.log - INFO - Sequential Insertion in invoice tables begin - __SPLIT__ 2026-04-22 14:41:06,175 - [56238] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.AccountDiscountSetup: - __SPLIT__ 2026-04-22 14:41:06,856 - [56238] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-22 14:41:07,511 - [56238] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceCharges: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 14:41:08,219 - [56238] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.InvoiceCharges - __SPLIT__ 2026-04-22 14:41:09,000 - [56238] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.InvoiceCharges in 1 batches - __SPLIT__ 2026-04-22 14:41:09,660 - [56238] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.DiscountApplied: - __SPLIT__ 2026-04-22 14:41:10,321 - [56238] - src.utils.log - INFO - Invoice Publish Done - __SPLIT__ 2026-04-22 14:41:11,286 - [56238] - src.utils.log - INFO - Updating Next GenerationDate - __SPLIT__ 2026-04-22 14:41:11,946 - [56238] - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, MAX(NextWorkOrderGenerationDate) AS MaxNextWorkOrderGeneration FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 56238 GROUP BY ServiceSetupId; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 14:41:12,638 - [56238] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-22 14:41:13,301 - [56238] - src.utils.log - INFO - πŸ”„ Updating next gen date sequentially: inside update_next_workorder_generation - __SPLIT__ 2026-04-22 14:41:14,018 - [56238] - src.utils.log - INFO - πŸ›  Creating temp table #tbl_e41925d11a - __SPLIT__ 2026-04-22 14:41:14,699 - [56238] - src.utils.log - INFO - πŸ“Œ Bulk inserting 3 rows into #tbl_e41925d11a - __SPLIT__ 2026-04-22 14:41:15,413 - [56238] - src.utils.log - INFO - πŸ” Running MERGE update to apply changes - __SPLIT__ 2026-04-22 14:41:16,165 - [56238] - src.utils.log - INFO - βœ” SQL reported affected rows: 3 - __SPLIT__ 2026-04-22 14:41:16,837 - [56238] - src.utils.log - INFO - πŸ” Verified successfully updated 3 rows via #tbl_e41925d11a - __SPLIT__ 2026-04-22 14:41:17,495 - [56238] - src.utils.log - INFO - πŸŽ‰ Successfully updated NextGenerationDate using temp table #tbl_e41925d11a - __SPLIT__ 2026-04-22 14:41:18,151 - [56238] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 56238 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 14:41:18,885 - [56238] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-22 14:41:19,546 - [56238] - src.utils.log - INFO - Sequential deletion from temp tables begin - __SPLIT__ 2026-04-22 14:41:20,198 - [56238] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId in (508181, 508182, 508183) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 14:41:20,911 - [56238] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-22 14:41:21,567 - [56238] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId in (508181, 508182, 508183) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 14:41:22,268 - [56238] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-22 14:41:22,954 - [56238] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId in (508181, 508182, 508183) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 14:41:23,646 - [56238] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-22 14:41:24,302 - [56238] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId in (508181, 508182, 508183) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 14:41:25,269 - [56238] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-22 14:41:25,908 - [56238] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId in (508181, 508182, 508183) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 14:41:26,586 - [56238] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-22 14:41:27,222 - [56238] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (508181, 508182, 508183) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 14:41:27,923 - [56238] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-22 14:41:28,574 - [56238] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId in (508181, 508182, 508183) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 14:41:29,252 - [56238] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-22 14:41:29,893 - [56238] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (508181, 508182, 508183) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 14:41:30,679 - [56238] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-22 14:41:31,322 - [56238] - src.utils.log - INFO - Work order published ids: (508181, 508182, 508183) - __SPLIT__ 2026-04-22 14:41:31,961 - [56238] - src.utils.log - INFO - Time took to perform operation in publishing [56238]: 117.99 - __SPLIT__ 2026-04-22 14:41:32,598 - [56238] - src.utils.log - INFO - Publish Completed for GenerateWorkOrderHistoryId: [56238] - __SPLIT__ 2026-04-22 14:41:33,243 - [56238] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-04-22 10:41:31.322' WHERE CompanyId = 145 AND GenerateWorkOrderHistoryId = 56238;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 14:41:33,922 - [56238] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-04-22 20:49:21,988 - 24593 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=24593 - __SPLIT__ 2026-04-22 20:49:22,967 - 24593 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 24593 - __SPLIT__ 2026-04-22 20:49:23,645 - 24593 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-04-22 20:49:24,327 - 24593 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 20:49:25,233 - 24593 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-22 20:49:25,912 - 24593 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-04-22 20:49:26,579 - 24593 - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-04-22 20:49:27,253 - 24593 - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-04-22 20:49:27,932 - 24593 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 24593;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 20:49:29,069 - 24593 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-04-22 20:49:29,741 - 24593 - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.RecurringServicePrice, gw.StartDate, gw.EndDate, gw.CreatedBy AS NewCreatedBy, gw.RouteIds, ss.* FROM ServiceCore.GenerateWorkOrderHistory gw JOIN ServiceCore.ServiceSetup ss ON gw.CompanyId = ss.CompanyId AND ( (ss.NextGenerationDate <= gw.EndDate AND ss.NextGenerationDate >= gw.StartDate) OR ss.NextGenerationDate IS NULL) AND (gw.AccountNumber IS NULL OR ss.AccountNumber = gw.AccountNumber) AND (gw.ServiceSetupId IS NULL OR ss.ServiceSetupId = gw.ServiceSetupId)AND (gw.RouteIds IS NULL OR ss.RouteMasterId IN (SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 24593), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 24593), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 24593 AND ss.FrequencyScheduleId IS NOT NULL AND ss.IsActive = 1 AND ss.IsDeleted = 0 AND ss.Status <> 'Canceled';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 20:49:30,588 - 24593 - src.utils.log - INFO - βœ… Fetched 35 rows - __SPLIT__ 2026-04-22 20:49:31,244 - 24593 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 24593;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 20:49:31,928 - 24593 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-22 20:49:32,600 - 24593 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-04-22 20:49:33,267 - 24593 - src.utils.log - INFO - πŸ” Fetching data: SELECT fsd.IntervalDays, fs.CreatedDate ,f.FrequencyId , fs.FrequencyScheduleId, f.[SysName], f.FrequencyValue, f.YearlyOccurrence , fs.ScheduleFormat,fsd.Days, fsd.Weeks, fsd.Months,fsc.[Month] as sch_months, fsd.StartMonth , fsd.DateDay,fsd.DateMonth FROM [ServiceCore].[FrequencyMaster] f inner join [ServiceCore].[FrequencySchedule] fs on fs.FrequencyId = f.FrequencyId left join ServiceCore.FrequencyScheduleCycle fsc on fsc.FrequencyScheduleId = fs.FrequencyScheduleId left join [ServiceCore].[FrequencyScheduleDetail] fsd on fsd.FrequencyScheduleId = fs.FrequencyScheduleId WHERE fsd.FrequencyScheduleId in (14728, 14604, 14734, 14486, 14634, 14638, 14775, 14648, 14662, 14664, 14538, 14666, 14668, 14676, 14551, 14560, 14693, 14571, 14448, 14836)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 20:49:33,995 - 24593 - src.utils.log - INFO - βœ… Fetched 362 rows - __SPLIT__ 2026-04-22 20:49:34,662 - 24593 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-04-22 20:49:35,335 - 24593 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-04-22 20:49:36,009 - 24593 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId in (64133, 65673, 25870, 59283, 26395, 35357, 43807, 45728, 47009, 51623, 65191, 40627, 65203, 54453, 39481, 66489, 48573, 66242, 62405, 65095, 65096, 65097, 48334, 63573, 66264, 37850, 32732, 23134, 66527, 46434, 64994, 47333, 47462, 32360, 48488);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 20:49:36,707 - 24593 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-22 20:49:37,649 - 24593 - src.utils.log - INFO - πŸ” Fetching data: select ServiceDate, ServiceSetupId,IsInitial from serviceCore.WorkOrder wo inner join ServiceCore.WorkOrderStatus wos on wo.WoStatusId = wos.WoStatusId where ServiceDate >= '2026-05-01 00:00:00' and ServiceDate <= '2026-05-31 00:00:00' and ServiceSetupId in (64133, 65673, 25870, 59283, 26395, 35357, 43807, 45728, 47009, 51623, 65191, 40627, 65203, 54453, 39481, 66489, 48573, 66242, 62405, 65095, 65096, 65097, 48334, 63573, 66264, 37850, 32732, 23134, 66527, 46434, 64994, 47333, 47462, 32360, 48488) and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 20:49:38,354 - 24593 - src.utils.log - INFO - βœ… Fetched 21 rows - __SPLIT__ 2026-04-22 20:49:39,170 - 24593 - src.utils.log - INFO - Generating work orders for setup: 25870 - __SPLIT__ 2026-04-22 20:49:39,835 - 24593 - src.utils.log - INFO - Generating work orders for setup: 32360 - __SPLIT__ 2026-04-22 20:49:40,505 - 24593 - src.utils.log - INFO - Generating work orders for setup: 32732 - __SPLIT__ 2026-04-22 20:49:41,187 - 24593 - src.utils.log - INFO - Generating work orders for setup: 35357 - __SPLIT__ 2026-04-22 20:49:41,858 - 24593 - src.utils.log - INFO - Generating work orders for setup: 37850 - __SPLIT__ 2026-04-22 20:49:42,525 - 24593 - src.utils.log - INFO - Generating work orders for setup: 48488 - __SPLIT__ 2026-04-22 20:49:43,194 - 24593 - src.utils.log - INFO - Generating work orders for setup: 65095 - __SPLIT__ 2026-04-22 20:49:43,866 - 24593 - src.utils.log - INFO - Generating work orders for setup: 65096 - __SPLIT__ 2026-04-22 20:49:44,540 - 24593 - src.utils.log - INFO - Generating work orders for setup: 65097 - __SPLIT__ 2026-04-22 20:49:45,208 - 24593 - src.utils.log - INFO - Generating work orders for setup: 65203 - __SPLIT__ 2026-04-22 20:49:45,890 - 24593 - src.utils.log - INFO - Generating work orders for setup: 66242 - __SPLIT__ 2026-04-22 20:49:46,566 - 24593 - src.utils.log - INFO - Generating work orders for setup: 66264 - __SPLIT__ 2026-04-22 20:49:47,234 - 24593 - src.utils.log - INFO - Generating work orders for setup: 66489 - __SPLIT__ 2026-04-22 20:49:47,908 - 24593 - src.utils.log - INFO - Generating work orders for setup: 66527 - __SPLIT__ 2026-04-22 20:49:48,574 - 24593 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId in (11426.0, 11429.0, -1.0);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 20:49:49,266 - 24593 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-04-22 20:49:49,964 - 24593 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-04-22 20:49:50,634 - 24593 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=133 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 20:49:51,625 - 24593 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-22 20:49:52,299 - 24593 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-04-22 20:49:52,963 - 24593 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-04-22 20:49:53,630 - 24593 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (64133, 65673, 25870, 59283, 26395, 35357, 43807, 45728, 47009, 51623, 65191, 40627, 65203, 54453, 39481, 66489, 48573, 66242, 62405, 65095, 65096, 65097, 48334, 63573, 66264, 37850, 32732, 23134, 66527, 46434, 64994, 47333, 47462, 32360, 48488) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 20:49:54,379 - 24593 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-22 20:49:55,043 - 24593 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (64133, 65673, 25870, 59283, 26395, 35357, 43807, 45728, 47009, 51623, 65191, 40627, 65203, 54453, 39481, 66489, 48573, 66242, 62405, 65095, 65096, 65097, 48334, 63573, 66264, 37850, 32732, 23134, 66527, 46434, 64994, 47333, 47462, 32360, 48488) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 20:49:55,814 - 24593 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-22 20:49:56,480 - 24593 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (64133, 65673, 25870, 59283, 26395, 35357, 43807, 45728, 47009, 51623, 65191, 40627, 65203, 54453, 39481, 66489, 48573, 66242, 62405, 65095, 65096, 65097, 48334, 63573, 66264, 37850, 32732, 23134, 66527, 46434, 64994, 47333, 47462, 32360, 48488) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 20:49:57,170 - 24593 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-22 20:49:57,840 - 24593 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (64133, 65673, 25870, 59283, 26395, 35357, 43807, 45728, 47009, 51623, 65191, 40627, 65203, 54453, 39481, 66489, 48573, 66242, 62405, 65095, 65096, 65097, 48334, 63573, 66264, 37850, 32732, 23134, 66527, 46434, 64994, 47333, 47462, 32360, 48488) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 20:49:58,631 - 24593 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-22 20:49:59,300 - 24593 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (64133, 65673, 25870, 59283, 26395, 35357, 43807, 45728, 47009, 51623, 65191, 40627, 65203, 54453, 39481, 66489, 48573, 66242, 62405, 65095, 65096, 65097, 48334, 63573, 66264, 37850, 32732, 23134, 66527, 46434, 64994, 47333, 47462, 32360, 48488) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 20:50:00,031 - 24593 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-22 20:50:00,693 - 24593 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (64133, 65673, 25870, 59283, 26395, 35357, 43807, 45728, 47009, 51623, 65191, 40627, 65203, 54453, 39481, 66489, 48573, 66242, 62405, 65095, 65096, 65097, 48334, 63573, 66264, 37850, 32732, 23134, 66527, 46434, 64994, 47333, 47462, 32360, 48488) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 20:50:01,404 - 24593 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-22 20:50:02,082 - 24593 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (64133, 65673, 25870, 59283, 26395, 35357, 43807, 45728, 47009, 51623, 65191, 40627, 65203, 54453, 39481, 66489, 48573, 66242, 62405, 65095, 65096, 65097, 48334, 63573, 66264, 37850, 32732, 23134, 66527, 46434, 64994, 47333, 47462, 32360, 48488) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 20:50:02,772 - 24593 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-22 20:50:03,444 - 24593 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (64133, 65673, 25870, 59283, 26395, 35357, 43807, 45728, 47009, 51623, 65191, 40627, 65203, 54453, 39481, 66489, 48573, 66242, 62405, 65095, 65096, 65097, 48334, 63573, 66264, 37850, 32732, 23134, 66527, 46434, 64994, 47333, 47462, 32360, 48488) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 20:50:04,182 - 24593 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-22 20:50:04,848 - 24593 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-22 20:50:05,787 - 24593 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 8 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 20:50:06,564 - 24593 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 8) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-04-22 20:50:07,391 - 24593 - src.utils.log - INFO - βœ… All 8 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-04-22 20:50:08,049 - 24593 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 8 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-04-17 15:40:13.230' and ServiceSetupId in (64133, 65673, 25870, 59283, 26395, 35357, 43807, 45728, 47009, 51623, 65191, 40627, 65203, 54453, 39481, 66489, 48573, 66242, 62405, 65095, 65096, 65097, 48334, 63573, 66264, 37850, 32732, 23134, 66527, 46434, 64994, 47333, 47462, 32360, 48488)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 20:50:08,733 - 24593 - src.utils.log - INFO - βœ… Fetched 8 rows - __SPLIT__ 2026-04-22 20:50:09,386 - 24593 - src.utils.log - INFO - Id's of work order inserted to DB: [643622 643623 643624 643625 643626 643627 643628 643629] - __SPLIT__ 2026-04-22 20:50:10,046 - 24593 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId in (64133, 65673, 25870, 59283, 26395, 35357, 43807, 45728, 47009, 51623, 65191, 40627, 65203, 54453, 39481, 66489, 48573, 66242, 62405, 65095, 65096, 65097, 48334, 63573, 66264, 37850, 32732, 23134, 66527, 46434, 64994, 47333, 47462, 32360, 48488);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 20:50:10,725 - 24593 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-22 20:50:11,373 - 24593 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-04-22 20:50:12,023 - 24593 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId in (65095, 65096, 65097, 32360, 25870, 66489, 32732, 66527)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 20:50:12,699 - 24593 - src.utils.log - INFO - βœ… Fetched 10 rows - __SPLIT__ 2026-04-22 20:50:13,346 - 24593 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId in (65095, 65096, 65097, 32360, 25870, 66489, 32732, 66527)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 20:50:14,029 - 24593 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-04-22 20:50:14,686 - 24593 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId in (65095, 65096, 65097, 32360, 25870, 66489, 32732, 66527)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 20:50:15,371 - 24593 - src.utils.log - INFO - βœ… Fetched 13 rows - __SPLIT__ 2026-04-22 20:50:16,022 - 24593 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId in (65095, 65096, 65097, 32360, 25870, 66489, 32732, 66527)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 20:50:16,700 - 24593 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-04-22 20:50:17,356 - 24593 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId in (65095, 65096, 65097, 32360, 25870, 66489, 32732, 66527)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 20:50:18,032 - 24593 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-22 20:50:18,687 - 24593 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId in (65095, 65096, 65097, 32360, 25870, 66489, 32732, 66527);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 20:50:19,659 - 24593 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-22 20:50:20,325 - 24593 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId in (65095, 65096, 65097, 32360, 25870, 66489, 32732, 66527);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 20:50:21,003 - 24593 - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-04-22 20:50:21,660 - 24593 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId in (65095, 65096, 65097, 32360, 25870, 66489, 32732, 66527);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 20:50:22,819 - 24593 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-22 20:50:23,482 - 24593 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId in (65095, 65096, 65097, 32360, 25870, 66489, 32732, 66527);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 20:50:24,167 - 24593 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-22 20:50:24,840 - 24593 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-04-22 20:50:25,496 - 24593 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-04-22 20:50:26,153 - 24593 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-04-22 20:50:26,808 - 24593 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.CommunicationPreferencesServiceReportNotification: - __SPLIT__ 2026-04-22 20:50:27,466 - 24593 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-04-22 20:50:28,130 - 24593 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-22 20:50:28,782 - 24593 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ('643625', '643623', '643626') ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 20:50:29,457 - 24593 - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-04-22 20:50:30,108 - 24593 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.SetupAutoGenerationSourceMapping: 0 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 20:50:30,810 - 24593 - src.utils.log - INFO - βœ… All 0 rows inserted successfully into ServiceCore.SetupAutoGenerationSourceMapping in 0 batches - __SPLIT__ 2026-04-22 20:50:31,463 - 24593 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-04-22 20:50:32,125 - 24593 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-22 20:50:32,778 - 24593 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 643628 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 20:50:33,761 - 24593 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-22 20:50:34,424 - 24593 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationAppliedDiscount: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 20:50:35,132 - 24593 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderAutoGenerationAppliedDiscount - __SPLIT__ 2026-04-22 20:50:35,884 - 24593 - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationAppliedDiscount in 1 batches - __SPLIT__ 2026-04-22 20:50:36,538 - 24593 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-04-22 20:50:37,194 - 24593 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SubWorkOrderAutoGeneration: - __SPLIT__ 2026-04-22 20:50:37,856 - 24593 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-04-22 20:50:38,510 - 24593 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: - __SPLIT__ 2026-04-22 20:50:39,178 - 24593 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-04-22 20:50:39,841 - 24593 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: - __SPLIT__ 2026-04-22 20:50:40,501 - 24593 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-04-22 20:50:41,164 - 24593 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-22 20:50:41,826 - 24593 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (643622, 643623, 643624, 643625, 643626, 643627, 643628, 643629) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 20:50:42,502 - 24593 - src.utils.log - INFO - βœ… Fetched 8 rows - __SPLIT__ 2026-04-22 20:50:43,164 - 24593 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationCrews: 8 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 20:50:43,881 - 24593 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 8) into ServiceCore.WorkOrderAutoGenerationCrews - __SPLIT__ 2026-04-22 20:50:44,679 - 24593 - src.utils.log - INFO - βœ… All 8 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationCrews in 1 batches - __SPLIT__ 2026-04-22 20:50:45,343 - 24593 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-04-22 20:50:45,999 - 24593 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationServices: - __SPLIT__ 2026-04-22 20:50:46,660 - 24593 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-04-22 20:50:47,602 - 24593 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-22 20:50:48,257 - 24593 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 10 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 20:50:48,959 - 24593 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 10) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-04-22 20:50:49,783 - 24593 - src.utils.log - INFO - βœ… All 10 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-04-22 20:50:50,442 - 24593 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-04-22 20:50:51,104 - 24593 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 24593;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 20:50:51,778 - 24593 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-04-22 20:50:52,430 - 24593 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-04-22 20:50:53,088 - 24593 - src.utils.log - INFO - Time took to perform operation: 88.79 - __SPLIT__ 2026-04-22 20:50:53,746 - 24593 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 24593;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 20:50:54,422 - 24593 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-04-22 20:50:55,074 - 24593 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET WorkOrderStatusDateTime = '2026-04-22 16:50:55.074' WHERE GenerateWorkOrderHistoryId = 24593;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 20:50:55,755 - 24593 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-04-22 20:51:21,706 - [24593] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[643622, 643623, 643624, 643625, 643626, 643627, 643628, 643629] user_id=43606 company_id=133 project_id=[24593] publish_all=False - __SPLIT__ 2026-04-22 20:51:22,664 - [24593] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[643622, 643623, 643624, 643625, 643626, 643627, 643628, 643629] user_id=43606 company_id=133 project_id=[24593] publish_all=False - __SPLIT__ 2026-04-22 20:51:23,330 - [24593] - src.utils.log - INFO - Sequential Work order publish in progress for GenerateWorkOrderHistoryId: [24593] - __SPLIT__ 2026-04-22 20:51:23,996 - [24593] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-04-22 20:51:24,675 - [24593] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 20:51:25,546 - [24593] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-22 20:51:26,215 - [24593] - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-04-22 20:51:26,883 - [24593] - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-04-22 20:51:27,543 - [24593] - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-04-22 20:51:28,198 - [24593] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'InProgress' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 24593;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 20:51:29,054 - [24593] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-04-22 20:51:29,723 - [24593] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (643622, 643623, 643624, 643625, 643626, 643627, 643628, 643629)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 20:51:30,423 - [24593] - src.utils.log - INFO - βœ… Fetched 8 rows - __SPLIT__ 2026-04-22 20:51:31,091 - [24593] - src.utils.log - INFO - Inside get_work_order_table - __SPLIT__ 2026-04-22 20:51:31,754 - [24593] - src.utils.log - INFO - πŸ” Fetching data: SELECT DISTINCT sss.ServiceSetupId, dm.DepartmentMasterId, bm.BranchMasterId FROM Common.DepartmentMaster dm JOIN Common.DivisionMaster d2 ON dm.DivisionMasterId = d2.DivisionMasterId JOIN Common.BranchMaster bm ON d2.BranchMasterId = bm.BranchMasterId JOIN ServiceCore.ServiceCategoryMaster c ON c.DepartmentId = dm.DepartmentMasterId JOIN ServiceCore.ServiceMaster sm ON c.CategoryId = sm.CategoryId JOIN ServiceCore.ServiceSetupServices sss ON sss.ServiceId = sm.ServiceMasterId WHERE dm.CompanyId = 133 AND d2.CompanyId = bm.CompanyId AND sss.ServiceSetupId in (65095, 66489, 65096, 65097, 66527, 25870, 32360, 32732) AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 20:51:32,457 - [24593] - src.utils.log - INFO - βœ… Fetched 8 rows - __SPLIT__ 2026-04-22 20:51:33,131 - [24593] - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceSetupId, dm.DepartmentMasterId, bm.BranchMasterId FROM Common.DepartmentMaster dm JOIN Common.DivisionMaster d2 ON dm.DivisionMasterId = d2.DivisionMasterId JOIN Common.BranchMaster bm ON d2.BranchMasterId = bm.BranchMasterId JOIN ServiceCore.SoldServiceNonStandard x on dm.DepartmentMasterId = x.DepartmentId JOIN ServiceCore.ServiceSetupServices sss ON sss.NonStdSoldServiceId = x.SoldServiceNonStandardId WHERE dm.CompanyId = 133 AND d2.CompanyId = bm.CompanyId AND sss.ServiceSetupId in (65095, 66489, 65096, 65097, 66527, 25870, 32360, 32732) AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 20:51:33,828 - [24593] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-22 20:51:34,497 - [24593] - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceSetupId, dm.DepartmentMasterId, bm.BranchMasterId FROM Common.DepartmentMaster dm Inner JOIN Common.DivisionMaster d2 ON dm.DivisionMasterId = d2.DivisionMasterId Inner JOIN Common.BranchMaster bm ON d2.BranchMasterId = bm.BranchMasterId Inner JOIN [ServiceCore].[ServiceCategoryMaster] scm ON dm.DepartmentMasterId = scm.DepartmentId Inner JOIN ServiceCore.ServiceMaster sm ON scm.CategoryId = sm.CategoryId Inner JOIN ServiceCore.SoldServiceStandard x on x.ServiceId = sm.ServiceMasterId Inner JOIN ServiceCore.ServiceSetupServices sss ON sss.StdSoldServiceId = x.SoldServiceStandardId WHERE dm.CompanyId = 133 AND d2.CompanyId = bm.CompanyId AND sss.ServiceSetupId in (65095, 66489, 65096, 65097, 66527, 25870, 32360, 32732) AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 20:51:35,205 - [24593] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-04-22 20:51:35,872 - [24593] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder,BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 20:51:36,852 - [24593] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-22 20:51:37,513 - [24593] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 133 AND EnitityNumberType in ('WorkOrder','Invoice'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 20:51:38,205 - [24593] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-04-22 20:51:38,864 - [24593] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder, BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 20:51:39,549 - [24593] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-22 20:51:40,212 - [24593] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 8 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 133 AND EnitityNumberType = 'WorkOrder'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 20:51:40,904 - [24593] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-22 20:51:41,587 - [24593] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 8 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 133 AND EnitityNumberType = 'Invoice'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 20:51:42,281 - [24593] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-22 20:51:42,941 - [24593] - src.utils.log - INFO - πŸ” Fetching data: SELECT ss.ServiceSetupId as SetupId, ss.FrequencyScheduleId as setup_frequency_schedule_id, ss.AccountNumber, ss.CompanyId, ss.BillingLocationId, ss.ServiceLocationId, ss.TaxSysName, ss.TermId, ss.TaxPercent, ss.PoNumber, ss.IsTaxExempt, ss.DisplayServiceAsSeparateLineItem, ss.GenerateInvoice, ss.IsGenerateInvoiceforInitalSetup, ss.IsGenerateInvoiceforInitalSetupBilling, ss.IsBilling, t.NetDueIn, ptm.PaymentType, ssb.* FROM ServiceCore.ServiceSetup ss LEFT JOIN ServiceCore.ServiceSetupBilling ssb ON ss.ServiceSetupId = ssb.ServiceSetupId LEFT JOIN Billing.PaymentTypeMaster ptm ON ptm.PaymentTypeMasterId = ssb.PaymentTypeMasterId left join Billing.Term t on ss.TermId = t.TermId WHERE ss.ServiceSetupId in (65095, 66489, 65096, 65097, 66527, 25870, 32360, 32732)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 20:51:43,633 - [24593] - src.utils.log - INFO - βœ… Fetched 8 rows - __SPLIT__ 2026-04-22 20:51:44,295 - [24593] - src.utils.log - INFO - πŸ” Fetching data: SELECT x.CompanyId FROM CRM.CompanyMaster x WHERE CompanyKey = 'abcdallas';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 20:51:44,979 - [24593] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-22 20:51:45,640 - [24593] - src.utils.log - INFO - πŸ” Fetching data: SELECT CollectionStatus,IsHold,AccountNo FROM CRM.Account a WHERE a.AccountNo in ('288270', '26581', '24372', '322923', '290305', '239314') and a.CompanyId = 121;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 20:51:46,336 - [24593] - src.utils.log - INFO - βœ… Fetched 6 rows - __SPLIT__ 2026-04-22 20:51:46,992 - [24593] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderNo FROM ServiceCore.WorkOrder WHERE WorkOrderNo IN ('478752', '478753', '478754', '478755', '478756', '478757', '478758', '478759') AND CompanyId = 133 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 20:51:47,684 - [24593] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-22 20:51:48,343 - [24593] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrder (skip triggers): 8 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 20:51:49,130 - [24593] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 8) into ServiceCore.WorkOrder (triggers skipped) - __SPLIT__ 2026-04-22 20:51:49,996 - [24593] - src.utils.log - INFO - βœ… All 8 rows inserted successfully into ServiceCore.WorkOrder in 1 batches (triggers skipped) - __SPLIT__ 2026-04-22 20:51:50,974 - [24593] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-04-22 20:51:51,644 - [24593] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkorderId, WorkOrderNo FROM ServiceCore.WorkOrder wo WHERE wo.WorkOrderNo IN ('478752', '478753', '478754', '478755', '478756', '478757', '478758', '478759') AND wo.AccountNumber IN ('24372', '26581', '322923', '239314', '288270', '290305') AND wo.CompanyId = 133 ... (Thread: ThreadPoolExecutor-27_0) - __SPLIT__ 2026-04-22 20:51:52,347 - [24593] - src.utils.log - INFO - βœ… Fetched 8 rows - __SPLIT__ 2026-04-22 20:51:53,014 - [24593] - src.utils.log - INFO - Sequential fetching temp table records - __SPLIT__ 2026-04-22 20:51:53,683 - [24593] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationServices woag WHERE woag.WorkOrderAutoGenerationId in (643622, 643623, 643624, 643625, 643626, 643627, 643628, 643629)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 20:51:54,402 - [24593] - src.utils.log - INFO - βœ… Fetched 10 rows - __SPLIT__ 2026-04-22 20:51:55,073 - [24593] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SubWorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (643622, 643623, 643624, 643625, 643626, 643627, 643628, 643629)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 20:51:55,802 - [24593] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-22 20:51:56,469 - [24593] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationCrews woag WHERE woag.WorkOrderAutoGenerationId in (643622, 643623, 643624, 643625, 643626, 643627, 643628, 643629)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 20:51:57,179 - [24593] - src.utils.log - INFO - βœ… Fetched 8 rows - __SPLIT__ 2026-04-22 20:51:57,849 - [24593] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationSalesPersonCommission woag WHERE woag.WorkOrderAutoGenerationId in (643622, 643623, 643624, 643625, 643626, 643627, 643628, 643629)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 20:51:58,539 - [24593] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-22 20:51:59,204 - [24593] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupAutoGenerationSourceMapping woag WHERE woag.WorkOrderAutoGenerationId in (643622, 643623, 643624, 643625, 643626, 643627, 643628, 643629)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 20:51:59,901 - [24593] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-22 20:52:00,568 - [24593] - src.utils.log - INFO - πŸ” Fetching data: SELECT DiscountType, DiscountCode, DiscountAmount, DiscountDescription, DiscountName, IsActive, CreatedBy, ModifiedBy, CreatedDate, ModifiedDate, DiscountPercent, IsDiscountPercent, AppliedDiscountAmt, ApplyOnPartPrice, ApplyOnLaborPrice, DiscountSetupId, WorkOrderAutoGenerationId from ServiceCore.WorkOrderAutoGenerationAppliedDiscount woag WHERE woag.WorkOrderAutoGenerationId in (643622, 643623, 643624, 643625, 643626, 643627, 643628, 643629)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 20:52:01,337 - [24593] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-22 20:52:02,007 - [24593] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from CRM.LeadNote woag WHERE woag.RefId in (643622, 643623, 643624, 643625, 643626, 643627, 643628, 643629) and woag.RefType = 'TempWorkorder';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 20:52:02,710 - [24593] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-22 20:52:03,379 - [24593] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment woagca WHERE woagca.WorkOrderAutoGenerationId in (643622, 643623, 643624, 643625, 643626, 643627, 643628, 643629);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 20:52:04,081 - [24593] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-22 20:52:05,050 - [24593] - src.utils.log - INFO - Updating temp tables - __SPLIT__ 2026-04-22 20:52:05,739 - [24593] - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyKey FROM Common.CompanyMaster cm WHERE CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 20:52:06,448 - [24593] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-22 20:52:07,124 - [24593] - src.utils.log - INFO - πŸ” Fetching data: Select DiscountSetupId, [SysName] as DiscountSysName from Common.DiscountSetupMaster WHERE DiscountSetupId = 919 AND CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 20:52:07,836 - [24593] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-22 20:52:08,516 - [24593] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 133 AND EnitityNumberType in ('SubWorkOrder'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 20:52:09,224 - [24593] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-22 20:52:09,902 - [24593] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-22 20:52:10,571 - [24593] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishHistory: 8 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 20:52:11,392 - [24593] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 8) into ServiceCore.WorkOrderAutoGenerationPublishHistory - __SPLIT__ 2026-04-22 20:52:12,219 - [24593] - src.utils.log - INFO - βœ… All 8 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishHistory in 1 batches - __SPLIT__ 2026-04-22 20:52:12,895 - [24593] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationPublishHistoryId, WorkOrderNo, ServiceSetupId FROM ServiceCore.WorkOrderAutoGenerationPublishHistory WHERE ServiceSetupId IN (65095, 66489, 65096, 65097, 66527, 25870, 32360, 32732) AND WorkOrderNo IN ('3871884', '4043876', '8146278', '1704045', '2226586', '1410252', '3741806', '3541729') AND GenerateWorkOrderHistoryId = 24593;... (Thread: ThreadPoolExecutor-28_0) - __SPLIT__ 2026-04-22 20:52:13,687 - [24593] - src.utils.log - INFO - βœ… Fetched 8 rows - __SPLIT__ 2026-04-22 20:52:14,366 - [24593] - src.utils.log - INFO - 🏁 Final merged rows: 8 - __SPLIT__ 2026-04-22 20:52:15,047 - [24593] - src.utils.log - INFO - Sequential Insertion in work order tables begin - __SPLIT__ 2026-04-22 20:52:15,719 - [24593] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-22 20:52:16,391 - [24593] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderServices: 10 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 20:52:17,129 - [24593] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 10) into ServiceCore.WorkOrderServices - __SPLIT__ 2026-04-22 20:52:17,952 - [24593] - src.utils.log - INFO - βœ… All 10 rows inserted successfully into ServiceCore.WorkOrderServices in 1 batches - __SPLIT__ 2026-04-22 20:52:18,629 - [24593] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-22 20:52:19,589 - [24593] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.WorkOrderAppliedDiscount: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 20:52:20,321 - [24593] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceAuto.WorkOrderAppliedDiscount - __SPLIT__ 2026-04-22 20:52:21,130 - [24593] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceAuto.WorkOrderAppliedDiscount in 1 batches - __SPLIT__ 2026-04-22 20:52:21,794 - [24593] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderSalesPersonCommission: - __SPLIT__ 2026-04-22 20:52:22,459 - [24593] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderCommissionAdjustment: - __SPLIT__ 2026-04-22 20:52:23,124 - [24593] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-22 20:52:23,784 - [24593] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderCrew: 8 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 20:52:24,521 - [24593] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 8) into ServiceCore.WorkOrderCrew - __SPLIT__ 2026-04-22 20:52:25,302 - [24593] - src.utils.log - INFO - βœ… All 8 rows inserted successfully into ServiceCore.WorkOrderCrew in 1 batches - __SPLIT__ 2026-04-22 20:52:25,970 - [24593] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkorderSourceMapping: - __SPLIT__ 2026-04-22 20:52:26,642 - [24593] - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-04-22 20:52:27,302 - [24593] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-22 20:52:27,966 - [24593] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishServices: 10 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 20:52:28,681 - [24593] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 10) into ServiceCore.WorkOrderAutoGenerationPublishServices - __SPLIT__ 2026-04-22 20:52:29,489 - [24593] - src.utils.log - INFO - βœ… All 10 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishServices in 1 batches - __SPLIT__ 2026-04-22 20:52:30,147 - [24593] - src.utils.log - INFO - πŸ” Fetching data: SELECT ss.ServiceSetupId as SetupId, ss.FrequencyScheduleId as setup_frequency_schedule_id, ss.AccountNumber, ss.CompanyId, ss.BillingLocationId, ss.ServiceLocationId, ss.TaxSysName, ss.TermId, ss.TaxPercent, ss.PoNumber, ss.IsTaxExempt, ss.DisplayServiceAsSeparateLineItem, ss.GenerateInvoice, ss.IsGenerateInvoiceforInitalSetup, ss.IsGenerateInvoiceforInitalSetupBilling, ss.IsBilling, t.NetDueIn, ptm.PaymentType, ssb.* FROM ServiceCore.ServiceSetup ss LEFT JOIN ServiceCore.ServiceSetupBilling ssb ON ss.ServiceSetupId = ssb.ServiceSetupId LEFT JOIN Billing.PaymentTypeMaster ptm ON ptm.PaymentTypeMasterId = ssb.PaymentTypeMasterId left join Billing.Term t on ss.TermId = t.TermId WHERE ss.ServiceSetupId in (65095, 66489, 65096, 65097, 66527, 25870, 32360, 32732)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 20:52:30,839 - [24593] - src.utils.log - INFO - βœ… Fetched 8 rows - __SPLIT__ 2026-04-22 20:52:31,506 - [24593] - src.utils.log - INFO - Size of Transaction: 6 - __SPLIT__ 2026-04-22 20:52:32,174 - [24593] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 6 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 20:52:32,904 - [24593] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 6) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-04-22 20:52:34,007 - [24593] - src.utils.log - INFO - βœ… All 6 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-04-22 20:52:34,692 - [24593] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-04-22 20:52:35,359 - [24593] - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionId, ModifiedBy, TransactionDate as InvoiceDate from Billing.[Transaction] t WHERE t.ModifiedBy in (12345678910, 12345678911, 12345678912, 12345678913, 12345678914, 12345678915) and t.CompanyId = 133 AND t.TransactionType ='Invoice' AND t.CreatedDate = '2026-04-22 16:52:31.502';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 20:52:36,835 - [24593] - src.utils.log - INFO - βœ… Fetched 6 rows - __SPLIT__ 2026-04-22 20:52:37,510 - [24593] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId in (25870, 32360, 32732, 65095, 65096, 65097, 66489, 66527);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 20:52:38,316 - [24593] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-22 20:52:38,996 - [24593] - src.utils.log - INFO - πŸ“ Executing: UPDATE Billing.[Transaction] SET ModifiedBy = NULL WHERE ModifiedBy IN (12345678910,12345678911,12345678912,12345678913,12345678914,12345678915) AND CreatedDate = '2026-04-22 16:52:31.502'; ... (Thread: ThreadPoolExecutor-29_0) - __SPLIT__ 2026-04-22 20:52:40,099 - [24593] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-04-22 20:52:40,777 - [24593] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-22 20:52:41,455 - [24593] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 6 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 20:52:42,189 - [24593] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 6) into Billing.Invoice - __SPLIT__ 2026-04-22 20:52:42,991 - [24593] - src.utils.log - INFO - βœ… All 6 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-04-22 20:52:43,673 - [24593] - src.utils.log - INFO - πŸ” Fetching data: SELECT InvoiceId, WorkOrderNo FROM Billing.Invoice i WHERE i.WorkOrderNo in ('478757', '478758', '478759', '478755', '478753', '478756')... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 20:52:44,786 - [24593] - src.utils.log - INFO - βœ… Fetched 6 rows - __SPLIT__ 2026-04-22 20:52:45,469 - [24593] - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceSetupId, sss.NonStdSoldServiceId as SoldServiceNonStandardId, sss.Qty as Quantity, sss.Price as Rate, sss.IsTaxable, sm.Name as NonStandardServiceName, sm.Description , sm.ServiceMasterId as ServiceId FROM ServiceCore.ServiceSetupServices sss join ServiceCore.ServiceMaster sm on sm.ServiceMasterId = sss.ServiceId where ServiceSetupId in (66489, 65097, 66527, 25870, 32360, 32732) and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 20:52:46,185 - [24593] - src.utils.log - INFO - βœ… Fetched 8 rows - __SPLIT__ 2026-04-22 20:52:46,855 - [24593] - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceSetupId, sss.NonStdSoldServiceId as SoldServiceNonStandardId, sss.Qty as Quantity, sss.Price as Rate, sss.IsTaxable, sm.Name as NonStandardServiceName, sm.Description , sm.ServiceMasterId as ServiceId FROM ServiceCore.ServiceSetupInitialServices sss join ServiceCore.ServiceMaster sm on sm.ServiceMasterId = sss.ServiceId where ServiceSetupId in (66489, 65097, 66527, 25870, 32360, 32732) and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 20:52:47,564 - [24593] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-04-22 20:52:48,235 - [24593] - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceSetupId, sss.NonStdSoldServiceId as SoldServiceNonStandardId, sss.Qty as Quantity, sss.Price as Rate, sss.IsTaxable, sm.servicename as NonStandardServiceName, sm.Description , sss.ServiceId FROM ServiceCore.ServiceSetupServices sss join ServiceCore.SoldServiceNonStandard sm on sm.SoldServiceNonStandardId = sss.NonStdSoldServiceId where ServiceSetupId in (66489, 65097, 66527, 25870, 32360, 32732) and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 20:52:48,936 - [24593] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-22 20:52:49,912 - [24593] - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceSetupId, sss.NonStdSoldServiceId as SoldServiceNonStandardId, sss.Qty as Quantity, sss.Price as Rate, sss.IsTaxable, sm.servicename as NonStandardServiceName, sm.Description , sss.ServiceId FROM ServiceCore.ServiceSetupInitialServices sss join ServiceCore.SoldServiceNonStandard sm on sm.SoldServiceNonStandardId = sss.NonStdSoldServiceId where ServiceSetupId in (66489, 65097, 66527, 25870, 32360, 32732) and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 20:52:50,624 - [24593] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-22 20:52:51,312 - [24593] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId in (66489, 65097, 66527, 25870, 32360, 32732);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 20:52:52,018 - [24593] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-22 20:52:52,701 - [24593] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId, AppliedDiscountAmt as AppliedDiscountAmount,IsActive ,ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId in (66489, 65097, 66527, 25870, 32360, 32732);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 20:52:53,415 - [24593] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-22 20:52:54,110 - [24593] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId,IsActive,DiscountAmount, IsDiscountPercent,DiscountPercent,DiscountDescription, ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId in (66489, 65097, 66527, 25870, 32360, 32732);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 20:52:54,829 - [24593] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-22 20:52:55,516 - [24593] - src.utils.log - INFO - Sequential Insertion in invoice tables begin - __SPLIT__ 2026-04-22 20:52:56,196 - [24593] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-22 20:52:56,871 - [24593] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.AccountDiscountSetup: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 20:52:57,606 - [24593] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into Billing.AccountDiscountSetup - __SPLIT__ 2026-04-22 20:52:58,394 - [24593] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into Billing.AccountDiscountSetup in 1 batches - __SPLIT__ 2026-04-22 20:52:59,071 - [24593] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-22 20:52:59,777 - [24593] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceCharges: 8 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 20:53:00,508 - [24593] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 8) into Billing.InvoiceCharges - __SPLIT__ 2026-04-22 20:53:01,351 - [24593] - src.utils.log - INFO - βœ… All 8 rows inserted successfully into Billing.InvoiceCharges in 1 batches - __SPLIT__ 2026-04-22 20:53:02,060 - [24593] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-22 20:53:02,736 - [24593] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.DiscountApplied: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 20:53:03,464 - [24593] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into Billing.DiscountApplied - __SPLIT__ 2026-04-22 20:53:04,552 - [24593] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into Billing.DiscountApplied in 1 batches - __SPLIT__ 2026-04-22 20:53:05,253 - [24593] - src.utils.log - INFO - Invoice Publish Done - __SPLIT__ 2026-04-22 20:53:05,925 - [24593] - src.utils.log - INFO - Updating Next GenerationDate - __SPLIT__ 2026-04-22 20:53:06,595 - [24593] - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, MAX(NextWorkOrderGenerationDate) AS MaxNextWorkOrderGeneration FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 24593 GROUP BY ServiceSetupId; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 20:53:07,304 - [24593] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-22 20:53:07,980 - [24593] - src.utils.log - INFO - πŸ”„ Updating next gen date sequentially: inside update_next_workorder_generation - __SPLIT__ 2026-04-22 20:53:08,675 - [24593] - src.utils.log - INFO - πŸ›  Creating temp table #tbl_bb5d836b00 - __SPLIT__ 2026-04-22 20:53:09,372 - [24593] - src.utils.log - INFO - πŸ“Œ Bulk inserting 8 rows into #tbl_bb5d836b00 - __SPLIT__ 2026-04-22 20:53:10,165 - [24593] - src.utils.log - INFO - πŸ” Running MERGE update to apply changes - __SPLIT__ 2026-04-22 20:53:10,862 - [24593] - src.utils.log - INFO - βœ” SQL reported affected rows: 8 - __SPLIT__ 2026-04-22 20:53:11,557 - [24593] - src.utils.log - INFO - πŸ” Verified successfully updated 8 rows via #tbl_bb5d836b00 - __SPLIT__ 2026-04-22 20:53:12,247 - [24593] - src.utils.log - INFO - πŸŽ‰ Successfully updated NextGenerationDate using temp table #tbl_bb5d836b00 - __SPLIT__ 2026-04-22 20:53:12,915 - [24593] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 24593 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 20:53:13,620 - [24593] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-22 20:53:14,296 - [24593] - src.utils.log - INFO - Sequential deletion from temp tables begin - __SPLIT__ 2026-04-22 20:53:14,970 - [24593] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId in (643622, 643623, 643624, 643625, 643626, 643627, 643628, 643629) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 20:53:15,704 - [24593] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-22 20:53:16,382 - [24593] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId in (643622, 643623, 643624, 643625, 643626, 643627, 643628, 643629) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 20:53:17,093 - [24593] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-22 20:53:17,769 - [24593] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId in (643622, 643623, 643624, 643625, 643626, 643627, 643628, 643629) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 20:53:18,743 - [24593] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-22 20:53:19,410 - [24593] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId in (643622, 643623, 643624, 643625, 643626, 643627, 643628, 643629) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 20:53:20,167 - [24593] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-22 20:53:20,833 - [24593] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId in (643622, 643623, 643624, 643625, 643626, 643627, 643628, 643629) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 20:53:21,548 - [24593] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-22 20:53:22,214 - [24593] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (643622, 643623, 643624, 643625, 643626, 643627, 643628, 643629) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 20:53:22,907 - [24593] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-22 20:53:23,567 - [24593] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId in (643622, 643623, 643624, 643625, 643626, 643627, 643628, 643629) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 20:53:24,246 - [24593] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-22 20:53:24,919 - [24593] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (643622, 643623, 643624, 643625, 643626, 643627, 643628, 643629) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 20:53:25,652 - [24593] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-22 20:53:26,315 - [24593] - src.utils.log - INFO - Work order published ids: (643622, 643623, 643624, 643625, 643626, 643627, 643628, 643629) - __SPLIT__ 2026-04-22 20:53:26,976 - [24593] - src.utils.log - INFO - Time took to perform operation in publishing [24593]: 122.98 - __SPLIT__ 2026-04-22 20:53:27,629 - [24593] - src.utils.log - INFO - Publish Completed for GenerateWorkOrderHistoryId: [24593] - __SPLIT__ 2026-04-22 20:53:28,290 - [24593] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-04-22 16:53:26.315' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 24593;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-22 20:53:28,984 - [24593] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__