2026-06-01 09:54:34,828 - 56374 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=56374 - __SPLIT__ 2026-06-01 09:54:36,485 - 56374 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 56374 - __SPLIT__ 2026-06-01 09:54:36,486 - 56374 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-06-01 09:54:36,486 - 56374 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-01 09:54:36,690 - 56374 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-01 09:54:36,691 - 56374 - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-06-01 09:54:36,691 - 56374 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 56374;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-01 09:54:36,722 - 56374 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-01 09:54:36,723 - 56374 - 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 = 56374), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 56374), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 56374 AND ss.FrequencyScheduleId IS NOT NULL AND ss.IsActive = 1 AND ss.IsDeleted = 0 AND ss.Status <> 'Canceled' AND ((ss.OrderType = gw.OrderType) OR gw.OrderType IS NULL);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-01 09:54:36,776 - 56374 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-01 09:54:36,777 - 56374 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 56374;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-01 09:54:36,809 - 56374 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-01 09:54:36,811 - 56374 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-06-01 09:54:36,812 - 56374 - 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 = 14934... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-01 09:54:36,851 - 56374 - src.utils.log - INFO - βœ… Fetched 60 rows - __SPLIT__ 2026-06-01 09:54:36,851 - 56374 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-06-01 09:54:36,853 - 56374 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-06-01 09:54:36,853 - 56374 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 106066;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-01 09:54:36,884 - 56374 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-01 09:54:36,884 - 56374 - src.utils.log - INFO - πŸ” Fetching data: select ServiceDate, ServiceSetupId, IsInitial from serviceCore.WorkOrder wo inner join ServiceCore.WorkOrderStatus wos on wo.WoStatusId = wos.WoStatusId where ServiceDate >= '2026-06-01 00:00:00' and ServiceDate <= '2026-12-31 00:00:00' and ServiceSetupId = 106066 and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-01 09:54:36,921 - 56374 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-01 09:54:37,003 - 56374 - src.utils.log - INFO - Generating work orders for setup: 106066 - __SPLIT__ 2026-06-01 09:54:37,094 - 56374 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 11520;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-01 09:54:37,125 - 56374 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-01 09:54:37,165 - 56374 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-06-01 09:54:37,170 - 56374 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=146 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-01 09:54:37,201 - 56374 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-01 09:54:37,203 - 56374 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-06-01 09:54:37,203 - 56374 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-06-01 09:54:37,203 - 56374 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 106066 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-01 09:54:37,266 - 56374 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-01 09:54:37,267 - 56374 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 106066 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-01 09:54:37,329 - 56374 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-01 09:54:37,329 - 56374 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 106066 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-01 09:54:37,392 - 56374 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-01 09:54:37,392 - 56374 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 106066 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-01 09:54:37,599 - 56374 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-01 09:54:37,600 - 56374 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 106066 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-01 09:54:37,662 - 56374 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-01 09:54:37,662 - 56374 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 106066 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-01 09:54:37,726 - 56374 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-01 09:54:37,726 - 56374 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 106066 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-01 09:54:37,761 - 56374 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-01 09:54:37,761 - 56374 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 106066 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-01 09:54:37,867 - 56374 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-01 09:54:37,867 - 56374 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-01 09:54:37,867 - 56374 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 15 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-01 09:54:37,940 - 56374 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 15) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-06-01 09:54:38,216 - 56374 - src.utils.log - INFO - βœ… All 15 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-06-01 09:54:38,216 - 56374 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 15 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-05-13 16:42:40.938' and ServiceSetupId = 106066... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-01 09:54:38,278 - 56374 - src.utils.log - INFO - βœ… Fetched 15 rows - __SPLIT__ 2026-06-01 09:54:38,279 - 56374 - src.utils.log - INFO - Id's of work order inserted to DB: [577605 577606 577607 577608 577609 577610 577611 577612 577613 577614 577615 577616 577617 577618 577619] - __SPLIT__ 2026-06-01 09:54:38,279 - 56374 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 106066;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-01 09:54:38,310 - 56374 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-01 09:54:38,310 - 56374 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-06-01 09:54:38,311 - 56374 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId = 106066... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-01 09:54:38,342 - 56374 - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-06-01 09:54:38,343 - 56374 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId = 106066... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-01 09:54:38,374 - 56374 - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-06-01 09:54:38,380 - 56374 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId = 106066... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-01 09:54:38,415 - 56374 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-01 09:54:38,416 - 56374 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId = 106066... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-01 09:54:38,446 - 56374 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-01 09:54:38,446 - 56374 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId = 106066... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-01 09:54:38,476 - 56374 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-01 09:54:38,476 - 56374 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId = 106066;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-01 09:54:38,506 - 56374 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-01 09:54:38,507 - 56374 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId = 106066;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-01 09:54:38,536 - 56374 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-01 09:54:38,537 - 56374 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId = 106066;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-01 09:54:38,793 - 56374 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-01 09:54:38,793 - 56374 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId = 106066;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-01 09:54:38,824 - 56374 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-01 09:54:38,836 - 56374 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-06-01 09:54:38,836 - 56374 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-06-01 09:54:38,836 - 56374 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-06-01 09:54:38,836 - 56374 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.CommunicationPreferencesServiceReportNotification: - __SPLIT__ 2026-06-01 09:54:38,836 - 56374 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-06-01 09:54:38,836 - 56374 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SetupAutoGenerationSourceMapping: - __SPLIT__ 2026-06-01 09:54:38,836 - 56374 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-06-01 09:54:38,836 - 56374 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationAppliedDiscount: - __SPLIT__ 2026-06-01 09:54:38,836 - 56374 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-06-01 09:54:38,836 - 56374 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SubWorkOrderAutoGeneration: - __SPLIT__ 2026-06-01 09:54:38,836 - 56374 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-06-01 09:54:38,836 - 56374 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: - __SPLIT__ 2026-06-01 09:54:38,836 - 56374 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-06-01 09:54:38,836 - 56374 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: - __SPLIT__ 2026-06-01 09:54:38,836 - 56374 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-06-01 09:54:38,836 - 56374 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-01 09:54:38,837 - 56374 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (577605, 577606, 577607, 577608, 577609, 577610, 577611, 577612, 577613, 577614, 577615, 577616, 577617, 577618, 577619) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-01 09:54:38,867 - 56374 - src.utils.log - INFO - βœ… Fetched 15 rows - __SPLIT__ 2026-06-01 09:54:38,868 - 56374 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationCrews: 15 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-01 09:54:38,916 - 56374 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 15) into ServiceCore.WorkOrderAutoGenerationCrews - __SPLIT__ 2026-06-01 09:54:39,035 - 56374 - src.utils.log - INFO - βœ… All 15 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationCrews in 1 batches - __SPLIT__ 2026-06-01 09:54:39,036 - 56374 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-06-01 09:54:39,036 - 56374 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-01 09:54:39,036 - 56374 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 577605 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-01 09:54:39,066 - 56374 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-01 09:54:39,067 - 56374 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 3 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-01 09:54:39,119 - 56374 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-06-01 09:54:39,234 - 56374 - src.utils.log - INFO - βœ… All 3 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-06-01 09:54:39,234 - 56374 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-06-01 09:54:39,235 - 56374 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-01 09:54:39,235 - 56374 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (577606, 577607, 577608, 577609, 577610, 577611, 577612, 577613, 577614, 577615, 577616, 577617, 577618, 577619) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-01 09:54:39,265 - 56374 - src.utils.log - INFO - βœ… Fetched 14 rows - __SPLIT__ 2026-06-01 09:54:39,266 - 56374 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 42 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-01 09:54:39,302 - 56374 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 42) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-06-01 09:54:39,453 - 56374 - src.utils.log - INFO - βœ… All 42 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-06-01 09:54:39,453 - 56374 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-06-01 09:54:39,453 - 56374 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 56374;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-01 09:54:39,482 - 56374 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-01 09:54:39,483 - 56374 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-06-01 09:54:39,483 - 56374 - src.utils.log - INFO - Time took to perform operation: 3.0 - __SPLIT__ 2026-06-01 09:54:39,483 - 56374 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 56374;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-01 09:54:39,512 - 56374 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-01 09:54:39,512 - 56374 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET WorkOrderStatusDateTime = '2026-06-01 05:54:39.512' WHERE GenerateWorkOrderHistoryId = 56374;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-01 09:54:39,543 - 56374 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-01 19:54:19,221 - 25657 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=25657 - __SPLIT__ 2026-06-01 19:54:19,224 - 25657 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 25657 - __SPLIT__ 2026-06-01 19:54:19,238 - 25657 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-06-01 19:54:19,238 - 25657 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-01 19:54:19,691 - 25657 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-01 19:54:19,691 - 25657 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-06-01 19:54:19,692 - 25657 - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-06-01 19:54:19,692 - 25657 - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-06-01 19:54:19,692 - 25657 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 25657;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-01 19:54:20,078 - 25657 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-01 19:54:20,079 - 25657 - 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 = 25657), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 25657), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 25657 AND ss.FrequencyScheduleId IS NOT NULL AND ss.IsActive = 1 AND ss.IsDeleted = 0 AND ss.Status <> 'Canceled' AND ((ss.OrderType = gw.OrderType) OR gw.OrderType IS NULL);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-01 19:54:20,223 - 25657 - src.utils.log - INFO - βœ… Fetched 31 rows - __SPLIT__ 2026-06-01 19:54:20,224 - 25657 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 25657;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-01 19:54:20,251 - 25657 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-01 19:54:20,255 - 25657 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-06-01 19:54:20,256 - 25657 - 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 (14595, 14819, 14532, 14693, 14664, 14536, 14666, 14474, 14668, 14539, 14638, 14604, 14634, 14571, 14775, 14648, 14553)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-01 19:54:20,305 - 25657 - src.utils.log - INFO - βœ… Fetched 242 rows - __SPLIT__ 2026-06-01 19:54:20,305 - 25657 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-06-01 19:54:20,308 - 25657 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-06-01 19:54:20,309 - 25657 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId in (57988, 64133, 65673, 59283, 67219, 26395, 64415, 45728, 47009, 51623, 65191, 67121, 40627, 54453, 39481, 48573, 62405, 62923, 48334, 32594, 63573, 67161, 23134, 64994, 46434, 47333, 47462, 31591, 67182, 67184, 22653);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-01 19:54:20,338 - 25657 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-01 19:54:20,338 - 25657 - src.utils.log - INFO - πŸ” Fetching data: select ServiceDate, ServiceSetupId,IsInitial from serviceCore.WorkOrder wo inner join ServiceCore.WorkOrderStatus wos on wo.WoStatusId = wos.WoStatusId where ServiceDate >= '2026-06-01 00:00:00' and ServiceDate <= '2026-06-30 00:00:00' and ServiceSetupId in (57988, 64133, 65673, 59283, 67219, 26395, 64415, 45728, 47009, 51623, 65191, 67121, 40627, 54453, 39481, 48573, 62405, 62923, 48334, 32594, 63573, 67161, 23134, 64994, 46434, 47333, 47462, 31591, 67182, 67184, 22653) and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-01 19:54:20,375 - 25657 - src.utils.log - INFO - βœ… Fetched 5 rows - __SPLIT__ 2026-06-01 19:54:20,522 - 25657 - src.utils.log - INFO - Generating work orders for setup: 67182 - __SPLIT__ 2026-06-01 19:54:20,531 - 25657 - src.utils.log - INFO - Generating work orders for setup: 57988 - __SPLIT__ 2026-06-01 19:54:20,531 - 25657 - src.utils.log - INFO - Generating work orders for setup: 22653 - __SPLIT__ 2026-06-01 19:54:20,537 - 25657 - src.utils.log - INFO - Generating work orders for setup: 62923 - __SPLIT__ 2026-06-01 19:54:20,544 - 25657 - src.utils.log - INFO - Generating work orders for setup: 67184 - __SPLIT__ 2026-06-01 19:54:20,549 - 25657 - src.utils.log - INFO - Generating work orders for setup: 67161 - __SPLIT__ 2026-06-01 19:54:20,555 - 25657 - src.utils.log - INFO - Generating work orders for setup: 67219 - __SPLIT__ 2026-06-01 19:54:20,560 - 25657 - src.utils.log - INFO - Generating work orders for setup: 31591 - __SPLIT__ 2026-06-01 19:54:20,560 - 25657 - src.utils.log - INFO - Generating work orders for setup: 32594 - __SPLIT__ 2026-06-01 19:54:20,561 - 25657 - src.utils.log - INFO - Generating work orders for setup: 67121 - __SPLIT__ 2026-06-01 19:54:20,567 - 25657 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId in (11428.0, 11429.0, -1.0);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-01 19:54:20,594 - 25657 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-01 19:54:20,633 - 25657 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-06-01 19:54:20,639 - 25657 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=133 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-01 19:54:20,665 - 25657 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-01 19:54:20,666 - 25657 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-06-01 19:54:20,666 - 25657 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-06-01 19:54:20,666 - 25657 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (57988, 64133, 65673, 59283, 67219, 26395, 64415, 45728, 47009, 51623, 65191, 67121, 40627, 54453, 39481, 48573, 62405, 62923, 48334, 32594, 63573, 67161, 23134, 64994, 46434, 47333, 47462, 31591, 67182, 67184, 22653) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-01 19:54:20,697 - 25657 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-01 19:54:20,698 - 25657 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (57988, 64133, 65673, 59283, 67219, 26395, 64415, 45728, 47009, 51623, 65191, 67121, 40627, 54453, 39481, 48573, 62405, 62923, 48334, 32594, 63573, 67161, 23134, 64994, 46434, 47333, 47462, 31591, 67182, 67184, 22653) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-01 19:54:20,730 - 25657 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-01 19:54:20,730 - 25657 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (57988, 64133, 65673, 59283, 67219, 26395, 64415, 45728, 47009, 51623, 65191, 67121, 40627, 54453, 39481, 48573, 62405, 62923, 48334, 32594, 63573, 67161, 23134, 64994, 46434, 47333, 47462, 31591, 67182, 67184, 22653) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-01 19:54:20,763 - 25657 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-01 19:54:20,763 - 25657 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (57988, 64133, 65673, 59283, 67219, 26395, 64415, 45728, 47009, 51623, 65191, 67121, 40627, 54453, 39481, 48573, 62405, 62923, 48334, 32594, 63573, 67161, 23134, 64994, 46434, 47333, 47462, 31591, 67182, 67184, 22653) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-01 19:54:20,798 - 25657 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-01 19:54:20,799 - 25657 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (57988, 64133, 65673, 59283, 67219, 26395, 64415, 45728, 47009, 51623, 65191, 67121, 40627, 54453, 39481, 48573, 62405, 62923, 48334, 32594, 63573, 67161, 23134, 64994, 46434, 47333, 47462, 31591, 67182, 67184, 22653) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-01 19:54:20,834 - 25657 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-01 19:54:20,835 - 25657 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (57988, 64133, 65673, 59283, 67219, 26395, 64415, 45728, 47009, 51623, 65191, 67121, 40627, 54453, 39481, 48573, 62405, 62923, 48334, 32594, 63573, 67161, 23134, 64994, 46434, 47333, 47462, 31591, 67182, 67184, 22653) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-01 19:54:20,869 - 25657 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-01 19:54:20,869 - 25657 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (57988, 64133, 65673, 59283, 67219, 26395, 64415, 45728, 47009, 51623, 65191, 67121, 40627, 54453, 39481, 48573, 62405, 62923, 48334, 32594, 63573, 67161, 23134, 64994, 46434, 47333, 47462, 31591, 67182, 67184, 22653) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-01 19:54:20,897 - 25657 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-01 19:54:20,898 - 25657 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (57988, 64133, 65673, 59283, 67219, 26395, 64415, 45728, 47009, 51623, 65191, 67121, 40627, 54453, 39481, 48573, 62405, 62923, 48334, 32594, 63573, 67161, 23134, 64994, 46434, 47333, 47462, 31591, 67182, 67184, 22653) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-01 19:54:20,938 - 25657 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-01 19:54:20,938 - 25657 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-01 19:54:20,939 - 25657 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 6 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-01 19:54:21,045 - 25657 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 6) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-06-01 19:54:21,242 - 25657 - src.utils.log - INFO - βœ… All 6 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-06-01 19:54:21,242 - 25657 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 6 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-06-01 15:40:23.486' and ServiceSetupId in (57988, 64133, 65673, 59283, 67219, 26395, 64415, 45728, 47009, 51623, 65191, 67121, 40627, 54453, 39481, 48573, 62405, 62923, 48334, 32594, 63573, 67161, 23134, 64994, 46434, 47333, 47462, 31591, 67182, 67184, 22653)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-01 19:54:21,272 - 25657 - src.utils.log - INFO - βœ… Fetched 6 rows - __SPLIT__ 2026-06-01 19:54:21,273 - 25657 - src.utils.log - INFO - Id's of work order inserted to DB: [678144 678145 678146 678147 678148 678149] - __SPLIT__ 2026-06-01 19:54:21,273 - 25657 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId in (57988, 64133, 65673, 59283, 67219, 26395, 64415, 45728, 47009, 51623, 65191, 67121, 40627, 54453, 39481, 48573, 62405, 62923, 48334, 32594, 63573, 67161, 23134, 64994, 46434, 47333, 47462, 31591, 67182, 67184, 22653);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-01 19:54:21,300 - 25657 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-01 19:54:21,300 - 25657 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-06-01 19:54:21,300 - 25657 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId in (62923, 67182, 67184, 67121, 67219, 67161)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-01 19:54:21,328 - 25657 - src.utils.log - INFO - βœ… Fetched 10 rows - __SPLIT__ 2026-06-01 19:54:21,328 - 25657 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId in (62923, 67182, 67184, 67121, 67219, 67161)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-01 19:54:21,357 - 25657 - src.utils.log - INFO - βœ… Fetched 7 rows - __SPLIT__ 2026-06-01 19:54:21,363 - 25657 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId in (62923, 67182, 67184, 67121, 67219, 67161)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-01 19:54:21,400 - 25657 - src.utils.log - INFO - βœ… Fetched 12 rows - __SPLIT__ 2026-06-01 19:54:21,402 - 25657 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId in (62923, 67182, 67184, 67121, 67219, 67161)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-01 19:54:21,433 - 25657 - src.utils.log - INFO - βœ… Fetched 8 rows - __SPLIT__ 2026-06-01 19:54:21,433 - 25657 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId in (62923, 67182, 67184, 67121, 67219, 67161)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-01 19:54:21,460 - 25657 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-01 19:54:21,460 - 25657 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId in (62923, 67182, 67184, 67121, 67219, 67161);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-01 19:54:21,488 - 25657 - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-06-01 19:54:21,489 - 25657 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId in (62923, 67182, 67184, 67121, 67219, 67161);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-01 19:54:21,517 - 25657 - src.utils.log - INFO - βœ… Fetched 5 rows - __SPLIT__ 2026-06-01 19:54:21,518 - 25657 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId in (62923, 67182, 67184, 67121, 67219, 67161);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-01 19:54:21,872 - 25657 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-01 19:54:21,872 - 25657 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId in (62923, 67182, 67184, 67121, 67219, 67161);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-01 19:54:21,900 - 25657 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-01 19:54:21,918 - 25657 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-06-01 19:54:21,918 - 25657 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-06-01 19:54:21,918 - 25657 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-06-01 19:54:21,919 - 25657 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.CommunicationPreferencesServiceReportNotification: - __SPLIT__ 2026-06-01 19:54:21,919 - 25657 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-06-01 19:54:21,919 - 25657 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-01 19:54:21,919 - 25657 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ('678145', '678144', '678149', '678148', '678147') ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-01 19:54:21,944 - 25657 - src.utils.log - INFO - βœ… Fetched 5 rows - __SPLIT__ 2026-06-01 19:54:21,945 - 25657 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.SetupAutoGenerationSourceMapping: 0 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-01 19:54:21,988 - 25657 - src.utils.log - INFO - βœ… All 0 rows inserted successfully into ServiceCore.SetupAutoGenerationSourceMapping in 0 batches - __SPLIT__ 2026-06-01 19:54:21,988 - 25657 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-06-01 19:54:21,989 - 25657 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-01 19:54:21,989 - 25657 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (678145, 678148) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-01 19:54:22,014 - 25657 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-01 19:54:22,015 - 25657 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationAppliedDiscount: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-01 19:54:22,066 - 25657 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationAppliedDiscount - __SPLIT__ 2026-06-01 19:54:22,164 - 25657 - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationAppliedDiscount in 1 batches - __SPLIT__ 2026-06-01 19:54:22,165 - 25657 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-06-01 19:54:22,165 - 25657 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SubWorkOrderAutoGeneration: - __SPLIT__ 2026-06-01 19:54:22,165 - 25657 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-06-01 19:54:22,165 - 25657 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: - __SPLIT__ 2026-06-01 19:54:22,165 - 25657 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-06-01 19:54:22,165 - 25657 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: - __SPLIT__ 2026-06-01 19:54:22,165 - 25657 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-06-01 19:54:22,165 - 25657 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-01 19:54:22,165 - 25657 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (678144, 678145, 678146, 678147, 678148, 678149) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-01 19:54:22,191 - 25657 - src.utils.log - INFO - βœ… Fetched 6 rows - __SPLIT__ 2026-06-01 19:54:22,192 - 25657 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationCrews: 6 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-01 19:54:22,237 - 25657 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 6) into ServiceCore.WorkOrderAutoGenerationCrews - __SPLIT__ 2026-06-01 19:54:22,336 - 25657 - src.utils.log - INFO - βœ… All 6 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationCrews in 1 batches - __SPLIT__ 2026-06-01 19:54:22,336 - 25657 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-06-01 19:54:22,336 - 25657 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationServices: - __SPLIT__ 2026-06-01 19:54:22,336 - 25657 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-06-01 19:54:22,336 - 25657 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-01 19:54:22,337 - 25657 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (678144, 678145, 678146, 678147, 678148, 678149) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-01 19:54:22,361 - 25657 - src.utils.log - INFO - βœ… Fetched 6 rows - __SPLIT__ 2026-06-01 19:54:22,362 - 25657 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 10 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-01 19:54:22,408 - 25657 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 10) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-06-01 19:54:22,515 - 25657 - src.utils.log - INFO - βœ… All 10 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-06-01 19:54:22,516 - 25657 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-06-01 19:54:22,516 - 25657 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 25657;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-01 19:54:22,541 - 25657 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-01 19:54:22,541 - 25657 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-06-01 19:54:22,541 - 25657 - src.utils.log - INFO - Time took to perform operation: 3.32 - __SPLIT__ 2026-06-01 19:54:22,541 - 25657 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 25657;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-01 19:54:22,566 - 25657 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-01 19:54:22,566 - 25657 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET WorkOrderStatusDateTime = '2026-06-01 15:54:22.566' WHERE GenerateWorkOrderHistoryId = 25657;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-01 19:54:22,592 - 25657 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-01 19:54:46,893 - [25657] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[678144, 678145, 678146, 678147, 678148, 678149] user_id=43606 company_id=133 project_id=[25657] publish_all=False - __SPLIT__ 2026-06-01 19:54:46,894 - [25657] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[678144, 678145, 678146, 678147, 678148, 678149] user_id=43606 company_id=133 project_id=[25657] publish_all=False - __SPLIT__ 2026-06-01 19:54:46,894 - [25657] - src.utils.log - INFO - Sequential Work order publish in progress for GenerateWorkOrderHistoryId: [25657] - __SPLIT__ 2026-06-01 19:54:46,908 - [25657] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-06-01 19:54:46,908 - [25657] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-01 19:54:47,180 - [25657] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-01 19:54:47,181 - [25657] - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-06-01 19:54:47,181 - [25657] - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-06-01 19:54:47,182 - [25657] - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-06-01 19:54:47,182 - [25657] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'InProgress' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 25657;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-01 19:54:47,405 - [25657] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-01 19:54:47,405 - [25657] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (678144, 678145, 678146, 678147, 678148, 678149)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-01 19:54:47,432 - [25657] - src.utils.log - INFO - βœ… Fetched 6 rows - __SPLIT__ 2026-06-01 19:54:47,433 - [25657] - src.utils.log - INFO - Inside get_work_order_table - __SPLIT__ 2026-06-01 19:54:47,433 - [25657] - src.utils.log - INFO - πŸ” Fetching data: SELECT DISTINCT sss.ServiceSetupId, dm.DepartmentMasterId, bm.BranchMasterId FROM Common.DepartmentMaster dm JOIN Common.DivisionMaster d2 ON dm.DivisionMasterId = d2.DivisionMasterId JOIN Common.BranchMaster bm ON d2.BranchMasterId = bm.BranchMasterId JOIN ServiceCore.ServiceCategoryMaster c ON c.DepartmentId = dm.DepartmentMasterId JOIN ServiceCore.ServiceMaster sm ON c.CategoryId = sm.CategoryId JOIN ServiceCore.ServiceSetupServices sss ON sss.ServiceId = sm.ServiceMasterId WHERE dm.CompanyId = 133 AND d2.CompanyId = bm.CompanyId AND sss.ServiceSetupId in (67161, 67182, 62923, 67184, 67219, 67121) AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-01 19:54:47,468 - [25657] - src.utils.log - INFO - βœ… Fetched 6 rows - __SPLIT__ 2026-06-01 19:54:47,469 - [25657] - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceSetupId, dm.DepartmentMasterId, bm.BranchMasterId FROM Common.DepartmentMaster dm JOIN Common.DivisionMaster d2 ON dm.DivisionMasterId = d2.DivisionMasterId JOIN Common.BranchMaster bm ON d2.BranchMasterId = bm.BranchMasterId JOIN ServiceCore.SoldServiceNonStandard x on dm.DepartmentMasterId = x.DepartmentId JOIN ServiceCore.ServiceSetupServices sss ON sss.NonStdSoldServiceId = x.SoldServiceNonStandardId WHERE dm.CompanyId = 133 AND d2.CompanyId = bm.CompanyId AND sss.ServiceSetupId in (67161, 67182, 62923, 67184, 67219, 67121) AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-01 19:54:47,499 - [25657] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-01 19:54:47,499 - [25657] - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceSetupId, dm.DepartmentMasterId, bm.BranchMasterId FROM Common.DepartmentMaster dm Inner JOIN Common.DivisionMaster d2 ON dm.DivisionMasterId = d2.DivisionMasterId Inner JOIN Common.BranchMaster bm ON d2.BranchMasterId = bm.BranchMasterId Inner JOIN [ServiceCore].[ServiceCategoryMaster] scm ON dm.DepartmentMasterId = scm.DepartmentId Inner JOIN ServiceCore.ServiceMaster sm ON scm.CategoryId = sm.CategoryId Inner JOIN ServiceCore.SoldServiceStandard x on x.ServiceId = sm.ServiceMasterId Inner JOIN ServiceCore.ServiceSetupServices sss ON sss.StdSoldServiceId = x.SoldServiceStandardId WHERE dm.CompanyId = 133 AND d2.CompanyId = bm.CompanyId AND sss.ServiceSetupId in (67161, 67182, 62923, 67184, 67219, 67121) AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-01 19:54:47,532 - [25657] - src.utils.log - INFO - βœ… Fetched 5 rows - __SPLIT__ 2026-06-01 19:54:47,539 - [25657] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder,BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-01 19:54:47,563 - [25657] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-01 19:54:47,563 - [25657] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 133 AND EnitityNumberType in ('WorkOrder','Invoice'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-01 19:54:47,586 - [25657] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-01 19:54:47,587 - [25657] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder, BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-01 19:54:47,610 - [25657] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-01 19:54:47,611 - [25657] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 6 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 133 AND EnitityNumberType = 'WorkOrder'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-01 19:54:47,635 - [25657] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-01 19:54:47,635 - [25657] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 6 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 133 AND EnitityNumberType = 'Invoice'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-01 19:54:47,660 - [25657] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-01 19:54:47,664 - [25657] - 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 (67161, 67182, 62923, 67184, 67219, 67121)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-01 19:54:47,692 - [25657] - src.utils.log - INFO - βœ… Fetched 6 rows - __SPLIT__ 2026-06-01 19:54:47,697 - [25657] - src.utils.log - INFO - πŸ” Fetching data: SELECT x.CompanyId FROM CRM.CompanyMaster x WHERE CompanyKey = 'abcdallas';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-01 19:54:47,719 - [25657] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-01 19:54:47,719 - [25657] - src.utils.log - INFO - πŸ” Fetching data: SELECT CollectionStatus,IsHold,AccountNo FROM CRM.Account a WHERE a.AccountNo in ('27920', '267254', '27428', '11806', '613832', '21133') and a.CompanyId = 121;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-01 19:54:47,744 - [25657] - src.utils.log - INFO - βœ… Fetched 6 rows - __SPLIT__ 2026-06-01 19:54:47,746 - [25657] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderNo FROM ServiceCore.WorkOrder WHERE WorkOrderNo IN ('515164', '515165', '515166', '515167', '515168', '515169') AND CompanyId = 133 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-01 19:54:47,775 - [25657] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-01 19:54:47,775 - [25657] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrder (skip triggers): 6 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-01 19:54:47,853 - [25657] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 6) into ServiceCore.WorkOrder (triggers skipped) - __SPLIT__ 2026-06-01 19:54:48,026 - [25657] - src.utils.log - INFO - βœ… All 6 rows inserted successfully into ServiceCore.WorkOrder in 1 batches (triggers skipped) - __SPLIT__ 2026-06-01 19:54:48,037 - [25657] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-06-01 19:54:48,039 - [25657] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkorderId, WorkOrderNo FROM ServiceCore.WorkOrder wo WHERE wo.WorkOrderNo IN ('515164', '515165', '515166', '515167', '515168', '515169') AND wo.AccountNumber IN ('27428', '11806', '21133', '267254', '27920', '613832') AND wo.CompanyId = 133 ... (Thread: ThreadPoolExecutor-0_0) - __SPLIT__ 2026-06-01 19:54:48,068 - [25657] - src.utils.log - INFO - βœ… Fetched 6 rows - __SPLIT__ 2026-06-01 19:54:48,069 - [25657] - src.utils.log - INFO - Sequential fetching temp table records - __SPLIT__ 2026-06-01 19:54:48,069 - [25657] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationServices woag WHERE woag.WorkOrderAutoGenerationId in (678144, 678145, 678146, 678147, 678148, 678149)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-01 19:54:48,093 - [25657] - src.utils.log - INFO - βœ… Fetched 10 rows - __SPLIT__ 2026-06-01 19:54:48,094 - [25657] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SubWorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (678144, 678145, 678146, 678147, 678148, 678149)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-01 19:54:48,118 - [25657] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-01 19:54:48,118 - [25657] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationCrews woag WHERE woag.WorkOrderAutoGenerationId in (678144, 678145, 678146, 678147, 678148, 678149)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-01 19:54:48,141 - [25657] - src.utils.log - INFO - βœ… Fetched 6 rows - __SPLIT__ 2026-06-01 19:54:48,141 - [25657] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationSalesPersonCommission woag WHERE woag.WorkOrderAutoGenerationId in (678144, 678145, 678146, 678147, 678148, 678149)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-01 19:54:48,165 - [25657] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-01 19:54:48,165 - [25657] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupAutoGenerationSourceMapping woag WHERE woag.WorkOrderAutoGenerationId in (678144, 678145, 678146, 678147, 678148, 678149)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-01 19:54:48,201 - [25657] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-01 19:54:48,202 - [25657] - 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 (678144, 678145, 678146, 678147, 678148, 678149)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-01 19:54:48,256 - [25657] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-01 19:54:48,256 - [25657] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from CRM.LeadNote woag WHERE woag.RefId in (678144, 678145, 678146, 678147, 678148, 678149) and woag.RefType = 'TempWorkorder';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-01 19:54:48,283 - [25657] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-01 19:54:48,283 - [25657] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment woagca WHERE woagca.WorkOrderAutoGenerationId in (678144, 678145, 678146, 678147, 678148, 678149);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-01 19:54:48,305 - [25657] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-01 19:54:48,307 - [25657] - src.utils.log - INFO - Updating temp tables - __SPLIT__ 2026-06-01 19:54:48,319 - [25657] - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyKey FROM Common.CompanyMaster cm WHERE CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-01 19:54:48,345 - [25657] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-01 19:54:48,347 - [25657] - src.utils.log - INFO - πŸ” Fetching data: Select DiscountSetupId, [SysName] as DiscountSysName from Common.DiscountSetupMaster WHERE DiscountSetupId IN (894, 797) AND CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-01 19:54:48,370 - [25657] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-01 19:54:48,372 - [25657] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 133 AND EnitityNumberType in ('SubWorkOrder'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-01 19:54:48,396 - [25657] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-01 19:54:48,399 - [25657] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-01 19:54:48,399 - [25657] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishHistory: 6 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-01 19:54:48,458 - [25657] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 6) into ServiceCore.WorkOrderAutoGenerationPublishHistory - __SPLIT__ 2026-06-01 19:54:48,568 - [25657] - src.utils.log - INFO - βœ… All 6 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishHistory in 1 batches - __SPLIT__ 2026-06-01 19:54:48,569 - [25657] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationPublishHistoryId, WorkOrderNo, ServiceSetupId FROM ServiceCore.WorkOrderAutoGenerationPublishHistory WHERE ServiceSetupId IN (67161, 67182, 62923, 67184, 67219, 67121) AND WorkOrderNo IN ('5894865', '5211002', '5296233', '9097728', '2264671', '5219711') AND GenerateWorkOrderHistoryId = 25657;... (Thread: ThreadPoolExecutor-1_0) - __SPLIT__ 2026-06-01 19:54:48,689 - [25657] - src.utils.log - INFO - βœ… Fetched 6 rows - __SPLIT__ 2026-06-01 19:54:48,690 - [25657] - src.utils.log - INFO - 🏁 Final merged rows: 6 - __SPLIT__ 2026-06-01 19:54:48,695 - [25657] - src.utils.log - INFO - Sequential Insertion in work order tables begin - __SPLIT__ 2026-06-01 19:54:48,695 - [25657] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-01 19:54:48,695 - [25657] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderServices: 10 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-01 19:54:48,737 - [25657] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 10) into ServiceCore.WorkOrderServices - __SPLIT__ 2026-06-01 19:54:48,833 - [25657] - src.utils.log - INFO - βœ… All 10 rows inserted successfully into ServiceCore.WorkOrderServices in 1 batches - __SPLIT__ 2026-06-01 19:54:48,833 - [25657] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-01 19:54:48,833 - [25657] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.WorkOrderAppliedDiscount: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-01 19:54:48,876 - [25657] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceAuto.WorkOrderAppliedDiscount - __SPLIT__ 2026-06-01 19:54:48,964 - [25657] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceAuto.WorkOrderAppliedDiscount in 1 batches - __SPLIT__ 2026-06-01 19:54:48,964 - [25657] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderSalesPersonCommission: - __SPLIT__ 2026-06-01 19:54:48,964 - [25657] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderCommissionAdjustment: - __SPLIT__ 2026-06-01 19:54:48,964 - [25657] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-01 19:54:48,964 - [25657] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderCrew: 6 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-01 19:54:49,008 - [25657] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 6) into ServiceCore.WorkOrderCrew - __SPLIT__ 2026-06-01 19:54:49,093 - [25657] - src.utils.log - INFO - βœ… All 6 rows inserted successfully into ServiceCore.WorkOrderCrew in 1 batches - __SPLIT__ 2026-06-01 19:54:49,093 - [25657] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkorderSourceMapping: - __SPLIT__ 2026-06-01 19:54:49,094 - [25657] - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-06-01 19:54:49,094 - [25657] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-01 19:54:49,094 - [25657] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishServices: 10 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-01 19:54:49,137 - [25657] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 10) into ServiceCore.WorkOrderAutoGenerationPublishServices - __SPLIT__ 2026-06-01 19:54:49,230 - [25657] - src.utils.log - INFO - βœ… All 10 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishServices in 1 batches - __SPLIT__ 2026-06-01 19:54:49,230 - [25657] - 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 (67161, 67182, 62923, 67184, 67219, 67121)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-01 19:54:49,252 - [25657] - src.utils.log - INFO - βœ… Fetched 6 rows - __SPLIT__ 2026-06-01 19:54:49,259 - [25657] - src.utils.log - INFO - Size of Transaction: 5 - __SPLIT__ 2026-06-01 19:54:49,260 - [25657] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 5 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-01 19:54:49,312 - [25657] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 5) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-06-01 19:54:49,436 - [25657] - src.utils.log - INFO - βœ… All 5 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-06-01 19:54:49,447 - [25657] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-06-01 19:54:49,447 - [25657] - 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 = 133 AND t.TransactionType ='Invoice' AND t.CreatedDate = '2026-06-01 15:54:49.255';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-01 19:54:49,819 - [25657] - src.utils.log - INFO - βœ… Fetched 5 rows - __SPLIT__ 2026-06-01 19:54:49,821 - [25657] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId in (62923, 67121, 67161, 67182, 67184, 67219);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-01 19:54:49,847 - [25657] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-01 19:54:49,855 - [25657] - src.utils.log - INFO - πŸ“ Executing: UPDATE Billing.[Transaction] SET ModifiedBy = NULL WHERE ModifiedBy IN (12345678910,12345678911,12345678912,12345678913,12345678914) AND CreatedDate = '2026-06-01 15:54:49.255'; ... (Thread: ThreadPoolExecutor-2_0) - __SPLIT__ 2026-06-01 19:54:50,167 - [25657] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-01 19:54:50,172 - [25657] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-01 19:54:50,172 - [25657] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 5 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-01 19:54:50,219 - [25657] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 5) into Billing.Invoice - __SPLIT__ 2026-06-01 19:54:50,313 - [25657] - src.utils.log - INFO - βœ… All 5 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-06-01 19:54:50,314 - [25657] - src.utils.log - INFO - πŸ” Fetching data: SELECT InvoiceId, WorkOrderNo FROM Billing.Invoice i WHERE i.WorkOrderNo in ('515166', '515164', '515165', '515167', '515168')... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-01 19:54:50,832 - [25657] - src.utils.log - INFO - βœ… Fetched 5 rows - __SPLIT__ 2026-06-01 19:54:50,841 - [25657] - 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 (67161, 67182, 62923, 67184, 67219) and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-01 19:54:50,867 - [25657] - src.utils.log - INFO - βœ… Fetched 9 rows - __SPLIT__ 2026-06-01 19:54:50,867 - [25657] - 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 (67161, 67182, 62923, 67184, 67219) and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-01 19:54:50,896 - [25657] - src.utils.log - INFO - βœ… Fetched 7 rows - __SPLIT__ 2026-06-01 19:54:50,897 - [25657] - 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 (67161, 67182, 62923, 67184, 67219) and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-01 19:54:50,922 - [25657] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-01 19:54:50,923 - [25657] - 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 (67161, 67182, 62923, 67184, 67219) and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-01 19:54:50,951 - [25657] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-01 19:54:50,963 - [25657] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId in (67161, 67182, 62923, 67184, 67219);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-01 19:54:50,988 - [25657] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-01 19:54:50,992 - [25657] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId, AppliedDiscountAmt as AppliedDiscountAmount,IsActive ,ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId in (67161, 67182, 62923, 67184, 67219);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-01 19:54:51,016 - [25657] - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-06-01 19:54:51,025 - [25657] - 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 (67161, 67182, 62923, 67184, 67219);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-01 19:54:51,049 - [25657] - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-06-01 19:54:51,055 - [25657] - src.utils.log - INFO - Sequential Insertion in invoice tables begin - __SPLIT__ 2026-06-01 19:54:51,055 - [25657] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-01 19:54:51,055 - [25657] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.AccountDiscountSetup: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-01 19:54:51,102 - [25657] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.AccountDiscountSetup - __SPLIT__ 2026-06-01 19:54:51,187 - [25657] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.AccountDiscountSetup in 1 batches - __SPLIT__ 2026-06-01 19:54:51,187 - [25657] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-01 19:54:51,187 - [25657] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceCharges: 9 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-01 19:54:51,238 - [25657] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 9) into Billing.InvoiceCharges - __SPLIT__ 2026-06-01 19:54:51,344 - [25657] - src.utils.log - INFO - βœ… All 9 rows inserted successfully into Billing.InvoiceCharges in 1 batches - __SPLIT__ 2026-06-01 19:54:51,344 - [25657] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-01 19:54:51,344 - [25657] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.DiscountApplied: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-01 19:54:51,387 - [25657] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.DiscountApplied - __SPLIT__ 2026-06-01 19:54:51,645 - [25657] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.DiscountApplied in 1 batches - __SPLIT__ 2026-06-01 19:54:51,646 - [25657] - src.utils.log - INFO - Invoice Publish Done - __SPLIT__ 2026-06-01 19:54:51,646 - [25657] - src.utils.log - INFO - Updating Next GenerationDate - __SPLIT__ 2026-06-01 19:54:51,646 - [25657] - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, MAX(NextWorkOrderGenerationDate) AS MaxNextWorkOrderGeneration FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 25657 GROUP BY ServiceSetupId; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-01 19:54:51,770 - [25657] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-01 19:54:51,777 - [25657] - src.utils.log - INFO - πŸ”„ Updating next gen date sequentially: inside update_next_workorder_generation - __SPLIT__ 2026-06-01 19:54:51,788 - [25657] - src.utils.log - INFO - πŸ›  Creating temp table #tbl_d776dfddcd - __SPLIT__ 2026-06-01 19:54:51,812 - [25657] - src.utils.log - INFO - πŸ“Œ Bulk inserting 6 rows into #tbl_d776dfddcd - __SPLIT__ 2026-06-01 19:54:51,883 - [25657] - src.utils.log - INFO - πŸ” Running MERGE update to apply changes - __SPLIT__ 2026-06-01 19:54:51,900 - [25657] - src.utils.log - INFO - βœ” SQL reported affected rows: 6 - __SPLIT__ 2026-06-01 19:54:51,916 - [25657] - src.utils.log - INFO - πŸ” Verified successfully updated 6 rows via #tbl_d776dfddcd - __SPLIT__ 2026-06-01 19:54:51,916 - [25657] - src.utils.log - INFO - πŸŽ‰ Successfully updated NextGenerationDate using temp table #tbl_d776dfddcd - __SPLIT__ 2026-06-01 19:54:51,916 - [25657] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 25657 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-01 19:54:51,938 - [25657] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-01 19:54:51,938 - [25657] - src.utils.log - INFO - Sequential deletion from temp tables begin - __SPLIT__ 2026-06-01 19:54:51,938 - [25657] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId in (678144, 678145, 678146, 678147, 678148, 678149) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-01 19:54:51,964 - [25657] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-01 19:54:51,964 - [25657] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId in (678144, 678145, 678146, 678147, 678148, 678149) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-01 19:54:51,989 - [25657] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-01 19:54:51,990 - [25657] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId in (678144, 678145, 678146, 678147, 678148, 678149) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-01 19:54:52,012 - [25657] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-01 19:54:52,012 - [25657] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId in (678144, 678145, 678146, 678147, 678148, 678149) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-01 19:54:52,092 - [25657] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-01 19:54:52,093 - [25657] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId in (678144, 678145, 678146, 678147, 678148, 678149) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-01 19:54:52,135 - [25657] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-01 19:54:52,136 - [25657] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (678144, 678145, 678146, 678147, 678148, 678149) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-01 19:54:52,158 - [25657] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-01 19:54:52,158 - [25657] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId in (678144, 678145, 678146, 678147, 678148, 678149) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-01 19:54:52,179 - [25657] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-01 19:54:52,180 - [25657] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (678144, 678145, 678146, 678147, 678148, 678149) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-01 19:54:52,230 - [25657] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-01 19:54:52,230 - [25657] - src.utils.log - INFO - Work order published ids: (678144, 678145, 678146, 678147, 678148, 678149) - __SPLIT__ 2026-06-01 19:54:52,230 - [25657] - src.utils.log - INFO - Time took to perform operation in publishing [25657]: 5.34 - __SPLIT__ 2026-06-01 19:54:52,230 - [25657] - src.utils.log - INFO - Publish Completed for GenerateWorkOrderHistoryId: [25657] - __SPLIT__ 2026-06-01 19:54:52,230 - [25657] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-06-01 15:54:52.230' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 25657;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-01 19:54:52,253 - [25657] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-06 13:34:27,361 - 56385 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=56385 - __SPLIT__ 2026-06-06 13:34:27,362 - 56385 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 56385 - __SPLIT__ 2026-06-06 13:34:27,382 - 56385 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-06-06 13:34:27,382 - 56385 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 13:34:27,852 - 56385 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-06 13:34:27,852 - 56385 - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-06-06 13:34:27,852 - 56385 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 56385;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 13:34:27,878 - 56385 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-06 13:34:27,878 - 56385 - 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 = 56385), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 56385), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 56385 AND ss.FrequencyScheduleId IS NOT NULL AND ss.IsActive = 1 AND ss.IsDeleted = 0 AND ss.Status <> 'Canceled' AND ((ss.OrderType = gw.OrderType) OR gw.OrderType IS NULL);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 13:34:27,930 - 56385 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-06 13:34:27,930 - 56385 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 56385;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 13:34:27,954 - 56385 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-06 13:34:27,958 - 56385 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-06-06 13:34:27,959 - 56385 - 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-06-06 13:34:27,989 - 56385 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-06 13:34:27,990 - 56385 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-06-06 13:34:27,992 - 56385 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-06-06 13:34:27,993 - 56385 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 106092;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 13:34:28,027 - 56385 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-06 13:34:28,028 - 56385 - src.utils.log - INFO - πŸ” Fetching data: select ServiceDate, ServiceSetupId, IsInitial from serviceCore.WorkOrder wo inner join ServiceCore.WorkOrderStatus wos on wo.WoStatusId = wos.WoStatusId where ServiceDate >= '2026-06-06 00:00:00' and ServiceDate <= '2026-08-31 00:00:00' and ServiceSetupId = 106092 and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 13:34:28,059 - 56385 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-06 13:34:28,126 - 56385 - src.utils.log - INFO - Generating work orders for setup: 106092 - __SPLIT__ 2026-06-06 13:34:28,147 - 56385 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 11519;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 13:34:28,171 - 56385 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-06 13:34:28,209 - 56385 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-06-06 13:34:28,215 - 56385 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=146 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 13:34:28,239 - 56385 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-06 13:34:28,240 - 56385 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-06-06 13:34:28,240 - 56385 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-06-06 13:34:28,240 - 56385 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 106092 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 13:34:28,390 - 56385 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-06 13:34:28,390 - 56385 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 106092 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 13:34:28,442 - 56385 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-06 13:34:28,443 - 56385 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 106092 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 13:34:28,494 - 56385 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-06 13:34:28,494 - 56385 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 106092 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 13:34:28,545 - 56385 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-06 13:34:28,546 - 56385 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 106092 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 13:34:28,596 - 56385 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-06 13:34:28,596 - 56385 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 106092 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 13:34:28,650 - 56385 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-06 13:34:28,650 - 56385 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 106092 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 13:34:28,681 - 56385 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-06 13:34:28,681 - 56385 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 106092 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 13:34:28,767 - 56385 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-06 13:34:28,767 - 56385 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-06 13:34:28,767 - 56385 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 3 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 13:34:28,850 - 56385 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-06-06 13:34:29,005 - 56385 - src.utils.log - INFO - βœ… All 3 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-06-06 13:34:29,005 - 56385 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 3 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-06-04 11:49:16.778' and ServiceSetupId = 106092... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 13:34:29,056 - 56385 - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-06-06 13:34:29,057 - 56385 - src.utils.log - INFO - Id's of work order inserted to DB: [577658 577659 577660] - __SPLIT__ 2026-06-06 13:34:29,057 - 56385 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 106092;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 13:34:29,080 - 56385 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-06 13:34:29,080 - 56385 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-06-06 13:34:29,081 - 56385 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId = 106092... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 13:34:29,105 - 56385 - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-06-06 13:34:29,105 - 56385 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId = 106092... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 13:34:29,130 - 56385 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-06 13:34:29,136 - 56385 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId = 106092... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 13:34:29,171 - 56385 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-06 13:34:29,172 - 56385 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId = 106092... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 13:34:29,196 - 56385 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-06 13:34:29,196 - 56385 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId = 106092... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 13:34:29,221 - 56385 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-06 13:34:29,221 - 56385 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId = 106092;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 13:34:29,245 - 56385 - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-06-06 13:34:29,246 - 56385 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId = 106092;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 13:34:29,268 - 56385 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-06 13:34:29,268 - 56385 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId = 106092;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 13:34:29,490 - 56385 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-06 13:34:29,491 - 56385 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId = 106092;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 13:34:29,518 - 56385 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-06 13:34:29,533 - 56385 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-06-06 13:34:29,533 - 56385 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-06-06 13:34:29,533 - 56385 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-06-06 13:34:29,533 - 56385 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.CommunicationPreferencesServiceReportNotification: - __SPLIT__ 2026-06-06 13:34:29,533 - 56385 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-06-06 13:34:29,533 - 56385 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SetupAutoGenerationSourceMapping: - __SPLIT__ 2026-06-06 13:34:29,533 - 56385 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-06-06 13:34:29,533 - 56385 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-06 13:34:29,534 - 56385 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (577658, 577659, 577660) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 13:34:29,557 - 56385 - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-06-06 13:34:29,557 - 56385 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationAppliedDiscount: 5 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 13:34:29,602 - 56385 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 5) into ServiceCore.WorkOrderAutoGenerationAppliedDiscount - __SPLIT__ 2026-06-06 13:34:29,694 - 56385 - src.utils.log - INFO - βœ… All 5 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationAppliedDiscount in 1 batches - __SPLIT__ 2026-06-06 13:34:29,694 - 56385 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-06-06 13:34:29,694 - 56385 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SubWorkOrderAutoGeneration: - __SPLIT__ 2026-06-06 13:34:29,694 - 56385 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-06-06 13:34:29,694 - 56385 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: - __SPLIT__ 2026-06-06 13:34:29,694 - 56385 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-06-06 13:34:29,694 - 56385 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: - __SPLIT__ 2026-06-06 13:34:29,694 - 56385 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-06-06 13:34:29,694 - 56385 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-06 13:34:29,695 - 56385 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (577658, 577659, 577660) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 13:34:29,716 - 56385 - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-06-06 13:34:29,717 - 56385 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationCrews: 3 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 13:34:29,759 - 56385 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into ServiceCore.WorkOrderAutoGenerationCrews - __SPLIT__ 2026-06-06 13:34:29,848 - 56385 - src.utils.log - INFO - βœ… All 3 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationCrews in 1 batches - __SPLIT__ 2026-06-06 13:34:29,849 - 56385 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-06-06 13:34:29,849 - 56385 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-06 13:34:29,849 - 56385 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 577658 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 13:34:29,872 - 56385 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-06 13:34:29,873 - 56385 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 13:34:29,918 - 56385 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-06-06 13:34:30,009 - 56385 - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-06-06 13:34:30,010 - 56385 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-06-06 13:34:30,010 - 56385 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-06 13:34:30,010 - 56385 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (577659, 577660) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 13:34:30,033 - 56385 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-06 13:34:30,034 - 56385 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 6 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 13:34:30,064 - 56385 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 6) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-06-06 13:34:30,157 - 56385 - src.utils.log - INFO - βœ… All 6 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-06-06 13:34:30,157 - 56385 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-06-06 13:34:30,157 - 56385 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 56385;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 13:34:30,179 - 56385 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-06 13:34:30,180 - 56385 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-06-06 13:34:30,180 - 56385 - src.utils.log - INFO - Time took to perform operation: 2.82 - __SPLIT__ 2026-06-06 13:34:30,180 - 56385 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 56385;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 13:34:30,202 - 56385 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-06 13:34:30,202 - 56385 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET WorkOrderStatusDateTime = '2026-06-06 09:34:30.202' WHERE GenerateWorkOrderHistoryId = 56385;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 13:34:30,225 - 56385 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-06 13:34:43,465 - [56385] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[577658, 577659] user_id=44506 company_id=146 project_id=[56385] publish_all=False - __SPLIT__ 2026-06-06 13:34:43,466 - [56385] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[577658, 577659] user_id=44506 company_id=146 project_id=[56385] publish_all=False - __SPLIT__ 2026-06-06 13:34:43,466 - [56385] - src.utils.log - INFO - Sequential Work order publish in progress for GenerateWorkOrderHistoryId: [56385] - __SPLIT__ 2026-06-06 13:34:43,479 - [56385] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-06-06 13:34:43,479 - [56385] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 13:34:43,708 - [56385] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-06 13:34:43,708 - [56385] - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-06-06 13:34:43,708 - [56385] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'InProgress' WHERE CompanyId = 146 AND GenerateWorkOrderHistoryId = 56385;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 13:34:43,735 - [56385] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-06 13:34:43,736 - [56385] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (577658, 577659)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 13:34:43,765 - [56385] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-06 13:34:43,765 - [56385] - src.utils.log - INFO - Inside get_work_order_table - __SPLIT__ 2026-06-06 13:34:43,766 - [56385] - 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 = 106092 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 13:34:43,799 - [56385] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-06 13:34:43,800 - [56385] - 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 = 106092 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 13:34:43,831 - [56385] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-06 13:34:43,831 - [56385] - 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 = 106092 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 13:34:43,866 - [56385] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-06 13:34:43,870 - [56385] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder,BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 146;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 13:34:43,896 - [56385] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-06 13:34:43,896 - [56385] - 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-06-06 13:34:43,924 - [56385] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-06 13:34:43,924 - [56385] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder, BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 146; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 13:34:43,950 - [56385] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-06 13:34:43,951 - [56385] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 2 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 146 AND EnitityNumberType = 'WorkOrder'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 13:34:43,977 - [56385] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-06 13:34:43,978 - [56385] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 2 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 146 AND EnitityNumberType = 'Invoice'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 13:34:44,005 - [56385] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-06 13:34:44,009 - [56385] - 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 = 106092... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 13:34:44,042 - [56385] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-06 13:34:44,044 - [56385] - src.utils.log - INFO - πŸ” Fetching data: SELECT x.CompanyId FROM CRM.CompanyMaster x WHERE CompanyKey = 'Fortive';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 13:34:44,070 - [56385] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-06 13:34:44,071 - [56385] - src.utils.log - INFO - πŸ” Fetching data: SELECT CollectionStatus,IsHold,AccountNo FROM CRM.Account a WHERE a.AccountNo = '2319' and a.CompanyId = 134;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 13:34:44,097 - [56385] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-06 13:34:44,099 - [56385] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderNo FROM ServiceCore.WorkOrder WHERE WorkOrderNo IN ('56372', '56373') AND CompanyId = 146 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 13:34:44,128 - [56385] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-06 13:34:44,128 - [56385] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrder (skip triggers): 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 13:34:44,212 - [56385] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrder (triggers skipped) - __SPLIT__ 2026-06-06 13:34:44,373 - [56385] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrder in 1 batches (triggers skipped) - __SPLIT__ 2026-06-06 13:34:44,385 - [56385] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-06-06 13:34:44,387 - [56385] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.ServiceSetup SET IsInitialWoGenerated = 1 WHERE CompanyId = 146 AND ServiceSetupId = 106092;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 13:34:44,415 - [56385] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-06 13:34:44,417 - [56385] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkorderId, WorkOrderNo FROM ServiceCore.WorkOrder wo WHERE wo.WorkOrderNo IN ('56372', '56373') AND wo.AccountNumber = '2319' AND wo.CompanyId = 146 ... (Thread: ThreadPoolExecutor-0_0) - __SPLIT__ 2026-06-06 13:34:44,447 - [56385] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-06 13:34:44,447 - [56385] - src.utils.log - INFO - Sequential fetching temp table records - __SPLIT__ 2026-06-06 13:34:44,447 - [56385] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationServices woag WHERE woag.WorkOrderAutoGenerationId in (577658, 577659)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 13:34:44,508 - [56385] - src.utils.log - INFO - βœ… Fetched 5 rows - __SPLIT__ 2026-06-06 13:34:44,509 - [56385] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SubWorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (577658, 577659)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 13:34:44,786 - [56385] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-06 13:34:44,786 - [56385] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationCrews woag WHERE woag.WorkOrderAutoGenerationId in (577658, 577659)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 13:34:44,836 - [56385] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-06 13:34:44,836 - [56385] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationSalesPersonCommission woag WHERE woag.WorkOrderAutoGenerationId in (577658, 577659)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 13:34:44,866 - [56385] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-06 13:34:44,866 - [56385] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupAutoGenerationSourceMapping woag WHERE woag.WorkOrderAutoGenerationId in (577658, 577659)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 13:34:44,895 - [56385] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-06 13:34:44,896 - [56385] - 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 (577658, 577659)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 13:34:44,934 - [56385] - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-06-06 13:34:44,935 - [56385] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from CRM.LeadNote woag WHERE woag.RefId in (577658, 577659) and woag.RefType = 'TempWorkorder';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 13:34:44,963 - [56385] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-06 13:34:44,963 - [56385] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment woagca WHERE woagca.WorkOrderAutoGenerationId in (577658, 577659);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 13:34:44,989 - [56385] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-06 13:34:44,992 - [56385] - src.utils.log - INFO - Updating temp tables - __SPLIT__ 2026-06-06 13:34:45,004 - [56385] - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyKey FROM Common.CompanyMaster cm WHERE CompanyId = 146;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 13:34:45,030 - [56385] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-06 13:34:45,032 - [56385] - src.utils.log - INFO - πŸ” Fetching data: Select DiscountSetupId, [SysName] as DiscountSysName from Common.DiscountSetupMaster WHERE DiscountSetupId IN (1171, 1169, 1168) AND CompanyId = 146;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 13:34:45,058 - [56385] - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-06-06 13:34:45,060 - [56385] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 146 AND EnitityNumberType in ('SubWorkOrder'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 13:34:45,087 - [56385] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-06 13:34:45,090 - [56385] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-06 13:34:45,090 - [56385] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishHistory: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 13:34:45,152 - [56385] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationPublishHistory - __SPLIT__ 2026-06-06 13:34:45,264 - [56385] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishHistory in 1 batches - __SPLIT__ 2026-06-06 13:34:45,265 - [56385] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationPublishHistoryId, WorkOrderNo, ServiceSetupId FROM ServiceCore.WorkOrderAutoGenerationPublishHistory WHERE ServiceSetupId = 106092 AND WorkOrderNo IN ('532896', '3901885') AND GenerateWorkOrderHistoryId = 56385;... (Thread: ThreadPoolExecutor-1_0) - __SPLIT__ 2026-06-06 13:34:45,383 - [56385] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-06 13:34:45,384 - [56385] - src.utils.log - INFO - 🏁 Final merged rows: 2 - __SPLIT__ 2026-06-06 13:34:45,389 - [56385] - src.utils.log - INFO - Sequential Insertion in work order tables begin - __SPLIT__ 2026-06-06 13:34:45,389 - [56385] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-06 13:34:45,389 - [56385] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderServices: 5 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 13:34:45,436 - [56385] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 5) into ServiceCore.WorkOrderServices - __SPLIT__ 2026-06-06 13:34:45,547 - [56385] - src.utils.log - INFO - βœ… All 5 rows inserted successfully into ServiceCore.WorkOrderServices in 1 batches - __SPLIT__ 2026-06-06 13:34:45,547 - [56385] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-06 13:34:45,548 - [56385] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.WorkOrderAppliedDiscount: 3 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 13:34:45,592 - [56385] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into ServiceAuto.WorkOrderAppliedDiscount - __SPLIT__ 2026-06-06 13:34:45,704 - [56385] - src.utils.log - INFO - βœ… All 3 rows inserted successfully into ServiceAuto.WorkOrderAppliedDiscount in 1 batches - __SPLIT__ 2026-06-06 13:34:45,705 - [56385] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderSalesPersonCommission: - __SPLIT__ 2026-06-06 13:34:45,705 - [56385] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderCommissionAdjustment: - __SPLIT__ 2026-06-06 13:34:45,705 - [56385] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-06 13:34:45,705 - [56385] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderCrew: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 13:34:45,751 - [56385] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderCrew - __SPLIT__ 2026-06-06 13:34:45,852 - [56385] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderCrew in 1 batches - __SPLIT__ 2026-06-06 13:34:45,852 - [56385] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkorderSourceMapping: - __SPLIT__ 2026-06-06 13:34:45,852 - [56385] - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-06-06 13:34:45,852 - [56385] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-06 13:34:45,852 - [56385] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishServices: 5 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 13:34:45,897 - [56385] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 5) into ServiceCore.WorkOrderAutoGenerationPublishServices - __SPLIT__ 2026-06-06 13:34:46,004 - [56385] - src.utils.log - INFO - βœ… All 5 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishServices in 1 batches - __SPLIT__ 2026-06-06 13:34:46,004 - [56385] - 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 = 106092... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 13:34:46,029 - [56385] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-06 13:34:46,036 - [56385] - src.utils.log - INFO - Updating Next GenerationDate - __SPLIT__ 2026-06-06 13:34:46,036 - [56385] - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, MAX(NextWorkOrderGenerationDate) AS MaxNextWorkOrderGeneration FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 56385 GROUP BY ServiceSetupId; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 13:34:46,064 - [56385] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-06 13:34:46,069 - [56385] - src.utils.log - INFO - πŸ”„ Updating next gen date sequentially: inside update_next_workorder_generation - __SPLIT__ 2026-06-06 13:34:46,083 - [56385] - src.utils.log - INFO - πŸ›  Creating temp table #tbl_8106d01eed - __SPLIT__ 2026-06-06 13:34:46,109 - [56385] - src.utils.log - INFO - πŸ“Œ Bulk inserting 1 rows into #tbl_8106d01eed - __SPLIT__ 2026-06-06 13:34:46,133 - [56385] - src.utils.log - INFO - πŸ” Running MERGE update to apply changes - __SPLIT__ 2026-06-06 13:34:46,150 - [56385] - src.utils.log - INFO - βœ” SQL reported affected rows: 1 - __SPLIT__ 2026-06-06 13:34:46,168 - [56385] - src.utils.log - INFO - πŸ” Verified successfully updated 1 rows via #tbl_8106d01eed - __SPLIT__ 2026-06-06 13:34:46,168 - [56385] - src.utils.log - INFO - πŸŽ‰ Successfully updated NextGenerationDate using temp table #tbl_8106d01eed - __SPLIT__ 2026-06-06 13:34:46,168 - [56385] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 56385 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 13:34:46,193 - [56385] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-06 13:34:46,193 - [56385] - src.utils.log - INFO - Sequential deletion from temp tables begin - __SPLIT__ 2026-06-06 13:34:46,193 - [56385] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId in (577658, 577659) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 13:34:46,278 - [56385] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-06 13:34:46,278 - [56385] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId in (577658, 577659) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 13:34:46,347 - [56385] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-06 13:34:46,347 - [56385] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId in (577658, 577659) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 13:34:46,375 - [56385] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-06 13:34:46,375 - [56385] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId in (577658, 577659) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 13:34:46,417 - [56385] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-06 13:34:46,418 - [56385] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId in (577658, 577659) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 13:34:46,449 - [56385] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-06 13:34:46,449 - [56385] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (577658, 577659) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 13:34:46,506 - [56385] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-06 13:34:46,506 - [56385] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId in (577658, 577659) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 13:34:46,531 - [56385] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-06 13:34:46,532 - [56385] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (577658, 577659) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 13:34:46,636 - [56385] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-06 13:34:46,636 - [56385] - src.utils.log - INFO - Work order published ids: (577658, 577659) - __SPLIT__ 2026-06-06 13:34:46,636 - [56385] - src.utils.log - INFO - Time took to perform operation in publishing [56385]: 3.17 - __SPLIT__ 2026-06-06 13:34:46,636 - [56385] - src.utils.log - INFO - Publish Completed for GenerateWorkOrderHistoryId: [56385] - __SPLIT__ 2026-06-06 13:34:46,636 - [56385] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-06-06 09:34:46.636' WHERE CompanyId = 146 AND GenerateWorkOrderHistoryId = 56385;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 13:34:46,663 - [56385] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-06 13:56:38,592 - 56386 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=56386 - __SPLIT__ 2026-06-06 13:56:38,593 - 56386 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 56386 - __SPLIT__ 2026-06-06 13:56:38,594 - 56386 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-06-06 13:56:38,594 - 56386 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 13:56:38,753 - 56386 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-06 13:56:38,753 - 56386 - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-06-06 13:56:38,753 - 56386 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 56386;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 13:56:38,776 - 56386 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-06 13:56:38,776 - 56386 - 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 = 56386), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 56386), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 56386 AND ss.FrequencyScheduleId IS NOT NULL AND ss.IsActive = 1 AND ss.IsDeleted = 0 AND ss.Status <> 'Canceled' AND ((ss.OrderType = gw.OrderType) OR gw.OrderType IS NULL);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 13:56:38,825 - 56386 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-06 13:56:38,826 - 56386 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 56386;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 13:56:38,852 - 56386 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-06 13:56:38,854 - 56386 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-06-06 13:56:38,854 - 56386 - 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 = 14943... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 13:56:38,886 - 56386 - src.utils.log - INFO - βœ… Fetched 60 rows - __SPLIT__ 2026-06-06 13:56:38,886 - 56386 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-06-06 13:56:38,889 - 56386 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-06-06 13:56:38,889 - 56386 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 106093;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 13:56:38,912 - 56386 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-06 13:56:38,912 - 56386 - src.utils.log - INFO - πŸ” Fetching data: select ServiceDate, ServiceSetupId, IsInitial from serviceCore.WorkOrder wo inner join ServiceCore.WorkOrderStatus wos on wo.WoStatusId = wos.WoStatusId where ServiceDate >= '2026-06-06 00:00:00' and ServiceDate <= '2026-08-31 00:00:00' and ServiceSetupId = 106093 and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 13:56:38,941 - 56386 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-06 13:56:39,007 - 56386 - src.utils.log - INFO - Generating work orders for setup: 106093 - __SPLIT__ 2026-06-06 13:56:39,047 - 56386 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 11435;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 13:56:39,070 - 56386 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-06 13:56:39,077 - 56386 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 11520;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 13:56:39,099 - 56386 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-06 13:56:39,134 - 56386 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-06-06 13:56:39,138 - 56386 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=146 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 13:56:39,162 - 56386 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-06 13:56:39,164 - 56386 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-06-06 13:56:39,164 - 56386 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-06-06 13:56:39,164 - 56386 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 106093 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 13:56:39,214 - 56386 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-06 13:56:39,214 - 56386 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 106093 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 13:56:39,264 - 56386 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-06 13:56:39,264 - 56386 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 106093 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 13:56:39,312 - 56386 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-06 13:56:39,313 - 56386 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 106093 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 13:56:39,361 - 56386 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-06 13:56:39,361 - 56386 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 106093 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 13:56:39,409 - 56386 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-06 13:56:39,410 - 56386 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 106093 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 13:56:39,460 - 56386 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-06 13:56:39,460 - 56386 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 106093 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 13:56:39,486 - 56386 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-06 13:56:39,486 - 56386 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 106093 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 13:56:39,570 - 56386 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-06 13:56:39,570 - 56386 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-06 13:56:39,570 - 56386 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 6 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 13:56:39,638 - 56386 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 6) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-06-06 13:56:39,848 - 56386 - src.utils.log - INFO - βœ… All 6 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-06-06 13:56:39,848 - 56386 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 6 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-06-04 11:49:16.901' and ServiceSetupId = 106093... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 13:56:39,923 - 56386 - src.utils.log - INFO - βœ… Fetched 6 rows - __SPLIT__ 2026-06-06 13:56:39,924 - 56386 - src.utils.log - INFO - Id's of work order inserted to DB: [577661 577662 577663 577664 577665 577666] - __SPLIT__ 2026-06-06 13:56:39,924 - 56386 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 106093;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 13:56:39,948 - 56386 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-06 13:56:39,949 - 56386 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-06-06 13:56:39,949 - 56386 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId = 106093... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 13:56:39,973 - 56386 - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-06-06 13:56:39,973 - 56386 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId = 106093... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 13:56:39,996 - 56386 - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-06-06 13:56:40,003 - 56386 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId = 106093... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 13:56:40,029 - 56386 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-06 13:56:40,030 - 56386 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId = 106093... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 13:56:40,053 - 56386 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-06 13:56:40,053 - 56386 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId = 106093... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 13:56:40,075 - 56386 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-06 13:56:40,075 - 56386 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId = 106093;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 13:56:40,099 - 56386 - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-06-06 13:56:40,100 - 56386 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId = 106093;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 13:56:40,123 - 56386 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-06 13:56:40,123 - 56386 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId = 106093;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 13:56:40,162 - 56386 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-06 13:56:40,162 - 56386 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId = 106093;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 13:56:40,186 - 56386 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-06 13:56:40,201 - 56386 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-06-06 13:56:40,201 - 56386 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-06-06 13:56:40,201 - 56386 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-06-06 13:56:40,202 - 56386 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.CommunicationPreferencesServiceReportNotification: - __SPLIT__ 2026-06-06 13:56:40,202 - 56386 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-06-06 13:56:40,202 - 56386 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SetupAutoGenerationSourceMapping: - __SPLIT__ 2026-06-06 13:56:40,202 - 56386 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-06-06 13:56:40,202 - 56386 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-06 13:56:40,202 - 56386 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (577664, 577665, 577666, 577661, 577662, 577663) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 13:56:40,225 - 56386 - src.utils.log - INFO - βœ… Fetched 6 rows - __SPLIT__ 2026-06-06 13:56:40,226 - 56386 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationAppliedDiscount: 12 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 13:56:40,269 - 56386 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 12) into ServiceCore.WorkOrderAutoGenerationAppliedDiscount - __SPLIT__ 2026-06-06 13:56:40,362 - 56386 - src.utils.log - INFO - βœ… All 12 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationAppliedDiscount in 1 batches - __SPLIT__ 2026-06-06 13:56:40,363 - 56386 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-06-06 13:56:40,363 - 56386 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SubWorkOrderAutoGeneration: - __SPLIT__ 2026-06-06 13:56:40,363 - 56386 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-06-06 13:56:40,363 - 56386 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: - __SPLIT__ 2026-06-06 13:56:40,363 - 56386 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-06-06 13:56:40,363 - 56386 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: - __SPLIT__ 2026-06-06 13:56:40,363 - 56386 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-06-06 13:56:40,363 - 56386 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-06 13:56:40,363 - 56386 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (577664, 577665, 577666, 577661, 577662, 577663) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 13:56:40,384 - 56386 - src.utils.log - INFO - βœ… Fetched 6 rows - __SPLIT__ 2026-06-06 13:56:40,385 - 56386 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationCrews: 6 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 13:56:40,427 - 56386 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 6) into ServiceCore.WorkOrderAutoGenerationCrews - __SPLIT__ 2026-06-06 13:56:40,517 - 56386 - src.utils.log - INFO - βœ… All 6 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationCrews in 1 batches - __SPLIT__ 2026-06-06 13:56:40,517 - 56386 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-06-06 13:56:40,517 - 56386 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-06 13:56:40,517 - 56386 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 577661 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 13:56:40,540 - 56386 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-06 13:56:40,540 - 56386 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 3 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 13:56:40,569 - 56386 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-06-06 13:56:40,662 - 56386 - src.utils.log - INFO - βœ… All 3 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-06-06 13:56:40,663 - 56386 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-06-06 13:56:40,663 - 56386 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-06 13:56:40,663 - 56386 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (577664, 577665, 577666, 577662, 577663) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 13:56:40,686 - 56386 - src.utils.log - INFO - βœ… Fetched 5 rows - __SPLIT__ 2026-06-06 13:56:40,687 - 56386 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 15 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 13:56:40,716 - 56386 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 15) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-06-06 13:56:40,816 - 56386 - src.utils.log - INFO - βœ… All 15 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-06-06 13:56:40,816 - 56386 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-06-06 13:56:40,816 - 56386 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 56386;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 13:56:40,838 - 56386 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-06 13:56:40,838 - 56386 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-06-06 13:56:40,838 - 56386 - src.utils.log - INFO - Time took to perform operation: 2.24 - __SPLIT__ 2026-06-06 13:56:40,838 - 56386 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 56386;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 13:56:40,860 - 56386 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-06 13:56:40,860 - 56386 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET WorkOrderStatusDateTime = '2026-06-06 09:56:40.860' WHERE GenerateWorkOrderHistoryId = 56386;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 13:56:40,884 - 56386 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-06 13:56:51,700 - [56386] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[577661, 577662] user_id=44506 company_id=146 project_id=[56386] publish_all=False - __SPLIT__ 2026-06-06 13:56:51,701 - [56386] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[577661, 577662] user_id=44506 company_id=146 project_id=[56386] publish_all=False - __SPLIT__ 2026-06-06 13:56:51,701 - [56386] - src.utils.log - INFO - Sequential Work order publish in progress for GenerateWorkOrderHistoryId: [56386] - __SPLIT__ 2026-06-06 13:56:51,702 - [56386] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-06-06 13:56:51,702 - [56386] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 13:56:51,850 - [56386] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-06 13:56:51,851 - [56386] - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-06-06 13:56:51,851 - [56386] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'InProgress' WHERE CompanyId = 146 AND GenerateWorkOrderHistoryId = 56386;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 13:56:51,873 - [56386] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-06 13:56:51,873 - [56386] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (577661, 577662)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 13:56:51,897 - [56386] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-06 13:56:51,898 - [56386] - src.utils.log - INFO - Inside get_work_order_table - __SPLIT__ 2026-06-06 13:56:51,898 - [56386] - 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 = 106093 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 13:56:51,928 - [56386] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-06 13:56:51,928 - [56386] - 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 = 106093 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 13:56:51,956 - [56386] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-06 13:56:51,957 - [56386] - 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 = 106093 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 13:56:51,988 - [56386] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-06 13:56:51,992 - [56386] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder,BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 146;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 13:56:52,012 - [56386] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-06 13:56:52,012 - [56386] - 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-06-06 13:56:52,033 - [56386] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-06 13:56:52,033 - [56386] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder, BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 146; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 13:56:52,055 - [56386] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-06 13:56:52,055 - [56386] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 2 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 146 AND EnitityNumberType = 'WorkOrder'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 13:56:52,077 - [56386] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-06 13:56:52,077 - [56386] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 2 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 146 AND EnitityNumberType = 'Invoice'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 13:56:52,099 - [56386] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-06 13:56:52,102 - [56386] - 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 = 106093... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 13:56:52,127 - [56386] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-06 13:56:52,129 - [56386] - src.utils.log - INFO - πŸ” Fetching data: SELECT x.CompanyId FROM CRM.CompanyMaster x WHERE CompanyKey = 'Fortive';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 13:56:52,149 - [56386] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-06 13:56:52,150 - [56386] - src.utils.log - INFO - πŸ” Fetching data: SELECT CollectionStatus,IsHold,AccountNo FROM CRM.Account a WHERE a.AccountNo = '2319' and a.CompanyId = 134;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 13:56:52,170 - [56386] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-06 13:56:52,172 - [56386] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderNo FROM ServiceCore.WorkOrder WHERE WorkOrderNo IN ('56374', '56375') AND CompanyId = 146 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 13:56:52,197 - [56386] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-06 13:56:52,197 - [56386] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrder (skip triggers): 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 13:56:52,260 - [56386] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrder (triggers skipped) - __SPLIT__ 2026-06-06 13:56:52,457 - [56386] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrder in 1 batches (triggers skipped) - __SPLIT__ 2026-06-06 13:56:52,467 - [56386] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-06-06 13:56:52,469 - [56386] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.ServiceSetup SET IsInitialWoGenerated = 1 WHERE CompanyId = 146 AND ServiceSetupId = 106093;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 13:56:52,490 - [56386] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-06 13:56:52,491 - [56386] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkorderId, WorkOrderNo FROM ServiceCore.WorkOrder wo WHERE wo.WorkOrderNo IN ('56374', '56375') AND wo.AccountNumber = '2319' AND wo.CompanyId = 146 ... (Thread: ThreadPoolExecutor-2_0) - __SPLIT__ 2026-06-06 13:56:52,518 - [56386] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-06 13:56:52,519 - [56386] - src.utils.log - INFO - Sequential fetching temp table records - __SPLIT__ 2026-06-06 13:56:52,519 - [56386] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationServices woag WHERE woag.WorkOrderAutoGenerationId in (577661, 577662)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 13:56:52,556 - [56386] - src.utils.log - INFO - βœ… Fetched 6 rows - __SPLIT__ 2026-06-06 13:56:52,557 - [56386] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SubWorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (577661, 577662)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 13:56:52,598 - [56386] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-06 13:56:52,599 - [56386] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationCrews woag WHERE woag.WorkOrderAutoGenerationId in (577661, 577662)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 13:56:52,630 - [56386] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-06 13:56:52,630 - [56386] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationSalesPersonCommission woag WHERE woag.WorkOrderAutoGenerationId in (577661, 577662)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 13:56:52,653 - [56386] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-06 13:56:52,653 - [56386] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupAutoGenerationSourceMapping woag WHERE woag.WorkOrderAutoGenerationId in (577661, 577662)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 13:56:52,676 - [56386] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-06 13:56:52,677 - [56386] - 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 (577661, 577662)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 13:56:52,705 - [56386] - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-06-06 13:56:52,705 - [56386] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from CRM.LeadNote woag WHERE woag.RefId in (577661, 577662) and woag.RefType = 'TempWorkorder';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 13:56:52,729 - [56386] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-06 13:56:52,729 - [56386] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment woagca WHERE woagca.WorkOrderAutoGenerationId in (577661, 577662);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 13:56:52,750 - [56386] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-06 13:56:52,752 - [56386] - src.utils.log - INFO - Updating temp tables - __SPLIT__ 2026-06-06 13:56:52,763 - [56386] - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyKey FROM Common.CompanyMaster cm WHERE CompanyId = 146;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 13:56:52,784 - [56386] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-06 13:56:52,786 - [56386] - src.utils.log - INFO - πŸ” Fetching data: Select DiscountSetupId, [SysName] as DiscountSysName from Common.DiscountSetupMaster WHERE DiscountSetupId IN (1168, 1172, 1179) AND CompanyId = 146;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 13:56:52,808 - [56386] - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-06-06 13:56:52,810 - [56386] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 146 AND EnitityNumberType in ('SubWorkOrder'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 13:56:52,832 - [56386] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-06 13:56:52,835 - [56386] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-06 13:56:52,835 - [56386] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishHistory: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 13:56:52,878 - [56386] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationPublishHistory - __SPLIT__ 2026-06-06 13:56:52,974 - [56386] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishHistory in 1 batches - __SPLIT__ 2026-06-06 13:56:52,975 - [56386] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationPublishHistoryId, WorkOrderNo, ServiceSetupId FROM ServiceCore.WorkOrderAutoGenerationPublishHistory WHERE ServiceSetupId = 106093 AND WorkOrderNo IN ('213033', '5316616') AND GenerateWorkOrderHistoryId = 56386;... (Thread: ThreadPoolExecutor-3_0) - __SPLIT__ 2026-06-06 13:56:53,027 - [56386] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-06 13:56:53,027 - [56386] - src.utils.log - INFO - 🏁 Final merged rows: 2 - __SPLIT__ 2026-06-06 13:56:53,033 - [56386] - src.utils.log - INFO - Sequential Insertion in work order tables begin - __SPLIT__ 2026-06-06 13:56:53,033 - [56386] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-06 13:56:53,033 - [56386] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderServices: 6 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 13:56:53,062 - [56386] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 6) into ServiceCore.WorkOrderServices - __SPLIT__ 2026-06-06 13:56:53,155 - [56386] - src.utils.log - INFO - βœ… All 6 rows inserted successfully into ServiceCore.WorkOrderServices in 1 batches - __SPLIT__ 2026-06-06 13:56:53,155 - [56386] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-06 13:56:53,155 - [56386] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.WorkOrderAppliedDiscount: 4 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 13:56:53,183 - [56386] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 4) into ServiceAuto.WorkOrderAppliedDiscount - __SPLIT__ 2026-06-06 13:56:53,274 - [56386] - src.utils.log - INFO - βœ… All 4 rows inserted successfully into ServiceAuto.WorkOrderAppliedDiscount in 1 batches - __SPLIT__ 2026-06-06 13:56:53,275 - [56386] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderSalesPersonCommission: - __SPLIT__ 2026-06-06 13:56:53,275 - [56386] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderCommissionAdjustment: - __SPLIT__ 2026-06-06 13:56:53,275 - [56386] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-06 13:56:53,275 - [56386] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderCrew: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 13:56:53,302 - [56386] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderCrew - __SPLIT__ 2026-06-06 13:56:53,382 - [56386] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderCrew in 1 batches - __SPLIT__ 2026-06-06 13:56:53,382 - [56386] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkorderSourceMapping: - __SPLIT__ 2026-06-06 13:56:53,382 - [56386] - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-06-06 13:56:53,382 - [56386] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-06 13:56:53,382 - [56386] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishServices: 6 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 13:56:53,409 - [56386] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 6) into ServiceCore.WorkOrderAutoGenerationPublishServices - __SPLIT__ 2026-06-06 13:56:53,498 - [56386] - src.utils.log - INFO - βœ… All 6 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishServices in 1 batches - __SPLIT__ 2026-06-06 13:56:53,498 - [56386] - 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 = 106093... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 13:56:53,519 - [56386] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-06 13:56:53,525 - [56386] - src.utils.log - INFO - Size of Transaction: 2 - __SPLIT__ 2026-06-06 13:56:53,526 - [56386] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 13:56:53,577 - [56386] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-06-06 13:56:53,671 - [56386] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-06-06 13:56:53,682 - [56386] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-06-06 13:56:53,682 - [56386] - 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-06-06 09:56:53.520';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 13:56:53,724 - [56386] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-06 13:56:53,726 - [56386] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 106093;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 13:56:53,748 - [56386] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-06 13:56:53,756 - [56386] - src.utils.log - INFO - πŸ“ Executing: UPDATE Billing.[Transaction] SET ModifiedBy = NULL WHERE ModifiedBy IN (12345678910,12345678911) AND CreatedDate = '2026-06-06 09:56:53.520'; ... (Thread: ThreadPoolExecutor-4_0) - __SPLIT__ 2026-06-06 13:56:53,821 - [56386] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-06 13:56:53,825 - [56386] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-06 13:56:53,825 - [56386] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 13:56:53,870 - [56386] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.Invoice - __SPLIT__ 2026-06-06 13:56:53,964 - [56386] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-06-06 13:56:53,964 - [56386] - src.utils.log - INFO - πŸ” Fetching data: SELECT InvoiceId, WorkOrderNo FROM Billing.Invoice i WHERE i.WorkOrderNo in ('56374', '56375')... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 13:56:54,041 - [56386] - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-06-06 13:56:54,050 - [56386] - 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 = 106093 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 13:56:54,074 - [56386] - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-06-06 13:56:54,075 - [56386] - 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 = 106093 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 13:56:54,097 - [56386] - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-06-06 13:56:54,098 - [56386] - 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 = 106093 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 13:56:54,121 - [56386] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-06 13:56:54,122 - [56386] - 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 = 106093 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 13:56:54,144 - [56386] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-06 13:56:54,155 - [56386] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 106093;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 13:56:54,177 - [56386] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-06 13:56:54,182 - [56386] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId, AppliedDiscountAmt as AppliedDiscountAmount,IsActive ,ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 106093;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 13:56:54,204 - [56386] - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-06-06 13:56:54,214 - [56386] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId,IsActive,DiscountAmount, IsDiscountPercent,DiscountPercent,DiscountDescription , ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 106093;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 13:56:54,236 - [56386] - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-06-06 13:56:54,244 - [56386] - src.utils.log - INFO - Sequential Insertion in invoice tables begin - __SPLIT__ 2026-06-06 13:56:54,244 - [56386] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-06 13:56:54,244 - [56386] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.AccountDiscountSetup: 8 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 13:56:54,286 - [56386] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 8) into Billing.AccountDiscountSetup - __SPLIT__ 2026-06-06 13:56:54,372 - [56386] - src.utils.log - INFO - βœ… All 8 rows inserted successfully into Billing.AccountDiscountSetup in 1 batches - __SPLIT__ 2026-06-06 13:56:54,372 - [56386] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-06 13:56:54,372 - [56386] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceCharges: 12 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 13:56:54,416 - [56386] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 12) into Billing.InvoiceCharges - __SPLIT__ 2026-06-06 13:56:54,512 - [56386] - src.utils.log - INFO - βœ… All 12 rows inserted successfully into Billing.InvoiceCharges in 1 batches - __SPLIT__ 2026-06-06 13:56:54,512 - [56386] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-06 13:56:54,512 - [56386] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.DiscountApplied: 8 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 13:56:54,551 - [56386] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 8) into Billing.DiscountApplied - __SPLIT__ 2026-06-06 13:56:54,635 - [56386] - src.utils.log - INFO - βœ… All 8 rows inserted successfully into Billing.DiscountApplied in 1 batches - __SPLIT__ 2026-06-06 13:56:54,636 - [56386] - src.utils.log - INFO - Invoice Publish Done - __SPLIT__ 2026-06-06 13:56:54,636 - [56386] - src.utils.log - INFO - Updating Next GenerationDate - __SPLIT__ 2026-06-06 13:56:54,636 - [56386] - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, MAX(NextWorkOrderGenerationDate) AS MaxNextWorkOrderGeneration FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 56386 GROUP BY ServiceSetupId; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 13:56:54,658 - [56386] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-06 13:56:54,664 - [56386] - src.utils.log - INFO - πŸ”„ Updating next gen date sequentially: inside update_next_workorder_generation - __SPLIT__ 2026-06-06 13:56:54,675 - [56386] - src.utils.log - INFO - πŸ›  Creating temp table #tbl_d15a276999 - __SPLIT__ 2026-06-06 13:56:54,698 - [56386] - src.utils.log - INFO - πŸ“Œ Bulk inserting 1 rows into #tbl_d15a276999 - __SPLIT__ 2026-06-06 13:56:54,719 - [56386] - src.utils.log - INFO - πŸ” Running MERGE update to apply changes - __SPLIT__ 2026-06-06 13:56:54,734 - [56386] - src.utils.log - INFO - βœ” SQL reported affected rows: 1 - __SPLIT__ 2026-06-06 13:56:54,748 - [56386] - src.utils.log - INFO - πŸ” Verified successfully updated 1 rows via #tbl_d15a276999 - __SPLIT__ 2026-06-06 13:56:54,748 - [56386] - src.utils.log - INFO - πŸŽ‰ Successfully updated NextGenerationDate using temp table #tbl_d15a276999 - __SPLIT__ 2026-06-06 13:56:54,748 - [56386] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 56386 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 13:56:54,768 - [56386] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-06 13:56:54,769 - [56386] - src.utils.log - INFO - Sequential deletion from temp tables begin - __SPLIT__ 2026-06-06 13:56:54,769 - [56386] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId in (577661, 577662) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 13:56:54,841 - [56386] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-06 13:56:54,842 - [56386] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId in (577661, 577662) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 13:56:54,901 - [56386] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-06 13:56:54,901 - [56386] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId in (577661, 577662) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 13:56:54,925 - [56386] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-06 13:56:54,925 - [56386] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId in (577661, 577662) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 13:56:54,963 - [56386] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-06 13:56:54,963 - [56386] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId in (577661, 577662) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 13:56:54,990 - [56386] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-06 13:56:54,990 - [56386] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (577661, 577662) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 13:56:55,042 - [56386] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-06 13:56:55,042 - [56386] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId in (577661, 577662) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 13:56:55,064 - [56386] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-06 13:56:55,064 - [56386] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (577661, 577662) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 13:56:55,164 - [56386] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-06 13:56:55,165 - [56386] - src.utils.log - INFO - Work order published ids: (577661, 577662) - __SPLIT__ 2026-06-06 13:56:55,165 - [56386] - src.utils.log - INFO - Time took to perform operation in publishing [56386]: 3.46 - __SPLIT__ 2026-06-06 13:56:55,165 - [56386] - src.utils.log - INFO - Publish Completed for GenerateWorkOrderHistoryId: [56386] - __SPLIT__ 2026-06-06 13:56:55,165 - [56386] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-06-06 09:56:55.165' WHERE CompanyId = 146 AND GenerateWorkOrderHistoryId = 56386;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 13:56:55,186 - [56386] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-07 07:39:45,397 - 56390 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=56390 - __SPLIT__ 2026-06-07 07:39:45,398 - 56390 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 56390 - __SPLIT__ 2026-06-07 07:39:45,415 - 56390 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-06-07 07:39:45,415 - 56390 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Samsung'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 07:39:45,673 - 56390 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-07 07:39:45,673 - 56390 - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-06-07 07:39:45,673 - 56390 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 56390;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 07:39:45,699 - 56390 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-07 07:39:45,699 - 56390 - 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 = 56390), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 56390), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 56390 AND ss.FrequencyScheduleId IS NOT NULL AND ss.IsActive = 1 AND ss.IsDeleted = 0 AND ss.Status <> 'Canceled' AND ((ss.OrderType = gw.OrderType) OR gw.OrderType IS NULL);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 07:39:45,747 - 56390 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-07 07:39:45,747 - 56390 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 56390;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 07:39:45,775 - 56390 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-07 07:39:45,779 - 56390 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-06-07 07:39:45,779 - 56390 - 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 = 14879... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 07:39:45,813 - 56390 - src.utils.log - INFO - βœ… Fetched 6 rows - __SPLIT__ 2026-06-07 07:39:45,814 - 56390 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-06-07 07:39:45,817 - 56390 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-06-07 07:39:45,817 - 56390 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 106097;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 07:39:45,858 - 56390 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-07 07:39:45,859 - 56390 - src.utils.log - INFO - πŸ” Fetching data: select ServiceDate, ServiceSetupId, IsInitial from serviceCore.WorkOrder wo inner join ServiceCore.WorkOrderStatus wos on wo.WoStatusId = wos.WoStatusId where ServiceDate >= '2026-06-07 00:00:00' and ServiceDate <= '2026-12-31 00:00:00' and ServiceSetupId = 106097 and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 07:39:45,890 - 56390 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-07 07:39:45,961 - 56390 - src.utils.log - INFO - Generating work orders for setup: 106097 - __SPLIT__ 2026-06-07 07:39:45,983 - 56390 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 11398;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 07:39:46,008 - 56390 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-07 07:39:46,016 - 56390 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 11398;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 07:39:46,040 - 56390 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-07 07:39:46,071 - 56390 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-06-07 07:39:46,076 - 56390 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=145 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 07:39:46,102 - 56390 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-07 07:39:46,103 - 56390 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-06-07 07:39:46,103 - 56390 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-06-07 07:39:46,103 - 56390 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 106097 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 07:39:46,157 - 56390 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-07 07:39:46,158 - 56390 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 106097 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 07:39:46,209 - 56390 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-07 07:39:46,209 - 56390 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 106097 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 07:39:46,261 - 56390 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-07 07:39:46,261 - 56390 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 106097 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 07:39:46,313 - 56390 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-07 07:39:46,313 - 56390 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 106097 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 07:39:46,366 - 56390 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-07 07:39:46,367 - 56390 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 106097 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 07:39:46,420 - 56390 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-07 07:39:46,420 - 56390 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 106097 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 07:39:46,450 - 56390 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-07 07:39:46,450 - 56390 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 106097 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 07:39:46,535 - 56390 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-07 07:39:46,536 - 56390 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-07 07:39:46,536 - 56390 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 3 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 07:39:46,604 - 56390 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-06-07 07:39:46,765 - 56390 - src.utils.log - INFO - βœ… All 3 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-06-07 07:39:46,765 - 56390 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 3 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-06-07 11:12:39.549' and ServiceSetupId = 106097... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 07:39:46,818 - 56390 - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-06-07 07:39:46,818 - 56390 - src.utils.log - INFO - Id's of work order inserted to DB: [577674 577675 577676] - __SPLIT__ 2026-06-07 07:39:46,819 - 56390 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 106097;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 07:39:46,846 - 56390 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-07 07:39:46,846 - 56390 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-06-07 07:39:46,847 - 56390 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId = 106097... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 07:39:46,873 - 56390 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-07 07:39:46,874 - 56390 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId = 106097... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 07:39:46,899 - 56390 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-07 07:39:46,903 - 56390 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId = 106097... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 07:39:46,932 - 56390 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-07 07:39:46,932 - 56390 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId = 106097... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 07:39:46,957 - 56390 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-07 07:39:46,957 - 56390 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId = 106097... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 07:39:46,983 - 56390 - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-06-07 07:39:46,985 - 56390 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId = 106097;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 07:39:47,011 - 56390 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-07 07:39:47,013 - 56390 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId = 106097;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 07:39:47,038 - 56390 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-07 07:39:47,039 - 56390 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId = 106097;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 07:39:47,081 - 56390 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-07 07:39:47,081 - 56390 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId = 106097;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 07:39:47,109 - 56390 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-07 07:39:47,125 - 56390 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-06-07 07:39:47,125 - 56390 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-06-07 07:39:47,125 - 56390 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-06-07 07:39:47,125 - 56390 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.CommunicationPreferencesServiceReportNotification: - __SPLIT__ 2026-06-07 07:39:47,125 - 56390 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-06-07 07:39:47,126 - 56390 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-07 07:39:47,126 - 56390 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ('577674', '577676', '577675') ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 07:39:47,151 - 56390 - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-06-07 07:39:47,152 - 56390 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.SetupAutoGenerationSourceMapping: 0 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 07:39:47,192 - 56390 - src.utils.log - INFO - βœ… All 0 rows inserted successfully into ServiceCore.SetupAutoGenerationSourceMapping in 0 batches - __SPLIT__ 2026-06-07 07:39:47,192 - 56390 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-06-07 07:39:47,192 - 56390 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-07 07:39:47,192 - 56390 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (577675, 577676) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 07:39:47,217 - 56390 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-07 07:39:47,218 - 56390 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationAppliedDiscount: 4 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 07:39:47,263 - 56390 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 4) into ServiceCore.WorkOrderAutoGenerationAppliedDiscount - __SPLIT__ 2026-06-07 07:39:47,362 - 56390 - src.utils.log - INFO - βœ… All 4 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationAppliedDiscount in 1 batches - __SPLIT__ 2026-06-07 07:39:47,362 - 56390 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-06-07 07:39:47,363 - 56390 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-07 07:39:47,363 - 56390 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (577674, 577675, 577676) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 07:39:47,388 - 56390 - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-06-07 07:39:47,389 - 56390 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.SubWorkOrderAutoGeneration: 3 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 07:39:47,439 - 56390 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into ServiceCore.SubWorkOrderAutoGeneration - __SPLIT__ 2026-06-07 07:39:47,595 - 56390 - src.utils.log - INFO - βœ… All 3 rows inserted successfully into ServiceCore.SubWorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-06-07 07:39:47,596 - 56390 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-06-07 07:39:47,596 - 56390 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-07 07:39:47,596 - 56390 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (577674, 577675, 577676) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 07:39:47,620 - 56390 - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-06-07 07:39:47,621 - 56390 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: 12 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 07:39:47,663 - 56390 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 12) into ServiceCore.WorkOrderAutoGenerationCommissionAdjustment - __SPLIT__ 2026-06-07 07:39:47,750 - 56390 - src.utils.log - INFO - βœ… All 12 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationCommissionAdjustment in 1 batches - __SPLIT__ 2026-06-07 07:39:47,750 - 56390 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-06-07 07:39:47,750 - 56390 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: - __SPLIT__ 2026-06-07 07:39:47,750 - 56390 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-06-07 07:39:47,751 - 56390 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCrews: - __SPLIT__ 2026-06-07 07:39:47,751 - 56390 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-06-07 07:39:47,751 - 56390 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationServices: - __SPLIT__ 2026-06-07 07:39:47,751 - 56390 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-06-07 07:39:47,751 - 56390 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-07 07:39:47,751 - 56390 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (577674, 577675, 577676) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 07:39:47,775 - 56390 - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-06-07 07:39:47,776 - 56390 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 3 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 07:39:47,821 - 56390 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-06-07 07:39:47,921 - 56390 - src.utils.log - INFO - βœ… All 3 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-06-07 07:39:47,921 - 56390 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-06-07 07:39:47,921 - 56390 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 56390;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 07:39:47,946 - 56390 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-07 07:39:47,946 - 56390 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-06-07 07:39:47,946 - 56390 - src.utils.log - INFO - Time took to perform operation: 2.55 - __SPLIT__ 2026-06-07 07:40:03,705 - [56390] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[577674, 577675] user_id=44502 company_id=145 project_id=[56390] publish_all=False - __SPLIT__ 2026-06-07 07:40:03,706 - [56390] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[577674, 577675] user_id=44502 company_id=145 project_id=[56390] publish_all=False - __SPLIT__ 2026-06-07 07:40:03,706 - [56390] - src.utils.log - INFO - Sequential Work order publish in progress for GenerateWorkOrderHistoryId: [56390] - __SPLIT__ 2026-06-07 07:40:03,707 - [56390] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-06-07 07:40:03,708 - [56390] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Samsung'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 07:40:03,885 - [56390] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-07 07:40:03,885 - [56390] - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-06-07 07:40:03,885 - [56390] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'InProgress' WHERE CompanyId = 145 AND GenerateWorkOrderHistoryId = 56390;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 07:40:03,912 - [56390] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-07 07:40:03,912 - [56390] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (577674, 577675)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 07:40:03,941 - [56390] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-07 07:40:03,941 - [56390] - src.utils.log - INFO - Inside get_work_order_table - __SPLIT__ 2026-06-07 07:40:03,941 - [56390] - 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 = 106097 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 07:40:03,976 - [56390] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-07 07:40:03,976 - [56390] - 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 = 106097 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 07:40:04,007 - [56390] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-07 07:40:04,008 - [56390] - 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 = 106097 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 07:40:04,042 - [56390] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-07 07:40:04,046 - [56390] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder,BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 145;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 07:40:04,073 - [56390] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-07 07:40:04,074 - [56390] - 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-06-07 07:40:04,100 - [56390] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-07 07:40:04,100 - [56390] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder, BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 145; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 07:40:04,127 - [56390] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-07 07:40:04,128 - [56390] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig SET NextNumber = NextNumber + 2 OUTPUT INSERTED.NextNumber - 2 AS StartNumber WHERE CompanyId = 145 AND EnitityNumberType IN ('WorkOrder','Invoice'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 07:40:04,155 - [56390] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-07 07:40:04,158 - [56390] - 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 = 106097... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 07:40:04,188 - [56390] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-07 07:40:04,191 - [56390] - src.utils.log - INFO - πŸ” Fetching data: SELECT x.CompanyId FROM CRM.CompanyMaster x WHERE CompanyKey = 'Samsung';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 07:40:04,216 - [56390] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-07 07:40:04,217 - [56390] - src.utils.log - INFO - πŸ” Fetching data: SELECT CollectionStatus,IsHold,AccountNo FROM CRM.Account a WHERE a.AccountNo = '3825' and a.CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 07:40:04,244 - [56390] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-07 07:40:04,246 - [56390] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderNo FROM ServiceCore.WorkOrder WHERE WorkOrderNo IN ('225626', '225627') AND CompanyId = 145 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 07:40:04,275 - [56390] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-07 07:40:04,275 - [56390] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrder (skip triggers): 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 07:40:04,354 - [56390] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrder (triggers skipped) - __SPLIT__ 2026-06-07 07:40:04,484 - [56390] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrder in 1 batches (triggers skipped) - __SPLIT__ 2026-06-07 07:40:04,497 - [56390] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-06-07 07:40:04,498 - [56390] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.ServiceSetup SET IsInitialWoGenerated = 1 WHERE CompanyId = 145 AND ServiceSetupId = 106097;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 07:40:04,526 - [56390] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-07 07:40:04,527 - [56390] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkorderId, WorkOrderNo FROM ServiceCore.WorkOrder wo WHERE wo.WorkOrderNo IN ('225626', '225627') AND wo.AccountNumber = '3825' AND wo.CompanyId = 145 ... (Thread: ThreadPoolExecutor-0_0) - __SPLIT__ 2026-06-07 07:40:04,558 - [56390] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-07 07:40:04,559 - [56390] - src.utils.log - INFO - Sequential fetching temp table records - __SPLIT__ 2026-06-07 07:40:04,559 - [56390] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationServices woag WHERE woag.WorkOrderAutoGenerationId in (577674, 577675)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 07:40:04,602 - [56390] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-07 07:40:04,602 - [56390] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SubWorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (577674, 577675)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 07:40:04,666 - [56390] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-07 07:40:04,667 - [56390] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationCrews woag WHERE woag.WorkOrderAutoGenerationId in (577674, 577675)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 07:40:04,701 - [56390] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-07 07:40:04,702 - [56390] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationSalesPersonCommission woag WHERE woag.WorkOrderAutoGenerationId in (577674, 577675)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 07:40:04,728 - [56390] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-07 07:40:04,728 - [56390] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupAutoGenerationSourceMapping woag WHERE woag.WorkOrderAutoGenerationId in (577674, 577675)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 07:40:04,757 - [56390] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-07 07:40:04,757 - [56390] - 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 (577674, 577675)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 07:40:04,790 - [56390] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-07 07:40:04,790 - [56390] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from CRM.LeadNote woag WHERE woag.RefId in (577674, 577675) and woag.RefType = 'TempWorkorder';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 07:40:04,817 - [56390] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-07 07:40:04,817 - [56390] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment woagca WHERE woagca.WorkOrderAutoGenerationId in (577674, 577675);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 07:40:04,844 - [56390] - src.utils.log - INFO - βœ… Fetched 8 rows - __SPLIT__ 2026-06-07 07:40:04,846 - [56390] - src.utils.log - INFO - Updating temp tables - __SPLIT__ 2026-06-07 07:40:04,861 - [56390] - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyKey FROM Common.CompanyMaster cm WHERE CompanyId = 145;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 07:40:04,887 - [56390] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-07 07:40:04,890 - [56390] - src.utils.log - INFO - πŸ” Fetching data: Select DiscountSetupId, [SysName] as DiscountSysName from Common.DiscountSetupMaster WHERE DiscountSetupId IN (885, 1084) AND CompanyId = 145;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 07:40:04,916 - [56390] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-07 07:40:04,925 - [56390] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 145 AND EnitityNumberType in ('SubWorkOrder'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 07:40:04,951 - [56390] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-07 07:40:04,952 - [56390] - src.utils.log - INFO - πŸ“ Executing: UPDATE Common.GenerateNumberConfig SET NextNumber = '38168' WHERE CompanyId = 145 AND EnitityNumberType in ('SubWorkOrder');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 07:40:04,985 - [56390] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-07 07:40:04,989 - [56390] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-07 07:40:04,989 - [56390] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishHistory: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 07:40:05,071 - [56390] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationPublishHistory - __SPLIT__ 2026-06-07 07:40:05,269 - [56390] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishHistory in 1 batches - __SPLIT__ 2026-06-07 07:40:05,270 - [56390] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationPublishHistoryId, WorkOrderNo, ServiceSetupId FROM ServiceCore.WorkOrderAutoGenerationPublishHistory WHERE ServiceSetupId = 106097 AND WorkOrderNo IN ('2823668', '7322034') AND GenerateWorkOrderHistoryId = 56390;... (Thread: ThreadPoolExecutor-1_0) - __SPLIT__ 2026-06-07 07:40:05,395 - [56390] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-07 07:40:05,396 - [56390] - src.utils.log - INFO - 🏁 Final merged rows: 2 - __SPLIT__ 2026-06-07 07:40:05,403 - [56390] - src.utils.log - INFO - Sequential Insertion in work order tables begin - __SPLIT__ 2026-06-07 07:40:05,403 - [56390] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-07 07:40:05,403 - [56390] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderServices: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 07:40:05,468 - [56390] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderServices - __SPLIT__ 2026-06-07 07:40:05,573 - [56390] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderServices in 1 batches - __SPLIT__ 2026-06-07 07:40:05,573 - [56390] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-07 07:40:05,573 - [56390] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.WorkOrderAppliedDiscount: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 07:40:05,619 - [56390] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceAuto.WorkOrderAppliedDiscount - __SPLIT__ 2026-06-07 07:40:05,718 - [56390] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceAuto.WorkOrderAppliedDiscount in 1 batches - __SPLIT__ 2026-06-07 07:40:05,718 - [56390] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderSalesPersonCommission: - __SPLIT__ 2026-06-07 07:40:05,718 - [56390] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-07 07:40:05,718 - [56390] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.WorkOrderCommissionAdjustment: 8 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 07:40:05,762 - [56390] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 8) into ServiceAuto.WorkOrderCommissionAdjustment - __SPLIT__ 2026-06-07 07:40:05,851 - [56390] - src.utils.log - INFO - βœ… All 8 rows inserted successfully into ServiceAuto.WorkOrderCommissionAdjustment in 1 batches - __SPLIT__ 2026-06-07 07:40:05,851 - [56390] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderCrew: - __SPLIT__ 2026-06-07 07:40:05,851 - [56390] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkorderSourceMapping: - __SPLIT__ 2026-06-07 07:40:05,851 - [56390] - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-06-07 07:40:05,851 - [56390] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-07 07:40:05,851 - [56390] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishServices: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 07:40:05,898 - [56390] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationPublishServices - __SPLIT__ 2026-06-07 07:40:05,999 - [56390] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishServices in 1 batches - __SPLIT__ 2026-06-07 07:40:05,999 - [56390] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-07 07:40:05,999 - [56390] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.SubWorkOrder: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 07:40:06,053 - [56390] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.SubWorkOrder - __SPLIT__ 2026-06-07 07:40:06,187 - [56390] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.SubWorkOrder in 1 batches - __SPLIT__ 2026-06-07 07:40:06,188 - [56390] - src.utils.log - INFO - πŸ” Fetching data: Select * From ServiceCore.SubWorkOrder where WorkOrderId in (1309237, 1309238)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 07:40:06,246 - [56390] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-07 07:40:06,253 - [56390] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-07 07:40:06,253 - [56390] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.subWorkOrderIssue: 4 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 07:40:06,297 - [56390] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 4) into ServiceAuto.subWorkOrderIssue - __SPLIT__ 2026-06-07 07:40:06,396 - [56390] - src.utils.log - INFO - βœ… All 4 rows inserted successfully into ServiceAuto.subWorkOrderIssue in 1 batches - __SPLIT__ 2026-06-07 07:40:06,396 - [56390] - src.utils.log - INFO - πŸ” Fetching data: Select SubWorkOrderIssueId, SubWorkOrderId, ModifiedBy From ServiceAuto.subWorkOrderIssue where SubWorkOrderId in (247718, 247719) and ModifiedBy in ('999999999', '1000000000', '1000000001', '1000000002')... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 07:40:06,425 - [56390] - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-06-07 07:40:06,425 - [56390] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceAuto.subWorkOrderIssue SET ModifiedBy = 'Samsung' WHERE ModifiedBy IN ('999999999', '1000000000', '1000000001', '1000000002'); ... (Thread: ThreadPoolExecutor-2_0) - __SPLIT__ 2026-06-07 07:40:06,482 - [56390] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-07 07:40:06,489 - [56390] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-07 07:40:06,489 - [56390] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.subWOIssueRepair: 8 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 07:40:06,537 - [56390] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 8) into ServiceAuto.subWOIssueRepair - __SPLIT__ 2026-06-07 07:40:06,642 - [56390] - src.utils.log - INFO - βœ… All 8 rows inserted successfully into ServiceAuto.subWOIssueRepair in 1 batches - __SPLIT__ 2026-06-07 07:40:06,642 - [56390] - src.utils.log - INFO - πŸ” Fetching data: Select IssueRepairId, ModifiedBy From ServiceAuto.subWOIssueRepair where SubWorkOrderIssueId in (215256, 215257, 215258, 215259)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 07:40:06,668 - [56390] - src.utils.log - INFO - βœ… Fetched 8 rows - __SPLIT__ 2026-06-07 07:40:06,669 - [56390] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceAuto.subWOIssueRepair SET ModifiedBy = 'Samsung' WHERE ModifiedBy IN ('0___TMP___215256', '1___TMP___215256', '0___TMP___215257', '1___TMP___215257', '0___TMP___215258', '1___TMP___215258', '0___TMP___215259', '1___TMP___215259') AND CreatedDate = '2026-06-07 03:40:06.250'; ... (Thread: ThreadPoolExecutor-3_0) - __SPLIT__ 2026-06-07 07:40:06,712 - [56390] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-07 07:40:06,718 - [56390] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-07 07:40:06,718 - [56390] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.SubWOIssueRepairLabor: 16 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 07:40:06,762 - [56390] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 16) into ServiceAuto.SubWOIssueRepairLabor - __SPLIT__ 2026-06-07 07:40:06,865 - [56390] - src.utils.log - INFO - βœ… All 16 rows inserted successfully into ServiceAuto.SubWOIssueRepairLabor in 1 batches - __SPLIT__ 2026-06-07 07:40:06,872 - [56390] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-07 07:40:06,872 - [56390] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.SubWOIssueRepairPart: 14 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 07:40:06,921 - [56390] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 14) into ServiceAuto.SubWOIssueRepairPart - __SPLIT__ 2026-06-07 07:40:07,128 - [56390] - src.utils.log - INFO - βœ… All 14 rows inserted successfully into ServiceAuto.SubWOIssueRepairPart in 1 batches - __SPLIT__ 2026-06-07 07:40:07,129 - [56390] - 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 = 106097... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 07:40:07,154 - [56390] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-07 07:40:07,161 - [56390] - src.utils.log - INFO - Size of Transaction: 2 - __SPLIT__ 2026-06-07 07:40:07,161 - [56390] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 07:40:07,219 - [56390] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-06-07 07:40:07,319 - [56390] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-06-07 07:40:07,332 - [56390] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-06-07 07:40:07,332 - [56390] - 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-06-07 03:40:07.156';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 07:40:07,389 - [56390] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-07 07:40:07,391 - [56390] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 106097;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 07:40:07,418 - [56390] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-07 07:40:07,427 - [56390] - src.utils.log - INFO - πŸ“ Executing: UPDATE Billing.[Transaction] SET ModifiedBy = NULL WHERE ModifiedBy IN (12345678910,12345678911) AND CreatedDate = '2026-06-07 03:40:07.156'; ... (Thread: ThreadPoolExecutor-4_0) - __SPLIT__ 2026-06-07 07:40:07,497 - [56390] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-07 07:40:07,501 - [56390] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-07 07:40:07,501 - [56390] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 07:40:07,549 - [56390] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.Invoice - __SPLIT__ 2026-06-07 07:40:07,647 - [56390] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-06-07 07:40:07,648 - [56390] - src.utils.log - INFO - πŸ” Fetching data: SELECT InvoiceId, WorkOrderNo FROM Billing.Invoice i WHERE i.WorkOrderNo in ('225626', '225627')... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 07:40:07,725 - [56390] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-07 07:40:07,734 - [56390] - 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 = 106097 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 07:40:07,763 - [56390] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-07 07:40:07,763 - [56390] - 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 = 106097 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 07:40:07,789 - [56390] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-07 07:40:07,790 - [56390] - 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 = 106097 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 07:40:07,816 - [56390] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-07 07:40:07,816 - [56390] - 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 = 106097 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 07:40:07,843 - [56390] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-07 07:40:07,855 - [56390] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 106097;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 07:40:07,883 - [56390] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-07 07:40:07,888 - [56390] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId, AppliedDiscountAmt as AppliedDiscountAmount,IsActive ,ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 106097;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 07:40:07,914 - [56390] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-07 07:40:07,923 - [56390] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId,IsActive,DiscountAmount, IsDiscountPercent,DiscountPercent,DiscountDescription , ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 106097;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 07:40:07,950 - [56390] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-07 07:40:07,958 - [56390] - src.utils.log - INFO - Sequential Insertion in invoice tables begin - __SPLIT__ 2026-06-07 07:40:07,958 - [56390] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-07 07:40:07,958 - [56390] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.AccountDiscountSetup: 4 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 07:40:08,002 - [56390] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 4) into Billing.AccountDiscountSetup - __SPLIT__ 2026-06-07 07:40:08,098 - [56390] - src.utils.log - INFO - βœ… All 4 rows inserted successfully into Billing.AccountDiscountSetup in 1 batches - __SPLIT__ 2026-06-07 07:40:08,098 - [56390] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-07 07:40:08,098 - [56390] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceCharges: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 07:40:08,144 - [56390] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.InvoiceCharges - __SPLIT__ 2026-06-07 07:40:08,242 - [56390] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.InvoiceCharges in 1 batches - __SPLIT__ 2026-06-07 07:40:08,242 - [56390] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-07 07:40:08,242 - [56390] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.DiscountApplied: 4 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 07:40:08,285 - [56390] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 4) into Billing.DiscountApplied - __SPLIT__ 2026-06-07 07:40:08,380 - [56390] - src.utils.log - INFO - βœ… All 4 rows inserted successfully into Billing.DiscountApplied in 1 batches - __SPLIT__ 2026-06-07 07:40:08,380 - [56390] - src.utils.log - INFO - Invoice Publish Done - __SPLIT__ 2026-06-07 07:40:08,381 - [56390] - src.utils.log - INFO - Updating Next GenerationDate - __SPLIT__ 2026-06-07 07:40:08,381 - [56390] - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, MAX(NextWorkOrderGenerationDate) AS MaxNextWorkOrderGeneration FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 56390 GROUP BY ServiceSetupId; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 07:40:08,407 - [56390] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-07 07:40:08,412 - [56390] - src.utils.log - INFO - πŸ”„ Updating next gen date sequentially: inside update_next_workorder_generation - __SPLIT__ 2026-06-07 07:40:08,427 - [56390] - src.utils.log - INFO - πŸ›  Creating temp table #tbl_9af40ce082 - __SPLIT__ 2026-06-07 07:40:08,455 - [56390] - src.utils.log - INFO - πŸ“Œ Bulk inserting 1 rows into #tbl_9af40ce082 - __SPLIT__ 2026-06-07 07:40:08,479 - [56390] - src.utils.log - INFO - πŸ” Running MERGE update to apply changes - __SPLIT__ 2026-06-07 07:40:08,497 - [56390] - src.utils.log - INFO - βœ” SQL reported affected rows: 1 - __SPLIT__ 2026-06-07 07:40:08,512 - [56390] - src.utils.log - INFO - πŸ” Verified successfully updated 1 rows via #tbl_9af40ce082 - __SPLIT__ 2026-06-07 07:40:08,512 - [56390] - src.utils.log - INFO - πŸŽ‰ Successfully updated NextGenerationDate using temp table #tbl_9af40ce082 - __SPLIT__ 2026-06-07 07:40:08,512 - [56390] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 56390 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 07:40:08,537 - [56390] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-07 07:40:08,538 - [56390] - src.utils.log - INFO - Sequential deletion from temp tables begin - __SPLIT__ 2026-06-07 07:40:08,538 - [56390] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId in (577674, 577675) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 07:40:08,613 - [56390] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-07 07:40:08,613 - [56390] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId in (577674, 577675) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 07:40:08,676 - [56390] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-07 07:40:08,676 - [56390] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId in (577674, 577675) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 07:40:08,706 - [56390] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-07 07:40:08,706 - [56390] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId in (577674, 577675) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 07:40:08,748 - [56390] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-07 07:40:08,749 - [56390] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId in (577674, 577675) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 07:40:08,780 - [56390] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-07 07:40:08,780 - [56390] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (577674, 577675) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 07:40:08,838 - [56390] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-07 07:40:08,838 - [56390] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId in (577674, 577675) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 07:40:08,864 - [56390] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-07 07:40:08,865 - [56390] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (577674, 577675) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 07:40:08,971 - [56390] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-07 07:40:08,971 - [56390] - src.utils.log - INFO - Work order published ids: (577674, 577675) - __SPLIT__ 2026-06-07 07:40:08,971 - [56390] - src.utils.log - INFO - Time took to perform operation in publishing [56390]: 5.27 - __SPLIT__ 2026-06-07 07:40:08,971 - [56390] - src.utils.log - INFO - Publish Completed for GenerateWorkOrderHistoryId: [56390] - __SPLIT__ 2026-06-07 07:40:08,971 - [56390] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-06-07 03:40:08.971' WHERE CompanyId = 145 AND GenerateWorkOrderHistoryId = 56390;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 07:40:08,998 - [56390] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-07 09:19:50,113 - 56394 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=56394 - __SPLIT__ 2026-06-07 09:19:50,114 - 56394 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 56394 - __SPLIT__ 2026-06-07 09:19:50,130 - 56394 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-06-07 09:19:50,130 - 56394 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:19:50,431 - 56394 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-07 09:19:50,431 - 56394 - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-06-07 09:19:50,432 - 56394 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 56394;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:19:50,465 - 56394 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-07 09:19:50,465 - 56394 - 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 = 56394), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 56394), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 56394 AND ss.FrequencyScheduleId IS NOT NULL AND ss.IsActive = 1 AND ss.IsDeleted = 0 AND ss.Status <> 'Canceled' AND ((ss.OrderType = gw.OrderType) OR gw.OrderType IS NULL);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:19:50,526 - 56394 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-07 09:19:50,526 - 56394 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 56394;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:19:50,558 - 56394 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-07 09:19:50,561 - 56394 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-06-07 09:19:50,562 - 56394 - 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-06-07 09:19:50,602 - 56394 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-07 09:19:50,602 - 56394 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-06-07 09:19:50,605 - 56394 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-06-07 09:19:50,605 - 56394 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 106105;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:19:50,638 - 56394 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-07 09:19:50,638 - 56394 - src.utils.log - INFO - πŸ” Fetching data: select ServiceDate, ServiceSetupId, IsInitial from serviceCore.WorkOrder wo inner join ServiceCore.WorkOrderStatus wos on wo.WoStatusId = wos.WoStatusId where ServiceDate >= '2026-06-07 00:00:00' and ServiceDate <= '2026-07-31 00:00:00' and ServiceSetupId = 106105 and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:19:50,674 - 56394 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-07 09:19:50,755 - 56394 - src.utils.log - INFO - Generating work orders for setup: 106105 - __SPLIT__ 2026-06-07 09:19:50,770 - 56394 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 11520;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:19:50,800 - 56394 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-07 09:19:50,806 - 56394 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 11522;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:19:50,836 - 56394 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-07 09:19:50,867 - 56394 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-06-07 09:19:50,872 - 56394 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=146 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:19:50,901 - 56394 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-07 09:19:50,902 - 56394 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-06-07 09:19:50,903 - 56394 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-06-07 09:19:50,903 - 56394 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 106105 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:19:51,066 - 56394 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-07 09:19:51,066 - 56394 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 106105 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:19:51,126 - 56394 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-07 09:19:51,126 - 56394 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 106105 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:19:51,184 - 56394 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-07 09:19:51,184 - 56394 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 106105 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:19:51,241 - 56394 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-07 09:19:51,242 - 56394 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 106105 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:19:51,299 - 56394 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-07 09:19:51,299 - 56394 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 106105 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:19:51,359 - 56394 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-07 09:19:51,359 - 56394 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 106105 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:19:51,396 - 56394 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-07 09:19:51,397 - 56394 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 106105 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:19:51,490 - 56394 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-07 09:19:51,490 - 56394 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-07 09:19:51,490 - 56394 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:19:51,565 - 56394 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-06-07 09:19:51,712 - 56394 - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-06-07 09:19:51,713 - 56394 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 2 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-06-07 11:12:39.587' and ServiceSetupId = 106105... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:19:51,769 - 56394 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-07 09:19:51,770 - 56394 - src.utils.log - INFO - Id's of work order inserted to DB: [577692 577693] - __SPLIT__ 2026-06-07 09:19:51,770 - 56394 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 106105;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:19:51,800 - 56394 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-07 09:19:51,800 - 56394 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-06-07 09:19:51,801 - 56394 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId = 106105... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:19:51,832 - 56394 - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-06-07 09:19:51,833 - 56394 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId = 106105... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:19:51,863 - 56394 - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-06-07 09:19:51,870 - 56394 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId = 106105... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:19:51,904 - 56394 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-07 09:19:51,904 - 56394 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId = 106105... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:19:51,935 - 56394 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-07 09:19:51,936 - 56394 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId = 106105... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:19:51,967 - 56394 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-07 09:19:51,967 - 56394 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId = 106105;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:19:51,997 - 56394 - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-06-07 09:19:51,998 - 56394 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId = 106105;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:19:52,028 - 56394 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-07 09:19:52,029 - 56394 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId = 106105;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:19:52,257 - 56394 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-07 09:19:52,257 - 56394 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId = 106105;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:19:52,288 - 56394 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-07 09:19:52,304 - 56394 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-06-07 09:19:52,304 - 56394 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-06-07 09:19:52,304 - 56394 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-06-07 09:19:52,304 - 56394 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.CommunicationPreferencesServiceReportNotification: - __SPLIT__ 2026-06-07 09:19:52,304 - 56394 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-06-07 09:19:52,304 - 56394 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SetupAutoGenerationSourceMapping: - __SPLIT__ 2026-06-07 09:19:52,304 - 56394 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-06-07 09:19:52,304 - 56394 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-07 09:19:52,304 - 56394 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (577692, 577693) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:19:52,334 - 56394 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-07 09:19:52,334 - 56394 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationAppliedDiscount: 4 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:19:52,385 - 56394 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 4) into ServiceCore.WorkOrderAutoGenerationAppliedDiscount - __SPLIT__ 2026-06-07 09:19:52,504 - 56394 - src.utils.log - INFO - βœ… All 4 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationAppliedDiscount in 1 batches - __SPLIT__ 2026-06-07 09:19:52,505 - 56394 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-06-07 09:19:52,505 - 56394 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SubWorkOrderAutoGeneration: - __SPLIT__ 2026-06-07 09:19:52,505 - 56394 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-06-07 09:19:52,505 - 56394 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: - __SPLIT__ 2026-06-07 09:19:52,505 - 56394 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-06-07 09:19:52,505 - 56394 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: - __SPLIT__ 2026-06-07 09:19:52,505 - 56394 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-06-07 09:19:52,505 - 56394 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-07 09:19:52,505 - 56394 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (577692, 577693) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:19:52,533 - 56394 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-07 09:19:52,534 - 56394 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationCrews: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:19:52,582 - 56394 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationCrews - __SPLIT__ 2026-06-07 09:19:52,697 - 56394 - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationCrews in 1 batches - __SPLIT__ 2026-06-07 09:19:52,697 - 56394 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-06-07 09:19:52,697 - 56394 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-07 09:19:52,697 - 56394 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 577692 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:19:52,727 - 56394 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-07 09:19:52,728 - 56394 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 3 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:19:52,783 - 56394 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-06-07 09:19:52,903 - 56394 - src.utils.log - INFO - βœ… All 3 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-06-07 09:19:52,903 - 56394 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-06-07 09:19:52,903 - 56394 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-07 09:19:52,903 - 56394 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 577693 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:19:52,932 - 56394 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-07 09:19:52,933 - 56394 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 3 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:19:52,968 - 56394 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-06-07 09:19:53,083 - 56394 - src.utils.log - INFO - βœ… All 3 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-06-07 09:19:53,083 - 56394 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-06-07 09:19:53,083 - 56394 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 56394;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:19:53,112 - 56394 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-07 09:19:53,112 - 56394 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-06-07 09:19:53,112 - 56394 - src.utils.log - INFO - Time took to perform operation: 3.0 - __SPLIT__ 2026-06-07 09:20:04,703 - [56394] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[577692, 577693] user_id=44506 company_id=146 project_id=[56394] publish_all=False - __SPLIT__ 2026-06-07 09:20:04,704 - [56394] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[577692, 577693] user_id=44506 company_id=146 project_id=[56394] publish_all=False - __SPLIT__ 2026-06-07 09:20:04,704 - [56394] - src.utils.log - INFO - Sequential Work order publish in progress for GenerateWorkOrderHistoryId: [56394] - __SPLIT__ 2026-06-07 09:20:04,717 - [56394] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-06-07 09:20:04,717 - [56394] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:20:04,927 - [56394] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-07 09:20:04,927 - [56394] - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-06-07 09:20:04,928 - [56394] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'InProgress' WHERE CompanyId = 146 AND GenerateWorkOrderHistoryId = 56394;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:20:04,953 - [56394] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-07 09:20:04,953 - [56394] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (577692, 577693)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:20:04,981 - [56394] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-07 09:20:04,981 - [56394] - src.utils.log - INFO - Inside get_work_order_table - __SPLIT__ 2026-06-07 09:20:04,981 - [56394] - 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 = 106105 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:20:05,012 - [56394] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-07 09:20:05,013 - [56394] - 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 = 106105 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:20:05,043 - [56394] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-07 09:20:05,043 - [56394] - 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 = 106105 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:20:05,076 - [56394] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-07 09:20:05,080 - [56394] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder,BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 146;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:20:05,106 - [56394] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-07 09:20:05,106 - [56394] - 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-06-07 09:20:05,129 - [56394] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-07 09:20:05,130 - [56394] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder, BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 146; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:20:05,156 - [56394] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-07 09:20:05,156 - [56394] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 2 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 146 AND EnitityNumberType = 'WorkOrder'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:20:05,181 - [56394] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-07 09:20:05,182 - [56394] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 2 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 146 AND EnitityNumberType = 'Invoice'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:20:05,206 - [56394] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-07 09:20:05,210 - [56394] - 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 = 106105... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:20:05,241 - [56394] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-07 09:20:05,243 - [56394] - src.utils.log - INFO - πŸ” Fetching data: SELECT x.CompanyId FROM CRM.CompanyMaster x WHERE CompanyKey = 'Fortive';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:20:05,266 - [56394] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-07 09:20:05,266 - [56394] - src.utils.log - INFO - πŸ” Fetching data: SELECT CollectionStatus,IsHold,AccountNo FROM CRM.Account a WHERE a.AccountNo = '2327' and a.CompanyId = 134;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:20:05,290 - [56394] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-07 09:20:05,292 - [56394] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderNo FROM ServiceCore.WorkOrder WHERE WorkOrderNo IN ('56392', '56393') AND CompanyId = 146 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:20:05,320 - [56394] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-07 09:20:05,320 - [56394] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrder (skip triggers): 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:20:05,398 - [56394] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrder (triggers skipped) - __SPLIT__ 2026-06-07 09:20:05,557 - [56394] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrder in 1 batches (triggers skipped) - __SPLIT__ 2026-06-07 09:20:05,568 - [56394] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-06-07 09:20:05,569 - [56394] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.ServiceSetup SET IsInitialWoGenerated = 1 WHERE CompanyId = 146 AND ServiceSetupId = 106105;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:20:05,595 - [56394] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-07 09:20:05,596 - [56394] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkorderId, WorkOrderNo FROM ServiceCore.WorkOrder wo WHERE wo.WorkOrderNo IN ('56392', '56393') AND wo.AccountNumber = '2327' AND wo.CompanyId = 146 ... (Thread: ThreadPoolExecutor-0_0) - __SPLIT__ 2026-06-07 09:20:05,624 - [56394] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-07 09:20:05,625 - [56394] - src.utils.log - INFO - Sequential fetching temp table records - __SPLIT__ 2026-06-07 09:20:05,625 - [56394] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationServices woag WHERE woag.WorkOrderAutoGenerationId in (577692, 577693)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:20:05,689 - [56394] - src.utils.log - INFO - βœ… Fetched 6 rows - __SPLIT__ 2026-06-07 09:20:05,689 - [56394] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SubWorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (577692, 577693)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:20:06,083 - [56394] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-07 09:20:06,083 - [56394] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationCrews woag WHERE woag.WorkOrderAutoGenerationId in (577692, 577693)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:20:06,134 - [56394] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-07 09:20:06,135 - [56394] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationSalesPersonCommission woag WHERE woag.WorkOrderAutoGenerationId in (577692, 577693)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:20:06,162 - [56394] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-07 09:20:06,162 - [56394] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupAutoGenerationSourceMapping woag WHERE woag.WorkOrderAutoGenerationId in (577692, 577693)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:20:06,191 - [56394] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-07 09:20:06,191 - [56394] - 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 (577692, 577693)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:20:06,229 - [56394] - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-06-07 09:20:06,229 - [56394] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from CRM.LeadNote woag WHERE woag.RefId in (577692, 577693) and woag.RefType = 'TempWorkorder';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:20:06,256 - [56394] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-07 09:20:06,256 - [56394] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment woagca WHERE woagca.WorkOrderAutoGenerationId in (577692, 577693);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:20:06,282 - [56394] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-07 09:20:06,284 - [56394] - src.utils.log - INFO - Updating temp tables - __SPLIT__ 2026-06-07 09:20:06,294 - [56394] - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyKey FROM Common.CompanyMaster cm WHERE CompanyId = 146;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:20:06,318 - [56394] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-07 09:20:06,321 - [56394] - src.utils.log - INFO - πŸ” Fetching data: Select DiscountSetupId, [SysName] as DiscountSysName from Common.DiscountSetupMaster WHERE DiscountSetupId IN (1045, 1179) AND CompanyId = 146;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:20:06,347 - [56394] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-07 09:20:06,348 - [56394] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 146 AND EnitityNumberType in ('SubWorkOrder'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:20:06,373 - [56394] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-07 09:20:06,376 - [56394] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-07 09:20:06,376 - [56394] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishHistory: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:20:06,444 - [56394] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationPublishHistory - __SPLIT__ 2026-06-07 09:20:06,551 - [56394] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishHistory in 1 batches - __SPLIT__ 2026-06-07 09:20:06,552 - [56394] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationPublishHistoryId, WorkOrderNo, ServiceSetupId FROM ServiceCore.WorkOrderAutoGenerationPublishHistory WHERE ServiceSetupId = 106105 AND WorkOrderNo IN ('777878', '6158832') AND GenerateWorkOrderHistoryId = 56394;... (Thread: ThreadPoolExecutor-1_0) - __SPLIT__ 2026-06-07 09:20:06,618 - [56394] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-07 09:20:06,618 - [56394] - src.utils.log - INFO - 🏁 Final merged rows: 2 - __SPLIT__ 2026-06-07 09:20:06,623 - [56394] - src.utils.log - INFO - Sequential Insertion in work order tables begin - __SPLIT__ 2026-06-07 09:20:06,623 - [56394] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-07 09:20:06,623 - [56394] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderServices: 6 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:20:06,665 - [56394] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 6) into ServiceCore.WorkOrderServices - __SPLIT__ 2026-06-07 09:20:06,761 - [56394] - src.utils.log - INFO - βœ… All 6 rows inserted successfully into ServiceCore.WorkOrderServices in 1 batches - __SPLIT__ 2026-06-07 09:20:06,762 - [56394] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-07 09:20:06,762 - [56394] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.WorkOrderAppliedDiscount: 4 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:20:06,808 - [56394] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 4) into ServiceAuto.WorkOrderAppliedDiscount - __SPLIT__ 2026-06-07 09:20:06,905 - [56394] - src.utils.log - INFO - βœ… All 4 rows inserted successfully into ServiceAuto.WorkOrderAppliedDiscount in 1 batches - __SPLIT__ 2026-06-07 09:20:06,906 - [56394] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderSalesPersonCommission: - __SPLIT__ 2026-06-07 09:20:06,906 - [56394] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderCommissionAdjustment: - __SPLIT__ 2026-06-07 09:20:06,906 - [56394] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-07 09:20:06,906 - [56394] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderCrew: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:20:06,947 - [56394] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderCrew - __SPLIT__ 2026-06-07 09:20:07,038 - [56394] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderCrew in 1 batches - __SPLIT__ 2026-06-07 09:20:07,038 - [56394] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkorderSourceMapping: - __SPLIT__ 2026-06-07 09:20:07,039 - [56394] - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-06-07 09:20:07,039 - [56394] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-07 09:20:07,039 - [56394] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishServices: 6 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:20:07,084 - [56394] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 6) into ServiceCore.WorkOrderAutoGenerationPublishServices - __SPLIT__ 2026-06-07 09:20:07,187 - [56394] - src.utils.log - INFO - βœ… All 6 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishServices in 1 batches - __SPLIT__ 2026-06-07 09:20:07,187 - [56394] - 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 = 106105... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:20:07,211 - [56394] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-07 09:20:07,216 - [56394] - src.utils.log - INFO - Size of Transaction: 2 - __SPLIT__ 2026-06-07 09:20:07,217 - [56394] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:20:07,271 - [56394] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-06-07 09:20:07,365 - [56394] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-06-07 09:20:07,376 - [56394] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-06-07 09:20:07,376 - [56394] - 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-06-07 05:20:07.212';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:20:07,413 - [56394] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-07 09:20:07,415 - [56394] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 106105;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:20:07,438 - [56394] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-07 09:20:07,446 - [56394] - src.utils.log - INFO - πŸ“ Executing: UPDATE Billing.[Transaction] SET ModifiedBy = NULL WHERE ModifiedBy IN (12345678910,12345678911) AND CreatedDate = '2026-06-07 05:20:07.212'; ... (Thread: ThreadPoolExecutor-2_0) - __SPLIT__ 2026-06-07 09:20:07,510 - [56394] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-07 09:20:07,514 - [56394] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-07 09:20:07,514 - [56394] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:20:07,562 - [56394] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.Invoice - __SPLIT__ 2026-06-07 09:20:07,659 - [56394] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-06-07 09:20:07,660 - [56394] - src.utils.log - INFO - πŸ” Fetching data: SELECT InvoiceId, WorkOrderNo FROM Billing.Invoice i WHERE i.WorkOrderNo in ('56392', '56393')... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:20:07,734 - [56394] - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-06-07 09:20:07,742 - [56394] - 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 = 106105 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:20:07,768 - [56394] - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-06-07 09:20:07,768 - [56394] - 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 = 106105 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:20:07,794 - [56394] - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-06-07 09:20:07,794 - [56394] - 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 = 106105 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:20:07,818 - [56394] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-07 09:20:07,818 - [56394] - 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 = 106105 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:20:07,844 - [56394] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-07 09:20:07,856 - [56394] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 106105;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:20:07,880 - [56394] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-07 09:20:07,885 - [56394] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId, AppliedDiscountAmt as AppliedDiscountAmount,IsActive ,ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 106105;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:20:07,909 - [56394] - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-06-07 09:20:07,917 - [56394] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId,IsActive,DiscountAmount, IsDiscountPercent,DiscountPercent,DiscountDescription , ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 106105;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:20:07,942 - [56394] - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-06-07 09:20:07,949 - [56394] - src.utils.log - INFO - Sequential Insertion in invoice tables begin - __SPLIT__ 2026-06-07 09:20:07,950 - [56394] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-07 09:20:07,950 - [56394] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.AccountDiscountSetup: 8 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:20:07,991 - [56394] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 8) into Billing.AccountDiscountSetup - __SPLIT__ 2026-06-07 09:20:08,084 - [56394] - src.utils.log - INFO - βœ… All 8 rows inserted successfully into Billing.AccountDiscountSetup in 1 batches - __SPLIT__ 2026-06-07 09:20:08,085 - [56394] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-07 09:20:08,085 - [56394] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceCharges: 12 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:20:08,138 - [56394] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 12) into Billing.InvoiceCharges - __SPLIT__ 2026-06-07 09:20:08,256 - [56394] - src.utils.log - INFO - βœ… All 12 rows inserted successfully into Billing.InvoiceCharges in 1 batches - __SPLIT__ 2026-06-07 09:20:08,256 - [56394] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-07 09:20:08,256 - [56394] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.DiscountApplied: 8 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:20:08,302 - [56394] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 8) into Billing.DiscountApplied - __SPLIT__ 2026-06-07 09:20:08,395 - [56394] - src.utils.log - INFO - βœ… All 8 rows inserted successfully into Billing.DiscountApplied in 1 batches - __SPLIT__ 2026-06-07 09:20:08,395 - [56394] - src.utils.log - INFO - Invoice Publish Done - __SPLIT__ 2026-06-07 09:20:08,396 - [56394] - src.utils.log - INFO - Updating Next GenerationDate - __SPLIT__ 2026-06-07 09:20:08,396 - [56394] - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, MAX(NextWorkOrderGenerationDate) AS MaxNextWorkOrderGeneration FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 56394 GROUP BY ServiceSetupId; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:20:08,422 - [56394] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-07 09:20:08,427 - [56394] - src.utils.log - INFO - πŸ”„ Updating next gen date sequentially: inside update_next_workorder_generation - __SPLIT__ 2026-06-07 09:20:08,440 - [56394] - src.utils.log - INFO - πŸ›  Creating temp table #tbl_ad5b52d23f - __SPLIT__ 2026-06-07 09:20:08,465 - [56394] - src.utils.log - INFO - πŸ“Œ Bulk inserting 1 rows into #tbl_ad5b52d23f - __SPLIT__ 2026-06-07 09:20:08,487 - [56394] - src.utils.log - INFO - πŸ” Running MERGE update to apply changes - __SPLIT__ 2026-06-07 09:20:08,504 - [56394] - src.utils.log - INFO - βœ” SQL reported affected rows: 1 - __SPLIT__ 2026-06-07 09:20:08,521 - [56394] - src.utils.log - INFO - πŸ” Verified successfully updated 1 rows via #tbl_ad5b52d23f - __SPLIT__ 2026-06-07 09:20:08,521 - [56394] - src.utils.log - INFO - πŸŽ‰ Successfully updated NextGenerationDate using temp table #tbl_ad5b52d23f - __SPLIT__ 2026-06-07 09:20:08,521 - [56394] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 56394 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:20:08,545 - [56394] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-07 09:20:08,545 - [56394] - src.utils.log - INFO - Sequential deletion from temp tables begin - __SPLIT__ 2026-06-07 09:20:08,545 - [56394] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId in (577692, 577693) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:20:08,623 - [56394] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-07 09:20:08,624 - [56394] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId in (577692, 577693) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:20:08,686 - [56394] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-07 09:20:08,687 - [56394] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId in (577692, 577693) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:20:08,713 - [56394] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-07 09:20:08,713 - [56394] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId in (577692, 577693) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:20:08,755 - [56394] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-07 09:20:08,755 - [56394] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId in (577692, 577693) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:20:08,785 - [56394] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-07 09:20:08,786 - [56394] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (577692, 577693) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:20:08,843 - [56394] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-07 09:20:08,843 - [56394] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId in (577692, 577693) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:20:08,866 - [56394] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-07 09:20:08,867 - [56394] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (577692, 577693) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:20:08,981 - [56394] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-07 09:20:08,981 - [56394] - src.utils.log - INFO - Work order published ids: (577692, 577693) - __SPLIT__ 2026-06-07 09:20:08,981 - [56394] - src.utils.log - INFO - Time took to perform operation in publishing [56394]: 4.28 - __SPLIT__ 2026-06-07 09:20:08,981 - [56394] - src.utils.log - INFO - Publish Completed for GenerateWorkOrderHistoryId: [56394] - __SPLIT__ 2026-06-07 09:20:08,981 - [56394] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-06-07 05:20:08.981' WHERE CompanyId = 146 AND GenerateWorkOrderHistoryId = 56394;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:20:09,005 - [56394] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-07 09:48:20,117 - 56397 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=56397 - __SPLIT__ 2026-06-07 09:48:20,118 - 56397 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 56397 - __SPLIT__ 2026-06-07 09:48:20,118 - 56397 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-06-07 09:48:20,119 - 56397 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:48:20,327 - 56397 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-07 09:48:20,327 - 56397 - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-06-07 09:48:20,327 - 56397 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 56397;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:48:20,355 - 56397 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-07 09:48:20,355 - 56397 - 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 = 56397), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 56397), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 56397 AND ss.FrequencyScheduleId IS NOT NULL AND ss.IsActive = 1 AND ss.IsDeleted = 0 AND ss.Status <> 'Canceled' AND ((ss.OrderType = gw.OrderType) OR gw.OrderType IS NULL);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:48:20,465 - 56397 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-07 09:48:20,465 - 56397 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 56397;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:48:20,492 - 56397 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-07 09:48:20,495 - 56397 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-06-07 09:48:20,495 - 56397 - 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-06-07 09:48:20,534 - 56397 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-07 09:48:20,535 - 56397 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-06-07 09:48:20,537 - 56397 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-06-07 09:48:20,537 - 56397 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 106110;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:48:20,564 - 56397 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-07 09:48:20,565 - 56397 - src.utils.log - INFO - πŸ” Fetching data: select ServiceDate, ServiceSetupId, IsInitial from serviceCore.WorkOrder wo inner join ServiceCore.WorkOrderStatus wos on wo.WoStatusId = wos.WoStatusId where ServiceDate >= '2026-06-07 00:00:00' and ServiceDate <= '2026-07-31 00:00:00' and ServiceSetupId = 106110 and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:48:20,603 - 56397 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-07 09:48:20,676 - 56397 - src.utils.log - INFO - Generating work orders for setup: 106110 - __SPLIT__ 2026-06-07 09:48:20,692 - 56397 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 1252;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:48:20,717 - 56397 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-07 09:48:20,724 - 56397 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 1253;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:48:20,750 - 56397 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-07 09:48:20,782 - 56397 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-06-07 09:48:20,785 - 56397 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=146 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:48:20,810 - 56397 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-07 09:48:20,811 - 56397 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-06-07 09:48:20,812 - 56397 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-06-07 09:48:20,812 - 56397 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 106110 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:48:20,912 - 56397 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-07 09:48:20,912 - 56397 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 106110 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:48:20,993 - 56397 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-07 09:48:20,993 - 56397 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 106110 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:48:21,075 - 56397 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-07 09:48:21,075 - 56397 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 106110 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:48:21,162 - 56397 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-07 09:48:21,162 - 56397 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 106110 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:48:21,242 - 56397 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-07 09:48:21,243 - 56397 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 106110 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:48:21,323 - 56397 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-07 09:48:21,324 - 56397 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 106110 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:48:21,357 - 56397 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-07 09:48:21,357 - 56397 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 106110 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:48:21,590 - 56397 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-07 09:48:21,590 - 56397 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-07 09:48:21,590 - 56397 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:48:21,658 - 56397 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-06-07 09:48:21,823 - 56397 - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-06-07 09:48:21,824 - 56397 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 2 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-06-07 11:12:39.549' and ServiceSetupId = 106110... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:48:21,957 - 56397 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-07 09:48:21,957 - 56397 - src.utils.log - INFO - Id's of work order inserted to DB: [577702 577703] - __SPLIT__ 2026-06-07 09:48:21,957 - 56397 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 106110;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:48:21,994 - 56397 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-07 09:48:21,994 - 56397 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-06-07 09:48:21,995 - 56397 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId = 106110... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:48:22,033 - 56397 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-07 09:48:22,033 - 56397 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId = 106110... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:48:22,070 - 56397 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-07 09:48:22,077 - 56397 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId = 106110... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:48:22,124 - 56397 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-07 09:48:22,125 - 56397 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId = 106110... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:48:22,160 - 56397 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-07 09:48:22,161 - 56397 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId = 106110... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:48:22,193 - 56397 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-07 09:48:22,193 - 56397 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId = 106110;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:48:22,228 - 56397 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-07 09:48:22,229 - 56397 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId = 106110;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:48:22,261 - 56397 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-07 09:48:22,261 - 56397 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId = 106110;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:48:22,799 - 56397 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-07 09:48:22,799 - 56397 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId = 106110;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:48:22,830 - 56397 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-07 09:48:22,841 - 56397 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-06-07 09:48:22,841 - 56397 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-06-07 09:48:22,841 - 56397 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-06-07 09:48:22,841 - 56397 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.CommunicationPreferencesServiceReportNotification: - __SPLIT__ 2026-06-07 09:48:22,841 - 56397 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-06-07 09:48:22,842 - 56397 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SetupAutoGenerationSourceMapping: - __SPLIT__ 2026-06-07 09:48:22,842 - 56397 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-06-07 09:48:22,842 - 56397 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationAppliedDiscount: - __SPLIT__ 2026-06-07 09:48:22,842 - 56397 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-06-07 09:48:22,842 - 56397 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SubWorkOrderAutoGeneration: - __SPLIT__ 2026-06-07 09:48:22,842 - 56397 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-06-07 09:48:22,842 - 56397 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: - __SPLIT__ 2026-06-07 09:48:22,842 - 56397 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-06-07 09:48:22,842 - 56397 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: - __SPLIT__ 2026-06-07 09:48:22,843 - 56397 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-06-07 09:48:22,843 - 56397 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-07 09:48:22,843 - 56397 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (577702, 577703) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:48:22,871 - 56397 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-07 09:48:22,872 - 56397 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationCrews: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:48:22,904 - 56397 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationCrews - __SPLIT__ 2026-06-07 09:48:23,014 - 56397 - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationCrews in 1 batches - __SPLIT__ 2026-06-07 09:48:23,014 - 56397 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-06-07 09:48:23,014 - 56397 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-07 09:48:23,015 - 56397 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 577702 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:48:23,043 - 56397 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-07 09:48:23,044 - 56397 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:48:23,078 - 56397 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-06-07 09:48:23,191 - 56397 - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-06-07 09:48:23,191 - 56397 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-06-07 09:48:23,191 - 56397 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-07 09:48:23,192 - 56397 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 577703 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:48:23,216 - 56397 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-07 09:48:23,217 - 56397 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:48:23,251 - 56397 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-06-07 09:48:23,362 - 56397 - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-06-07 09:48:23,363 - 56397 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-06-07 09:48:23,363 - 56397 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 56397;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:48:23,394 - 56397 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-07 09:48:23,394 - 56397 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-06-07 09:48:23,394 - 56397 - src.utils.log - INFO - Time took to perform operation: 3.28 - __SPLIT__ 2026-06-07 09:49:12,136 - [56397] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[577702, 577703] user_id=44506 company_id=146 project_id=[56397] publish_all=False - __SPLIT__ 2026-06-07 09:49:12,137 - [56397] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[577702, 577703] user_id=44506 company_id=146 project_id=[56397] publish_all=False - __SPLIT__ 2026-06-07 09:49:12,137 - [56397] - src.utils.log - INFO - Sequential Work order publish in progress for GenerateWorkOrderHistoryId: [56397] - __SPLIT__ 2026-06-07 09:49:12,138 - [56397] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-06-07 09:49:12,138 - [56397] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:49:12,311 - [56397] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-07 09:49:12,311 - [56397] - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-06-07 09:49:12,311 - [56397] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'InProgress' WHERE CompanyId = 146 AND GenerateWorkOrderHistoryId = 56397;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:49:12,338 - [56397] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-07 09:49:12,338 - [56397] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (577702, 577703)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:49:12,367 - [56397] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-07 09:49:12,368 - [56397] - src.utils.log - INFO - Inside get_work_order_table - __SPLIT__ 2026-06-07 09:49:12,368 - [56397] - 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 = 106110 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:49:12,405 - [56397] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-07 09:49:12,405 - [56397] - 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 = 106110 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:49:12,435 - [56397] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-07 09:49:12,436 - [56397] - 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 = 106110 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:49:12,470 - [56397] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-07 09:49:12,474 - [56397] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder,BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 146;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:49:12,500 - [56397] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-07 09:49:12,500 - [56397] - 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-06-07 09:49:12,528 - [56397] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-07 09:49:12,528 - [56397] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder, BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 146; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:49:12,554 - [56397] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-07 09:49:12,554 - [56397] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 2 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 146 AND EnitityNumberType = 'WorkOrder'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:49:12,581 - [56397] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-07 09:49:12,582 - [56397] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 2 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 146 AND EnitityNumberType = 'Invoice'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:49:12,609 - [56397] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-07 09:49:12,613 - [56397] - 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 = 106110... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:49:12,643 - [56397] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-07 09:49:12,645 - [56397] - src.utils.log - INFO - πŸ” Fetching data: SELECT x.CompanyId FROM CRM.CompanyMaster x WHERE CompanyKey = 'Fortive';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:49:12,670 - [56397] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-07 09:49:12,670 - [56397] - src.utils.log - INFO - πŸ” Fetching data: SELECT CollectionStatus,IsHold,AccountNo FROM CRM.Account a WHERE a.AccountNo = '2323' and a.CompanyId = 134;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:49:12,696 - [56397] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-07 09:49:12,699 - [56397] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderNo FROM ServiceCore.WorkOrder WHERE WorkOrderNo IN ('56400', '56401') AND CompanyId = 146 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:49:12,727 - [56397] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-07 09:49:12,727 - [56397] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrder (skip triggers): 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:49:12,806 - [56397] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrder (triggers skipped) - __SPLIT__ 2026-06-07 09:49:12,945 - [56397] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrder in 1 batches (triggers skipped) - __SPLIT__ 2026-06-07 09:49:12,957 - [56397] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-06-07 09:49:12,958 - [56397] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.ServiceSetup SET IsInitialWoGenerated = 1 WHERE CompanyId = 146 AND ServiceSetupId = 106110;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:49:12,985 - [56397] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-07 09:49:12,987 - [56397] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkorderId, WorkOrderNo FROM ServiceCore.WorkOrder wo WHERE wo.WorkOrderNo IN ('56400', '56401') AND wo.AccountNumber = '2323' AND wo.CompanyId = 146 ... (Thread: ThreadPoolExecutor-0_0) - __SPLIT__ 2026-06-07 09:49:13,017 - [56397] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-07 09:49:13,018 - [56397] - src.utils.log - INFO - Sequential fetching temp table records - __SPLIT__ 2026-06-07 09:49:13,019 - [56397] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationServices woag WHERE woag.WorkOrderAutoGenerationId in (577702, 577703)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:49:13,060 - [56397] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-07 09:49:13,060 - [56397] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SubWorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (577702, 577703)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:49:13,106 - [56397] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-07 09:49:13,106 - [56397] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationCrews woag WHERE woag.WorkOrderAutoGenerationId in (577702, 577703)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:49:13,142 - [56397] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-07 09:49:13,142 - [56397] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationSalesPersonCommission woag WHERE woag.WorkOrderAutoGenerationId in (577702, 577703)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:49:13,169 - [56397] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-07 09:49:13,169 - [56397] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupAutoGenerationSourceMapping woag WHERE woag.WorkOrderAutoGenerationId in (577702, 577703)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:49:13,197 - [56397] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-07 09:49:13,197 - [56397] - 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 (577702, 577703)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:49:13,233 - [56397] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-07 09:49:13,233 - [56397] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from CRM.LeadNote woag WHERE woag.RefId in (577702, 577703) and woag.RefType = 'TempWorkorder';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:49:13,260 - [56397] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-07 09:49:13,260 - [56397] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment woagca WHERE woagca.WorkOrderAutoGenerationId in (577702, 577703);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:49:13,285 - [56397] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-07 09:49:13,288 - [56397] - src.utils.log - INFO - Updating temp tables - __SPLIT__ 2026-06-07 09:49:13,299 - [56397] - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyKey FROM Common.CompanyMaster cm WHERE CompanyId = 146;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:49:13,325 - [56397] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-07 09:49:13,325 - [56397] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 146 AND EnitityNumberType in ('SubWorkOrder'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:49:13,351 - [56397] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-07 09:49:13,355 - [56397] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-07 09:49:13,355 - [56397] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishHistory: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:49:13,415 - [56397] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationPublishHistory - __SPLIT__ 2026-06-07 09:49:13,526 - [56397] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishHistory in 1 batches - __SPLIT__ 2026-06-07 09:49:13,527 - [56397] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationPublishHistoryId, WorkOrderNo, ServiceSetupId FROM ServiceCore.WorkOrderAutoGenerationPublishHistory WHERE ServiceSetupId = 106110 AND WorkOrderNo IN ('200529', '3841453') AND GenerateWorkOrderHistoryId = 56397;... (Thread: ThreadPoolExecutor-1_0) - __SPLIT__ 2026-06-07 09:49:13,595 - [56397] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-07 09:49:13,597 - [56397] - src.utils.log - INFO - 🏁 Final merged rows: 2 - __SPLIT__ 2026-06-07 09:49:13,601 - [56397] - src.utils.log - INFO - Sequential Insertion in work order tables begin - __SPLIT__ 2026-06-07 09:49:13,601 - [56397] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-07 09:49:13,602 - [56397] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderServices: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:49:13,648 - [56397] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderServices - __SPLIT__ 2026-06-07 09:49:13,750 - [56397] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderServices in 1 batches - __SPLIT__ 2026-06-07 09:49:13,751 - [56397] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderAppliedDiscount: - __SPLIT__ 2026-06-07 09:49:13,751 - [56397] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderSalesPersonCommission: - __SPLIT__ 2026-06-07 09:49:13,751 - [56397] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderCommissionAdjustment: - __SPLIT__ 2026-06-07 09:49:13,751 - [56397] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-07 09:49:13,751 - [56397] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderCrew: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:49:13,795 - [56397] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderCrew - __SPLIT__ 2026-06-07 09:49:13,888 - [56397] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderCrew in 1 batches - __SPLIT__ 2026-06-07 09:49:13,888 - [56397] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkorderSourceMapping: - __SPLIT__ 2026-06-07 09:49:13,888 - [56397] - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-06-07 09:49:13,888 - [56397] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-07 09:49:13,888 - [56397] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishServices: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:49:13,934 - [56397] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationPublishServices - __SPLIT__ 2026-06-07 09:49:14,037 - [56397] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishServices in 1 batches - __SPLIT__ 2026-06-07 09:49:14,038 - [56397] - 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 = 106110... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:49:14,062 - [56397] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-07 09:49:14,068 - [56397] - src.utils.log - INFO - Size of Transaction: 2 - __SPLIT__ 2026-06-07 09:49:14,069 - [56397] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:49:14,126 - [56397] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-06-07 09:49:14,223 - [56397] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-06-07 09:49:14,234 - [56397] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-06-07 09:49:14,235 - [56397] - 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-06-07 05:49:14.064';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:49:14,276 - [56397] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-07 09:49:14,278 - [56397] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 106110;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:49:14,304 - [56397] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-07 09:49:14,312 - [56397] - src.utils.log - INFO - πŸ“ Executing: UPDATE Billing.[Transaction] SET ModifiedBy = NULL WHERE ModifiedBy IN (12345678910,12345678911) AND CreatedDate = '2026-06-07 05:49:14.064'; ... (Thread: ThreadPoolExecutor-2_0) - __SPLIT__ 2026-06-07 09:49:14,378 - [56397] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-07 09:49:14,382 - [56397] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-07 09:49:14,382 - [56397] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:49:14,431 - [56397] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.Invoice - __SPLIT__ 2026-06-07 09:49:14,523 - [56397] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-06-07 09:49:14,524 - [56397] - src.utils.log - INFO - πŸ” Fetching data: SELECT InvoiceId, WorkOrderNo FROM Billing.Invoice i WHERE i.WorkOrderNo in ('56400', '56401')... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:49:14,600 - [56397] - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-06-07 09:49:14,608 - [56397] - 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 = 106110 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:49:14,636 - [56397] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-07 09:49:14,637 - [56397] - 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 = 106110 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:49:14,665 - [56397] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-07 09:49:14,666 - [56397] - 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 = 106110 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:49:14,693 - [56397] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-07 09:49:14,693 - [56397] - 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 = 106110 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:49:14,721 - [56397] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-07 09:49:14,734 - [56397] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 106110;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:49:14,759 - [56397] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-07 09:49:14,764 - [56397] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId, AppliedDiscountAmt as AppliedDiscountAmount,IsActive ,ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 106110;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:49:14,790 - [56397] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-07 09:49:14,793 - [56397] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId,IsActive,DiscountAmount, IsDiscountPercent,DiscountPercent,DiscountDescription , ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 106110;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:49:14,820 - [56397] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-07 09:49:14,820 - [56397] - src.utils.log - INFO - Sequential Insertion in invoice tables begin - __SPLIT__ 2026-06-07 09:49:14,820 - [56397] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.AccountDiscountSetup: - __SPLIT__ 2026-06-07 09:49:14,820 - [56397] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-07 09:49:14,820 - [56397] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceCharges: 4 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:49:14,867 - [56397] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 4) into Billing.InvoiceCharges - __SPLIT__ 2026-06-07 09:49:15,049 - [56397] - src.utils.log - INFO - βœ… All 4 rows inserted successfully into Billing.InvoiceCharges in 1 batches - __SPLIT__ 2026-06-07 09:49:15,049 - [56397] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.DiscountApplied: - __SPLIT__ 2026-06-07 09:49:15,049 - [56397] - src.utils.log - INFO - Invoice Publish Done - __SPLIT__ 2026-06-07 09:49:15,049 - [56397] - src.utils.log - INFO - Updating Next GenerationDate - __SPLIT__ 2026-06-07 09:49:15,049 - [56397] - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, MAX(NextWorkOrderGenerationDate) AS MaxNextWorkOrderGeneration FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 56397 GROUP BY ServiceSetupId; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:49:15,076 - [56397] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-07 09:49:15,083 - [56397] - src.utils.log - INFO - πŸ”„ Updating next gen date sequentially: inside update_next_workorder_generation - __SPLIT__ 2026-06-07 09:49:15,097 - [56397] - src.utils.log - INFO - πŸ›  Creating temp table #tbl_fb3f875949 - __SPLIT__ 2026-06-07 09:49:15,123 - [56397] - src.utils.log - INFO - πŸ“Œ Bulk inserting 1 rows into #tbl_fb3f875949 - __SPLIT__ 2026-06-07 09:49:15,148 - [56397] - src.utils.log - INFO - πŸ” Running MERGE update to apply changes - __SPLIT__ 2026-06-07 09:49:15,165 - [56397] - src.utils.log - INFO - βœ” SQL reported affected rows: 1 - __SPLIT__ 2026-06-07 09:49:15,181 - [56397] - src.utils.log - INFO - πŸ” Verified successfully updated 1 rows via #tbl_fb3f875949 - __SPLIT__ 2026-06-07 09:49:15,182 - [56397] - src.utils.log - INFO - πŸŽ‰ Successfully updated NextGenerationDate using temp table #tbl_fb3f875949 - __SPLIT__ 2026-06-07 09:49:15,182 - [56397] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 56397 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:49:15,206 - [56397] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-07 09:49:15,207 - [56397] - src.utils.log - INFO - Sequential deletion from temp tables begin - __SPLIT__ 2026-06-07 09:49:15,207 - [56397] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId in (577702, 577703) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:49:15,284 - [56397] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-07 09:49:15,284 - [56397] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId in (577702, 577703) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:49:15,349 - [56397] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-07 09:49:15,349 - [56397] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId in (577702, 577703) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:49:15,378 - [56397] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-07 09:49:15,378 - [56397] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId in (577702, 577703) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:49:15,420 - [56397] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-07 09:49:15,420 - [56397] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId in (577702, 577703) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:49:15,452 - [56397] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-07 09:49:15,452 - [56397] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (577702, 577703) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:49:15,511 - [56397] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-07 09:49:15,511 - [56397] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId in (577702, 577703) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:49:15,537 - [56397] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-07 09:49:15,537 - [56397] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (577702, 577703) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:49:15,650 - [56397] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-07 09:49:15,651 - [56397] - src.utils.log - INFO - Work order published ids: (577702, 577703) - __SPLIT__ 2026-06-07 09:49:15,651 - [56397] - src.utils.log - INFO - Time took to perform operation in publishing [56397]: 3.51 - __SPLIT__ 2026-06-07 09:49:15,651 - [56397] - src.utils.log - INFO - Publish Completed for GenerateWorkOrderHistoryId: [56397] - __SPLIT__ 2026-06-07 09:49:15,651 - [56397] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-06-07 05:49:15.651' WHERE CompanyId = 146 AND GenerateWorkOrderHistoryId = 56397;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:49:15,678 - [56397] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-07 09:49:24,248 - [56390] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[577676] user_id=44502 company_id=145 project_id=[56390] publish_all=False - __SPLIT__ 2026-06-07 09:49:24,249 - [56390] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[577676] user_id=44502 company_id=145 project_id=[56390] publish_all=False - __SPLIT__ 2026-06-07 09:49:24,249 - [56390] - src.utils.log - INFO - Sequential Work order publish in progress for GenerateWorkOrderHistoryId: [56390] - __SPLIT__ 2026-06-07 09:49:24,264 - [56390] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-06-07 09:49:24,264 - [56390] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Samsung'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:49:24,529 - [56390] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-07 09:49:24,529 - [56390] - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-06-07 09:49:24,530 - [56390] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'InProgress' WHERE CompanyId = 145 AND GenerateWorkOrderHistoryId = 56390;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:49:24,558 - [56390] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-07 09:49:24,558 - [56390] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId = 577676... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:49:24,592 - [56390] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-07 09:49:24,593 - [56390] - src.utils.log - INFO - Inside get_work_order_table - __SPLIT__ 2026-06-07 09:49:24,593 - [56390] - 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 = 106097 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:49:24,630 - [56390] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-07 09:49:24,630 - [56390] - 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 = 106097 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:49:24,665 - [56390] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-07 09:49:24,665 - [56390] - 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 = 106097 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:49:24,704 - [56390] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-07 09:49:24,707 - [56390] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder,BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 145;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:49:24,738 - [56390] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-07 09:49:24,738 - [56390] - 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-06-07 09:49:24,768 - [56390] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-07 09:49:24,768 - [56390] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder, BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 145; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:49:24,799 - [56390] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-07 09:49:24,799 - [56390] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig SET NextNumber = NextNumber + 1 OUTPUT INSERTED.NextNumber - 1 AS StartNumber WHERE CompanyId = 145 AND EnitityNumberType IN ('WorkOrder','Invoice'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:49:24,831 - [56390] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-07 09:49:24,834 - [56390] - 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 = 106097... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:49:24,867 - [56390] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-07 09:49:24,869 - [56390] - src.utils.log - INFO - πŸ” Fetching data: SELECT x.CompanyId FROM CRM.CompanyMaster x WHERE CompanyKey = 'Samsung';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:49:24,896 - [56390] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-07 09:49:24,897 - [56390] - src.utils.log - INFO - πŸ” Fetching data: SELECT CollectionStatus,IsHold,AccountNo FROM CRM.Account a WHERE a.AccountNo = '3825' and a.CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:49:24,925 - [56390] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-07 09:49:24,927 - [56390] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderNo FROM ServiceCore.WorkOrder WHERE WorkOrderNo = '225642' AND CompanyId = 145 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:49:24,958 - [56390] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-07 09:49:24,958 - [56390] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrder (skip triggers): 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:49:25,030 - [56390] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrder (triggers skipped) - __SPLIT__ 2026-06-07 09:49:25,166 - [56390] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrder in 1 batches (triggers skipped) - __SPLIT__ 2026-06-07 09:49:25,180 - [56390] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-06-07 09:49:25,182 - [56390] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkorderId, WorkOrderNo FROM ServiceCore.WorkOrder wo WHERE wo.WorkOrderNo = '225642' AND wo.AccountNumber = '3825' AND wo.CompanyId = 145 ... (Thread: ThreadPoolExecutor-0_0) - __SPLIT__ 2026-06-07 09:49:25,213 - [56390] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-07 09:49:25,214 - [56390] - src.utils.log - INFO - Sequential fetching temp table records - __SPLIT__ 2026-06-07 09:49:25,214 - [56390] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationServices woag WHERE woag.WorkOrderAutoGenerationId = 577676... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:49:25,259 - [56390] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-07 09:49:25,259 - [56390] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SubWorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId = 577676... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:49:25,312 - [56390] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-07 09:49:25,313 - [56390] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationCrews woag WHERE woag.WorkOrderAutoGenerationId = 577676... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:49:25,350 - [56390] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-07 09:49:25,350 - [56390] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationSalesPersonCommission woag WHERE woag.WorkOrderAutoGenerationId = 577676... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:49:25,381 - [56390] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-07 09:49:25,381 - [56390] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupAutoGenerationSourceMapping woag WHERE woag.WorkOrderAutoGenerationId = 577676... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:49:25,411 - [56390] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-07 09:49:25,411 - [56390] - 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 = 577676... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:49:25,446 - [56390] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-07 09:49:25,447 - [56390] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from CRM.LeadNote woag WHERE woag.RefId = 577676 and woag.RefType = 'TempWorkorder';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:49:25,477 - [56390] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-07 09:49:25,477 - [56390] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment woagca WHERE woagca.WorkOrderAutoGenerationId = 577676;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:49:25,508 - [56390] - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-06-07 09:49:25,511 - [56390] - src.utils.log - INFO - Updating temp tables - __SPLIT__ 2026-06-07 09:49:25,526 - [56390] - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyKey FROM Common.CompanyMaster cm WHERE CompanyId = 145;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:49:25,554 - [56390] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-07 09:49:25,556 - [56390] - src.utils.log - INFO - πŸ” Fetching data: Select DiscountSetupId, [SysName] as DiscountSysName from Common.DiscountSetupMaster WHERE DiscountSetupId IN (885, 1084) AND CompanyId = 145;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:49:25,586 - [56390] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-07 09:49:25,595 - [56390] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 145 AND EnitityNumberType in ('SubWorkOrder'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:49:25,624 - [56390] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-07 09:49:25,625 - [56390] - src.utils.log - INFO - πŸ“ Executing: UPDATE Common.GenerateNumberConfig SET NextNumber = '38174' WHERE CompanyId = 145 AND EnitityNumberType in ('SubWorkOrder');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:49:25,656 - [56390] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-07 09:49:25,659 - [56390] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-07 09:49:25,659 - [56390] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishHistory: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:49:25,707 - [56390] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderAutoGenerationPublishHistory - __SPLIT__ 2026-06-07 09:49:25,836 - [56390] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishHistory in 1 batches - __SPLIT__ 2026-06-07 09:49:25,837 - [56390] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationPublishHistoryId, WorkOrderNo, ServiceSetupId FROM ServiceCore.WorkOrderAutoGenerationPublishHistory WHERE ServiceSetupId = 106097 AND WorkOrderNo = '4714805' AND GenerateWorkOrderHistoryId = 56390; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:49:25,896 - [56390] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-07 09:49:25,902 - [56390] - src.utils.log - INFO - Sequential Insertion in work order tables begin - __SPLIT__ 2026-06-07 09:49:25,902 - [56390] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-07 09:49:25,902 - [56390] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderServices: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:49:25,938 - [56390] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderServices - __SPLIT__ 2026-06-07 09:49:26,048 - [56390] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderServices in 1 batches - __SPLIT__ 2026-06-07 09:49:26,049 - [56390] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-07 09:49:26,049 - [56390] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.WorkOrderAppliedDiscount: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:49:26,098 - [56390] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceAuto.WorkOrderAppliedDiscount - __SPLIT__ 2026-06-07 09:49:26,214 - [56390] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceAuto.WorkOrderAppliedDiscount in 1 batches - __SPLIT__ 2026-06-07 09:49:26,215 - [56390] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderSalesPersonCommission: - __SPLIT__ 2026-06-07 09:49:26,215 - [56390] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-07 09:49:26,215 - [56390] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.WorkOrderCommissionAdjustment: 4 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:49:26,263 - [56390] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 4) into ServiceAuto.WorkOrderCommissionAdjustment - __SPLIT__ 2026-06-07 09:49:26,361 - [56390] - src.utils.log - INFO - βœ… All 4 rows inserted successfully into ServiceAuto.WorkOrderCommissionAdjustment in 1 batches - __SPLIT__ 2026-06-07 09:49:26,361 - [56390] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderCrew: - __SPLIT__ 2026-06-07 09:49:26,362 - [56390] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkorderSourceMapping: - __SPLIT__ 2026-06-07 09:49:26,362 - [56390] - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-06-07 09:49:26,362 - [56390] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-07 09:49:26,362 - [56390] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishServices: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:49:26,397 - [56390] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderAutoGenerationPublishServices - __SPLIT__ 2026-06-07 09:49:26,507 - [56390] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishServices in 1 batches - __SPLIT__ 2026-06-07 09:49:26,508 - [56390] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-07 09:49:26,508 - [56390] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.SubWorkOrder: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:49:26,564 - [56390] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.SubWorkOrder - __SPLIT__ 2026-06-07 09:49:26,706 - [56390] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.SubWorkOrder in 1 batches - __SPLIT__ 2026-06-07 09:49:26,706 - [56390] - src.utils.log - INFO - πŸ” Fetching data: Select * From ServiceCore.SubWorkOrder where WorkOrderId = 1309274... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:49:26,747 - [56390] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-07 09:49:26,753 - [56390] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-07 09:49:26,753 - [56390] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.subWorkOrderIssue: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:49:26,800 - [56390] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceAuto.subWorkOrderIssue - __SPLIT__ 2026-06-07 09:49:26,912 - [56390] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceAuto.subWorkOrderIssue in 1 batches - __SPLIT__ 2026-06-07 09:49:26,913 - [56390] - src.utils.log - INFO - πŸ” Fetching data: Select SubWorkOrderIssueId, SubWorkOrderId, ModifiedBy From ServiceAuto.subWorkOrderIssue where SubWorkOrderId = 247724 and ModifiedBy in ('999999999', '1000000000') ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:49:26,944 - [56390] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-07 09:49:26,945 - [56390] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceAuto.subWorkOrderIssue SET ModifiedBy = 'Samsung' WHERE ModifiedBy IN ('999999999', '1000000000'); ... (Thread: ThreadPoolExecutor-1_0) - __SPLIT__ 2026-06-07 09:49:27,004 - [56390] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-07 09:49:27,011 - [56390] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-07 09:49:27,012 - [56390] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.subWOIssueRepair: 4 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:49:27,063 - [56390] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 4) into ServiceAuto.subWOIssueRepair - __SPLIT__ 2026-06-07 09:49:27,179 - [56390] - src.utils.log - INFO - βœ… All 4 rows inserted successfully into ServiceAuto.subWOIssueRepair in 1 batches - __SPLIT__ 2026-06-07 09:49:27,179 - [56390] - src.utils.log - INFO - πŸ” Fetching data: Select IssueRepairId, ModifiedBy From ServiceAuto.subWOIssueRepair where SubWorkOrderIssueId in (215274, 215275)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:49:27,210 - [56390] - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-06-07 09:49:27,211 - [56390] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceAuto.subWOIssueRepair SET ModifiedBy = 'Samsung' WHERE ModifiedBy IN ('0___TMP___215274', '1___TMP___215274', '0___TMP___215275', '1___TMP___215275') AND CreatedDate = '2026-06-07 05:49:26.751'; ... (Thread: ThreadPoolExecutor-2_0) - __SPLIT__ 2026-06-07 09:49:27,258 - [56390] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-07 09:49:27,264 - [56390] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-07 09:49:27,264 - [56390] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.SubWOIssueRepairLabor: 8 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:49:27,311 - [56390] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 8) into ServiceAuto.SubWOIssueRepairLabor - __SPLIT__ 2026-06-07 09:49:27,424 - [56390] - src.utils.log - INFO - βœ… All 8 rows inserted successfully into ServiceAuto.SubWOIssueRepairLabor in 1 batches - __SPLIT__ 2026-06-07 09:49:27,430 - [56390] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-07 09:49:27,430 - [56390] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.SubWOIssueRepairPart: 7 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:49:27,485 - [56390] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 7) into ServiceAuto.SubWOIssueRepairPart - __SPLIT__ 2026-06-07 09:49:27,606 - [56390] - src.utils.log - INFO - βœ… All 7 rows inserted successfully into ServiceAuto.SubWOIssueRepairPart in 1 batches - __SPLIT__ 2026-06-07 09:49:27,606 - [56390] - 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 = 106097... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:49:27,637 - [56390] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-07 09:49:27,643 - [56390] - src.utils.log - INFO - Size of Transaction: 1 - __SPLIT__ 2026-06-07 09:49:27,643 - [56390] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:49:27,691 - [56390] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-06-07 09:49:27,798 - [56390] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-06-07 09:49:27,812 - [56390] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-06-07 09:49:27,812 - [56390] - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionId, ModifiedBy, TransactionDate as InvoiceDate from Billing.[Transaction] t WHERE t.ModifiedBy = 12345678910 and t.CompanyId = 145 AND t.TransactionType ='Invoice' AND t.CreatedDate = '2026-06-07 05:49:27.638';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:49:27,872 - [56390] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-07 09:49:27,875 - [56390] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 106097;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:49:27,906 - [56390] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-07 09:49:27,913 - [56390] - src.utils.log - INFO - πŸ“ Executing: UPDATE Billing.[Transaction] SET ModifiedBy = NULL WHERE ModifiedBy = 12345678910 AND CreatedDate = '2026-06-07 05:49:27.638'; ... (Thread: ThreadPoolExecutor-3_0) - __SPLIT__ 2026-06-07 09:49:27,982 - [56390] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-07 09:49:27,987 - [56390] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-07 09:49:27,987 - [56390] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:49:28,024 - [56390] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into Billing.Invoice - __SPLIT__ 2026-06-07 09:49:28,139 - [56390] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-06-07 09:49:28,139 - [56390] - src.utils.log - INFO - πŸ” Fetching data: SELECT InvoiceId, WorkOrderNo FROM Billing.Invoice i WHERE i.WorkOrderNo = '225642'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:49:28,212 - [56390] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-07 09:49:28,220 - [56390] - 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 = 106097 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:49:28,253 - [56390] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-07 09:49:28,253 - [56390] - 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 = 106097 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:49:28,284 - [56390] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-07 09:49:28,284 - [56390] - 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 = 106097 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:49:28,315 - [56390] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-07 09:49:28,315 - [56390] - 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 = 106097 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:49:28,346 - [56390] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-07 09:49:28,358 - [56390] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 106097;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:49:28,389 - [56390] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-07 09:49:28,393 - [56390] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId, AppliedDiscountAmt as AppliedDiscountAmount,IsActive ,ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 106097;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:49:28,423 - [56390] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-07 09:49:28,431 - [56390] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId,IsActive,DiscountAmount, IsDiscountPercent,DiscountPercent,DiscountDescription , ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 106097;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:49:28,461 - [56390] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-07 09:49:28,469 - [56390] - src.utils.log - INFO - Sequential Insertion in invoice tables begin - __SPLIT__ 2026-06-07 09:49:28,469 - [56390] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-07 09:49:28,469 - [56390] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.AccountDiscountSetup: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:49:28,516 - [56390] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.AccountDiscountSetup - __SPLIT__ 2026-06-07 09:49:28,625 - [56390] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.AccountDiscountSetup in 1 batches - __SPLIT__ 2026-06-07 09:49:28,625 - [56390] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-07 09:49:28,625 - [56390] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceCharges: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:49:28,662 - [56390] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into Billing.InvoiceCharges - __SPLIT__ 2026-06-07 09:49:28,771 - [56390] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into Billing.InvoiceCharges in 1 batches - __SPLIT__ 2026-06-07 09:49:28,771 - [56390] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-07 09:49:28,771 - [56390] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.DiscountApplied: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:49:28,819 - [56390] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.DiscountApplied - __SPLIT__ 2026-06-07 09:49:28,927 - [56390] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.DiscountApplied in 1 batches - __SPLIT__ 2026-06-07 09:49:28,928 - [56390] - src.utils.log - INFO - Invoice Publish Done - __SPLIT__ 2026-06-07 09:49:28,928 - [56390] - src.utils.log - INFO - Updating Next GenerationDate - __SPLIT__ 2026-06-07 09:49:28,928 - [56390] - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, MAX(NextWorkOrderGenerationDate) AS MaxNextWorkOrderGeneration FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 56390 GROUP BY ServiceSetupId; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:49:28,958 - [56390] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-07 09:49:28,964 - [56390] - src.utils.log - INFO - πŸ”„ Updating next gen date sequentially: inside update_next_workorder_generation - __SPLIT__ 2026-06-07 09:49:28,979 - [56390] - src.utils.log - INFO - πŸ›  Creating temp table #tbl_9addeba29d - __SPLIT__ 2026-06-07 09:49:29,010 - [56390] - src.utils.log - INFO - πŸ“Œ Bulk inserting 1 rows into #tbl_9addeba29d - __SPLIT__ 2026-06-07 09:49:29,038 - [56390] - src.utils.log - INFO - πŸ” Running MERGE update to apply changes - __SPLIT__ 2026-06-07 09:49:29,058 - [56390] - src.utils.log - INFO - βœ” SQL reported affected rows: 1 - __SPLIT__ 2026-06-07 09:49:29,076 - [56390] - src.utils.log - INFO - πŸ” Verified successfully updated 1 rows via #tbl_9addeba29d - __SPLIT__ 2026-06-07 09:49:29,076 - [56390] - src.utils.log - INFO - πŸŽ‰ Successfully updated NextGenerationDate using temp table #tbl_9addeba29d - __SPLIT__ 2026-06-07 09:49:29,076 - [56390] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 56390 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:49:29,104 - [56390] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-07 09:49:29,104 - [56390] - src.utils.log - INFO - Sequential deletion from temp tables begin - __SPLIT__ 2026-06-07 09:49:29,104 - [56390] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId = 577676 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:49:29,183 - [56390] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-07 09:49:29,183 - [56390] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId = 577676 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:49:29,248 - [56390] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-07 09:49:29,248 - [56390] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId = 577676 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:49:29,280 - [56390] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-07 09:49:29,280 - [56390] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId = 577676 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:49:29,325 - [56390] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-07 09:49:29,326 - [56390] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId = 577676 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:49:29,360 - [56390] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-07 09:49:29,361 - [56390] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 577676 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:49:29,428 - [56390] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-07 09:49:29,428 - [56390] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId = 577676 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:49:29,460 - [56390] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-07 09:49:29,460 - [56390] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 577676 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:49:29,537 - [56390] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-07 09:49:29,537 - [56390] - src.utils.log - INFO - Work order published ids: (577676,) - __SPLIT__ 2026-06-07 09:49:29,537 - [56390] - src.utils.log - INFO - Time took to perform operation in publishing [56390]: 5.29 - __SPLIT__ 2026-06-07 09:49:29,538 - [56390] - src.utils.log - INFO - Publish Completed for GenerateWorkOrderHistoryId: [56390] - __SPLIT__ 2026-06-07 09:49:29,538 - [56390] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-06-07 05:49:29.537' WHERE CompanyId = 145 AND GenerateWorkOrderHistoryId = 56390;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 09:49:29,566 - [56390] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-07 11:17:31,465 - 56408 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=56408 - __SPLIT__ 2026-06-07 11:17:31,466 - 56408 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 56408 - __SPLIT__ 2026-06-07 11:17:31,466 - 56408 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-06-07 11:17:31,466 - 56408 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Samsung'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:17:31,650 - 56408 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-07 11:17:31,650 - 56408 - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-06-07 11:17:31,650 - 56408 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 56408;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:17:31,678 - 56408 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-07 11:17:31,678 - 56408 - 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 = 56408), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 56408), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 56408 AND ss.FrequencyScheduleId IS NOT NULL AND ss.IsActive = 1 AND ss.IsDeleted = 0 AND ss.Status <> 'Canceled' AND ((ss.OrderType = gw.OrderType) OR gw.OrderType IS NULL);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:17:31,729 - 56408 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-07 11:17:31,729 - 56408 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 56408;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:17:31,756 - 56408 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-07 11:17:31,759 - 56408 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-06-07 11:17:31,759 - 56408 - 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 = 14827... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:17:31,794 - 56408 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-07 11:17:31,794 - 56408 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-06-07 11:17:31,797 - 56408 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-06-07 11:17:31,797 - 56408 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 106124;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:17:31,823 - 56408 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-07 11:17:31,823 - 56408 - src.utils.log - INFO - πŸ” Fetching data: select ServiceDate, ServiceSetupId, IsInitial from serviceCore.WorkOrder wo inner join ServiceCore.WorkOrderStatus wos on wo.WoStatusId = wos.WoStatusId where ServiceDate >= '2026-06-07 00:00:00' and ServiceDate <= '2026-07-31 00:00:00' and ServiceSetupId = 106124 and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:17:31,854 - 56408 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-07 11:17:31,924 - 56408 - src.utils.log - INFO - Generating work orders for setup: 106124 - __SPLIT__ 2026-06-07 11:17:31,939 - 56408 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 11436;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:17:31,964 - 56408 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-07 11:17:31,997 - 56408 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-06-07 11:17:32,001 - 56408 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=145 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:17:32,027 - 56408 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-07 11:17:32,029 - 56408 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-06-07 11:17:32,029 - 56408 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-06-07 11:17:32,029 - 56408 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 106124 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:17:32,243 - 56408 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-07 11:17:32,243 - 56408 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 106124 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:17:32,324 - 56408 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-07 11:17:32,324 - 56408 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 106124 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:17:32,420 - 56408 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-07 11:17:32,420 - 56408 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 106124 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:17:32,483 - 56408 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-07 11:17:32,483 - 56408 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 106124 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:17:32,542 - 56408 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-07 11:17:32,542 - 56408 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 106124 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:17:32,622 - 56408 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-07 11:17:32,622 - 56408 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 106124 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:17:32,652 - 56408 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-07 11:17:32,652 - 56408 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 106124 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:17:33,323 - 56408 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-07 11:17:33,323 - 56408 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-07 11:17:33,323 - 56408 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:17:33,449 - 56408 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-06-07 11:17:33,594 - 56408 - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-06-07 11:17:33,594 - 56408 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 2 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-06-07 11:12:39.587' and ServiceSetupId = 106124... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:17:33,650 - 56408 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-07 11:17:33,651 - 56408 - src.utils.log - INFO - Id's of work order inserted to DB: [577741 577742] - __SPLIT__ 2026-06-07 11:17:33,651 - 56408 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 106124;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:17:33,677 - 56408 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-07 11:17:33,677 - 56408 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-06-07 11:17:33,677 - 56408 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId = 106124... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:17:33,704 - 56408 - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-06-07 11:17:33,704 - 56408 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId = 106124... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:17:33,732 - 56408 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-07 11:17:33,738 - 56408 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId = 106124... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:17:33,768 - 56408 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-07 11:17:33,768 - 56408 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId = 106124... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:17:33,794 - 56408 - src.utils.log - INFO - βœ… Fetched 9 rows - __SPLIT__ 2026-06-07 11:17:33,795 - 56408 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId = 106124... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:17:33,820 - 56408 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-07 11:17:33,820 - 56408 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId = 106124;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:17:33,847 - 56408 - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-06-07 11:17:33,848 - 56408 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId = 106124;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:17:33,872 - 56408 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-07 11:17:33,873 - 56408 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId = 106124;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:17:33,916 - 56408 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-07 11:17:33,916 - 56408 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId = 106124;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:17:33,942 - 56408 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-07 11:17:33,964 - 56408 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-06-07 11:17:33,964 - 56408 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-06-07 11:17:33,964 - 56408 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-06-07 11:17:33,964 - 56408 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.CommunicationPreferencesServiceReportNotification: - __SPLIT__ 2026-06-07 11:17:33,964 - 56408 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-06-07 11:17:33,964 - 56408 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-07 11:17:33,964 - 56408 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ('577742', '577741') ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:17:33,990 - 56408 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-07 11:17:33,991 - 56408 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.SetupAutoGenerationSourceMapping: 0 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:17:34,033 - 56408 - src.utils.log - INFO - βœ… All 0 rows inserted successfully into ServiceCore.SetupAutoGenerationSourceMapping in 0 batches - __SPLIT__ 2026-06-07 11:17:34,033 - 56408 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-06-07 11:17:34,034 - 56408 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-07 11:17:34,034 - 56408 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 577742 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:17:34,059 - 56408 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-07 11:17:34,059 - 56408 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationAppliedDiscount: 3 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:17:34,107 - 56408 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into ServiceCore.WorkOrderAutoGenerationAppliedDiscount - __SPLIT__ 2026-06-07 11:17:34,207 - 56408 - src.utils.log - INFO - βœ… All 3 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationAppliedDiscount in 1 batches - __SPLIT__ 2026-06-07 11:17:34,207 - 56408 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-06-07 11:17:34,207 - 56408 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SubWorkOrderAutoGeneration: - __SPLIT__ 2026-06-07 11:17:34,207 - 56408 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-06-07 11:17:34,207 - 56408 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: - __SPLIT__ 2026-06-07 11:17:34,207 - 56408 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-06-07 11:17:34,207 - 56408 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-07 11:17:34,208 - 56408 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (577741, 577742) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:17:34,233 - 56408 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-07 11:17:34,234 - 56408 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: 9 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:17:34,279 - 56408 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 9) into ServiceCore.WorkOrderAutoGenerationSalesPersonCommission - __SPLIT__ 2026-06-07 11:17:34,382 - 56408 - src.utils.log - INFO - βœ… All 9 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationSalesPersonCommission in 1 batches - __SPLIT__ 2026-06-07 11:17:34,383 - 56408 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-06-07 11:17:34,383 - 56408 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-07 11:17:34,383 - 56408 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (577741, 577742) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:17:34,407 - 56408 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-07 11:17:34,408 - 56408 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationCrews: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:17:34,452 - 56408 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationCrews - __SPLIT__ 2026-06-07 11:17:34,547 - 56408 - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationCrews in 1 batches - __SPLIT__ 2026-06-07 11:17:34,547 - 56408 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-06-07 11:17:34,547 - 56408 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-07 11:17:34,547 - 56408 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 577741 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:17:34,572 - 56408 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-07 11:17:34,573 - 56408 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:17:34,604 - 56408 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-06-07 11:17:34,705 - 56408 - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-06-07 11:17:34,705 - 56408 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-06-07 11:17:34,705 - 56408 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-07 11:17:34,705 - 56408 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 577742 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:17:34,729 - 56408 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-07 11:17:34,730 - 56408 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 3 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:17:34,762 - 56408 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-06-07 11:17:34,856 - 56408 - src.utils.log - INFO - βœ… All 3 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-06-07 11:17:34,856 - 56408 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-06-07 11:17:34,856 - 56408 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 56408;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:17:34,880 - 56408 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-07 11:17:34,880 - 56408 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-06-07 11:17:34,880 - 56408 - src.utils.log - INFO - Time took to perform operation: 3.41 - __SPLIT__ 2026-06-07 11:17:48,506 - [56408] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[577741, 577742] user_id=44502 company_id=145 project_id=[56408] publish_all=False - __SPLIT__ 2026-06-07 11:17:48,507 - [56408] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[577741, 577742] user_id=44502 company_id=145 project_id=[56408] publish_all=False - __SPLIT__ 2026-06-07 11:17:48,507 - [56408] - src.utils.log - INFO - Sequential Work order publish in progress for GenerateWorkOrderHistoryId: [56408] - __SPLIT__ 2026-06-07 11:17:48,507 - [56408] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-06-07 11:17:48,507 - [56408] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Samsung'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:17:48,686 - [56408] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-07 11:17:48,686 - [56408] - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-06-07 11:17:48,686 - [56408] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'InProgress' WHERE CompanyId = 145 AND GenerateWorkOrderHistoryId = 56408;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:17:48,714 - [56408] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-07 11:17:48,714 - [56408] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (577741, 577742)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:17:48,744 - [56408] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-07 11:17:48,744 - [56408] - src.utils.log - INFO - Inside get_work_order_table - __SPLIT__ 2026-06-07 11:17:48,745 - [56408] - 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 = 106124 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:17:48,778 - [56408] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-07 11:17:48,779 - [56408] - 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 = 106124 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:17:48,811 - [56408] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-07 11:17:48,811 - [56408] - 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 = 106124 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:17:48,845 - [56408] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-07 11:17:48,849 - [56408] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder,BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 145;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:17:48,877 - [56408] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-07 11:17:48,877 - [56408] - 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-06-07 11:17:48,903 - [56408] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-07 11:17:48,904 - [56408] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder, BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 145; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:17:48,932 - [56408] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-07 11:17:48,932 - [56408] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig SET NextNumber = NextNumber + 2 OUTPUT INSERTED.NextNumber - 2 AS StartNumber WHERE CompanyId = 145 AND EnitityNumberType IN ('WorkOrder','Invoice'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:17:48,960 - [56408] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-07 11:17:48,962 - [56408] - 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 = 106124... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:17:48,991 - [56408] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-07 11:17:48,994 - [56408] - src.utils.log - INFO - πŸ” Fetching data: SELECT x.CompanyId FROM CRM.CompanyMaster x WHERE CompanyKey = 'Samsung';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:17:49,019 - [56408] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-07 11:17:49,020 - [56408] - src.utils.log - INFO - πŸ” Fetching data: SELECT CollectionStatus,IsHold,AccountNo FROM CRM.Account a WHERE a.AccountNo = '3825' and a.CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:17:49,047 - [56408] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-07 11:17:49,048 - [56408] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderNo FROM ServiceCore.WorkOrder WHERE WorkOrderNo IN ('225655', '225656') AND CompanyId = 145 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:17:49,079 - [56408] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-07 11:17:49,080 - [56408] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrder (skip triggers): 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:17:49,174 - [56408] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrder (triggers skipped) - __SPLIT__ 2026-06-07 11:17:49,319 - [56408] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrder in 1 batches (triggers skipped) - __SPLIT__ 2026-06-07 11:17:49,331 - [56408] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-06-07 11:17:49,332 - [56408] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.ServiceSetup SET IsInitialWoGenerated = 1 WHERE CompanyId = 145 AND ServiceSetupId = 106124;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:17:49,363 - [56408] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-07 11:17:49,364 - [56408] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkorderId, WorkOrderNo FROM ServiceCore.WorkOrder wo WHERE wo.WorkOrderNo IN ('225655', '225656') AND wo.AccountNumber = '3825' AND wo.CompanyId = 145 ... (Thread: ThreadPoolExecutor-3_0) - __SPLIT__ 2026-06-07 11:17:49,393 - [56408] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-07 11:17:49,394 - [56408] - src.utils.log - INFO - Sequential fetching temp table records - __SPLIT__ 2026-06-07 11:17:49,394 - [56408] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationServices woag WHERE woag.WorkOrderAutoGenerationId in (577741, 577742)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:17:49,436 - [56408] - src.utils.log - INFO - βœ… Fetched 5 rows - __SPLIT__ 2026-06-07 11:17:49,436 - [56408] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SubWorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (577741, 577742)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:17:49,484 - [56408] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-07 11:17:49,484 - [56408] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationCrews woag WHERE woag.WorkOrderAutoGenerationId in (577741, 577742)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:17:49,521 - [56408] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-07 11:17:49,521 - [56408] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationSalesPersonCommission woag WHERE woag.WorkOrderAutoGenerationId in (577741, 577742)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:17:49,549 - [56408] - src.utils.log - INFO - βœ… Fetched 9 rows - __SPLIT__ 2026-06-07 11:17:49,549 - [56408] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupAutoGenerationSourceMapping woag WHERE woag.WorkOrderAutoGenerationId in (577741, 577742)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:17:49,577 - [56408] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-07 11:17:49,577 - [56408] - 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 (577741, 577742)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:17:49,609 - [56408] - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-06-07 11:17:49,609 - [56408] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from CRM.LeadNote woag WHERE woag.RefId in (577741, 577742) and woag.RefType = 'TempWorkorder';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:17:49,637 - [56408] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-07 11:17:49,637 - [56408] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment woagca WHERE woagca.WorkOrderAutoGenerationId in (577741, 577742);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:17:49,663 - [56408] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-07 11:17:49,665 - [56408] - src.utils.log - INFO - Updating temp tables - __SPLIT__ 2026-06-07 11:17:49,681 - [56408] - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyKey FROM Common.CompanyMaster cm WHERE CompanyId = 145;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:17:49,710 - [56408] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-07 11:17:49,712 - [56408] - src.utils.log - INFO - πŸ” Fetching data: Select DiscountSetupId, [SysName] as DiscountSysName from Common.DiscountSetupMaster WHERE DiscountSetupId IN (1143, 1084, 886) AND CompanyId = 145;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:17:49,744 - [56408] - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-06-07 11:17:49,746 - [56408] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 145 AND EnitityNumberType in ('SubWorkOrder'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:17:49,774 - [56408] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-07 11:17:49,776 - [56408] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-07 11:17:49,776 - [56408] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishHistory: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:17:49,859 - [56408] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationPublishHistory - __SPLIT__ 2026-06-07 11:17:50,070 - [56408] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishHistory in 1 batches - __SPLIT__ 2026-06-07 11:17:50,071 - [56408] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationPublishHistoryId, WorkOrderNo, ServiceSetupId FROM ServiceCore.WorkOrderAutoGenerationPublishHistory WHERE ServiceSetupId = 106124 AND WorkOrderNo IN ('591340', '3601845') AND GenerateWorkOrderHistoryId = 56408;... (Thread: ThreadPoolExecutor-4_0) - __SPLIT__ 2026-06-07 11:17:50,207 - [56408] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-07 11:17:50,208 - [56408] - src.utils.log - INFO - 🏁 Final merged rows: 2 - __SPLIT__ 2026-06-07 11:17:50,213 - [56408] - src.utils.log - INFO - Sequential Insertion in work order tables begin - __SPLIT__ 2026-06-07 11:17:50,213 - [56408] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-07 11:17:50,213 - [56408] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderServices: 5 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:17:50,259 - [56408] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 5) into ServiceCore.WorkOrderServices - __SPLIT__ 2026-06-07 11:17:50,363 - [56408] - src.utils.log - INFO - βœ… All 5 rows inserted successfully into ServiceCore.WorkOrderServices in 1 batches - __SPLIT__ 2026-06-07 11:17:50,363 - [56408] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-07 11:17:50,364 - [56408] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.WorkOrderAppliedDiscount: 3 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:17:50,412 - [56408] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into ServiceAuto.WorkOrderAppliedDiscount - __SPLIT__ 2026-06-07 11:17:50,515 - [56408] - src.utils.log - INFO - βœ… All 3 rows inserted successfully into ServiceAuto.WorkOrderAppliedDiscount in 1 batches - __SPLIT__ 2026-06-07 11:17:50,515 - [56408] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-07 11:17:50,515 - [56408] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderSalesPersonCommission: 9 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:17:50,563 - [56408] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 9) into ServiceCore.WorkOrderSalesPersonCommission - __SPLIT__ 2026-06-07 11:17:50,667 - [56408] - src.utils.log - INFO - βœ… All 9 rows inserted successfully into ServiceCore.WorkOrderSalesPersonCommission in 1 batches - __SPLIT__ 2026-06-07 11:17:50,668 - [56408] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderCommissionAdjustment: - __SPLIT__ 2026-06-07 11:17:50,668 - [56408] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-07 11:17:50,668 - [56408] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderCrew: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:17:50,717 - [56408] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderCrew - __SPLIT__ 2026-06-07 11:17:50,810 - [56408] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderCrew in 1 batches - __SPLIT__ 2026-06-07 11:17:50,811 - [56408] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkorderSourceMapping: - __SPLIT__ 2026-06-07 11:17:50,811 - [56408] - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-06-07 11:17:50,811 - [56408] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-07 11:17:50,811 - [56408] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishServices: 5 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:17:50,862 - [56408] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 5) into ServiceCore.WorkOrderAutoGenerationPublishServices - __SPLIT__ 2026-06-07 11:17:50,967 - [56408] - src.utils.log - INFO - βœ… All 5 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishServices in 1 batches - __SPLIT__ 2026-06-07 11:17:50,967 - [56408] - 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 = 106124... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:17:50,993 - [56408] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-07 11:17:50,999 - [56408] - src.utils.log - INFO - Size of Transaction: 2 - __SPLIT__ 2026-06-07 11:17:51,001 - [56408] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:17:51,060 - [56408] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-06-07 11:17:51,159 - [56408] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-06-07 11:17:51,171 - [56408] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-06-07 11:17:51,172 - [56408] - 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-06-07 07:17:50.994';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:17:51,232 - [56408] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-07 11:17:51,234 - [56408] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 106124;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:17:51,261 - [56408] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-07 11:17:51,269 - [56408] - src.utils.log - INFO - πŸ“ Executing: UPDATE Billing.[Transaction] SET ModifiedBy = NULL WHERE ModifiedBy IN (12345678910,12345678911) AND CreatedDate = '2026-06-07 07:17:50.994'; ... (Thread: ThreadPoolExecutor-5_0) - __SPLIT__ 2026-06-07 11:17:51,340 - [56408] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-07 11:17:51,343 - [56408] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-07 11:17:51,344 - [56408] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:17:51,399 - [56408] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.Invoice - __SPLIT__ 2026-06-07 11:17:51,499 - [56408] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-06-07 11:17:51,499 - [56408] - src.utils.log - INFO - πŸ” Fetching data: SELECT InvoiceId, WorkOrderNo FROM Billing.Invoice i WHERE i.WorkOrderNo in ('225655', '225656')... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:17:51,582 - [56408] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-07 11:17:51,590 - [56408] - 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 = 106124 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:17:51,620 - [56408] - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-06-07 11:17:51,620 - [56408] - 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 = 106124 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:17:51,649 - [56408] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-07 11:17:51,650 - [56408] - 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 = 106124 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:17:51,678 - [56408] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-07 11:17:51,678 - [56408] - 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 = 106124 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:17:51,707 - [56408] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-07 11:17:51,721 - [56408] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 106124;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:17:51,747 - [56408] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-07 11:17:51,751 - [56408] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId, AppliedDiscountAmt as AppliedDiscountAmount,IsActive ,ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 106124;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:17:51,778 - [56408] - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-06-07 11:17:51,787 - [56408] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId,IsActive,DiscountAmount, IsDiscountPercent,DiscountPercent,DiscountDescription , ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 106124;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:17:51,814 - [56408] - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-06-07 11:17:51,820 - [56408] - src.utils.log - INFO - Sequential Insertion in invoice tables begin - __SPLIT__ 2026-06-07 11:17:51,820 - [56408] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-07 11:17:51,820 - [56408] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.AccountDiscountSetup: 3 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:17:51,869 - [56408] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into Billing.AccountDiscountSetup - __SPLIT__ 2026-06-07 11:17:51,970 - [56408] - src.utils.log - INFO - βœ… All 3 rows inserted successfully into Billing.AccountDiscountSetup in 1 batches - __SPLIT__ 2026-06-07 11:17:51,970 - [56408] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-07 11:17:51,971 - [56408] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceCharges: 5 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:17:52,019 - [56408] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 5) into Billing.InvoiceCharges - __SPLIT__ 2026-06-07 11:17:52,122 - [56408] - src.utils.log - INFO - βœ… All 5 rows inserted successfully into Billing.InvoiceCharges in 1 batches - __SPLIT__ 2026-06-07 11:17:52,122 - [56408] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-07 11:17:52,123 - [56408] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.DiscountApplied: 3 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:17:52,167 - [56408] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into Billing.DiscountApplied - __SPLIT__ 2026-06-07 11:17:52,286 - [56408] - src.utils.log - INFO - βœ… All 3 rows inserted successfully into Billing.DiscountApplied in 1 batches - __SPLIT__ 2026-06-07 11:17:52,286 - [56408] - src.utils.log - INFO - Invoice Publish Done - __SPLIT__ 2026-06-07 11:17:52,286 - [56408] - src.utils.log - INFO - Updating Next GenerationDate - __SPLIT__ 2026-06-07 11:17:52,286 - [56408] - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, MAX(NextWorkOrderGenerationDate) AS MaxNextWorkOrderGeneration FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 56408 GROUP BY ServiceSetupId; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:17:52,328 - [56408] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-07 11:17:52,334 - [56408] - src.utils.log - INFO - πŸ”„ Updating next gen date sequentially: inside update_next_workorder_generation - __SPLIT__ 2026-06-07 11:17:52,348 - [56408] - src.utils.log - INFO - πŸ›  Creating temp table #tbl_5c0d76ead2 - __SPLIT__ 2026-06-07 11:17:52,375 - [56408] - src.utils.log - INFO - πŸ“Œ Bulk inserting 1 rows into #tbl_5c0d76ead2 - __SPLIT__ 2026-06-07 11:17:52,401 - [56408] - src.utils.log - INFO - πŸ” Running MERGE update to apply changes - __SPLIT__ 2026-06-07 11:17:52,419 - [56408] - src.utils.log - INFO - βœ” SQL reported affected rows: 1 - __SPLIT__ 2026-06-07 11:17:52,435 - [56408] - src.utils.log - INFO - πŸ” Verified successfully updated 1 rows via #tbl_5c0d76ead2 - __SPLIT__ 2026-06-07 11:17:52,435 - [56408] - src.utils.log - INFO - πŸŽ‰ Successfully updated NextGenerationDate using temp table #tbl_5c0d76ead2 - __SPLIT__ 2026-06-07 11:17:52,436 - [56408] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 56408 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:17:52,460 - [56408] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-07 11:17:52,460 - [56408] - src.utils.log - INFO - Sequential deletion from temp tables begin - __SPLIT__ 2026-06-07 11:17:52,460 - [56408] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId in (577741, 577742) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:17:52,541 - [56408] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-07 11:17:52,542 - [56408] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId in (577741, 577742) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:17:52,608 - [56408] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-07 11:17:52,608 - [56408] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId in (577741, 577742) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:17:52,638 - [56408] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-07 11:17:52,638 - [56408] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId in (577741, 577742) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:17:52,681 - [56408] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-07 11:17:52,682 - [56408] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId in (577741, 577742) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:17:52,715 - [56408] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-07 11:17:52,715 - [56408] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (577741, 577742) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:17:52,775 - [56408] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-07 11:17:52,775 - [56408] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId in (577741, 577742) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:17:52,801 - [56408] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-07 11:17:52,802 - [56408] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (577741, 577742) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:17:52,914 - [56408] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-07 11:17:52,914 - [56408] - src.utils.log - INFO - Work order published ids: (577741, 577742) - __SPLIT__ 2026-06-07 11:17:52,914 - [56408] - src.utils.log - INFO - Time took to perform operation in publishing [56408]: 4.41 - __SPLIT__ 2026-06-07 11:17:52,914 - [56408] - src.utils.log - INFO - Publish Completed for GenerateWorkOrderHistoryId: [56408] - __SPLIT__ 2026-06-07 11:17:52,914 - [56408] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-06-07 07:17:52.914' WHERE CompanyId = 145 AND GenerateWorkOrderHistoryId = 56408;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:17:52,941 - [56408] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-07 11:21:20,305 - 56409 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=56409 - __SPLIT__ 2026-06-07 11:21:20,306 - 56409 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 56409 - __SPLIT__ 2026-06-07 11:21:20,307 - 56409 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-06-07 11:21:20,307 - 56409 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:21:20,522 - 56409 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-07 11:21:20,522 - 56409 - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-06-07 11:21:20,523 - 56409 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 56409;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:21:20,559 - 56409 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-07 11:21:20,559 - 56409 - 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 = 56409), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 56409), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 56409 AND ss.FrequencyScheduleId IS NOT NULL AND ss.IsActive = 1 AND ss.IsDeleted = 0 AND ss.Status <> 'Canceled' AND ((ss.OrderType = gw.OrderType) OR gw.OrderType IS NULL);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:21:20,628 - 56409 - src.utils.log - INFO - βœ… Fetched 5 rows - __SPLIT__ 2026-06-07 11:21:20,628 - 56409 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 56409;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:21:20,657 - 56409 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-07 11:21:20,659 - 56409 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-06-07 11:21:20,660 - 56409 - 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-06-07 11:21:20,702 - 56409 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-07 11:21:20,703 - 56409 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-06-07 11:21:20,705 - 56409 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-06-07 11:21:20,705 - 56409 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId in (106121, 106122, 106123, 106125, 106126);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:21:20,735 - 56409 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-07 11:21:20,736 - 56409 - src.utils.log - INFO - πŸ” Fetching data: select ServiceDate, ServiceSetupId,IsInitial from serviceCore.WorkOrder wo inner join ServiceCore.WorkOrderStatus wos on wo.WoStatusId = wos.WoStatusId where ServiceDate >= '2026-06-07 00:00:00' and ServiceDate <= '2026-07-30 00:00:00' and ServiceSetupId in (106121, 106122, 106123, 106125, 106126) and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:21:20,775 - 56409 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-07 11:21:20,854 - 56409 - src.utils.log - INFO - Generating work orders for setup: 106121 - __SPLIT__ 2026-06-07 11:21:20,868 - 56409 - src.utils.log - INFO - Generating work orders for setup: 106122 - __SPLIT__ 2026-06-07 11:21:20,879 - 56409 - src.utils.log - INFO - Generating work orders for setup: 106123 - __SPLIT__ 2026-06-07 11:21:20,890 - 56409 - src.utils.log - INFO - Generating work orders for setup: 106125 - __SPLIT__ 2026-06-07 11:21:20,901 - 56409 - src.utils.log - INFO - Generating work orders for setup: 106126 - __SPLIT__ 2026-06-07 11:21:20,907 - 56409 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId in (11440.0, 11497.0, 11499.0);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:21:20,934 - 56409 - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-06-07 11:21:20,941 - 56409 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId in (11424, 11523, 11460, 1252, 1254);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:21:20,976 - 56409 - src.utils.log - INFO - βœ… Fetched 5 rows - __SPLIT__ 2026-06-07 11:21:21,009 - 56409 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-06-07 11:21:21,013 - 56409 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=146 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:21:21,039 - 56409 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-07 11:21:21,041 - 56409 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-06-07 11:21:21,041 - 56409 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-06-07 11:21:21,041 - 56409 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (106121, 106122, 106123, 106125, 106126) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:21:21,136 - 56409 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-07 11:21:21,136 - 56409 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (106121, 106122, 106123, 106125, 106126) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:21:21,241 - 56409 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-07 11:21:21,242 - 56409 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (106121, 106122, 106123, 106125, 106126) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:21:21,317 - 56409 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-07 11:21:21,317 - 56409 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (106121, 106122, 106123, 106125, 106126) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:21:21,414 - 56409 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-07 11:21:21,414 - 56409 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (106121, 106122, 106123, 106125, 106126) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:21:21,502 - 56409 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-07 11:21:21,502 - 56409 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (106121, 106122, 106123, 106125, 106126) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:21:21,579 - 56409 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-07 11:21:21,579 - 56409 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (106121, 106122, 106123, 106125, 106126) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:21:21,616 - 56409 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-07 11:21:21,617 - 56409 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (106121, 106122, 106123, 106125, 106126) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:21:21,785 - 56409 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-07 11:21:21,786 - 56409 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-07 11:21:21,786 - 56409 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 9 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:21:21,848 - 56409 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 9) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-06-07 11:21:22,098 - 56409 - src.utils.log - INFO - βœ… All 9 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-06-07 11:21:22,099 - 56409 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 9 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-06-07 11:12:39.587' and ServiceSetupId in (106121, 106122, 106123, 106125, 106126)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:21:22,170 - 56409 - src.utils.log - INFO - βœ… Fetched 9 rows - __SPLIT__ 2026-06-07 11:21:22,170 - 56409 - src.utils.log - INFO - Id's of work order inserted to DB: [577743 577744 577745 577746 577747 577748 577749 577750 577751] - __SPLIT__ 2026-06-07 11:21:22,171 - 56409 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId in (106121, 106122, 106123, 106125, 106126);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:21:22,201 - 56409 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-07 11:21:22,201 - 56409 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-06-07 11:21:22,201 - 56409 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId in (106121, 106122, 106123, 106125, 106126)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:21:22,235 - 56409 - src.utils.log - INFO - βœ… Fetched 12 rows - __SPLIT__ 2026-06-07 11:21:22,235 - 56409 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId in (106121, 106122, 106123, 106125, 106126)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:21:22,270 - 56409 - src.utils.log - INFO - βœ… Fetched 9 rows - __SPLIT__ 2026-06-07 11:21:22,276 - 56409 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId in (106121, 106122, 106123, 106125, 106126)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:21:22,320 - 56409 - src.utils.log - INFO - βœ… Fetched 9 rows - __SPLIT__ 2026-06-07 11:21:22,322 - 56409 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId in (106121, 106122, 106123, 106125, 106126)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:21:22,350 - 56409 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-07 11:21:22,350 - 56409 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId in (106121, 106122, 106123, 106125, 106126)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:21:22,378 - 56409 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-07 11:21:22,379 - 56409 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId in (106121, 106122, 106123, 106125, 106126);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:21:22,413 - 56409 - src.utils.log - INFO - βœ… Fetched 7 rows - __SPLIT__ 2026-06-07 11:21:22,413 - 56409 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId in (106121, 106122, 106123, 106125, 106126);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:21:22,446 - 56409 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-07 11:21:22,446 - 56409 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId in (106121, 106122, 106123, 106125, 106126);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:21:22,511 - 56409 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-07 11:21:22,512 - 56409 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId in (106121, 106122, 106123, 106125, 106126);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:21:22,542 - 56409 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-07 11:21:22,557 - 56409 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-06-07 11:21:22,557 - 56409 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-06-07 11:21:22,557 - 56409 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-06-07 11:21:22,557 - 56409 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.CommunicationPreferencesServiceReportNotification: - __SPLIT__ 2026-06-07 11:21:22,557 - 56409 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-06-07 11:21:22,557 - 56409 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SetupAutoGenerationSourceMapping: - __SPLIT__ 2026-06-07 11:21:22,557 - 56409 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-06-07 11:21:22,557 - 56409 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-07 11:21:22,557 - 56409 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (577743, 577745, 577747, 577748, 577749, 577750) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:21:22,590 - 56409 - src.utils.log - INFO - βœ… Fetched 6 rows - __SPLIT__ 2026-06-07 11:21:22,590 - 56409 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationAppliedDiscount: 7 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:21:22,629 - 56409 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 7) into ServiceCore.WorkOrderAutoGenerationAppliedDiscount - __SPLIT__ 2026-06-07 11:21:22,745 - 56409 - src.utils.log - INFO - βœ… All 7 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationAppliedDiscount in 1 batches - __SPLIT__ 2026-06-07 11:21:22,745 - 56409 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-06-07 11:21:22,745 - 56409 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SubWorkOrderAutoGeneration: - __SPLIT__ 2026-06-07 11:21:22,745 - 56409 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-06-07 11:21:22,745 - 56409 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: - __SPLIT__ 2026-06-07 11:21:22,746 - 56409 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-06-07 11:21:22,746 - 56409 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: - __SPLIT__ 2026-06-07 11:21:22,746 - 56409 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-06-07 11:21:22,746 - 56409 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-07 11:21:22,746 - 56409 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (577743, 577744, 577745, 577746, 577747, 577748, 577749, 577750, 577751) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:21:22,779 - 56409 - src.utils.log - INFO - βœ… Fetched 9 rows - __SPLIT__ 2026-06-07 11:21:22,780 - 56409 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationCrews: 9 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:21:22,816 - 56409 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 9) into ServiceCore.WorkOrderAutoGenerationCrews - __SPLIT__ 2026-06-07 11:21:22,939 - 56409 - src.utils.log - INFO - βœ… All 9 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationCrews in 1 batches - __SPLIT__ 2026-06-07 11:21:22,939 - 56409 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-06-07 11:21:22,939 - 56409 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-07 11:21:22,939 - 56409 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (577744, 577745, 577746, 577743) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:21:22,973 - 56409 - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-06-07 11:21:22,974 - 56409 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 9 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:21:23,013 - 56409 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 9) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-06-07 11:21:23,140 - 56409 - src.utils.log - INFO - βœ… All 9 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-06-07 11:21:23,140 - 56409 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-06-07 11:21:23,140 - 56409 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-07 11:21:23,140 - 56409 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (577747, 577748, 577749, 577750, 577751) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:21:23,170 - 56409 - src.utils.log - INFO - βœ… Fetched 5 rows - __SPLIT__ 2026-06-07 11:21:23,170 - 56409 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 12 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:21:23,209 - 56409 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 12) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-06-07 11:21:23,339 - 56409 - src.utils.log - INFO - βœ… All 12 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-06-07 11:21:23,340 - 56409 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-06-07 11:21:23,340 - 56409 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 56409;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:21:23,372 - 56409 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-07 11:21:23,372 - 56409 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-06-07 11:21:23,373 - 56409 - src.utils.log - INFO - Time took to perform operation: 3.07 - __SPLIT__ 2026-06-07 11:21:39,210 - [56409] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[] user_id=44506 company_id=146 project_id=[56409] publish_all=True - __SPLIT__ 2026-06-07 11:21:39,210 - [56409] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[] user_id=44506 company_id=146 project_id=[56409] publish_all=True - __SPLIT__ 2026-06-07 11:21:39,210 - [56409] - src.utils.log - INFO - Sequential Work order publish in progress for GenerateWorkOrderHistoryId: [56409] - __SPLIT__ 2026-06-07 11:21:39,211 - [56409] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-06-07 11:21:39,211 - [56409] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:21:39,389 - [56409] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-07 11:21:39,389 - [56409] - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-06-07 11:21:39,389 - [56409] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'InProgress' WHERE CompanyId = 146 AND GenerateWorkOrderHistoryId = 56409;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:21:39,415 - [56409] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-07 11:21:39,415 - [56409] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGeneration woag WHERE woag.GenerateWorkOrderHistoryId = 56409... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:21:39,469 - [56409] - src.utils.log - INFO - βœ… Fetched 9 rows - __SPLIT__ 2026-06-07 11:21:39,470 - [56409] - src.utils.log - INFO - Inside get_work_order_table - __SPLIT__ 2026-06-07 11:21:39,470 - [56409] - 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 (106125, 106122, 106123, 106121, 106126) AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:21:39,505 - [56409] - src.utils.log - INFO - βœ… Fetched 5 rows - __SPLIT__ 2026-06-07 11:21:39,505 - [56409] - 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 (106125, 106122, 106123, 106121, 106126) AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:21:39,537 - [56409] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-07 11:21:39,537 - [56409] - 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 (106125, 106122, 106123, 106121, 106126) AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:21:39,572 - [56409] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-07 11:21:39,575 - [56409] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder,BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 146;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:21:39,603 - [56409] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-07 11:21:39,603 - [56409] - 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-06-07 11:21:39,630 - [56409] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-07 11:21:39,630 - [56409] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder, BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 146; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:21:39,658 - [56409] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-07 11:21:39,658 - [56409] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 9 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 146 AND EnitityNumberType = 'WorkOrder'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:21:39,686 - [56409] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-07 11:21:39,686 - [56409] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 9 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 146 AND EnitityNumberType = 'Invoice'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:21:39,714 - [56409] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-07 11:21:39,717 - [56409] - 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 (106125, 106122, 106123, 106121, 106126)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:21:39,748 - [56409] - src.utils.log - INFO - βœ… Fetched 5 rows - __SPLIT__ 2026-06-07 11:21:39,752 - [56409] - src.utils.log - INFO - πŸ” Fetching data: SELECT x.CompanyId FROM CRM.CompanyMaster x WHERE CompanyKey = 'Fortive';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:21:39,777 - [56409] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-07 11:21:39,778 - [56409] - src.utils.log - INFO - πŸ” Fetching data: SELECT CollectionStatus,IsHold,AccountNo FROM CRM.Account a WHERE a.AccountNo = '2330' and a.CompanyId = 134;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:21:39,803 - [56409] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-07 11:21:39,805 - [56409] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderNo FROM ServiceCore.WorkOrder WHERE WorkOrderNo IN ('56416', '56417', '56418', '56419', '56420', '56421', '56422', '56423', '56424') AND CompanyId = 146 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:21:39,834 - [56409] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-07 11:21:39,835 - [56409] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrder (skip triggers): 9 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:21:39,902 - [56409] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 9) into ServiceCore.WorkOrder (triggers skipped) - __SPLIT__ 2026-06-07 11:21:40,157 - [56409] - src.utils.log - INFO - βœ… All 9 rows inserted successfully into ServiceCore.WorkOrder in 1 batches (triggers skipped) - __SPLIT__ 2026-06-07 11:21:40,173 - [56409] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-06-07 11:21:40,175 - [56409] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.ServiceSetup SET IsInitialWoGenerated = 1 WHERE CompanyId = 146 AND ServiceSetupId in (106125, 106122, 106123, 106121);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:21:40,218 - [56409] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-07 11:21:40,219 - [56409] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkorderId, WorkOrderNo FROM ServiceCore.WorkOrder wo WHERE wo.WorkOrderNo IN ('56416', '56417', '56418', '56419', '56420', '56421', '56422', '56423', '56424') AND wo.AccountNumber = '2330' AND wo.CompanyId = 146 ... (Thread: ThreadPoolExecutor-5_0) - __SPLIT__ 2026-06-07 11:21:40,261 - [56409] - src.utils.log - INFO - βœ… Fetched 9 rows - __SPLIT__ 2026-06-07 11:21:40,263 - [56409] - src.utils.log - INFO - Sequential fetching temp table records - __SPLIT__ 2026-06-07 11:21:40,263 - [56409] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationServices woag WHERE woag.WorkOrderAutoGenerationId in (577743, 577744, 577745, 577746, 577747, 577748, 577749, 577750, 577751)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:21:40,336 - [56409] - src.utils.log - INFO - βœ… Fetched 21 rows - __SPLIT__ 2026-06-07 11:21:40,337 - [56409] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SubWorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (577743, 577744, 577745, 577746, 577747, 577748, 577749, 577750, 577751)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:21:40,410 - [56409] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-07 11:21:40,410 - [56409] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationCrews woag WHERE woag.WorkOrderAutoGenerationId in (577743, 577744, 577745, 577746, 577747, 577748, 577749, 577750, 577751)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:21:40,469 - [56409] - src.utils.log - INFO - βœ… Fetched 9 rows - __SPLIT__ 2026-06-07 11:21:40,469 - [56409] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationSalesPersonCommission woag WHERE woag.WorkOrderAutoGenerationId in (577743, 577744, 577745, 577746, 577747, 577748, 577749, 577750, 577751)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:21:40,503 - [56409] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-07 11:21:40,503 - [56409] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupAutoGenerationSourceMapping woag WHERE woag.WorkOrderAutoGenerationId in (577743, 577744, 577745, 577746, 577747, 577748, 577749, 577750, 577751)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:21:40,535 - [56409] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-07 11:21:40,535 - [56409] - 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 (577743, 577744, 577745, 577746, 577747, 577748, 577749, 577750, 577751)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:21:40,585 - [56409] - src.utils.log - INFO - βœ… Fetched 7 rows - __SPLIT__ 2026-06-07 11:21:40,585 - [56409] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from CRM.LeadNote woag WHERE woag.RefId in (577743, 577744, 577745, 577746, 577747, 577748, 577749, 577750, 577751) and woag.RefType = 'TempWorkorder';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:21:40,619 - [56409] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-07 11:21:40,620 - [56409] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment woagca WHERE woagca.WorkOrderAutoGenerationId in (577743, 577744, 577745, 577746, 577747, 577748, 577749, 577750, 577751);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:21:40,653 - [56409] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-07 11:21:40,655 - [56409] - src.utils.log - INFO - Updating temp tables - __SPLIT__ 2026-06-07 11:21:40,668 - [56409] - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyKey FROM Common.CompanyMaster cm WHERE CompanyId = 146;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:21:40,699 - [56409] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-07 11:21:40,701 - [56409] - src.utils.log - INFO - πŸ” Fetching data: Select DiscountSetupId, [SysName] as DiscountSysName from Common.DiscountSetupMaster WHERE DiscountSetupId IN (1179, 1170, 1169, 1168) AND CompanyId = 146;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:21:40,733 - [56409] - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-06-07 11:21:40,736 - [56409] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 146 AND EnitityNumberType in ('SubWorkOrder'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:21:40,767 - [56409] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-07 11:21:40,770 - [56409] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-07 11:21:40,770 - [56409] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishHistory: 9 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:21:40,849 - [56409] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 9) into ServiceCore.WorkOrderAutoGenerationPublishHistory - __SPLIT__ 2026-06-07 11:21:41,028 - [56409] - src.utils.log - INFO - βœ… All 9 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishHistory in 1 batches - __SPLIT__ 2026-06-07 11:21:41,030 - [56409] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationPublishHistoryId, WorkOrderNo, ServiceSetupId FROM ServiceCore.WorkOrderAutoGenerationPublishHistory WHERE ServiceSetupId IN (106125, 106122, 106123, 106121, 106126) AND WorkOrderNo IN ('178475', '421363', '680199', '341267', '4573982', '8962220', '5358423', '1468537', '6258780') AND GenerateWorkOrderHistoryId = 56409;... (Thread: ThreadPoolExecutor-6_0) - __SPLIT__ 2026-06-07 11:21:41,127 - [56409] - src.utils.log - INFO - βœ… Fetched 9 rows - __SPLIT__ 2026-06-07 11:21:41,128 - [56409] - src.utils.log - INFO - 🏁 Final merged rows: 9 - __SPLIT__ 2026-06-07 11:21:41,133 - [56409] - src.utils.log - INFO - Sequential Insertion in work order tables begin - __SPLIT__ 2026-06-07 11:21:41,133 - [56409] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-07 11:21:41,133 - [56409] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderServices: 21 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:21:41,195 - [56409] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 21) into ServiceCore.WorkOrderServices - __SPLIT__ 2026-06-07 11:21:41,358 - [56409] - src.utils.log - INFO - βœ… All 21 rows inserted successfully into ServiceCore.WorkOrderServices in 1 batches - __SPLIT__ 2026-06-07 11:21:41,358 - [56409] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-07 11:21:41,358 - [56409] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.WorkOrderAppliedDiscount: 7 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:21:41,423 - [56409] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 7) into ServiceAuto.WorkOrderAppliedDiscount - __SPLIT__ 2026-06-07 11:21:41,554 - [56409] - src.utils.log - INFO - βœ… All 7 rows inserted successfully into ServiceAuto.WorkOrderAppliedDiscount in 1 batches - __SPLIT__ 2026-06-07 11:21:41,554 - [56409] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderSalesPersonCommission: - __SPLIT__ 2026-06-07 11:21:41,554 - [56409] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderCommissionAdjustment: - __SPLIT__ 2026-06-07 11:21:41,554 - [56409] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-07 11:21:41,554 - [56409] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderCrew: 9 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:21:41,618 - [56409] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 9) into ServiceCore.WorkOrderCrew - __SPLIT__ 2026-06-07 11:21:41,746 - [56409] - src.utils.log - INFO - βœ… All 9 rows inserted successfully into ServiceCore.WorkOrderCrew in 1 batches - __SPLIT__ 2026-06-07 11:21:41,746 - [56409] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkorderSourceMapping: - __SPLIT__ 2026-06-07 11:21:41,746 - [56409] - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-06-07 11:21:41,746 - [56409] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-07 11:21:41,746 - [56409] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishServices: 21 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:21:41,811 - [56409] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 21) into ServiceCore.WorkOrderAutoGenerationPublishServices - __SPLIT__ 2026-06-07 11:21:41,964 - [56409] - src.utils.log - INFO - βœ… All 21 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishServices in 1 batches - __SPLIT__ 2026-06-07 11:21:41,964 - [56409] - 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 (106125, 106122, 106123, 106121, 106126)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:21:41,994 - [56409] - src.utils.log - INFO - βœ… Fetched 5 rows - __SPLIT__ 2026-06-07 11:21:41,999 - [56409] - src.utils.log - INFO - Size of Transaction: 9 - __SPLIT__ 2026-06-07 11:21:42,001 - [56409] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 9 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:21:42,082 - [56409] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 9) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-06-07 11:21:42,202 - [56409] - src.utils.log - INFO - βœ… All 9 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-06-07 11:21:42,218 - [56409] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-06-07 11:21:42,218 - [56409] - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionId, ModifiedBy, TransactionDate as InvoiceDate from Billing.[Transaction] t WHERE t.ModifiedBy in (12345678910, 12345678911, 12345678912, 12345678913, 12345678914, 12345678915, 12345678916, 12345678917, 12345678918) and t.CompanyId = 146 AND t.TransactionType ='Invoice' AND t.CreatedDate = '2026-06-07 07:21:41.996';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:21:42,275 - [56409] - src.utils.log - INFO - βœ… Fetched 9 rows - __SPLIT__ 2026-06-07 11:21:42,278 - [56409] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId in (106121, 106122, 106123, 106125, 106126);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:21:42,309 - [56409] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-07 11:21:42,317 - [56409] - src.utils.log - INFO - πŸ“ Executing: UPDATE Billing.[Transaction] SET ModifiedBy = NULL WHERE ModifiedBy IN (12345678910,12345678911,12345678912,12345678913,12345678914,12345678915,12345678916,12345678917,12345678918) AND CreatedDate = '2026-06-07 07:21:41.996'; ... (Thread: ThreadPoolExecutor-7_0) - __SPLIT__ 2026-06-07 11:21:42,429 - [56409] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-07 11:21:42,434 - [56409] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-07 11:21:42,434 - [56409] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 9 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:21:42,500 - [56409] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 9) into Billing.Invoice - __SPLIT__ 2026-06-07 11:21:42,639 - [56409] - src.utils.log - INFO - βœ… All 9 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-06-07 11:21:42,640 - [56409] - src.utils.log - INFO - πŸ” Fetching data: SELECT InvoiceId, WorkOrderNo FROM Billing.Invoice i WHERE i.WorkOrderNo in ('56419', '56420', '56417', '56424', '56418', '56423', '56416', '56422', '56421')... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:21:42,832 - [56409] - src.utils.log - INFO - βœ… Fetched 18 rows - __SPLIT__ 2026-06-07 11:21:42,843 - [56409] - 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 (106125, 106122, 106123, 106121, 106126) and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:21:42,872 - [56409] - src.utils.log - INFO - βœ… Fetched 12 rows - __SPLIT__ 2026-06-07 11:21:42,873 - [56409] - 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 (106125, 106122, 106123, 106121, 106126) and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:21:42,904 - [56409] - src.utils.log - INFO - βœ… Fetched 9 rows - __SPLIT__ 2026-06-07 11:21:42,905 - [56409] - 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 (106125, 106122, 106123, 106121, 106126) and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:21:42,936 - [56409] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-07 11:21:42,936 - [56409] - 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 (106125, 106122, 106123, 106121, 106126) and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:21:42,971 - [56409] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-07 11:21:42,984 - [56409] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId in (106125, 106122, 106123, 106121, 106126);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:21:43,018 - [56409] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-07 11:21:43,023 - [56409] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId, AppliedDiscountAmt as AppliedDiscountAmount,IsActive ,ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId in (106125, 106122, 106123, 106121, 106126);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:21:43,056 - [56409] - src.utils.log - INFO - βœ… Fetched 7 rows - __SPLIT__ 2026-06-07 11:21:43,066 - [56409] - 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 (106125, 106122, 106123, 106121, 106126);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:21:43,098 - [56409] - src.utils.log - INFO - βœ… Fetched 7 rows - __SPLIT__ 2026-06-07 11:21:43,106 - [56409] - src.utils.log - INFO - Sequential Insertion in invoice tables begin - __SPLIT__ 2026-06-07 11:21:43,106 - [56409] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-07 11:21:43,106 - [56409] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.AccountDiscountSetup: 14 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:21:43,169 - [56409] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 14) into Billing.AccountDiscountSetup - __SPLIT__ 2026-06-07 11:21:43,297 - [56409] - src.utils.log - INFO - βœ… All 14 rows inserted successfully into Billing.AccountDiscountSetup in 1 batches - __SPLIT__ 2026-06-07 11:21:43,298 - [56409] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-07 11:21:43,298 - [56409] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceCharges: 42 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:21:43,365 - [56409] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 42) into Billing.InvoiceCharges - __SPLIT__ 2026-06-07 11:21:43,602 - [56409] - src.utils.log - INFO - βœ… All 42 rows inserted successfully into Billing.InvoiceCharges in 1 batches - __SPLIT__ 2026-06-07 11:21:43,602 - [56409] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-07 11:21:43,602 - [56409] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.DiscountApplied: 14 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:21:43,665 - [56409] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 14) into Billing.DiscountApplied - __SPLIT__ 2026-06-07 11:21:43,804 - [56409] - src.utils.log - INFO - βœ… All 14 rows inserted successfully into Billing.DiscountApplied in 1 batches - __SPLIT__ 2026-06-07 11:21:43,804 - [56409] - src.utils.log - INFO - Invoice Publish Done - __SPLIT__ 2026-06-07 11:21:43,805 - [56409] - src.utils.log - INFO - Updating Next GenerationDate - __SPLIT__ 2026-06-07 11:21:43,805 - [56409] - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, MAX(NextWorkOrderGenerationDate) AS MaxNextWorkOrderGeneration FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 56409 GROUP BY ServiceSetupId; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:21:43,838 - [56409] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-07 11:21:43,844 - [56409] - src.utils.log - INFO - πŸ”„ Updating next gen date sequentially: inside update_next_workorder_generation - __SPLIT__ 2026-06-07 11:21:43,858 - [56409] - src.utils.log - INFO - πŸ›  Creating temp table #tbl_054234bfd3 - __SPLIT__ 2026-06-07 11:21:43,897 - [56409] - src.utils.log - INFO - πŸ“Œ Bulk inserting 5 rows into #tbl_054234bfd3 - __SPLIT__ 2026-06-07 11:21:43,983 - [56409] - src.utils.log - INFO - πŸ” Running MERGE update to apply changes - __SPLIT__ 2026-06-07 11:21:44,012 - [56409] - src.utils.log - INFO - βœ” SQL reported affected rows: 5 - __SPLIT__ 2026-06-07 11:21:44,032 - [56409] - src.utils.log - INFO - πŸ” Verified successfully updated 5 rows via #tbl_054234bfd3 - __SPLIT__ 2026-06-07 11:21:44,032 - [56409] - src.utils.log - INFO - πŸŽ‰ Successfully updated NextGenerationDate using temp table #tbl_054234bfd3 - __SPLIT__ 2026-06-07 11:21:44,032 - [56409] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 56409 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:21:44,064 - [56409] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-07 11:21:44,064 - [56409] - src.utils.log - INFO - Sequential deletion from temp tables begin - __SPLIT__ 2026-06-07 11:21:44,064 - [56409] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId in (577743, 577744, 577745, 577746, 577747, 577748, 577749, 577750, 577751) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:21:44,213 - [56409] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-07 11:21:44,213 - [56409] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId in (577743, 577744, 577745, 577746, 577747, 577748, 577749, 577750, 577751) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:21:44,333 - [56409] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-07 11:21:44,333 - [56409] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId in (577743, 577744, 577745, 577746, 577747, 577748, 577749, 577750, 577751) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:21:44,374 - [56409] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-07 11:21:44,374 - [56409] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId in (577743, 577744, 577745, 577746, 577747, 577748, 577749, 577750, 577751) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:21:44,451 - [56409] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-07 11:21:44,451 - [56409] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId in (577743, 577744, 577745, 577746, 577747, 577748, 577749, 577750, 577751) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:21:44,501 - [56409] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-07 11:21:44,501 - [56409] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (577743, 577744, 577745, 577746, 577747, 577748, 577749, 577750, 577751) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:21:44,601 - [56409] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-07 11:21:44,601 - [56409] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId in (577743, 577744, 577745, 577746, 577747, 577748, 577749, 577750, 577751) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:21:44,635 - [56409] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-07 11:21:44,635 - [56409] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (577743, 577744, 577745, 577746, 577747, 577748, 577749, 577750, 577751) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:21:45,370 - [56409] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-07 11:21:45,371 - [56409] - src.utils.log - INFO - Work order published ids: (577743, 577744, 577745, 577746, 577747, 577748, 577749, 577750, 577751) - __SPLIT__ 2026-06-07 11:21:45,371 - [56409] - src.utils.log - INFO - Time took to perform operation in publishing [56409]: 6.16 - __SPLIT__ 2026-06-07 11:21:45,371 - [56409] - src.utils.log - INFO - Publish Completed for GenerateWorkOrderHistoryId: [56409] - __SPLIT__ 2026-06-07 11:21:45,371 - [56409] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-06-07 07:21:45.371' WHERE CompanyId = 146 AND GenerateWorkOrderHistoryId = 56409;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:21:45,408 - [56409] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-07 11:49:26,654 - 11956 - src.utils.log - INFO - ParallelProcessing=False GenerateInvoiceHistoryId=11956 - __SPLIT__ 2026-06-07 11:49:26,655 - 11956 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-06-07 11:49:26,655 - 11956 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:49:26,829 - 11956 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-07 11:49:26,830 - 11956 - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-06-07 11:49:26,830 - 11956 - src.utils.log - INFO - Sequential Invoice generation algo started for GenerateInvoiceHistoryId: 11956 - __SPLIT__ 2026-06-07 11:49:26,830 - 11956 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET Status = 'InProgress' WHERE GenerateInvoiceHistoryId = 11956;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:49:26,856 - 11956 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-07 11:49:26,856 - 11956 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateInvoiceHistory WHERE GenerateInvoiceHistoryId = 11956;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:49:26,884 - 11956 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-07 11:49:26,884 - 11956 - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceId as ServiceMasterId,ss.FrequencyScheduleId as setup_frequency_schedule_id, ssb.*, ss.IsBilling, ss.DepartmentMasterId, ss.AccountNumber, ss.CompanyId, ss.BillingLocationId, ss.ServiceLocationId, ss.TaxSysName, ss.TermId, t.NetDueIn, ss.TaxPercent, ss.PoNumber, ss.DisplayServiceAsSeparateLineItem, ss.SetupEndDate, ss.SetupStartDate from ServiceCore.ServiceSetup ss join ServiceCore.ServiceSetupBilling ssb on ss.ServiceSetupId = ssb.ServiceSetupId join Billing.PaymentTypeMaster ptm on ptm.PaymentTypeMasterId = ssb.PaymentTypeMasterId join Billing.Term t on ss.TermId = t.TermId join ServiceCore.ServiceSetupServices sss on ss.ServiceSetupId = sss.ServiceSetupId where ptm.PaymentType= 'Payment Plan' and ss.IsActive =1 and ss.CompanyId= 146 AND ss.IsDeleted =0 AND ss.Status <> 'Canceled' and ss.AccountNumber = '2329' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:49:26,919 - 11956 - src.utils.log - INFO - βœ… Fetched 14 rows - __SPLIT__ 2026-06-07 11:49:26,926 - 11956 - src.utils.log - INFO - No filter selected - __SPLIT__ 2026-06-07 11:49:26,926 - 11956 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-06-07 11:49:26,926 - 11956 - 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 (14906, 13930)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:49:26,964 - 11956 - src.utils.log - INFO - βœ… Fetched 7 rows - __SPLIT__ 2026-06-07 11:49:26,965 - 11956 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-06-07 11:49:26,989 - 11956 - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionAutoGenerationId FROM Billing.TransactionAutoGeneration WHERE ServiceSetupId IN (106113, 106114, 106115, 106116, 106117, 106118) AND TransactionDate BETWEEN '2026-06-07 00:00:00' AND '2026-07-31 00:00:00' AND IsActive = 1 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:49:27,024 - 11956 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-07 11:49:27,030 - 11956 - src.utils.log - INFO - πŸ” Fetching data: SELECT Inv.ServiceSetupId, MAX(Inv.InvoiceDate) AS InvoiceDate FROM Billing.Invoice Inv INNER JOIN Billing.[Transaction] T ON Inv.TransactionId = T.TransactionId WHERE Inv.InvoiceDate BETWEEN '2026-06-07 00:00:00' AND '2026-07-31 00:00:00' AND Inv.IsActive = 1 AND Inv.IsDelete = 0 AND T.IsActive = 1 AND T.IsDelete = 0 AND Inv.ServiceSetupId IN (106113, 106114, 106115, 106116, 106117, 106118) GROUP BY Inv.ServiceSetupId;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:49:27,063 - 11956 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-07 11:49:27,071 - 11956 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-07 11:49:27,071 - 11956 - src.utils.log - INFO - πŸ“₯ Inserting into Billing.TransactionAutoGeneration: 11 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:49:27,118 - 11956 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 11) into Billing.TransactionAutoGeneration - __SPLIT__ 2026-06-07 11:49:27,222 - 11956 - src.utils.log - INFO - βœ… All 11 rows inserted successfully into Billing.TransactionAutoGeneration in 1 batches - __SPLIT__ 2026-06-07 11:49:27,222 - 11956 - src.utils.log - INFO - - __SPLIT__ 2026-06-07 11:49:27,223 - 11956 - src.utils.log - INFO - Total invoice generated: 11 - __SPLIT__ 2026-06-07 11:49:27,223 - 11956 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 11 TransactionAutoGenerationId, ServiceSetupId, TransactionDate as InvoiceDate From Billing.TransactionAutoGeneration WHERE CreatedDate = '2026-06-07 05:42:39.587' and ServiceSetupId in (106113, 106114, 106115, 106116, 106117, 106118) and GenerateWorkOrderHistoryId = 11956;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:49:27,257 - 11956 - src.utils.log - INFO - βœ… Fetched 11 rows - __SPLIT__ 2026-06-07 11:49:27,264 - 11956 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-07 11:49:27,264 - 11956 - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceAutoGeneration: 11 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:49:27,309 - 11956 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 11) into Billing.InvoiceAutoGeneration - __SPLIT__ 2026-06-07 11:49:27,414 - 11956 - src.utils.log - INFO - βœ… All 11 rows inserted successfully into Billing.InvoiceAutoGeneration in 1 batches - __SPLIT__ 2026-06-07 11:49:27,414 - 11956 - src.utils.log - INFO - πŸ” Fetching data: SELECT I.InvoiceAutoGenerationId, T.ServiceSetupId FROM Billing.InvoiceAutoGeneration I JOIN Billing.TransactionAutoGeneration T ON I.TransactionAutoGenerationId = T.TransactionAutoGenerationId where T.TransactionAutoGenerationId in (264064, 264065, 264066, 264067, 264068, 264058, 264059, 264060, 264061, 264062, 264063);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:49:27,454 - 11956 - src.utils.log - INFO - βœ… Fetched 11 rows - __SPLIT__ 2026-06-07 11:49:27,455 - 11956 - 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 (106113, 106114, 106115, 106116, 106117, 106118) and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:49:27,484 - 11956 - src.utils.log - INFO - βœ… Fetched 14 rows - __SPLIT__ 2026-06-07 11:49:27,493 - 11956 - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, DiscountSetupId,DiscountType,DiscountCode,DiscountAmount,DiscountDescription,DiscountName, DiscountPercent, IsDiscountPercent,AppliedDiscountAmt,ApplyOnPartPrice,ApplyOnLaborPrice from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE IsInitialSetupDiscount = 0 AND ssad.ServiceSetupId in (106113, 106114, 106115, 106116, 106117, 106118);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:49:27,519 - 11956 - src.utils.log - INFO - βœ… Fetched 5 rows - __SPLIT__ 2026-06-07 11:49:27,524 - 11956 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-07 11:49:27,525 - 11956 - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceAutoGenerationAppliedDiscount: 8 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:49:27,570 - 11956 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 8) into Billing.InvoiceAutoGenerationAppliedDiscount - __SPLIT__ 2026-06-07 11:49:27,672 - 11956 - src.utils.log - INFO - βœ… All 8 rows inserted successfully into Billing.InvoiceAutoGenerationAppliedDiscount in 1 batches - __SPLIT__ 2026-06-07 11:49:27,672 - 11956 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-07 11:49:27,672 - 11956 - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceChargesAutoGeneration: 25 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:49:27,718 - 11956 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 25) into Billing.InvoiceChargesAutoGeneration - __SPLIT__ 2026-06-07 11:49:27,839 - 11956 - src.utils.log - INFO - βœ… All 25 rows inserted successfully into Billing.InvoiceChargesAutoGeneration in 1 batches - __SPLIT__ 2026-06-07 11:49:27,839 - 11956 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET Status = 'Completed' WHERE GenerateInvoiceHistoryId = 11956;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:49:27,864 - 11956 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-07 11:49:27,864 - 11956 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET InvoiceStatusDateTime = '2026-06-07 07:49:27.864' WHERE GenerateInvoiceHistoryId = 11956;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:49:27,890 - 11956 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-07 11:49:27,890 - 11956 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-06-07 11:49:27,891 - 11956 - src.utils.log - INFO - Sequential Invoice Gen Complete Successfully ProjectId:11956 - Time took: 1.24 - __SPLIT__ 2026-06-07 11:49:33,270 - [11956] - src.utils.log - INFO - ParallelProcessing=False temp_invoice=[] user_id=44506 company_id=146 project_id=[11956] publish_all=True - __SPLIT__ 2026-06-07 11:49:33,270 - [11956] - src.utils.log - INFO - Invoice Published Successfully - __SPLIT__ 2026-06-07 11:49:33,271 - [11956] - src.utils.log - INFO - Sequential invoice publish in progress - __SPLIT__ 2026-06-07 11:49:33,271 - [11956] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-06-07 11:49:33,271 - [11956] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:49:33,444 - [11956] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-07 11:49:33,444 - [11956] - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-06-07 11:49:33,444 - [11956] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET PublishStatus = 'InProgress', InvoicePublishStartDateTime = '2026-06-07 07:49:33.444' WHERE CompanyId = 146 AND GenerateInvoiceHistoryId = 11956;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:49:33,471 - [11956] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-07 11:49:33,471 - [11956] - src.utils.log - INFO - πŸ” Fetching data: SELECT i.* FROM Billing.InvoiceAutoGeneration i join Billing.TransactionAutoGeneration t on i.TransactionAutoGenerationId = t.TransactionAutoGenerationId WHERE t.GenerateWorkOrderHistoryId = 11956; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:49:33,513 - [11956] - src.utils.log - INFO - βœ… Fetched 11 rows - __SPLIT__ 2026-06-07 11:49:33,514 - [11956] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Billing.TransactionAutoGeneration tag WHERE tag.TransactionAutoGenerationId in (264058, 264059, 264060, 264061, 264062, 264063, 264064, 264065, 264066, 264067, 264068);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:49:33,541 - [11956] - src.utils.log - INFO - βœ… Fetched 11 rows - __SPLIT__ 2026-06-07 11:49:33,542 - [11956] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 11 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:49:33,598 - [11956] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 11) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-06-07 11:49:33,698 - [11956] - src.utils.log - INFO - βœ… All 11 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-06-07 11:49:33,710 - [11956] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-06-07 11:49:33,710 - [11956] - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionId, ModifiedBy from Billing.[Transaction] t WHERE t.ModifiedBy in (12345678910, 12345678911, 12345678912, 12345678913, 12345678914, 12345678915, 12345678916, 12345678917, 12345678918, 12345678919, 12345678920);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:49:34,051 - [11956] - src.utils.log - INFO - βœ… Fetched 11 rows - __SPLIT__ 2026-06-07 11:49:34,054 - [11956] - src.utils.log - INFO - πŸ“ Executing: UPDATE Billing.[Transaction] SET ModifiedBy = NULL WHERE ModifiedBy IN (12345678910,12345678911,12345678912,12345678913,12345678914,12345678915,12345678916,12345678917,12345678918,12345678919,12345678920); ... (Thread: ThreadPoolExecutor-6_0) - __SPLIT__ 2026-06-07 11:49:34,317 - [11956] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-07 11:49:34,319 - [11956] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 146 AND EnitityNumberType in ('Invoice'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:49:34,346 - [11956] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-07 11:49:34,347 - [11956] - src.utils.log - INFO - 11 Invoice Generated : [74219, 74220, 74221, 74222, 74223, 74224, 74225, 74226, 74227, 74228, 74229] - __SPLIT__ 2026-06-07 11:49:34,347 - [11956] - src.utils.log - INFO - πŸ“ Executing: UPDATE Common.GenerateNumberConfig SET NextNumber = '74230' WHERE CompanyId = 146 AND EnitityNumberType in ('Invoice');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:49:34,373 - [11956] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-07 11:49:34,374 - [11956] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-07 11:49:34,375 - [11956] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 11 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:49:34,421 - [11956] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 11) into Billing.Invoice - __SPLIT__ 2026-06-07 11:49:34,542 - [11956] - src.utils.log - INFO - βœ… All 11 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-06-07 11:49:34,543 - [11956] - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionId, InvoiceId FROM Billing.Invoice WHERE TransactionId in (842917, 842918, 842919, 842920, 842921, 842922, 842923, 842924, 842925, 842926, 842927);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:49:34,569 - [11956] - src.utils.log - INFO - βœ… Fetched 11 rows - __SPLIT__ 2026-06-07 11:49:34,571 - [11956] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Billing.InvoiceChargesAutoGeneration icag WHERE InvoiceAutoGenerationId in (263974, 263975, 263976, 263977, 263978, 263979, 263980, 263981, 263982, 263983, 263984);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:49:34,668 - [11956] - src.utils.log - INFO - βœ… Fetched 25 rows - __SPLIT__ 2026-06-07 11:49:34,669 - [11956] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Billing.InvoiceAutoGenerationAppliedDiscount iagad WHERE InvoiceAutoGenerationId in (263974, 263975, 263976, 263977, 263978, 263979, 263980, 263981, 263982, 263983, 263984);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:49:34,697 - [11956] - src.utils.log - INFO - βœ… Fetched 8 rows - __SPLIT__ 2026-06-07 11:49:34,703 - [11956] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-07 11:49:34,703 - [11956] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceCharges: 25 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:49:34,749 - [11956] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 25) into Billing.InvoiceCharges - __SPLIT__ 2026-06-07 11:49:34,868 - [11956] - src.utils.log - INFO - βœ… All 25 rows inserted successfully into Billing.InvoiceCharges in 1 batches - __SPLIT__ 2026-06-07 11:49:34,868 - [11956] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-07 11:49:34,868 - [11956] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.AccountDiscountSetup: 8 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:49:34,912 - [11956] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 8) into Billing.AccountDiscountSetup - __SPLIT__ 2026-06-07 11:49:35,008 - [11956] - src.utils.log - INFO - βœ… All 8 rows inserted successfully into Billing.AccountDiscountSetup in 1 batches - __SPLIT__ 2026-06-07 11:49:35,008 - [11956] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-07 11:49:35,008 - [11956] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.DiscountApplied: 8 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:49:35,052 - [11956] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 8) into Billing.DiscountApplied - __SPLIT__ 2026-06-07 11:49:35,149 - [11956] - src.utils.log - INFO - βœ… All 8 rows inserted successfully into Billing.DiscountApplied in 1 batches - __SPLIT__ 2026-06-07 11:49:35,150 - [11956] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: delete FROM Billing.InvoiceAutoGenerationAppliedDiscount WHERE InvoiceAutoGenerationId in (263974, 263975, 263976, 263977, 263978, 263979, 263980, 263981, 263982, 263983, 263984) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:49:35,178 - [11956] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-07 11:49:35,178 - [11956] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: delete FROM Billing.InvoiceChargesAutoGeneration WHERE InvoiceAutoGenerationId in (263974, 263975, 263976, 263977, 263978, 263979, 263980, 263981, 263982, 263983, 263984) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:49:35,231 - [11956] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-07 11:49:35,232 - [11956] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: delete FROM Billing.InvoiceAutoGeneration WHERE InvoiceAutoGenerationId in (263974, 263975, 263976, 263977, 263978, 263979, 263980, 263981, 263982, 263983, 263984) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:49:35,344 - [11956] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-07 11:49:35,345 - [11956] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: delete FROM Billing.TransactionAutoGeneration WHERE TransactionAutoGenerationId in (264058, 264059, 264060, 264061, 264062, 264063, 264064, 264065, 264066, 264067, 264068) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:49:35,414 - [11956] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-07 11:49:35,414 - [11956] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-06-07 07:49:33.444' WHERE CompanyId = 146 AND GenerateInvoiceHistoryId = 11956;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 11:49:35,441 - [11956] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-07 11:49:35,441 - [11956] - src.utils.log - INFO - Sequential invoice publish completed successfully - Time took: 2.17 - __SPLIT__ 2026-06-07 13:34:45,626 - 56414 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=56414 - __SPLIT__ 2026-06-07 13:34:45,626 - 56414 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 56414 - __SPLIT__ 2026-06-07 13:34:45,627 - 56414 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-06-07 13:34:45,627 - 56414 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Samsung'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 13:34:45,807 - 56414 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-07 13:34:45,807 - 56414 - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-06-07 13:34:45,808 - 56414 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 56414;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 13:34:45,833 - 56414 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-07 13:34:45,833 - 56414 - 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 = 56414), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 56414), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 56414 AND ss.FrequencyScheduleId IS NOT NULL AND ss.IsActive = 1 AND ss.IsDeleted = 0 AND ss.Status <> 'Canceled' AND ((ss.OrderType = gw.OrderType) OR gw.OrderType IS NULL);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 13:34:45,970 - 56414 - src.utils.log - INFO - βœ… Fetched 78 rows - __SPLIT__ 2026-06-07 13:34:45,971 - 56414 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 56414;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 13:34:46,000 - 56414 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-07 13:34:46,002 - 56414 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-06-07 13:34:46,004 - 56414 - src.utils.log - INFO - πŸ” Fetching data: SELECT fsd.IntervalDays, fs.CreatedDate ,f.FrequencyId , fs.FrequencyScheduleId, f.[SysName], f.FrequencyValue, f.YearlyOccurrence , fs.ScheduleFormat,fsd.Days, fsd.Weeks, fsd.Months,fsc.[Month] as sch_months, fsd.StartMonth , fsd.DateDay,fsd.DateMonth FROM [ServiceCore].[FrequencyMaster] f inner join [ServiceCore].[FrequencySchedule] fs on fs.FrequencyId = f.FrequencyId left join ServiceCore.FrequencyScheduleCycle fsc on fsc.FrequencyScheduleId = fs.FrequencyScheduleId left join [ServiceCore].[FrequencyScheduleDetail] fsd on fsd.FrequencyScheduleId = fs.FrequencyScheduleId WHERE fsd.FrequencyScheduleId in (14852, 14853, 13959, 14869, 14870, 14898, 14902, 14915, 14920, 14921, 14818, 14691, 14822, 14694, 14826, 14827, 14828, 14829, 14702, 14831, 14708, 14714, 14845)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 13:34:46,070 - 56414 - src.utils.log - INFO - βœ… Fetched 487 rows - __SPLIT__ 2026-06-07 13:34:46,071 - 56414 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-06-07 13:34:46,074 - 56414 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-06-07 13:34:46,074 - 56414 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId in (95248, 95249, 95766, 84504, 84508, 84513, 84515, 106031, 106032, 106052, 106055, 94801, 106080, 11873, 106082, 106089, 95339, 95340, 106094, 106096, 106098, 106102, 106109, 106111, 95874, 106119, 22663, 59531, 106124, 95888, 84636, 11444, 11452, 11455, 11456, 94923, 11469, 95445, 95462, 95466, 84212, 84229, 84239, 84240, 84245, 84247, 95516, 95007, 84273, 95537, 95540, 95541, 95542, 95550, 95554, 95560, 95561, 95052, 95063, 95064, 11117, 11118, 95098, 95227, 84383, 105904, 105905, 95674, 95676, 95685, 84435, 84444, 95204, 105959, 84456, 84457, 34285, 95739);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 13:34:46,132 - 56414 - src.utils.log - INFO - βœ… Fetched 16 rows - __SPLIT__ 2026-06-07 13:34:46,133 - 56414 - src.utils.log - INFO - πŸ” Fetching data: select ServiceDate, ServiceSetupId,IsInitial from serviceCore.WorkOrder wo inner join ServiceCore.WorkOrderStatus wos on wo.WoStatusId = wos.WoStatusId where ServiceDate >= '2026-06-07 00:00:00' and ServiceDate <= '2026-12-31 00:00:00' and ServiceSetupId in (95248, 95249, 95766, 84504, 84508, 84513, 84515, 106031, 106032, 106052, 106055, 94801, 106080, 11873, 106082, 106089, 95339, 95340, 106094, 106096, 106098, 106102, 106109, 106111, 95874, 106119, 22663, 59531, 106124, 95888, 84636, 11444, 11452, 11455, 11456, 94923, 11469, 95445, 95462, 95466, 84212, 84229, 84239, 84240, 84245, 84247, 95516, 95007, 84273, 95537, 95540, 95541, 95542, 95550, 95554, 95560, 95561, 95052, 95063, 95064, 11117, 11118, 95098, 95227, 84383, 105904, 105905, 95674, 95676, 95685, 84435, 84444, 95204, 105959, 84456, 84457, 34285, 95739) and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 13:34:46,180 - 56414 - src.utils.log - INFO - βœ… Fetched 60 rows - __SPLIT__ 2026-06-07 13:34:46,413 - 56414 - src.utils.log - INFO - Generating work orders for setup: 84212 - __SPLIT__ 2026-06-07 13:34:46,413 - 56414 - src.utils.log - INFO - Error processing schedule ID 13959: cannot access local variable 'sorted_service_dates' where it is not associated with a value - __SPLIT__ 2026-06-07 13:34:46,414 - 56414 - src.utils.log - INFO - Generating work orders for setup: 59531 - __SPLIT__ 2026-06-07 13:34:46,435 - 56414 - src.utils.log - INFO - Generating work orders for setup: 84245 - __SPLIT__ 2026-06-07 13:34:46,444 - 56414 - src.utils.log - INFO - Generating work orders for setup: 11117 - __SPLIT__ 2026-06-07 13:34:46,452 - 56414 - src.utils.log - INFO - Generating work orders for setup: 11118 - __SPLIT__ 2026-06-07 13:34:46,460 - 56414 - src.utils.log - INFO - Generating work orders for setup: 95204 - __SPLIT__ 2026-06-07 13:34:46,498 - 56414 - src.utils.log - INFO - Generating work orders for setup: 95227 - __SPLIT__ 2026-06-07 13:34:48,185 - 56414 - src.utils.log - INFO - Generating work orders for setup: 95248 - __SPLIT__ 2026-06-07 13:34:51,331 - 56414 - src.utils.log - INFO - Generating work orders for setup: 95249 - __SPLIT__ 2026-06-07 13:34:51,390 - 56414 - src.utils.log - INFO - Generating work orders for setup: 95339 - __SPLIT__ 2026-06-07 13:34:51,460 - 56414 - src.utils.log - INFO - Generating work orders for setup: 95340 - __SPLIT__ 2026-06-07 13:34:51,535 - 56414 - src.utils.log - INFO - Generating work orders for setup: 95462 - __SPLIT__ 2026-06-07 13:34:51,608 - 56414 - src.utils.log - INFO - Generating work orders for setup: 95466 - __SPLIT__ 2026-06-07 13:34:51,644 - 56414 - src.utils.log - INFO - Generating work orders for setup: 95445 - __SPLIT__ 2026-06-07 13:34:51,711 - 56414 - src.utils.log - INFO - Generating work orders for setup: 95537 - __SPLIT__ 2026-06-07 13:34:51,779 - 56414 - src.utils.log - INFO - Generating work orders for setup: 95540 - __SPLIT__ 2026-06-07 13:34:51,850 - 56414 - src.utils.log - INFO - Generating work orders for setup: 95541 - __SPLIT__ 2026-06-07 13:34:51,919 - 56414 - src.utils.log - INFO - Generating work orders for setup: 95542 - __SPLIT__ 2026-06-07 13:34:51,991 - 56414 - src.utils.log - INFO - Generating work orders for setup: 95550 - __SPLIT__ 2026-06-07 13:34:52,062 - 56414 - src.utils.log - INFO - Generating work orders for setup: 95554 - __SPLIT__ 2026-06-07 13:34:52,283 - 56414 - src.utils.log - INFO - Generating work orders for setup: 95560 - __SPLIT__ 2026-06-07 13:34:52,356 - 56414 - src.utils.log - INFO - Generating work orders for setup: 95561 - __SPLIT__ 2026-06-07 13:34:52,408 - 56414 - src.utils.log - INFO - Generating work orders for setup: 95739 - __SPLIT__ 2026-06-07 13:34:52,418 - 56414 - src.utils.log - INFO - Generating work orders for setup: 95766 - __SPLIT__ 2026-06-07 13:34:52,479 - 56414 - src.utils.log - INFO - Generating work orders for setup: 95874 - __SPLIT__ 2026-06-07 13:34:52,551 - 56414 - src.utils.log - INFO - Generating work orders for setup: 95888 - __SPLIT__ 2026-06-07 13:34:52,764 - 56414 - src.utils.log - INFO - Generating work orders for setup: 105904 - __SPLIT__ 2026-06-07 13:34:52,826 - 56414 - src.utils.log - INFO - Generating work orders for setup: 106031 - __SPLIT__ 2026-06-07 13:34:52,889 - 56414 - src.utils.log - INFO - Generating work orders for setup: 106032 - __SPLIT__ 2026-06-07 13:34:52,933 - 56414 - src.utils.log - INFO - Generating work orders for setup: 106052 - __SPLIT__ 2026-06-07 13:34:52,945 - 56414 - src.utils.log - INFO - Generating work orders for setup: 106055 - __SPLIT__ 2026-06-07 13:34:52,957 - 56414 - src.utils.log - INFO - Generating work orders for setup: 106080 - __SPLIT__ 2026-06-07 13:34:53,012 - 56414 - src.utils.log - INFO - Generating work orders for setup: 106082 - __SPLIT__ 2026-06-07 13:34:53,065 - 56414 - src.utils.log - INFO - Generating work orders for setup: 106094 - __SPLIT__ 2026-06-07 13:34:53,111 - 56414 - src.utils.log - INFO - Generating work orders for setup: 106096 - __SPLIT__ 2026-06-07 13:34:53,155 - 56414 - src.utils.log - INFO - Generating work orders for setup: 106124 - __SPLIT__ 2026-06-07 13:34:53,210 - 56414 - src.utils.log - INFO - Generating work orders for setup: 106098 - __SPLIT__ 2026-06-07 13:34:53,267 - 56414 - src.utils.log - INFO - Generating work orders for setup: 106102 - __SPLIT__ 2026-06-07 13:34:53,324 - 56414 - src.utils.log - INFO - Generating work orders for setup: 106109 - __SPLIT__ 2026-06-07 13:34:53,378 - 56414 - src.utils.log - INFO - Generating work orders for setup: 106111 - __SPLIT__ 2026-06-07 13:34:53,435 - 56414 - src.utils.log - INFO - Generating work orders for setup: 106119 - __SPLIT__ 2026-06-07 13:34:53,490 - 56414 - src.utils.log - INFO - Generating work orders for setup: 95516 - __SPLIT__ 2026-06-07 13:34:53,556 - 56414 - src.utils.log - INFO - Generating work orders for setup: 11873 - __SPLIT__ 2026-06-07 13:34:53,610 - 56414 - src.utils.log - INFO - Generating work orders for setup: 11444 - __SPLIT__ 2026-06-07 13:34:53,657 - 56414 - src.utils.log - INFO - Generating work orders for setup: 11455 - __SPLIT__ 2026-06-07 13:34:53,702 - 56414 - src.utils.log - INFO - Generating work orders for setup: 11456 - __SPLIT__ 2026-06-07 13:34:53,748 - 56414 - src.utils.log - INFO - Generating work orders for setup: 11469 - __SPLIT__ 2026-06-07 13:34:53,801 - 56414 - src.utils.log - INFO - Generating work orders for setup: 11452 - __SPLIT__ 2026-06-07 13:34:53,854 - 56414 - src.utils.log - INFO - Generating work orders for setup: 106089 - __SPLIT__ 2026-06-07 13:34:53,907 - 56414 - src.utils.log - INFO - Generating work orders for setup: 95052 - __SPLIT__ 2026-06-07 13:34:53,931 - 56414 - src.utils.log - INFO - Generating work orders for setup: 95063 - __SPLIT__ 2026-06-07 13:34:53,957 - 56414 - src.utils.log - INFO - Generating work orders for setup: 95064 - __SPLIT__ 2026-06-07 13:34:53,981 - 56414 - src.utils.log - INFO - Generating work orders for setup: 95674 - __SPLIT__ 2026-06-07 13:34:54,032 - 56414 - src.utils.log - INFO - Generating work orders for setup: 95676 - __SPLIT__ 2026-06-07 13:34:54,083 - 56414 - src.utils.log - INFO - Generating work orders for setup: 22663 - __SPLIT__ 2026-06-07 13:34:54,324 - 56414 - src.utils.log - INFO - Generating work orders for setup: 105959 - __SPLIT__ 2026-06-07 13:34:54,350 - 56414 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId in (11341.0, 11461.0);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 13:34:54,377 - 56414 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-07 13:34:54,385 - 56414 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId in (11461.0, 11398.0, 11463.0, 11462.0, 11338.0, 11468.0, 11437.0, 11470.0, 11436.0, 11341.0, 11414.0, -1.0);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 13:34:54,412 - 56414 - src.utils.log - INFO - βœ… Fetched 11 rows - __SPLIT__ 2026-06-07 13:34:54,591 - 56414 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-06-07 13:34:54,606 - 56414 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=145 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 13:34:54,632 - 56414 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-07 13:34:54,635 - 56414 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-06-07 13:34:54,635 - 56414 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-06-07 13:34:54,635 - 56414 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (95248, 95249, 95766, 84504, 84508, 84513, 84515, 106031, 106032, 106052, 106055, 94801, 106080, 11873, 106082, 106089, 95339, 95340, 106094, 106096, 106098, 106102, 106109, 106111, 95874, 106119, 22663, 59531, 106124, 95888, 84636, 11444, 11452, 11455, 11456, 94923, 11469, 95445, 95462, 95466, 84212, 84229, 84239, 84240, 84245, 84247, 95516, 95007, 84273, 95537, 95540, 95541, 95542, 95550, 95554, 95560, 95561, 95052, 95063, 95064, 11117, 11118, 95098, 95227, 84383, 105904, 105905, 95674, 95676, 95685, 84435, 84444, 95204, 105959, 84456, 84457, 34285, 95739) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 13:34:54,789 - 56414 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-07 13:34:54,790 - 56414 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (95248, 95249, 95766, 84504, 84508, 84513, 84515, 106031, 106032, 106052, 106055, 94801, 106080, 11873, 106082, 106089, 95339, 95340, 106094, 106096, 106098, 106102, 106109, 106111, 95874, 106119, 22663, 59531, 106124, 95888, 84636, 11444, 11452, 11455, 11456, 94923, 11469, 95445, 95462, 95466, 84212, 84229, 84239, 84240, 84245, 84247, 95516, 95007, 84273, 95537, 95540, 95541, 95542, 95550, 95554, 95560, 95561, 95052, 95063, 95064, 11117, 11118, 95098, 95227, 84383, 105904, 105905, 95674, 95676, 95685, 84435, 84444, 95204, 105959, 84456, 84457, 34285, 95739) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 13:34:54,934 - 56414 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-07 13:34:54,935 - 56414 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (95248, 95249, 95766, 84504, 84508, 84513, 84515, 106031, 106032, 106052, 106055, 94801, 106080, 11873, 106082, 106089, 95339, 95340, 106094, 106096, 106098, 106102, 106109, 106111, 95874, 106119, 22663, 59531, 106124, 95888, 84636, 11444, 11452, 11455, 11456, 94923, 11469, 95445, 95462, 95466, 84212, 84229, 84239, 84240, 84245, 84247, 95516, 95007, 84273, 95537, 95540, 95541, 95542, 95550, 95554, 95560, 95561, 95052, 95063, 95064, 11117, 11118, 95098, 95227, 84383, 105904, 105905, 95674, 95676, 95685, 84435, 84444, 95204, 105959, 84456, 84457, 34285, 95739) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 13:34:55,023 - 56414 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-07 13:34:55,023 - 56414 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (95248, 95249, 95766, 84504, 84508, 84513, 84515, 106031, 106032, 106052, 106055, 94801, 106080, 11873, 106082, 106089, 95339, 95340, 106094, 106096, 106098, 106102, 106109, 106111, 95874, 106119, 22663, 59531, 106124, 95888, 84636, 11444, 11452, 11455, 11456, 94923, 11469, 95445, 95462, 95466, 84212, 84229, 84239, 84240, 84245, 84247, 95516, 95007, 84273, 95537, 95540, 95541, 95542, 95550, 95554, 95560, 95561, 95052, 95063, 95064, 11117, 11118, 95098, 95227, 84383, 105904, 105905, 95674, 95676, 95685, 84435, 84444, 95204, 105959, 84456, 84457, 34285, 95739) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 13:34:55,120 - 56414 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-07 13:34:55,120 - 56414 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (95248, 95249, 95766, 84504, 84508, 84513, 84515, 106031, 106032, 106052, 106055, 94801, 106080, 11873, 106082, 106089, 95339, 95340, 106094, 106096, 106098, 106102, 106109, 106111, 95874, 106119, 22663, 59531, 106124, 95888, 84636, 11444, 11452, 11455, 11456, 94923, 11469, 95445, 95462, 95466, 84212, 84229, 84239, 84240, 84245, 84247, 95516, 95007, 84273, 95537, 95540, 95541, 95542, 95550, 95554, 95560, 95561, 95052, 95063, 95064, 11117, 11118, 95098, 95227, 84383, 105904, 105905, 95674, 95676, 95685, 84435, 84444, 95204, 105959, 84456, 84457, 34285, 95739) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 13:34:55,202 - 56414 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-07 13:34:55,202 - 56414 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (95248, 95249, 95766, 84504, 84508, 84513, 84515, 106031, 106032, 106052, 106055, 94801, 106080, 11873, 106082, 106089, 95339, 95340, 106094, 106096, 106098, 106102, 106109, 106111, 95874, 106119, 22663, 59531, 106124, 95888, 84636, 11444, 11452, 11455, 11456, 94923, 11469, 95445, 95462, 95466, 84212, 84229, 84239, 84240, 84245, 84247, 95516, 95007, 84273, 95537, 95540, 95541, 95542, 95550, 95554, 95560, 95561, 95052, 95063, 95064, 11117, 11118, 95098, 95227, 84383, 105904, 105905, 95674, 95676, 95685, 84435, 84444, 95204, 105959, 84456, 84457, 34285, 95739) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 13:34:55,714 - 56414 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-07 13:34:55,714 - 56414 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (95248, 95249, 95766, 84504, 84508, 84513, 84515, 106031, 106032, 106052, 106055, 94801, 106080, 11873, 106082, 106089, 95339, 95340, 106094, 106096, 106098, 106102, 106109, 106111, 95874, 106119, 22663, 59531, 106124, 95888, 84636, 11444, 11452, 11455, 11456, 94923, 11469, 95445, 95462, 95466, 84212, 84229, 84239, 84240, 84245, 84247, 95516, 95007, 84273, 95537, 95540, 95541, 95542, 95550, 95554, 95560, 95561, 95052, 95063, 95064, 11117, 11118, 95098, 95227, 84383, 105904, 105905, 95674, 95676, 95685, 84435, 84444, 95204, 105959, 84456, 84457, 34285, 95739) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 13:34:55,756 - 56414 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-07 13:34:55,756 - 56414 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (95248, 95249, 95766, 84504, 84508, 84513, 84515, 106031, 106032, 106052, 106055, 94801, 106080, 11873, 106082, 106089, 95339, 95340, 106094, 106096, 106098, 106102, 106109, 106111, 95874, 106119, 22663, 59531, 106124, 95888, 84636, 11444, 11452, 11455, 11456, 94923, 11469, 95445, 95462, 95466, 84212, 84229, 84239, 84240, 84245, 84247, 95516, 95007, 84273, 95537, 95540, 95541, 95542, 95550, 95554, 95560, 95561, 95052, 95063, 95064, 11117, 11118, 95098, 95227, 84383, 105904, 105905, 95674, 95676, 95685, 84435, 84444, 95204, 105959, 84456, 84457, 34285, 95739) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 13:34:56,407 - 56414 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-07 13:34:56,407 - 56414 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-07 13:34:56,407 - 56414 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 407 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 13:34:56,486 - 56414 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 407) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-06-07 13:35:01,522 - 56414 - src.utils.log - INFO - βœ… All 407 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-06-07 13:35:01,522 - 56414 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 407 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-06-07 11:12:39.575' and ServiceSetupId in (95248, 95249, 95766, 84504, 84508, 84513, 84515, 106031, 106032, 106052, 106055, 94801, 106080, 11873, 106082, 106089, 95339, 95340, 106094, 106096, 106098, 106102, 106109, 106111, 95874, 106119, 22663, 59531, 106124, 95888, 84636, 11444, 11452, 11455, 11456, 94923, 11469, 95445, 95462, 95466, 84212, 84229, 84239, 84240, 84245, 84247, 95516, 95007, 84273, 95537, 95540, 95541, 95542, 95550, 95554, 95560, 95561, 95052, 95063, 95064, 11117, 11118, 95098, 95227, 84383, 105904, 105905, 95674, 95676, 95685, 84435, 84444, 95204, 105959, 84456, 84457, 34285, 95739)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 13:35:01,611 - 56414 - src.utils.log - INFO - βœ… Fetched 407 rows - __SPLIT__ 2026-06-07 13:35:01,613 - 56414 - src.utils.log - INFO - Id's of work order inserted to DB: [577803 577804 577805 577806 577807 577808 577809 577810 577811 577812 577813 577814 577815 577816 577817 577818 577819 577820 577821 577822 577823 577824 577825 577826 577827 577828 577829 577830 577831 577832 577833 577834 577835 577836 577837 577838 577839 577840 577841 577842 577843 577844 577845 577846 577847 577848 577849 577850 577851 577852 577853 577854 577855 577856 577857 577858 577859 577860 577861 577862 577863 577864 577865 577866 577867 577868 577869 577870 577871 577872 577873 577874 577875 577876 577877 577878 577879 577880 577881 577882 577883 577884 577885 577886 577887 577888 577889 577890 577891 577892 577893 577894 577895 577896 577897 577898 577899 577900 577901 577902 577903 577904 577905 577906 577907 577908 577909 577910 577911 577912 577913 577914 577915 577916 577917 577918 577919 577920 577921 577922 577923 577924 577925 577926 577927 577928 577929 577930 577931 577932 577933 577934 577935 577936 577937 577938 577939 577940 577941 577942 577943 577944 577945 577946 577947 577948 577949 577950 577951 577952 577953 577954 577955 577956 577957 577958 577959 577960 577961 577962 577963 577964 577965 577966 577967 577968 577969 577970 577971 577972 577973 577974 577975 577976 577977 577978 577979 577980 577981 577982 577983 577984 577985 577986 577987 577988 577989 577990 577991 577992 577993 577994 577995 577996 577997 577998 577999 578000 578001 578002 578003 578004 578005 578006 578007 578008 578009 578010 578011 578012 578013 578014 578015 578016 578017 578018 578019 578020 578021 578022 578023 578024 578025 578026 578027 578028 578029 578030 578031 578032 578033 578034 578035 578036 578037 578038 578039 578040 578041 578042 578043 578044 578045 578046 578047 578048 578049 578050 578051 578052 578053 578054 578055 578056 578057 578058 578059 578060 578061 578062 578063 578064 578065 578066 578067 578068 578069 578070 578071 578072 578073 578074 578075 578076 578077 578078 578079 578080 578081 578082 578083 578084 578085 578086 578087 578088 578089 578090 578091 578092 578093 578094 578095 578096 578097 578098 578099 578100 578101 578102 578103 578104 578105 578106 578107 578108 578109 578110 578111 578112 578113 578114 578115 578116 578117 578118 578119 578120 578121 578122 578123 578124 578125 578126 578127 578128 578129 578130 578131 578132 578133 578134 578135 578136 578137 578138 578139 578140 578141 578142 578143 578144 578145 578146 578147 578148 578149 578150 578151 578152 578153 578154 578155 578156 578157 578158 578159 578160 578161 578162 578163 578164 578165 578166 578167 578168 578169 578170 578171 578172 578173 578174 578175 578176 578177 578178 578179 578180 578181 578182 578183 578184 578185 578186 578187 578188 578189 578190 578191 578192 578193 578194 578195 578196 578197 578198 578199 578200 578201 578202 578203 578204 578205 578206 578207 578208 578209] - __SPLIT__ 2026-06-07 13:35:01,613 - 56414 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId in (95248, 95249, 95766, 84504, 84508, 84513, 84515, 106031, 106032, 106052, 106055, 94801, 106080, 11873, 106082, 106089, 95339, 95340, 106094, 106096, 106098, 106102, 106109, 106111, 95874, 106119, 22663, 59531, 106124, 95888, 84636, 11444, 11452, 11455, 11456, 94923, 11469, 95445, 95462, 95466, 84212, 84229, 84239, 84240, 84245, 84247, 95516, 95007, 84273, 95537, 95540, 95541, 95542, 95550, 95554, 95560, 95561, 95052, 95063, 95064, 11117, 11118, 95098, 95227, 84383, 105904, 105905, 95674, 95676, 95685, 84435, 84444, 95204, 105959, 84456, 84457, 34285, 95739);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 13:35:01,644 - 56414 - src.utils.log - INFO - βœ… Fetched 16 rows - __SPLIT__ 2026-06-07 13:35:01,645 - 56414 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-06-07 13:35:01,646 - 56414 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId in (95874, 106119, 59531, 106124, 95248, 95888, 95249, 84245, 95766, 95516, 106031, 105904, 95537, 106032, 11444, 95540, 95541, 95542, 95674, 95676, 95550, 11455, 11456, 95554, 106052, 106055, 95560, 95561, 11469, 95445, 106080, 11873, 106082, 95204, 95462, 106089, 95466, 95339, 95340, 11117, 106094, 11118, 106096, 106098, 106102, 95739, 106109, 106111)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 13:35:01,685 - 56414 - src.utils.log - INFO - βœ… Fetched 59 rows - __SPLIT__ 2026-06-07 13:35:01,686 - 56414 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId in (95874, 106119, 59531, 106124, 95248, 95888, 95249, 84245, 95766, 95516, 106031, 105904, 95537, 106032, 11444, 95540, 95541, 95542, 95674, 95676, 95550, 11455, 11456, 95554, 106052, 106055, 95560, 95561, 11469, 95445, 106080, 11873, 106082, 95204, 95462, 106089, 95466, 95339, 95340, 11117, 106094, 11118, 106096, 106098, 106102, 95739, 106109, 106111)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 13:35:01,723 - 56414 - src.utils.log - INFO - βœ… Fetched 29 rows - __SPLIT__ 2026-06-07 13:35:01,730 - 56414 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId in (95874, 106119, 59531, 106124, 95248, 95888, 95249, 84245, 95766, 95516, 106031, 105904, 95537, 106032, 11444, 95540, 95541, 95542, 95674, 95676, 95550, 11455, 11456, 95554, 106052, 106055, 95560, 95561, 11469, 95445, 106080, 11873, 106082, 95204, 95462, 106089, 95466, 95339, 95340, 11117, 106094, 11118, 106096, 106098, 106102, 95739, 106109, 106111)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 13:35:01,795 - 56414 - src.utils.log - INFO - βœ… Fetched 92 rows - __SPLIT__ 2026-06-07 13:35:01,796 - 56414 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId in (95874, 106119, 59531, 106124, 95248, 95888, 95249, 84245, 95766, 95516, 106031, 105904, 95537, 106032, 11444, 95540, 95541, 95542, 95674, 95676, 95550, 11455, 11456, 95554, 106052, 106055, 95560, 95561, 11469, 95445, 106080, 11873, 106082, 95204, 95462, 106089, 95466, 95339, 95340, 11117, 106094, 11118, 106096, 106098, 106102, 95739, 106109, 106111)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 13:35:01,830 - 56414 - src.utils.log - INFO - βœ… Fetched 10 rows - __SPLIT__ 2026-06-07 13:35:01,831 - 56414 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId in (95874, 106119, 59531, 106124, 95248, 95888, 95249, 84245, 95766, 95516, 106031, 105904, 95537, 106032, 11444, 95540, 95541, 95542, 95674, 95676, 95550, 11455, 11456, 95554, 106052, 106055, 95560, 95561, 11469, 95445, 106080, 11873, 106082, 95204, 95462, 106089, 95466, 95339, 95340, 11117, 106094, 11118, 106096, 106098, 106102, 95739, 106109, 106111)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 13:35:01,870 - 56414 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-07 13:35:01,870 - 56414 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId in (95874, 106119, 59531, 106124, 95248, 95888, 95249, 84245, 95766, 95516, 106031, 105904, 95537, 106032, 11444, 95540, 95541, 95542, 95674, 95676, 95550, 11455, 11456, 95554, 106052, 106055, 95560, 95561, 11469, 95445, 106080, 11873, 106082, 95204, 95462, 106089, 95466, 95339, 95340, 11117, 106094, 11118, 106096, 106098, 106102, 95739, 106109, 106111);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 13:35:01,903 - 56414 - src.utils.log - INFO - βœ… Fetched 25 rows - __SPLIT__ 2026-06-07 13:35:01,904 - 56414 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId in (95874, 106119, 59531, 106124, 95248, 95888, 95249, 84245, 95766, 95516, 106031, 105904, 95537, 106032, 11444, 95540, 95541, 95542, 95674, 95676, 95550, 11455, 11456, 95554, 106052, 106055, 95560, 95561, 11469, 95445, 106080, 11873, 106082, 95204, 95462, 106089, 95466, 95339, 95340, 11117, 106094, 11118, 106096, 106098, 106102, 95739, 106109, 106111);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 13:35:01,938 - 56414 - src.utils.log - INFO - βœ… Fetched 25 rows - __SPLIT__ 2026-06-07 13:35:01,939 - 56414 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId in (95874, 106119, 59531, 106124, 95248, 95888, 95249, 84245, 95766, 95516, 106031, 105904, 95537, 106032, 11444, 95540, 95541, 95542, 95674, 95676, 95550, 11455, 11456, 95554, 106052, 106055, 95560, 95561, 11469, 95445, 106080, 11873, 106082, 95204, 95462, 106089, 95466, 95339, 95340, 11117, 106094, 11118, 106096, 106098, 106102, 95739, 106109, 106111);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 13:35:02,212 - 56414 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-07 13:35:02,212 - 56414 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId in (95874, 106119, 59531, 106124, 95248, 95888, 95249, 84245, 95766, 95516, 106031, 105904, 95537, 106032, 11444, 95540, 95541, 95542, 95674, 95676, 95550, 11455, 11456, 95554, 106052, 106055, 95560, 95561, 11469, 95445, 106080, 11873, 106082, 95204, 95462, 106089, 95466, 95339, 95340, 11117, 106094, 11118, 106096, 106098, 106102, 95739, 106109, 106111);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 13:35:02,266 - 56414 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-07 13:35:02,297 - 56414 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-06-07 13:35:02,297 - 56414 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-07 13:35:02,298 - 56414 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 577805 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 13:35:02,324 - 56414 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-07 13:35:02,324 - 56414 - src.utils.log - INFO - πŸ“₯ Inserting into CRM.LeadNote: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 13:35:02,380 - 56414 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into CRM.LeadNote - __SPLIT__ 2026-06-07 13:35:02,512 - 56414 - src.utils.log - INFO - βœ… All 1 rows inserted successfully into CRM.LeadNote in 1 batches - __SPLIT__ 2026-06-07 13:35:02,512 - 56414 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-06-07 13:35:02,513 - 56414 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.CommunicationPreferencesServiceReportNotification: - __SPLIT__ 2026-06-07 13:35:02,513 - 56414 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-06-07 13:35:02,513 - 56414 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-07 13:35:02,513 - 56414 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ('577828', '578175', '577959', '577961', '578049', '577804', '577869', '578109', '578107', '578071', '577826', '578173', '577896', '577989', '577806', '578092', '577824', '578094', '578158', '578125', '578202', '578070', '577805', '577960', '578017', '577852', '578089', '578157', '578108', '577925', '577803', '578016', '577839', '578177') ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 13:35:02,542 - 56414 - src.utils.log - INFO - βœ… Fetched 34 rows - __SPLIT__ 2026-06-07 13:35:02,542 - 56414 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.SetupAutoGenerationSourceMapping: 0 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 13:35:02,586 - 56414 - src.utils.log - INFO - βœ… All 0 rows inserted successfully into ServiceCore.SetupAutoGenerationSourceMapping in 0 batches - __SPLIT__ 2026-06-07 13:35:02,587 - 56414 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-06-07 13:35:02,587 - 56414 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-07 13:35:02,587 - 56414 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (578177, 577924, 577919, 578057, 578058, 577932, 577938, 577941, 577946, 578203, 577818, 578204, 578074, 577828, 577959, 578089, 577835, 577837, 577966, 577969, 578104, 577976, 577978, 577979, 577855, 578114, 577861, 578123, 578127, 578128, 578129, 578130, 578131, 578132, 577876, 577878, 578008, 578014, 578019, 577892, 577893, 577894, 577898, 578157, 577901, 577902, 578034, 577907, 578035, 578041, 578042, 578043, 578044, 578047) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 13:35:02,615 - 56414 - src.utils.log - INFO - βœ… Fetched 54 rows - __SPLIT__ 2026-06-07 13:35:02,615 - 56414 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationAppliedDiscount: 69 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 13:35:02,673 - 56414 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 69) into ServiceCore.WorkOrderAutoGenerationAppliedDiscount - __SPLIT__ 2026-06-07 13:35:02,853 - 56414 - src.utils.log - INFO - βœ… All 69 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationAppliedDiscount in 1 batches - __SPLIT__ 2026-06-07 13:35:02,853 - 56414 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-06-07 13:35:02,854 - 56414 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-07 13:35:02,854 - 56414 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (577803.0, 577804.0, 577805.0, 577806.0, 577807.0, 577808.0, 577809.0, 578071.0, 578202.0, 577824.0, 578087.0, 577960.0, 578107.0, 577852.0, 578109.0, 577989.0, 577869.0, 578016.0, 578017.0, 578150.0, 578152.0, 578155.0, 578171.0, 578175.0) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 13:35:02,881 - 56414 - src.utils.log - INFO - βœ… Fetched 24 rows - __SPLIT__ 2026-06-07 13:35:02,882 - 56414 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.SubWorkOrderAutoGeneration: 24 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 13:35:02,935 - 56414 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 24) into ServiceCore.SubWorkOrderAutoGeneration - __SPLIT__ 2026-06-07 13:35:03,150 - 56414 - src.utils.log - INFO - βœ… All 24 rows inserted successfully into ServiceCore.SubWorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-06-07 13:35:03,150 - 56414 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-06-07 13:35:03,150 - 56414 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: - __SPLIT__ 2026-06-07 13:35:03,150 - 56414 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-06-07 13:35:03,150 - 56414 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-07 13:35:03,151 - 56414 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (578177, 577828, 577959, 578089, 578157) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 13:35:03,178 - 56414 - src.utils.log - INFO - βœ… Fetched 5 rows - __SPLIT__ 2026-06-07 13:35:03,178 - 56414 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: 25 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 13:35:03,233 - 56414 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 25) into ServiceCore.WorkOrderAutoGenerationSalesPersonCommission - __SPLIT__ 2026-06-07 13:35:03,353 - 56414 - src.utils.log - INFO - βœ… All 25 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationSalesPersonCommission in 1 batches - __SPLIT__ 2026-06-07 13:35:03,354 - 56414 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-06-07 13:35:03,354 - 56414 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-07 13:35:03,354 - 56414 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (577810, 577811, 577812, 577813, 577814, 577815, 577816, 577817, 577818, 577819, 577820, 577821, 577822, 577823, 577825, 577826, 577827, 577828, 577829, 577830, 577831, 577832, 577833, 577834, 577835, 577836, 577837, 577838, 577839, 577840, 577841, 577842, 577843, 577844, 577845, 577846, 577847, 577848, 577849, 577850, 577851, 577853, 577854, 577855, 577856, 577857, 577858, 577859, 577860, 577861, 577862, 577863, 577864, 577865, 577866, 577867, 577868, 577870, 577871, 577872, 577873, 577874, 577875, 577876, 577877, 577878, 577879, 577880, 577881, 577882, 577883, 577884, 577885, 577886, 577887, 577888, 577889, 577890, 577891, 577892, 577893, 577894, 577895, 577896, 577897, 577898, 577899, 577900, 577901, 577902, 577903, 577904, 577905, 577906, 577907, 577908, 577909, 577910, 577911, 577912, 577913, 577914, 577915, 577916, 577917, 577918, 577919, 577920, 577921, 577922, 577923, 577924, 577925, 577926, 577927, 577928, 577929, 577930, 577931, 577932, 577933, 577934, 577935, 577936, 577937, 577938, 577939, 577940, 577941, 577942, 577943, 577944, 577945, 577946, 577947, 577948, 577949, 577950, 577951, 577952, 577953, 577954, 577955, 577956, 577957, 577958, 577959, 577961, 577962, 577963, 577964, 577965, 577966, 577967, 577968, 577969, 577970, 577971, 577972, 577973, 577974, 577975, 577976, 577977, 577978, 577979, 577980, 577981, 577982, 577983, 577984, 577985, 577986, 577987, 577988, 577990, 577991, 577992, 577993, 577994, 577995, 577996, 577997, 577998, 577999, 578000, 578001, 578002, 578003, 578004, 578005, 578006, 578007, 578008, 578009, 578010, 578011, 578012, 578013, 578014, 578015, 578018, 578019, 578020, 578021, 578022, 578023, 578024, 578025, 578026, 578027, 578028, 578029, 578030, 578031, 578032, 578033, 578034, 578035, 578036, 578037, 578038, 578039, 578040, 578041, 578042, 578043, 578044, 578045, 578046, 578047, 578048, 578049, 578050, 578051, 578052, 578053, 578054, 578055, 578056, 578057, 578058, 578059, 578060, 578062, 578063, 578064, 578065, 578066, 578067, 578068, 578069, 578070, 578072, 578073, 578074, 578075, 578076, 578077, 578078, 578079, 578080, 578081, 578082, 578083, 578084, 578085, 578086, 578088, 578089, 578090, 578091, 578092, 578093, 578094, 578095, 578096, 578097, 578098, 578099, 578100, 578101, 578102, 578103, 578104, 578105, 578106, 578108, 578110, 578111, 578112, 578113, 578114, 578115, 578116, 578117, 578118, 578119, 578120, 578121, 578122, 578123, 578124, 578125, 578126, 578127, 578128, 578129, 578130, 578131, 578132, 578133, 578134, 578135, 578136, 578137, 578138, 578139, 578140, 578141, 578142, 578143, 578144, 578145, 578146, 578147, 578148, 578149, 578151, 578153, 578154, 578156, 578157, 578158, 578159, 578160, 578161, 578162, 578163, 578164, 578165, 578166, 578167, 578168, 578169, 578170, 578172, 578173, 578174, 578176, 578177, 578178, 578179, 578180, 578181, 578182, 578183, 578184, 578185, 578186, 578187, 578188, 578189, 578190, 578191, 578192, 578193, 578194, 578195, 578196, 578197, 578198, 578199, 578200, 578201, 578203, 578204, 578205, 578206, 578207, 578208, 578209) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 13:35:03,399 - 56414 - src.utils.log - INFO - βœ… Fetched 382 rows - __SPLIT__ 2026-06-07 13:35:03,401 - 56414 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationCrews: 620 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 13:35:03,446 - 56414 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 620) into ServiceCore.WorkOrderAutoGenerationCrews - __SPLIT__ 2026-06-07 13:35:04,150 - 56414 - src.utils.log - INFO - βœ… All 620 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationCrews in 1 batches - __SPLIT__ 2026-06-07 13:35:04,151 - 56414 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-06-07 13:35:04,151 - 56414 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationServices: - __SPLIT__ 2026-06-07 13:35:04,151 - 56414 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-06-07 13:35:04,151 - 56414 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-07 13:35:04,151 - 56414 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (577803, 577804, 577805, 577806, 577807, 577808, 577809, 577810, 577811, 577812, 577813, 577814, 577815, 577816, 577817, 577818, 577819, 577820, 577821, 577822, 577823, 577824, 577825, 577826, 577827, 577828, 577829, 577830, 577831, 577832, 577833, 577834, 577835, 577836, 577837, 577838, 577839, 577840, 577841, 577842, 577843, 577844, 577845, 577846, 577847, 577848, 577849, 577850, 577851, 577852, 577853, 577854, 577855, 577856, 577857, 577858, 577859, 577860, 577861, 577862, 577863, 577864, 577865, 577866, 577867, 577868, 577869, 577870, 577871, 577872, 577873, 577874, 577875, 577876, 577877, 577878, 577879, 577880, 577881, 577882, 577883, 577884, 577885, 577886, 577887, 577888, 577889, 577890, 577891, 577892, 577893, 577894, 577895, 577896, 577897, 577898, 577899, 577900, 577901, 577902, 577903, 577904, 577905, 577906, 577907, 577908, 577909, 577910, 577911, 577912, 577913, 577914, 577915, 577916, 577917, 577918, 577919, 577920, 577921, 577922, 577923, 577924, 577925, 577926, 577927, 577928, 577929, 577930, 577931, 577932, 577933, 577934, 577935, 577936, 577937, 577938, 577939, 577940, 577941, 577942, 577943, 577944, 577945, 577946, 577947, 577948, 577949, 577950, 577951, 577952, 577953, 577954, 577955, 577956, 577957, 577958, 577959, 577960, 577961, 577962, 577963, 577964, 577965, 577966, 577967, 577968, 577969, 577970, 577971, 577972, 577973, 577974, 577975, 577976, 577977, 577978, 577979, 577980, 577981, 577982, 577983, 577984, 577985, 577986, 577987, 577988, 577989, 577990, 577991, 577992, 577993, 577994, 577995, 577996, 577997, 577998, 577999, 578000, 578001, 578002, 578003, 578004, 578005, 578006, 578007, 578008, 578009, 578010, 578011, 578012, 578013, 578014, 578015, 578016, 578017, 578018, 578019, 578020, 578021, 578022, 578023, 578024, 578025, 578026, 578027, 578028, 578029, 578030, 578031, 578032, 578033, 578034, 578035, 578036, 578037, 578038, 578039, 578040, 578041, 578042, 578043, 578044, 578045, 578046, 578047, 578048, 578049, 578050, 578051, 578052, 578053, 578054, 578055, 578056, 578057, 578058, 578059, 578060, 578061, 578062, 578063, 578064, 578065, 578066, 578067, 578068, 578069, 578070, 578071, 578072, 578073, 578074, 578075, 578076, 578077, 578078, 578079, 578080, 578081, 578082, 578083, 578084, 578085, 578086, 578087, 578088, 578089, 578090, 578091, 578092, 578093, 578094, 578095, 578096, 578097, 578098, 578099, 578100, 578101, 578102, 578103, 578104, 578105, 578106, 578107, 578108, 578109, 578110, 578111, 578112, 578113, 578114, 578115, 578116, 578117, 578118, 578119, 578120, 578121, 578122, 578123, 578124, 578125, 578126, 578127, 578128, 578129, 578130, 578131, 578132, 578133, 578134, 578135, 578136, 578137, 578138, 578139, 578140, 578141, 578142, 578143, 578144, 578145, 578146, 578147, 578148, 578149, 578150, 578151, 578152, 578153, 578154, 578155, 578156, 578157, 578158, 578159, 578160, 578161, 578162, 578163, 578164, 578165, 578166, 578167, 578168, 578169, 578170, 578171, 578172, 578173, 578174, 578175, 578176, 578177, 578178, 578179, 578180, 578181, 578182, 578183, 578184, 578185, 578186, 578187, 578188, 578189, 578190, 578191, 578192, 578193, 578194, 578195, 578196, 578197, 578198, 578199, 578200, 578201, 578202, 578203, 578204, 578205, 578206, 578207, 578208, 578209) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 13:35:04,204 - 56414 - src.utils.log - INFO - βœ… Fetched 407 rows - __SPLIT__ 2026-06-07 13:35:04,204 - 56414 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 463 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 13:35:04,236 - 56414 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 463) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-06-07 13:35:05,107 - 56414 - src.utils.log - INFO - βœ… All 463 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-06-07 13:35:05,108 - 56414 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-06-07 13:35:05,108 - 56414 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 56414;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 13:35:05,133 - 56414 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-07 13:35:05,133 - 56414 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-06-07 13:35:05,133 - 56414 - src.utils.log - INFO - Time took to perform operation: 19.51 - __SPLIT__ 2026-06-07 13:35:50,629 - 56415 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=56415 - __SPLIT__ 2026-06-07 13:35:50,630 - 56415 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 56415 - __SPLIT__ 2026-06-07 13:35:50,630 - 56415 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-06-07 13:35:50,630 - 56415 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Samsung'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 13:35:50,832 - 56415 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-07 13:35:50,832 - 56415 - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-06-07 13:35:50,832 - 56415 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 56415;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 13:35:50,861 - 56415 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-07 13:35:50,861 - 56415 - 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 = 56415), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 56415), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 56415 AND ss.FrequencyScheduleId IS NOT NULL AND ss.IsActive = 1 AND ss.IsDeleted = 0 AND ss.Status <> 'Canceled' AND ((ss.OrderType = gw.OrderType) OR gw.OrderType IS NULL);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 13:35:50,911 - 56415 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-07 13:35:50,911 - 56415 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 56415;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 13:35:50,943 - 56415 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-07 13:35:50,943 - 56415 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Failed', WoGenErrorInfo ='No setups found in given range', WorkOrderStatusDateTime = '2026-06-07 09:35:50.943' WHERE GenerateWorkOrderHistoryId = 56415;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-07 13:35:50,976 - 56415 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-07 13:35:50,976 - 56415 - src.utils.log - INFO - No Setup Found Error:No setups found for GenerateWorkOrderHistoryid: 56415 - __SPLIT__ 2026-06-08 07:43:31,985 - [56431] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[578293, 578294] user_id=44506 company_id=146 project_id=[56431] publish_all=False - __SPLIT__ 2026-06-08 07:43:33,888 - [56431] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[578293, 578294] user_id=44506 company_id=146 project_id=[56431] publish_all=False - __SPLIT__ 2026-06-08 07:43:34,559 - [56431] - src.utils.log - INFO - Sequential Work order publish in progress for GenerateWorkOrderHistoryId: [56431] - __SPLIT__ 2026-06-08 07:43:35,234 - [56431] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-06-08 07:43:35,909 - [56431] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 07:43:36,748 - [56431] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-08 07:43:37,427 - [56431] - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-06-08 07:43:38,096 - [56431] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'InProgress' WHERE CompanyId = 146 AND GenerateWorkOrderHistoryId = 56431;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 07:43:38,789 - [56431] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-08 07:43:39,454 - [56431] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (578293, 578294)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 07:43:40,143 - [56431] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-08 07:43:40,814 - [56431] - src.utils.log - INFO - Inside get_work_order_table - __SPLIT__ 2026-06-08 07:43:41,482 - [56431] - 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 = 106132 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 07:43:42,189 - [56431] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-08 07:43:42,861 - [56431] - 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 = 106132 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 07:43:43,564 - [56431] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-08 07:43:44,232 - [56431] - 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 = 106132 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 07:43:44,948 - [56431] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-08 07:43:45,623 - [56431] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder,BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 146;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 07:43:46,315 - [56431] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-08 07:43:47,259 - [56431] - 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-06-08 07:43:47,947 - [56431] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-08 07:43:48,608 - [56431] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder, BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 146; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 07:43:49,300 - [56431] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-08 07:43:49,962 - [56431] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 2 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 146 AND EnitityNumberType = 'WorkOrder'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 07:43:50,660 - [56431] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-08 07:43:51,324 - [56431] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 2 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 146 AND EnitityNumberType = 'Invoice'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 07:43:52,021 - [56431] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-08 07:43:52,689 - [56431] - 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 = 106132... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 07:43:53,385 - [56431] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-08 07:43:54,059 - [56431] - src.utils.log - INFO - πŸ” Fetching data: SELECT x.CompanyId FROM CRM.CompanyMaster x WHERE CompanyKey = 'Fortive';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 07:43:54,761 - [56431] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-08 07:43:55,434 - [56431] - src.utils.log - INFO - πŸ” Fetching data: SELECT CollectionStatus,IsHold,AccountNo FROM CRM.Account a WHERE a.AccountNo = '2335' and a.CompanyId = 134;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 07:43:56,124 - [56431] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-08 07:43:56,788 - [56431] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderNo FROM ServiceCore.WorkOrder WHERE WorkOrderNo IN ('56460', '56461') AND CompanyId = 146 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 07:43:57,478 - [56431] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-08 07:43:58,147 - [56431] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrder (skip triggers): 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 07:43:58,923 - [56431] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrder (triggers skipped) - __SPLIT__ 2026-06-08 07:43:59,785 - [56431] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrder in 1 batches (triggers skipped) - __SPLIT__ 2026-06-08 07:44:00,463 - [56431] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-06-08 07:44:01,412 - [56431] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.ServiceSetup SET IsInitialWoGenerated = 1 WHERE CompanyId = 146 AND ServiceSetupId = 106132;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 07:44:02,100 - [56431] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-08 07:44:02,765 - [56431] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkorderId, WorkOrderNo FROM ServiceCore.WorkOrder wo WHERE wo.WorkOrderNo IN ('56460', '56461') AND wo.AccountNumber = '2335' AND wo.CompanyId = 146 ... (Thread: ThreadPoolExecutor-4_0) - __SPLIT__ 2026-06-08 07:44:03,449 - [56431] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-08 07:44:04,113 - [56431] - src.utils.log - INFO - Sequential fetching temp table records - __SPLIT__ 2026-06-08 07:44:04,769 - [56431] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationServices woag WHERE woag.WorkOrderAutoGenerationId in (578293, 578294)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 07:44:05,501 - [56431] - src.utils.log - INFO - βœ… Fetched 6 rows - __SPLIT__ 2026-06-08 07:44:06,168 - [56431] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SubWorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (578293, 578294)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 07:44:07,151 - [56431] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-08 07:44:07,810 - [56431] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationCrews woag WHERE woag.WorkOrderAutoGenerationId in (578293, 578294)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 07:44:08,533 - [56431] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-08 07:44:09,194 - [56431] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationSalesPersonCommission woag WHERE woag.WorkOrderAutoGenerationId in (578293, 578294)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 07:44:09,889 - [56431] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-08 07:44:10,553 - [56431] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupAutoGenerationSourceMapping woag WHERE woag.WorkOrderAutoGenerationId in (578293, 578294)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 07:44:11,258 - [56431] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-08 07:44:11,921 - [56431] - 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 (578293, 578294)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 07:44:12,643 - [56431] - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-06-08 07:44:13,307 - [56431] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from CRM.LeadNote woag WHERE woag.RefId in (578293, 578294) and woag.RefType = 'TempWorkorder';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 07:44:14,007 - [56431] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-08 07:44:14,673 - [56431] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment woagca WHERE woagca.WorkOrderAutoGenerationId in (578293, 578294);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 07:44:15,660 - [56431] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-08 07:44:16,325 - [56431] - src.utils.log - INFO - Updating temp tables - __SPLIT__ 2026-06-08 07:44:17,015 - [56431] - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyKey FROM Common.CompanyMaster cm WHERE CompanyId = 146;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 07:44:17,722 - [56431] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-08 07:44:18,391 - [56431] - src.utils.log - INFO - πŸ” Fetching data: Select DiscountSetupId, [SysName] as DiscountSysName from Common.DiscountSetupMaster WHERE DiscountSetupId IN (1168, 1045) AND CompanyId = 146;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 07:44:19,096 - [56431] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-08 07:44:19,763 - [56431] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 146 AND EnitityNumberType in ('SubWorkOrder'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 07:44:20,472 - [56431] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-08 07:44:21,144 - [56431] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-08 07:44:21,810 - [56431] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishHistory: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 07:44:22,540 - [56431] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationPublishHistory - __SPLIT__ 2026-06-08 07:44:23,333 - [56431] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishHistory in 1 batches - __SPLIT__ 2026-06-08 07:44:24,004 - [56431] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationPublishHistoryId, WorkOrderNo, ServiceSetupId FROM ServiceCore.WorkOrderAutoGenerationPublishHistory WHERE ServiceSetupId = 106132 AND WorkOrderNo IN ('474300', '7147851') AND GenerateWorkOrderHistoryId = 56431;... (Thread: ThreadPoolExecutor-5_0) - __SPLIT__ 2026-06-08 07:44:24,743 - [56431] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-08 07:44:25,415 - [56431] - src.utils.log - INFO - 🏁 Final merged rows: 2 - __SPLIT__ 2026-06-08 07:44:26,080 - [56431] - src.utils.log - INFO - Sequential Insertion in work order tables begin - __SPLIT__ 2026-06-08 07:44:26,757 - [56431] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-08 07:44:27,427 - [56431] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderServices: 6 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 07:44:28,147 - [56431] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 6) into ServiceCore.WorkOrderServices - __SPLIT__ 2026-06-08 07:44:28,916 - [56431] - src.utils.log - INFO - βœ… All 6 rows inserted successfully into ServiceCore.WorkOrderServices in 1 batches - __SPLIT__ 2026-06-08 07:44:29,871 - [56431] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-08 07:44:30,533 - [56431] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.WorkOrderAppliedDiscount: 3 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 07:44:31,238 - [56431] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into ServiceAuto.WorkOrderAppliedDiscount - __SPLIT__ 2026-06-08 07:44:31,998 - [56431] - src.utils.log - INFO - βœ… All 3 rows inserted successfully into ServiceAuto.WorkOrderAppliedDiscount in 1 batches - __SPLIT__ 2026-06-08 07:44:32,655 - [56431] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-08 07:44:33,314 - [56431] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderSalesPersonCommission: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 07:44:34,021 - [56431] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderSalesPersonCommission - __SPLIT__ 2026-06-08 07:44:34,780 - [56431] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderSalesPersonCommission in 1 batches - __SPLIT__ 2026-06-08 07:44:35,440 - [56431] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderCommissionAdjustment: - __SPLIT__ 2026-06-08 07:44:36,103 - [56431] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-08 07:44:36,762 - [56431] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderCrew: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 07:44:37,486 - [56431] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderCrew - __SPLIT__ 2026-06-08 07:44:38,246 - [56431] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderCrew in 1 batches - __SPLIT__ 2026-06-08 07:44:38,911 - [56431] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkorderSourceMapping: - __SPLIT__ 2026-06-08 07:44:39,578 - [56431] - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-06-08 07:44:40,244 - [56431] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-08 07:44:40,907 - [56431] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishServices: 6 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 07:44:41,636 - [56431] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 6) into ServiceCore.WorkOrderAutoGenerationPublishServices - __SPLIT__ 2026-06-08 07:44:42,435 - [56431] - src.utils.log - INFO - βœ… All 6 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishServices in 1 batches - __SPLIT__ 2026-06-08 07:44:43,098 - [56431] - 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 = 106132... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 07:44:44,067 - [56431] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-08 07:44:44,742 - [56431] - src.utils.log - INFO - Size of Transaction: 2 - __SPLIT__ 2026-06-08 07:44:45,408 - [56431] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 07:44:46,144 - [56431] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-06-08 07:44:46,955 - [56431] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-06-08 07:44:47,631 - [56431] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-06-08 07:44:48,299 - [56431] - 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-06-08 03:44:44.738';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 07:44:49,023 - [56431] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-08 07:44:49,686 - [56431] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 106132;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 07:44:50,380 - [56431] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-08 07:44:51,053 - [56431] - src.utils.log - INFO - πŸ“ Executing: UPDATE Billing.[Transaction] SET ModifiedBy = NULL WHERE ModifiedBy IN (12345678910,12345678911) AND CreatedDate = '2026-06-08 03:44:44.738'; ... (Thread: ThreadPoolExecutor-6_0) - __SPLIT__ 2026-06-08 07:44:51,843 - [56431] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-08 07:44:52,512 - [56431] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-08 07:44:53,177 - [56431] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 07:44:53,903 - [56431] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.Invoice - __SPLIT__ 2026-06-08 07:44:54,687 - [56431] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-06-08 07:44:55,350 - [56431] - src.utils.log - INFO - πŸ” Fetching data: SELECT InvoiceId, WorkOrderNo FROM Billing.Invoice i WHERE i.WorkOrderNo in ('56460', '56461')... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 07:44:56,106 - [56431] - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-06-08 07:44:56,781 - [56431] - 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 = 106132 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 07:44:57,471 - [56431] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-08 07:44:58,461 - [56431] - 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 = 106132 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 07:44:59,169 - [56431] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-08 07:44:59,851 - [56431] - 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 = 106132 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 07:45:00,563 - [56431] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-08 07:45:01,243 - [56431] - 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 = 106132 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 07:45:01,980 - [56431] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-08 07:45:02,683 - [56431] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 106132;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 07:45:03,383 - [56431] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-08 07:45:04,064 - [56431] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId, AppliedDiscountAmt as AppliedDiscountAmount,IsActive ,ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 106132;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 07:45:04,770 - [56431] - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-06-08 07:45:05,461 - [56431] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId,IsActive,DiscountAmount, IsDiscountPercent,DiscountPercent,DiscountDescription , ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 106132;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 07:45:06,166 - [56431] - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-06-08 07:45:06,857 - [56431] - src.utils.log - INFO - Sequential Insertion in invoice tables begin - __SPLIT__ 2026-06-08 07:45:07,538 - [56431] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-08 07:45:08,220 - [56431] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.AccountDiscountSetup: 4 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 07:45:08,985 - [56431] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 4) into Billing.AccountDiscountSetup - __SPLIT__ 2026-06-08 07:45:09,774 - [56431] - src.utils.log - INFO - βœ… All 4 rows inserted successfully into Billing.AccountDiscountSetup in 1 batches - __SPLIT__ 2026-06-08 07:45:10,458 - [56431] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-08 07:45:11,132 - [56431] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceCharges: 9 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 07:45:11,858 - [56431] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 9) into Billing.InvoiceCharges - __SPLIT__ 2026-06-08 07:45:12,940 - [56431] - src.utils.log - INFO - βœ… All 9 rows inserted successfully into Billing.InvoiceCharges in 1 batches - __SPLIT__ 2026-06-08 07:45:13,602 - [56431] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-08 07:45:14,269 - [56431] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.DiscountApplied: 4 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 07:45:14,980 - [56431] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 4) into Billing.DiscountApplied - __SPLIT__ 2026-06-08 07:45:15,743 - [56431] - src.utils.log - INFO - βœ… All 4 rows inserted successfully into Billing.DiscountApplied in 1 batches - __SPLIT__ 2026-06-08 07:45:16,412 - [56431] - src.utils.log - INFO - Invoice Publish Done - __SPLIT__ 2026-06-08 07:45:17,075 - [56431] - src.utils.log - INFO - Updating Next GenerationDate - __SPLIT__ 2026-06-08 07:45:17,745 - [56431] - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, MAX(NextWorkOrderGenerationDate) AS MaxNextWorkOrderGeneration FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 56431 GROUP BY ServiceSetupId; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 07:45:18,441 - [56431] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-08 07:45:19,115 - [56431] - src.utils.log - INFO - πŸ”„ Updating next gen date sequentially: inside update_next_workorder_generation - __SPLIT__ 2026-06-08 07:45:19,794 - [56431] - src.utils.log - INFO - πŸ›  Creating temp table #tbl_1d25515bee - __SPLIT__ 2026-06-08 07:45:20,495 - [56431] - src.utils.log - INFO - πŸ“Œ Bulk inserting 1 rows into #tbl_1d25515bee - __SPLIT__ 2026-06-08 07:45:21,188 - [56431] - src.utils.log - INFO - πŸ” Running MERGE update to apply changes - __SPLIT__ 2026-06-08 07:45:21,873 - [56431] - src.utils.log - INFO - βœ” SQL reported affected rows: 1 - __SPLIT__ 2026-06-08 07:45:22,568 - [56431] - src.utils.log - INFO - πŸ” Verified successfully updated 1 rows via #tbl_1d25515bee - __SPLIT__ 2026-06-08 07:45:23,235 - [56431] - src.utils.log - INFO - πŸŽ‰ Successfully updated NextGenerationDate using temp table #tbl_1d25515bee - __SPLIT__ 2026-06-08 07:45:23,898 - [56431] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 56431 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 07:45:24,585 - [56431] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-08 07:45:25,255 - [56431] - src.utils.log - INFO - Sequential deletion from temp tables begin - __SPLIT__ 2026-06-08 07:45:25,921 - [56431] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId in (578293, 578294) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 07:45:26,959 - [56431] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-08 07:45:27,620 - [56431] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId in (578293, 578294) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 07:45:28,368 - [56431] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-08 07:45:29,028 - [56431] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId in (578293, 578294) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 07:45:29,723 - [56431] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-08 07:45:30,385 - [56431] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId in (578293, 578294) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 07:45:31,092 - [56431] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-08 07:45:31,758 - [56431] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId in (578293, 578294) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 07:45:32,451 - [56431] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-08 07:45:33,114 - [56431] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (578293, 578294) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 07:45:34,088 - [56431] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-08 07:45:34,741 - [56431] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId in (578293, 578294) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 07:45:35,429 - [56431] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-08 07:45:36,094 - [56431] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (578293, 578294) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 07:45:36,870 - [56431] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-08 07:45:37,532 - [56431] - src.utils.log - INFO - Work order published ids: (578293, 578294) - __SPLIT__ 2026-06-08 07:45:38,192 - [56431] - src.utils.log - INFO - Time took to perform operation in publishing [56431]: 122.96 - __SPLIT__ 2026-06-08 07:45:38,851 - [56431] - src.utils.log - INFO - Publish Completed for GenerateWorkOrderHistoryId: [56431] - __SPLIT__ 2026-06-08 07:45:39,505 - [56431] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-06-08 03:45:37.532' WHERE CompanyId = 146 AND GenerateWorkOrderHistoryId = 56431;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 07:45:40,190 - [56431] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-08 11:07:36,558 - 56434 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=56434 - __SPLIT__ 2026-06-08 11:07:38,496 - 56434 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 56434 - __SPLIT__ 2026-06-08 11:07:39,184 - 56434 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-06-08 11:07:39,866 - 56434 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 11:07:40,723 - 56434 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-08 11:07:41,394 - 56434 - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-06-08 11:07:42,066 - 56434 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 56434;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 11:07:42,762 - 56434 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-08 11:07:43,445 - 56434 - 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 = 56434), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 56434), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 56434 AND ss.FrequencyScheduleId IS NOT NULL AND ss.IsActive = 1 AND ss.IsDeleted = 0 AND ss.Status <> 'Canceled' AND ((ss.OrderType = gw.OrderType) OR gw.OrderType IS NULL);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 11:07:44,171 - 56434 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-08 11:07:44,850 - 56434 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 56434;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 11:07:45,552 - 56434 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-08 11:07:46,228 - 56434 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-06-08 11:07:46,908 - 56434 - 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 = 14941... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 11:07:47,631 - 56434 - src.utils.log - INFO - βœ… Fetched 60 rows - __SPLIT__ 2026-06-08 11:07:48,308 - 56434 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-06-08 11:07:48,986 - 56434 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-06-08 11:07:49,667 - 56434 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 106137;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 11:07:50,370 - 56434 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-08 11:07:51,048 - 56434 - src.utils.log - INFO - πŸ” Fetching data: select ServiceDate, ServiceSetupId, IsInitial from serviceCore.WorkOrder wo inner join ServiceCore.WorkOrderStatus wos on wo.WoStatusId = wos.WoStatusId where ServiceDate >= '2026-06-08 00:00:00' and ServiceDate <= '2026-07-31 00:00:00' and ServiceSetupId = 106137 and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 11:07:52,047 - 56434 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-08 11:07:52,793 - 56434 - src.utils.log - INFO - Generating work orders for setup: 106137 - __SPLIT__ 2026-06-08 11:07:53,513 - 56434 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 11435;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 11:07:54,213 - 56434 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-08 11:07:54,894 - 56434 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 11422;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 11:07:55,598 - 56434 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-08 11:07:56,311 - 56434 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-06-08 11:07:56,985 - 56434 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=146 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 11:07:57,682 - 56434 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-08 11:07:58,358 - 56434 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-06-08 11:07:59,033 - 56434 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-06-08 11:07:59,709 - 56434 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 106137 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 11:08:00,484 - 56434 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-08 11:08:01,163 - 56434 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 106137 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 11:08:01,924 - 56434 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-08 11:08:02,602 - 56434 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 106137 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 11:08:03,379 - 56434 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-08 11:08:04,068 - 56434 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 106137 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 11:08:04,836 - 56434 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-08 11:08:05,509 - 56434 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 106137 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 11:08:06,568 - 56434 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-08 11:08:07,236 - 56434 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 106137 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 11:08:07,991 - 56434 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-08 11:08:08,666 - 56434 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 106137 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 11:08:09,380 - 56434 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-08 11:08:10,049 - 56434 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 106137 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 11:08:10,893 - 56434 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-08 11:08:11,562 - 56434 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-08 11:08:12,255 - 56434 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 8 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 11:08:13,050 - 56434 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 8) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-06-08 11:08:14,045 - 56434 - src.utils.log - INFO - βœ… All 8 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-06-08 11:08:14,719 - 56434 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 8 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-06-07 11:12:39.549' and ServiceSetupId = 106137... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 11:08:15,520 - 56434 - src.utils.log - INFO - βœ… Fetched 8 rows - __SPLIT__ 2026-06-08 11:08:16,196 - 56434 - src.utils.log - INFO - Id's of work order inserted to DB: [578310 578311 578312 578313 578314 578315 578316 578317] - __SPLIT__ 2026-06-08 11:08:16,865 - 56434 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 106137;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 11:08:17,570 - 56434 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-08 11:08:18,248 - 56434 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-06-08 11:08:18,925 - 56434 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId = 106137... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 11:08:19,631 - 56434 - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-06-08 11:08:20,307 - 56434 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId = 106137... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 11:08:21,300 - 56434 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-08 11:08:21,970 - 56434 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId = 106137... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 11:08:22,673 - 56434 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-08 11:08:23,340 - 56434 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId = 106137... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 11:08:24,038 - 56434 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-08 11:08:24,699 - 56434 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId = 106137... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 11:08:25,404 - 56434 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-08 11:08:26,073 - 56434 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId = 106137;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 11:08:26,773 - 56434 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-08 11:08:27,435 - 56434 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId = 106137;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 11:08:28,127 - 56434 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-08 11:08:28,787 - 56434 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId = 106137;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 11:08:29,501 - 56434 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-08 11:08:30,167 - 56434 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId = 106137;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 11:08:30,849 - 56434 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-08 11:08:31,526 - 56434 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-06-08 11:08:32,185 - 56434 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-06-08 11:08:32,847 - 56434 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-06-08 11:08:33,513 - 56434 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.CommunicationPreferencesServiceReportNotification: - __SPLIT__ 2026-06-08 11:08:34,177 - 56434 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-06-08 11:08:35,135 - 56434 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SetupAutoGenerationSourceMapping: - __SPLIT__ 2026-06-08 11:08:35,819 - 56434 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-06-08 11:08:36,496 - 56434 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-08 11:08:37,173 - 56434 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (578310, 578311, 578312, 578313, 578314, 578315, 578316, 578317) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 11:08:37,882 - 56434 - src.utils.log - INFO - βœ… Fetched 8 rows - __SPLIT__ 2026-06-08 11:08:38,561 - 56434 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationAppliedDiscount: 8 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 11:08:39,289 - 56434 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 8) into ServiceCore.WorkOrderAutoGenerationAppliedDiscount - __SPLIT__ 2026-06-08 11:08:40,070 - 56434 - src.utils.log - INFO - βœ… All 8 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationAppliedDiscount in 1 batches - __SPLIT__ 2026-06-08 11:08:40,745 - 56434 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-06-08 11:08:41,424 - 56434 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SubWorkOrderAutoGeneration: - __SPLIT__ 2026-06-08 11:08:42,106 - 56434 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-06-08 11:08:42,781 - 56434 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: - __SPLIT__ 2026-06-08 11:08:43,451 - 56434 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-06-08 11:08:44,126 - 56434 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: - __SPLIT__ 2026-06-08 11:08:44,801 - 56434 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-06-08 11:08:45,482 - 56434 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-08 11:08:46,164 - 56434 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (578310, 578311, 578312, 578313, 578314, 578315, 578316, 578317) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 11:08:46,862 - 56434 - src.utils.log - INFO - βœ… Fetched 8 rows - __SPLIT__ 2026-06-08 11:08:47,540 - 56434 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationCrews: 8 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 11:08:48,277 - 56434 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 8) into ServiceCore.WorkOrderAutoGenerationCrews - __SPLIT__ 2026-06-08 11:08:49,340 - 56434 - src.utils.log - INFO - βœ… All 8 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationCrews in 1 batches - __SPLIT__ 2026-06-08 11:08:50,004 - 56434 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-06-08 11:08:50,670 - 56434 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-08 11:08:51,337 - 56434 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 578310 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 11:08:52,026 - 56434 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-08 11:08:52,688 - 56434 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 11:08:53,399 - 56434 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-06-08 11:08:54,168 - 56434 - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-06-08 11:08:54,833 - 56434 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-06-08 11:08:55,492 - 56434 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-08 11:08:56,163 - 56434 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (578311, 578312, 578313, 578314, 578315, 578316, 578317) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 11:08:56,851 - 56434 - src.utils.log - INFO - βœ… Fetched 7 rows - __SPLIT__ 2026-06-08 11:08:57,517 - 56434 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 21 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 11:08:58,214 - 56434 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 21) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-06-08 11:08:59,008 - 56434 - src.utils.log - INFO - βœ… All 21 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-06-08 11:08:59,673 - 56434 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-06-08 11:09:00,340 - 56434 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 56434;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 11:09:01,032 - 56434 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-08 11:09:01,704 - 56434 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-06-08 11:09:02,371 - 56434 - src.utils.log - INFO - Time took to perform operation: 82.52 - __SPLIT__ 2026-06-08 11:09:25,156 - [56434] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[578310, 578311] user_id=44506 company_id=146 project_id=[56434] publish_all=False - __SPLIT__ 2026-06-08 11:09:26,124 - [56434] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[578310, 578311] user_id=44506 company_id=146 project_id=[56434] publish_all=False - __SPLIT__ 2026-06-08 11:09:26,800 - [56434] - src.utils.log - INFO - Sequential Work order publish in progress for GenerateWorkOrderHistoryId: [56434] - __SPLIT__ 2026-06-08 11:09:27,469 - [56434] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-06-08 11:09:28,132 - [56434] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 11:09:28,979 - [56434] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-08 11:09:29,646 - [56434] - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-06-08 11:09:30,313 - [56434] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'InProgress' WHERE CompanyId = 146 AND GenerateWorkOrderHistoryId = 56434;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 11:09:31,015 - [56434] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-08 11:09:31,683 - [56434] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (578310, 578311)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 11:09:32,388 - [56434] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-08 11:09:33,060 - [56434] - src.utils.log - INFO - Inside get_work_order_table - __SPLIT__ 2026-06-08 11:09:33,729 - [56434] - 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 = 106137 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 11:09:34,426 - [56434] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-08 11:09:35,098 - [56434] - 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 = 106137 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 11:09:35,802 - [56434] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-08 11:09:36,476 - [56434] - 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 = 106137 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 11:09:37,183 - [56434] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-08 11:09:37,854 - [56434] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder,BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 146;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 11:09:38,559 - [56434] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-08 11:09:39,233 - [56434] - 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-06-08 11:09:40,212 - [56434] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-08 11:09:40,889 - [56434] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder, BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 146; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 11:09:41,587 - [56434] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-08 11:09:42,261 - [56434] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 2 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 146 AND EnitityNumberType = 'WorkOrder'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 11:09:42,956 - [56434] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-08 11:09:43,618 - [56434] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 2 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 146 AND EnitityNumberType = 'Invoice'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 11:09:44,309 - [56434] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-08 11:09:45,018 - [56434] - 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 = 106137... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 11:09:45,723 - [56434] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-08 11:09:46,398 - [56434] - src.utils.log - INFO - πŸ” Fetching data: SELECT x.CompanyId FROM CRM.CompanyMaster x WHERE CompanyKey = 'Fortive';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 11:09:47,095 - [56434] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-08 11:09:47,763 - [56434] - src.utils.log - INFO - πŸ” Fetching data: SELECT CollectionStatus,IsHold,AccountNo FROM CRM.Account a WHERE a.AccountNo = '2339' and a.CompanyId = 134;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 11:09:48,456 - [56434] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-08 11:09:49,127 - [56434] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderNo FROM ServiceCore.WorkOrder WHERE WorkOrderNo IN ('56470', '56471') AND CompanyId = 146 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 11:09:49,852 - [56434] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-08 11:09:50,523 - [56434] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrder (skip triggers): 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 11:09:51,289 - [56434] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrder (triggers skipped) - __SPLIT__ 2026-06-08 11:09:52,111 - [56434] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrder in 1 batches (triggers skipped) - __SPLIT__ 2026-06-08 11:09:52,795 - [56434] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-06-08 11:09:53,462 - [56434] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.ServiceSetup SET IsInitialWoGenerated = 1 WHERE CompanyId = 146 AND ServiceSetupId = 106137;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 11:09:54,468 - [56434] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-08 11:09:55,152 - [56434] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkorderId, WorkOrderNo FROM ServiceCore.WorkOrder wo WHERE wo.WorkOrderNo IN ('56470', '56471') AND wo.AccountNumber = '2339' AND wo.CompanyId = 146 ... (Thread: ThreadPoolExecutor-8_0) - __SPLIT__ 2026-06-08 11:09:55,863 - [56434] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-08 11:09:56,540 - [56434] - src.utils.log - INFO - Sequential fetching temp table records - __SPLIT__ 2026-06-08 11:09:57,238 - [56434] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationServices woag WHERE woag.WorkOrderAutoGenerationId in (578310, 578311)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 11:09:57,967 - [56434] - src.utils.log - INFO - βœ… Fetched 5 rows - __SPLIT__ 2026-06-08 11:09:58,648 - [56434] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SubWorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (578310, 578311)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 11:09:59,370 - [56434] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-08 11:10:00,048 - [56434] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationCrews woag WHERE woag.WorkOrderAutoGenerationId in (578310, 578311)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 11:10:00,758 - [56434] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-08 11:10:01,446 - [56434] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationSalesPersonCommission woag WHERE woag.WorkOrderAutoGenerationId in (578310, 578311)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 11:10:02,160 - [56434] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-08 11:10:02,842 - [56434] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupAutoGenerationSourceMapping woag WHERE woag.WorkOrderAutoGenerationId in (578310, 578311)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 11:10:03,543 - [56434] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-08 11:10:04,224 - [56434] - 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 (578310, 578311)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 11:10:04,935 - [56434] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-08 11:10:05,620 - [56434] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from CRM.LeadNote woag WHERE woag.RefId in (578310, 578311) and woag.RefType = 'TempWorkorder';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 11:10:06,331 - [56434] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-08 11:10:07,021 - [56434] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment woagca WHERE woagca.WorkOrderAutoGenerationId in (578310, 578311);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 11:10:07,723 - [56434] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-08 11:10:08,693 - [56434] - src.utils.log - INFO - Updating temp tables - __SPLIT__ 2026-06-08 11:10:09,381 - [56434] - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyKey FROM Common.CompanyMaster cm WHERE CompanyId = 146;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 11:10:10,080 - [56434] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-08 11:10:10,757 - [56434] - src.utils.log - INFO - πŸ” Fetching data: Select DiscountSetupId, [SysName] as DiscountSysName from Common.DiscountSetupMaster WHERE DiscountSetupId IN (1045, 1168) AND CompanyId = 146;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 11:10:11,459 - [56434] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-08 11:10:12,133 - [56434] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 146 AND EnitityNumberType in ('SubWorkOrder'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 11:10:12,835 - [56434] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-08 11:10:13,528 - [56434] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-08 11:10:14,204 - [56434] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishHistory: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 11:10:14,945 - [56434] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationPublishHistory - __SPLIT__ 2026-06-08 11:10:15,733 - [56434] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishHistory in 1 batches - __SPLIT__ 2026-06-08 11:10:16,414 - [56434] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationPublishHistoryId, WorkOrderNo, ServiceSetupId FROM ServiceCore.WorkOrderAutoGenerationPublishHistory WHERE ServiceSetupId = 106137 AND WorkOrderNo IN ('685165', '3606779') AND GenerateWorkOrderHistoryId = 56434;... (Thread: ThreadPoolExecutor-9_0) - __SPLIT__ 2026-06-08 11:10:17,151 - [56434] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-08 11:10:17,829 - [56434] - src.utils.log - INFO - 🏁 Final merged rows: 2 - __SPLIT__ 2026-06-08 11:10:18,513 - [56434] - src.utils.log - INFO - Sequential Insertion in work order tables begin - __SPLIT__ 2026-06-08 11:10:19,190 - [56434] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-08 11:10:19,869 - [56434] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderServices: 5 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 11:10:20,592 - [56434] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 5) into ServiceCore.WorkOrderServices - __SPLIT__ 2026-06-08 11:10:21,368 - [56434] - src.utils.log - INFO - βœ… All 5 rows inserted successfully into ServiceCore.WorkOrderServices in 1 batches - __SPLIT__ 2026-06-08 11:10:22,051 - [56434] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-08 11:10:23,012 - [56434] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.WorkOrderAppliedDiscount: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 11:10:23,730 - [56434] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceAuto.WorkOrderAppliedDiscount - __SPLIT__ 2026-06-08 11:10:24,504 - [56434] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceAuto.WorkOrderAppliedDiscount in 1 batches - __SPLIT__ 2026-06-08 11:10:25,188 - [56434] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderSalesPersonCommission: - __SPLIT__ 2026-06-08 11:10:25,860 - [56434] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderCommissionAdjustment: - __SPLIT__ 2026-06-08 11:10:26,537 - [56434] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-08 11:10:27,209 - [56434] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderCrew: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 11:10:27,930 - [56434] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderCrew - __SPLIT__ 2026-06-08 11:10:28,700 - [56434] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderCrew in 1 batches - __SPLIT__ 2026-06-08 11:10:29,379 - [56434] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkorderSourceMapping: - __SPLIT__ 2026-06-08 11:10:30,048 - [56434] - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-06-08 11:10:30,732 - [56434] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-08 11:10:31,405 - [56434] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishServices: 5 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 11:10:32,129 - [56434] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 5) into ServiceCore.WorkOrderAutoGenerationPublishServices - __SPLIT__ 2026-06-08 11:10:32,903 - [56434] - src.utils.log - INFO - βœ… All 5 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishServices in 1 batches - __SPLIT__ 2026-06-08 11:10:33,578 - [56434] - 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 = 106137... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 11:10:34,275 - [56434] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-08 11:10:34,956 - [56434] - src.utils.log - INFO - Updating Next GenerationDate - __SPLIT__ 2026-06-08 11:10:35,632 - [56434] - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, MAX(NextWorkOrderGenerationDate) AS MaxNextWorkOrderGeneration FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 56434 GROUP BY ServiceSetupId; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 11:10:36,334 - [56434] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-08 11:10:37,304 - [56434] - src.utils.log - INFO - πŸ”„ Updating next gen date sequentially: inside update_next_workorder_generation - __SPLIT__ 2026-06-08 11:10:37,992 - [56434] - src.utils.log - INFO - πŸ›  Creating temp table #tbl_f669e4167c - __SPLIT__ 2026-06-08 11:10:38,686 - [56434] - src.utils.log - INFO - πŸ“Œ Bulk inserting 1 rows into #tbl_f669e4167c - __SPLIT__ 2026-06-08 11:10:39,381 - [56434] - src.utils.log - INFO - πŸ” Running MERGE update to apply changes - __SPLIT__ 2026-06-08 11:10:40,072 - [56434] - src.utils.log - INFO - βœ” SQL reported affected rows: 1 - __SPLIT__ 2026-06-08 11:10:40,762 - [56434] - src.utils.log - INFO - πŸ” Verified successfully updated 1 rows via #tbl_f669e4167c - __SPLIT__ 2026-06-08 11:10:41,430 - [56434] - src.utils.log - INFO - πŸŽ‰ Successfully updated NextGenerationDate using temp table #tbl_f669e4167c - __SPLIT__ 2026-06-08 11:10:42,103 - [56434] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 56434 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 11:10:42,800 - [56434] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-08 11:10:43,466 - [56434] - src.utils.log - INFO - Sequential deletion from temp tables begin - __SPLIT__ 2026-06-08 11:10:44,139 - [56434] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId in (578310, 578311) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 11:10:44,948 - [56434] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-08 11:10:45,626 - [56434] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId in (578310, 578311) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 11:10:46,365 - [56434] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-08 11:10:47,038 - [56434] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId in (578310, 578311) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 11:10:47,739 - [56434] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-08 11:10:48,417 - [56434] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId in (578310, 578311) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 11:10:49,130 - [56434] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-08 11:10:49,804 - [56434] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId in (578310, 578311) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 11:10:50,499 - [56434] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-08 11:10:51,464 - [56434] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (578310, 578311) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 11:10:52,202 - [56434] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-08 11:10:52,874 - [56434] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId in (578310, 578311) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 11:10:53,574 - [56434] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-08 11:10:54,251 - [56434] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (578310, 578311) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 11:10:55,128 - [56434] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-08 11:10:55,798 - [56434] - src.utils.log - INFO - Work order published ids: (578310, 578311) - __SPLIT__ 2026-06-08 11:10:56,484 - [56434] - src.utils.log - INFO - Time took to perform operation in publishing [56434]: 89.01 - __SPLIT__ 2026-06-08 11:10:57,158 - [56434] - src.utils.log - INFO - Publish Completed for GenerateWorkOrderHistoryId: [56434] - __SPLIT__ 2026-06-08 11:10:57,835 - [56434] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-06-08 07:10:55.798' WHERE CompanyId = 146 AND GenerateWorkOrderHistoryId = 56434;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 11:10:58,539 - [56434] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-08 12:07:39,256 - 56436 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=56436 - __SPLIT__ 2026-06-08 12:07:40,220 - 56436 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 56436 - __SPLIT__ 2026-06-08 12:07:40,905 - 56436 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-06-08 12:07:41,581 - 56436 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:07:42,431 - 56436 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-08 12:07:43,106 - 56436 - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-06-08 12:07:43,782 - 56436 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 56436;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:07:44,491 - 56436 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-08 12:07:45,165 - 56436 - 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 = 56436), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 56436), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 56436 AND ss.FrequencyScheduleId IS NOT NULL AND ss.IsActive = 1 AND ss.IsDeleted = 0 AND ss.Status <> 'Canceled' AND ((ss.OrderType = gw.OrderType) OR gw.OrderType IS NULL);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:07:46,027 - 56436 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-08 12:07:46,704 - 56436 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 56436;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:07:47,445 - 56436 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-08 12:07:48,125 - 56436 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-06-08 12:07:48,798 - 56436 - 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-06-08 12:07:49,641 - 56436 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-08 12:07:50,319 - 56436 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-06-08 12:07:50,991 - 56436 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-06-08 12:07:51,664 - 56436 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 106139;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:07:52,362 - 56436 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-08 12:07:53,037 - 56436 - src.utils.log - INFO - πŸ” Fetching data: select ServiceDate, ServiceSetupId, IsInitial from serviceCore.WorkOrder wo inner join ServiceCore.WorkOrderStatus wos on wo.WoStatusId = wos.WoStatusId where ServiceDate >= '2026-06-08 00:00:00' and ServiceDate <= '2026-12-31 00:00:00' and ServiceSetupId = 106139 and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:07:53,748 - 56436 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-08 12:07:54,783 - 56436 - src.utils.log - INFO - Generating work orders for setup: 106139 - __SPLIT__ 2026-06-08 12:07:55,584 - 56436 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 11512;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:07:56,285 - 56436 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-08 12:07:56,968 - 56436 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 11513;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:07:57,691 - 56436 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-08 12:07:58,395 - 56436 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-06-08 12:07:59,071 - 56436 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=146 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:07:59,773 - 56436 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-08 12:08:00,442 - 56436 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-06-08 12:08:01,117 - 56436 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-06-08 12:08:01,790 - 56436 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 106139 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:08:02,566 - 56436 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-08 12:08:03,237 - 56436 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 106139 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:08:04,037 - 56436 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-08 12:08:04,706 - 56436 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 106139 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:08:05,534 - 56436 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-08 12:08:06,210 - 56436 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 106139 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:08:07,024 - 56436 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-08 12:08:07,696 - 56436 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 106139 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:08:08,494 - 56436 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-08 12:08:09,470 - 56436 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 106139 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:08:10,299 - 56436 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-08 12:08:10,976 - 56436 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 106139 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:08:11,713 - 56436 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-08 12:08:12,387 - 56436 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 106139 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:08:13,327 - 56436 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-08 12:08:14,011 - 56436 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-08 12:08:14,693 - 56436 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 7 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:08:15,631 - 56436 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 7) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-06-08 12:08:16,625 - 56436 - src.utils.log - INFO - βœ… All 7 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-06-08 12:08:17,307 - 56436 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 7 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-06-07 11:12:39.549' and ServiceSetupId = 106139... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:08:18,094 - 56436 - src.utils.log - INFO - βœ… Fetched 7 rows - __SPLIT__ 2026-06-08 12:08:18,769 - 56436 - src.utils.log - INFO - Id's of work order inserted to DB: [578319 578320 578321 578322 578323 578324 578325] - __SPLIT__ 2026-06-08 12:08:19,442 - 56436 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 106139;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:08:20,152 - 56436 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-08 12:08:20,823 - 56436 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-06-08 12:08:21,504 - 56436 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId = 106139... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:08:22,213 - 56436 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-08 12:08:22,885 - 56436 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId = 106139... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:08:23,594 - 56436 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-08 12:08:24,551 - 56436 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId = 106139... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:08:25,263 - 56436 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-08 12:08:25,919 - 56436 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId = 106139... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:08:26,607 - 56436 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-08 12:08:27,267 - 56436 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId = 106139... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:08:27,958 - 56436 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-08 12:08:28,624 - 56436 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId = 106139;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:08:29,316 - 56436 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-08 12:08:29,979 - 56436 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId = 106139;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:08:30,670 - 56436 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-08 12:08:31,334 - 56436 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId = 106139;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:08:32,476 - 56436 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-08 12:08:33,131 - 56436 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId = 106139;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:08:33,824 - 56436 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-08 12:08:34,529 - 56436 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-06-08 12:08:35,196 - 56436 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-06-08 12:08:35,863 - 56436 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-06-08 12:08:36,518 - 56436 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.CommunicationPreferencesServiceReportNotification: - __SPLIT__ 2026-06-08 12:08:37,180 - 56436 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-06-08 12:08:37,844 - 56436 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SetupAutoGenerationSourceMapping: - __SPLIT__ 2026-06-08 12:08:38,812 - 56436 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-06-08 12:08:39,470 - 56436 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-08 12:08:40,133 - 56436 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (578320, 578321, 578322, 578323, 578324, 578325) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:08:40,820 - 56436 - src.utils.log - INFO - βœ… Fetched 6 rows - __SPLIT__ 2026-06-08 12:08:41,485 - 56436 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationAppliedDiscount: 6 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:08:42,207 - 56436 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 6) into ServiceCore.WorkOrderAutoGenerationAppliedDiscount - __SPLIT__ 2026-06-08 12:08:42,965 - 56436 - src.utils.log - INFO - βœ… All 6 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationAppliedDiscount in 1 batches - __SPLIT__ 2026-06-08 12:08:43,635 - 56436 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-06-08 12:08:44,296 - 56436 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SubWorkOrderAutoGeneration: - __SPLIT__ 2026-06-08 12:08:44,957 - 56436 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-06-08 12:08:45,618 - 56436 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: - __SPLIT__ 2026-06-08 12:08:46,279 - 56436 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-06-08 12:08:46,945 - 56436 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: - __SPLIT__ 2026-06-08 12:08:47,603 - 56436 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-06-08 12:08:48,269 - 56436 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-08 12:08:48,939 - 56436 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (578319, 578320, 578321, 578322, 578323, 578324, 578325) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:08:49,627 - 56436 - src.utils.log - INFO - βœ… Fetched 7 rows - __SPLIT__ 2026-06-08 12:08:50,284 - 56436 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationCrews: 7 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:08:51,002 - 56436 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 7) into ServiceCore.WorkOrderAutoGenerationCrews - __SPLIT__ 2026-06-08 12:08:51,765 - 56436 - src.utils.log - INFO - βœ… All 7 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationCrews in 1 batches - __SPLIT__ 2026-06-08 12:08:52,716 - 56436 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-06-08 12:08:53,391 - 56436 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-08 12:08:54,060 - 56436 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 578319 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:08:54,762 - 56436 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-08 12:08:55,438 - 56436 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:08:56,179 - 56436 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-06-08 12:08:56,994 - 56436 - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-06-08 12:08:57,669 - 56436 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-06-08 12:08:58,346 - 56436 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-08 12:08:59,017 - 56436 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (578320, 578321, 578322, 578323, 578324, 578325) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:08:59,721 - 56436 - src.utils.log - INFO - βœ… Fetched 6 rows - __SPLIT__ 2026-06-08 12:09:00,389 - 56436 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 12 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:09:01,089 - 56436 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 12) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-06-08 12:09:01,886 - 56436 - src.utils.log - INFO - βœ… All 12 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-06-08 12:09:02,556 - 56436 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-06-08 12:09:03,232 - 56436 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 56436;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:09:03,927 - 56436 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-08 12:09:04,597 - 56436 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-06-08 12:09:05,271 - 56436 - src.utils.log - INFO - Time took to perform operation: 83.69 - __SPLIT__ 2026-06-08 12:09:19,441 - [56436] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[] user_id=44506 company_id=146 project_id=[56436] publish_all=True - __SPLIT__ 2026-06-08 12:09:20,401 - [56436] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[] user_id=44506 company_id=146 project_id=[56436] publish_all=True - __SPLIT__ 2026-06-08 12:09:21,075 - [56436] - src.utils.log - INFO - Sequential Work order publish in progress for GenerateWorkOrderHistoryId: [56436] - __SPLIT__ 2026-06-08 12:09:21,741 - [56436] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-06-08 12:09:22,411 - [56436] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:09:23,253 - [56436] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-08 12:09:23,944 - [56436] - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-06-08 12:09:24,617 - [56436] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'InProgress' WHERE CompanyId = 146 AND GenerateWorkOrderHistoryId = 56436;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:09:25,317 - [56436] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-08 12:09:25,985 - [56436] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGeneration woag WHERE woag.GenerateWorkOrderHistoryId = 56436... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:09:26,724 - [56436] - src.utils.log - INFO - βœ… Fetched 7 rows - __SPLIT__ 2026-06-08 12:09:27,396 - [56436] - src.utils.log - INFO - Inside get_work_order_table - __SPLIT__ 2026-06-08 12:09:28,066 - [56436] - 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 = 106139 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:09:28,772 - [56436] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-08 12:09:29,438 - [56436] - 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 = 106139 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:09:30,136 - [56436] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-08 12:09:30,815 - [56436] - 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 = 106139 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:09:31,525 - [56436] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-08 12:09:32,197 - [56436] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder,BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 146;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:09:32,891 - [56436] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-08 12:09:33,560 - [56436] - 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-06-08 12:09:34,525 - [56436] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-08 12:09:35,184 - [56436] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder, BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 146; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:09:35,869 - [56436] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-08 12:09:36,529 - [56436] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 7 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 146 AND EnitityNumberType = 'WorkOrder'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:09:37,219 - [56436] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-08 12:09:37,888 - [56436] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 7 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 146 AND EnitityNumberType = 'Invoice'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:09:38,575 - [56436] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-08 12:09:39,243 - [56436] - 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 = 106139... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:09:39,939 - [56436] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-08 12:09:40,603 - [56436] - src.utils.log - INFO - πŸ” Fetching data: SELECT x.CompanyId FROM CRM.CompanyMaster x WHERE CompanyKey = 'Fortive';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:09:41,290 - [56436] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-08 12:09:41,955 - [56436] - src.utils.log - INFO - πŸ” Fetching data: SELECT CollectionStatus,IsHold,AccountNo FROM CRM.Account a WHERE a.AccountNo = '2340' and a.CompanyId = 134;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:09:42,645 - [56436] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-08 12:09:43,306 - [56436] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderNo FROM ServiceCore.WorkOrder WHERE WorkOrderNo IN ('56473', '56474', '56475', '56476', '56477', '56478', '56479') AND CompanyId = 146 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:09:44,001 - [56436] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-08 12:09:44,666 - [56436] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrder (skip triggers): 7 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:09:45,417 - [56436] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 7) into ServiceCore.WorkOrder (triggers skipped) - __SPLIT__ 2026-06-08 12:09:46,263 - [56436] - src.utils.log - INFO - βœ… All 7 rows inserted successfully into ServiceCore.WorkOrder in 1 batches (triggers skipped) - __SPLIT__ 2026-06-08 12:09:46,932 - [56436] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-06-08 12:09:47,594 - [56436] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.ServiceSetup SET IsInitialWoGenerated = 1 WHERE CompanyId = 146 AND ServiceSetupId = 106139;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:09:48,570 - [56436] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-08 12:09:49,221 - [56436] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkorderId, WorkOrderNo FROM ServiceCore.WorkOrder wo WHERE wo.WorkOrderNo IN ('56473', '56474', '56475', '56476', '56477', '56478', '56479') AND wo.AccountNumber = '2340' AND wo.CompanyId = 146 ... (Thread: ThreadPoolExecutor-7_0) - __SPLIT__ 2026-06-08 12:09:49,904 - [56436] - src.utils.log - INFO - βœ… Fetched 7 rows - __SPLIT__ 2026-06-08 12:09:50,562 - [56436] - src.utils.log - INFO - Sequential fetching temp table records - __SPLIT__ 2026-06-08 12:09:51,219 - [56436] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationServices woag WHERE woag.WorkOrderAutoGenerationId in (578319, 578320, 578321, 578322, 578323, 578324, 578325)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:09:51,960 - [56436] - src.utils.log - INFO - βœ… Fetched 14 rows - __SPLIT__ 2026-06-08 12:09:52,618 - [56436] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SubWorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (578319, 578320, 578321, 578322, 578323, 578324, 578325)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:09:53,644 - [56436] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-08 12:09:54,297 - [56436] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationCrews woag WHERE woag.WorkOrderAutoGenerationId in (578319, 578320, 578321, 578322, 578323, 578324, 578325)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:09:55,004 - [56436] - src.utils.log - INFO - βœ… Fetched 7 rows - __SPLIT__ 2026-06-08 12:09:55,657 - [56436] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationSalesPersonCommission woag WHERE woag.WorkOrderAutoGenerationId in (578319, 578320, 578321, 578322, 578323, 578324, 578325)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:09:56,336 - [56436] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-08 12:09:56,991 - [56436] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupAutoGenerationSourceMapping woag WHERE woag.WorkOrderAutoGenerationId in (578319, 578320, 578321, 578322, 578323, 578324, 578325)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:09:57,682 - [56436] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-08 12:09:58,334 - [56436] - 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 (578319, 578320, 578321, 578322, 578323, 578324, 578325)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:09:59,034 - [56436] - src.utils.log - INFO - βœ… Fetched 6 rows - __SPLIT__ 2026-06-08 12:09:59,683 - [56436] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from CRM.LeadNote woag WHERE woag.RefId in (578319, 578320, 578321, 578322, 578323, 578324, 578325) and woag.RefType = 'TempWorkorder';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:10:00,367 - [56436] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-08 12:10:01,013 - [56436] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment woagca WHERE woagca.WorkOrderAutoGenerationId in (578319, 578320, 578321, 578322, 578323, 578324, 578325);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:10:01,698 - [56436] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-08 12:10:02,659 - [56436] - src.utils.log - INFO - Updating temp tables - __SPLIT__ 2026-06-08 12:10:03,340 - [56436] - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyKey FROM Common.CompanyMaster cm WHERE CompanyId = 146;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:10:04,045 - [56436] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-08 12:10:04,713 - [56436] - src.utils.log - INFO - πŸ” Fetching data: Select DiscountSetupId, [SysName] as DiscountSysName from Common.DiscountSetupMaster WHERE DiscountSetupId = 1179 AND CompanyId = 146;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:10:05,411 - [56436] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-08 12:10:06,080 - [56436] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 146 AND EnitityNumberType in ('SubWorkOrder'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:10:06,776 - [56436] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-08 12:10:07,445 - [56436] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-08 12:10:08,133 - [56436] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishHistory: 7 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:10:08,859 - [56436] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 7) into ServiceCore.WorkOrderAutoGenerationPublishHistory - __SPLIT__ 2026-06-08 12:10:09,664 - [56436] - src.utils.log - INFO - βœ… All 7 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishHistory in 1 batches - __SPLIT__ 2026-06-08 12:10:10,329 - [56436] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationPublishHistoryId, WorkOrderNo, ServiceSetupId FROM ServiceCore.WorkOrderAutoGenerationPublishHistory WHERE ServiceSetupId = 106139 AND WorkOrderNo IN ('361810', '1871289', '9209529', '2180118', '9564290', '5378638', '4620203') AND GenerateWorkOrderHistoryId = 56436;... (Thread: ThreadPoolExecutor-8_0) - __SPLIT__ 2026-06-08 12:10:11,061 - [56436] - src.utils.log - INFO - βœ… Fetched 7 rows - __SPLIT__ 2026-06-08 12:10:11,727 - [56436] - src.utils.log - INFO - 🏁 Final merged rows: 7 - __SPLIT__ 2026-06-08 12:10:12,398 - [56436] - src.utils.log - INFO - Sequential Insertion in work order tables begin - __SPLIT__ 2026-06-08 12:10:13,066 - [56436] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-08 12:10:13,732 - [56436] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderServices: 14 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:10:14,456 - [56436] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 14) into ServiceCore.WorkOrderServices - __SPLIT__ 2026-06-08 12:10:15,256 - [56436] - src.utils.log - INFO - βœ… All 14 rows inserted successfully into ServiceCore.WorkOrderServices in 1 batches - __SPLIT__ 2026-06-08 12:10:15,923 - [56436] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-08 12:10:16,879 - [56436] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.WorkOrderAppliedDiscount: 6 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:10:17,602 - [56436] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 6) into ServiceAuto.WorkOrderAppliedDiscount - __SPLIT__ 2026-06-08 12:10:18,383 - [56436] - src.utils.log - INFO - βœ… All 6 rows inserted successfully into ServiceAuto.WorkOrderAppliedDiscount in 1 batches - __SPLIT__ 2026-06-08 12:10:19,053 - [56436] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderSalesPersonCommission: - __SPLIT__ 2026-06-08 12:10:19,722 - [56436] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderCommissionAdjustment: - __SPLIT__ 2026-06-08 12:10:20,391 - [56436] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-08 12:10:21,057 - [56436] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderCrew: 7 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:10:21,779 - [56436] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 7) into ServiceCore.WorkOrderCrew - __SPLIT__ 2026-06-08 12:10:22,550 - [56436] - src.utils.log - INFO - βœ… All 7 rows inserted successfully into ServiceCore.WorkOrderCrew in 1 batches - __SPLIT__ 2026-06-08 12:10:23,223 - [56436] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkorderSourceMapping: - __SPLIT__ 2026-06-08 12:10:23,897 - [56436] - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-06-08 12:10:24,564 - [56436] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-08 12:10:25,232 - [56436] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishServices: 14 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:10:25,944 - [56436] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 14) into ServiceCore.WorkOrderAutoGenerationPublishServices - __SPLIT__ 2026-06-08 12:10:26,741 - [56436] - src.utils.log - INFO - βœ… All 14 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishServices in 1 batches - __SPLIT__ 2026-06-08 12:10:27,413 - [56436] - 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 = 106139... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:10:28,108 - [56436] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-08 12:10:28,781 - [56436] - src.utils.log - INFO - Size of Transaction: 7 - __SPLIT__ 2026-06-08 12:10:29,456 - [56436] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 7 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:10:30,195 - [56436] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 7) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-06-08 12:10:31,285 - [56436] - src.utils.log - INFO - βœ… All 7 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-06-08 12:10:31,972 - [56436] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-06-08 12:10:32,641 - [56436] - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionId, ModifiedBy, TransactionDate as InvoiceDate from Billing.[Transaction] t WHERE t.ModifiedBy in (12345678910, 12345678911, 12345678912, 12345678913, 12345678914, 12345678915, 12345678916) and t.CompanyId = 146 AND t.TransactionType ='Invoice' AND t.CreatedDate = '2026-06-08 08:10:28.777';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:10:33,358 - [56436] - src.utils.log - INFO - βœ… Fetched 7 rows - __SPLIT__ 2026-06-08 12:10:34,029 - [56436] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 106139;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:10:34,726 - [56436] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-08 12:10:35,396 - [56436] - src.utils.log - INFO - πŸ“ Executing: UPDATE Billing.[Transaction] SET ModifiedBy = NULL WHERE ModifiedBy IN (12345678910,12345678911,12345678912,12345678913,12345678914,12345678915,12345678916) AND CreatedDate = '2026-06-08 08:10:28.777'; ... (Thread: ThreadPoolExecutor-9_0) - __SPLIT__ 2026-06-08 12:10:36,129 - [56436] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-08 12:10:36,808 - [56436] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-08 12:10:37,484 - [56436] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 7 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:10:38,207 - [56436] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 7) into Billing.Invoice - __SPLIT__ 2026-06-08 12:10:38,994 - [56436] - src.utils.log - INFO - βœ… All 7 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-06-08 12:10:39,668 - [56436] - src.utils.log - INFO - πŸ” Fetching data: SELECT InvoiceId, WorkOrderNo FROM Billing.Invoice i WHERE i.WorkOrderNo in ('56473', '56479', '56478', '56477', '56476', '56474', '56475')... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:10:40,446 - [56436] - src.utils.log - INFO - βœ… Fetched 14 rows - __SPLIT__ 2026-06-08 12:10:41,127 - [56436] - 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 = 106139 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:10:41,828 - [56436] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-08 12:10:42,501 - [56436] - 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 = 106139 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:10:43,199 - [56436] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-08 12:10:43,867 - [56436] - 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 = 106139 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:10:44,571 - [56436] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-08 12:10:45,532 - [56436] - 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 = 106139 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:10:46,240 - [56436] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-08 12:10:46,933 - [56436] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 106139;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:10:47,636 - [56436] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-08 12:10:48,322 - [56436] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId, AppliedDiscountAmt as AppliedDiscountAmount,IsActive ,ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 106139;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:10:49,022 - [56436] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-08 12:10:49,712 - [56436] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId,IsActive,DiscountAmount, IsDiscountPercent,DiscountPercent,DiscountDescription , ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 106139;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:10:50,415 - [56436] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-08 12:10:51,103 - [56436] - src.utils.log - INFO - Sequential Insertion in invoice tables begin - __SPLIT__ 2026-06-08 12:10:51,782 - [56436] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-08 12:10:52,455 - [56436] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.AccountDiscountSetup: 12 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:10:53,184 - [56436] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 12) into Billing.AccountDiscountSetup - __SPLIT__ 2026-06-08 12:10:53,962 - [56436] - src.utils.log - INFO - βœ… All 12 rows inserted successfully into Billing.AccountDiscountSetup in 1 batches - __SPLIT__ 2026-06-08 12:10:54,639 - [56436] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-08 12:10:55,313 - [56436] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceCharges: 28 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:10:56,048 - [56436] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 28) into Billing.InvoiceCharges - __SPLIT__ 2026-06-08 12:10:56,868 - [56436] - src.utils.log - INFO - βœ… All 28 rows inserted successfully into Billing.InvoiceCharges in 1 batches - __SPLIT__ 2026-06-08 12:10:57,543 - [56436] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-08 12:10:58,220 - [56436] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.DiscountApplied: 12 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:10:58,943 - [56436] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 12) into Billing.DiscountApplied - __SPLIT__ 2026-06-08 12:11:00,014 - [56436] - src.utils.log - INFO - βœ… All 12 rows inserted successfully into Billing.DiscountApplied in 1 batches - __SPLIT__ 2026-06-08 12:11:00,694 - [56436] - src.utils.log - INFO - Invoice Publish Done - __SPLIT__ 2026-06-08 12:11:01,376 - [56436] - src.utils.log - INFO - Updating Next GenerationDate - __SPLIT__ 2026-06-08 12:11:02,056 - [56436] - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, MAX(NextWorkOrderGenerationDate) AS MaxNextWorkOrderGeneration FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 56436 GROUP BY ServiceSetupId; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:11:02,763 - [56436] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-08 12:11:03,450 - [56436] - src.utils.log - INFO - πŸ”„ Updating next gen date sequentially: inside update_next_workorder_generation - __SPLIT__ 2026-06-08 12:11:04,149 - [56436] - src.utils.log - INFO - πŸ›  Creating temp table #tbl_0b6331ddc3 - __SPLIT__ 2026-06-08 12:11:04,852 - [56436] - src.utils.log - INFO - πŸ“Œ Bulk inserting 1 rows into #tbl_0b6331ddc3 - __SPLIT__ 2026-06-08 12:11:05,556 - [56436] - src.utils.log - INFO - πŸ” Running MERGE update to apply changes - __SPLIT__ 2026-06-08 12:11:06,265 - [56436] - src.utils.log - INFO - βœ” SQL reported affected rows: 1 - __SPLIT__ 2026-06-08 12:11:06,966 - [56436] - src.utils.log - INFO - πŸ” Verified successfully updated 1 rows via #tbl_0b6331ddc3 - __SPLIT__ 2026-06-08 12:11:07,652 - [56436] - src.utils.log - INFO - πŸŽ‰ Successfully updated NextGenerationDate using temp table #tbl_0b6331ddc3 - __SPLIT__ 2026-06-08 12:11:08,329 - [56436] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 56436 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:11:09,033 - [56436] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-08 12:11:09,712 - [56436] - src.utils.log - INFO - Sequential deletion from temp tables begin - __SPLIT__ 2026-06-08 12:11:10,397 - [56436] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId in (578319, 578320, 578321, 578322, 578323, 578324, 578325) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:11:11,168 - [56436] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-08 12:11:11,870 - [56436] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId in (578319, 578320, 578321, 578322, 578323, 578324, 578325) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:11:12,620 - [56436] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-08 12:11:13,303 - [56436] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId in (578319, 578320, 578321, 578322, 578323, 578324, 578325) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:11:14,311 - [56436] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-08 12:11:14,990 - [56436] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId in (578319, 578320, 578321, 578322, 578323, 578324, 578325) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:11:15,715 - [56436] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-08 12:11:16,385 - [56436] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId in (578319, 578320, 578321, 578322, 578323, 578324, 578325) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:11:17,098 - [56436] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-08 12:11:17,768 - [56436] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (578319, 578320, 578321, 578322, 578323, 578324, 578325) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:11:18,525 - [56436] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-08 12:11:19,191 - [56436] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId in (578319, 578320, 578321, 578322, 578323, 578324, 578325) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:11:19,887 - [56436] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-08 12:11:20,561 - [56436] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (578319, 578320, 578321, 578322, 578323, 578324, 578325) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:11:21,570 - [56436] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-08 12:11:22,250 - [56436] - src.utils.log - INFO - Work order published ids: (578319, 578320, 578321, 578322, 578323, 578324, 578325) - __SPLIT__ 2026-06-08 12:11:22,919 - [56436] - src.utils.log - INFO - Time took to perform operation in publishing [56436]: 121.18 - __SPLIT__ 2026-06-08 12:11:23,592 - [56436] - src.utils.log - INFO - Publish Completed for GenerateWorkOrderHistoryId: [56436] - __SPLIT__ 2026-06-08 12:11:24,266 - [56436] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-06-08 08:11:22.250' WHERE CompanyId = 146 AND GenerateWorkOrderHistoryId = 56436;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:11:24,966 - [56436] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-08 12:35:07,546 - 56437 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=56437 - __SPLIT__ 2026-06-08 12:35:08,499 - 56437 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 56437 - __SPLIT__ 2026-06-08 12:35:09,159 - 56437 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-06-08 12:35:09,821 - 56437 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:35:10,667 - 56437 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-08 12:35:11,324 - 56437 - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-06-08 12:35:11,984 - 56437 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 56437;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:35:12,668 - 56437 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-08 12:35:13,338 - 56437 - 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 = 56437), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 56437), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 56437 AND ss.FrequencyScheduleId IS NOT NULL AND ss.IsActive = 1 AND ss.IsDeleted = 0 AND ss.Status <> 'Canceled' AND ((ss.OrderType = gw.OrderType) OR gw.OrderType IS NULL);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:35:14,053 - 56437 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-08 12:35:14,708 - 56437 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 56437;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:35:15,396 - 56437 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-08 12:35:16,057 - 56437 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-06-08 12:35:16,719 - 56437 - 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-06-08 12:35:17,411 - 56437 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-08 12:35:18,072 - 56437 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-06-08 12:35:18,739 - 56437 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-06-08 12:35:19,404 - 56437 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 106140;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:35:20,090 - 56437 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-08 12:35:20,755 - 56437 - src.utils.log - INFO - πŸ” Fetching data: select ServiceDate, ServiceSetupId, IsInitial from serviceCore.WorkOrder wo inner join ServiceCore.WorkOrderStatus wos on wo.WoStatusId = wos.WoStatusId where ServiceDate >= '2026-06-08 00:00:00' and ServiceDate <= '2026-12-31 00:00:00' and ServiceSetupId = 106140 and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:35:21,453 - 56437 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-08 12:35:22,494 - 56437 - src.utils.log - INFO - Generating work orders for setup: 106140 - __SPLIT__ 2026-06-08 12:35:23,208 - 56437 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 11519;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:35:24,025 - 56437 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-08 12:35:24,717 - 56437 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 11458;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:35:25,416 - 56437 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-08 12:35:26,131 - 56437 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-06-08 12:35:26,810 - 56437 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=146 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:35:27,518 - 56437 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-08 12:35:28,194 - 56437 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-06-08 12:35:28,869 - 56437 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-06-08 12:35:29,539 - 56437 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 106140 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:35:30,304 - 56437 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-08 12:35:30,974 - 56437 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 106140 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:35:31,727 - 56437 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-08 12:35:32,404 - 56437 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 106140 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:35:33,163 - 56437 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-08 12:35:33,844 - 56437 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 106140 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:35:34,607 - 56437 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-08 12:35:35,283 - 56437 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 106140 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:35:36,109 - 56437 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-08 12:35:37,078 - 56437 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 106140 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:35:37,837 - 56437 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-08 12:35:38,515 - 56437 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 106140 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:35:39,219 - 56437 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-08 12:35:39,890 - 56437 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 106140 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:35:40,669 - 56437 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-08 12:35:41,343 - 56437 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-08 12:35:42,015 - 56437 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 7 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:35:42,757 - 56437 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 7) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-06-08 12:35:43,564 - 56437 - src.utils.log - INFO - βœ… All 7 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-06-08 12:35:44,232 - 56437 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 7 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-06-07 11:12:39.578' and ServiceSetupId = 106140... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:35:44,962 - 56437 - src.utils.log - INFO - βœ… Fetched 7 rows - __SPLIT__ 2026-06-08 12:35:45,636 - 56437 - src.utils.log - INFO - Id's of work order inserted to DB: [578326 578327 578328 578329 578330 578331 578332] - __SPLIT__ 2026-06-08 12:35:46,313 - 56437 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 106140;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:35:47,012 - 56437 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-08 12:35:47,686 - 56437 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-06-08 12:35:48,362 - 56437 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId = 106140... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:35:49,057 - 56437 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-08 12:35:49,736 - 56437 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId = 106140... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:35:50,437 - 56437 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-08 12:35:51,411 - 56437 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId = 106140... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:35:52,115 - 56437 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-08 12:35:52,791 - 56437 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId = 106140... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:35:53,496 - 56437 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-08 12:35:54,179 - 56437 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId = 106140... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:35:54,894 - 56437 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-08 12:35:55,576 - 56437 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId = 106140;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:35:56,283 - 56437 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-08 12:35:56,962 - 56437 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId = 106140;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:35:57,665 - 56437 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-08 12:35:58,341 - 56437 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId = 106140;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:35:59,675 - 56437 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-08 12:36:00,352 - 56437 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId = 106140;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:36:01,060 - 56437 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-08 12:36:01,746 - 56437 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-06-08 12:36:02,421 - 56437 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-06-08 12:36:03,095 - 56437 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-06-08 12:36:03,768 - 56437 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.CommunicationPreferencesServiceReportNotification: - __SPLIT__ 2026-06-08 12:36:04,448 - 56437 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-06-08 12:36:05,128 - 56437 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SetupAutoGenerationSourceMapping: - __SPLIT__ 2026-06-08 12:36:06,097 - 56437 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-06-08 12:36:06,768 - 56437 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationAppliedDiscount: - __SPLIT__ 2026-06-08 12:36:07,433 - 56437 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-06-08 12:36:08,103 - 56437 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SubWorkOrderAutoGeneration: - __SPLIT__ 2026-06-08 12:36:08,770 - 56437 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-06-08 12:36:09,438 - 56437 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: - __SPLIT__ 2026-06-08 12:36:10,113 - 56437 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-06-08 12:36:10,784 - 56437 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: - __SPLIT__ 2026-06-08 12:36:11,452 - 56437 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-06-08 12:36:12,123 - 56437 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-08 12:36:12,792 - 56437 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (578326, 578327, 578328, 578329, 578330, 578331, 578332) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:36:13,492 - 56437 - src.utils.log - INFO - βœ… Fetched 7 rows - __SPLIT__ 2026-06-08 12:36:14,191 - 56437 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationCrews: 7 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:36:14,906 - 56437 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 7) into ServiceCore.WorkOrderAutoGenerationCrews - __SPLIT__ 2026-06-08 12:36:15,671 - 56437 - src.utils.log - INFO - βœ… All 7 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationCrews in 1 batches - __SPLIT__ 2026-06-08 12:36:16,345 - 56437 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-06-08 12:36:17,017 - 56437 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-08 12:36:17,691 - 56437 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 578326 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:36:18,396 - 56437 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-08 12:36:19,066 - 56437 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:36:20,065 - 56437 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-06-08 12:36:20,838 - 56437 - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-06-08 12:36:21,522 - 56437 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-06-08 12:36:22,203 - 56437 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-08 12:36:22,889 - 56437 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (578327, 578328, 578329, 578330, 578331, 578332) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:36:23,599 - 56437 - src.utils.log - INFO - βœ… Fetched 6 rows - __SPLIT__ 2026-06-08 12:36:24,271 - 56437 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 12 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:36:24,984 - 56437 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 12) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-06-08 12:36:25,755 - 56437 - src.utils.log - INFO - βœ… All 12 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-06-08 12:36:26,430 - 56437 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-06-08 12:36:27,112 - 56437 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 56437;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:36:27,816 - 56437 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-08 12:36:28,492 - 56437 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-06-08 12:36:29,171 - 56437 - src.utils.log - INFO - Time took to perform operation: 79.33 - __SPLIT__ 2026-06-08 12:48:19,973 - 56438 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=56438 - __SPLIT__ 2026-06-08 12:48:21,889 - 56438 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 56438 - __SPLIT__ 2026-06-08 12:48:22,565 - 56438 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-06-08 12:48:23,233 - 56438 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:48:24,083 - 56438 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-08 12:48:24,755 - 56438 - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-06-08 12:48:25,430 - 56438 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 56438;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:48:26,142 - 56438 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-08 12:48:26,813 - 56438 - 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 = 56438), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 56438), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 56438 AND ss.FrequencyScheduleId IS NOT NULL AND ss.IsActive = 1 AND ss.IsDeleted = 0 AND ss.Status <> 'Canceled' AND ((ss.OrderType = gw.OrderType) OR gw.OrderType IS NULL);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:48:27,542 - 56438 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-08 12:48:28,211 - 56438 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 56438;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:48:28,906 - 56438 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-08 12:48:29,591 - 56438 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-06-08 12:48:30,261 - 56438 - 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-06-08 12:48:30,963 - 56438 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-08 12:48:31,623 - 56438 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-06-08 12:48:32,296 - 56438 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-06-08 12:48:32,974 - 56438 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 106141;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:48:33,674 - 56438 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-08 12:48:34,345 - 56438 - src.utils.log - INFO - πŸ” Fetching data: select ServiceDate, ServiceSetupId, IsInitial from serviceCore.WorkOrder wo inner join ServiceCore.WorkOrderStatus wos on wo.WoStatusId = wos.WoStatusId where ServiceDate >= '2026-06-08 00:00:00' and ServiceDate <= '2026-07-31 00:00:00' and ServiceSetupId = 106141 and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:48:35,338 - 56438 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-08 12:48:36,221 - 56438 - src.utils.log - INFO - Generating work orders for setup: 106141 - __SPLIT__ 2026-06-08 12:48:36,914 - 56438 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 11459;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:48:37,617 - 56438 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-08 12:48:38,329 - 56438 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 11460;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:48:39,033 - 56438 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-08 12:48:39,748 - 56438 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-06-08 12:48:40,423 - 56438 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=146 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:48:41,128 - 56438 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-08 12:48:41,802 - 56438 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-06-08 12:48:42,486 - 56438 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-06-08 12:48:43,159 - 56438 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 106141 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:48:43,915 - 56438 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-08 12:48:44,594 - 56438 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 106141 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:48:45,327 - 56438 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-08 12:48:46,004 - 56438 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 106141 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:48:46,737 - 56438 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-08 12:48:47,422 - 56438 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 106141 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:48:48,152 - 56438 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-08 12:48:48,835 - 56438 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 106141 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:48:49,858 - 56438 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-08 12:48:50,526 - 56438 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 106141 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:48:51,283 - 56438 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-08 12:48:51,954 - 56438 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 106141 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:48:52,695 - 56438 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-08 12:48:53,369 - 56438 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 106141 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:48:54,135 - 56438 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-08 12:48:54,807 - 56438 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-08 12:48:55,472 - 56438 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:48:56,210 - 56438 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-06-08 12:48:57,005 - 56438 - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-06-08 12:48:57,679 - 56438 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 2 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-06-07 11:12:39.587' and ServiceSetupId = 106141... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:48:58,418 - 56438 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-08 12:48:59,086 - 56438 - src.utils.log - INFO - Id's of work order inserted to DB: [578333 578334] - __SPLIT__ 2026-06-08 12:48:59,750 - 56438 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 106141;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:49:00,438 - 56438 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-08 12:49:01,112 - 56438 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-06-08 12:49:01,785 - 56438 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId = 106141... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:49:02,479 - 56438 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-08 12:49:03,155 - 56438 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId = 106141... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:49:04,137 - 56438 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-08 12:49:04,804 - 56438 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId = 106141... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:49:05,495 - 56438 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-08 12:49:06,160 - 56438 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId = 106141... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:49:06,853 - 56438 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-08 12:49:07,520 - 56438 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId = 106141... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:49:08,214 - 56438 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-08 12:49:08,877 - 56438 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId = 106141;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:49:09,571 - 56438 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-08 12:49:10,237 - 56438 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId = 106141;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:49:10,927 - 56438 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-08 12:49:11,591 - 56438 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId = 106141;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:49:12,484 - 56438 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-08 12:49:13,139 - 56438 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId = 106141;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:49:13,821 - 56438 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-08 12:49:14,494 - 56438 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-06-08 12:49:15,153 - 56438 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-06-08 12:49:15,822 - 56438 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-06-08 12:49:16,499 - 56438 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.CommunicationPreferencesServiceReportNotification: - __SPLIT__ 2026-06-08 12:49:17,169 - 56438 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-06-08 12:49:18,111 - 56438 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SetupAutoGenerationSourceMapping: - __SPLIT__ 2026-06-08 12:49:18,773 - 56438 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-06-08 12:49:19,439 - 56438 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationAppliedDiscount: - __SPLIT__ 2026-06-08 12:49:20,102 - 56438 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-06-08 12:49:20,772 - 56438 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SubWorkOrderAutoGeneration: - __SPLIT__ 2026-06-08 12:49:21,455 - 56438 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-06-08 12:49:22,118 - 56438 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: - __SPLIT__ 2026-06-08 12:49:22,775 - 56438 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-06-08 12:49:23,432 - 56438 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: - __SPLIT__ 2026-06-08 12:49:24,094 - 56438 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-06-08 12:49:24,761 - 56438 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-08 12:49:25,421 - 56438 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (578333, 578334) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:49:26,100 - 56438 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-08 12:49:26,759 - 56438 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationCrews: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:49:27,467 - 56438 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationCrews - __SPLIT__ 2026-06-08 12:49:28,226 - 56438 - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationCrews in 1 batches - __SPLIT__ 2026-06-08 12:49:28,886 - 56438 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-06-08 12:49:29,552 - 56438 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-08 12:49:30,216 - 56438 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 578333 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:49:30,910 - 56438 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-08 12:49:31,846 - 56438 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:49:32,545 - 56438 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-06-08 12:49:33,320 - 56438 - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-06-08 12:49:33,983 - 56438 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-06-08 12:49:34,642 - 56438 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-08 12:49:35,306 - 56438 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 578334 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:49:36,001 - 56438 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-08 12:49:36,666 - 56438 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:49:37,366 - 56438 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-06-08 12:49:38,145 - 56438 - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-06-08 12:49:38,804 - 56438 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-06-08 12:49:39,467 - 56438 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 56438;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:49:40,159 - 56438 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-08 12:49:40,819 - 56438 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-06-08 12:49:41,484 - 56438 - src.utils.log - INFO - Time took to perform operation: 78.25 - __SPLIT__ 2026-06-08 12:49:52,664 - [56438] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[578333, 578334] user_id=44506 company_id=146 project_id=[56438] publish_all=False - __SPLIT__ 2026-06-08 12:49:53,626 - [56438] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[578333, 578334] user_id=44506 company_id=146 project_id=[56438] publish_all=False - __SPLIT__ 2026-06-08 12:49:54,304 - [56438] - src.utils.log - INFO - Sequential Work order publish in progress for GenerateWorkOrderHistoryId: [56438] - __SPLIT__ 2026-06-08 12:49:54,976 - [56438] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-06-08 12:49:55,651 - [56438] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:49:56,528 - [56438] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-08 12:49:57,199 - [56438] - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-06-08 12:49:57,869 - [56438] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'InProgress' WHERE CompanyId = 146 AND GenerateWorkOrderHistoryId = 56438;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:49:58,568 - [56438] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-08 12:49:59,241 - [56438] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (578333, 578334)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:49:59,943 - [56438] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-08 12:50:00,614 - [56438] - src.utils.log - INFO - Inside get_work_order_table - __SPLIT__ 2026-06-08 12:50:01,291 - [56438] - 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 = 106141 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:50:02,002 - [56438] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-08 12:50:02,662 - [56438] - 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 = 106141 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:50:03,370 - [56438] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-08 12:50:04,043 - [56438] - 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 = 106141 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:50:04,775 - [56438] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-08 12:50:05,454 - [56438] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder,BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 146;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:50:06,156 - [56438] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-08 12:50:06,829 - [56438] - 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-06-08 12:50:07,820 - [56438] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-08 12:50:08,492 - [56438] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder, BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 146; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:50:09,190 - [56438] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-08 12:50:09,859 - [56438] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 2 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 146 AND EnitityNumberType = 'WorkOrder'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:50:10,575 - [56438] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-08 12:50:11,248 - [56438] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 2 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 146 AND EnitityNumberType = 'Invoice'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:50:11,949 - [56438] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-08 12:50:12,625 - [56438] - 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 = 106141... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:50:13,332 - [56438] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-08 12:50:14,016 - [56438] - src.utils.log - INFO - πŸ” Fetching data: SELECT x.CompanyId FROM CRM.CompanyMaster x WHERE CompanyKey = 'Fortive';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:50:14,712 - [56438] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-08 12:50:15,384 - [56438] - src.utils.log - INFO - πŸ” Fetching data: SELECT CollectionStatus,IsHold,AccountNo FROM CRM.Account a WHERE a.AccountNo = '2341' and a.CompanyId = 134;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:50:16,087 - [56438] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-08 12:50:16,765 - [56438] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderNo FROM ServiceCore.WorkOrder WHERE WorkOrderNo IN ('56482', '56483') AND CompanyId = 146 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:50:17,473 - [56438] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-08 12:50:18,144 - [56438] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrder (skip triggers): 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:50:18,905 - [56438] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrder (triggers skipped) - __SPLIT__ 2026-06-08 12:50:19,709 - [56438] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrder in 1 batches (triggers skipped) - __SPLIT__ 2026-06-08 12:50:20,395 - [56438] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-06-08 12:50:21,068 - [56438] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.ServiceSetup SET IsInitialWoGenerated = 1 WHERE CompanyId = 146 AND ServiceSetupId = 106141;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:50:22,068 - [56438] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-08 12:50:22,745 - [56438] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkorderId, WorkOrderNo FROM ServiceCore.WorkOrder wo WHERE wo.WorkOrderNo IN ('56482', '56483') AND wo.AccountNumber = '2341' AND wo.CompanyId = 146 ... (Thread: ThreadPoolExecutor-3_0) - __SPLIT__ 2026-06-08 12:50:23,466 - [56438] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-08 12:50:24,144 - [56438] - src.utils.log - INFO - Sequential fetching temp table records - __SPLIT__ 2026-06-08 12:50:24,831 - [56438] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationServices woag WHERE woag.WorkOrderAutoGenerationId in (578333, 578334)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:50:25,577 - [56438] - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-06-08 12:50:26,259 - [56438] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SubWorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (578333, 578334)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:50:27,250 - [56438] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-08 12:50:27,935 - [56438] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationCrews woag WHERE woag.WorkOrderAutoGenerationId in (578333, 578334)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:50:28,676 - [56438] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-08 12:50:29,359 - [56438] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationSalesPersonCommission woag WHERE woag.WorkOrderAutoGenerationId in (578333, 578334)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:50:30,069 - [56438] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-08 12:50:30,742 - [56438] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupAutoGenerationSourceMapping woag WHERE woag.WorkOrderAutoGenerationId in (578333, 578334)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:50:31,448 - [56438] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-08 12:50:32,129 - [56438] - 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 (578333, 578334)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:50:32,858 - [56438] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-08 12:50:33,540 - [56438] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from CRM.LeadNote woag WHERE woag.RefId in (578333, 578334) and woag.RefType = 'TempWorkorder';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:50:34,246 - [56438] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-08 12:50:34,923 - [56438] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment woagca WHERE woagca.WorkOrderAutoGenerationId in (578333, 578334);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:50:35,631 - [56438] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-08 12:50:36,596 - [56438] - src.utils.log - INFO - Updating temp tables - __SPLIT__ 2026-06-08 12:50:37,282 - [56438] - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyKey FROM Common.CompanyMaster cm WHERE CompanyId = 146;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:50:37,984 - [56438] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-08 12:50:38,658 - [56438] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 146 AND EnitityNumberType in ('SubWorkOrder'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:50:39,365 - [56438] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-08 12:50:40,041 - [56438] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-08 12:50:40,713 - [56438] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishHistory: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:50:41,456 - [56438] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationPublishHistory - __SPLIT__ 2026-06-08 12:50:42,291 - [56438] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishHistory in 1 batches - __SPLIT__ 2026-06-08 12:50:42,966 - [56438] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationPublishHistoryId, WorkOrderNo, ServiceSetupId FROM ServiceCore.WorkOrderAutoGenerationPublishHistory WHERE ServiceSetupId = 106141 AND WorkOrderNo IN ('680799', '8615073') AND GenerateWorkOrderHistoryId = 56438;... (Thread: ThreadPoolExecutor-4_0) - __SPLIT__ 2026-06-08 12:50:43,718 - [56438] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-08 12:50:44,391 - [56438] - src.utils.log - INFO - 🏁 Final merged rows: 2 - __SPLIT__ 2026-06-08 12:50:45,067 - [56438] - src.utils.log - INFO - Sequential Insertion in work order tables begin - __SPLIT__ 2026-06-08 12:50:45,743 - [56438] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-08 12:50:46,414 - [56438] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderServices: 4 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:50:47,135 - [56438] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 4) into ServiceCore.WorkOrderServices - __SPLIT__ 2026-06-08 12:50:47,923 - [56438] - src.utils.log - INFO - βœ… All 4 rows inserted successfully into ServiceCore.WorkOrderServices in 1 batches - __SPLIT__ 2026-06-08 12:50:48,602 - [56438] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderAppliedDiscount: - __SPLIT__ 2026-06-08 12:50:49,275 - [56438] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderSalesPersonCommission: - __SPLIT__ 2026-06-08 12:50:49,954 - [56438] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderCommissionAdjustment: - __SPLIT__ 2026-06-08 12:50:50,908 - [56438] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-08 12:50:51,576 - [56438] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderCrew: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:50:52,299 - [56438] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderCrew - __SPLIT__ 2026-06-08 12:50:53,079 - [56438] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderCrew in 1 batches - __SPLIT__ 2026-06-08 12:50:53,747 - [56438] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkorderSourceMapping: - __SPLIT__ 2026-06-08 12:50:54,418 - [56438] - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-06-08 12:50:55,079 - [56438] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-08 12:50:55,753 - [56438] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishServices: 4 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:50:56,478 - [56438] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 4) into ServiceCore.WorkOrderAutoGenerationPublishServices - __SPLIT__ 2026-06-08 12:50:57,259 - [56438] - src.utils.log - INFO - βœ… All 4 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishServices in 1 batches - __SPLIT__ 2026-06-08 12:50:57,930 - [56438] - 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 = 106141... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:50:58,626 - [56438] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-08 12:50:59,305 - [56438] - src.utils.log - INFO - Size of Transaction: 2 - __SPLIT__ 2026-06-08 12:50:59,975 - [56438] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:51:00,705 - [56438] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-06-08 12:51:01,486 - [56438] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-06-08 12:51:02,170 - [56438] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-06-08 12:51:02,835 - [56438] - 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-06-08 08:50:59.301';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:51:03,545 - [56438] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-08 12:51:04,214 - [56438] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 106141;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:51:05,211 - [56438] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-08 12:51:05,901 - [56438] - src.utils.log - INFO - πŸ“ Executing: UPDATE Billing.[Transaction] SET ModifiedBy = NULL WHERE ModifiedBy IN (12345678910,12345678911) AND CreatedDate = '2026-06-08 08:50:59.301'; ... (Thread: ThreadPoolExecutor-5_0) - __SPLIT__ 2026-06-08 12:51:06,661 - [56438] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-08 12:51:07,346 - [56438] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-08 12:51:08,027 - [56438] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:51:08,763 - [56438] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.Invoice - __SPLIT__ 2026-06-08 12:51:09,554 - [56438] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-06-08 12:51:10,235 - [56438] - src.utils.log - INFO - πŸ” Fetching data: SELECT InvoiceId, WorkOrderNo FROM Billing.Invoice i WHERE i.WorkOrderNo in ('56482', '56483')... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:51:11,051 - [56438] - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-06-08 12:51:11,739 - [56438] - 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 = 106141 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:51:12,463 - [56438] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-08 12:51:13,151 - [56438] - 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 = 106141 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:51:13,866 - [56438] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-08 12:51:14,549 - [56438] - 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 = 106141 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:51:15,263 - [56438] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-08 12:51:15,966 - [56438] - 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 = 106141 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:51:16,682 - [56438] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-08 12:51:17,374 - [56438] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 106141;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:51:18,083 - [56438] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-08 12:51:18,766 - [56438] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId, AppliedDiscountAmt as AppliedDiscountAmount,IsActive ,ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 106141;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:51:19,753 - [56438] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-08 12:51:20,418 - [56438] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId,IsActive,DiscountAmount, IsDiscountPercent,DiscountPercent,DiscountDescription , ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 106141;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:51:21,139 - [56438] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-08 12:51:21,803 - [56438] - src.utils.log - INFO - Sequential Insertion in invoice tables begin - __SPLIT__ 2026-06-08 12:51:22,462 - [56438] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.AccountDiscountSetup: - __SPLIT__ 2026-06-08 12:51:23,120 - [56438] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-08 12:51:23,783 - [56438] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceCharges: 8 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:51:24,499 - [56438] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 8) into Billing.InvoiceCharges - __SPLIT__ 2026-06-08 12:51:25,279 - [56438] - src.utils.log - INFO - βœ… All 8 rows inserted successfully into Billing.InvoiceCharges in 1 batches - __SPLIT__ 2026-06-08 12:51:25,933 - [56438] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.DiscountApplied: - __SPLIT__ 2026-06-08 12:51:26,611 - [56438] - src.utils.log - INFO - Invoice Publish Done - __SPLIT__ 2026-06-08 12:51:27,282 - [56438] - src.utils.log - INFO - Updating Next GenerationDate - __SPLIT__ 2026-06-08 12:51:27,943 - [56438] - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, MAX(NextWorkOrderGenerationDate) AS MaxNextWorkOrderGeneration FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 56438 GROUP BY ServiceSetupId; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:51:28,633 - [56438] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-08 12:51:29,304 - [56438] - src.utils.log - INFO - πŸ”„ Updating next gen date sequentially: inside update_next_workorder_generation - __SPLIT__ 2026-06-08 12:51:29,986 - [56438] - src.utils.log - INFO - πŸ›  Creating temp table #tbl_805abfaa88 - __SPLIT__ 2026-06-08 12:51:30,695 - [56438] - src.utils.log - INFO - πŸ“Œ Bulk inserting 1 rows into #tbl_805abfaa88 - __SPLIT__ 2026-06-08 12:51:31,544 - [56438] - src.utils.log - INFO - πŸ” Running MERGE update to apply changes - __SPLIT__ 2026-06-08 12:51:32,223 - [56438] - src.utils.log - INFO - βœ” SQL reported affected rows: 1 - __SPLIT__ 2026-06-08 12:51:32,904 - [56438] - src.utils.log - INFO - πŸ” Verified successfully updated 1 rows via #tbl_805abfaa88 - __SPLIT__ 2026-06-08 12:51:33,863 - [56438] - src.utils.log - INFO - πŸŽ‰ Successfully updated NextGenerationDate using temp table #tbl_805abfaa88 - __SPLIT__ 2026-06-08 12:51:34,536 - [56438] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 56438 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:51:35,240 - [56438] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-08 12:51:35,911 - [56438] - src.utils.log - INFO - Sequential deletion from temp tables begin - __SPLIT__ 2026-06-08 12:51:36,580 - [56438] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId in (578333, 578334) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:51:37,359 - [56438] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-08 12:51:38,033 - [56438] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId in (578333, 578334) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:51:38,780 - [56438] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-08 12:51:39,454 - [56438] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId in (578333, 578334) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:51:40,173 - [56438] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-08 12:51:40,844 - [56438] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId in (578333, 578334) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:51:41,577 - [56438] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-08 12:51:42,249 - [56438] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId in (578333, 578334) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:51:42,971 - [56438] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-08 12:51:43,649 - [56438] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (578333, 578334) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:51:44,408 - [56438] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-08 12:51:45,083 - [56438] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId in (578333, 578334) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:51:45,787 - [56438] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-08 12:51:46,462 - [56438] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (578333, 578334) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:51:47,304 - [56438] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-08 12:51:48,254 - [56438] - src.utils.log - INFO - Work order published ids: (578333, 578334) - __SPLIT__ 2026-06-08 12:51:48,937 - [56438] - src.utils.log - INFO - Time took to perform operation in publishing [56438]: 113.96 - __SPLIT__ 2026-06-08 12:51:49,604 - [56438] - src.utils.log - INFO - Publish Completed for GenerateWorkOrderHistoryId: [56438] - __SPLIT__ 2026-06-08 12:51:50,271 - [56438] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-06-08 08:51:48.254' WHERE CompanyId = 146 AND GenerateWorkOrderHistoryId = 56438;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:51:50,972 - [56438] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-08 12:59:22,176 - 56439 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=56439 - __SPLIT__ 2026-06-08 12:59:23,136 - 56439 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 56439 - __SPLIT__ 2026-06-08 12:59:23,813 - 56439 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-06-08 12:59:24,479 - 56439 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:59:25,328 - 56439 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-08 12:59:25,991 - 56439 - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-06-08 12:59:26,663 - 56439 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 56439;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:59:27,356 - 56439 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-08 12:59:28,022 - 56439 - 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 = 56439), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 56439), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 56439 AND ss.FrequencyScheduleId IS NOT NULL AND ss.IsActive = 1 AND ss.IsDeleted = 0 AND ss.Status <> 'Canceled' AND ((ss.OrderType = gw.OrderType) OR gw.OrderType IS NULL);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:59:28,763 - 56439 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-08 12:59:29,438 - 56439 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 56439;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:59:30,131 - 56439 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-08 12:59:30,800 - 56439 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-06-08 12:59:31,473 - 56439 - 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-06-08 12:59:32,176 - 56439 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-08 12:59:32,845 - 56439 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-06-08 12:59:33,523 - 56439 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-06-08 12:59:34,194 - 56439 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 106142;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:59:34,888 - 56439 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-08 12:59:35,558 - 56439 - src.utils.log - INFO - πŸ” Fetching data: select ServiceDate, ServiceSetupId, IsInitial from serviceCore.WorkOrder wo inner join ServiceCore.WorkOrderStatus wos on wo.WoStatusId = wos.WoStatusId where ServiceDate >= '2026-06-08 00:00:00' and ServiceDate <= '2026-07-31 00:00:00' and ServiceSetupId = 106142 and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:59:36,259 - 56439 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-08 12:59:37,281 - 56439 - src.utils.log - INFO - Generating work orders for setup: 106142 - __SPLIT__ 2026-06-08 12:59:37,961 - 56439 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 11499;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:59:38,660 - 56439 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-08 12:59:39,356 - 56439 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 11521;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:59:40,050 - 56439 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-08 12:59:40,749 - 56439 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-06-08 12:59:41,417 - 56439 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=146 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:59:42,112 - 56439 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-08 12:59:42,786 - 56439 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-06-08 12:59:43,457 - 56439 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-06-08 12:59:44,148 - 56439 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 106142 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:59:44,872 - 56439 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-08 12:59:45,536 - 56439 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 106142 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:59:46,257 - 56439 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-08 12:59:46,918 - 56439 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 106142 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:59:47,641 - 56439 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-08 12:59:48,314 - 56439 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 106142 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:59:49,042 - 56439 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-08 12:59:49,708 - 56439 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 106142 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:59:50,439 - 56439 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-08 12:59:51,399 - 56439 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 106142 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:59:52,128 - 56439 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-08 12:59:52,796 - 56439 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 106142 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:59:53,495 - 56439 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-08 12:59:54,167 - 56439 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 106142 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:59:54,994 - 56439 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-08 12:59:55,663 - 56439 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-08 12:59:56,337 - 56439 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:59:57,066 - 56439 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-06-08 12:59:57,859 - 56439 - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-06-08 12:59:58,522 - 56439 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 2 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-06-07 11:12:39.549' and ServiceSetupId = 106142... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:59:59,247 - 56439 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-08 12:59:59,921 - 56439 - src.utils.log - INFO - Id's of work order inserted to DB: [578335 578336] - __SPLIT__ 2026-06-08 13:00:00,593 - 56439 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 106142;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 13:00:01,290 - 56439 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-08 13:00:01,956 - 56439 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-06-08 13:00:02,621 - 56439 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId = 106142... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 13:00:03,319 - 56439 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-08 13:00:03,986 - 56439 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId = 106142... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 13:00:04,683 - 56439 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-08 13:00:05,652 - 56439 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId = 106142... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 13:00:06,358 - 56439 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-08 13:00:07,036 - 56439 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId = 106142... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 13:00:07,734 - 56439 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-08 13:00:08,406 - 56439 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId = 106142... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 13:00:09,100 - 56439 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-08 13:00:09,781 - 56439 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId = 106142;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 13:00:10,534 - 56439 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-08 13:00:11,203 - 56439 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId = 106142;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 13:00:11,903 - 56439 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-08 13:00:12,579 - 56439 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId = 106142;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 13:00:13,310 - 56439 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-08 13:00:13,976 - 56439 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId = 106142;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 13:00:14,681 - 56439 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-08 13:00:15,368 - 56439 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-06-08 13:00:16,036 - 56439 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-06-08 13:00:16,710 - 56439 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-06-08 13:00:17,390 - 56439 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.CommunicationPreferencesServiceReportNotification: - __SPLIT__ 2026-06-08 13:00:18,061 - 56439 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-06-08 13:00:18,730 - 56439 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SetupAutoGenerationSourceMapping: - __SPLIT__ 2026-06-08 13:00:19,679 - 56439 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-06-08 13:00:20,350 - 56439 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationAppliedDiscount: - __SPLIT__ 2026-06-08 13:00:21,022 - 56439 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-06-08 13:00:21,695 - 56439 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SubWorkOrderAutoGeneration: - __SPLIT__ 2026-06-08 13:00:22,362 - 56439 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-06-08 13:00:23,028 - 56439 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: - __SPLIT__ 2026-06-08 13:00:23,693 - 56439 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-06-08 13:00:24,359 - 56439 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: - __SPLIT__ 2026-06-08 13:00:25,034 - 56439 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-06-08 13:00:25,699 - 56439 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-08 13:00:26,366 - 56439 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (578336, 578335) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 13:00:27,065 - 56439 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-08 13:00:27,733 - 56439 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationCrews: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 13:00:28,431 - 56439 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationCrews - __SPLIT__ 2026-06-08 13:00:29,186 - 56439 - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationCrews in 1 batches - __SPLIT__ 2026-06-08 13:00:29,857 - 56439 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-06-08 13:00:30,522 - 56439 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-08 13:00:31,190 - 56439 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 578335 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 13:00:31,886 - 56439 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-08 13:00:32,557 - 56439 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 13:00:33,558 - 56439 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-06-08 13:00:34,346 - 56439 - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-06-08 13:00:35,017 - 56439 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-06-08 13:00:35,697 - 56439 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-08 13:00:36,381 - 56439 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 578336 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 13:00:37,079 - 56439 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-08 13:00:37,787 - 56439 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 13:00:38,501 - 56439 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-06-08 13:00:39,282 - 56439 - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-06-08 13:00:39,965 - 56439 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-06-08 13:00:40,652 - 56439 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 56439;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 13:00:41,367 - 56439 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-08 13:00:42,040 - 56439 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-06-08 13:00:42,720 - 56439 - src.utils.log - INFO - Time took to perform operation: 78.23 - __SPLIT__ 2026-06-08 13:20:28,852 - 56441 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=56441 - __SPLIT__ 2026-06-08 13:20:29,820 - 56441 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 56441 - __SPLIT__ 2026-06-08 13:20:30,489 - 56441 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-06-08 13:20:31,155 - 56441 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 13:20:31,999 - 56441 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-08 13:20:32,672 - 56441 - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-06-08 13:20:33,339 - 56441 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 56441;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 13:20:34,054 - 56441 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-08 13:20:34,724 - 56441 - 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 = 56441), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 56441), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 56441 AND ss.FrequencyScheduleId IS NOT NULL AND ss.IsActive = 1 AND ss.IsDeleted = 0 AND ss.Status <> 'Canceled' AND ((ss.OrderType = gw.OrderType) OR gw.OrderType IS NULL);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 13:20:35,441 - 56441 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-08 13:20:36,116 - 56441 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 56441;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 13:20:36,813 - 56441 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-08 13:20:37,492 - 56441 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-06-08 13:20:38,160 - 56441 - 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-06-08 13:20:38,857 - 56441 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-08 13:20:39,524 - 56441 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-06-08 13:20:40,203 - 56441 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-06-08 13:20:40,878 - 56441 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 106144;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 13:20:41,581 - 56441 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-08 13:20:42,253 - 56441 - src.utils.log - INFO - πŸ” Fetching data: select ServiceDate, ServiceSetupId, IsInitial from serviceCore.WorkOrder wo inner join ServiceCore.WorkOrderStatus wos on wo.WoStatusId = wos.WoStatusId where ServiceDate >= '2026-06-08 00:00:00' and ServiceDate <= '2026-07-31 00:00:00' and ServiceSetupId = 106144 and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 13:20:42,964 - 56441 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-08 13:20:44,011 - 56441 - src.utils.log - INFO - Generating work orders for setup: 106144 - __SPLIT__ 2026-06-08 13:20:44,705 - 56441 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 11520;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 13:20:45,412 - 56441 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-08 13:20:46,123 - 56441 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-06-08 13:20:46,807 - 56441 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=146 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 13:20:47,517 - 56441 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-08 13:20:48,199 - 56441 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-06-08 13:20:48,883 - 56441 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-06-08 13:20:49,575 - 56441 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 106144 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 13:20:50,313 - 56441 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-08 13:20:50,991 - 56441 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 106144 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 13:20:51,729 - 56441 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-08 13:20:52,412 - 56441 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 106144 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 13:20:53,149 - 56441 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-08 13:20:53,855 - 56441 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 106144 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 13:20:54,590 - 56441 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-08 13:20:55,271 - 56441 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 106144 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 13:20:56,013 - 56441 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-08 13:20:56,692 - 56441 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 106144 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 13:20:57,432 - 56441 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-08 13:20:58,396 - 56441 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 106144 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 13:20:59,118 - 56441 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-08 13:20:59,781 - 56441 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 106144 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 13:21:00,543 - 56441 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-08 13:21:01,206 - 56441 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-08 13:21:01,872 - 56441 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 13:21:02,593 - 56441 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-06-08 13:21:03,381 - 56441 - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-06-08 13:21:04,042 - 56441 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 2 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-06-07 11:12:39.549' and ServiceSetupId = 106144... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 13:21:04,781 - 56441 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-08 13:21:05,446 - 56441 - src.utils.log - INFO - Id's of work order inserted to DB: [578339 578340] - __SPLIT__ 2026-06-08 13:21:06,109 - 56441 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 106144;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 13:21:06,805 - 56441 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-08 13:21:07,468 - 56441 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-06-08 13:21:08,130 - 56441 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId = 106144... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 13:21:08,826 - 56441 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-08 13:21:09,491 - 56441 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId = 106144... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 13:21:10,177 - 56441 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-08 13:21:10,851 - 56441 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId = 106144... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 13:21:11,550 - 56441 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-08 13:21:12,494 - 56441 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId = 106144... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 13:21:13,176 - 56441 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-08 13:21:13,830 - 56441 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId = 106144... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 13:21:14,542 - 56441 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-08 13:21:15,205 - 56441 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId = 106144;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 13:21:15,889 - 56441 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-08 13:21:16,541 - 56441 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId = 106144;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 13:21:17,223 - 56441 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-08 13:21:17,886 - 56441 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId = 106144;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 13:21:18,584 - 56441 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-08 13:21:19,243 - 56441 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId = 106144;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 13:21:19,937 - 56441 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-08 13:21:20,611 - 56441 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-06-08 13:21:21,271 - 56441 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-06-08 13:21:21,931 - 56441 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-06-08 13:21:22,591 - 56441 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.CommunicationPreferencesServiceReportNotification: - __SPLIT__ 2026-06-08 13:21:23,242 - 56441 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-06-08 13:21:23,902 - 56441 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SetupAutoGenerationSourceMapping: - __SPLIT__ 2026-06-08 13:21:24,555 - 56441 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-06-08 13:21:25,215 - 56441 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationAppliedDiscount: - __SPLIT__ 2026-06-08 13:21:26,166 - 56441 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-06-08 13:21:26,849 - 56441 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SubWorkOrderAutoGeneration: - __SPLIT__ 2026-06-08 13:21:27,521 - 56441 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-06-08 13:21:28,195 - 56441 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: - __SPLIT__ 2026-06-08 13:21:28,868 - 56441 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-06-08 13:21:29,538 - 56441 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: - __SPLIT__ 2026-06-08 13:21:30,213 - 56441 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-06-08 13:21:30,885 - 56441 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-08 13:21:31,563 - 56441 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (578339, 578340) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 13:21:32,267 - 56441 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-08 13:21:32,938 - 56441 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationCrews: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 13:21:33,646 - 56441 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationCrews - __SPLIT__ 2026-06-08 13:21:34,409 - 56441 - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationCrews in 1 batches - __SPLIT__ 2026-06-08 13:21:35,112 - 56441 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-06-08 13:21:35,775 - 56441 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-08 13:21:36,446 - 56441 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 578339 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 13:21:37,152 - 56441 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-08 13:21:37,828 - 56441 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 13:21:38,544 - 56441 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-06-08 13:21:39,326 - 56441 - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-06-08 13:21:40,282 - 56441 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-06-08 13:21:40,945 - 56441 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-08 13:21:41,608 - 56441 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 578340 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 13:21:42,290 - 56441 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-08 13:21:42,963 - 56441 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 13:21:43,662 - 56441 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-06-08 13:21:44,423 - 56441 - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-06-08 13:21:45,090 - 56441 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-06-08 13:21:45,752 - 56441 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 56441;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 13:21:46,435 - 56441 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-08 13:21:47,100 - 56441 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-06-08 13:21:47,767 - 56441 - src.utils.log - INFO - Time took to perform operation: 76.61 - __SPLIT__ 2026-06-08 16:46:30,645 - [25822] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[] user_id=43606 company_id=133 project_id=[25822] publish_all=True - __SPLIT__ 2026-06-08 16:46:31,701 - [25822] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[] user_id=43606 company_id=133 project_id=[25822] publish_all=True - __SPLIT__ 2026-06-08 16:46:32,385 - [25822] - src.utils.log - INFO - Sequential Work order publish in progress for GenerateWorkOrderHistoryId: [25822] - __SPLIT__ 2026-06-08 16:46:33,067 - [25822] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-06-08 16:46:33,749 - [25822] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 16:46:34,629 - [25822] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-08 16:46:35,313 - [25822] - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-06-08 16:46:35,988 - [25822] - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-06-08 16:46:36,672 - [25822] - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-06-08 16:46:37,349 - [25822] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'InProgress' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 25822;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 16:46:38,251 - [25822] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-08 16:46:38,931 - [25822] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGeneration woag WHERE woag.GenerateWorkOrderHistoryId = 25822... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 16:46:39,652 - [25822] - src.utils.log - INFO - βœ… Fetched 57 rows - __SPLIT__ 2026-06-08 16:46:40,329 - [25822] - src.utils.log - INFO - Inside get_work_order_table - __SPLIT__ 2026-06-08 16:46:41,010 - [25822] - src.utils.log - INFO - πŸ” Fetching data: SELECT DISTINCT sss.ServiceSetupId, dm.DepartmentMasterId, bm.BranchMasterId FROM Common.DepartmentMaster dm JOIN Common.DivisionMaster d2 ON dm.DivisionMasterId = d2.DivisionMasterId JOIN Common.BranchMaster bm ON d2.BranchMasterId = bm.BranchMasterId JOIN ServiceCore.ServiceCategoryMaster c ON c.DepartmentId = dm.DepartmentMasterId JOIN ServiceCore.ServiceMaster sm ON c.CategoryId = sm.CategoryId JOIN ServiceCore.ServiceSetupServices sss ON sss.ServiceId = sm.ServiceMasterId WHERE dm.CompanyId = 133 AND d2.CompanyId = bm.CompanyId AND sss.ServiceSetupId in (67126, 64670, 67189, 67424, 67266, 67259, 67181, 67233, 67118, 22493, 37149, 67196, 53880, 65476, 53197, 67270, 28281, 67322, 67344, 67175, 67286, 67391, 67256, 67394, 67121, 67183, 67437, 67146, 67239, 67241, 67182, 67219, 67184, 67367, 63779, 67330, 52672, 67232, 67282, 67402, 67313, 67173, 67142, 67426, 67225, 67114, 67194, 67149) AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 16:46:41,725 - [25822] - src.utils.log - INFO - βœ… Fetched 48 rows - __SPLIT__ 2026-06-08 16:46:42,402 - [25822] - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceSetupId, dm.DepartmentMasterId, bm.BranchMasterId FROM Common.DepartmentMaster dm JOIN Common.DivisionMaster d2 ON dm.DivisionMasterId = d2.DivisionMasterId JOIN Common.BranchMaster bm ON d2.BranchMasterId = bm.BranchMasterId JOIN ServiceCore.SoldServiceNonStandard x on dm.DepartmentMasterId = x.DepartmentId JOIN ServiceCore.ServiceSetupServices sss ON sss.NonStdSoldServiceId = x.SoldServiceNonStandardId WHERE dm.CompanyId = 133 AND d2.CompanyId = bm.CompanyId AND sss.ServiceSetupId in (67126, 64670, 67189, 67424, 67266, 67259, 67181, 67233, 67118, 22493, 37149, 67196, 53880, 65476, 53197, 67270, 28281, 67322, 67344, 67175, 67286, 67391, 67256, 67394, 67121, 67183, 67437, 67146, 67239, 67241, 67182, 67219, 67184, 67367, 63779, 67330, 52672, 67232, 67282, 67402, 67313, 67173, 67142, 67426, 67225, 67114, 67194, 67149) AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 16:46:43,147 - [25822] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-08 16:46:43,825 - [25822] - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceSetupId, dm.DepartmentMasterId, bm.BranchMasterId FROM Common.DepartmentMaster dm Inner JOIN Common.DivisionMaster d2 ON dm.DivisionMasterId = d2.DivisionMasterId Inner JOIN Common.BranchMaster bm ON d2.BranchMasterId = bm.BranchMasterId Inner JOIN [ServiceCore].[ServiceCategoryMaster] scm ON dm.DepartmentMasterId = scm.DepartmentId Inner JOIN ServiceCore.ServiceMaster sm ON scm.CategoryId = sm.CategoryId Inner JOIN ServiceCore.SoldServiceStandard x on x.ServiceId = sm.ServiceMasterId Inner JOIN ServiceCore.ServiceSetupServices sss ON sss.StdSoldServiceId = x.SoldServiceStandardId WHERE dm.CompanyId = 133 AND d2.CompanyId = bm.CompanyId AND sss.ServiceSetupId in (67126, 64670, 67189, 67424, 67266, 67259, 67181, 67233, 67118, 22493, 37149, 67196, 53880, 65476, 53197, 67270, 28281, 67322, 67344, 67175, 67286, 67391, 67256, 67394, 67121, 67183, 67437, 67146, 67239, 67241, 67182, 67219, 67184, 67367, 63779, 67330, 52672, 67232, 67282, 67402, 67313, 67173, 67142, 67426, 67225, 67114, 67194, 67149) AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 16:46:44,541 - [25822] - src.utils.log - INFO - βœ… Fetched 42 rows - __SPLIT__ 2026-06-08 16:46:45,223 - [25822] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder,BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 16:46:46,214 - [25822] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-08 16:46:46,892 - [25822] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 133 AND EnitityNumberType in ('WorkOrder','Invoice'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 16:46:47,599 - [25822] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-08 16:46:48,272 - [25822] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder, BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 16:46:48,982 - [25822] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-08 16:46:49,668 - [25822] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 57 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 133 AND EnitityNumberType = 'WorkOrder'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 16:46:50,371 - [25822] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-08 16:46:51,049 - [25822] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 57 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 133 AND EnitityNumberType = 'Invoice'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 16:46:51,754 - [25822] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-08 16:46:52,427 - [25822] - 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 (67126, 64670, 67189, 67424, 67266, 67259, 67181, 67233, 67118, 22493, 37149, 67196, 53880, 65476, 53197, 67270, 28281, 67322, 67344, 67175, 67286, 67391, 67256, 67394, 67121, 67183, 67437, 67146, 67239, 67241, 67182, 67219, 67184, 67367, 63779, 67330, 52672, 67232, 67282, 67402, 67313, 67173, 67142, 67426, 67225, 67114, 67194, 67149)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 16:46:53,129 - [25822] - src.utils.log - INFO - βœ… Fetched 48 rows - __SPLIT__ 2026-06-08 16:46:53,838 - [25822] - src.utils.log - INFO - πŸ” Fetching data: SELECT x.CompanyId FROM CRM.CompanyMaster x WHERE CompanyKey = 'abcdallas';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 16:46:54,551 - [25822] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-08 16:46:55,232 - [25822] - src.utils.log - INFO - πŸ” Fetching data: SELECT CollectionStatus,IsHold,AccountNo FROM CRM.Account a WHERE a.AccountNo in ('27392', '27790', '602643', '27528', '5547', '624009', '27920', '91060', '27618', '28221', '2146963802', '629635', '11806', '27785', '25548', '27628', '621018', '267254', '28103', '621446', '20677', '27417', '27964', '226943', '6021', '28124', '18207', '27824', '25200', '14184', '27552', '2146954832', '613832', '27965', '1204', '27676', '324157', '27137', '27872', '271678', '28163', '312064', '262094', '225140', '28084', '27671', '27727', '27593') and a.CompanyId = 121;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 16:46:55,942 - [25822] - src.utils.log - INFO - βœ… Fetched 48 rows - __SPLIT__ 2026-06-08 16:46:56,615 - [25822] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderNo FROM ServiceCore.WorkOrder WHERE WorkOrderNo IN ('516063', '516064', '516065', '516066', '516067', '516068', '516069', '516070', '516071', '516072', '516073', '516074', '516075', '516076', '516077', '516078', '516079', '516080', '516081', '516082', '516083', '516084', '516085', '516086', '516087', '516088', '516089', '516090', '516091', '516092', '516093', '516094', '516095', '516096', '516097', '516098', '516099', '516100', '516101', '516102', '516103', '516104', '516105', '516106', '516107', '516108', '516109', '516110', '516111', '516112', '516113', '516114', '516115', '516116', '516117', '516118', '516119') AND CompanyId = 133 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 16:46:57,324 - [25822] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-08 16:46:57,999 - [25822] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrder (skip triggers): 57 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 16:46:58,756 - [25822] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 57) into ServiceCore.WorkOrder (triggers skipped) - __SPLIT__ 2026-06-08 16:47:00,174 - [25822] - src.utils.log - INFO - βœ… All 57 rows inserted successfully into ServiceCore.WorkOrder in 1 batches (triggers skipped) - __SPLIT__ 2026-06-08 16:47:01,131 - [25822] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-06-08 16:47:01,797 - [25822] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkorderId, WorkOrderNo FROM ServiceCore.WorkOrder wo WHERE wo.WorkOrderNo IN ('516063', '516064', '516065', '516066', '516067', '516068', '516069', '516070', '516071', '516072', '516073', '516074', '516075', '516076', '516077', '516078', '516079', '516080', '516081', '516082', '516083', '516084', '516085', '516086', '516087', '516088', '516089', '516090', '516091', '516092', '516093', '516094', '516095', '516096', '516097', '516098', '516099', '516100', '516101', '516102', '516103', '516104', '516105', '516106', '516107', '516108', '516109', '516110', '516111', '516112', '516113', '516114', '516115', '516116', '516117', '516118', '516119') AND wo.AccountNumber IN ('27727', '6021', '27392', '28124', '27676', '27593', '27528', '27790', '27552', '91060', '312064', '27618', '629635', '25548', '2146963802', '271678', '262094', '28084', '28103', '624009', '621446', '28163', '621018', '324157', '613832', '602643', '28221', '5547', '27964', '27965', '11806', '27920', '267254', '14184', '18207', '20677', '2146954832', '225140', '226943', '25200', '27137', '27872', '27417', '27628', '27671', '1204', '27785', '27824') AND wo.CompanyId = 133 ... (Thread: ThreadPoolExecutor-10_0) - __SPLIT__ 2026-06-08 16:47:02,500 - [25822] - src.utils.log - INFO - βœ… Fetched 57 rows - __SPLIT__ 2026-06-08 16:47:03,157 - [25822] - src.utils.log - INFO - Sequential fetching temp table records - __SPLIT__ 2026-06-08 16:47:03,818 - [25822] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationServices woag WHERE woag.WorkOrderAutoGenerationId in (678345, 678346, 678347, 678348, 678349, 678350, 678351, 678352, 678353, 678354, 678355, 678356, 678357, 678358, 678359, 678360, 678361, 678362, 678363, 678364, 678365, 678366, 678367, 678368, 678369, 678370, 678371, 678372, 678373, 678374, 678375, 678376, 678377, 678378, 678379, 678380, 678381, 678382, 678383, 678384, 678385, 678386, 678387, 678388, 678389, 678390, 678391, 678392, 678393, 678394, 678395, 678396, 678397, 678398, 678399, 678400, 678401)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 16:47:04,513 - [25822] - src.utils.log - INFO - βœ… Fetched 79 rows - __SPLIT__ 2026-06-08 16:47:05,179 - [25822] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SubWorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (678345, 678346, 678347, 678348, 678349, 678350, 678351, 678352, 678353, 678354, 678355, 678356, 678357, 678358, 678359, 678360, 678361, 678362, 678363, 678364, 678365, 678366, 678367, 678368, 678369, 678370, 678371, 678372, 678373, 678374, 678375, 678376, 678377, 678378, 678379, 678380, 678381, 678382, 678383, 678384, 678385, 678386, 678387, 678388, 678389, 678390, 678391, 678392, 678393, 678394, 678395, 678396, 678397, 678398, 678399, 678400, 678401)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 16:47:05,872 - [25822] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-08 16:47:06,529 - [25822] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationCrews woag WHERE woag.WorkOrderAutoGenerationId in (678345, 678346, 678347, 678348, 678349, 678350, 678351, 678352, 678353, 678354, 678355, 678356, 678357, 678358, 678359, 678360, 678361, 678362, 678363, 678364, 678365, 678366, 678367, 678368, 678369, 678370, 678371, 678372, 678373, 678374, 678375, 678376, 678377, 678378, 678379, 678380, 678381, 678382, 678383, 678384, 678385, 678386, 678387, 678388, 678389, 678390, 678391, 678392, 678393, 678394, 678395, 678396, 678397, 678398, 678399, 678400, 678401)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 16:47:07,235 - [25822] - src.utils.log - INFO - βœ… Fetched 57 rows - __SPLIT__ 2026-06-08 16:47:07,897 - [25822] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationSalesPersonCommission woag WHERE woag.WorkOrderAutoGenerationId in (678345, 678346, 678347, 678348, 678349, 678350, 678351, 678352, 678353, 678354, 678355, 678356, 678357, 678358, 678359, 678360, 678361, 678362, 678363, 678364, 678365, 678366, 678367, 678368, 678369, 678370, 678371, 678372, 678373, 678374, 678375, 678376, 678377, 678378, 678379, 678380, 678381, 678382, 678383, 678384, 678385, 678386, 678387, 678388, 678389, 678390, 678391, 678392, 678393, 678394, 678395, 678396, 678397, 678398, 678399, 678400, 678401)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 16:47:08,596 - [25822] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-08 16:47:09,262 - [25822] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupAutoGenerationSourceMapping woag WHERE woag.WorkOrderAutoGenerationId in (678345, 678346, 678347, 678348, 678349, 678350, 678351, 678352, 678353, 678354, 678355, 678356, 678357, 678358, 678359, 678360, 678361, 678362, 678363, 678364, 678365, 678366, 678367, 678368, 678369, 678370, 678371, 678372, 678373, 678374, 678375, 678376, 678377, 678378, 678379, 678380, 678381, 678382, 678383, 678384, 678385, 678386, 678387, 678388, 678389, 678390, 678391, 678392, 678393, 678394, 678395, 678396, 678397, 678398, 678399, 678400, 678401)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 16:47:10,010 - [25822] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-08 16:47:10,682 - [25822] - 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 (678345, 678346, 678347, 678348, 678349, 678350, 678351, 678352, 678353, 678354, 678355, 678356, 678357, 678358, 678359, 678360, 678361, 678362, 678363, 678364, 678365, 678366, 678367, 678368, 678369, 678370, 678371, 678372, 678373, 678374, 678375, 678376, 678377, 678378, 678379, 678380, 678381, 678382, 678383, 678384, 678385, 678386, 678387, 678388, 678389, 678390, 678391, 678392, 678393, 678394, 678395, 678396, 678397, 678398, 678399, 678400, 678401)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 16:47:11,501 - [25822] - src.utils.log - INFO - βœ… Fetched 8 rows - __SPLIT__ 2026-06-08 16:47:12,168 - [25822] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from CRM.LeadNote woag WHERE woag.RefId in (678345, 678346, 678347, 678348, 678349, 678350, 678351, 678352, 678353, 678354, 678355, 678356, 678357, 678358, 678359, 678360, 678361, 678362, 678363, 678364, 678365, 678366, 678367, 678368, 678369, 678370, 678371, 678372, 678373, 678374, 678375, 678376, 678377, 678378, 678379, 678380, 678381, 678382, 678383, 678384, 678385, 678386, 678387, 678388, 678389, 678390, 678391, 678392, 678393, 678394, 678395, 678396, 678397, 678398, 678399, 678400, 678401) and woag.RefType = 'TempWorkorder';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 16:47:12,880 - [25822] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-08 16:47:13,543 - [25822] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment woagca WHERE woagca.WorkOrderAutoGenerationId in (678345, 678346, 678347, 678348, 678349, 678350, 678351, 678352, 678353, 678354, 678355, 678356, 678357, 678358, 678359, 678360, 678361, 678362, 678363, 678364, 678365, 678366, 678367, 678368, 678369, 678370, 678371, 678372, 678373, 678374, 678375, 678376, 678377, 678378, 678379, 678380, 678381, 678382, 678383, 678384, 678385, 678386, 678387, 678388, 678389, 678390, 678391, 678392, 678393, 678394, 678395, 678396, 678397, 678398, 678399, 678400, 678401);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 16:47:14,246 - [25822] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-08 16:47:15,222 - [25822] - src.utils.log - INFO - Updating temp tables - __SPLIT__ 2026-06-08 16:47:15,916 - [25822] - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyKey FROM Common.CompanyMaster cm WHERE CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 16:47:16,625 - [25822] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-08 16:47:17,310 - [25822] - src.utils.log - INFO - πŸ” Fetching data: Select DiscountSetupId, [SysName] as DiscountSysName from Common.DiscountSetupMaster WHERE DiscountSetupId IN (947, 643, 844, 894, 797, 816, 750) AND CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 16:47:18,028 - [25822] - src.utils.log - INFO - βœ… Fetched 7 rows - __SPLIT__ 2026-06-08 16:47:18,711 - [25822] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 133 AND EnitityNumberType in ('SubWorkOrder'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 16:47:19,417 - [25822] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-08 16:47:20,112 - [25822] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-08 16:47:20,797 - [25822] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishHistory: 57 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 16:47:21,556 - [25822] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 57) into ServiceCore.WorkOrderAutoGenerationPublishHistory - __SPLIT__ 2026-06-08 16:47:22,701 - [25822] - src.utils.log - INFO - βœ… All 57 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishHistory in 1 batches - __SPLIT__ 2026-06-08 16:47:23,381 - [25822] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationPublishHistoryId, WorkOrderNo, ServiceSetupId FROM ServiceCore.WorkOrderAutoGenerationPublishHistory WHERE ServiceSetupId IN (67126, 64670, 67189, 67424, 67266, 67259, 67181, 67233, 67118, 22493, 37149, 67196, 53880, 65476, 53197, 67270, 28281, 67322, 67344, 67175, 67286, 67391, 67256, 67394, 67121, 67183, 67437, 67146, 67239, 67241, 67182, 67219, 67184, 67367, 63779, 67330, 52672, 67232, 67282, 67402, 67313, 67173, 67142, 67426, 67225, 67114, 67194, 67149) AND WorkOrderNo IN ('5961360', '2849899', '7541459', '2760126', '5564777', '2640841', '4705639', '3082980', '7262499', '7849504', '2389800', '3479259', '4681504', '7890159', '2921036', '8175118', '3958413', '6430986', '5844648', '5872388', '4626650', '2046366', '9519955', '3530350', '9705764', '7141065', '6864108', '4106616', '7787900', '8768652', '8101037', '7272706', '3538168', '3847228', '7170578', '6491627', '9576642', '8166404', '5158936', '5488537', '5322164', '1833117', '1650983', '2725952', '9173629', '6407019', '5949085', '8352523', '8003820', '5986775', '4251846', '4752181', '6524610', '7984263', '2424741', '6084289', '8385526') AND GenerateWorkOrderHistoryId = 25822;... (Thread: ThreadPoolExecutor-11_0) - __SPLIT__ 2026-06-08 16:47:24,215 - [25822] - src.utils.log - INFO - βœ… Fetched 57 rows - __SPLIT__ 2026-06-08 16:47:24,896 - [25822] - src.utils.log - INFO - 🏁 Final merged rows: 57 - __SPLIT__ 2026-06-08 16:47:25,607 - [25822] - src.utils.log - INFO - Sequential Insertion in work order tables begin - __SPLIT__ 2026-06-08 16:47:26,288 - [25822] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-08 16:47:26,961 - [25822] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderServices: 79 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 16:47:27,707 - [25822] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 79) into ServiceCore.WorkOrderServices - __SPLIT__ 2026-06-08 16:47:28,633 - [25822] - src.utils.log - INFO - βœ… All 79 rows inserted successfully into ServiceCore.WorkOrderServices in 1 batches - __SPLIT__ 2026-06-08 16:47:29,337 - [25822] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-08 16:47:30,301 - [25822] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.WorkOrderAppliedDiscount: 8 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 16:47:31,051 - [25822] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 8) into ServiceAuto.WorkOrderAppliedDiscount - __SPLIT__ 2026-06-08 16:47:31,833 - [25822] - src.utils.log - INFO - βœ… All 8 rows inserted successfully into ServiceAuto.WorkOrderAppliedDiscount in 1 batches - __SPLIT__ 2026-06-08 16:47:32,503 - [25822] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-08 16:47:33,168 - [25822] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderSalesPersonCommission: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 16:47:33,888 - [25822] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderSalesPersonCommission - __SPLIT__ 2026-06-08 16:47:34,665 - [25822] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderSalesPersonCommission in 1 batches - __SPLIT__ 2026-06-08 16:47:35,336 - [25822] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderCommissionAdjustment: - __SPLIT__ 2026-06-08 16:47:36,006 - [25822] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-08 16:47:36,676 - [25822] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderCrew: 57 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 16:47:37,399 - [25822] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 57) into ServiceCore.WorkOrderCrew - __SPLIT__ 2026-06-08 16:47:38,259 - [25822] - src.utils.log - INFO - βœ… All 57 rows inserted successfully into ServiceCore.WorkOrderCrew in 1 batches - __SPLIT__ 2026-06-08 16:47:38,929 - [25822] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkorderSourceMapping: - __SPLIT__ 2026-06-08 16:47:39,599 - [25822] - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-06-08 16:47:40,270 - [25822] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-08 16:47:40,943 - [25822] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishServices: 79 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 16:47:41,673 - [25822] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 79) into ServiceCore.WorkOrderAutoGenerationPublishServices - __SPLIT__ 2026-06-08 16:47:42,656 - [25822] - src.utils.log - INFO - βœ… All 79 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishServices in 1 batches - __SPLIT__ 2026-06-08 16:47:43,330 - [25822] - 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 (67126, 64670, 67189, 67424, 67266, 67259, 67181, 67233, 67118, 22493, 37149, 67196, 53880, 65476, 53197, 67270, 28281, 67322, 67344, 67175, 67286, 67391, 67256, 67394, 67121, 67183, 67437, 67146, 67239, 67241, 67182, 67219, 67184, 67367, 63779, 67330, 52672, 67232, 67282, 67402, 67313, 67173, 67142, 67426, 67225, 67114, 67194, 67149)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 16:47:44,025 - [25822] - src.utils.log - INFO - βœ… Fetched 48 rows - __SPLIT__ 2026-06-08 16:47:44,988 - [25822] - src.utils.log - INFO - Size of Transaction: 47 - __SPLIT__ 2026-06-08 16:47:45,664 - [25822] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 47 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 16:47:46,396 - [25822] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 47) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-06-08 16:47:47,479 - [25822] - src.utils.log - INFO - βœ… All 47 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-06-08 16:47:48,166 - [25822] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-06-08 16:47:48,837 - [25822] - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionId, ModifiedBy, TransactionDate as InvoiceDate from Billing.[Transaction] t WHERE t.ModifiedBy in (12345678910, 12345678911, 12345678912, 12345678913, 12345678914, 12345678915, 12345678916, 12345678917, 12345678918, 12345678919, 12345678920, 12345678921, 12345678922, 12345678923, 12345678924, 12345678925, 12345678926, 12345678927, 12345678928, 12345678929, 12345678930, 12345678931, 12345678932, 12345678933, 12345678934, 12345678935, 12345678936, 12345678937, 12345678938, 12345678939, 12345678940, 12345678941, 12345678942, 12345678943, 12345678944, 12345678945, 12345678946, 12345678947, 12345678948, 12345678949, 12345678950, 12345678951, 12345678952, 12345678953, 12345678954, 12345678955, 12345678956) and t.CompanyId = 133 AND t.TransactionType ='Invoice' AND t.CreatedDate = '2026-06-08 12:47:44.983';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 16:47:49,897 - [25822] - src.utils.log - INFO - βœ… Fetched 47 rows - __SPLIT__ 2026-06-08 16:47:50,570 - [25822] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId in (22493, 28281, 37149, 52672, 53197, 53880, 63779, 64670, 65476, 67114, 67118, 67121, 67126, 67142, 67146, 67149, 67173, 67175, 67181, 67182, 67183, 67184, 67189, 67194, 67196, 67219, 67225, 67232, 67233, 67239, 67241, 67256, 67259, 67266, 67270, 67282, 67286, 67313, 67322, 67330, 67344, 67367, 67391, 67394, 67402, 67424, 67426, 67437);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 16:47:51,308 - [25822] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-08 16:47:51,980 - [25822] - src.utils.log - INFO - πŸ“ Executing: UPDATE Billing.[Transaction] SET ModifiedBy = NULL WHERE ModifiedBy IN (12345678910,12345678911,12345678912,12345678913,12345678914,12345678915,12345678916,12345678917,12345678918,12345678919,12345678920,12345678921,12345678922,12345678923,12345678924,12345678925,12345678926,12345678927,12345678928,12345678929,12345678930,12345678931,12345678932,12345678933,12345678934,12345678935,12345678936,12345678937,12345678938,12345678939,12345678940,12345678941,12345678942,12345678943,12345678944,12345678945,12345678946,12345678947,12345678948,12345678949,12345678950,12345678951,12345678952,12345678953,12345678954,12345678955,12345678956) AND CreatedDate = '2026-06-08 12:47:44.983'; ... (Thread: ThreadPoolExecutor-12_0) - __SPLIT__ 2026-06-08 16:47:53,024 - [25822] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-08 16:47:53,722 - [25822] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-08 16:47:54,394 - [25822] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 47 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 16:47:55,112 - [25822] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 47) into Billing.Invoice - __SPLIT__ 2026-06-08 16:47:55,973 - [25822] - src.utils.log - INFO - βœ… All 47 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-06-08 16:47:56,646 - [25822] - src.utils.log - INFO - πŸ” Fetching data: SELECT InvoiceId, WorkOrderNo FROM Billing.Invoice i WHERE i.WorkOrderNo in ('516072', '516084', '516073', '516082', '516077', '516104', '516081', '516115', '516071', '516112', '516097', '516117', '516111', '516089', '516069', '516100', '516095', '516102', '516119', '516086', '516079', '516076', '516065', '516116', '516075', '516101', '516114', '516107', '516070', '516098', '516099', '516092', '516068', '516067', '516083', '516108', '516090', '516110', '516087', '516105', '516088', '516103', '516091', '516093', '516109', '516113', '516096')... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 16:47:59,355 - [25822] - src.utils.log - INFO - βœ… Fetched 47 rows - __SPLIT__ 2026-06-08 16:48:00,031 - [25822] - 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 (67189, 67266, 67259, 67181, 67233, 67118, 22493, 37149, 67196, 53880, 65476, 53197, 67270, 28281, 67322, 67344, 67175, 67286, 67391, 67256, 67394, 67183, 67437, 67146, 67239, 67241, 67182, 67219, 67184, 67367, 63779, 67330, 67232, 67282, 67402, 67313, 67173, 67142, 67426, 67225, 67114, 67194, 67149) and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 16:48:00,729 - [25822] - src.utils.log - INFO - βœ… Fetched 64 rows - __SPLIT__ 2026-06-08 16:48:01,408 - [25822] - 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 (67189, 67266, 67259, 67181, 67233, 67118, 22493, 37149, 67196, 53880, 65476, 53197, 67270, 28281, 67322, 67344, 67175, 67286, 67391, 67256, 67394, 67183, 67437, 67146, 67239, 67241, 67182, 67219, 67184, 67367, 63779, 67330, 67232, 67282, 67402, 67313, 67173, 67142, 67426, 67225, 67114, 67194, 67149) and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 16:48:02,433 - [25822] - src.utils.log - INFO - βœ… Fetched 40 rows - __SPLIT__ 2026-06-08 16:48:03,116 - [25822] - 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 (67189, 67266, 67259, 67181, 67233, 67118, 22493, 37149, 67196, 53880, 65476, 53197, 67270, 28281, 67322, 67344, 67175, 67286, 67391, 67256, 67394, 67183, 67437, 67146, 67239, 67241, 67182, 67219, 67184, 67367, 63779, 67330, 67232, 67282, 67402, 67313, 67173, 67142, 67426, 67225, 67114, 67194, 67149) and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 16:48:03,827 - [25822] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-08 16:48:04,508 - [25822] - 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 (67189, 67266, 67259, 67181, 67233, 67118, 22493, 37149, 67196, 53880, 65476, 53197, 67270, 28281, 67322, 67344, 67175, 67286, 67391, 67256, 67394, 67183, 67437, 67146, 67239, 67241, 67182, 67219, 67184, 67367, 63779, 67330, 67232, 67282, 67402, 67313, 67173, 67142, 67426, 67225, 67114, 67194, 67149) and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 16:48:05,230 - [25822] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-08 16:48:05,917 - [25822] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId in (67189, 67266, 67259, 67181, 67233, 67118, 22493, 37149, 67196, 53880, 65476, 53197, 67270, 28281, 67322, 67344, 67175, 67286, 67391, 67256, 67394, 67183, 67437, 67146, 67239, 67241, 67182, 67219, 67184, 67367, 63779, 67330, 67232, 67282, 67402, 67313, 67173, 67142, 67426, 67225, 67114, 67194, 67149);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 16:48:06,627 - [25822] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-08 16:48:07,314 - [25822] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId, AppliedDiscountAmt as AppliedDiscountAmount,IsActive ,ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId in (67189, 67266, 67259, 67181, 67233, 67118, 22493, 37149, 67196, 53880, 65476, 53197, 67270, 28281, 67322, 67344, 67175, 67286, 67391, 67256, 67394, 67183, 67437, 67146, 67239, 67241, 67182, 67219, 67184, 67367, 63779, 67330, 67232, 67282, 67402, 67313, 67173, 67142, 67426, 67225, 67114, 67194, 67149);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 16:48:08,025 - [25822] - src.utils.log - INFO - βœ… Fetched 11 rows - __SPLIT__ 2026-06-08 16:48:08,713 - [25822] - 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 (67189, 67266, 67259, 67181, 67233, 67118, 22493, 37149, 67196, 53880, 65476, 53197, 67270, 28281, 67322, 67344, 67175, 67286, 67391, 67256, 67394, 67183, 67437, 67146, 67239, 67241, 67182, 67219, 67184, 67367, 63779, 67330, 67232, 67282, 67402, 67313, 67173, 67142, 67426, 67225, 67114, 67194, 67149);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 16:48:09,440 - [25822] - src.utils.log - INFO - βœ… Fetched 11 rows - __SPLIT__ 2026-06-08 16:48:10,131 - [25822] - src.utils.log - INFO - Sequential Insertion in invoice tables begin - __SPLIT__ 2026-06-08 16:48:10,810 - [25822] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-08 16:48:11,491 - [25822] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.AccountDiscountSetup: 6 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 16:48:12,232 - [25822] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 6) into Billing.AccountDiscountSetup - __SPLIT__ 2026-06-08 16:48:13,032 - [25822] - src.utils.log - INFO - βœ… All 6 rows inserted successfully into Billing.AccountDiscountSetup in 1 batches - __SPLIT__ 2026-06-08 16:48:13,709 - [25822] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-08 16:48:14,381 - [25822] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceCharges: 68 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 16:48:15,112 - [25822] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 68) into Billing.InvoiceCharges - __SPLIT__ 2026-06-08 16:48:15,999 - [25822] - src.utils.log - INFO - βœ… All 68 rows inserted successfully into Billing.InvoiceCharges in 1 batches - __SPLIT__ 2026-06-08 16:48:16,976 - [25822] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-08 16:48:17,651 - [25822] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.DiscountApplied: 6 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 16:48:18,383 - [25822] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 6) into Billing.DiscountApplied - __SPLIT__ 2026-06-08 16:48:19,166 - [25822] - src.utils.log - INFO - βœ… All 6 rows inserted successfully into Billing.DiscountApplied in 1 batches - __SPLIT__ 2026-06-08 16:48:19,846 - [25822] - src.utils.log - INFO - Invoice Publish Done - __SPLIT__ 2026-06-08 16:48:20,525 - [25822] - src.utils.log - INFO - Updating Next GenerationDate - __SPLIT__ 2026-06-08 16:48:21,262 - [25822] - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, MAX(NextWorkOrderGenerationDate) AS MaxNextWorkOrderGeneration FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 25822 GROUP BY ServiceSetupId; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 16:48:21,967 - [25822] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-08 16:48:22,648 - [25822] - src.utils.log - INFO - πŸ”„ Updating next gen date sequentially: inside update_next_workorder_generation - __SPLIT__ 2026-06-08 16:48:23,368 - [25822] - src.utils.log - INFO - πŸ›  Creating temp table #tbl_bb63a13579 - __SPLIT__ 2026-06-08 16:48:24,076 - [25822] - src.utils.log - INFO - πŸ“Œ Bulk inserting 48 rows into #tbl_bb63a13579 - __SPLIT__ 2026-06-08 16:48:25,335 - [25822] - src.utils.log - INFO - πŸ” Running MERGE update to apply changes - __SPLIT__ 2026-06-08 16:48:26,032 - [25822] - src.utils.log - INFO - βœ” SQL reported affected rows: 48 - __SPLIT__ 2026-06-08 16:48:26,725 - [25822] - src.utils.log - INFO - πŸ” Verified successfully updated 48 rows via #tbl_bb63a13579 - __SPLIT__ 2026-06-08 16:48:27,406 - [25822] - src.utils.log - INFO - πŸŽ‰ Successfully updated NextGenerationDate using temp table #tbl_bb63a13579 - __SPLIT__ 2026-06-08 16:48:28,090 - [25822] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 25822 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 16:48:28,793 - [25822] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-08 16:48:29,471 - [25822] - src.utils.log - INFO - Sequential deletion from temp tables begin - __SPLIT__ 2026-06-08 16:48:30,166 - [25822] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId in (678345, 678346, 678347, 678348, 678349, 678350, 678351, 678352, 678353, 678354, 678355, 678356, 678357, 678358, 678359, 678360, 678361, 678362, 678363, 678364, 678365, 678366, 678367, 678368, 678369, 678370, 678371, 678372, 678373, 678374, 678375, 678376, 678377, 678378, 678379, 678380, 678381, 678382, 678383, 678384, 678385, 678386, 678387, 678388, 678389, 678390, 678391, 678392, 678393, 678394, 678395, 678396, 678397, 678398, 678399, 678400, 678401) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 16:48:30,878 - [25822] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-08 16:48:31,844 - [25822] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId in (678345, 678346, 678347, 678348, 678349, 678350, 678351, 678352, 678353, 678354, 678355, 678356, 678357, 678358, 678359, 678360, 678361, 678362, 678363, 678364, 678365, 678366, 678367, 678368, 678369, 678370, 678371, 678372, 678373, 678374, 678375, 678376, 678377, 678378, 678379, 678380, 678381, 678382, 678383, 678384, 678385, 678386, 678387, 678388, 678389, 678390, 678391, 678392, 678393, 678394, 678395, 678396, 678397, 678398, 678399, 678400, 678401) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 16:48:32,550 - [25822] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-08 16:48:33,252 - [25822] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId in (678345, 678346, 678347, 678348, 678349, 678350, 678351, 678352, 678353, 678354, 678355, 678356, 678357, 678358, 678359, 678360, 678361, 678362, 678363, 678364, 678365, 678366, 678367, 678368, 678369, 678370, 678371, 678372, 678373, 678374, 678375, 678376, 678377, 678378, 678379, 678380, 678381, 678382, 678383, 678384, 678385, 678386, 678387, 678388, 678389, 678390, 678391, 678392, 678393, 678394, 678395, 678396, 678397, 678398, 678399, 678400, 678401) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 16:48:33,958 - [25822] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-08 16:48:34,639 - [25822] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId in (678345, 678346, 678347, 678348, 678349, 678350, 678351, 678352, 678353, 678354, 678355, 678356, 678357, 678358, 678359, 678360, 678361, 678362, 678363, 678364, 678365, 678366, 678367, 678368, 678369, 678370, 678371, 678372, 678373, 678374, 678375, 678376, 678377, 678378, 678379, 678380, 678381, 678382, 678383, 678384, 678385, 678386, 678387, 678388, 678389, 678390, 678391, 678392, 678393, 678394, 678395, 678396, 678397, 678398, 678399, 678400, 678401) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 16:48:35,438 - [25822] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-08 16:48:36,117 - [25822] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId in (678345, 678346, 678347, 678348, 678349, 678350, 678351, 678352, 678353, 678354, 678355, 678356, 678357, 678358, 678359, 678360, 678361, 678362, 678363, 678364, 678365, 678366, 678367, 678368, 678369, 678370, 678371, 678372, 678373, 678374, 678375, 678376, 678377, 678378, 678379, 678380, 678381, 678382, 678383, 678384, 678385, 678386, 678387, 678388, 678389, 678390, 678391, 678392, 678393, 678394, 678395, 678396, 678397, 678398, 678399, 678400, 678401) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 16:48:36,863 - [25822] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-08 16:48:37,542 - [25822] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (678345, 678346, 678347, 678348, 678349, 678350, 678351, 678352, 678353, 678354, 678355, 678356, 678357, 678358, 678359, 678360, 678361, 678362, 678363, 678364, 678365, 678366, 678367, 678368, 678369, 678370, 678371, 678372, 678373, 678374, 678375, 678376, 678377, 678378, 678379, 678380, 678381, 678382, 678383, 678384, 678385, 678386, 678387, 678388, 678389, 678390, 678391, 678392, 678393, 678394, 678395, 678396, 678397, 678398, 678399, 678400, 678401) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 16:48:38,253 - [25822] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-08 16:48:38,931 - [25822] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId in (678345, 678346, 678347, 678348, 678349, 678350, 678351, 678352, 678353, 678354, 678355, 678356, 678357, 678358, 678359, 678360, 678361, 678362, 678363, 678364, 678365, 678366, 678367, 678368, 678369, 678370, 678371, 678372, 678373, 678374, 678375, 678376, 678377, 678378, 678379, 678380, 678381, 678382, 678383, 678384, 678385, 678386, 678387, 678388, 678389, 678390, 678391, 678392, 678393, 678394, 678395, 678396, 678397, 678398, 678399, 678400, 678401) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 16:48:39,646 - [25822] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-08 16:48:40,327 - [25822] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (678345, 678346, 678347, 678348, 678349, 678350, 678351, 678352, 678353, 678354, 678355, 678356, 678357, 678358, 678359, 678360, 678361, 678362, 678363, 678364, 678365, 678366, 678367, 678368, 678369, 678370, 678371, 678372, 678373, 678374, 678375, 678376, 678377, 678378, 678379, 678380, 678381, 678382, 678383, 678384, 678385, 678386, 678387, 678388, 678389, 678390, 678391, 678392, 678393, 678394, 678395, 678396, 678397, 678398, 678399, 678400, 678401) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 16:48:41,221 - [25822] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-08 16:48:41,899 - [25822] - src.utils.log - INFO - Work order published ids: (678345, 678346, 678347, 678348, 678349, 678350, 678351, 678352, 678353, 678354, 678355, 678356, 678357, 678358, 678359, 678360, 678361, 678362, 678363, 678364, 678365, 678366, 678367, 678368, 678369, 678370, 678371, 678372, 678373, 678374, 678375, 678376, 678377, 678378, 678379, 678380, 678381, 678382, 678383, 678384, 678385, 678386, 678387, 678388, 678389, 678390, 678391, 678392, 678393, 678394, 678395, 678396, 678397, 678398, 678399, 678400, 678401) - __SPLIT__ 2026-06-08 16:48:42,576 - [25822] - src.utils.log - INFO - Time took to perform operation in publishing [25822]: 129.51 - __SPLIT__ 2026-06-08 16:48:43,253 - [25822] - src.utils.log - INFO - Publish Completed for GenerateWorkOrderHistoryId: [25822] - __SPLIT__ 2026-06-08 16:48:43,934 - [25822] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-06-08 12:48:41.898' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 25822;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 16:48:44,642 - [25822] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__