2026-02-03 11:51:56,643 - 55880 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=55880 - __SPLIT__ 2026-02-03 11:51:59,696 - 55880 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 55880 - __SPLIT__ 2026-02-03 11:51:59,697 - 55880 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-02-03 11:51:59,697 - 55880 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Samsung'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-03 11:51:59,911 - 55880 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-03 11:51:59,912 - 55880 - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-02-03 11:51:59,912 - 55880 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 55880;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-03 11:51:59,946 - 55880 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-02-03 11:51:59,946 - 55880 - 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 = 55880), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 55880), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 55880 AND ss.FrequencyScheduleId IS NOT NULL AND ss.IsActive = 1 AND ss.IsDeleted = 0 AND ss.Status <> 'Canceled';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-03 11:52:00,076 - 55880 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-03 11:52:00,076 - 55880 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 55880;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-03 11:52:00,103 - 55880 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-03 11:52:00,105 - 55880 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-02-03 11:52:00,105 - 55880 - 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 = 14822... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-03 11:52:00,147 - 55880 - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-02-03 11:52:00,147 - 55880 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-02-03 11:52:00,150 - 55880 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-02-03 11:52:00,151 - 55880 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 95346;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-03 11:52:00,178 - 55880 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-03 11:52:00,178 - 55880 - src.utils.log - INFO - πŸ” Fetching data: select ServiceDate, ServiceSetupId from serviceCore.WorkOrder wo inner join ServiceCore.WorkOrderStatus wos on wo.WoStatusId = wos.WoStatusId where ServiceDate >= '2026-02-03 00:00:00' and ServiceDate <= '2027-12-31 00:00:00' and ServiceSetupId = 95346 and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-03 11:52:00,221 - 55880 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-03 11:52:00,294 - 55880 - src.utils.log - INFO - Generating work orders for setup: 95346 - __SPLIT__ 2026-02-03 11:52:00,319 - 55880 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 11338;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-03 11:52:00,348 - 55880 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-03 11:52:00,385 - 55880 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-02-03 11:52:00,390 - 55880 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=145 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-03 11:52:00,417 - 55880 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-03 11:52:00,419 - 55880 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-02-03 11:52:00,420 - 55880 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-02-03 11:52:00,420 - 55880 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 95346 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-03 11:52:00,629 - 55880 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-03 11:52:00,629 - 55880 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 95346 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-03 11:52:00,726 - 55880 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-03 11:52:00,726 - 55880 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 95346 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-03 11:52:00,797 - 55880 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-03 11:52:00,797 - 55880 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 95346 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-03 11:52:00,868 - 55880 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-03 11:52:00,869 - 55880 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 95346 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-03 11:52:01,037 - 55880 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-03 11:52:01,037 - 55880 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 95346 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-03 11:52:01,206 - 55880 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-03 11:52:01,206 - 55880 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 95346 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-03 11:52:01,244 - 55880 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-03 11:52:01,244 - 55880 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 95346 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-03 11:52:01,971 - 55880 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-03 11:52:01,971 - 55880 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 4 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-03 11:52:02,063 - 55880 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 4) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-02-03 11:52:02,255 - 55880 - src.utils.log - INFO - βœ… All 4 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-02-03 11:52:02,255 - 55880 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 4 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-01-29 16:32:33.296' and ServiceSetupId = 95346... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-03 11:52:02,326 - 55880 - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-02-03 11:52:02,327 - 55880 - src.utils.log - INFO - Id's of work order inserted to DB: [472916 472917 472918 472919] - __SPLIT__ 2026-02-03 11:52:02,327 - 55880 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 95346;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-03 11:52:02,351 - 55880 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-03 11:52:02,352 - 55880 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-02-03 11:52:02,352 - 55880 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId = 95346... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-03 11:52:02,379 - 55880 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-03 11:52:02,379 - 55880 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId = 95346... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-03 11:52:02,408 - 55880 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-03 11:52:02,411 - 55880 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId = 95346... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-03 11:52:02,446 - 55880 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-03 11:52:02,447 - 55880 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId = 95346... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-03 11:52:02,471 - 55880 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-03 11:52:02,471 - 55880 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId = 95346... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-03 11:52:02,505 - 55880 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-03 11:52:02,505 - 55880 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId = 95346;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-03 11:52:02,535 - 55880 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-03 11:52:02,535 - 55880 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId = 95346;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-03 11:52:02,564 - 55880 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-03 11:52:02,565 - 55880 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId = 95346;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-03 11:52:03,259 - 55880 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-03 11:52:03,259 - 55880 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId = 95346;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-03 11:52:03,282 - 55880 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-03 11:52:03,291 - 55880 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-02-03 11:52:03,292 - 55880 - src.utils.log - INFO - πŸ“₯ Inserting into CRM.LeadNote: 0 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-03 11:52:03,329 - 55880 - src.utils.log - INFO - βœ… All 0 rows inserted successfully into CRM.LeadNote in 0 batches - __SPLIT__ 2026-02-03 11:52:03,329 - 55880 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-02-03 11:52:03,329 - 55880 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.CommunicationPreferencesServiceReportNotification: 0 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-03 11:52:03,368 - 55880 - src.utils.log - INFO - βœ… All 0 rows inserted successfully into ServiceCore.CommunicationPreferencesServiceReportNotification in 0 batches - __SPLIT__ 2026-02-03 11:52:03,368 - 55880 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-02-03 11:52:03,368 - 55880 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.SetupAutoGenerationSourceMapping: 4 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-03 11:52:03,409 - 55880 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 4) into ServiceCore.SetupAutoGenerationSourceMapping - __SPLIT__ 2026-02-03 11:52:03,478 - 55880 - src.utils.log - INFO - βœ… All 4 rows inserted successfully into ServiceCore.SetupAutoGenerationSourceMapping in 1 batches - __SPLIT__ 2026-02-03 11:52:03,478 - 55880 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-02-03 11:52:03,478 - 55880 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationAppliedDiscount: 0 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-03 11:52:03,515 - 55880 - src.utils.log - INFO - βœ… All 0 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationAppliedDiscount in 0 batches - __SPLIT__ 2026-02-03 11:52:03,515 - 55880 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-02-03 11:52:03,515 - 55880 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.SubWorkOrderAutoGeneration: 0 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-03 11:52:03,558 - 55880 - src.utils.log - INFO - βœ… All 0 rows inserted successfully into ServiceCore.SubWorkOrderAutoGeneration in 0 batches - __SPLIT__ 2026-02-03 11:52:03,558 - 55880 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-02-03 11:52:03,558 - 55880 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: 0 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-03 11:52:03,594 - 55880 - src.utils.log - INFO - βœ… All 0 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationCommissionAdjustment in 0 batches - __SPLIT__ 2026-02-03 11:52:03,594 - 55880 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-02-03 11:52:03,594 - 55880 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: 0 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-03 11:52:03,630 - 55880 - src.utils.log - INFO - βœ… All 0 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationSalesPersonCommission in 0 batches - __SPLIT__ 2026-02-03 11:52:03,631 - 55880 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-02-03 11:52:03,631 - 55880 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationCrews: 4 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-03 11:52:03,670 - 55880 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 4) into ServiceCore.WorkOrderAutoGenerationCrews - __SPLIT__ 2026-02-03 11:52:03,758 - 55880 - src.utils.log - INFO - βœ… All 4 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationCrews in 1 batches - __SPLIT__ 2026-02-03 11:52:03,759 - 55880 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-02-03 11:52:03,759 - 55880 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 0 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-03 11:52:03,796 - 55880 - src.utils.log - INFO - βœ… All 0 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 0 batches - __SPLIT__ 2026-02-03 11:52:03,797 - 55880 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-02-03 11:52:03,797 - 55880 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 4 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-03 11:52:03,825 - 55880 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 4) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-02-03 11:52:03,914 - 55880 - src.utils.log - INFO - βœ… All 4 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-02-03 11:52:03,915 - 55880 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-02-03 11:52:03,915 - 55880 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 55880;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-03 11:52:03,936 - 55880 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-02-03 11:52:03,936 - 55880 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-02-03 11:52:03,936 - 55880 - src.utils.log - INFO - Time took to perform operation: 4.24 - __SPLIT__ 2026-02-03 11:52:03,936 - 55880 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 55880;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-03 11:52:03,957 - 55880 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-02-03 11:52:03,957 - 55880 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET WorkOrderStatusDateTime = '2026-02-03 06:52:03.957' WHERE GenerateWorkOrderHistoryId = 55880;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-03 11:52:03,979 - 55880 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-02-09 07:36:49,365 - [55888] - src.utils.log - INFO - ParallelProcessing=True temp_wo=[473054, 473055, 473056, 473057] user_id=44506 company_id=146 project_id=[55888] publish_all=False - __SPLIT__ 2026-02-09 07:36:51,258 - [55888] - src.utils.log - INFO - ParallelProcessing=True temp_wo=[473054, 473055, 473056, 473057] user_id=44506 company_id=146 project_id=[55888] publish_all=False - __SPLIT__ 2026-02-09 07:36:51,916 - [55888] - src.utils.log - INFO - Parallel Work order publish in progress for GenerateWorkOrderHistoryId: [55888] - __SPLIT__ 2026-02-09 07:36:52,589 - [55888] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-02-09 07:36:53,242 - [55888] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 07:36:54,127 - [55888] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-09 07:36:54,781 - [55888] - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-02-09 07:36:55,442 - [55888] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'InProgress' WHERE CompanyId = 146 AND GenerateWorkOrderHistoryId = 55888;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 07:36:56,124 - [55888] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-02-09 07:36:56,784 - [55888] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (473054, 473055, 473056, 473057)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 07:36:57,471 - [55888] - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-02-09 07:36:58,127 - [55888] - src.utils.log - INFO - Inside get_work_order_table - __SPLIT__ 2026-02-09 07:36:58,782 - [55888] - 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 = 95364 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 07:36:59,468 - [55888] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-09 07:37:00,124 - [55888] - 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 = 95364 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 07:37:00,807 - [55888] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-09 07:37:01,461 - [55888] - 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 = 95364 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 07:37:02,147 - [55888] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-09 07:37:02,806 - [55888] - 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-02-09 07:37:03,490 - [55888] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-02-09 07:37:04,450 - [55888] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder,BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 146;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 07:37:05,156 - [55888] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-09 07:37:05,829 - [55888] - src.utils.log - INFO - πŸ“ Executing: UPDATE Common.GenerateNumberConfig SET NextNumber = '20089' WHERE CompanyId = 146 AND EnitityNumberType in ('WorkOrder');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 07:37:06,532 - [55888] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-02-09 07:37:07,207 - [55888] - src.utils.log - INFO - πŸ“ Executing: UPDATE Common.GenerateNumberConfig SET NextNumber = '23531' WHERE CompanyId = 146 AND EnitityNumberType in ('Invoice');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 07:37:07,904 - [55888] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-02-09 07:37:08,585 - [55888] - 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 = 95364... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 07:37:09,288 - [55888] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-09 07:37:09,967 - [55888] - src.utils.log - INFO - Size of Transaction: 4 - __SPLIT__ 2026-02-09 07:37:10,641 - [55888] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 4 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 07:37:11,376 - [55888] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 4) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-02-09 07:37:12,155 - [55888] - src.utils.log - INFO - βœ… All 4 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-02-09 07:37:12,843 - [55888] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-02-09 07:37:13,519 - [55888] - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionId, ModifiedBy, TransactionDate as InvoiceDate from Billing.[Transaction] t WHERE t.ModifiedBy in (12345678910, 12345678911, 12345678912, 12345678913) and t.CompanyId = 146 AND t.TransactionType ='Invoice' AND t.CreatedDate = '2026-02-09 02:37:09.962';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 07:37:14,310 - [55888] - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-02-09 07:37:14,988 - [55888] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 95364;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 07:37:15,689 - [55888] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-09 07:37:16,367 - [55888] - src.utils.log - INFO - πŸ“ Executing: UPDATE Billing.[Transaction] SET ModifiedBy = NULL WHERE ModifiedBy IN (12345678910,12345678911,12345678912,12345678913) AND CreatedDate = '2026-02-09 02:37:09.962'; ... (Thread: ThreadPoolExecutor-0_0) - __SPLIT__ 2026-02-09 07:37:17,239 - [55888] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-02-09 07:37:17,920 - [55888] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 4 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 07:37:18,941 - [55888] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 4) into Billing.Invoice - __SPLIT__ 2026-02-09 07:37:19,723 - [55888] - src.utils.log - INFO - βœ… All 4 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-02-09 07:37:20,424 - [55888] - src.utils.log - INFO - πŸ” Fetching data: SELECT InvoiceId, WorkOrderNo FROM Billing.Invoice i WHERE i.WorkOrderNo in ('20088', '20087', '20086', '20085')... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 07:37:21,204 - [55888] - src.utils.log - INFO - βœ… Fetched 8 rows - __SPLIT__ 2026-02-09 07:37:21,895 - [55888] - 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 = 95364 and sm.IsActive =1 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 07:37:22,612 - [55888] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-02-09 07:37:23,295 - [55888] - 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 = 95364 and sm.IsActive =1 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 07:37:24,011 - [55888] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-09 07:37:24,706 - [55888] - 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 = 95364 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 07:37:25,411 - [55888] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-09 07:37:26,096 - [55888] - 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 = 95364 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 07:37:26,806 - [55888] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-09 07:37:27,499 - [55888] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 95364;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 07:37:28,203 - [55888] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-09 07:37:28,890 - [55888] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId, AppliedDiscountAmt as AppliedDiscountAmount,IsActive ,ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 95364;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 07:37:29,602 - [55888] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-09 07:37:30,294 - [55888] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId,IsActive,DiscountAmount, IsDiscountPercent,DiscountPercent,DiscountDescription , ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 95364;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 07:37:31,008 - [55888] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-09 07:37:31,695 - [55888] - src.utils.log - INFO - Parallel Insertion in invoice tables begin - __SPLIT__ 2026-02-09 07:37:32,379 - [55888] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.AccountDiscountSetup: 8 rows in batches of 25000 (Thread: ThreadPoolExecutor-1_0) - __SPLIT__ 2026-02-09 07:37:32,379 - [55888] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceCharges: 16 rows in batches of 25000 (Thread: ThreadPoolExecutor-1_1) - __SPLIT__ 2026-02-09 07:37:32,379 - [55888] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.DiscountApplied: 8 rows in batches of 25000 (Thread: ThreadPoolExecutor-1_2) - __SPLIT__ 2026-02-09 07:37:33,401 - [55888] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 8) into Billing.AccountDiscountSetup - __SPLIT__ 2026-02-09 07:37:34,131 - [55888] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 16) into Billing.InvoiceCharges - __SPLIT__ 2026-02-09 07:37:34,800 - [55888] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 8) into Billing.DiscountApplied - __SPLIT__ 2026-02-09 07:37:35,466 - [55888] - src.utils.log - INFO - βœ… All 8 rows inserted successfully into Billing.AccountDiscountSetup in 1 batches - __SPLIT__ 2026-02-09 07:37:36,296 - [55888] - src.utils.log - INFO - βœ… All 16 rows inserted successfully into Billing.InvoiceCharges in 1 batches - __SPLIT__ 2026-02-09 07:37:36,819 - [55888] - src.utils.log - INFO - βœ… All 8 rows inserted successfully into Billing.DiscountApplied in 1 batches - __SPLIT__ 2026-02-09 07:37:37,406 - [55888] - src.utils.log - INFO - Insert success for table: Billing.AccountDiscountSetup - __SPLIT__ 2026-02-09 07:37:39,418 - [55888] - src.utils.log - INFO - Insert success for table: Billing.InvoiceCharges - __SPLIT__ 2026-02-09 07:37:40,084 - [55888] - src.utils.log - INFO - Insert success for table: Billing.DiscountApplied - __SPLIT__ 2026-02-09 07:37:40,762 - [55888] - src.utils.log - INFO - Invoice Publish Done - __SPLIT__ 2026-02-09 07:37:41,431 - [55888] - src.utils.log - INFO - πŸ” Fetching data: SELECT x.CompanyId FROM CRM.CompanyMaster x WHERE CompanyKey = 'Fortive';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 07:37:42,126 - [55888] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-09 07:37:42,796 - [55888] - src.utils.log - INFO - πŸ” Fetching data: SELECT CollectionStatus,IsHold,AccountNo FROM CRM.Account a WHERE a.AccountNo = '1144' and a.CompanyId = 134;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 07:37:43,489 - [55888] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-09 07:37:44,156 - [55888] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrder (skip triggers): 4 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 07:37:45,045 - [55888] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 4) into ServiceCore.WorkOrder (triggers skipped) - __SPLIT__ 2026-02-09 07:37:45,853 - [55888] - src.utils.log - INFO - βœ… All 4 rows inserted successfully into ServiceCore.WorkOrder in 1 batches (triggers skipped) - __SPLIT__ 2026-02-09 07:37:46,533 - [55888] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-02-09 07:37:47,497 - [55888] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkorderId, WorkOrderNo FROM ServiceCore.WorkOrder wo WHERE wo.WorkOrderNo IN ('20085', '20086', '20087', '20088') AND wo.AccountNumber = '1144' AND wo.CompanyId = 146 ... (Thread: ThreadPoolExecutor-2_0) - __SPLIT__ 2026-02-09 07:37:48,202 - [55888] - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-02-09 07:37:48,880 - [55888] - src.utils.log - INFO - Parallel fetching temp table records - __SPLIT__ 2026-02-09 07:37:49,546 - [55888] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationServices woag WHERE woag.WorkOrderAutoGenerationId in (473054, 473055, 473056, 473057)... (Thread: ThreadPoolExecutor-3_0) - __SPLIT__ 2026-02-09 07:37:49,547 - [55888] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SubWorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (473054, 473055, 473056, 473057)... (Thread: ThreadPoolExecutor-3_1) - __SPLIT__ 2026-02-09 07:37:49,547 - [55888] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationCrews woag WHERE woag.WorkOrderAutoGenerationId in (473054, 473055, 473056, 473057)... (Thread: ThreadPoolExecutor-3_2) - __SPLIT__ 2026-02-09 07:37:49,549 - [55888] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationSalesPersonCommission woag WHERE woag.WorkOrderAutoGenerationId in (473054, 473055, 473056, 473057)... (Thread: ThreadPoolExecutor-3_3) - __SPLIT__ 2026-02-09 07:37:49,549 - [55888] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupAutoGenerationSourceMapping woag WHERE woag.WorkOrderAutoGenerationId in (473054, 473055, 473056, 473057)... (Thread: ThreadPoolExecutor-3_4) - __SPLIT__ 2026-02-09 07:37:49,550 - [55888] - 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 (473054, 473055, 473056, 473057)... (Thread: ThreadPoolExecutor-3_5) - __SPLIT__ 2026-02-09 07:37:49,550 - [55888] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from CRM.LeadNote woag WHERE woag.RefId in (473054, 473055, 473056, 473057) and woag.RefType = 'TempWorkorder';... (Thread: ThreadPoolExecutor-3_6) - __SPLIT__ 2026-02-09 07:37:49,550 - [55888] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment woagca WHERE woagca.WorkOrderAutoGenerationId in (473054, 473055, 473056, 473057);... (Thread: ThreadPoolExecutor-3_7) - __SPLIT__ 2026-02-09 07:37:50,249 - [55888] - src.utils.log - INFO - βœ… Fetched 8 rows - __SPLIT__ 2026-02-09 07:37:51,198 - [55888] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-09 07:37:51,586 - [55888] - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-02-09 07:37:52,322 - [55888] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-09 07:37:53,017 - [55888] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-09 07:37:53,670 - [55888] - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-02-09 07:37:54,333 - [55888] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-09 07:37:55,003 - [55888] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-09 07:38:00,291 - [55888] - src.utils.log - INFO - Updating temp tables - __SPLIT__ 2026-02-09 07:38:01,256 - [55888] - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyKey FROM Common.CompanyMaster cm WHERE CompanyId = 146;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 07:38:01,939 - [55888] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-09 07:38:02,612 - [55888] - src.utils.log - INFO - πŸ” Fetching data: Select DiscountSetupId, [SysName] as DiscountSysName from Common.DiscountSetupMaster WHERE DiscountSetupId = 337 AND CompanyId = 146 AND IsActive = 1;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 07:38:03,295 - [55888] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-09 07:38:03,956 - [55888] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 146 AND EnitityNumberType in ('SubWorkOrder'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 07:38:04,642 - [55888] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-09 07:38:05,307 - [55888] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishHistory: 4 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 07:38:06,029 - [55888] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 4) into ServiceCore.WorkOrderAutoGenerationPublishHistory - __SPLIT__ 2026-02-09 07:38:06,823 - [55888] - src.utils.log - INFO - βœ… All 4 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishHistory in 1 batches - __SPLIT__ 2026-02-09 07:38:07,494 - [55888] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationPublishHistoryId, WorkOrderNo, ServiceSetupId FROM ServiceCore.WorkOrderAutoGenerationPublishHistory WHERE ServiceSetupId = 95364 AND WorkOrderNo IN ('7867139', '2745141', '2211321', '4824930') AND GenerateWorkOrderHistoryId = 55888;... (Thread: ThreadPoolExecutor-4_0) - __SPLIT__ 2026-02-09 07:38:08,218 - [55888] - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-02-09 07:38:08,883 - [55888] - src.utils.log - INFO - 🏁 Final merged rows: 4 - __SPLIT__ 2026-02-09 07:38:09,546 - [55888] - src.utils.log - INFO - Parallel Insertion in work order tables begin - __SPLIT__ 2026-02-09 07:38:10,208 - [55888] - src.utils.log - INFO - πŸ“₯ Inserting into CRM.LeadNote: 0 rows in batches of 25000 (Thread: ThreadPoolExecutor-5_0) - __SPLIT__ 2026-02-09 07:38:10,210 - [55888] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.WorkOrderAppliedDiscount: 4 rows in batches of 25000 (Thread: ThreadPoolExecutor-5_1) - __SPLIT__ 2026-02-09 07:38:10,210 - [55888] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderSalesPersonCommission: 0 rows in batches of 25000 (Thread: ThreadPoolExecutor-5_2) - __SPLIT__ 2026-02-09 07:38:10,210 - [55888] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.WorkOrderCommissionAdjustment: 0 rows in batches of 25000 (Thread: ThreadPoolExecutor-5_3) - __SPLIT__ 2026-02-09 07:38:10,212 - [55888] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderServices: 8 rows in batches of 25000 (Thread: ThreadPoolExecutor-5_4) - __SPLIT__ 2026-02-09 07:38:10,212 - [55888] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.SubWorkOrder: 0 rows in batches of 25000 (Thread: ThreadPoolExecutor-5_5) - __SPLIT__ 2026-02-09 07:38:10,213 - [55888] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderCrew: 4 rows in batches of 25000 (Thread: ThreadPoolExecutor-5_6) - __SPLIT__ 2026-02-09 07:38:10,213 - [55888] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkorderSourceMapping: 0 rows in batches of 25000 (Thread: ThreadPoolExecutor-5_7) - __SPLIT__ 2026-02-09 07:38:10,213 - [55888] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishServices: 8 rows in batches of 25000 (Thread: ThreadPoolExecutor-5_8) - __SPLIT__ 2026-02-09 07:38:10,903 - [55888] - src.utils.log - INFO - βœ… All 0 rows inserted successfully into CRM.LeadNote in 0 batches - __SPLIT__ 2026-02-09 07:38:11,593 - [55888] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 4) into ServiceAuto.WorkOrderAppliedDiscount - __SPLIT__ 2026-02-09 07:38:12,254 - [55888] - src.utils.log - INFO - βœ… All 0 rows inserted successfully into ServiceCore.WorkOrderSalesPersonCommission in 0 batches - __SPLIT__ 2026-02-09 07:38:12,912 - [55888] - src.utils.log - INFO - βœ… All 0 rows inserted successfully into ServiceAuto.WorkOrderCommissionAdjustment in 0 batches - __SPLIT__ 2026-02-09 07:38:13,584 - [55888] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 8) into ServiceCore.WorkOrderServices - __SPLIT__ 2026-02-09 07:38:14,250 - [55888] - src.utils.log - INFO - βœ… All 0 rows inserted successfully into ServiceCore.SubWorkOrder in 0 batches - __SPLIT__ 2026-02-09 07:38:15,208 - [55888] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 4) into ServiceCore.WorkOrderCrew - __SPLIT__ 2026-02-09 07:38:15,883 - [55888] - src.utils.log - INFO - βœ… All 0 rows inserted successfully into ServiceCore.WorkorderSourceMapping in 0 batches - __SPLIT__ 2026-02-09 07:38:16,620 - [55888] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 8) into ServiceCore.WorkOrderAutoGenerationPublishServices - __SPLIT__ 2026-02-09 07:38:17,156 - [55888] - src.utils.log - INFO - [OK] Lead Notes completed. - __SPLIT__ 2026-02-09 07:38:17,930 - [55888] - src.utils.log - INFO - βœ… All 4 rows inserted successfully into ServiceAuto.WorkOrderAppliedDiscount in 1 batches - __SPLIT__ 2026-02-09 07:38:19,969 - [55888] - src.utils.log - INFO - βœ… All 8 rows inserted successfully into ServiceCore.WorkOrderServices in 1 batches - __SPLIT__ 2026-02-09 07:38:21,221 - [55888] - src.utils.log - INFO - βœ… All 4 rows inserted successfully into ServiceCore.WorkOrderCrew in 1 batches - __SPLIT__ 2026-02-09 07:38:22,552 - [55888] - src.utils.log - INFO - βœ… All 8 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishServices in 1 batches - __SPLIT__ 2026-02-09 07:38:23,112 - [55888] - src.utils.log - INFO - [OK] Sales Person Commission completed. - __SPLIT__ 2026-02-09 07:38:26,421 - [55888] - src.utils.log - INFO - [OK] Adjustment completed. - __SPLIT__ 2026-02-09 07:38:27,091 - [55888] - src.utils.log - INFO - [OK] Sub WO completed. - __SPLIT__ 2026-02-09 07:38:27,749 - [55888] - src.utils.log - INFO - [OK] Source Mapping completed. - __SPLIT__ 2026-02-09 07:38:28,710 - [55888] - src.utils.log - INFO - [OK] Discount Applied completed. - __SPLIT__ 2026-02-09 07:38:29,384 - [55888] - src.utils.log - INFO - [OK] Services completed. - __SPLIT__ 2026-02-09 07:38:30,058 - [55888] - src.utils.log - INFO - [OK] Crew completed. - __SPLIT__ 2026-02-09 07:38:30,734 - [55888] - src.utils.log - INFO - [OK] Publish Services completed. - __SPLIT__ 2026-02-09 07:38:31,407 - [55888] - src.utils.log - INFO - All publish tasks completed successfully. - __SPLIT__ 2026-02-09 07:38:32,076 - [55888] - src.utils.log - INFO - Updating Next GenerationDate - __SPLIT__ 2026-02-09 07:38:32,748 - [55888] - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, MAX(NextWorkOrderGenerationDate) AS MaxNextWorkOrderGeneration FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 55888 GROUP BY ServiceSetupId; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 07:38:33,449 - [55888] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-09 07:38:34,126 - [55888] - src.utils.log - INFO - πŸ”„ Updating next gen date parallely: inside update_next_workorder_generation - __SPLIT__ 2026-02-09 07:38:34,819 - [55888] - src.utils.log - INFO - πŸ›  Creating temp table #tbl_aa167a58e0 - __SPLIT__ 2026-02-09 07:38:35,506 - [55888] - src.utils.log - INFO - πŸ“Œ Bulk inserting 1 rows into #tbl_aa167a58e0 - __SPLIT__ 2026-02-09 07:38:36,236 - [55888] - src.utils.log - INFO - πŸ” Running UPDATE to apply changes - __SPLIT__ 2026-02-09 07:38:36,938 - [55888] - src.utils.log - INFO - βœ” SQL reported affected rows: 1 - __SPLIT__ 2026-02-09 07:38:37,618 - [55888] - src.utils.log - INFO - πŸŽ‰ Successfully updated NextGenerationDate using temp table #tbl_aa167a58e0 - __SPLIT__ 2026-02-09 07:38:38,298 - [55888] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 55888 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 07:38:38,995 - [55888] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-09 07:38:39,665 - [55888] - src.utils.log - INFO - Parallel deletion from temp tables begin - __SPLIT__ 2026-02-09 07:38:40,341 - [55888] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId in (473054, 473055, 473056, 473057) (Thread: ThreadPoolExecutor-7_0) - __SPLIT__ 2026-02-09 07:38:40,341 - [55888] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId in (473054, 473055, 473056, 473057) (Thread: ThreadPoolExecutor-7_1) - __SPLIT__ 2026-02-09 07:38:40,341 - [55888] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId in (473054, 473055, 473056, 473057) (Thread: ThreadPoolExecutor-7_2) - __SPLIT__ 2026-02-09 07:38:40,342 - [55888] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId in (473054, 473055, 473056, 473057) (Thread: ThreadPoolExecutor-7_3) - __SPLIT__ 2026-02-09 07:38:40,343 - [55888] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId in (473054, 473055, 473056, 473057) (Thread: ThreadPoolExecutor-7_4) - __SPLIT__ 2026-02-09 07:38:40,344 - [55888] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (473054, 473055, 473056, 473057) (Thread: ThreadPoolExecutor-7_5) - __SPLIT__ 2026-02-09 07:38:40,345 - [55888] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId in (473054, 473055, 473056, 473057) (Thread: ThreadPoolExecutor-7_6) - __SPLIT__ 2026-02-09 07:38:41,075 - [55888] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-09 07:38:41,733 - [55888] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-09 07:38:42,678 - [55888] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-09 07:38:43,358 - [55888] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-09 07:38:44,042 - [55888] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-09 07:38:44,748 - [55888] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-09 07:38:45,396 - [55888] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-09 07:38:46,052 - [55888] - src.utils.log - INFO - [OK] Deleted from Services - __SPLIT__ 2026-02-09 07:38:50,795 - [55888] - src.utils.log - INFO - [OK] Deleted from Crews - __SPLIT__ 2026-02-09 07:38:51,470 - [55888] - src.utils.log - INFO - [OK] Deleted from SalesPersonCommission - __SPLIT__ 2026-02-09 07:38:52,157 - [55888] - src.utils.log - INFO - [OK] Deleted from AppliedDiscount - __SPLIT__ 2026-02-09 07:38:52,837 - [55888] - src.utils.log - INFO - [OK] Deleted from SourceMapping - __SPLIT__ 2026-02-09 07:38:53,513 - [55888] - src.utils.log - INFO - [OK] Deleted from SubWorkOrder - __SPLIT__ 2026-02-09 07:38:54,194 - [55888] - src.utils.log - INFO - [OK] Deleted from Adjustment - __SPLIT__ 2026-02-09 07:38:54,878 - [55888] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (473054, 473055, 473056, 473057) (Thread: ThreadPoolExecutor-6_0) - __SPLIT__ 2026-02-09 07:38:55,829 - [55888] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-09 07:38:56,797 - [55888] - src.utils.log - INFO - βœ” Completed batch of 4 records - __SPLIT__ 2026-02-09 07:38:57,473 - [55888] - src.utils.log - INFO - πŸŽ‰ All batches processed. - __SPLIT__ 2026-02-09 07:38:58,154 - [55888] - src.utils.log - INFO - Work order published ids: (473054, 473055, 473056, 473057) - __SPLIT__ 2026-02-09 07:38:58,829 - [55888] - src.utils.log - INFO - Time took to perform operation in publishing [55888]: 126.25 - __SPLIT__ 2026-02-09 07:38:59,499 - [55888] - src.utils.log - INFO - Publish Completed for GenerateWorkOrderHistoryId: [55888] - __SPLIT__ 2026-02-09 07:39:00,170 - [55888] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-02-09 02:38:58.154' WHERE CompanyId = 146 AND GenerateWorkOrderHistoryId = 55888;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 07:39:00,874 - [55888] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-02-09 07:51:27,590 - 55890 - src.utils.log - INFO - ParallelProcessing=True GenerateWorkOrderHistoryId=55890 - __SPLIT__ 2026-02-09 07:51:29,514 - 55890 - src.utils.log - INFO - Parallel Work order generation algo started for GenerateWorkOrderHistoryId: 55890 - __SPLIT__ 2026-02-09 07:51:30,268 - 55890 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-02-09 07:51:30,947 - 55890 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive' ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 07:51:31,885 - 55890 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-09 07:51:32,557 - 55890 - src.utils.log - INFO - ℹ️ Connection string not found, connecting to common DB - __SPLIT__ 2026-02-09 07:51:33,231 - 55890 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 55890;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 07:51:33,940 - 55890 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-02-09 07:51:34,616 - 55890 - 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 = 55890), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 55890), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 55890 AND ss.FrequencyScheduleId IS NOT NULL AND ss.IsActive = 1 AND ss.IsDeleted = 0 AND ss.Status <> 'Canceled';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 07:51:35,362 - 55890 - src.utils.log - INFO - βœ… Fetched 7 rows - __SPLIT__ 2026-02-09 07:51:36,040 - 55890 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 55890;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 07:51:36,750 - 55890 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-09 07:51:37,430 - 55890 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-02-09 07:51:38,103 - 55890 - 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 (13930, 14923)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 07:51:38,814 - 55890 - src.utils.log - INFO - βœ… Fetched 61 rows - __SPLIT__ 2026-02-09 07:51:39,519 - 55890 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-02-09 07:51:40,197 - 55890 - src.utils.log - INFO - πŸ“Š Found 7 setups to process across 1 routes - __SPLIT__ 2026-02-09 07:51:40,867 - 55890 - src.utils.log - INFO - πŸš€ Starting parallel processing with 8 workers - __SPLIT__ 2026-02-09 07:51:41,541 - 55890 - src.utils.log - INFO - Generating Sequentially as less then one route given - __SPLIT__ 2026-02-09 07:51:42,217 - 55890 - src.utils.log - INFO - πŸ”„ Processing route: 1 with 7 setups - __SPLIT__ 2026-02-09 07:51:43,176 - 55890 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-02-09 07:51:43,890 - 55890 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId in (95330, 95365, 95243, 95352, 95353, 95354, 95355);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 07:51:44,576 - 55890 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-09 07:51:45,247 - 55890 - src.utils.log - INFO - πŸ” Fetching data: select ServiceDate, ServiceSetupId from serviceCore.WorkOrder wo inner join ServiceCore.WorkOrderStatus wos on wo.WoStatusId = wos.WoStatusId where ServiceDate >= '2026-02-09 00:00:00' and ServiceDate <= '2026-03-31 00:00:00' and ServiceSetupId in (95330, 95365, 95243, 95352, 95353, 95354, 95355) and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 07:51:45,945 - 55890 - src.utils.log - INFO - βœ… Fetched 81 rows - __SPLIT__ 2026-02-09 07:51:46,699 - 55890 - src.utils.log - INFO - Generating work orders for setup: 95243 - __SPLIT__ 2026-02-09 07:51:47,581 - 55890 - src.utils.log - INFO - Generating work orders for setup: 95330 - __SPLIT__ 2026-02-09 07:51:48,602 - 55890 - src.utils.log - INFO - Generating work orders for setup: 95352 - __SPLIT__ 2026-02-09 07:51:49,271 - 55890 - src.utils.log - INFO - Generating work orders for setup: 95353 - __SPLIT__ 2026-02-09 07:51:49,926 - 55890 - src.utils.log - INFO - Initial Route Present in Filter Routes SETUP:95353 - __SPLIT__ 2026-02-09 07:51:50,581 - 55890 - src.utils.log - INFO - Recurring Route Present in Filter Routes SETUP:95353 - __SPLIT__ 2026-02-09 07:51:51,254 - 55890 - src.utils.log - INFO - Generating work orders for setup: 95354 - __SPLIT__ 2026-02-09 07:51:51,921 - 55890 - src.utils.log - INFO - Generating work orders for setup: 95355 - __SPLIT__ 2026-02-09 07:51:52,575 - 55890 - src.utils.log - INFO - Initial Route Present in Filter Routes SETUP:95355 - __SPLIT__ 2026-02-09 07:51:53,235 - 55890 - src.utils.log - INFO - Recurring Route Present in Filter Routes SETUP:95355 - __SPLIT__ 2026-02-09 07:51:53,900 - 55890 - src.utils.log - INFO - Generating work orders for setup: 95365 - __SPLIT__ 2026-02-09 07:51:54,556 - 55890 - src.utils.log - INFO - Initial Route Present in Filter Routes SETUP:95365 - __SPLIT__ 2026-02-09 07:51:55,205 - 55890 - src.utils.log - INFO - Recurring Route Present in Filter Routes SETUP:95365 - __SPLIT__ 2026-02-09 07:51:55,875 - 55890 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 11512.0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 07:51:56,573 - 55890 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-09 07:51:57,533 - 55890 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId in (11424, 11458, 11459, 11443, 11512, 11422);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 07:51:58,235 - 55890 - src.utils.log - INFO - βœ… Fetched 6 rows - __SPLIT__ 2026-02-09 07:51:58,946 - 55890 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-02-09 07:51:59,618 - 55890 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=146 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 07:52:00,320 - 55890 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-09 07:52:00,987 - 55890 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-02-09 07:52:01,651 - 55890 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-02-09 07:52:02,327 - 55890 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (95330, 95365, 95243, 95352, 95353, 95354, 95355) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 07:52:03,055 - 55890 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-09 07:52:03,714 - 55890 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (95330, 95365, 95243, 95352, 95353, 95354, 95355) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 07:52:04,440 - 55890 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-09 07:52:05,110 - 55890 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (95330, 95365, 95243, 95352, 95353, 95354, 95355) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 07:52:05,824 - 55890 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-09 07:52:06,492 - 55890 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (95330, 95365, 95243, 95352, 95353, 95354, 95355) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 07:52:07,208 - 55890 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-09 07:52:07,872 - 55890 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (95330, 95365, 95243, 95352, 95353, 95354, 95355) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 07:52:08,585 - 55890 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-09 07:52:09,249 - 55890 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (95330, 95365, 95243, 95352, 95353, 95354, 95355) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 07:52:09,995 - 55890 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-09 07:52:10,658 - 55890 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (95330, 95365, 95243, 95352, 95353, 95354, 95355) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 07:52:11,645 - 55890 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-09 07:52:12,303 - 55890 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (95330, 95365, 95243, 95352, 95353, 95354, 95355) (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 07:52:13,312 - 55890 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-09 07:52:13,967 - 55890 - src.utils.log - INFO - πŸ“ Inserting 8 work orders for route: 1 - __SPLIT__ 2026-02-09 07:52:14,617 - 55890 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 8 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 07:52:15,329 - 55890 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 8) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-02-09 07:52:16,194 - 55890 - src.utils.log - INFO - βœ… All 8 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-02-09 07:52:16,848 - 55890 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 8 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-02-06 11:52:42.931' and ServiceSetupId in (95330, 95365, 95243, 95352, 95353, 95354, 95355)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 07:52:17,549 - 55890 - src.utils.log - INFO - βœ… Fetched 8 rows - __SPLIT__ 2026-02-09 07:52:18,200 - 55890 - src.utils.log - INFO - βœ… Work order IDs inserted for route 1: 8 records - __SPLIT__ 2026-02-09 07:52:18,846 - 55890 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId in (95330, 95365, 95243, 95352, 95353, 95354, 95355);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 07:52:19,528 - 55890 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-09 07:52:20,174 - 55890 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-02-09 07:52:20,830 - 55890 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId in (95365, 95352, 95353, 95354, 95355)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 07:52:21,518 - 55890 - src.utils.log - INFO - βœ… Fetched 8 rows - __SPLIT__ 2026-02-09 07:52:22,173 - 55890 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId in (95365, 95352, 95353, 95354, 95355)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 07:52:22,857 - 55890 - src.utils.log - INFO - βœ… Fetched 5 rows - __SPLIT__ 2026-02-09 07:52:23,520 - 55890 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId in (95365, 95352, 95353, 95354, 95355)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 07:52:24,208 - 55890 - src.utils.log - INFO - βœ… Fetched 8 rows - __SPLIT__ 2026-02-09 07:52:24,857 - 55890 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId in (95365, 95352, 95353, 95354, 95355)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 07:52:25,842 - 55890 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-09 07:52:26,510 - 55890 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId in (95365, 95352, 95353, 95354, 95355)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 07:52:27,217 - 55890 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-09 07:52:27,885 - 55890 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId in (95365, 95352, 95353, 95354, 95355);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 07:52:28,598 - 55890 - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-02-09 07:52:29,265 - 55890 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId in (95365, 95352, 95353, 95354, 95355);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 07:52:29,968 - 55890 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-09 07:52:30,633 - 55890 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId in (95365, 95352, 95353, 95354, 95355);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 07:52:31,569 - 55890 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-09 07:52:32,244 - 55890 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId in (95365, 95352, 95353, 95354, 95355);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 07:52:32,944 - 55890 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-09 07:52:33,628 - 55890 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-02-09 07:52:34,296 - 55890 - src.utils.log - INFO - πŸ“₯ Inserting into CRM.LeadNote: 0 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 07:52:34,997 - 55890 - src.utils.log - INFO - βœ… All 0 rows inserted successfully into CRM.LeadNote in 0 batches - __SPLIT__ 2026-02-09 07:52:35,671 - 55890 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-02-09 07:52:36,335 - 55890 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.CommunicationPreferencesServiceReportNotification: 0 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 07:52:37,039 - 55890 - src.utils.log - INFO - βœ… All 0 rows inserted successfully into ServiceCore.CommunicationPreferencesServiceReportNotification in 0 batches - __SPLIT__ 2026-02-09 07:52:37,704 - 55890 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-02-09 07:52:38,374 - 55890 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.SetupAutoGenerationSourceMapping: 0 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 07:52:39,066 - 55890 - src.utils.log - INFO - βœ… All 0 rows inserted successfully into ServiceCore.SetupAutoGenerationSourceMapping in 0 batches - __SPLIT__ 2026-02-09 07:52:40,034 - 55890 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-02-09 07:52:40,695 - 55890 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationAppliedDiscount: 4 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 07:52:41,386 - 55890 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 4) into ServiceCore.WorkOrderAutoGenerationAppliedDiscount - __SPLIT__ 2026-02-09 07:52:42,156 - 55890 - src.utils.log - INFO - βœ… All 4 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationAppliedDiscount in 1 batches - __SPLIT__ 2026-02-09 07:52:42,821 - 55890 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-02-09 07:52:43,483 - 55890 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.SubWorkOrderAutoGeneration: 0 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 07:52:44,179 - 55890 - src.utils.log - INFO - βœ… All 0 rows inserted successfully into ServiceCore.SubWorkOrderAutoGeneration in 0 batches - __SPLIT__ 2026-02-09 07:52:44,841 - 55890 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-02-09 07:52:45,528 - 55890 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: 0 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 07:52:46,220 - 55890 - src.utils.log - INFO - βœ… All 0 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationCommissionAdjustment in 0 batches - __SPLIT__ 2026-02-09 07:52:46,881 - 55890 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-02-09 07:52:47,538 - 55890 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: 0 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 07:52:48,231 - 55890 - src.utils.log - INFO - βœ… All 0 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationSalesPersonCommission in 0 batches - __SPLIT__ 2026-02-09 07:52:48,890 - 55890 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-02-09 07:52:49,570 - 55890 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationCrews: 8 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 07:52:50,264 - 55890 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 8) into ServiceCore.WorkOrderAutoGenerationCrews - __SPLIT__ 2026-02-09 07:52:51,039 - 55890 - src.utils.log - INFO - βœ… All 8 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationCrews in 1 batches - __SPLIT__ 2026-02-09 07:52:51,696 - 55890 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-02-09 07:52:52,358 - 55890 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 5 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 07:52:53,054 - 55890 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 5) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-02-09 07:52:54,133 - 55890 - src.utils.log - INFO - βœ… All 5 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-02-09 07:52:54,792 - 55890 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-02-09 07:52:55,461 - 55890 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 8 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 07:52:56,162 - 55890 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 8) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-02-09 07:52:56,937 - 55890 - src.utils.log - INFO - βœ… All 8 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-02-09 07:52:57,618 - 55890 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-02-09 07:52:58,282 - 55890 - src.utils.log - INFO - βœ… Temp tables populated for route: 1 - __SPLIT__ 2026-02-09 07:52:58,938 - 55890 - src.utils.log - INFO - βœ… Route 1 generation complete - __SPLIT__ 2026-02-09 07:52:59,598 - 55890 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 55890;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 07:53:00,295 - 55890 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-02-09 07:53:00,960 - 55890 - src.utils.log - INFO - ⏱️ Total time: 90.77s | Status: Completed - __SPLIT__ 2026-02-09 07:53:01,647 - 55890 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 55890;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 07:53:02,350 - 55890 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-02-09 07:53:03,013 - 55890 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET WorkOrderStatusDateTime = '2026-02-09 02:53:03.013' WHERE GenerateWorkOrderHistoryId = 55890;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 07:53:03,705 - 55890 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-02-09 07:53:04,369 - 55890 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-02-09 08:08:02,773 - [55890] - src.utils.log - INFO - ParallelProcessing=True temp_wo=[473069, 473070, 473071, 473072, 473073, 473074, 473075, 473076] user_id=44506 company_id=146 project_id=[55890] publish_all=False - __SPLIT__ 2026-02-09 08:08:03,784 - [55890] - src.utils.log - INFO - ParallelProcessing=True temp_wo=[473069, 473070, 473071, 473072, 473073, 473074, 473075, 473076] user_id=44506 company_id=146 project_id=[55890] publish_all=False - __SPLIT__ 2026-02-09 08:08:04,460 - [55890] - src.utils.log - INFO - Parallel Work order publish in progress for GenerateWorkOrderHistoryId: [55890] - __SPLIT__ 2026-02-09 08:08:05,142 - [55890] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-02-09 08:08:05,821 - [55890] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 08:08:06,751 - [55890] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-09 08:08:07,433 - [55890] - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-02-09 08:08:08,114 - [55890] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'InProgress' WHERE CompanyId = 146 AND GenerateWorkOrderHistoryId = 55890;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 08:08:08,822 - [55890] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-02-09 08:08:09,495 - [55890] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (473069, 473070, 473071, 473072, 473073, 473074, 473075, 473076)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 08:08:10,203 - [55890] - src.utils.log - INFO - βœ… Fetched 8 rows - __SPLIT__ 2026-02-09 08:08:10,883 - [55890] - src.utils.log - INFO - Inside get_work_order_table - __SPLIT__ 2026-02-09 08:08:11,562 - [55890] - 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 in (95355, 95365, 95353, 95352, 95354) AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 08:08:12,278 - [55890] - src.utils.log - INFO - βœ… Fetched 5 rows - __SPLIT__ 2026-02-09 08:08:12,954 - [55890] - 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 in (95355, 95365, 95353, 95352, 95354) AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 08:08:13,663 - [55890] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-09 08:08:14,344 - [55890] - 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 in (95355, 95365, 95353, 95352, 95354) AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 08:08:15,067 - [55890] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-09 08:08:15,756 - [55890] - 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-02-09 08:08:16,469 - [55890] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-02-09 08:08:17,146 - [55890] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder,BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 146;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 08:08:18,134 - [55890] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-09 08:08:18,803 - [55890] - src.utils.log - INFO - πŸ“ Executing: UPDATE Common.GenerateNumberConfig SET NextNumber = '20097' WHERE CompanyId = 146 AND EnitityNumberType in ('WorkOrder');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 08:08:19,501 - [55890] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-02-09 08:08:20,166 - [55890] - src.utils.log - INFO - πŸ“ Executing: UPDATE Common.GenerateNumberConfig SET NextNumber = '23539' WHERE CompanyId = 146 AND EnitityNumberType in ('Invoice');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 08:08:20,866 - [55890] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-02-09 08:08:21,530 - [55890] - 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 (95355, 95365, 95353, 95352, 95354)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 08:08:22,230 - [55890] - src.utils.log - INFO - βœ… Fetched 5 rows - __SPLIT__ 2026-02-09 08:08:22,904 - [55890] - src.utils.log - INFO - Size of Transaction: 5 - __SPLIT__ 2026-02-09 08:08:23,573 - [55890] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 5 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 08:08:24,291 - [55890] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 5) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-02-09 08:08:25,080 - [55890] - src.utils.log - INFO - βœ… All 5 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-02-09 08:08:25,758 - [55890] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-02-09 08:08:26,426 - [55890] - 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) and t.CompanyId = 146 AND t.TransactionType ='Invoice' AND t.CreatedDate = '2026-02-09 03:08:22.900';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 08:08:27,186 - [55890] - src.utils.log - INFO - βœ… Fetched 5 rows - __SPLIT__ 2026-02-09 08:08:27,855 - [55890] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId in (95352, 95353, 95354, 95355, 95365);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 08:08:28,546 - [55890] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-09 08:08:29,236 - [55890] - src.utils.log - INFO - πŸ“ Executing: UPDATE Billing.[Transaction] SET ModifiedBy = NULL WHERE ModifiedBy IN (12345678910,12345678911,12345678912,12345678913,12345678914) AND CreatedDate = '2026-02-09 03:08:22.900'; ... (Thread: ThreadPoolExecutor-8_0) - __SPLIT__ 2026-02-09 08:08:30,101 - [55890] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-02-09 08:08:30,765 - [55890] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 5 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 08:08:31,468 - [55890] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 5) into Billing.Invoice - __SPLIT__ 2026-02-09 08:08:32,555 - [55890] - src.utils.log - INFO - βœ… All 5 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-02-09 08:08:33,227 - [55890] - src.utils.log - INFO - πŸ” Fetching data: SELECT InvoiceId, WorkOrderNo FROM Billing.Invoice i WHERE i.WorkOrderNo in ('20094', '20089', '20093', '20090', '20096')... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 08:08:33,983 - [55890] - src.utils.log - INFO - βœ… Fetched 10 rows - __SPLIT__ 2026-02-09 08:08:34,669 - [55890] - 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 (95355, 95365, 95354) and sm.IsActive =1 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 08:08:35,370 - [55890] - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-02-09 08:08:36,045 - [55890] - 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 (95355, 95365, 95354) and sm.IsActive =1 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 08:08:36,746 - [55890] - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-02-09 08:08:37,423 - [55890] - 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 (95355, 95365, 95354) and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 08:08:38,128 - [55890] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-09 08:08:38,794 - [55890] - 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 (95355, 95365, 95354) and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 08:08:39,500 - [55890] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-09 08:08:40,183 - [55890] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId in (95355, 95365, 95354);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 08:08:40,887 - [55890] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-09 08:08:41,561 - [55890] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId, AppliedDiscountAmt as AppliedDiscountAmount,IsActive ,ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId in (95355, 95365, 95354);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 08:08:42,272 - [55890] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-02-09 08:08:42,959 - [55890] - 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 (95355, 95365, 95354);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 08:08:43,664 - [55890] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-02-09 08:08:44,349 - [55890] - src.utils.log - INFO - Parallel Insertion in invoice tables begin - __SPLIT__ 2026-02-09 08:08:45,015 - [55890] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.AccountDiscountSetup: 4 rows in batches of 25000 (Thread: ThreadPoolExecutor-9_0) - __SPLIT__ 2026-02-09 08:08:45,015 - [55890] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceCharges: 14 rows in batches of 25000 (Thread: ThreadPoolExecutor-9_1) - __SPLIT__ 2026-02-09 08:08:45,016 - [55890] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.DiscountApplied: 4 rows in batches of 25000 (Thread: ThreadPoolExecutor-9_2) - __SPLIT__ 2026-02-09 08:08:45,727 - [55890] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 4) into Billing.AccountDiscountSetup - __SPLIT__ 2026-02-09 08:08:46,763 - [55890] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 14) into Billing.InvoiceCharges - __SPLIT__ 2026-02-09 08:08:47,460 - [55890] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 4) into Billing.DiscountApplied - __SPLIT__ 2026-02-09 08:08:48,143 - [55890] - src.utils.log - INFO - βœ… All 4 rows inserted successfully into Billing.AccountDiscountSetup in 1 batches - __SPLIT__ 2026-02-09 08:08:48,898 - [55890] - src.utils.log - INFO - βœ… All 14 rows inserted successfully into Billing.InvoiceCharges in 1 batches - __SPLIT__ 2026-02-09 08:08:49,463 - [55890] - src.utils.log - INFO - βœ… All 4 rows inserted successfully into Billing.DiscountApplied in 1 batches - __SPLIT__ 2026-02-09 08:08:50,051 - [55890] - src.utils.log - INFO - Insert success for table: Billing.AccountDiscountSetup - __SPLIT__ 2026-02-09 08:08:52,069 - [55890] - src.utils.log - INFO - Insert success for table: Billing.InvoiceCharges - __SPLIT__ 2026-02-09 08:08:52,744 - [55890] - src.utils.log - INFO - Insert success for table: Billing.DiscountApplied - __SPLIT__ 2026-02-09 08:08:53,424 - [55890] - src.utils.log - INFO - Invoice Publish Done - __SPLIT__ 2026-02-09 08:08:54,101 - [55890] - src.utils.log - INFO - πŸ” Fetching data: SELECT x.CompanyId FROM CRM.CompanyMaster x WHERE CompanyKey = 'Fortive';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 08:08:54,805 - [55890] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-09 08:08:55,476 - [55890] - src.utils.log - INFO - πŸ” Fetching data: SELECT CollectionStatus,IsHold,AccountNo FROM CRM.Account a WHERE a.AccountNo in ('1133', '1145') and a.CompanyId = 134;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 08:08:56,182 - [55890] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-02-09 08:08:56,863 - [55890] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrder (skip triggers): 8 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 08:08:57,619 - [55890] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 8) into ServiceCore.WorkOrder (triggers skipped) - __SPLIT__ 2026-02-09 08:08:58,468 - [55890] - src.utils.log - INFO - βœ… All 8 rows inserted successfully into ServiceCore.WorkOrder in 1 batches (triggers skipped) - __SPLIT__ 2026-02-09 08:08:59,156 - [55890] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-02-09 08:08:59,837 - [55890] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.ServiceSetup SET IsInitialWoGenerated = 1 WHERE CompanyId = 146 AND ServiceSetupId in (95355, 95365, 95353);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 08:09:00,830 - [55890] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-02-09 08:09:01,496 - [55890] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkorderId, WorkOrderNo FROM ServiceCore.WorkOrder wo WHERE wo.WorkOrderNo IN ('20089', '20090', '20091', '20092', '20093', '20094', '20095', '20096') AND wo.AccountNumber IN ('1133', '1145') AND wo.CompanyId = 146 ... (Thread: ThreadPoolExecutor-10_0) - __SPLIT__ 2026-02-09 08:09:02,199 - [55890] - src.utils.log - INFO - βœ… Fetched 8 rows - __SPLIT__ 2026-02-09 08:09:02,863 - [55890] - src.utils.log - INFO - Parallel fetching temp table records - __SPLIT__ 2026-02-09 08:09:03,530 - [55890] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationServices woag WHERE woag.WorkOrderAutoGenerationId in (473069, 473070, 473071, 473072, 473073, 473074, 473075, 473076)... (Thread: ThreadPoolExecutor-11_0) - __SPLIT__ 2026-02-09 08:09:03,532 - [55890] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SubWorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (473069, 473070, 473071, 473072, 473073, 473074, 473075, 473076)... (Thread: ThreadPoolExecutor-11_1) - __SPLIT__ 2026-02-09 08:09:03,532 - [55890] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationCrews woag WHERE woag.WorkOrderAutoGenerationId in (473069, 473070, 473071, 473072, 473073, 473074, 473075, 473076)... (Thread: ThreadPoolExecutor-11_2) - __SPLIT__ 2026-02-09 08:09:03,532 - [55890] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationSalesPersonCommission woag WHERE woag.WorkOrderAutoGenerationId in (473069, 473070, 473071, 473072, 473073, 473074, 473075, 473076)... (Thread: ThreadPoolExecutor-11_3) - __SPLIT__ 2026-02-09 08:09:03,532 - [55890] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupAutoGenerationSourceMapping woag WHERE woag.WorkOrderAutoGenerationId in (473069, 473070, 473071, 473072, 473073, 473074, 473075, 473076)... (Thread: ThreadPoolExecutor-11_4) - __SPLIT__ 2026-02-09 08:09:03,533 - [55890] - 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 (473069, 473070, 473071, 473072, 473073, 473074, 473075, 473076)... (Thread: ThreadPoolExecutor-11_5) - __SPLIT__ 2026-02-09 08:09:03,533 - [55890] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from CRM.LeadNote woag WHERE woag.RefId in (473069, 473070, 473071, 473072, 473073, 473074, 473075, 473076) and woag.RefType = 'TempWorkorder';... (Thread: ThreadPoolExecutor-11_6) - __SPLIT__ 2026-02-09 08:09:03,533 - [55890] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment woagca WHERE woagca.WorkOrderAutoGenerationId in (473069, 473070, 473071, 473072, 473073, 473074, 473075, 473076);... (Thread: ThreadPoolExecutor-11_7) - __SPLIT__ 2026-02-09 08:09:04,235 - [55890] - src.utils.log - INFO - βœ… Fetched 13 rows - __SPLIT__ 2026-02-09 08:09:04,911 - [55890] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-09 08:09:05,561 - [55890] - src.utils.log - INFO - βœ… Fetched 8 rows - __SPLIT__ 2026-02-09 08:09:06,331 - [55890] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-09 08:09:06,978 - [55890] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-09 08:09:07,643 - [55890] - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-02-09 08:09:08,312 - [55890] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-09 08:09:08,977 - [55890] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-09 08:09:14,514 - [55890] - src.utils.log - INFO - Updating temp tables - __SPLIT__ 2026-02-09 08:09:15,211 - [55890] - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyKey FROM Common.CompanyMaster cm WHERE CompanyId = 146;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 08:09:15,911 - [55890] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-09 08:09:16,578 - [55890] - src.utils.log - INFO - πŸ” Fetching data: Select DiscountSetupId, [SysName] as DiscountSysName from Common.DiscountSetupMaster WHERE DiscountSetupId IN (654, 337) AND CompanyId = 146 AND IsActive = 1;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 08:09:17,284 - [55890] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-02-09 08:09:17,945 - [55890] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 146 AND EnitityNumberType in ('SubWorkOrder'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 08:09:18,633 - [55890] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-09 08:09:19,307 - [55890] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishHistory: 8 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 08:09:20,037 - [55890] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 8) into ServiceCore.WorkOrderAutoGenerationPublishHistory - __SPLIT__ 2026-02-09 08:09:20,867 - [55890] - src.utils.log - INFO - βœ… All 8 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishHistory in 1 batches - __SPLIT__ 2026-02-09 08:09:21,528 - [55890] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationPublishHistoryId, WorkOrderNo, ServiceSetupId FROM ServiceCore.WorkOrderAutoGenerationPublishHistory WHERE ServiceSetupId IN (95355, 95365, 95353, 95352, 95354) AND WorkOrderNo IN ('889041', '590330', '338207', '1291610', '7784841', '3165500', '7260357', '4895464') AND GenerateWorkOrderHistoryId = 55890;... (Thread: ThreadPoolExecutor-12_0) - __SPLIT__ 2026-02-09 08:09:22,249 - [55890] - src.utils.log - INFO - βœ… Fetched 8 rows - __SPLIT__ 2026-02-09 08:09:22,912 - [55890] - src.utils.log - INFO - 🏁 Final merged rows: 8 - __SPLIT__ 2026-02-09 08:09:23,583 - [55890] - src.utils.log - INFO - Parallel Insertion in work order tables begin - __SPLIT__ 2026-02-09 08:09:24,248 - [55890] - src.utils.log - INFO - πŸ“₯ Inserting into CRM.LeadNote: 0 rows in batches of 25000 (Thread: ThreadPoolExecutor-13_0) - __SPLIT__ 2026-02-09 08:09:24,248 - [55890] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.WorkOrderAppliedDiscount: 4 rows in batches of 25000 (Thread: ThreadPoolExecutor-13_1) - __SPLIT__ 2026-02-09 08:09:24,248 - [55890] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderSalesPersonCommission: 0 rows in batches of 25000 (Thread: ThreadPoolExecutor-13_2) - __SPLIT__ 2026-02-09 08:09:24,248 - [55890] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.WorkOrderCommissionAdjustment: 0 rows in batches of 25000 (Thread: ThreadPoolExecutor-13_3) - __SPLIT__ 2026-02-09 08:09:24,249 - [55890] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderServices: 13 rows in batches of 25000 (Thread: ThreadPoolExecutor-13_4) - __SPLIT__ 2026-02-09 08:09:24,249 - [55890] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.SubWorkOrder: 0 rows in batches of 25000 (Thread: ThreadPoolExecutor-13_5) - __SPLIT__ 2026-02-09 08:09:24,250 - [55890] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderCrew: 8 rows in batches of 25000 (Thread: ThreadPoolExecutor-13_6) - __SPLIT__ 2026-02-09 08:09:24,250 - [55890] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkorderSourceMapping: 0 rows in batches of 25000 (Thread: ThreadPoolExecutor-13_7) - __SPLIT__ 2026-02-09 08:09:24,251 - [55890] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishServices: 13 rows in batches of 25000 (Thread: ThreadPoolExecutor-13_8) - __SPLIT__ 2026-02-09 08:09:24,939 - [55890] - src.utils.log - INFO - βœ… All 0 rows inserted successfully into CRM.LeadNote in 0 batches - __SPLIT__ 2026-02-09 08:09:31,100 - [55890] - src.utils.log - INFO - [OK] Lead Notes completed. - __SPLIT__ 2026-02-09 08:09:26,265 - [55890] - src.utils.log - INFO - βœ… All 0 rows inserted successfully into ServiceCore.WorkOrderSalesPersonCommission in 0 batches - __SPLIT__ 2026-02-09 08:09:26,923 - [55890] - src.utils.log - INFO - βœ… All 0 rows inserted successfully into ServiceAuto.WorkOrderCommissionAdjustment in 0 batches - __SPLIT__ 2026-02-09 08:09:27,625 - [55890] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 13) into ServiceCore.WorkOrderServices - __SPLIT__ 2026-02-09 08:09:28,580 - [55890] - src.utils.log - INFO - βœ… All 0 rows inserted successfully into ServiceCore.SubWorkOrder in 0 batches - __SPLIT__ 2026-02-09 08:09:29,210 - [55890] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 8) into ServiceCore.WorkOrderCrew - __SPLIT__ 2026-02-09 08:09:29,837 - [55890] - src.utils.log - INFO - βœ… All 0 rows inserted successfully into ServiceCore.WorkorderSourceMapping in 0 batches - __SPLIT__ 2026-02-09 08:09:30,583 - [55890] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 13) into ServiceCore.WorkOrderAutoGenerationPublishServices - __SPLIT__ 2026-02-09 08:09:25,625 - [55890] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 4) into ServiceAuto.WorkOrderAppliedDiscount - __SPLIT__ 2026-02-09 08:09:32,401 - [55890] - src.utils.log - INFO - [OK] Sales Person Commission completed. - __SPLIT__ 2026-02-09 08:09:33,837 - [55890] - src.utils.log - INFO - βœ… All 13 rows inserted successfully into ServiceCore.WorkOrderServices in 1 batches - __SPLIT__ 2026-02-09 08:09:35,133 - [55890] - src.utils.log - INFO - βœ… All 8 rows inserted successfully into ServiceCore.WorkOrderCrew in 1 batches - __SPLIT__ 2026-02-09 08:09:36,451 - [55890] - src.utils.log - INFO - βœ… All 13 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishServices in 1 batches - __SPLIT__ 2026-02-09 08:09:37,077 - [55890] - src.utils.log - INFO - βœ… All 4 rows inserted successfully into ServiceAuto.WorkOrderAppliedDiscount in 1 batches - __SPLIT__ 2026-02-09 08:09:37,626 - [55890] - src.utils.log - INFO - [OK] Adjustment completed. - __SPLIT__ 2026-02-09 08:09:40,876 - [55890] - src.utils.log - INFO - [OK] Sub WO completed. - __SPLIT__ 2026-02-09 08:09:41,838 - [55890] - src.utils.log - INFO - [OK] Source Mapping completed. - __SPLIT__ 2026-02-09 08:09:42,509 - [55890] - src.utils.log - INFO - [OK] Services completed. - __SPLIT__ 2026-02-09 08:09:43,181 - [55890] - src.utils.log - INFO - [OK] Crew completed. - __SPLIT__ 2026-02-09 08:09:43,858 - [55890] - src.utils.log - INFO - [OK] Publish Services completed. - __SPLIT__ 2026-02-09 08:09:44,524 - [55890] - src.utils.log - INFO - [OK] Discount Applied completed. - __SPLIT__ 2026-02-09 08:09:45,196 - [55890] - src.utils.log - INFO - All publish tasks completed successfully. - __SPLIT__ 2026-02-09 08:09:45,868 - [55890] - src.utils.log - INFO - Updating Next GenerationDate - __SPLIT__ 2026-02-09 08:09:46,541 - [55890] - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, MAX(NextWorkOrderGenerationDate) AS MaxNextWorkOrderGeneration FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 55890 GROUP BY ServiceSetupId; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 08:09:47,238 - [55890] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-09 08:09:47,911 - [55890] - src.utils.log - INFO - πŸ”„ Updating next gen date parallely: inside update_next_workorder_generation - __SPLIT__ 2026-02-09 08:09:48,598 - [55890] - src.utils.log - INFO - πŸ›  Creating temp table #tbl_0bf5febc5f - __SPLIT__ 2026-02-09 08:09:49,286 - [55890] - src.utils.log - INFO - πŸ“Œ Bulk inserting 5 rows into #tbl_0bf5febc5f - __SPLIT__ 2026-02-09 08:09:50,008 - [55890] - src.utils.log - INFO - πŸ” Running UPDATE to apply changes - __SPLIT__ 2026-02-09 08:09:50,745 - [55890] - src.utils.log - INFO - βœ” SQL reported affected rows: 5 - __SPLIT__ 2026-02-09 08:09:51,415 - [55890] - src.utils.log - INFO - πŸŽ‰ Successfully updated NextGenerationDate using temp table #tbl_0bf5febc5f - __SPLIT__ 2026-02-09 08:09:52,082 - [55890] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 55890 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 08:09:52,779 - [55890] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-09 08:09:53,448 - [55890] - src.utils.log - INFO - Parallel deletion from temp tables begin - __SPLIT__ 2026-02-09 08:09:54,126 - [55890] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId in (473069, 473070, 473071, 473072, 473073, 473074, 473075, 473076) (Thread: ThreadPoolExecutor-15_0) - __SPLIT__ 2026-02-09 08:09:54,127 - [55890] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId in (473069, 473070, 473071, 473072, 473073, 473074, 473075, 473076) (Thread: ThreadPoolExecutor-15_1) - __SPLIT__ 2026-02-09 08:09:54,128 - [55890] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId in (473069, 473070, 473071, 473072, 473073, 473074, 473075, 473076) (Thread: ThreadPoolExecutor-15_2) - __SPLIT__ 2026-02-09 08:09:54,128 - [55890] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId in (473069, 473070, 473071, 473072, 473073, 473074, 473075, 473076) (Thread: ThreadPoolExecutor-15_3) - __SPLIT__ 2026-02-09 08:09:54,129 - [55890] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId in (473069, 473070, 473071, 473072, 473073, 473074, 473075, 473076) (Thread: ThreadPoolExecutor-15_4) - __SPLIT__ 2026-02-09 08:09:54,129 - [55890] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (473069, 473070, 473071, 473072, 473073, 473074, 473075, 473076) (Thread: ThreadPoolExecutor-15_5) - __SPLIT__ 2026-02-09 08:09:54,129 - [55890] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId in (473069, 473070, 473071, 473072, 473073, 473074, 473075, 473076) (Thread: ThreadPoolExecutor-15_6) - __SPLIT__ 2026-02-09 08:09:54,855 - [55890] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-09 08:09:55,807 - [55890] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-09 08:09:56,464 - [55890] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-09 08:09:57,148 - [55890] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-09 08:09:57,798 - [55890] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-09 08:09:58,482 - [55890] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-09 08:09:59,154 - [55890] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-09 08:09:59,788 - [55890] - src.utils.log - INFO - [OK] Deleted from Services - __SPLIT__ 2026-02-09 08:10:04,472 - [55890] - src.utils.log - INFO - [OK] Deleted from Crews - __SPLIT__ 2026-02-09 08:10:05,148 - [55890] - src.utils.log - INFO - [OK] Deleted from SalesPersonCommission - __SPLIT__ 2026-02-09 08:10:05,826 - [55890] - src.utils.log - INFO - [OK] Deleted from AppliedDiscount - __SPLIT__ 2026-02-09 08:10:06,490 - [55890] - src.utils.log - INFO - [OK] Deleted from SourceMapping - __SPLIT__ 2026-02-09 08:10:07,156 - [55890] - src.utils.log - INFO - [OK] Deleted from SubWorkOrder - __SPLIT__ 2026-02-09 08:10:07,820 - [55890] - src.utils.log - INFO - [OK] Deleted from Adjustment - __SPLIT__ 2026-02-09 08:10:08,489 - [55890] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (473069, 473070, 473071, 473072, 473073, 473074, 473075, 473076) (Thread: ThreadPoolExecutor-14_0) - __SPLIT__ 2026-02-09 08:10:09,701 - [55890] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-09 08:10:10,371 - [55890] - src.utils.log - INFO - βœ” Completed batch of 8 records - __SPLIT__ 2026-02-09 08:10:11,042 - [55890] - src.utils.log - INFO - πŸŽ‰ All batches processed. - __SPLIT__ 2026-02-09 08:10:11,706 - [55890] - src.utils.log - INFO - Work order published ids: (473069, 473070, 473071, 473072, 473073, 473074, 473075, 473076) - __SPLIT__ 2026-02-09 08:10:12,371 - [55890] - src.utils.log - INFO - Time took to perform operation in publishing [55890]: 127.23 - __SPLIT__ 2026-02-09 08:10:13,038 - [55890] - src.utils.log - INFO - Publish Completed for GenerateWorkOrderHistoryId: [55890] - __SPLIT__ 2026-02-09 08:10:13,696 - [55890] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-02-09 03:10:11.706' WHERE CompanyId = 146 AND GenerateWorkOrderHistoryId = 55890;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 08:10:14,382 - [55890] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-02-09 09:28:32,727 - 55891 - src.utils.log - INFO - ParallelProcessing=True GenerateWorkOrderHistoryId=55891 - __SPLIT__ 2026-02-09 09:28:33,699 - 55891 - src.utils.log - INFO - Parallel Work order generation algo started for GenerateWorkOrderHistoryId: 55891 - __SPLIT__ 2026-02-09 09:28:34,358 - 55891 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-02-09 09:28:35,014 - 55891 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive' ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 09:28:35,846 - 55891 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-09 09:28:36,495 - 55891 - src.utils.log - INFO - ℹ️ Connection string not found, connecting to common DB - __SPLIT__ 2026-02-09 09:28:37,157 - 55891 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 55891;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 09:28:37,842 - 55891 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-02-09 09:28:38,505 - 55891 - 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 = 55891), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 55891), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 55891 AND ss.FrequencyScheduleId IS NOT NULL AND ss.IsActive = 1 AND ss.IsDeleted = 0 AND ss.Status <> 'Canceled';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 09:28:39,250 - 55891 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-09 09:28:39,909 - 55891 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 55891;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 09:28:40,600 - 55891 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-09 09:28:41,257 - 55891 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-02-09 09:28:41,916 - 55891 - 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-02-09 09:28:42,608 - 55891 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-09 09:28:43,256 - 55891 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-02-09 09:28:43,917 - 55891 - src.utils.log - INFO - πŸ“Š Found 1 setups to process across 1 routes - __SPLIT__ 2026-02-09 09:28:44,578 - 55891 - src.utils.log - INFO - πŸš€ Starting parallel processing with 8 workers - __SPLIT__ 2026-02-09 09:28:45,235 - 55891 - src.utils.log - INFO - Generating Sequentially as less then one route given - __SPLIT__ 2026-02-09 09:28:45,892 - 55891 - src.utils.log - INFO - πŸ”„ Processing route: 1 with 1 setups - __SPLIT__ 2026-02-09 09:28:46,548 - 55891 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-02-09 09:28:47,491 - 55891 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 95365;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 09:28:48,185 - 55891 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-09 09:28:48,838 - 55891 - src.utils.log - INFO - πŸ” Fetching data: select ServiceDate, ServiceSetupId from serviceCore.WorkOrder wo inner join ServiceCore.WorkOrderStatus wos on wo.WoStatusId = wos.WoStatusId where ServiceDate >= '2026-02-09 00:00:00' and ServiceDate <= '2026-12-31 00:00:00' and ServiceSetupId = 95365 and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 09:28:49,534 - 55891 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-02-09 09:28:50,270 - 55891 - src.utils.log - INFO - Generating work orders for setup: 95365 - __SPLIT__ 2026-02-09 09:28:50,969 - 55891 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 11458;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 09:28:51,654 - 55891 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-09 09:28:52,351 - 55891 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-02-09 09:28:53,013 - 55891 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=146 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 09:28:53,699 - 55891 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-09 09:28:54,357 - 55891 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-02-09 09:28:55,010 - 55891 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-02-09 09:28:55,660 - 55891 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 95365 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 09:28:56,387 - 55891 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-09 09:28:57,032 - 55891 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 95365 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 09:28:57,732 - 55891 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-09 09:28:58,386 - 55891 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 95365 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 09:28:59,086 - 55891 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-09 09:28:59,738 - 55891 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 95365 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 09:29:00,434 - 55891 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-09 09:29:01,407 - 55891 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 95365 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 09:29:02,118 - 55891 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-09 09:29:02,782 - 55891 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 95365 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 09:29:03,493 - 55891 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-09 09:29:04,156 - 55891 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 95365 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 09:29:04,854 - 55891 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-09 09:29:05,521 - 55891 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 95365 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 09:29:06,259 - 55891 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-09 09:29:06,928 - 55891 - src.utils.log - INFO - πŸ“ Inserting 9 work orders for route: 1 - __SPLIT__ 2026-02-09 09:29:07,597 - 55891 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 9 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 09:29:08,321 - 55891 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 9) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-02-09 09:29:09,172 - 55891 - src.utils.log - INFO - βœ… All 9 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-02-09 09:29:09,837 - 55891 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 9 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-02-06 11:52:43.335' and ServiceSetupId = 95365... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 09:29:10,548 - 55891 - src.utils.log - INFO - βœ… Fetched 9 rows - __SPLIT__ 2026-02-09 09:29:11,220 - 55891 - src.utils.log - INFO - βœ… Work order IDs inserted for route 1: 9 records - __SPLIT__ 2026-02-09 09:29:11,891 - 55891 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 95365;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 09:29:12,584 - 55891 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-09 09:29:13,255 - 55891 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-02-09 09:29:13,916 - 55891 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId = 95365... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 09:29:14,605 - 55891 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-02-09 09:29:15,539 - 55891 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId = 95365... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 09:29:16,225 - 55891 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-02-09 09:29:16,891 - 55891 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId = 95365... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 09:29:17,580 - 55891 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-02-09 09:29:18,226 - 55891 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId = 95365... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 09:29:18,905 - 55891 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-09 09:29:19,554 - 55891 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId = 95365... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 09:29:20,227 - 55891 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-09 09:29:20,882 - 55891 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId = 95365;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 09:29:21,571 - 55891 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-02-09 09:29:22,225 - 55891 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId = 95365;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 09:29:22,908 - 55891 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-09 09:29:23,559 - 55891 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId = 95365;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 09:29:24,933 - 55891 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-09 09:29:25,588 - 55891 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId = 95365;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 09:29:26,263 - 55891 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-09 09:29:26,926 - 55891 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-02-09 09:29:27,578 - 55891 - src.utils.log - INFO - πŸ“₯ Inserting into CRM.LeadNote: 0 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 09:29:28,255 - 55891 - src.utils.log - INFO - βœ… All 0 rows inserted successfully into CRM.LeadNote in 0 batches - __SPLIT__ 2026-02-09 09:29:28,904 - 55891 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-02-09 09:29:29,867 - 55891 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.CommunicationPreferencesServiceReportNotification: 0 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 09:29:30,563 - 55891 - src.utils.log - INFO - βœ… All 0 rows inserted successfully into ServiceCore.CommunicationPreferencesServiceReportNotification in 0 batches - __SPLIT__ 2026-02-09 09:29:31,252 - 55891 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-02-09 09:29:31,929 - 55891 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.SetupAutoGenerationSourceMapping: 0 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 09:29:32,658 - 55891 - src.utils.log - INFO - βœ… All 0 rows inserted successfully into ServiceCore.SetupAutoGenerationSourceMapping in 0 batches - __SPLIT__ 2026-02-09 09:29:33,338 - 55891 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-02-09 09:29:34,016 - 55891 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationAppliedDiscount: 9 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 09:29:34,720 - 55891 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 9) into ServiceCore.WorkOrderAutoGenerationAppliedDiscount - __SPLIT__ 2026-02-09 09:29:35,505 - 55891 - src.utils.log - INFO - βœ… All 9 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationAppliedDiscount in 1 batches - __SPLIT__ 2026-02-09 09:29:36,183 - 55891 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-02-09 09:29:36,864 - 55891 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.SubWorkOrderAutoGeneration: 0 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 09:29:37,568 - 55891 - src.utils.log - INFO - βœ… All 0 rows inserted successfully into ServiceCore.SubWorkOrderAutoGeneration in 0 batches - __SPLIT__ 2026-02-09 09:29:38,251 - 55891 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-02-09 09:29:38,917 - 55891 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: 0 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 09:29:39,616 - 55891 - src.utils.log - INFO - βœ… All 0 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationCommissionAdjustment in 0 batches - __SPLIT__ 2026-02-09 09:29:40,292 - 55891 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-02-09 09:29:40,967 - 55891 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: 0 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 09:29:41,665 - 55891 - src.utils.log - INFO - βœ… All 0 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationSalesPersonCommission in 0 batches - __SPLIT__ 2026-02-09 09:29:42,337 - 55891 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-02-09 09:29:43,017 - 55891 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationCrews: 9 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 09:29:44,018 - 55891 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 9) into ServiceCore.WorkOrderAutoGenerationCrews - __SPLIT__ 2026-02-09 09:29:44,798 - 55891 - src.utils.log - INFO - βœ… All 9 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationCrews in 1 batches - __SPLIT__ 2026-02-09 09:29:45,474 - 55891 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-02-09 09:29:46,155 - 55891 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 0 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 09:29:46,857 - 55891 - src.utils.log - INFO - βœ… All 0 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 0 batches - __SPLIT__ 2026-02-09 09:29:47,532 - 55891 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-02-09 09:29:48,204 - 55891 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 18 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 09:29:48,908 - 55891 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 18) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-02-09 09:29:49,704 - 55891 - src.utils.log - INFO - βœ… All 18 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-02-09 09:29:50,376 - 55891 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-02-09 09:29:51,056 - 55891 - src.utils.log - INFO - βœ… Temp tables populated for route: 1 - __SPLIT__ 2026-02-09 09:29:51,737 - 55891 - src.utils.log - INFO - βœ… Route 1 generation complete - __SPLIT__ 2026-02-09 09:29:52,448 - 55891 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 55891;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 09:29:53,151 - 55891 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-02-09 09:29:53,831 - 55891 - src.utils.log - INFO - ⏱️ Total time: 79.47s | Status: Completed - __SPLIT__ 2026-02-09 09:29:54,503 - 55891 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 55891;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 09:29:55,205 - 55891 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-02-09 09:29:55,880 - 55891 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET WorkOrderStatusDateTime = '2026-02-09 04:29:55.880' WHERE GenerateWorkOrderHistoryId = 55891;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 09:29:56,584 - 55891 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-02-09 09:29:57,260 - 55891 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-02-09 11:38:13,101 - 55892 - src.utils.log - INFO - ParallelProcessing=True GenerateWorkOrderHistoryId=55892 - __SPLIT__ 2026-02-09 11:38:14,093 - 55892 - src.utils.log - INFO - Parallel Work order generation algo started for GenerateWorkOrderHistoryId: 55892 - __SPLIT__ 2026-02-09 11:38:14,770 - 55892 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-02-09 11:38:15,445 - 55892 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive' ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 11:38:16,317 - 55892 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-09 11:38:16,989 - 55892 - src.utils.log - INFO - ℹ️ Connection string not found, connecting to common DB - __SPLIT__ 2026-02-09 11:38:17,660 - 55892 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 55892;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 11:38:18,357 - 55892 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-02-09 11:38:19,039 - 55892 - 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 = 55892), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 55892), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 55892 AND ss.FrequencyScheduleId IS NOT NULL AND ss.IsActive = 1 AND ss.IsDeleted = 0 AND ss.Status <> 'Canceled';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 11:38:19,775 - 55892 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-09 11:38:20,445 - 55892 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 55892;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 11:38:21,139 - 55892 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-09 11:38:21,811 - 55892 - src.utils.log - ERROR - ❌ No Setup Found. Error: No setups found for GenerateWorkOrderHistoryid: 55892 - __SPLIT__ 2026-02-09 11:38:22,481 - 55892 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 55892;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 11:38:23,182 - 55892 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-02-09 11:38:23,851 - 55892 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 55892;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 11:38:24,543 - 55892 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-02-09 11:38:25,214 - 55892 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET WorkOrderStatusDateTime = '2026-02-09 06:38:25.214' WHERE GenerateWorkOrderHistoryId = 55892;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 11:38:25,925 - 55892 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-02-09 11:38:26,591 - 55892 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-02-09 11:39:05,779 - 55893 - src.utils.log - INFO - ParallelProcessing=True GenerateWorkOrderHistoryId=55893 - __SPLIT__ 2026-02-09 11:39:06,716 - 55893 - src.utils.log - INFO - Parallel Work order generation algo started for GenerateWorkOrderHistoryId: 55893 - __SPLIT__ 2026-02-09 11:39:07,372 - 55893 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-02-09 11:39:08,030 - 55893 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive' ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 11:39:08,881 - 55893 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-09 11:39:09,534 - 55893 - src.utils.log - INFO - ℹ️ Connection string not found, connecting to common DB - __SPLIT__ 2026-02-09 11:39:10,187 - 55893 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 55893;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 11:39:10,871 - 55893 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-02-09 11:39:11,535 - 55893 - 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 = 55893), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 55893), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 55893 AND ss.FrequencyScheduleId IS NOT NULL AND ss.IsActive = 1 AND ss.IsDeleted = 0 AND ss.Status <> 'Canceled';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 11:39:12,254 - 55893 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-09 11:39:12,902 - 55893 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 55893;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 11:39:13,588 - 55893 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-09 11:39:14,243 - 55893 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-02-09 11:39:14,896 - 55893 - 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-02-09 11:39:15,582 - 55893 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-09 11:39:16,236 - 55893 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-02-09 11:39:16,892 - 55893 - src.utils.log - INFO - πŸ“Š Found 1 setups to process across 1 routes - __SPLIT__ 2026-02-09 11:39:17,552 - 55893 - src.utils.log - INFO - πŸš€ Starting parallel processing with 8 workers - __SPLIT__ 2026-02-09 11:39:18,211 - 55893 - src.utils.log - INFO - Generating Sequentially as less then one route given - __SPLIT__ 2026-02-09 11:39:18,870 - 55893 - src.utils.log - INFO - πŸ”„ Processing route: 1 with 1 setups - __SPLIT__ 2026-02-09 11:39:19,523 - 55893 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-02-09 11:39:20,467 - 55893 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 95365;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 11:39:21,153 - 55893 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-09 11:39:21,808 - 55893 - src.utils.log - INFO - πŸ” Fetching data: select ServiceDate, ServiceSetupId from serviceCore.WorkOrder wo inner join ServiceCore.WorkOrderStatus wos on wo.WoStatusId = wos.WoStatusId where ServiceDate >= '2026-02-09 00:00:00' and ServiceDate <= '2027-03-31 00:00:00' and ServiceSetupId = 95365 and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 11:39:22,501 - 55893 - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-02-09 11:39:23,238 - 55893 - src.utils.log - INFO - Generating work orders for setup: 95365 - __SPLIT__ 2026-02-09 11:39:23,916 - 55893 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 11458;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 11:39:24,598 - 55893 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-09 11:39:25,296 - 55893 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-02-09 11:39:25,958 - 55893 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=146 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 11:39:26,641 - 55893 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-09 11:39:27,336 - 55893 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-02-09 11:39:27,993 - 55893 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-02-09 11:39:28,644 - 55893 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 95365 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 11:39:29,370 - 55893 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-09 11:39:30,027 - 55893 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 95365 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 11:39:30,743 - 55893 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-09 11:39:31,396 - 55893 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 95365 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 11:39:32,105 - 55893 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-09 11:39:32,759 - 55893 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 95365 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 11:39:33,467 - 55893 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-09 11:39:34,430 - 55893 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 95365 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 11:39:35,149 - 55893 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-09 11:39:35,818 - 55893 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 95365 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 11:39:36,758 - 55893 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-09 11:39:37,426 - 55893 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 95365 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 11:39:38,128 - 55893 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-09 11:39:38,801 - 55893 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 95365 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 11:39:39,829 - 55893 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-09 11:39:40,497 - 55893 - src.utils.log - INFO - πŸ“ Inserting 3 work orders for route: 1 - __SPLIT__ 2026-02-09 11:39:41,160 - 55893 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 3 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 11:39:41,889 - 55893 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-02-09 11:39:42,710 - 55893 - src.utils.log - INFO - βœ… All 3 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-02-09 11:39:43,386 - 55893 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 3 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-02-06 11:52:42.931' and ServiceSetupId = 95365... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 11:39:44,095 - 55893 - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-02-09 11:39:44,770 - 55893 - src.utils.log - INFO - βœ… Work order IDs inserted for route 1: 3 records - __SPLIT__ 2026-02-09 11:39:45,439 - 55893 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 95365;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 11:39:46,138 - 55893 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-09 11:39:46,803 - 55893 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-02-09 11:39:47,466 - 55893 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId = 95365... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 11:39:48,165 - 55893 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-02-09 11:39:49,108 - 55893 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId = 95365... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 11:39:49,799 - 55893 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-02-09 11:39:50,459 - 55893 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId = 95365... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 11:39:51,152 - 55893 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-02-09 11:39:51,813 - 55893 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId = 95365... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 11:39:52,501 - 55893 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-09 11:39:53,156 - 55893 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId = 95365... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 11:39:53,841 - 55893 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-09 11:39:54,498 - 55893 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId = 95365;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 11:39:55,187 - 55893 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-02-09 11:39:55,848 - 55893 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId = 95365;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 11:39:56,533 - 55893 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-09 11:39:57,203 - 55893 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId = 95365;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 11:39:58,494 - 55893 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-09 11:39:59,151 - 55893 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId = 95365;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 11:39:59,841 - 55893 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-09 11:40:00,514 - 55893 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-02-09 11:40:01,180 - 55893 - src.utils.log - INFO - πŸ“₯ Inserting into CRM.LeadNote: 0 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 11:40:01,870 - 55893 - src.utils.log - INFO - βœ… All 0 rows inserted successfully into CRM.LeadNote in 0 batches - __SPLIT__ 2026-02-09 11:40:02,529 - 55893 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-02-09 11:40:03,471 - 55893 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.CommunicationPreferencesServiceReportNotification: 0 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 11:40:04,150 - 55893 - src.utils.log - INFO - βœ… All 0 rows inserted successfully into ServiceCore.CommunicationPreferencesServiceReportNotification in 0 batches - __SPLIT__ 2026-02-09 11:40:04,803 - 55893 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-02-09 11:40:05,454 - 55893 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.SetupAutoGenerationSourceMapping: 0 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 11:40:06,134 - 55893 - src.utils.log - INFO - βœ… All 0 rows inserted successfully into ServiceCore.SetupAutoGenerationSourceMapping in 0 batches - __SPLIT__ 2026-02-09 11:40:06,789 - 55893 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-02-09 11:40:07,447 - 55893 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationAppliedDiscount: 3 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 11:40:08,174 - 55893 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into ServiceCore.WorkOrderAutoGenerationAppliedDiscount - __SPLIT__ 2026-02-09 11:40:08,941 - 55893 - src.utils.log - INFO - βœ… All 3 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationAppliedDiscount in 1 batches - __SPLIT__ 2026-02-09 11:40:09,593 - 55893 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-02-09 11:40:10,256 - 55893 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.SubWorkOrderAutoGeneration: 0 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 11:40:10,941 - 55893 - src.utils.log - INFO - βœ… All 0 rows inserted successfully into ServiceCore.SubWorkOrderAutoGeneration in 0 batches - __SPLIT__ 2026-02-09 11:40:11,598 - 55893 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-02-09 11:40:12,252 - 55893 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: 0 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 11:40:12,942 - 55893 - src.utils.log - INFO - βœ… All 0 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationCommissionAdjustment in 0 batches - __SPLIT__ 2026-02-09 11:40:13,596 - 55893 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-02-09 11:40:14,246 - 55893 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: 0 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 11:40:14,927 - 55893 - src.utils.log - INFO - βœ… All 0 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationSalesPersonCommission in 0 batches - __SPLIT__ 2026-02-09 11:40:15,582 - 55893 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-02-09 11:40:16,237 - 55893 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationCrews: 3 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 11:40:17,244 - 55893 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into ServiceCore.WorkOrderAutoGenerationCrews - __SPLIT__ 2026-02-09 11:40:18,033 - 55893 - src.utils.log - INFO - βœ… All 3 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationCrews in 1 batches - __SPLIT__ 2026-02-09 11:40:18,710 - 55893 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-02-09 11:40:19,383 - 55893 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 0 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 11:40:20,103 - 55893 - src.utils.log - INFO - βœ… All 0 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 0 batches - __SPLIT__ 2026-02-09 11:40:20,772 - 55893 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-02-09 11:40:21,446 - 55893 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 6 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 11:40:22,159 - 55893 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 6) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-02-09 11:40:22,943 - 55893 - src.utils.log - INFO - βœ… All 6 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-02-09 11:40:23,622 - 55893 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-02-09 11:40:24,297 - 55893 - src.utils.log - INFO - βœ… Temp tables populated for route: 1 - __SPLIT__ 2026-02-09 11:40:24,970 - 55893 - src.utils.log - INFO - βœ… Route 1 generation complete - __SPLIT__ 2026-02-09 11:40:25,647 - 55893 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 55893;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 11:40:26,347 - 55893 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-02-09 11:40:27,023 - 55893 - src.utils.log - INFO - ⏱️ Total time: 79.65s | Status: Completed - __SPLIT__ 2026-02-09 11:40:27,701 - 55893 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 55893;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 11:40:28,405 - 55893 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-02-09 11:40:29,090 - 55893 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET WorkOrderStatusDateTime = '2026-02-09 06:40:29.090' WHERE GenerateWorkOrderHistoryId = 55893;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 11:40:29,790 - 55893 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-02-09 11:40:30,463 - 55893 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-02-09 11:41:25,769 - [55893] - src.utils.log - INFO - ParallelProcessing=True temp_wo=[473088] user_id=44506 company_id=146 project_id=[55893] publish_all=False - __SPLIT__ 2026-02-09 11:41:26,710 - [55893] - src.utils.log - INFO - ParallelProcessing=True temp_wo=[473088] user_id=44506 company_id=146 project_id=[55893] publish_all=False - __SPLIT__ 2026-02-09 11:41:27,366 - [55893] - src.utils.log - INFO - Parallel Work order publish in progress for GenerateWorkOrderHistoryId: [55893] - __SPLIT__ 2026-02-09 11:41:28,018 - [55893] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-02-09 11:41:28,662 - [55893] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 11:41:29,491 - [55893] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-09 11:41:30,151 - [55893] - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-02-09 11:41:30,800 - [55893] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'InProgress' WHERE CompanyId = 146 AND GenerateWorkOrderHistoryId = 55893;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 11:41:31,477 - [55893] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-02-09 11:41:32,124 - [55893] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId = 473088... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 11:41:32,813 - [55893] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-09 11:41:33,496 - [55893] - src.utils.log - INFO - Inside get_work_order_table - __SPLIT__ 2026-02-09 11:41:34,154 - [55893] - 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 = 95365 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 11:41:34,838 - [55893] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-09 11:41:35,498 - [55893] - 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 = 95365 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 11:41:36,176 - [55893] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-09 11:41:36,827 - [55893] - 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 = 95365 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 11:41:37,515 - [55893] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-09 11:41:38,169 - [55893] - 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-02-09 11:41:38,853 - [55893] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-02-09 11:41:39,507 - [55893] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder,BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 146;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 11:41:40,486 - [55893] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-09 11:41:41,149 - [55893] - src.utils.log - INFO - πŸ“ Executing: UPDATE Common.GenerateNumberConfig SET NextNumber = '20100' WHERE CompanyId = 146 AND EnitityNumberType in ('WorkOrder');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 11:41:41,836 - [55893] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-02-09 11:41:42,490 - [55893] - src.utils.log - INFO - πŸ“ Executing: UPDATE Common.GenerateNumberConfig SET NextNumber = '23542' WHERE CompanyId = 146 AND EnitityNumberType in ('Invoice');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 11:41:43,177 - [55893] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-02-09 11:41:43,845 - [55893] - 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 = 95365... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 11:41:44,532 - [55893] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-09 11:41:45,200 - [55893] - src.utils.log - INFO - Size of Transaction: 1 - __SPLIT__ 2026-02-09 11:41:45,861 - [55893] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 11:41:46,560 - [55893] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-02-09 11:41:47,320 - [55893] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-02-09 11:41:47,997 - [55893] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-02-09 11:41:48,660 - [55893] - 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-02-09 06:41:45.197';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 11:41:49,455 - [55893] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-09 11:41:50,144 - [55893] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 95365;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 11:41:50,831 - [55893] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-09 11:41:51,499 - [55893] - src.utils.log - INFO - πŸ“ Executing: UPDATE Billing.[Transaction] SET ModifiedBy = NULL WHERE ModifiedBy = 12345678910 AND CreatedDate = '2026-02-09 06:41:45.197'; ... (Thread: ThreadPoolExecutor-0_0) - __SPLIT__ 2026-02-09 11:41:52,370 - [55893] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-02-09 11:41:53,032 - [55893] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 11:41:53,729 - [55893] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into Billing.Invoice - __SPLIT__ 2026-02-09 11:41:54,790 - [55893] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-02-09 11:41:55,454 - [55893] - src.utils.log - INFO - πŸ” Fetching data: SELECT InvoiceId, WorkOrderNo FROM Billing.Invoice i WHERE i.WorkOrderNo = '20099'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 11:41:56,201 - [55893] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-02-09 11:41:56,872 - [55893] - 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 = 95365 and sm.IsActive =1 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 11:41:57,572 - [55893] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-02-09 11:41:58,232 - [55893] - 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 = 95365 and sm.IsActive =1 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 11:41:58,931 - [55893] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-02-09 11:41:59,592 - [55893] - 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 = 95365 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 11:42:00,282 - [55893] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-09 11:42:00,947 - [55893] - 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 = 95365 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 11:42:01,631 - [55893] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-09 11:42:02,301 - [55893] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 95365;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 11:42:02,987 - [55893] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-09 11:42:03,653 - [55893] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId, AppliedDiscountAmt as AppliedDiscountAmount,IsActive ,ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 95365;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 11:42:04,340 - [55893] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-02-09 11:42:05,018 - [55893] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId,IsActive,DiscountAmount, IsDiscountPercent,DiscountPercent,DiscountDescription , ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 95365;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 11:42:05,712 - [55893] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-02-09 11:42:06,384 - [55893] - src.utils.log - INFO - Parallel Insertion in invoice tables begin - __SPLIT__ 2026-02-09 11:42:07,049 - [55893] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.AccountDiscountSetup: 2 rows in batches of 25000 (Thread: ThreadPoolExecutor-1_0) - __SPLIT__ 2026-02-09 11:42:07,050 - [55893] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceCharges: 4 rows in batches of 25000 (Thread: ThreadPoolExecutor-1_1) - __SPLIT__ 2026-02-09 11:42:07,050 - [55893] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.DiscountApplied: 2 rows in batches of 25000 (Thread: ThreadPoolExecutor-1_2) - __SPLIT__ 2026-02-09 11:42:07,735 - [55893] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.AccountDiscountSetup - __SPLIT__ 2026-02-09 11:42:08,756 - [55893] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 4) into Billing.InvoiceCharges - __SPLIT__ 2026-02-09 11:42:09,429 - [55893] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.DiscountApplied - __SPLIT__ 2026-02-09 11:42:10,070 - [55893] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.AccountDiscountSetup in 1 batches - __SPLIT__ 2026-02-09 11:42:10,776 - [55893] - src.utils.log - INFO - βœ… All 4 rows inserted successfully into Billing.InvoiceCharges in 1 batches - __SPLIT__ 2026-02-09 11:42:11,383 - [55893] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.DiscountApplied in 1 batches - __SPLIT__ 2026-02-09 11:42:11,950 - [55893] - src.utils.log - INFO - Insert success for table: Billing.AccountDiscountSetup - __SPLIT__ 2026-02-09 11:42:13,916 - [55893] - src.utils.log - INFO - Insert success for table: Billing.InvoiceCharges - __SPLIT__ 2026-02-09 11:42:14,571 - [55893] - src.utils.log - INFO - Insert success for table: Billing.DiscountApplied - __SPLIT__ 2026-02-09 11:42:15,233 - [55893] - src.utils.log - INFO - Invoice Publish Done - __SPLIT__ 2026-02-09 11:42:15,901 - [55893] - src.utils.log - INFO - πŸ” Fetching data: SELECT x.CompanyId FROM CRM.CompanyMaster x WHERE CompanyKey = 'Fortive';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 11:42:16,577 - [55893] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-09 11:42:17,235 - [55893] - src.utils.log - INFO - πŸ” Fetching data: SELECT CollectionStatus,IsHold,AccountNo FROM CRM.Account a WHERE a.AccountNo = '1145' and a.CompanyId = 134;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 11:42:17,915 - [55893] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-09 11:42:18,573 - [55893] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrder (skip triggers): 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 11:42:19,299 - [55893] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrder (triggers skipped) - __SPLIT__ 2026-02-09 11:42:20,077 - [55893] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrder in 1 batches (triggers skipped) - __SPLIT__ 2026-02-09 11:42:20,749 - [55893] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-02-09 11:42:21,406 - [55893] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkorderId, WorkOrderNo FROM ServiceCore.WorkOrder wo WHERE wo.WorkOrderNo = '20099' AND wo.AccountNumber = '1145' AND wo.CompanyId = 146 ... (Thread: ThreadPoolExecutor-2_0) - __SPLIT__ 2026-02-09 11:42:22,391 - [55893] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-09 11:42:23,053 - [55893] - src.utils.log - INFO - Parallel fetching temp table records - __SPLIT__ 2026-02-09 11:42:23,719 - [55893] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationServices woag WHERE woag.WorkOrderAutoGenerationId = 473088... (Thread: ThreadPoolExecutor-3_0) - __SPLIT__ 2026-02-09 11:42:23,721 - [55893] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SubWorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId = 473088... (Thread: ThreadPoolExecutor-3_1) - __SPLIT__ 2026-02-09 11:42:23,721 - [55893] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationCrews woag WHERE woag.WorkOrderAutoGenerationId = 473088... (Thread: ThreadPoolExecutor-3_2) - __SPLIT__ 2026-02-09 11:42:23,721 - [55893] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationSalesPersonCommission woag WHERE woag.WorkOrderAutoGenerationId = 473088... (Thread: ThreadPoolExecutor-3_3) - __SPLIT__ 2026-02-09 11:42:23,722 - [55893] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupAutoGenerationSourceMapping woag WHERE woag.WorkOrderAutoGenerationId = 473088... (Thread: ThreadPoolExecutor-3_4) - __SPLIT__ 2026-02-09 11:42:23,722 - [55893] - 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 = 473088... (Thread: ThreadPoolExecutor-3_5) - __SPLIT__ 2026-02-09 11:42:23,722 - [55893] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from CRM.LeadNote woag WHERE woag.RefId = 473088 and woag.RefType = 'TempWorkorder';... (Thread: ThreadPoolExecutor-3_6) - __SPLIT__ 2026-02-09 11:42:23,722 - [55893] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment woagca WHERE woagca.WorkOrderAutoGenerationId = 473088;... (Thread: ThreadPoolExecutor-3_7) - __SPLIT__ 2026-02-09 11:42:24,412 - [55893] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-02-09 11:42:25,094 - [55893] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-09 11:42:25,741 - [55893] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-09 11:42:26,465 - [55893] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-09 11:42:27,151 - [55893] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-09 11:42:27,815 - [55893] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-09 11:42:28,494 - [55893] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-09 11:42:29,156 - [55893] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-09 11:42:34,391 - [55893] - src.utils.log - INFO - Updating temp tables - __SPLIT__ 2026-02-09 11:42:35,074 - [55893] - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyKey FROM Common.CompanyMaster cm WHERE CompanyId = 146;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 11:42:36,061 - [55893] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-09 11:42:36,738 - [55893] - src.utils.log - INFO - πŸ” Fetching data: Select DiscountSetupId, [SysName] as DiscountSysName from Common.DiscountSetupMaster WHERE DiscountSetupId = 337 AND CompanyId = 146 AND IsActive = 1;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 11:42:37,444 - [55893] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-09 11:42:38,123 - [55893] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 146 AND EnitityNumberType in ('SubWorkOrder'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 11:42:38,825 - [55893] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-09 11:42:39,501 - [55893] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishHistory: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 11:42:40,288 - [55893] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderAutoGenerationPublishHistory - __SPLIT__ 2026-02-09 11:42:41,051 - [55893] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishHistory in 1 batches - __SPLIT__ 2026-02-09 11:42:41,719 - [55893] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationPublishHistoryId, WorkOrderNo, ServiceSetupId FROM ServiceCore.WorkOrderAutoGenerationPublishHistory WHERE ServiceSetupId = 95365 AND WorkOrderNo = '8821937' AND GenerateWorkOrderHistoryId = 55893; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 11:42:42,444 - [55893] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-09 11:42:43,126 - [55893] - src.utils.log - INFO - Parallel Insertion in work order tables begin - __SPLIT__ 2026-02-09 11:42:43,799 - [55893] - src.utils.log - INFO - πŸ“₯ Inserting into CRM.LeadNote: 0 rows in batches of 25000 (Thread: ThreadPoolExecutor-4_0) - __SPLIT__ 2026-02-09 11:42:43,800 - [55893] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.WorkOrderAppliedDiscount: 1 rows in batches of 25000 (Thread: ThreadPoolExecutor-4_1) - __SPLIT__ 2026-02-09 11:42:43,801 - [55893] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderSalesPersonCommission: 0 rows in batches of 25000 (Thread: ThreadPoolExecutor-4_2) - __SPLIT__ 2026-02-09 11:42:43,801 - [55893] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.WorkOrderCommissionAdjustment: 0 rows in batches of 25000 (Thread: ThreadPoolExecutor-4_3) - __SPLIT__ 2026-02-09 11:42:43,801 - [55893] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderServices: 2 rows in batches of 25000 (Thread: ThreadPoolExecutor-4_4) - __SPLIT__ 2026-02-09 11:42:43,802 - [55893] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.SubWorkOrder: 0 rows in batches of 25000 (Thread: ThreadPoolExecutor-4_5) - __SPLIT__ 2026-02-09 11:42:43,802 - [55893] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderCrew: 1 rows in batches of 25000 (Thread: ThreadPoolExecutor-4_6) - __SPLIT__ 2026-02-09 11:42:43,803 - [55893] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkorderSourceMapping: 0 rows in batches of 25000 (Thread: ThreadPoolExecutor-4_7) - __SPLIT__ 2026-02-09 11:42:43,803 - [55893] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishServices: 2 rows in batches of 25000 (Thread: ThreadPoolExecutor-4_8) - __SPLIT__ 2026-02-09 11:42:44,489 - [55893] - src.utils.log - INFO - βœ… All 0 rows inserted successfully into CRM.LeadNote in 0 batches - __SPLIT__ 2026-02-09 11:42:45,162 - [55893] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceAuto.WorkOrderAppliedDiscount - __SPLIT__ 2026-02-09 11:42:45,823 - [55893] - src.utils.log - INFO - βœ… All 0 rows inserted successfully into ServiceCore.WorkOrderSalesPersonCommission in 0 batches - __SPLIT__ 2026-02-09 11:42:46,488 - [55893] - src.utils.log - INFO - βœ… All 0 rows inserted successfully into ServiceAuto.WorkOrderCommissionAdjustment in 0 batches - __SPLIT__ 2026-02-09 11:42:47,183 - [55893] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderServices - __SPLIT__ 2026-02-09 11:42:47,828 - [55893] - src.utils.log - INFO - βœ… All 0 rows inserted successfully into ServiceCore.SubWorkOrder in 0 batches - __SPLIT__ 2026-02-09 11:42:48,524 - [55893] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderCrew - __SPLIT__ 2026-02-09 11:42:49,181 - [55893] - src.utils.log - INFO - βœ… All 0 rows inserted successfully into ServiceCore.WorkorderSourceMapping in 0 batches - __SPLIT__ 2026-02-09 11:42:50,230 - [55893] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationPublishServices - __SPLIT__ 2026-02-09 11:42:50,779 - [55893] - src.utils.log - INFO - [OK] Lead Notes completed. - __SPLIT__ 2026-02-09 11:42:51,573 - [55893] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceAuto.WorkOrderAppliedDiscount in 1 batches - __SPLIT__ 2026-02-09 11:42:53,550 - [55893] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderServices in 1 batches - __SPLIT__ 2026-02-09 11:42:54,868 - [55893] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderCrew in 1 batches - __SPLIT__ 2026-02-09 11:42:56,211 - [55893] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishServices in 1 batches - __SPLIT__ 2026-02-09 11:42:56,771 - [55893] - src.utils.log - INFO - [OK] Sales Person Commission completed. - __SPLIT__ 2026-02-09 11:43:00,088 - [55893] - src.utils.log - INFO - [OK] Adjustment completed. - __SPLIT__ 2026-02-09 11:43:00,751 - [55893] - src.utils.log - INFO - [OK] Sub WO completed. - __SPLIT__ 2026-02-09 11:43:01,408 - [55893] - src.utils.log - INFO - [OK] Source Mapping completed. - __SPLIT__ 2026-02-09 11:43:02,076 - [55893] - src.utils.log - INFO - [OK] Discount Applied completed. - __SPLIT__ 2026-02-09 11:43:02,745 - [55893] - src.utils.log - INFO - [OK] Services completed. - __SPLIT__ 2026-02-09 11:43:03,705 - [55893] - src.utils.log - INFO - [OK] Crew completed. - __SPLIT__ 2026-02-09 11:43:04,371 - [55893] - src.utils.log - INFO - [OK] Publish Services completed. - __SPLIT__ 2026-02-09 11:43:05,038 - [55893] - src.utils.log - INFO - All publish tasks completed successfully. - __SPLIT__ 2026-02-09 11:43:05,707 - [55893] - src.utils.log - INFO - Updating Next GenerationDate - __SPLIT__ 2026-02-09 11:43:06,376 - [55893] - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, MAX(NextWorkOrderGenerationDate) AS MaxNextWorkOrderGeneration FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 55893 GROUP BY ServiceSetupId; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 11:43:07,069 - [55893] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-09 11:43:07,738 - [55893] - src.utils.log - INFO - πŸ”„ Updating next gen date parallely: inside update_next_workorder_generation - __SPLIT__ 2026-02-09 11:43:08,425 - [55893] - src.utils.log - INFO - πŸ›  Creating temp table #tbl_45d45ef637 - __SPLIT__ 2026-02-09 11:43:09,104 - [55893] - src.utils.log - INFO - πŸ“Œ Bulk inserting 1 rows into #tbl_45d45ef637 - __SPLIT__ 2026-02-09 11:43:09,823 - [55893] - src.utils.log - INFO - πŸ” Running UPDATE to apply changes - __SPLIT__ 2026-02-09 11:43:10,519 - [55893] - src.utils.log - INFO - βœ” SQL reported affected rows: 1 - __SPLIT__ 2026-02-09 11:43:11,186 - [55893] - src.utils.log - INFO - πŸŽ‰ Successfully updated NextGenerationDate using temp table #tbl_45d45ef637 - __SPLIT__ 2026-02-09 11:43:11,854 - [55893] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 55893 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 11:43:12,543 - [55893] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-09 11:43:13,212 - [55893] - src.utils.log - INFO - Parallel deletion from temp tables begin - __SPLIT__ 2026-02-09 11:43:13,884 - [55893] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId = 473088 (Thread: ThreadPoolExecutor-6_0) - __SPLIT__ 2026-02-09 11:43:13,886 - [55893] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId = 473088 (Thread: ThreadPoolExecutor-6_1) - __SPLIT__ 2026-02-09 11:43:13,886 - [55893] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId = 473088 (Thread: ThreadPoolExecutor-6_2) - __SPLIT__ 2026-02-09 11:43:13,886 - [55893] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId = 473088 (Thread: ThreadPoolExecutor-6_3) - __SPLIT__ 2026-02-09 11:43:13,886 - [55893] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId = 473088 (Thread: ThreadPoolExecutor-6_4) - __SPLIT__ 2026-02-09 11:43:13,887 - [55893] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 473088 (Thread: ThreadPoolExecutor-6_5) - __SPLIT__ 2026-02-09 11:43:13,887 - [55893] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId = 473088 (Thread: ThreadPoolExecutor-6_6) - __SPLIT__ 2026-02-09 11:43:14,609 - [55893] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-09 11:43:15,267 - [55893] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-09 11:43:15,921 - [55893] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-09 11:43:16,602 - [55893] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-09 11:43:17,560 - [55893] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-09 11:43:18,249 - [55893] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-09 11:43:18,889 - [55893] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-09 11:43:19,535 - [55893] - src.utils.log - INFO - [OK] Deleted from Services - __SPLIT__ 2026-02-09 11:43:24,242 - [55893] - src.utils.log - INFO - [OK] Deleted from Crews - __SPLIT__ 2026-02-09 11:43:24,906 - [55893] - src.utils.log - INFO - [OK] Deleted from SalesPersonCommission - __SPLIT__ 2026-02-09 11:43:25,578 - [55893] - src.utils.log - INFO - [OK] Deleted from AppliedDiscount - __SPLIT__ 2026-02-09 11:43:26,248 - [55893] - src.utils.log - INFO - [OK] Deleted from SourceMapping - __SPLIT__ 2026-02-09 11:43:26,919 - [55893] - src.utils.log - INFO - [OK] Deleted from SubWorkOrder - __SPLIT__ 2026-02-09 11:43:27,586 - [55893] - src.utils.log - INFO - [OK] Deleted from Adjustment - __SPLIT__ 2026-02-09 11:43:28,254 - [55893] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 473088 (Thread: ThreadPoolExecutor-5_0) - __SPLIT__ 2026-02-09 11:43:28,980 - [55893] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-09 11:43:29,650 - [55893] - src.utils.log - INFO - βœ” Completed batch of 1 records - __SPLIT__ 2026-02-09 11:43:30,319 - [55893] - src.utils.log - INFO - πŸŽ‰ All batches processed. - __SPLIT__ 2026-02-09 11:43:31,292 - [55893] - src.utils.log - INFO - Work order published ids: (473088,) - __SPLIT__ 2026-02-09 11:43:31,971 - [55893] - src.utils.log - INFO - Time took to perform operation in publishing [55893]: 123.95 - __SPLIT__ 2026-02-09 11:43:32,662 - [55893] - src.utils.log - INFO - Publish Completed for GenerateWorkOrderHistoryId: [55893] - __SPLIT__ 2026-02-09 11:43:33,344 - [55893] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-02-09 06:43:31.292' WHERE CompanyId = 146 AND GenerateWorkOrderHistoryId = 55893;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-09 11:43:34,053 - [55893] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-02-11 09:31:51,776 - [55894] - src.utils.log - INFO - ParallelProcessing=True temp_wo=[473089, 473090] user_id=44506 company_id=146 project_id=[55894] publish_all=False - __SPLIT__ 2026-02-11 09:31:52,778 - [55894] - src.utils.log - INFO - ParallelProcessing=True temp_wo=[473089, 473090] user_id=44506 company_id=146 project_id=[55894] publish_all=False - __SPLIT__ 2026-02-11 09:31:53,452 - [55894] - src.utils.log - INFO - Parallel Work order publish in progress for GenerateWorkOrderHistoryId: [55894] - __SPLIT__ 2026-02-11 09:31:54,121 - [55894] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-02-11 09:31:54,784 - [55894] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 09:31:55,631 - [55894] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-11 09:31:56,300 - [55894] - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-02-11 09:31:56,966 - [55894] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'InProgress' WHERE CompanyId = 146 AND GenerateWorkOrderHistoryId = 55894;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 09:31:57,661 - [55894] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-02-11 09:31:58,332 - [55894] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (473089, 473090)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 09:31:59,031 - [55894] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-02-11 09:31:59,698 - [55894] - src.utils.log - INFO - Inside get_work_order_table - __SPLIT__ 2026-02-11 09:32:00,366 - [55894] - 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 = 95367 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 09:32:01,066 - [55894] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-11 09:32:01,732 - [55894] - 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 = 95367 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 09:32:02,424 - [55894] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-11 09:32:03,097 - [55894] - 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 = 95367 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 09:32:03,799 - [55894] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-11 09:32:04,471 - [55894] - 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-02-11 09:32:05,172 - [55894] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-02-11 09:32:05,860 - [55894] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder,BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 146;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 09:32:06,854 - [55894] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-11 09:32:07,534 - [55894] - src.utils.log - INFO - πŸ“ Executing: UPDATE Common.GenerateNumberConfig SET NextNumber = '20105' WHERE CompanyId = 146 AND EnitityNumberType in ('WorkOrder');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 09:32:08,240 - [55894] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-02-11 09:32:08,906 - [55894] - src.utils.log - INFO - πŸ“ Executing: UPDATE Common.GenerateNumberConfig SET NextNumber = '23547' WHERE CompanyId = 146 AND EnitityNumberType in ('Invoice');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 09:32:09,597 - [55894] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-02-11 09:32:10,263 - [55894] - 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 = 95367... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 09:32:10,965 - [55894] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-11 09:32:11,645 - [55894] - src.utils.log - INFO - Size of Transaction: 2 - __SPLIT__ 2026-02-11 09:32:12,310 - [55894] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 09:32:13,032 - [55894] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-02-11 09:32:13,812 - [55894] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-02-11 09:32:14,492 - [55894] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-02-11 09:32:15,161 - [55894] - 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 = 146 AND t.TransactionType ='Invoice' AND t.CreatedDate = '2026-02-11 04:32:11.641';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 09:32:15,953 - [55894] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-02-11 09:32:16,615 - [55894] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 95367;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 09:32:17,306 - [55894] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-11 09:32:17,979 - [55894] - src.utils.log - INFO - πŸ“ Executing: UPDATE Billing.[Transaction] SET ModifiedBy = NULL WHERE ModifiedBy IN (12345678910,12345678911) AND CreatedDate = '2026-02-11 04:32:11.641'; ... (Thread: ThreadPoolExecutor-16_0) - __SPLIT__ 2026-02-11 09:32:19,189 - [55894] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-02-11 09:32:19,866 - [55894] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 09:32:20,580 - [55894] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.Invoice - __SPLIT__ 2026-02-11 09:32:21,646 - [55894] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-02-11 09:32:22,324 - [55894] - src.utils.log - INFO - πŸ” Fetching data: SELECT InvoiceId, WorkOrderNo FROM Billing.Invoice i WHERE i.WorkOrderNo in ('20103', '20104')... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 09:32:23,071 - [55894] - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-02-11 09:32:23,746 - [55894] - 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 = 95367 and sm.IsActive =1 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 09:32:24,444 - [55894] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-11 09:32:25,114 - [55894] - 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 = 95367 and sm.IsActive =1 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 09:32:25,815 - [55894] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-11 09:32:26,487 - [55894] - 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 = 95367 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 09:32:27,183 - [55894] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-11 09:32:27,857 - [55894] - 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 = 95367 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 09:32:28,547 - [55894] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-11 09:32:29,226 - [55894] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 95367;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 09:32:29,918 - [55894] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-11 09:32:30,586 - [55894] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId, AppliedDiscountAmt as AppliedDiscountAmount,IsActive ,ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 95367;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 09:32:31,283 - [55894] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-11 09:32:31,957 - [55894] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId,IsActive,DiscountAmount, IsDiscountPercent,DiscountPercent,DiscountDescription , ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 95367;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 09:32:32,653 - [55894] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-11 09:32:33,322 - [55894] - src.utils.log - INFO - Parallel Insertion in invoice tables begin - __SPLIT__ 2026-02-11 09:32:34,017 - [55894] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.AccountDiscountSetup: 0 rows in batches of 25000 (Thread: ThreadPoolExecutor-17_0) - __SPLIT__ 2026-02-11 09:32:34,017 - [55894] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceCharges: 4 rows in batches of 25000 (Thread: ThreadPoolExecutor-17_1) - __SPLIT__ 2026-02-11 09:32:34,017 - [55894] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.DiscountApplied: 0 rows in batches of 25000 (Thread: ThreadPoolExecutor-17_2) - __SPLIT__ 2026-02-11 09:32:34,730 - [55894] - src.utils.log - INFO - βœ… All 0 rows inserted successfully into Billing.AccountDiscountSetup in 0 batches - __SPLIT__ 2026-02-11 09:32:35,742 - [55894] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 4) into Billing.InvoiceCharges - __SPLIT__ 2026-02-11 09:32:36,428 - [55894] - src.utils.log - INFO - βœ… All 0 rows inserted successfully into Billing.DiscountApplied in 0 batches - __SPLIT__ 2026-02-11 09:32:36,963 - [55894] - src.utils.log - INFO - Insert success for table: Billing.AccountDiscountSetup - __SPLIT__ 2026-02-11 09:32:38,967 - [55894] - src.utils.log - INFO - Insert success for table: Billing.DiscountApplied - __SPLIT__ 2026-02-11 09:32:37,755 - [55894] - src.utils.log - INFO - βœ… All 4 rows inserted successfully into Billing.InvoiceCharges in 1 batches - __SPLIT__ 2026-02-11 09:32:40,280 - [55894] - src.utils.log - INFO - Insert success for table: Billing.InvoiceCharges - __SPLIT__ 2026-02-11 09:32:40,937 - [55894] - src.utils.log - INFO - Invoice Publish Done - __SPLIT__ 2026-02-11 09:32:41,597 - [55894] - src.utils.log - INFO - πŸ” Fetching data: SELECT x.CompanyId FROM CRM.CompanyMaster x WHERE CompanyKey = 'Fortive';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 09:32:42,280 - [55894] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-11 09:32:42,936 - [55894] - src.utils.log - INFO - πŸ” Fetching data: SELECT CollectionStatus,IsHold,AccountNo FROM CRM.Account a WHERE a.AccountNo = '1154' and a.CompanyId = 134;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 09:32:43,618 - [55894] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-11 09:32:44,273 - [55894] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrder (skip triggers): 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 09:32:45,076 - [55894] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrder (triggers skipped) - __SPLIT__ 2026-02-11 09:32:45,852 - [55894] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrder in 1 batches (triggers skipped) - __SPLIT__ 2026-02-11 09:32:46,519 - [55894] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-02-11 09:32:47,182 - [55894] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.ServiceSetup SET IsInitialWoGenerated = 1 WHERE CompanyId = 146 AND ServiceSetupId = 95367;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 09:32:47,870 - [55894] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-02-11 09:32:48,528 - [55894] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkorderId, WorkOrderNo FROM ServiceCore.WorkOrder wo WHERE wo.WorkOrderNo IN ('20103', '20104') AND wo.AccountNumber = '1154' AND wo.CompanyId = 146 ... (Thread: ThreadPoolExecutor-18_0) - __SPLIT__ 2026-02-11 09:32:49,512 - [55894] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-02-11 09:32:50,178 - [55894] - src.utils.log - INFO - Parallel fetching temp table records - __SPLIT__ 2026-02-11 09:32:50,849 - [55894] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationServices woag WHERE woag.WorkOrderAutoGenerationId in (473089, 473090)... (Thread: ThreadPoolExecutor-19_0) - __SPLIT__ 2026-02-11 09:32:50,849 - [55894] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SubWorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (473089, 473090)... (Thread: ThreadPoolExecutor-19_1) - __SPLIT__ 2026-02-11 09:32:50,850 - [55894] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationCrews woag WHERE woag.WorkOrderAutoGenerationId in (473089, 473090)... (Thread: ThreadPoolExecutor-19_2) - __SPLIT__ 2026-02-11 09:32:50,850 - [55894] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationSalesPersonCommission woag WHERE woag.WorkOrderAutoGenerationId in (473089, 473090)... (Thread: ThreadPoolExecutor-19_3) - __SPLIT__ 2026-02-11 09:32:50,850 - [55894] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupAutoGenerationSourceMapping woag WHERE woag.WorkOrderAutoGenerationId in (473089, 473090)... (Thread: ThreadPoolExecutor-19_4) - __SPLIT__ 2026-02-11 09:32:50,852 - [55894] - 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 (473089, 473090)... (Thread: ThreadPoolExecutor-19_5) - __SPLIT__ 2026-02-11 09:32:50,852 - [55894] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from CRM.LeadNote woag WHERE woag.RefId in (473089, 473090) and woag.RefType = 'TempWorkorder';... (Thread: ThreadPoolExecutor-19_6) - __SPLIT__ 2026-02-11 09:32:50,853 - [55894] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment woagca WHERE woagca.WorkOrderAutoGenerationId in (473089, 473090);... (Thread: ThreadPoolExecutor-19_7) - __SPLIT__ 2026-02-11 09:32:51,560 - [55894] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-02-11 09:32:52,410 - [55894] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-11 09:32:52,891 - [55894] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-02-11 09:32:53,617 - [55894] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-11 09:32:54,298 - [55894] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-11 09:32:54,955 - [55894] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-11 09:32:55,626 - [55894] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-11 09:32:56,292 - [55894] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-11 09:33:01,531 - [55894] - src.utils.log - INFO - Updating temp tables - __SPLIT__ 2026-02-11 09:33:02,212 - [55894] - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyKey FROM Common.CompanyMaster cm WHERE CompanyId = 146;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 09:33:03,197 - [55894] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-11 09:33:03,863 - [55894] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 146 AND EnitityNumberType in ('SubWorkOrder'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 09:33:04,558 - [55894] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-11 09:33:05,229 - [55894] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishHistory: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 09:33:05,970 - [55894] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationPublishHistory - __SPLIT__ 2026-02-11 09:33:06,793 - [55894] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishHistory in 1 batches - __SPLIT__ 2026-02-11 09:33:07,465 - [55894] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationPublishHistoryId, WorkOrderNo, ServiceSetupId FROM ServiceCore.WorkOrderAutoGenerationPublishHistory WHERE ServiceSetupId = 95367 AND WorkOrderNo IN ('893476', '1717558') AND GenerateWorkOrderHistoryId = 55894;... (Thread: ThreadPoolExecutor-20_0) - __SPLIT__ 2026-02-11 09:33:08,180 - [55894] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-02-11 09:33:08,850 - [55894] - src.utils.log - INFO - 🏁 Final merged rows: 2 - __SPLIT__ 2026-02-11 09:33:09,516 - [55894] - src.utils.log - INFO - Parallel Insertion in work order tables begin - __SPLIT__ 2026-02-11 09:33:10,181 - [55894] - src.utils.log - INFO - πŸ“₯ Inserting into CRM.LeadNote: 0 rows in batches of 25000 (Thread: ThreadPoolExecutor-21_0) - __SPLIT__ 2026-02-11 09:33:10,181 - [55894] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.WorkOrderAppliedDiscount: 0 rows in batches of 25000 (Thread: ThreadPoolExecutor-21_1) - __SPLIT__ 2026-02-11 09:33:10,182 - [55894] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderSalesPersonCommission: 0 rows in batches of 25000 (Thread: ThreadPoolExecutor-21_2) - __SPLIT__ 2026-02-11 09:33:10,182 - [55894] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.WorkOrderCommissionAdjustment: 0 rows in batches of 25000 (Thread: ThreadPoolExecutor-21_3) - __SPLIT__ 2026-02-11 09:33:10,182 - [55894] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderServices: 2 rows in batches of 25000 (Thread: ThreadPoolExecutor-21_4) - __SPLIT__ 2026-02-11 09:33:10,183 - [55894] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.SubWorkOrder: 0 rows in batches of 25000 (Thread: ThreadPoolExecutor-21_5) - __SPLIT__ 2026-02-11 09:33:10,185 - [55894] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishServices: 2 rows in batches of 25000 (Thread: ThreadPoolExecutor-21_8) - __SPLIT__ 2026-02-11 09:33:10,184 - [55894] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderCrew: 2 rows in batches of 25000 (Thread: ThreadPoolExecutor-21_6) - __SPLIT__ 2026-02-11 09:33:10,184 - [55894] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkorderSourceMapping: 0 rows in batches of 25000 (Thread: ThreadPoolExecutor-21_7) - __SPLIT__ 2026-02-11 09:33:10,874 - [55894] - src.utils.log - INFO - βœ… All 0 rows inserted successfully into CRM.LeadNote in 0 batches - __SPLIT__ 2026-02-11 09:33:11,548 - [55894] - src.utils.log - INFO - βœ… All 0 rows inserted successfully into ServiceAuto.WorkOrderAppliedDiscount in 0 batches - __SPLIT__ 2026-02-11 09:33:12,210 - [55894] - src.utils.log - INFO - βœ… All 0 rows inserted successfully into ServiceCore.WorkOrderSalesPersonCommission in 0 batches - __SPLIT__ 2026-02-11 09:33:12,875 - [55894] - src.utils.log - INFO - βœ… All 0 rows inserted successfully into ServiceAuto.WorkOrderCommissionAdjustment in 0 batches - __SPLIT__ 2026-02-11 09:33:13,539 - [55894] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderServices - __SPLIT__ 2026-02-11 09:33:14,211 - [55894] - src.utils.log - INFO - βœ… All 0 rows inserted successfully into ServiceCore.SubWorkOrder in 0 batches - __SPLIT__ 2026-02-11 09:33:14,886 - [55894] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationPublishServices - __SPLIT__ 2026-02-11 09:33:15,546 - [55894] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderCrew - __SPLIT__ 2026-02-11 09:33:16,307 - [55894] - src.utils.log - INFO - βœ… All 0 rows inserted successfully into ServiceCore.WorkorderSourceMapping in 0 batches - __SPLIT__ 2026-02-11 09:33:17,123 - [55894] - src.utils.log - INFO - [OK] Lead Notes completed. - __SPLIT__ 2026-02-11 09:33:19,875 - [55894] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderServices in 1 batches - __SPLIT__ 2026-02-11 09:33:21,222 - [55894] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishServices in 1 batches - __SPLIT__ 2026-02-11 09:33:21,884 - [55894] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderCrew in 1 batches - __SPLIT__ 2026-02-11 09:33:23,121 - [55894] - src.utils.log - INFO - [OK] Discount Applied completed. - __SPLIT__ 2026-02-11 09:33:25,781 - [55894] - src.utils.log - INFO - [OK] Sales Person Commission completed. - __SPLIT__ 2026-02-11 09:33:26,447 - [55894] - src.utils.log - INFO - [OK] Adjustment completed. - __SPLIT__ 2026-02-11 09:33:27,112 - [55894] - src.utils.log - INFO - [OK] Sub WO completed. - __SPLIT__ 2026-02-11 09:33:27,775 - [55894] - src.utils.log - INFO - [OK] Source Mapping completed. - __SPLIT__ 2026-02-11 09:33:28,442 - [55894] - src.utils.log - INFO - [OK] Services completed. - __SPLIT__ 2026-02-11 09:33:29,104 - [55894] - src.utils.log - INFO - [OK] Publish Services completed. - __SPLIT__ 2026-02-11 09:33:29,767 - [55894] - src.utils.log - INFO - [OK] Crew completed. - __SPLIT__ 2026-02-11 09:33:30,719 - [55894] - src.utils.log - INFO - All publish tasks completed successfully. - __SPLIT__ 2026-02-11 09:33:31,388 - [55894] - src.utils.log - INFO - Updating Next GenerationDate - __SPLIT__ 2026-02-11 09:33:32,057 - [55894] - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, MAX(NextWorkOrderGenerationDate) AS MaxNextWorkOrderGeneration FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 55894 GROUP BY ServiceSetupId; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 09:33:32,765 - [55894] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-11 09:33:33,439 - [55894] - src.utils.log - INFO - πŸ”„ Updating next gen date parallely: inside update_next_workorder_generation - __SPLIT__ 2026-02-11 09:33:34,117 - [55894] - src.utils.log - INFO - πŸ›  Creating temp table #tbl_592dda5202 - __SPLIT__ 2026-02-11 09:33:34,790 - [55894] - src.utils.log - INFO - πŸ“Œ Bulk inserting 1 rows into #tbl_592dda5202 - __SPLIT__ 2026-02-11 09:33:35,502 - [55894] - src.utils.log - INFO - πŸ” Running UPDATE to apply changes - __SPLIT__ 2026-02-11 09:33:36,195 - [55894] - src.utils.log - INFO - βœ” SQL reported affected rows: 1 - __SPLIT__ 2026-02-11 09:33:36,861 - [55894] - src.utils.log - INFO - πŸŽ‰ Successfully updated NextGenerationDate using temp table #tbl_592dda5202 - __SPLIT__ 2026-02-11 09:33:37,518 - [55894] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 55894 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 09:33:38,203 - [55894] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-11 09:33:38,869 - [55894] - src.utils.log - INFO - Parallel deletion from temp tables begin - __SPLIT__ 2026-02-11 09:33:39,523 - [55894] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId in (473089, 473090) (Thread: ThreadPoolExecutor-23_0) - __SPLIT__ 2026-02-11 09:33:39,523 - [55894] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId in (473089, 473090) (Thread: ThreadPoolExecutor-23_1) - __SPLIT__ 2026-02-11 09:33:39,523 - [55894] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId in (473089, 473090) (Thread: ThreadPoolExecutor-23_2) - __SPLIT__ 2026-02-11 09:33:39,524 - [55894] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId in (473089, 473090) (Thread: ThreadPoolExecutor-23_3) - __SPLIT__ 2026-02-11 09:33:39,525 - [55894] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId in (473089, 473090) (Thread: ThreadPoolExecutor-23_4) - __SPLIT__ 2026-02-11 09:33:39,527 - [55894] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (473089, 473090) (Thread: ThreadPoolExecutor-23_5) - __SPLIT__ 2026-02-11 09:33:39,527 - [55894] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId in (473089, 473090) (Thread: ThreadPoolExecutor-23_6) - __SPLIT__ 2026-02-11 09:33:40,281 - [55894] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-11 09:33:40,908 - [55894] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-11 09:33:41,558 - [55894] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-11 09:33:42,223 - [55894] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-11 09:33:42,900 - [55894] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-11 09:33:43,592 - [55894] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-11 09:33:44,557 - [55894] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-11 09:33:45,207 - [55894] - src.utils.log - INFO - [OK] Deleted from Services - __SPLIT__ 2026-02-11 09:33:50,064 - [55894] - src.utils.log - INFO - [OK] Deleted from Crews - __SPLIT__ 2026-02-11 09:33:50,745 - [55894] - src.utils.log - INFO - [OK] Deleted from SalesPersonCommission - __SPLIT__ 2026-02-11 09:33:51,422 - [55894] - src.utils.log - INFO - [OK] Deleted from AppliedDiscount - __SPLIT__ 2026-02-11 09:33:52,103 - [55894] - src.utils.log - INFO - [OK] Deleted from SourceMapping - __SPLIT__ 2026-02-11 09:33:52,780 - [55894] - src.utils.log - INFO - [OK] Deleted from SubWorkOrder - __SPLIT__ 2026-02-11 09:33:53,464 - [55894] - src.utils.log - INFO - [OK] Deleted from Adjustment - __SPLIT__ 2026-02-11 09:33:54,149 - [55894] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (473089, 473090) (Thread: ThreadPoolExecutor-22_0) - __SPLIT__ 2026-02-11 09:33:54,922 - [55894] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-11 09:33:55,611 - [55894] - src.utils.log - INFO - βœ” Completed batch of 2 records - __SPLIT__ 2026-02-11 09:33:56,295 - [55894] - src.utils.log - INFO - πŸŽ‰ All batches processed. - __SPLIT__ 2026-02-11 09:33:56,981 - [55894] - src.utils.log - INFO - Work order published ids: (473089, 473090) - __SPLIT__ 2026-02-11 09:33:57,661 - [55894] - src.utils.log - INFO - Time took to perform operation in publishing [55894]: 123.54 - __SPLIT__ 2026-02-11 09:33:58,622 - [55894] - src.utils.log - INFO - Publish Completed for GenerateWorkOrderHistoryId: [55894] - __SPLIT__ 2026-02-11 09:33:59,285 - [55894] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-02-11 04:33:56.981' WHERE CompanyId = 146 AND GenerateWorkOrderHistoryId = 55894;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 09:33:59,983 - [55894] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-02-11 13:10:24,182 - 55897 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=55897 - __SPLIT__ 2026-02-11 13:10:25,178 - 55897 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 55897 - __SPLIT__ 2026-02-11 13:10:25,853 - 55897 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-02-11 13:10:26,543 - 55897 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Samsung'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 13:10:27,472 - 55897 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-11 13:10:28,137 - 55897 - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-02-11 13:10:28,817 - 55897 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 55897;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 13:10:29,527 - 55897 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-02-11 13:10:30,206 - 55897 - 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 = 55897), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 55897), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 55897 AND ss.FrequencyScheduleId IS NOT NULL AND ss.IsActive = 1 AND ss.IsDeleted = 0 AND ss.Status <> 'Canceled';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 13:10:31,008 - 55897 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-11 13:10:31,679 - 55897 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 55897;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 13:10:32,379 - 55897 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-11 13:10:33,059 - 55897 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-02-11 13:10:33,738 - 55897 - 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 = 14845... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 13:10:34,460 - 55897 - src.utils.log - INFO - βœ… Fetched 60 rows - __SPLIT__ 2026-02-11 13:10:35,134 - 55897 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-02-11 13:10:35,814 - 55897 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-02-11 13:10:36,492 - 55897 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 95370;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 13:10:37,204 - 55897 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-11 13:10:37,880 - 55897 - src.utils.log - INFO - πŸ” Fetching data: select ServiceDate, ServiceSetupId from serviceCore.WorkOrder wo inner join ServiceCore.WorkOrderStatus wos on wo.WoStatusId = wos.WoStatusId where ServiceDate >= '2026-02-11 00:00:00' and ServiceDate <= '2026-03-31 00:00:00' and ServiceSetupId = 95370 and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 13:10:38,609 - 55897 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-02-11 13:10:39,646 - 55897 - src.utils.log - INFO - Generating work orders for setup: 95370 - __SPLIT__ 2026-02-11 13:10:40,422 - 55897 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-02-11 13:10:41,087 - 55897 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=145 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 13:10:41,774 - 55897 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-11 13:10:42,431 - 55897 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-02-11 13:10:43,087 - 55897 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-02-11 13:10:43,739 - 55897 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 95370 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 13:10:44,474 - 55897 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-11 13:10:45,130 - 55897 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 95370 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 13:10:45,841 - 55897 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-11 13:10:46,500 - 55897 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 95370 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 13:10:47,209 - 55897 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-11 13:10:47,869 - 55897 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 95370 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 13:10:48,581 - 55897 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-11 13:10:49,263 - 55897 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 95370 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 13:10:49,970 - 55897 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-11 13:10:50,633 - 55897 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 95370 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 13:10:51,357 - 55897 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-11 13:10:52,011 - 55897 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 95370 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 13:10:52,709 - 55897 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-11 13:10:53,669 - 55897 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 95370 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 13:10:54,700 - 55897 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-11 13:10:55,370 - 55897 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 13:10:56,100 - 55897 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-02-11 13:10:56,921 - 55897 - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-02-11 13:10:57,584 - 55897 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 2 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-02-06 11:52:43.335' and ServiceSetupId = 95370... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 13:10:58,328 - 55897 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-02-11 13:10:58,995 - 55897 - src.utils.log - INFO - Id's of work order inserted to DB: [473115 473116] - __SPLIT__ 2026-02-11 13:10:59,656 - 55897 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 95370;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 13:11:00,350 - 55897 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-11 13:11:01,013 - 55897 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-02-11 13:11:01,673 - 55897 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId = 95370... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 13:11:02,373 - 55897 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-11 13:11:03,040 - 55897 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId = 95370... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 13:11:03,740 - 55897 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-11 13:11:04,410 - 55897 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId = 95370... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 13:11:05,120 - 55897 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-02-11 13:11:05,788 - 55897 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId = 95370... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 13:11:06,486 - 55897 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-11 13:11:07,149 - 55897 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId = 95370... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 13:11:08,158 - 55897 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-11 13:11:08,850 - 55897 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId = 95370;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 13:11:09,568 - 55897 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-11 13:11:10,254 - 55897 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId = 95370;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 13:11:10,970 - 55897 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-11 13:11:11,650 - 55897 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId = 95370;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 13:11:12,530 - 55897 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-11 13:11:13,216 - 55897 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId = 95370;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 13:11:13,933 - 55897 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-11 13:11:14,630 - 55897 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-02-11 13:11:15,313 - 55897 - src.utils.log - INFO - πŸ“₯ Inserting into CRM.LeadNote: 0 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 13:11:16,038 - 55897 - src.utils.log - INFO - βœ… All 0 rows inserted successfully into CRM.LeadNote in 0 batches - __SPLIT__ 2026-02-11 13:11:16,724 - 55897 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-02-11 13:11:17,408 - 55897 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.CommunicationPreferencesServiceReportNotification: 0 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 13:11:18,129 - 55897 - src.utils.log - INFO - βœ… All 0 rows inserted successfully into ServiceCore.CommunicationPreferencesServiceReportNotification in 0 batches - __SPLIT__ 2026-02-11 13:11:18,811 - 55897 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-02-11 13:11:19,496 - 55897 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.SetupAutoGenerationSourceMapping: 0 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 13:11:20,213 - 55897 - src.utils.log - INFO - βœ… All 0 rows inserted successfully into ServiceCore.SetupAutoGenerationSourceMapping in 0 batches - __SPLIT__ 2026-02-11 13:11:20,894 - 55897 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-02-11 13:11:21,586 - 55897 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationAppliedDiscount: 0 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 13:11:22,549 - 55897 - src.utils.log - INFO - βœ… All 0 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationAppliedDiscount in 0 batches - __SPLIT__ 2026-02-11 13:11:23,185 - 55897 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-02-11 13:11:23,829 - 55897 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.SubWorkOrderAutoGeneration: 0 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 13:11:24,499 - 55897 - src.utils.log - INFO - βœ… All 0 rows inserted successfully into ServiceCore.SubWorkOrderAutoGeneration in 0 batches - __SPLIT__ 2026-02-11 13:11:25,142 - 55897 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-02-11 13:11:25,781 - 55897 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: 0 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 13:11:26,451 - 55897 - src.utils.log - INFO - βœ… All 0 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationCommissionAdjustment in 0 batches - __SPLIT__ 2026-02-11 13:11:27,093 - 55897 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-02-11 13:11:27,738 - 55897 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: 0 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 13:11:28,407 - 55897 - src.utils.log - INFO - βœ… All 0 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationSalesPersonCommission in 0 batches - __SPLIT__ 2026-02-11 13:11:29,042 - 55897 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-02-11 13:11:29,675 - 55897 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationCrews: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 13:11:30,350 - 55897 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationCrews - __SPLIT__ 2026-02-11 13:11:31,096 - 55897 - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationCrews in 1 batches - __SPLIT__ 2026-02-11 13:11:31,732 - 55897 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-02-11 13:11:32,369 - 55897 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 0 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 13:11:33,042 - 55897 - src.utils.log - INFO - βœ… All 0 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 0 batches - __SPLIT__ 2026-02-11 13:11:33,680 - 55897 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-02-11 13:11:34,322 - 55897 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 13:11:34,993 - 55897 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-02-11 13:11:36,056 - 55897 - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-02-11 13:11:36,714 - 55897 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-02-11 13:11:37,365 - 55897 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 55897;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 13:11:38,052 - 55897 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-02-11 13:11:38,704 - 55897 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-02-11 13:11:39,353 - 55897 - src.utils.log - INFO - Time took to perform operation: 72.85 - __SPLIT__ 2026-02-11 13:11:40,016 - 55897 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 55897;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 13:11:40,723 - 55897 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-02-11 13:11:41,384 - 55897 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET WorkOrderStatusDateTime = '2026-02-11 08:11:41.383' WHERE GenerateWorkOrderHistoryId = 55897;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 13:11:42,070 - 55897 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-02-11 13:12:03,989 - [55897] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[473115, 473116] user_id=44502 company_id=145 project_id=[55897] publish_all=False - __SPLIT__ 2026-02-11 13:12:05,915 - [55897] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[473115, 473116] user_id=44502 company_id=145 project_id=[55897] publish_all=False - __SPLIT__ 2026-02-11 13:12:06,595 - [55897] - src.utils.log - INFO - Sequential Work order publish in progress for GenerateWorkOrderHistoryId: [55897] - __SPLIT__ 2026-02-11 13:12:07,286 - [55897] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-02-11 13:12:07,961 - [55897] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Samsung'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 13:12:08,929 - [55897] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-11 13:12:09,605 - [55897] - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-02-11 13:12:10,290 - [55897] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'InProgress' WHERE CompanyId = 145 AND GenerateWorkOrderHistoryId = 55897;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 13:12:10,996 - [55897] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-02-11 13:12:11,696 - [55897] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (473115, 473116)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 13:12:12,400 - [55897] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-02-11 13:12:13,073 - [55897] - src.utils.log - INFO - Inside get_work_order_table - __SPLIT__ 2026-02-11 13:12:13,751 - [55897] - 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 = 95370 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 13:12:14,456 - [55897] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-11 13:12:15,128 - [55897] - 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 = 95370 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 13:12:15,836 - [55897] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-11 13:12:16,506 - [55897] - 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 = 95370 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 13:12:17,212 - [55897] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-11 13:12:17,892 - [55897] - 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-02-11 13:12:18,595 - [55897] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-02-11 13:12:19,552 - [55897] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder,BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 145;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 13:12:20,225 - [55897] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-11 13:12:20,875 - [55897] - src.utils.log - INFO - πŸ“ Executing: UPDATE Common.GenerateNumberConfig SET NextNumber = '222042' WHERE CompanyId = 145 AND EnitityNumberType in ('WorkOrder','Invoice');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 13:12:21,553 - [55897] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-02-11 13:12:22,207 - [55897] - 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 = 95370... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 13:12:22,883 - [55897] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-11 13:12:23,537 - [55897] - src.utils.log - INFO - Size of Transaction: 2 - __SPLIT__ 2026-02-11 13:12:24,186 - [55897] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 13:12:24,926 - [55897] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-02-11 13:12:25,677 - [55897] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-02-11 13:12:26,346 - [55897] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-02-11 13:12:26,994 - [55897] - 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-02-11 08:12:23.532';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 13:12:27,785 - [55897] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-02-11 13:12:28,436 - [55897] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 95370;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 13:12:29,115 - [55897] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-11 13:12:29,771 - [55897] - src.utils.log - INFO - πŸ“ Executing: UPDATE Billing.[Transaction] SET ModifiedBy = NULL WHERE ModifiedBy IN (12345678910,12345678911) AND CreatedDate = '2026-02-11 08:12:23.532'; ... (Thread: ThreadPoolExecutor-0_0) - __SPLIT__ 2026-02-11 13:12:30,615 - [55897] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-02-11 13:12:31,265 - [55897] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 13:12:31,963 - [55897] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.Invoice - __SPLIT__ 2026-02-11 13:12:32,705 - [55897] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-02-11 13:12:33,656 - [55897] - src.utils.log - INFO - πŸ” Fetching data: SELECT InvoiceId, WorkOrderNo FROM Billing.Invoice i WHERE i.WorkOrderNo in ('222041', '222040')... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 13:12:34,392 - [55897] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-02-11 13:12:35,084 - [55897] - 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 = 95370 and sm.IsActive =1 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 13:12:35,784 - [55897] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-11 13:12:36,464 - [55897] - 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 = 95370 and sm.IsActive =1 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 13:12:37,168 - [55897] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-11 13:12:37,849 - [55897] - 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 = 95370 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 13:12:38,552 - [55897] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-11 13:12:39,230 - [55897] - 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 = 95370 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 13:12:39,932 - [55897] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-11 13:12:40,624 - [55897] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 95370;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 13:12:41,330 - [55897] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-11 13:12:42,007 - [55897] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId, AppliedDiscountAmt as AppliedDiscountAmount,IsActive ,ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 95370;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 13:12:42,711 - [55897] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-11 13:12:43,384 - [55897] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId,IsActive,DiscountAmount, IsDiscountPercent,DiscountPercent,DiscountDescription , ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 95370;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 13:12:44,089 - [55897] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-11 13:12:44,770 - [55897] - src.utils.log - INFO - Sequential Insertion in invoice tables begin - __SPLIT__ 2026-02-11 13:12:45,446 - [55897] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.AccountDiscountSetup: 0 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 13:12:46,166 - [55897] - src.utils.log - INFO - βœ… All 0 rows inserted successfully into Billing.AccountDiscountSetup in 0 batches - __SPLIT__ 2026-02-11 13:12:46,847 - [55897] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceCharges: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 13:12:47,866 - [55897] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.InvoiceCharges - __SPLIT__ 2026-02-11 13:12:48,665 - [55897] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.InvoiceCharges in 1 batches - __SPLIT__ 2026-02-11 13:12:49,331 - [55897] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.DiscountApplied: 0 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 13:12:50,019 - [55897] - src.utils.log - INFO - βœ… All 0 rows inserted successfully into Billing.DiscountApplied in 0 batches - __SPLIT__ 2026-02-11 13:12:50,683 - [55897] - src.utils.log - INFO - Invoice Publish Done - __SPLIT__ 2026-02-11 13:12:51,350 - [55897] - src.utils.log - INFO - πŸ” Fetching data: SELECT x.CompanyId FROM CRM.CompanyMaster x WHERE CompanyKey = 'Samsung';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 13:12:52,043 - [55897] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-11 13:12:52,705 - [55897] - src.utils.log - INFO - πŸ” Fetching data: SELECT CollectionStatus,IsHold,AccountNo FROM CRM.Account a WHERE a.AccountNo = '2779' and a.CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 13:12:53,414 - [55897] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-11 13:12:54,085 - [55897] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrder (skip triggers): 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 13:12:54,830 - [55897] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrder (triggers skipped) - __SPLIT__ 2026-02-11 13:12:55,634 - [55897] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrder in 1 batches (triggers skipped) - __SPLIT__ 2026-02-11 13:12:56,308 - [55897] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-02-11 13:12:56,988 - [55897] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkorderId, WorkOrderNo FROM ServiceCore.WorkOrder wo WHERE wo.WorkOrderNo IN ('222040', '222041') AND wo.AccountNumber = '2779' AND wo.CompanyId = 145 ... (Thread: ThreadPoolExecutor-1_0) - __SPLIT__ 2026-02-11 13:12:57,691 - [55897] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-02-11 13:12:58,365 - [55897] - src.utils.log - INFO - Sequential fetching temp table records - __SPLIT__ 2026-02-11 13:12:59,037 - [55897] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationServices woag WHERE woag.WorkOrderAutoGenerationId in (473115, 473116)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 13:12:59,739 - [55897] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-02-11 13:13:00,413 - [55897] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SubWorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (473115, 473116)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 13:13:01,118 - [55897] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-11 13:13:02,076 - [55897] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationCrews woag WHERE woag.WorkOrderAutoGenerationId in (473115, 473116)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 13:13:02,769 - [55897] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-02-11 13:13:03,439 - [55897] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationSalesPersonCommission woag WHERE woag.WorkOrderAutoGenerationId in (473115, 473116)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 13:13:04,134 - [55897] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-11 13:13:04,802 - [55897] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupAutoGenerationSourceMapping woag WHERE woag.WorkOrderAutoGenerationId in (473115, 473116)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 13:13:05,498 - [55897] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-11 13:13:06,165 - [55897] - 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 (473115, 473116)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 13:13:06,860 - [55897] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-11 13:13:07,528 - [55897] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from CRM.LeadNote woag WHERE woag.RefId in (473115, 473116) and woag.RefType = 'TempWorkorder';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 13:13:08,222 - [55897] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-11 13:13:08,890 - [55897] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment woagca WHERE woagca.WorkOrderAutoGenerationId in (473115, 473116);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 13:13:09,587 - [55897] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-11 13:13:10,264 - [55897] - src.utils.log - INFO - Updating temp tables - __SPLIT__ 2026-02-11 13:13:10,969 - [55897] - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyKey FROM Common.CompanyMaster cm WHERE CompanyId = 145;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 13:13:11,664 - [55897] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-11 13:13:12,335 - [55897] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 145 AND EnitityNumberType in ('SubWorkOrder'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 13:13:13,030 - [55897] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-11 13:13:13,705 - [55897] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishHistory: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 13:13:14,416 - [55897] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationPublishHistory - __SPLIT__ 2026-02-11 13:13:15,185 - [55897] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishHistory in 1 batches - __SPLIT__ 2026-02-11 13:13:16,144 - [55897] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationPublishHistoryId, WorkOrderNo, ServiceSetupId FROM ServiceCore.WorkOrderAutoGenerationPublishHistory WHERE ServiceSetupId = 95370 AND WorkOrderNo IN ('8390589', '8580131') AND GenerateWorkOrderHistoryId = 55897;... (Thread: ThreadPoolExecutor-2_0) - __SPLIT__ 2026-02-11 13:13:16,861 - [55897] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-02-11 13:13:17,528 - [55897] - src.utils.log - INFO - 🏁 Final merged rows: 2 - __SPLIT__ 2026-02-11 13:13:18,201 - [55897] - src.utils.log - INFO - Sequential Insertion in work order tables begin - __SPLIT__ 2026-02-11 13:13:18,867 - [55897] - src.utils.log - INFO - πŸ“₯ Inserting into CRM.LeadNote: 0 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 13:13:19,625 - [55897] - src.utils.log - INFO - βœ… All 0 rows inserted successfully into CRM.LeadNote in 0 batches - __SPLIT__ 2026-02-11 13:13:20,293 - [55897] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.WorkOrderAppliedDiscount: 0 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 13:13:21,006 - [55897] - src.utils.log - INFO - βœ… All 0 rows inserted successfully into ServiceAuto.WorkOrderAppliedDiscount in 0 batches - __SPLIT__ 2026-02-11 13:13:21,669 - [55897] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderSalesPersonCommission: 0 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 13:13:22,359 - [55897] - src.utils.log - INFO - βœ… All 0 rows inserted successfully into ServiceCore.WorkOrderSalesPersonCommission in 0 batches - __SPLIT__ 2026-02-11 13:13:23,032 - [55897] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.WorkOrderCommissionAdjustment: 0 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 13:13:23,740 - [55897] - src.utils.log - INFO - βœ… All 0 rows inserted successfully into ServiceAuto.WorkOrderCommissionAdjustment in 0 batches - __SPLIT__ 2026-02-11 13:13:24,412 - [55897] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderServices: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 13:13:25,120 - [55897] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderServices - __SPLIT__ 2026-02-11 13:13:25,888 - [55897] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderServices in 1 batches - __SPLIT__ 2026-02-11 13:13:26,560 - [55897] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.SubWorkOrder: 0 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 13:13:27,264 - [55897] - src.utils.log - INFO - βœ… All 0 rows inserted successfully into ServiceCore.SubWorkOrder in 0 batches - __SPLIT__ 2026-02-11 13:13:27,924 - [55897] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderCrew: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 13:13:28,634 - [55897] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderCrew - __SPLIT__ 2026-02-11 13:13:29,393 - [55897] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderCrew in 1 batches - __SPLIT__ 2026-02-11 13:13:30,348 - [55897] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkorderSourceMapping: 0 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 13:13:31,049 - [55897] - src.utils.log - INFO - βœ… All 0 rows inserted successfully into ServiceCore.WorkorderSourceMapping in 0 batches - __SPLIT__ 2026-02-11 13:13:31,719 - [55897] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishServices: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 13:13:32,422 - [55897] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationPublishServices - __SPLIT__ 2026-02-11 13:13:33,191 - [55897] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishServices in 1 batches - __SPLIT__ 2026-02-11 13:13:33,858 - [55897] - src.utils.log - INFO - Updating Next GenerationDate - __SPLIT__ 2026-02-11 13:13:34,526 - [55897] - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, MAX(NextWorkOrderGenerationDate) AS MaxNextWorkOrderGeneration FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 55897 GROUP BY ServiceSetupId; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 13:13:35,229 - [55897] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-11 13:13:35,900 - [55897] - src.utils.log - INFO - πŸ”„ Updating next gen date sequentially: inside update_next_workorder_generation - __SPLIT__ 2026-02-11 13:13:36,584 - [55897] - src.utils.log - INFO - πŸ›  Creating temp table #tbl_d094bb01c4 - __SPLIT__ 2026-02-11 13:13:37,281 - [55897] - src.utils.log - INFO - πŸ“Œ Bulk inserting 1 rows into #tbl_d094bb01c4 - __SPLIT__ 2026-02-11 13:13:37,966 - [55897] - src.utils.log - INFO - πŸ” Running MERGE update to apply changes - __SPLIT__ 2026-02-11 13:13:38,655 - [55897] - src.utils.log - INFO - βœ” SQL reported affected rows: 1 - __SPLIT__ 2026-02-11 13:13:39,344 - [55897] - src.utils.log - INFO - πŸ” Verified successfully updated 1 rows via #tbl_d094bb01c4 - __SPLIT__ 2026-02-11 13:13:40,010 - [55897] - src.utils.log - INFO - πŸŽ‰ Successfully updated NextGenerationDate using temp table #tbl_d094bb01c4 - __SPLIT__ 2026-02-11 13:13:40,678 - [55897] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 55897 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 13:13:41,372 - [55897] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-11 13:13:42,038 - [55897] - src.utils.log - INFO - Sequential deletion from temp tables begin - __SPLIT__ 2026-02-11 13:13:42,715 - [55897] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId in (473115, 473116) (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 13:13:43,439 - [55897] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-11 13:13:44,400 - [55897] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId in (473115, 473116) (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 13:13:45,131 - [55897] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-11 13:13:45,817 - [55897] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId in (473115, 473116) (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 13:13:46,530 - [55897] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-11 13:13:47,214 - [55897] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId in (473115, 473116) (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 13:13:47,933 - [55897] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-11 13:13:48,609 - [55897] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId in (473115, 473116) (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 13:13:49,320 - [55897] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-11 13:13:50,000 - [55897] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (473115, 473116) (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 13:13:50,734 - [55897] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-11 13:13:51,413 - [55897] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId in (473115, 473116) (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 13:13:52,116 - [55897] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-11 13:13:52,796 - [55897] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (473115, 473116) (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 13:13:53,561 - [55897] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-11 13:13:54,242 - [55897] - src.utils.log - INFO - Work order published ids: (473115, 473116) - __SPLIT__ 2026-02-11 13:13:54,920 - [55897] - src.utils.log - INFO - Time took to perform operation in publishing [55897]: 107.65 - __SPLIT__ 2026-02-11 13:13:55,595 - [55897] - src.utils.log - INFO - Publish Completed for GenerateWorkOrderHistoryId: [55897] - __SPLIT__ 2026-02-11 13:13:56,282 - [55897] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-02-11 08:13:54.242' WHERE CompanyId = 145 AND GenerateWorkOrderHistoryId = 55897;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 13:13:56,988 - [55897] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-02-15 07:40:40,996 - [55902] - src.utils.log - INFO - ParallelProcessing=True temp_wo=[] user_id=44506 company_id=146 project_id=[55902] publish_all=True - __SPLIT__ 2026-02-15 07:40:41,965 - [55902] - src.utils.log - INFO - ParallelProcessing=True temp_wo=[] user_id=44506 company_id=146 project_id=[55902] publish_all=True - __SPLIT__ 2026-02-15 07:40:42,635 - [55902] - src.utils.log - INFO - Parallel Work order publish in progress for GenerateWorkOrderHistoryId: [55902] - __SPLIT__ 2026-02-15 07:40:43,312 - [55902] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-02-15 07:40:43,971 - [55902] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-15 07:40:44,805 - [55902] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-15 07:40:45,470 - [55902] - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-02-15 07:40:46,134 - [55902] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'InProgress' WHERE CompanyId = 146 AND GenerateWorkOrderHistoryId = 55902;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-15 07:40:46,816 - [55902] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-02-15 07:40:47,474 - [55902] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGeneration woag WHERE woag.GenerateWorkOrderHistoryId = 55902... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-15 07:40:48,182 - [55902] - src.utils.log - INFO - βœ… Fetched 10 rows - __SPLIT__ 2026-02-15 07:40:48,840 - [55902] - src.utils.log - INFO - Inside get_work_order_table - __SPLIT__ 2026-02-15 07:40:49,502 - [55902] - 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 = 95372 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-15 07:40:50,194 - [55902] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-15 07:40:50,862 - [55902] - 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 = 95372 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-15 07:40:51,549 - [55902] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-15 07:40:52,214 - [55902] - 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 = 95372 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-15 07:40:52,909 - [55902] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-15 07:40:53,575 - [55902] - 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-02-15 07:40:54,259 - [55902] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-02-15 07:40:54,921 - [55902] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder,BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 146;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-15 07:40:55,908 - [55902] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-15 07:40:56,578 - [55902] - src.utils.log - INFO - πŸ“ Executing: UPDATE Common.GenerateNumberConfig SET NextNumber = '20119' WHERE CompanyId = 146 AND EnitityNumberType in ('WorkOrder');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-15 07:40:57,281 - [55902] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-02-15 07:40:57,954 - [55902] - src.utils.log - INFO - πŸ“ Executing: UPDATE Common.GenerateNumberConfig SET NextNumber = '23561' WHERE CompanyId = 146 AND EnitityNumberType in ('Invoice');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-15 07:40:58,650 - [55902] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-02-15 07:40:59,328 - [55902] - 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 = 95372... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-15 07:41:00,032 - [55902] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-15 07:41:00,716 - [55902] - src.utils.log - INFO - Size of Transaction: 1 - __SPLIT__ 2026-02-15 07:41:01,391 - [55902] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-15 07:41:02,119 - [55902] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-02-15 07:41:02,894 - [55902] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-02-15 07:41:03,579 - [55902] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-02-15 07:41:04,244 - [55902] - 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-02-15 02:41:00.710';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-15 07:41:05,023 - [55902] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-15 07:41:05,694 - [55902] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 95372;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-15 07:41:06,392 - [55902] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-15 07:41:07,089 - [55902] - src.utils.log - INFO - πŸ“ Executing: UPDATE Billing.[Transaction] SET ModifiedBy = NULL WHERE ModifiedBy = 12345678910 AND CreatedDate = '2026-02-15 02:41:00.710'; ... (Thread: ThreadPoolExecutor-7_0) - __SPLIT__ 2026-02-15 07:41:07,987 - [55902] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-02-15 07:41:08,661 - [55902] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-15 07:41:09,378 - [55902] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into Billing.Invoice - __SPLIT__ 2026-02-15 07:41:10,429 - [55902] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-02-15 07:41:11,093 - [55902] - src.utils.log - INFO - πŸ” Fetching data: SELECT InvoiceId, WorkOrderNo FROM Billing.Invoice i WHERE i.WorkOrderNo = '20109'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-15 07:41:11,809 - [55902] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-02-15 07:41:12,490 - [55902] - 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 = 95372 and sm.IsActive =1 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-15 07:41:13,179 - [55902] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-02-15 07:41:13,842 - [55902] - 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 = 95372 and sm.IsActive =1 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-15 07:41:14,525 - [55902] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-02-15 07:41:15,187 - [55902] - 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 = 95372 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-15 07:41:15,881 - [55902] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-15 07:41:16,545 - [55902] - 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 = 95372 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-15 07:41:17,241 - [55902] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-15 07:41:17,908 - [55902] - 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 = 13930;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-15 07:41:18,595 - [55902] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-15 07:41:19,257 - [55902] - 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 = 14923;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-15 07:41:19,938 - [55902] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-15 07:41:20,610 - [55902] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 95372;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-15 07:41:21,301 - [55902] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-15 07:41:21,963 - [55902] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId, AppliedDiscountAmt as AppliedDiscountAmount,IsActive ,ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 95372;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-15 07:41:22,653 - [55902] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-02-15 07:41:23,325 - [55902] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId,IsActive,DiscountAmount, IsDiscountPercent,DiscountPercent,DiscountDescription , ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 95372;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-15 07:41:24,324 - [55902] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-02-15 07:41:25,014 - [55902] - src.utils.log - INFO - Parallel Insertion in invoice tables begin - __SPLIT__ 2026-02-15 07:41:25,692 - [55902] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.AccountDiscountSetup: 2 rows in batches of 25000 (Thread: ThreadPoolExecutor-8_0) - __SPLIT__ 2026-02-15 07:41:25,692 - [55902] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceCharges: 4 rows in batches of 25000 (Thread: ThreadPoolExecutor-8_1) - __SPLIT__ 2026-02-15 07:41:25,693 - [55902] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.DiscountApplied: 2 rows in batches of 25000 (Thread: ThreadPoolExecutor-8_2) - __SPLIT__ 2026-02-15 07:41:26,418 - [55902] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.AccountDiscountSetup - __SPLIT__ 2026-02-15 07:41:27,184 - [55902] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 4) into Billing.InvoiceCharges - __SPLIT__ 2026-02-15 07:41:27,857 - [55902] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.DiscountApplied - __SPLIT__ 2026-02-15 07:41:28,518 - [55902] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.AccountDiscountSetup in 1 batches - __SPLIT__ 2026-02-15 07:41:29,200 - [55902] - src.utils.log - INFO - βœ… All 4 rows inserted successfully into Billing.InvoiceCharges in 1 batches - __SPLIT__ 2026-02-15 07:41:29,876 - [55902] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.DiscountApplied in 1 batches - __SPLIT__ 2026-02-15 07:41:30,465 - [55902] - src.utils.log - INFO - Insert success for table: Billing.AccountDiscountSetup - __SPLIT__ 2026-02-15 07:41:32,496 - [55902] - src.utils.log - INFO - Insert success for table: Billing.InvoiceCharges - __SPLIT__ 2026-02-15 07:41:33,175 - [55902] - src.utils.log - INFO - Insert success for table: Billing.DiscountApplied - __SPLIT__ 2026-02-15 07:41:33,854 - [55902] - src.utils.log - INFO - Invoice Publish Done - __SPLIT__ 2026-02-15 07:41:34,534 - [55902] - src.utils.log - INFO - πŸ” Fetching data: SELECT x.CompanyId FROM CRM.CompanyMaster x WHERE CompanyKey = 'Fortive';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-15 07:41:35,240 - [55902] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-15 07:41:35,916 - [55902] - src.utils.log - INFO - πŸ” Fetching data: SELECT CollectionStatus,IsHold,AccountNo FROM CRM.Account a WHERE a.AccountNo = '1161' and a.CompanyId = 134;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-15 07:41:36,615 - [55902] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-15 07:41:37,289 - [55902] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrder (skip triggers): 10 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-15 07:41:38,308 - [55902] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 10) into ServiceCore.WorkOrder (triggers skipped) - __SPLIT__ 2026-02-15 07:41:39,201 - [55902] - src.utils.log - INFO - βœ… All 10 rows inserted successfully into ServiceCore.WorkOrder in 1 batches (triggers skipped) - __SPLIT__ 2026-02-15 07:41:39,863 - [55902] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-02-15 07:41:40,518 - [55902] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.ServiceSetup SET IsInitialWoGenerated = 1 WHERE CompanyId = 146 AND ServiceSetupId = 95372;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-15 07:41:41,203 - [55902] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-02-15 07:41:41,858 - [55902] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkorderId, WorkOrderNo FROM ServiceCore.WorkOrder wo WHERE wo.WorkOrderNo IN ('20109', '20110', '20111', '20112', '20113', '20114', '20115', '20116', '20117', '20118') AND wo.AccountNumber = '1161' AND wo.CompanyId = 146 ... (Thread: ThreadPoolExecutor-9_0) - __SPLIT__ 2026-02-15 07:41:42,545 - [55902] - src.utils.log - INFO - βœ… Fetched 10 rows - __SPLIT__ 2026-02-15 07:41:43,196 - [55902] - src.utils.log - INFO - Parallel fetching temp table records - __SPLIT__ 2026-02-15 07:41:43,856 - [55902] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationServices woag WHERE woag.WorkOrderAutoGenerationId in (473138, 473139, 473140, 473141, 473142, 473143, 473144, 473145, 473146, 473147)... (Thread: ThreadPoolExecutor-10_0) - __SPLIT__ 2026-02-15 07:41:43,856 - [55902] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SubWorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (473138, 473139, 473140, 473141, 473142, 473143, 473144, 473145, 473146, 473147)... (Thread: ThreadPoolExecutor-10_1) - __SPLIT__ 2026-02-15 07:41:43,856 - [55902] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationCrews woag WHERE woag.WorkOrderAutoGenerationId in (473138, 473139, 473140, 473141, 473142, 473143, 473144, 473145, 473146, 473147)... (Thread: ThreadPoolExecutor-10_2) - __SPLIT__ 2026-02-15 07:41:43,856 - [55902] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationSalesPersonCommission woag WHERE woag.WorkOrderAutoGenerationId in (473138, 473139, 473140, 473141, 473142, 473143, 473144, 473145, 473146, 473147)... (Thread: ThreadPoolExecutor-10_3) - __SPLIT__ 2026-02-15 07:41:43,856 - [55902] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupAutoGenerationSourceMapping woag WHERE woag.WorkOrderAutoGenerationId in (473138, 473139, 473140, 473141, 473142, 473143, 473144, 473145, 473146, 473147)... (Thread: ThreadPoolExecutor-10_4) - __SPLIT__ 2026-02-15 07:41:43,857 - [55902] - 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 (473138, 473139, 473140, 473141, 473142, 473143, 473144, 473145, 473146, 473147)... (Thread: ThreadPoolExecutor-10_5) - __SPLIT__ 2026-02-15 07:41:43,859 - [55902] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from CRM.LeadNote woag WHERE woag.RefId in (473138, 473139, 473140, 473141, 473142, 473143, 473144, 473145, 473146, 473147) and woag.RefType = 'TempWorkorder';... (Thread: ThreadPoolExecutor-10_6) - __SPLIT__ 2026-02-15 07:41:43,860 - [55902] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment woagca WHERE woagca.WorkOrderAutoGenerationId in (473138, 473139, 473140, 473141, 473142, 473143, 473144, 473145, 473146, 473147);... (Thread: ThreadPoolExecutor-10_7) - __SPLIT__ 2026-02-15 07:41:44,556 - [55902] - src.utils.log - INFO - βœ… Fetched 20 rows - __SPLIT__ 2026-02-15 07:41:45,210 - [55902] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-15 07:41:45,857 - [55902] - src.utils.log - INFO - βœ… Fetched 10 rows - __SPLIT__ 2026-02-15 07:41:46,631 - [55902] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-15 07:41:47,264 - [55902] - src.utils.log - INFO - βœ… Fetched 10 rows - __SPLIT__ 2026-02-15 07:41:47,911 - [55902] - src.utils.log - INFO - βœ… Fetched 10 rows - __SPLIT__ 2026-02-15 07:41:48,577 - [55902] - src.utils.log - INFO - βœ… Fetched 20 rows - __SPLIT__ 2026-02-15 07:41:49,239 - [55902] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-15 07:41:54,718 - [55902] - src.utils.log - INFO - Updating temp tables - __SPLIT__ 2026-02-15 07:41:55,395 - [55902] - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyKey FROM Common.CompanyMaster cm WHERE CompanyId = 146;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-15 07:41:56,080 - [55902] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-15 07:41:56,746 - [55902] - src.utils.log - INFO - πŸ” Fetching data: Select DiscountSetupId, [SysName] as DiscountSysName from Common.DiscountSetupMaster WHERE DiscountSetupId IN (1135, 337) AND CompanyId = 146 AND IsActive = 1;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-15 07:41:57,436 - [55902] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-02-15 07:41:58,110 - [55902] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 146 AND EnitityNumberType in ('SubWorkOrder'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-15 07:41:58,802 - [55902] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-15 07:41:59,468 - [55902] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishHistory: 10 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-15 07:42:00,194 - [55902] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 10) into ServiceCore.WorkOrderAutoGenerationPublishHistory - __SPLIT__ 2026-02-15 07:42:01,048 - [55902] - src.utils.log - INFO - βœ… All 10 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishHistory in 1 batches - __SPLIT__ 2026-02-15 07:42:01,717 - [55902] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationPublishHistoryId, WorkOrderNo, ServiceSetupId FROM ServiceCore.WorkOrderAutoGenerationPublishHistory WHERE ServiceSetupId = 95372 AND WorkOrderNo IN ('603179', '3481427', '6600874', '9854171', '8278150', '5822555', '7862086', '1083801', '6758597', '6653461') AND GenerateWorkOrderHistoryId = 55902;... (Thread: ThreadPoolExecutor-11_0) - __SPLIT__ 2026-02-15 07:42:02,431 - [55902] - src.utils.log - INFO - βœ… Fetched 10 rows - __SPLIT__ 2026-02-15 07:42:03,098 - [55902] - src.utils.log - INFO - 🏁 Final merged rows: 10 - __SPLIT__ 2026-02-15 07:42:03,765 - [55902] - src.utils.log - INFO - Parallel Insertion in work order tables begin - __SPLIT__ 2026-02-15 07:42:04,436 - [55902] - src.utils.log - INFO - πŸ“₯ Inserting into CRM.LeadNote: 20 rows in batches of 25000 (Thread: ThreadPoolExecutor-12_0) - __SPLIT__ 2026-02-15 07:42:04,436 - [55902] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.WorkOrderAppliedDiscount: 10 rows in batches of 25000 (Thread: ThreadPoolExecutor-12_1) - __SPLIT__ 2026-02-15 07:42:04,436 - [55902] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderSalesPersonCommission: 0 rows in batches of 25000 (Thread: ThreadPoolExecutor-12_2) - __SPLIT__ 2026-02-15 07:42:04,436 - [55902] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.WorkOrderCommissionAdjustment: 0 rows in batches of 25000 (Thread: ThreadPoolExecutor-12_3) - __SPLIT__ 2026-02-15 07:42:04,436 - [55902] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderServices: 20 rows in batches of 25000 (Thread: ThreadPoolExecutor-12_4) - __SPLIT__ 2026-02-15 07:42:04,437 - [55902] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.SubWorkOrder: 0 rows in batches of 25000 (Thread: ThreadPoolExecutor-12_5) - __SPLIT__ 2026-02-15 07:42:04,437 - [55902] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderCrew: 10 rows in batches of 25000 (Thread: ThreadPoolExecutor-12_6) - __SPLIT__ 2026-02-15 07:42:04,438 - [55902] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkorderSourceMapping: 10 rows in batches of 25000 (Thread: ThreadPoolExecutor-12_7) - __SPLIT__ 2026-02-15 07:42:04,439 - [55902] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishServices: 20 rows in batches of 25000 (Thread: ThreadPoolExecutor-12_8) - __SPLIT__ 2026-02-15 07:42:05,127 - [55902] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 20) into CRM.LeadNote - __SPLIT__ 2026-02-15 07:42:06,105 - [55902] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 10) into ServiceAuto.WorkOrderAppliedDiscount - __SPLIT__ 2026-02-15 07:42:06,756 - [55902] - src.utils.log - INFO - βœ… All 0 rows inserted successfully into ServiceCore.WorkOrderSalesPersonCommission in 0 batches - __SPLIT__ 2026-02-15 07:42:07,423 - [55902] - src.utils.log - INFO - βœ… All 0 rows inserted successfully into ServiceAuto.WorkOrderCommissionAdjustment in 0 batches - __SPLIT__ 2026-02-15 07:42:08,095 - [55902] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 20) into ServiceCore.WorkOrderServices - __SPLIT__ 2026-02-15 07:42:08,756 - [55902] - src.utils.log - INFO - βœ… All 0 rows inserted successfully into ServiceCore.SubWorkOrder in 0 batches - __SPLIT__ 2026-02-15 07:42:09,426 - [55902] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 10) into ServiceCore.WorkOrderCrew - __SPLIT__ 2026-02-15 07:42:10,083 - [55902] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 10) into ServiceCore.WorkorderSourceMapping - __SPLIT__ 2026-02-15 07:42:10,837 - [55902] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 20) into ServiceCore.WorkOrderAutoGenerationPublishServices - __SPLIT__ 2026-02-15 07:42:11,598 - [55902] - src.utils.log - INFO - βœ… All 20 rows inserted successfully into CRM.LeadNote in 1 batches - __SPLIT__ 2026-02-15 07:42:12,173 - [55902] - src.utils.log - INFO - βœ… All 10 rows inserted successfully into ServiceAuto.WorkOrderAppliedDiscount in 1 batches - __SPLIT__ 2026-02-15 07:42:12,720 - [55902] - src.utils.log - INFO - [OK] Sales Person Commission completed. - __SPLIT__ 2026-02-15 07:42:14,204 - [55902] - src.utils.log - INFO - βœ… All 20 rows inserted successfully into ServiceCore.WorkOrderServices in 1 batches - __SPLIT__ 2026-02-15 07:42:15,491 - [55902] - src.utils.log - INFO - βœ… All 10 rows inserted successfully into ServiceCore.WorkOrderCrew in 1 batches - __SPLIT__ 2026-02-15 07:42:16,121 - [55902] - src.utils.log - INFO - βœ… All 10 rows inserted successfully into ServiceCore.WorkorderSourceMapping in 1 batches - __SPLIT__ 2026-02-15 07:42:16,841 - [55902] - src.utils.log - INFO - βœ… All 20 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishServices in 1 batches - __SPLIT__ 2026-02-15 07:42:18,723 - [55902] - src.utils.log - INFO - [OK] Adjustment completed. - __SPLIT__ 2026-02-15 07:42:22,366 - [55902] - src.utils.log - INFO - [OK] Sub WO completed. - __SPLIT__ 2026-02-15 07:42:23,038 - [55902] - src.utils.log - INFO - [OK] Lead Notes completed. - __SPLIT__ 2026-02-15 07:42:23,702 - [55902] - src.utils.log - INFO - [OK] Discount Applied completed. - __SPLIT__ 2026-02-15 07:42:24,372 - [55902] - src.utils.log - INFO - [OK] Services completed. - __SPLIT__ 2026-02-15 07:42:25,041 - [55902] - src.utils.log - INFO - [OK] Crew completed. - __SPLIT__ 2026-02-15 07:42:25,708 - [55902] - src.utils.log - INFO - [OK] Source Mapping completed. - __SPLIT__ 2026-02-15 07:42:26,399 - [55902] - src.utils.log - INFO - [OK] Publish Services completed. - __SPLIT__ 2026-02-15 07:42:27,071 - [55902] - src.utils.log - INFO - All publish tasks completed successfully. - __SPLIT__ 2026-02-15 07:42:27,740 - [55902] - src.utils.log - INFO - Updating Next GenerationDate - __SPLIT__ 2026-02-15 07:42:28,409 - [55902] - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, MAX(NextWorkOrderGenerationDate) AS MaxNextWorkOrderGeneration FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 55902 GROUP BY ServiceSetupId; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-15 07:42:29,100 - [55902] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-15 07:42:29,774 - [55902] - src.utils.log - INFO - πŸ”„ Updating next gen date parallely: inside update_next_workorder_generation - __SPLIT__ 2026-02-15 07:42:30,463 - [55902] - src.utils.log - INFO - πŸ›  Creating temp table #tbl_6c68310bd7 - __SPLIT__ 2026-02-15 07:42:31,145 - [55902] - src.utils.log - INFO - πŸ“Œ Bulk inserting 1 rows into #tbl_6c68310bd7 - __SPLIT__ 2026-02-15 07:42:31,862 - [55902] - src.utils.log - INFO - πŸ” Running UPDATE to apply changes - __SPLIT__ 2026-02-15 07:42:32,559 - [55902] - src.utils.log - INFO - βœ” SQL reported affected rows: 1 - __SPLIT__ 2026-02-15 07:42:33,512 - [55902] - src.utils.log - INFO - πŸŽ‰ Successfully updated NextGenerationDate using temp table #tbl_6c68310bd7 - __SPLIT__ 2026-02-15 07:42:34,173 - [55902] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 55902 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-15 07:42:34,862 - [55902] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-15 07:42:35,522 - [55902] - src.utils.log - INFO - Parallel deletion from temp tables begin - __SPLIT__ 2026-02-15 07:42:36,178 - [55902] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId in (473138, 473139, 473140, 473141, 473142, 473143, 473144, 473145, 473146, 473147) (Thread: ThreadPoolExecutor-14_0) - __SPLIT__ 2026-02-15 07:42:36,179 - [55902] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId in (473138, 473139, 473140, 473141, 473142, 473143, 473144, 473145, 473146, 473147) (Thread: ThreadPoolExecutor-14_1) - __SPLIT__ 2026-02-15 07:42:36,179 - [55902] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId in (473138, 473139, 473140, 473141, 473142, 473143, 473144, 473145, 473146, 473147) (Thread: ThreadPoolExecutor-14_2) - __SPLIT__ 2026-02-15 07:42:36,179 - [55902] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId in (473138, 473139, 473140, 473141, 473142, 473143, 473144, 473145, 473146, 473147) (Thread: ThreadPoolExecutor-14_3) - __SPLIT__ 2026-02-15 07:42:36,180 - [55902] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId in (473138, 473139, 473140, 473141, 473142, 473143, 473144, 473145, 473146, 473147) (Thread: ThreadPoolExecutor-14_4) - __SPLIT__ 2026-02-15 07:42:36,181 - [55902] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId in (473138, 473139, 473140, 473141, 473142, 473143, 473144, 473145, 473146, 473147) (Thread: ThreadPoolExecutor-14_6) - __SPLIT__ 2026-02-15 07:42:36,181 - [55902] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (473138, 473139, 473140, 473141, 473142, 473143, 473144, 473145, 473146, 473147) (Thread: ThreadPoolExecutor-14_5) - __SPLIT__ 2026-02-15 07:42:36,896 - [55902] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-15 07:42:37,581 - [55902] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-15 07:42:38,182 - [55902] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-15 07:42:38,846 - [55902] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-15 07:42:39,501 - [55902] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-15 07:42:40,148 - [55902] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-15 07:42:40,840 - [55902] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-15 07:42:41,439 - [55902] - src.utils.log - INFO - [OK] Deleted from Services - __SPLIT__ 2026-02-15 07:42:46,048 - [55902] - src.utils.log - INFO - [OK] Deleted from Crews - __SPLIT__ 2026-02-15 07:42:46,999 - [55902] - src.utils.log - INFO - [OK] Deleted from SalesPersonCommission - __SPLIT__ 2026-02-15 07:42:47,654 - [55902] - src.utils.log - INFO - [OK] Deleted from AppliedDiscount - __SPLIT__ 2026-02-15 07:42:48,311 - [55902] - src.utils.log - INFO - [OK] Deleted from SourceMapping - __SPLIT__ 2026-02-15 07:42:48,966 - [55902] - src.utils.log - INFO - [OK] Deleted from Adjustment - __SPLIT__ 2026-02-15 07:42:49,638 - [55902] - src.utils.log - INFO - [OK] Deleted from SubWorkOrder - __SPLIT__ 2026-02-15 07:42:50,296 - [55902] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (473138, 473139, 473140, 473141, 473142, 473143, 473144, 473145, 473146, 473147) (Thread: ThreadPoolExecutor-13_0) - __SPLIT__ 2026-02-15 07:42:51,249 - [55902] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-15 07:42:51,905 - [55902] - src.utils.log - INFO - βœ” Completed batch of 10 records - __SPLIT__ 2026-02-15 07:42:52,565 - [55902] - src.utils.log - INFO - πŸŽ‰ All batches processed. - __SPLIT__ 2026-02-15 07:42:53,224 - [55902] - src.utils.log - INFO - Work order published ids: (473138, 473139, 473140, 473141, 473142, 473143, 473144, 473145, 473146, 473147) - __SPLIT__ 2026-02-15 07:42:53,884 - [55902] - src.utils.log - INFO - Time took to perform operation in publishing [55902]: 130.57 - __SPLIT__ 2026-02-15 07:42:54,538 - [55902] - src.utils.log - INFO - Publish Completed for GenerateWorkOrderHistoryId: [55902] - __SPLIT__ 2026-02-15 07:42:55,203 - [55902] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-02-15 02:42:53.224' WHERE CompanyId = 146 AND GenerateWorkOrderHistoryId = 55902;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-15 07:42:55,886 - [55902] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-02-15 09:17:08,934 - [55904] - src.utils.log - INFO - ParallelProcessing=True temp_wo=[473151, 473152] user_id=44506 company_id=146 project_id=[55904] publish_all=False - __SPLIT__ 2026-02-15 09:17:09,885 - [55904] - src.utils.log - INFO - ParallelProcessing=True temp_wo=[473151, 473152] user_id=44506 company_id=146 project_id=[55904] publish_all=False - __SPLIT__ 2026-02-15 09:17:10,547 - [55904] - src.utils.log - INFO - Parallel Work order publish in progress for GenerateWorkOrderHistoryId: [55904] - __SPLIT__ 2026-02-15 09:17:11,216 - [55904] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-02-15 09:17:11,862 - [55904] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-15 09:17:12,720 - [55904] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-15 09:17:13,370 - [55904] - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-02-15 09:17:14,028 - [55904] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'InProgress' WHERE CompanyId = 146 AND GenerateWorkOrderHistoryId = 55904;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-15 09:17:14,714 - [55904] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-02-15 09:17:15,363 - [55904] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (473151, 473152)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-15 09:17:16,051 - [55904] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-02-15 09:17:16,700 - [55904] - src.utils.log - INFO - Inside get_work_order_table - __SPLIT__ 2026-02-15 09:17:17,358 - [55904] - 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 = 95374 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-15 09:17:18,046 - [55904] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-15 09:17:18,702 - [55904] - 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 = 95374 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-15 09:17:19,384 - [55904] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-15 09:17:20,031 - [55904] - 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 = 95374 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-15 09:17:20,719 - [55904] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-15 09:17:21,369 - [55904] - 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-02-15 09:17:22,047 - [55904] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-02-15 09:17:22,699 - [55904] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder,BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 146;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-15 09:17:23,706 - [55904] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-15 09:17:24,381 - [55904] - src.utils.log - INFO - πŸ“ Executing: UPDATE Common.GenerateNumberConfig SET NextNumber = '20130' WHERE CompanyId = 146 AND EnitityNumberType in ('WorkOrder');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-15 09:17:25,091 - [55904] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-02-15 09:17:25,768 - [55904] - src.utils.log - INFO - πŸ“ Executing: UPDATE Common.GenerateNumberConfig SET NextNumber = '23572' WHERE CompanyId = 146 AND EnitityNumberType in ('Invoice');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-15 09:17:26,480 - [55904] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-02-15 09:17:27,162 - [55904] - 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 = 95374... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-15 09:17:27,878 - [55904] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-15 09:17:28,564 - [55904] - src.utils.log - INFO - πŸ” Fetching data: SELECT x.CompanyId FROM CRM.CompanyMaster x WHERE CompanyKey = 'Fortive';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-15 09:17:29,271 - [55904] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-15 09:17:29,958 - [55904] - src.utils.log - INFO - πŸ” Fetching data: SELECT CollectionStatus,IsHold,AccountNo FROM CRM.Account a WHERE a.AccountNo = '1168' and a.CompanyId = 134;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-15 09:17:30,666 - [55904] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-15 09:17:31,346 - [55904] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrder (skip triggers): 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-15 09:17:32,107 - [55904] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrder (triggers skipped) - __SPLIT__ 2026-02-15 09:17:32,936 - [55904] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrder in 1 batches (triggers skipped) - __SPLIT__ 2026-02-15 09:17:33,635 - [55904] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-02-15 09:17:34,317 - [55904] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkorderId, WorkOrderNo FROM ServiceCore.WorkOrder wo WHERE wo.WorkOrderNo IN ('20128', '20129') AND wo.AccountNumber = '1168' AND wo.CompanyId = 146 ... (Thread: ThreadPoolExecutor-15_0) - __SPLIT__ 2026-02-15 09:17:35,034 - [55904] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-02-15 09:17:35,715 - [55904] - src.utils.log - INFO - Parallel fetching temp table records - __SPLIT__ 2026-02-15 09:17:36,396 - [55904] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationServices woag WHERE woag.WorkOrderAutoGenerationId in (473151, 473152)... (Thread: ThreadPoolExecutor-16_0) - __SPLIT__ 2026-02-15 09:17:36,396 - [55904] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SubWorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (473151, 473152)... (Thread: ThreadPoolExecutor-16_1) - __SPLIT__ 2026-02-15 09:17:36,397 - [55904] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationCrews woag WHERE woag.WorkOrderAutoGenerationId in (473151, 473152)... (Thread: ThreadPoolExecutor-16_2) - __SPLIT__ 2026-02-15 09:17:36,397 - [55904] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationSalesPersonCommission woag WHERE woag.WorkOrderAutoGenerationId in (473151, 473152)... (Thread: ThreadPoolExecutor-16_3) - __SPLIT__ 2026-02-15 09:17:36,398 - [55904] - 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 (473151, 473152)... (Thread: ThreadPoolExecutor-16_5) - __SPLIT__ 2026-02-15 09:17:36,397 - [55904] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupAutoGenerationSourceMapping woag WHERE woag.WorkOrderAutoGenerationId in (473151, 473152)... (Thread: ThreadPoolExecutor-16_4) - __SPLIT__ 2026-02-15 09:17:36,399 - [55904] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from CRM.LeadNote woag WHERE woag.RefId in (473151, 473152) and woag.RefType = 'TempWorkorder';... (Thread: ThreadPoolExecutor-16_6) - __SPLIT__ 2026-02-15 09:17:36,400 - [55904] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment woagca WHERE woagca.WorkOrderAutoGenerationId in (473151, 473152);... (Thread: ThreadPoolExecutor-16_7) - __SPLIT__ 2026-02-15 09:17:37,122 - [55904] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-02-15 09:17:38,141 - [55904] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-15 09:17:38,821 - [55904] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-02-15 09:17:39,445 - [55904] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-15 09:17:40,134 - [55904] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-15 09:17:40,792 - [55904] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-02-15 09:17:41,443 - [55904] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-15 09:17:42,099 - [55904] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-15 09:17:47,306 - [55904] - src.utils.log - INFO - Updating temp tables - __SPLIT__ 2026-02-15 09:17:47,984 - [55904] - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyKey FROM Common.CompanyMaster cm WHERE CompanyId = 146;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-15 09:17:48,667 - [55904] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-15 09:17:49,336 - [55904] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 146 AND EnitityNumberType in ('SubWorkOrder'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-15 09:17:50,018 - [55904] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-15 09:17:50,684 - [55904] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishHistory: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-15 09:17:51,732 - [55904] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationPublishHistory - __SPLIT__ 2026-02-15 09:17:52,539 - [55904] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishHistory in 1 batches - __SPLIT__ 2026-02-15 09:17:53,217 - [55904] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationPublishHistoryId, WorkOrderNo, ServiceSetupId FROM ServiceCore.WorkOrderAutoGenerationPublishHistory WHERE ServiceSetupId = 95374 AND WorkOrderNo IN ('4523396', '6701427') AND GenerateWorkOrderHistoryId = 55904;... (Thread: ThreadPoolExecutor-17_0) - __SPLIT__ 2026-02-15 09:17:53,945 - [55904] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-02-15 09:17:54,620 - [55904] - src.utils.log - INFO - 🏁 Final merged rows: 2 - __SPLIT__ 2026-02-15 09:17:55,300 - [55904] - src.utils.log - INFO - Parallel Insertion in work order tables begin - __SPLIT__ 2026-02-15 09:17:55,982 - [55904] - src.utils.log - INFO - πŸ“₯ Inserting into CRM.LeadNote: 0 rows in batches of 25000 (Thread: ThreadPoolExecutor-18_0) - __SPLIT__ 2026-02-15 09:17:55,984 - [55904] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.WorkOrderAppliedDiscount: 0 rows in batches of 25000 (Thread: ThreadPoolExecutor-18_1) - __SPLIT__ 2026-02-15 09:17:55,984 - [55904] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderSalesPersonCommission: 0 rows in batches of 25000 (Thread: ThreadPoolExecutor-18_2) - __SPLIT__ 2026-02-15 09:17:55,984 - [55904] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.WorkOrderCommissionAdjustment: 0 rows in batches of 25000 (Thread: ThreadPoolExecutor-18_3) - __SPLIT__ 2026-02-15 09:17:55,984 - [55904] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderServices: 2 rows in batches of 25000 (Thread: ThreadPoolExecutor-18_4) - __SPLIT__ 2026-02-15 09:17:55,985 - [55904] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.SubWorkOrder: 0 rows in batches of 25000 (Thread: ThreadPoolExecutor-18_5) - __SPLIT__ 2026-02-15 09:17:55,985 - [55904] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderCrew: 2 rows in batches of 25000 (Thread: ThreadPoolExecutor-18_6) - __SPLIT__ 2026-02-15 09:17:55,986 - [55904] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkorderSourceMapping: 2 rows in batches of 25000 (Thread: ThreadPoolExecutor-18_7) - __SPLIT__ 2026-02-15 09:17:55,986 - [55904] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishServices: 2 rows in batches of 25000 (Thread: ThreadPoolExecutor-18_8) - __SPLIT__ 2026-02-15 09:17:56,694 - [55904] - src.utils.log - INFO - βœ… All 0 rows inserted successfully into CRM.LeadNote in 0 batches - __SPLIT__ 2026-02-15 09:17:57,378 - [55904] - src.utils.log - INFO - βœ… All 0 rows inserted successfully into ServiceAuto.WorkOrderAppliedDiscount in 0 batches - __SPLIT__ 2026-02-15 09:17:58,037 - [55904] - src.utils.log - INFO - βœ… All 0 rows inserted successfully into ServiceCore.WorkOrderSalesPersonCommission in 0 batches - __SPLIT__ 2026-02-15 09:17:58,711 - [55904] - src.utils.log - INFO - βœ… All 0 rows inserted successfully into ServiceAuto.WorkOrderCommissionAdjustment in 0 batches - __SPLIT__ 2026-02-15 09:17:59,401 - [55904] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderServices - __SPLIT__ 2026-02-15 09:18:00,108 - [55904] - src.utils.log - INFO - βœ… All 0 rows inserted successfully into ServiceCore.SubWorkOrder in 0 batches - __SPLIT__ 2026-02-15 09:18:00,760 - [55904] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderCrew - __SPLIT__ 2026-02-15 09:18:01,429 - [55904] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkorderSourceMapping - __SPLIT__ 2026-02-15 09:18:02,208 - [55904] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationPublishServices - __SPLIT__ 2026-02-15 09:18:02,763 - [55904] - src.utils.log - INFO - [OK] Lead Notes completed. - __SPLIT__ 2026-02-15 09:18:05,893 - [55904] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderServices in 1 batches - __SPLIT__ 2026-02-15 09:18:07,239 - [55904] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderCrew in 1 batches - __SPLIT__ 2026-02-15 09:18:07,904 - [55904] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkorderSourceMapping in 1 batches - __SPLIT__ 2026-02-15 09:18:08,560 - [55904] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishServices in 1 batches - __SPLIT__ 2026-02-15 09:18:09,116 - [55904] - src.utils.log - INFO - [OK] Discount Applied completed. - __SPLIT__ 2026-02-15 09:18:12,459 - [55904] - src.utils.log - INFO - [OK] Sales Person Commission completed. - __SPLIT__ 2026-02-15 09:18:13,129 - [55904] - src.utils.log - INFO - [OK] Adjustment completed. - __SPLIT__ 2026-02-15 09:18:13,792 - [55904] - src.utils.log - INFO - [OK] Sub WO completed. - __SPLIT__ 2026-02-15 09:18:14,459 - [55904] - src.utils.log - INFO - [OK] Services completed. - __SPLIT__ 2026-02-15 09:18:15,126 - [55904] - src.utils.log - INFO - [OK] Crew completed. - __SPLIT__ 2026-02-15 09:18:15,795 - [55904] - src.utils.log - INFO - [OK] Source Mapping completed. - __SPLIT__ 2026-02-15 09:18:16,458 - [55904] - src.utils.log - INFO - [OK] Publish Services completed. - __SPLIT__ 2026-02-15 09:18:17,133 - [55904] - src.utils.log - INFO - All publish tasks completed successfully. - __SPLIT__ 2026-02-15 09:18:17,802 - [55904] - src.utils.log - INFO - Updating Next GenerationDate - __SPLIT__ 2026-02-15 09:18:18,472 - [55904] - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, MAX(NextWorkOrderGenerationDate) AS MaxNextWorkOrderGeneration FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 55904 GROUP BY ServiceSetupId; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-15 09:18:19,445 - [55904] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-15 09:18:20,114 - [55904] - src.utils.log - INFO - πŸ”„ Updating next gen date parallely: inside update_next_workorder_generation - __SPLIT__ 2026-02-15 09:18:20,796 - [55904] - src.utils.log - INFO - πŸ›  Creating temp table #tbl_06ae313173 - __SPLIT__ 2026-02-15 09:18:21,463 - [55904] - src.utils.log - INFO - πŸ“Œ Bulk inserting 1 rows into #tbl_06ae313173 - __SPLIT__ 2026-02-15 09:18:22,177 - [55904] - src.utils.log - INFO - πŸ” Running UPDATE to apply changes - __SPLIT__ 2026-02-15 09:18:22,861 - [55904] - src.utils.log - INFO - βœ” SQL reported affected rows: 1 - __SPLIT__ 2026-02-15 09:18:23,515 - [55904] - src.utils.log - INFO - πŸŽ‰ Successfully updated NextGenerationDate using temp table #tbl_06ae313173 - __SPLIT__ 2026-02-15 09:18:24,175 - [55904] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 55904 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-15 09:18:24,849 - [55904] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-15 09:18:25,498 - [55904] - src.utils.log - INFO - Parallel deletion from temp tables begin - __SPLIT__ 2026-02-15 09:18:26,152 - [55904] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId in (473151, 473152) (Thread: ThreadPoolExecutor-20_0) - __SPLIT__ 2026-02-15 09:18:26,153 - [55904] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId in (473151, 473152) (Thread: ThreadPoolExecutor-20_1) - __SPLIT__ 2026-02-15 09:18:26,153 - [55904] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId in (473151, 473152) (Thread: ThreadPoolExecutor-20_2) - __SPLIT__ 2026-02-15 09:18:26,153 - [55904] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId in (473151, 473152) (Thread: ThreadPoolExecutor-20_3) - __SPLIT__ 2026-02-15 09:18:26,153 - [55904] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId in (473151, 473152) (Thread: ThreadPoolExecutor-20_4) - __SPLIT__ 2026-02-15 09:18:26,154 - [55904] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (473151, 473152) (Thread: ThreadPoolExecutor-20_5) - __SPLIT__ 2026-02-15 09:18:26,157 - [55904] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId in (473151, 473152) (Thread: ThreadPoolExecutor-20_6) - __SPLIT__ 2026-02-15 09:18:26,870 - [55904] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-15 09:18:27,509 - [55904] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-15 09:18:28,148 - [55904] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-15 09:18:28,811 - [55904] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-15 09:18:29,456 - [55904] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-15 09:18:30,134 - [55904] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-15 09:18:30,758 - [55904] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-15 09:18:31,382 - [55904] - src.utils.log - INFO - [OK] Deleted from Services - __SPLIT__ 2026-02-15 09:18:36,356 - [55904] - src.utils.log - INFO - [OK] Deleted from Crews - __SPLIT__ 2026-02-15 09:18:37,032 - [55904] - src.utils.log - INFO - [OK] Deleted from SalesPersonCommission - __SPLIT__ 2026-02-15 09:18:37,699 - [55904] - src.utils.log - INFO - [OK] Deleted from AppliedDiscount - __SPLIT__ 2026-02-15 09:18:38,366 - [55904] - src.utils.log - INFO - [OK] Deleted from SourceMapping - __SPLIT__ 2026-02-15 09:18:39,032 - [55904] - src.utils.log - INFO - [OK] Deleted from SubWorkOrder - __SPLIT__ 2026-02-15 09:18:39,695 - [55904] - src.utils.log - INFO - [OK] Deleted from Adjustment - __SPLIT__ 2026-02-15 09:18:40,366 - [55904] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (473151, 473152) (Thread: ThreadPoolExecutor-19_0) - __SPLIT__ 2026-02-15 09:18:41,123 - [55904] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-15 09:18:41,788 - [55904] - src.utils.log - INFO - βœ” Completed batch of 2 records - __SPLIT__ 2026-02-15 09:18:42,454 - [55904] - src.utils.log - INFO - πŸŽ‰ All batches processed. - __SPLIT__ 2026-02-15 09:18:43,125 - [55904] - src.utils.log - INFO - Work order published ids: (473151, 473152) - __SPLIT__ 2026-02-15 09:18:43,801 - [55904] - src.utils.log - INFO - Time took to perform operation in publishing [55904]: 92.59 - __SPLIT__ 2026-02-15 09:18:44,476 - [55904] - src.utils.log - INFO - Publish Completed for GenerateWorkOrderHistoryId: [55904] - __SPLIT__ 2026-02-15 09:18:45,142 - [55904] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-02-15 04:18:43.125' WHERE CompanyId = 146 AND GenerateWorkOrderHistoryId = 55904;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-15 09:18:45,845 - [55904] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-02-15 10:48:04,348 - [55906] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[473157, 473158] user_id=44502 company_id=145 project_id=[55906] publish_all=False - __SPLIT__ 2026-02-15 10:48:05,310 - [55906] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[473157, 473158] user_id=44502 company_id=145 project_id=[55906] publish_all=False - __SPLIT__ 2026-02-15 10:48:05,982 - [55906] - src.utils.log - INFO - Sequential Work order publish in progress for GenerateWorkOrderHistoryId: [55906] - __SPLIT__ 2026-02-15 10:48:06,644 - [55906] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-02-15 10:48:07,314 - [55906] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Samsung'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-15 10:48:08,178 - [55906] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-15 10:48:08,839 - [55906] - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-02-15 10:48:09,503 - [55906] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'InProgress' WHERE CompanyId = 145 AND GenerateWorkOrderHistoryId = 55906;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-15 10:48:10,188 - [55906] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-02-15 10:48:10,862 - [55906] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (473157, 473158)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-15 10:48:11,554 - [55906] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-02-15 10:48:12,213 - [55906] - src.utils.log - INFO - Inside get_work_order_table - __SPLIT__ 2026-02-15 10:48:12,876 - [55906] - 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 = 95377 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-15 10:48:13,575 - [55906] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-15 10:48:14,240 - [55906] - 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 = 95377 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-15 10:48:14,931 - [55906] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-15 10:48:15,595 - [55906] - 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 = 95377 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-15 10:48:16,293 - [55906] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-15 10:48:16,958 - [55906] - 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-02-15 10:48:17,650 - [55906] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-02-15 10:48:18,317 - [55906] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder,BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 145;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-15 10:48:19,301 - [55906] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-15 10:48:19,964 - [55906] - src.utils.log - INFO - πŸ“ Executing: UPDATE Common.GenerateNumberConfig SET NextNumber = '222090' WHERE CompanyId = 145 AND EnitityNumberType in ('WorkOrder','Invoice');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-15 10:48:20,657 - [55906] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-02-15 10:48:21,326 - [55906] - 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 = 95377... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-15 10:48:22,020 - [55906] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-15 10:48:22,683 - [55906] - src.utils.log - INFO - Size of Transaction: 2 - __SPLIT__ 2026-02-15 10:48:23,347 - [55906] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-15 10:48:24,060 - [55906] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-02-15 10:48:24,848 - [55906] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-02-15 10:48:25,524 - [55906] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-02-15 10:48:26,188 - [55906] - 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-02-15 05:48:22.679';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-15 10:48:26,962 - [55906] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-02-15 10:48:27,629 - [55906] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 95377;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-15 10:48:28,329 - [55906] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-15 10:48:29,003 - [55906] - src.utils.log - INFO - πŸ“ Executing: UPDATE Billing.[Transaction] SET ModifiedBy = NULL WHERE ModifiedBy IN (12345678910,12345678911) AND CreatedDate = '2026-02-15 05:48:22.679'; ... (Thread: ThreadPoolExecutor-21_0) - __SPLIT__ 2026-02-15 10:48:29,881 - [55906] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-02-15 10:48:30,550 - [55906] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-15 10:48:31,255 - [55906] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.Invoice - __SPLIT__ 2026-02-15 10:48:32,040 - [55906] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-02-15 10:48:32,700 - [55906] - src.utils.log - INFO - πŸ” Fetching data: SELECT InvoiceId, WorkOrderNo FROM Billing.Invoice i WHERE i.WorkOrderNo in ('222088', '222089')... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-15 10:48:33,708 - [55906] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-02-15 10:48:34,380 - [55906] - 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 = 95377 and sm.IsActive =1 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-15 10:48:35,070 - [55906] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-02-15 10:48:35,727 - [55906] - 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 = 95377 and sm.IsActive =1 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-15 10:48:36,414 - [55906] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-15 10:48:37,072 - [55906] - 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 = 95377 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-15 10:48:37,757 - [55906] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-15 10:48:38,416 - [55906] - 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 = 95377 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-15 10:48:39,106 - [55906] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-15 10:48:39,773 - [55906] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 95377;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-15 10:48:40,457 - [55906] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-15 10:48:41,119 - [55906] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId, AppliedDiscountAmt as AppliedDiscountAmount,IsActive ,ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 95377;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-15 10:48:41,808 - [55906] - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-02-15 10:48:42,471 - [55906] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId,IsActive,DiscountAmount, IsDiscountPercent,DiscountPercent,DiscountDescription , ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 95377;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-15 10:48:43,162 - [55906] - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-02-15 10:48:43,823 - [55906] - src.utils.log - INFO - Sequential Insertion in invoice tables begin - __SPLIT__ 2026-02-15 10:48:44,485 - [55906] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.AccountDiscountSetup: 4 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-15 10:48:45,174 - [55906] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 4) into Billing.AccountDiscountSetup - __SPLIT__ 2026-02-15 10:48:45,938 - [55906] - src.utils.log - INFO - βœ… All 4 rows inserted successfully into Billing.AccountDiscountSetup in 1 batches - __SPLIT__ 2026-02-15 10:48:46,601 - [55906] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceCharges: 3 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-15 10:48:47,599 - [55906] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into Billing.InvoiceCharges - __SPLIT__ 2026-02-15 10:48:48,366 - [55906] - src.utils.log - INFO - βœ… All 3 rows inserted successfully into Billing.InvoiceCharges in 1 batches - __SPLIT__ 2026-02-15 10:48:49,011 - [55906] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.DiscountApplied: 4 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-15 10:48:49,701 - [55906] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 4) into Billing.DiscountApplied - __SPLIT__ 2026-02-15 10:48:50,464 - [55906] - src.utils.log - INFO - βœ… All 4 rows inserted successfully into Billing.DiscountApplied in 1 batches - __SPLIT__ 2026-02-15 10:48:51,127 - [55906] - src.utils.log - INFO - Invoice Publish Done - __SPLIT__ 2026-02-15 10:48:51,777 - [55906] - src.utils.log - INFO - πŸ” Fetching data: SELECT x.CompanyId FROM CRM.CompanyMaster x WHERE CompanyKey = 'Samsung';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-15 10:48:52,458 - [55906] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-15 10:48:53,111 - [55906] - src.utils.log - INFO - πŸ” Fetching data: SELECT CollectionStatus,IsHold,AccountNo FROM CRM.Account a WHERE a.AccountNo = '2786' and a.CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-15 10:48:53,795 - [55906] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-15 10:48:54,442 - [55906] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrder (skip triggers): 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-15 10:48:55,169 - [55906] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrder (triggers skipped) - __SPLIT__ 2026-02-15 10:48:55,967 - [55906] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrder in 1 batches (triggers skipped) - __SPLIT__ 2026-02-15 10:48:56,634 - [55906] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-02-15 10:48:57,291 - [55906] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.ServiceSetup SET IsInitialWoGenerated = 1 WHERE CompanyId = 145 AND ServiceSetupId = 95377;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-15 10:48:57,975 - [55906] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-02-15 10:48:58,623 - [55906] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkorderId, WorkOrderNo FROM ServiceCore.WorkOrder wo WHERE wo.WorkOrderNo IN ('222088', '222089') AND wo.AccountNumber = '2786' AND wo.CompanyId = 145 ... (Thread: ThreadPoolExecutor-22_0) - __SPLIT__ 2026-02-15 10:48:59,313 - [55906] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-02-15 10:48:59,958 - [55906] - src.utils.log - INFO - Sequential fetching temp table records - __SPLIT__ 2026-02-15 10:49:00,609 - [55906] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationServices woag WHERE woag.WorkOrderAutoGenerationId in (473157, 473158)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-15 10:49:01,626 - [55906] - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-02-15 10:49:02,302 - [55906] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SubWorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (473157, 473158)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-15 10:49:03,023 - [55906] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-15 10:49:03,717 - [55906] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationCrews woag WHERE woag.WorkOrderAutoGenerationId in (473157, 473158)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-15 10:49:04,431 - [55906] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-02-15 10:49:05,111 - [55906] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationSalesPersonCommission woag WHERE woag.WorkOrderAutoGenerationId in (473157, 473158)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-15 10:49:05,815 - [55906] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-15 10:49:06,488 - [55906] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupAutoGenerationSourceMapping woag WHERE woag.WorkOrderAutoGenerationId in (473157, 473158)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-15 10:49:07,198 - [55906] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-15 10:49:07,880 - [55906] - 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 (473157, 473158)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-15 10:49:08,585 - [55906] - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-02-15 10:49:09,259 - [55906] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from CRM.LeadNote woag WHERE woag.RefId in (473157, 473158) and woag.RefType = 'TempWorkorder';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-15 10:49:09,967 - [55906] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-15 10:49:10,646 - [55906] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment woagca WHERE woagca.WorkOrderAutoGenerationId in (473157, 473158);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-15 10:49:11,349 - [55906] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-15 10:49:12,023 - [55906] - src.utils.log - INFO - Updating temp tables - __SPLIT__ 2026-02-15 10:49:12,712 - [55906] - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyKey FROM Common.CompanyMaster cm WHERE CompanyId = 145;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-15 10:49:13,415 - [55906] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-15 10:49:14,095 - [55906] - src.utils.log - INFO - πŸ” Fetching data: Select DiscountSetupId, [SysName] as DiscountSysName from Common.DiscountSetupMaster WHERE DiscountSetupId IN (882, 881, 886) AND CompanyId = 145 AND IsActive = 1;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-15 10:49:14,803 - [55906] - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-02-15 10:49:15,763 - [55906] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 145 AND EnitityNumberType in ('SubWorkOrder'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-15 10:49:16,460 - [55906] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-15 10:49:17,124 - [55906] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishHistory: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-15 10:49:17,851 - [55906] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationPublishHistory - __SPLIT__ 2026-02-15 10:49:18,643 - [55906] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishHistory in 1 batches - __SPLIT__ 2026-02-15 10:49:19,307 - [55906] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationPublishHistoryId, WorkOrderNo, ServiceSetupId FROM ServiceCore.WorkOrderAutoGenerationPublishHistory WHERE ServiceSetupId = 95377 AND WorkOrderNo IN ('602142', '9074903') AND GenerateWorkOrderHistoryId = 55906;... (Thread: ThreadPoolExecutor-23_0) - __SPLIT__ 2026-02-15 10:49:20,034 - [55906] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-02-15 10:49:20,692 - [55906] - src.utils.log - INFO - 🏁 Final merged rows: 2 - __SPLIT__ 2026-02-15 10:49:21,360 - [55906] - src.utils.log - INFO - Sequential Insertion in work order tables begin - __SPLIT__ 2026-02-15 10:49:22,021 - [55906] - src.utils.log - INFO - πŸ“₯ Inserting into CRM.LeadNote: 0 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-15 10:49:22,712 - [55906] - src.utils.log - INFO - βœ… All 0 rows inserted successfully into CRM.LeadNote in 0 batches - __SPLIT__ 2026-02-15 10:49:23,375 - [55906] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.WorkOrderAppliedDiscount: 4 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-15 10:49:24,087 - [55906] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 4) into ServiceAuto.WorkOrderAppliedDiscount - __SPLIT__ 2026-02-15 10:49:24,861 - [55906] - src.utils.log - INFO - βœ… All 4 rows inserted successfully into ServiceAuto.WorkOrderAppliedDiscount in 1 batches - __SPLIT__ 2026-02-15 10:49:25,527 - [55906] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderSalesPersonCommission: 0 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-15 10:49:26,221 - [55906] - src.utils.log - INFO - βœ… All 0 rows inserted successfully into ServiceCore.WorkOrderSalesPersonCommission in 0 batches - __SPLIT__ 2026-02-15 10:49:26,884 - [55906] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.WorkOrderCommissionAdjustment: 0 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-15 10:49:27,580 - [55906] - src.utils.log - INFO - βœ… All 0 rows inserted successfully into ServiceAuto.WorkOrderCommissionAdjustment in 0 batches - __SPLIT__ 2026-02-15 10:49:28,241 - [55906] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderServices: 4 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-15 10:49:28,930 - [55906] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 4) into ServiceCore.WorkOrderServices - __SPLIT__ 2026-02-15 10:49:29,976 - [55906] - src.utils.log - INFO - βœ… All 4 rows inserted successfully into ServiceCore.WorkOrderServices in 1 batches - __SPLIT__ 2026-02-15 10:49:30,629 - [55906] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.SubWorkOrder: 0 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-15 10:49:31,310 - [55906] - src.utils.log - INFO - βœ… All 0 rows inserted successfully into ServiceCore.SubWorkOrder in 0 batches - __SPLIT__ 2026-02-15 10:49:31,956 - [55906] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderCrew: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-15 10:49:32,647 - [55906] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderCrew - __SPLIT__ 2026-02-15 10:49:33,405 - [55906] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderCrew in 1 batches - __SPLIT__ 2026-02-15 10:49:34,057 - [55906] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkorderSourceMapping: 0 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-15 10:49:34,732 - [55906] - src.utils.log - INFO - βœ… All 0 rows inserted successfully into ServiceCore.WorkorderSourceMapping in 0 batches - __SPLIT__ 2026-02-15 10:49:35,376 - [55906] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishServices: 4 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-15 10:49:36,058 - [55906] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 4) into ServiceCore.WorkOrderAutoGenerationPublishServices - __SPLIT__ 2026-02-15 10:49:36,841 - [55906] - src.utils.log - INFO - βœ… All 4 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishServices in 1 batches - __SPLIT__ 2026-02-15 10:49:37,499 - [55906] - src.utils.log - INFO - Updating Next GenerationDate - __SPLIT__ 2026-02-15 10:49:38,151 - [55906] - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, MAX(NextWorkOrderGenerationDate) AS MaxNextWorkOrderGeneration FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 55906 GROUP BY ServiceSetupId; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-15 10:49:38,830 - [55906] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-15 10:49:39,485 - [55906] - src.utils.log - INFO - πŸ”„ Updating next gen date sequentially: inside update_next_workorder_generation - __SPLIT__ 2026-02-15 10:49:40,144 - [55906] - src.utils.log - INFO - πŸ›  Creating temp table #tbl_15a8a57858 - __SPLIT__ 2026-02-15 10:49:40,829 - [55906] - src.utils.log - INFO - πŸ“Œ Bulk inserting 1 rows into #tbl_15a8a57858 - __SPLIT__ 2026-02-15 10:49:41,503 - [55906] - src.utils.log - INFO - πŸ” Running MERGE update to apply changes - __SPLIT__ 2026-02-15 10:49:42,171 - [55906] - src.utils.log - INFO - βœ” SQL reported affected rows: 1 - __SPLIT__ 2026-02-15 10:49:42,843 - [55906] - src.utils.log - INFO - πŸ” Verified successfully updated 1 rows via #tbl_15a8a57858 - __SPLIT__ 2026-02-15 10:49:43,818 - [55906] - src.utils.log - INFO - πŸŽ‰ Successfully updated NextGenerationDate using temp table #tbl_15a8a57858 - __SPLIT__ 2026-02-15 10:49:44,493 - [55906] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 55906 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-15 10:49:45,201 - [55906] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-15 10:49:45,876 - [55906] - src.utils.log - INFO - Sequential deletion from temp tables begin - __SPLIT__ 2026-02-15 10:49:46,553 - [55906] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId in (473157, 473158) (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-15 10:49:47,299 - [55906] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-15 10:49:47,970 - [55906] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId in (473157, 473158) (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-15 10:49:48,704 - [55906] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-15 10:49:49,378 - [55906] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId in (473157, 473158) (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-15 10:49:50,083 - [55906] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-15 10:49:50,756 - [55906] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId in (473157, 473158) (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-15 10:49:51,465 - [55906] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-15 10:49:52,165 - [55906] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId in (473157, 473158) (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-15 10:49:52,871 - [55906] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-15 10:49:53,541 - [55906] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (473157, 473158) (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-15 10:49:54,276 - [55906] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-15 10:49:54,947 - [55906] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId in (473157, 473158) (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-15 10:49:55,648 - [55906] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-15 10:49:56,328 - [55906] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (473157, 473158) (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-15 10:49:57,126 - [55906] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-15 10:49:58,077 - [55906] - src.utils.log - INFO - Work order published ids: (473157, 473158) - __SPLIT__ 2026-02-15 10:49:58,738 - [55906] - src.utils.log - INFO - Time took to perform operation in publishing [55906]: 112.09 - __SPLIT__ 2026-02-15 10:49:59,395 - [55906] - src.utils.log - INFO - Publish Completed for GenerateWorkOrderHistoryId: [55906] - __SPLIT__ 2026-02-15 10:50:00,053 - [55906] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-02-15 05:49:58.077' WHERE CompanyId = 145 AND GenerateWorkOrderHistoryId = 55906;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-15 10:50:00,741 - [55906] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__