2026-07-14 13:38:49,624 - 124712 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=124712 - __SPLIT__ 2026-07-14 13:38:49,953 - 124712 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 124712 - __SPLIT__ 2026-07-14 13:38:49,954 - 124712 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-14 13:38:49,954 - 124712 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-14 13:38:52,000 - 124712 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-14 13:38:52,001 - 124712 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-07-14 13:38:52,001 - 124712 - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-07-14 13:38:52,002 - 124712 - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-07-14 13:38:52,002 - 124712 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 124712;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-14 13:38:54,589 - 124712 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-14 13:38:54,589 - 124712 - 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 = 124712), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 124712), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 124712 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-07-14 13:38:54,911 - 124712 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-14 13:38:54,911 - 124712 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 124712;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-14 13:38:55,191 - 124712 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-14 13:38:55,194 - 124712 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-07-14 13:38:55,195 - 124712 - 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 = 14621... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-14 13:38:55,483 - 124712 - src.utils.log - INFO - βœ… Fetched 60 rows - __SPLIT__ 2026-07-14 13:38:55,484 - 124712 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-07-14 13:38:55,487 - 124712 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-07-14 13:38:55,487 - 124712 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150651;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-14 13:38:55,767 - 124712 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-14 13:38:55,767 - 124712 - 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-07-14 00:00:00' and ServiceDate <= '2026-08-31 00:00:00' and ServiceSetupId = 150651 and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-14 13:38:56,053 - 124712 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-14 13:38:56,639 - 124712 - src.utils.log - INFO - Generating work orders for setup: 150651 - __SPLIT__ 2026-07-14 13:38:56,799 - 124712 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-07-14 13:38:56,806 - 124712 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=133 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-14 13:38:57,088 - 124712 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-14 13:38:57,090 - 124712 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-07-14 13:38:57,090 - 124712 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-07-14 13:38:57,090 - 124712 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150651 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-14 13:38:57,535 - 124712 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-14 13:38:57,535 - 124712 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150651 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-14 13:38:57,876 - 124712 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-14 13:38:57,876 - 124712 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150651 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-14 13:38:58,162 - 124712 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-14 13:38:58,162 - 124712 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150651 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-14 13:38:58,503 - 124712 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-14 13:38:58,503 - 124712 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150651 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-14 13:38:58,828 - 124712 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-14 13:38:58,828 - 124712 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150651 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-14 13:38:59,118 - 124712 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-14 13:38:59,119 - 124712 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150651 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-14 13:38:59,401 - 124712 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-14 13:38:59,401 - 124712 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150651 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-14 13:39:00,143 - 124712 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-14 13:39:00,144 - 124712 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-14 13:39:00,144 - 124712 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 21 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-14 13:39:00,478 - 124712 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 21) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-07-14 13:39:03,468 - 124712 - src.utils.log - INFO - βœ… All 21 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-07-14 13:39:03,469 - 124712 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 21 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-07-08 11:55:58.953' and ServiceSetupId = 150651... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-14 13:39:03,791 - 124712 - src.utils.log - INFO - βœ… Fetched 21 rows - __SPLIT__ 2026-07-14 13:39:03,792 - 124712 - src.utils.log - INFO - Id's of work order inserted to DB: [3681317 3681318 3681319 3681320 3681321 3681322 3681323 3681324 3681325 3681326 3681327 3681328 3681329 3681330 3681331 3681332 3681333 3681334 3681335 3681336 3681337] - __SPLIT__ 2026-07-14 13:39:03,792 - 124712 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150651;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-14 13:39:04,070 - 124712 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-14 13:39:04,070 - 124712 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-07-14 13:39:04,071 - 124712 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId = 150651... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-14 13:39:04,351 - 124712 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-14 13:39:04,352 - 124712 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId = 150651... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-14 13:39:04,631 - 124712 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-14 13:39:04,635 - 124712 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId = 150651... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-14 13:39:04,921 - 124712 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-14 13:39:04,922 - 124712 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId = 150651... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-14 13:39:05,201 - 124712 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-14 13:39:05,202 - 124712 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId = 150651... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-14 13:39:05,480 - 124712 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-14 13:39:05,481 - 124712 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId = 150651;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-14 13:39:05,760 - 124712 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-14 13:39:05,761 - 124712 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId = 150651;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-14 13:39:06,040 - 124712 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-14 13:39:06,040 - 124712 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId = 150651;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-14 13:39:06,410 - 124712 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-14 13:39:06,410 - 124712 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId = 150651;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-14 13:39:06,690 - 124712 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-14 13:39:06,699 - 124712 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-07-14 13:39:06,699 - 124712 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-07-14 13:39:06,699 - 124712 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-07-14 13:39:06,699 - 124712 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.CommunicationPreferencesServiceReportNotification: - __SPLIT__ 2026-07-14 13:39:06,699 - 124712 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-07-14 13:39:06,699 - 124712 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SetupAutoGenerationSourceMapping: - __SPLIT__ 2026-07-14 13:39:06,699 - 124712 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-07-14 13:39:06,699 - 124712 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationAppliedDiscount: - __SPLIT__ 2026-07-14 13:39:06,699 - 124712 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-07-14 13:39:06,699 - 124712 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SubWorkOrderAutoGeneration: - __SPLIT__ 2026-07-14 13:39:06,700 - 124712 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-07-14 13:39:06,700 - 124712 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: - __SPLIT__ 2026-07-14 13:39:06,700 - 124712 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-07-14 13:39:06,700 - 124712 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: - __SPLIT__ 2026-07-14 13:39:06,700 - 124712 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-07-14 13:39:06,700 - 124712 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-14 13:39:06,700 - 124712 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3681317, 3681318, 3681319, 3681320, 3681321, 3681322, 3681323, 3681324, 3681325, 3681326, 3681327, 3681328, 3681329, 3681330, 3681331, 3681332, 3681333, 3681334, 3681335, 3681336, 3681337) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-14 13:39:06,979 - 124712 - src.utils.log - INFO - βœ… Fetched 21 rows - __SPLIT__ 2026-07-14 13:39:06,980 - 124712 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationCrews: 21 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-14 13:39:07,281 - 124712 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 21) into ServiceCore.WorkOrderAutoGenerationCrews - __SPLIT__ 2026-07-14 13:39:08,272 - 124712 - src.utils.log - INFO - βœ… All 21 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationCrews in 1 batches - __SPLIT__ 2026-07-14 13:39:08,273 - 124712 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-07-14 13:39:08,273 - 124712 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationServices: - __SPLIT__ 2026-07-14 13:39:08,273 - 124712 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-07-14 13:39:08,273 - 124712 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-14 13:39:08,273 - 124712 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3681317, 3681318, 3681319, 3681320, 3681321, 3681322, 3681323, 3681324, 3681325, 3681326, 3681327, 3681328, 3681329, 3681330, 3681331, 3681332, 3681333, 3681334, 3681335, 3681336, 3681337) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-14 13:39:08,550 - 124712 - src.utils.log - INFO - βœ… Fetched 21 rows - __SPLIT__ 2026-07-14 13:39:08,551 - 124712 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 21 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-14 13:39:08,855 - 124712 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 21) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-07-14 13:39:09,857 - 124712 - src.utils.log - INFO - βœ… All 21 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-07-14 13:39:09,857 - 124712 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-07-14 13:39:09,858 - 124712 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 124712;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-14 13:39:10,136 - 124712 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-14 13:39:10,136 - 124712 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-07-14 13:39:10,136 - 124712 - src.utils.log - INFO - Time took to perform operation: 20.18 - __SPLIT__ 2026-07-14 13:45:00,129 - 124716 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=124716 - __SPLIT__ 2026-07-14 13:45:00,130 - 124716 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 124716 - __SPLIT__ 2026-07-14 13:45:00,132 - 124716 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-14 13:45:00,132 - 124716 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-14 13:45:02,238 - 124716 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-14 13:45:02,238 - 124716 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-07-14 13:45:02,239 - 124716 - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-07-14 13:45:02,239 - 124716 - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-07-14 13:45:02,239 - 124716 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 124716;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-14 13:45:04,115 - 124716 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-14 13:45:04,115 - 124716 - 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 = 124716), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 124716), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 124716 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-07-14 13:45:04,426 - 124716 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-14 13:45:04,427 - 124716 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 124716;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-14 13:45:04,696 - 124716 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-14 13:45:04,699 - 124716 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-07-14 13:45:04,700 - 124716 - 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 = 14853... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-14 13:45:04,979 - 124716 - src.utils.log - INFO - βœ… Fetched 60 rows - __SPLIT__ 2026-07-14 13:45:04,979 - 124716 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-07-14 13:45:04,982 - 124716 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-07-14 13:45:04,982 - 124716 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150648;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-14 13:45:05,251 - 124716 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-14 13:45:05,252 - 124716 - 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-07-14 00:00:00' and ServiceDate <= '2026-08-31 00:00:00' and ServiceSetupId = 150648 and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-14 13:45:05,527 - 124716 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-14 13:45:06,096 - 124716 - src.utils.log - INFO - Generating work orders for setup: 150648 - __SPLIT__ 2026-07-14 13:45:06,473 - 124716 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-07-14 13:45:06,480 - 124716 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=133 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-14 13:45:06,747 - 124716 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-14 13:45:06,749 - 124716 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-07-14 13:45:06,749 - 124716 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-07-14 13:45:06,749 - 124716 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150648 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-14 13:45:07,090 - 124716 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-14 13:45:07,090 - 124716 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150648 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-14 13:45:07,424 - 124716 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-14 13:45:07,424 - 124716 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150648 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-14 13:45:07,701 - 124716 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-14 13:45:07,701 - 124716 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150648 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-14 13:45:08,032 - 124716 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-14 13:45:08,032 - 124716 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150648 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-14 13:45:08,349 - 124716 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-14 13:45:08,349 - 124716 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150648 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-14 13:45:08,631 - 124716 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-14 13:45:08,631 - 124716 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150648 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-14 13:45:08,903 - 124716 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-14 13:45:08,903 - 124716 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150648 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-14 13:45:11,203 - 124716 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-14 13:45:11,204 - 124716 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-14 13:45:11,204 - 124716 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 48 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-14 13:45:11,509 - 124716 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 48) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-07-14 13:45:14,085 - 124716 - src.utils.log - INFO - βœ… All 48 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-07-14 13:45:14,085 - 124716 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 48 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-07-08 11:55:58.953' and ServiceSetupId = 150648... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-14 13:45:14,396 - 124716 - src.utils.log - INFO - βœ… Fetched 48 rows - __SPLIT__ 2026-07-14 13:45:14,397 - 124716 - src.utils.log - INFO - Id's of work order inserted to DB: [3681414 3681415 3681416 3681417 3681418 3681419 3681420 3681421 3681422 3681423 3681424 3681425 3681426 3681427 3681428 3681429 3681430 3681431 3681432 3681433 3681434 3681435 3681436 3681437 3681438 3681439 3681440 3681441 3681442 3681443 3681444 3681445 3681446 3681447 3681448 3681449 3681450 3681451 3681452 3681453 3681454 3681455 3681456 3681457 3681458 3681459 3681460 3681461] - __SPLIT__ 2026-07-14 13:45:14,397 - 124716 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150648;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-14 13:45:14,665 - 124716 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-14 13:45:14,666 - 124716 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-07-14 13:45:14,666 - 124716 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId = 150648... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-14 13:45:14,937 - 124716 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-14 13:45:14,937 - 124716 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId = 150648... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-14 13:45:15,205 - 124716 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-14 13:45:15,210 - 124716 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId = 150648... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-14 13:45:15,485 - 124716 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-14 13:45:15,486 - 124716 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId = 150648... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-14 13:45:15,755 - 124716 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-14 13:45:15,755 - 124716 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId = 150648... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-14 13:45:16,023 - 124716 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-14 13:45:16,023 - 124716 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId = 150648;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-14 13:45:16,293 - 124716 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-14 13:45:16,293 - 124716 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId = 150648;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-14 13:45:16,561 - 124716 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-14 13:45:16,562 - 124716 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId = 150648;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-14 13:45:16,924 - 124716 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-14 13:45:16,924 - 124716 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId = 150648;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-14 13:45:17,194 - 124716 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-14 13:45:17,203 - 124716 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-07-14 13:45:17,203 - 124716 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-07-14 13:45:17,204 - 124716 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-07-14 13:45:17,204 - 124716 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.CommunicationPreferencesServiceReportNotification: - __SPLIT__ 2026-07-14 13:45:17,204 - 124716 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-07-14 13:45:17,204 - 124716 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SetupAutoGenerationSourceMapping: - __SPLIT__ 2026-07-14 13:45:17,204 - 124716 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-07-14 13:45:17,204 - 124716 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationAppliedDiscount: - __SPLIT__ 2026-07-14 13:45:17,204 - 124716 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-07-14 13:45:17,204 - 124716 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SubWorkOrderAutoGeneration: - __SPLIT__ 2026-07-14 13:45:17,204 - 124716 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-07-14 13:45:17,204 - 124716 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: - __SPLIT__ 2026-07-14 13:45:17,204 - 124716 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-07-14 13:45:17,204 - 124716 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: - __SPLIT__ 2026-07-14 13:45:17,205 - 124716 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-07-14 13:45:17,205 - 124716 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-14 13:45:17,205 - 124716 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3681414, 3681415, 3681416, 3681417, 3681418, 3681419, 3681420, 3681421, 3681422, 3681423, 3681424, 3681425, 3681426, 3681427, 3681428, 3681429, 3681430, 3681431, 3681432, 3681433, 3681434, 3681435, 3681436, 3681437, 3681438, 3681439, 3681440, 3681441, 3681442, 3681443, 3681444, 3681445, 3681446, 3681447, 3681448, 3681449, 3681450, 3681451, 3681452, 3681453, 3681454, 3681455, 3681456, 3681457, 3681458, 3681459, 3681460, 3681461) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-14 13:45:17,475 - 124716 - src.utils.log - INFO - βœ… Fetched 48 rows - __SPLIT__ 2026-07-14 13:45:17,476 - 124716 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationCrews: 48 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-14 13:45:17,749 - 124716 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 48) into ServiceCore.WorkOrderAutoGenerationCrews - __SPLIT__ 2026-07-14 13:45:18,721 - 124716 - src.utils.log - INFO - βœ… All 48 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationCrews in 1 batches - __SPLIT__ 2026-07-14 13:45:18,721 - 124716 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-07-14 13:45:18,721 - 124716 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationServices: - __SPLIT__ 2026-07-14 13:45:18,721 - 124716 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-07-14 13:45:18,721 - 124716 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-14 13:45:18,722 - 124716 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3681414, 3681415, 3681416, 3681417, 3681418, 3681419, 3681420, 3681421, 3681422, 3681423, 3681424, 3681425, 3681426, 3681427, 3681428, 3681429, 3681430, 3681431, 3681432, 3681433, 3681434, 3681435, 3681436, 3681437, 3681438, 3681439, 3681440, 3681441, 3681442, 3681443, 3681444, 3681445, 3681446, 3681447, 3681448, 3681449, 3681450, 3681451, 3681452, 3681453, 3681454, 3681455, 3681456, 3681457, 3681458, 3681459, 3681460, 3681461) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-14 13:45:18,989 - 124716 - src.utils.log - INFO - βœ… Fetched 48 rows - __SPLIT__ 2026-07-14 13:45:18,990 - 124716 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 48 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-14 13:45:19,266 - 124716 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 48) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-07-14 13:45:20,267 - 124716 - src.utils.log - INFO - βœ… All 48 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-07-14 13:45:20,267 - 124716 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-07-14 13:45:20,267 - 124716 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 124716;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-14 13:45:20,536 - 124716 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-14 13:45:20,536 - 124716 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-07-14 13:45:20,536 - 124716 - src.utils.log - INFO - Time took to perform operation: 20.41 - __SPLIT__ 2026-07-14 13:47:37,803 - 124717 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=124717 - __SPLIT__ 2026-07-14 13:47:37,804 - 124717 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 124717 - __SPLIT__ 2026-07-14 13:47:37,805 - 124717 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-14 13:47:37,805 - 124717 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-14 13:47:39,836 - 124717 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-14 13:47:39,837 - 124717 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-07-14 13:47:39,837 - 124717 - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-07-14 13:47:39,838 - 124717 - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-07-14 13:47:39,838 - 124717 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 124717;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-14 13:47:41,777 - 124717 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-14 13:47:41,778 - 124717 - 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 = 124717), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 124717), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 124717 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-07-14 13:47:42,096 - 124717 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-14 13:47:42,096 - 124717 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 124717;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-14 13:47:42,375 - 124717 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-14 13:47:42,376 - 124717 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Failed', WoGenErrorInfo ='No setups found in given range', WorkOrderStatusDateTime = '2026-07-14 09:47:42.376' WHERE GenerateWorkOrderHistoryId = 124717;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-14 13:47:42,656 - 124717 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-14 13:47:42,656 - 124717 - src.utils.log - INFO - No Setup Found Error:No setups found for GenerateWorkOrderHistoryid: 124717 - __SPLIT__ 2026-07-14 14:17:01,332 - 124720 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=124720 - __SPLIT__ 2026-07-14 14:17:01,333 - 124720 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 124720 - __SPLIT__ 2026-07-14 14:17:01,333 - 124720 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-14 14:17:01,333 - 124720 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-14 14:17:03,432 - 124720 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-14 14:17:03,433 - 124720 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-07-14 14:17:03,433 - 124720 - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-07-14 14:17:03,434 - 124720 - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-07-14 14:17:03,434 - 124720 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 124720;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-14 14:17:04,681 - 124720 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-14 14:17:04,681 - 124720 - 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 = 124720), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 124720), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 124720 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-07-14 14:17:05,001 - 124720 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-14 14:17:05,001 - 124720 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 124720;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-14 14:17:05,280 - 124720 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-14 14:17:05,283 - 124720 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-07-14 14:17:05,284 - 124720 - 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 = 14726... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-14 14:17:05,572 - 124720 - src.utils.log - INFO - βœ… Fetched 60 rows - __SPLIT__ 2026-07-14 14:17:05,572 - 124720 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-07-14 14:17:05,575 - 124720 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-07-14 14:17:05,576 - 124720 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150652;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-14 14:17:05,855 - 124720 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-14 14:17:05,856 - 124720 - 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-07-14 00:00:00' and ServiceDate <= '2026-08-31 00:00:00' and ServiceSetupId = 150652 and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-14 14:17:06,141 - 124720 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-14 14:17:06,728 - 124720 - src.utils.log - INFO - Generating work orders for setup: 150652 - __SPLIT__ 2026-07-14 14:17:07,007 - 124720 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-07-14 14:17:07,014 - 124720 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=133 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-14 14:17:07,291 - 124720 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-14 14:17:07,292 - 124720 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-07-14 14:17:07,293 - 124720 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-07-14 14:17:07,293 - 124720 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150652 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-14 14:17:07,643 - 124720 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-14 14:17:07,643 - 124720 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150652 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-14 14:17:07,982 - 124720 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-14 14:17:07,982 - 124720 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150652 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-14 14:17:08,268 - 124720 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-14 14:17:08,268 - 124720 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150652 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-14 14:17:08,611 - 124720 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-14 14:17:08,611 - 124720 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150652 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-14 14:17:08,936 - 124720 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-14 14:17:08,936 - 124720 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150652 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-14 14:17:09,226 - 124720 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-14 14:17:09,226 - 124720 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150652 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-14 14:17:09,507 - 124720 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-14 14:17:09,508 - 124720 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150652 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-14 14:17:11,022 - 124720 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-14 14:17:11,022 - 124720 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-14 14:17:11,022 - 124720 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 27 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-14 14:17:11,336 - 124720 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 27) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-07-14 14:17:13,389 - 124720 - src.utils.log - INFO - βœ… All 27 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-07-14 14:17:13,390 - 124720 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 27 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-07-08 11:55:58.953' and ServiceSetupId = 150652... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-14 14:17:13,710 - 124720 - src.utils.log - INFO - βœ… Fetched 27 rows - __SPLIT__ 2026-07-14 14:17:13,711 - 124720 - src.utils.log - INFO - Id's of work order inserted to DB: [3681525 3681526 3681527 3681528 3681529 3681530 3681531 3681532 3681533 3681534 3681535 3681536 3681537 3681538 3681539 3681540 3681541 3681542 3681543 3681544 3681545 3681546 3681547 3681548 3681549 3681550 3681551] - __SPLIT__ 2026-07-14 14:17:13,711 - 124720 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150652;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-14 14:17:13,989 - 124720 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-14 14:17:13,989 - 124720 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-07-14 14:17:13,989 - 124720 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId = 150652... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-14 14:17:14,269 - 124720 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-14 14:17:14,270 - 124720 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId = 150652... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-14 14:17:14,547 - 124720 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-14 14:17:14,551 - 124720 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId = 150652... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-14 14:17:14,836 - 124720 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-14 14:17:14,837 - 124720 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId = 150652... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-14 14:17:15,116 - 124720 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-14 14:17:15,117 - 124720 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId = 150652... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-14 14:17:15,393 - 124720 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-14 14:17:15,394 - 124720 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId = 150652;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-14 14:17:15,673 - 124720 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-14 14:17:15,673 - 124720 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId = 150652;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-14 14:17:15,951 - 124720 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-14 14:17:15,951 - 124720 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId = 150652;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-14 14:17:16,322 - 124720 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-14 14:17:16,322 - 124720 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId = 150652;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-14 14:17:16,602 - 124720 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-14 14:17:16,611 - 124720 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-07-14 14:17:16,611 - 124720 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-07-14 14:17:16,611 - 124720 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-07-14 14:17:16,611 - 124720 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.CommunicationPreferencesServiceReportNotification: - __SPLIT__ 2026-07-14 14:17:16,612 - 124720 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-07-14 14:17:16,612 - 124720 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SetupAutoGenerationSourceMapping: - __SPLIT__ 2026-07-14 14:17:16,612 - 124720 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-07-14 14:17:16,612 - 124720 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationAppliedDiscount: - __SPLIT__ 2026-07-14 14:17:16,612 - 124720 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-07-14 14:17:16,612 - 124720 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SubWorkOrderAutoGeneration: - __SPLIT__ 2026-07-14 14:17:16,612 - 124720 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-07-14 14:17:16,612 - 124720 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: - __SPLIT__ 2026-07-14 14:17:16,612 - 124720 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-07-14 14:17:16,612 - 124720 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: - __SPLIT__ 2026-07-14 14:17:16,612 - 124720 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-07-14 14:17:16,612 - 124720 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-14 14:17:16,613 - 124720 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3681536, 3681537, 3681538, 3681539, 3681540, 3681541, 3681542, 3681543, 3681544, 3681545, 3681546, 3681547, 3681548, 3681549, 3681550, 3681551, 3681525, 3681526, 3681527, 3681528, 3681529, 3681530, 3681531, 3681532, 3681533, 3681534, 3681535) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-14 14:17:16,891 - 124720 - src.utils.log - INFO - βœ… Fetched 27 rows - __SPLIT__ 2026-07-14 14:17:16,892 - 124720 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationCrews: 27 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-14 14:17:17,174 - 124720 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 27) into ServiceCore.WorkOrderAutoGenerationCrews - __SPLIT__ 2026-07-14 14:17:18,165 - 124720 - src.utils.log - INFO - βœ… All 27 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationCrews in 1 batches - __SPLIT__ 2026-07-14 14:17:18,165 - 124720 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-07-14 14:17:18,165 - 124720 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationServices: - __SPLIT__ 2026-07-14 14:17:18,165 - 124720 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-07-14 14:17:18,165 - 124720 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-14 14:17:18,166 - 124720 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3681536, 3681537, 3681538, 3681539, 3681540, 3681541, 3681542, 3681543, 3681544, 3681545, 3681546, 3681547, 3681548, 3681549, 3681550, 3681551, 3681525, 3681526, 3681527, 3681528, 3681529, 3681530, 3681531, 3681532, 3681533, 3681534, 3681535) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-14 14:17:18,442 - 124720 - src.utils.log - INFO - βœ… Fetched 27 rows - __SPLIT__ 2026-07-14 14:17:18,443 - 124720 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 27 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-14 14:17:18,728 - 124720 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 27) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-07-14 14:17:19,731 - 124720 - src.utils.log - INFO - βœ… All 27 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-07-14 14:17:19,731 - 124720 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-07-14 14:17:19,732 - 124720 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 124720;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-14 14:17:20,009 - 124720 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-14 14:17:20,010 - 124720 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-07-14 14:17:20,010 - 124720 - src.utils.log - INFO - Time took to perform operation: 18.68 - __SPLIT__ 2026-07-15 10:34:29,052 - 124726 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=124726 - __SPLIT__ 2026-07-15 10:34:29,053 - 124726 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 124726 - __SPLIT__ 2026-07-15 10:34:29,054 - 124726 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-15 10:34:29,054 - 124726 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-15 10:34:31,031 - 124726 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-15 10:34:31,031 - 124726 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-07-15 10:34:31,032 - 124726 - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-07-15 10:34:31,033 - 124726 - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-07-15 10:34:31,033 - 124726 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 124726;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-15 10:34:32,902 - 124726 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-15 10:34:32,902 - 124726 - 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 = 124726), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 124726), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 124726 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-07-15 10:34:33,205 - 124726 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-15 10:34:33,206 - 124726 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 124726;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-15 10:34:33,469 - 124726 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-15 10:34:33,472 - 124726 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-07-15 10:34:33,472 - 124726 - 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 = 14586... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-15 10:34:33,743 - 124726 - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-07-15 10:34:33,743 - 124726 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-07-15 10:34:33,746 - 124726 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-07-15 10:34:33,746 - 124726 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150656;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-15 10:34:34,009 - 124726 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-15 10:34:34,010 - 124726 - 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-07-15 00:00:00' and ServiceDate <= '2026-08-31 00:00:00' and ServiceSetupId = 150656 and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-15 10:34:34,278 - 124726 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-15 10:34:34,825 - 124726 - src.utils.log - INFO - Generating work orders for setup: 150656 - __SPLIT__ 2026-07-15 10:34:34,862 - 124726 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-07-15 10:34:34,866 - 124726 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=133 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-15 10:34:35,127 - 124726 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-15 10:34:35,130 - 124726 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-07-15 10:34:35,130 - 124726 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-07-15 10:34:35,130 - 124726 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150656 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-15 10:34:35,435 - 124726 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-15 10:34:35,436 - 124726 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150656 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-15 10:34:35,740 - 124726 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-15 10:34:35,740 - 124726 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150656 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-15 10:34:36,008 - 124726 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-15 10:34:36,009 - 124726 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150656 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-15 10:34:36,312 - 124726 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-15 10:34:36,312 - 124726 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150656 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-15 10:34:36,616 - 124726 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-15 10:34:36,616 - 124726 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150656 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-15 10:34:36,889 - 124726 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-15 10:34:36,889 - 124726 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150656 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-15 10:34:37,154 - 124726 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-15 10:34:37,154 - 124726 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150656 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-15 10:34:37,537 - 124726 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-15 10:34:37,538 - 124726 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-15 10:34:37,538 - 124726 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-15 10:34:37,855 - 124726 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-07-15 10:34:38,835 - 124726 - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-07-15 10:34:38,836 - 124726 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 2 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-07-08 11:55:58.953' and ServiceSetupId = 150656... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-15 10:34:39,137 - 124726 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-15 10:34:39,138 - 124726 - src.utils.log - INFO - Id's of work order inserted to DB: [3681560 3681561] - __SPLIT__ 2026-07-15 10:34:39,138 - 124726 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150656;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-15 10:34:39,400 - 124726 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-15 10:34:39,400 - 124726 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-07-15 10:34:39,400 - 124726 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId = 150656... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-15 10:34:39,664 - 124726 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-15 10:34:39,664 - 124726 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId = 150656... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-15 10:34:39,928 - 124726 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-15 10:34:39,936 - 124726 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId = 150656... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-15 10:34:40,204 - 124726 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-15 10:34:40,206 - 124726 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId = 150656... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-15 10:34:40,468 - 124726 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-15 10:34:40,469 - 124726 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId = 150656... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-15 10:34:40,730 - 124726 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-15 10:34:40,730 - 124726 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId = 150656;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-15 10:34:40,992 - 124726 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-15 10:34:40,993 - 124726 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId = 150656;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-15 10:34:41,255 - 124726 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-15 10:34:41,256 - 124726 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId = 150656;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-15 10:34:41,607 - 124726 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-15 10:34:41,607 - 124726 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId = 150656;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-15 10:34:41,870 - 124726 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-15 10:34:41,885 - 124726 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-07-15 10:34:41,886 - 124726 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-07-15 10:34:41,886 - 124726 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-07-15 10:34:41,886 - 124726 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.CommunicationPreferencesServiceReportNotification: - __SPLIT__ 2026-07-15 10:34:41,886 - 124726 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-07-15 10:34:41,886 - 124726 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-15 10:34:41,886 - 124726 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ('3681561', '3681560') ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-15 10:34:42,148 - 124726 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-15 10:34:42,149 - 124726 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.SetupAutoGenerationSourceMapping: 0 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-15 10:34:42,431 - 124726 - src.utils.log - INFO - βœ… All 0 rows inserted successfully into ServiceCore.SetupAutoGenerationSourceMapping in 0 batches - __SPLIT__ 2026-07-15 10:34:42,431 - 124726 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-07-15 10:34:42,431 - 124726 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationAppliedDiscount: - __SPLIT__ 2026-07-15 10:34:42,431 - 124726 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-07-15 10:34:42,431 - 124726 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SubWorkOrderAutoGeneration: - __SPLIT__ 2026-07-15 10:34:42,431 - 124726 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-07-15 10:34:42,431 - 124726 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: - __SPLIT__ 2026-07-15 10:34:42,431 - 124726 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-07-15 10:34:42,432 - 124726 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: - __SPLIT__ 2026-07-15 10:34:42,432 - 124726 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-07-15 10:34:42,432 - 124726 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-15 10:34:42,432 - 124726 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 3681560 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-15 10:34:42,693 - 124726 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-15 10:34:42,694 - 124726 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationCrews: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-15 10:34:42,978 - 124726 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationCrews - __SPLIT__ 2026-07-15 10:34:43,903 - 124726 - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationCrews in 1 batches - __SPLIT__ 2026-07-15 10:34:43,903 - 124726 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-07-15 10:34:43,903 - 124726 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-15 10:34:43,903 - 124726 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 3681560 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-15 10:34:44,164 - 124726 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-15 10:34:44,165 - 124726 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-15 10:34:44,451 - 124726 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-07-15 10:34:45,373 - 124726 - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-07-15 10:34:45,373 - 124726 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-07-15 10:34:45,374 - 124726 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-15 10:34:45,374 - 124726 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 3681561 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-15 10:34:45,634 - 124726 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-15 10:34:45,635 - 124726 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-15 10:34:45,904 - 124726 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-07-15 10:34:46,831 - 124726 - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-07-15 10:34:46,832 - 124726 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-07-15 10:34:46,832 - 124726 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 124726;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-15 10:34:47,093 - 124726 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-15 10:34:47,093 - 124726 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-07-15 10:34:47,094 - 124726 - src.utils.log - INFO - Time took to perform operation: 18.04 - __SPLIT__ 2026-07-15 13:44:17,265 - [12651] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[2737387, 2737388] user_id=122885 company_id=135 project_id=[12651] publish_all=False - __SPLIT__ 2026-07-15 13:44:17,266 - [12651] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[2737387, 2737388] user_id=122885 company_id=135 project_id=[12651] publish_all=False - __SPLIT__ 2026-07-15 13:44:17,266 - [12651] - src.utils.log - INFO - Sequential Work order publish in progress for GenerateWorkOrderHistoryId: [12651] - __SPLIT__ 2026-07-15 13:44:17,266 - [12651] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-15 13:44:17,267 - [12651] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-15 13:44:19,344 - [12651] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-15 13:44:19,345 - [12651] - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-07-15 13:44:19,345 - [12651] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'InProgress' WHERE CompanyId = 135 AND GenerateWorkOrderHistoryId = 12651;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-15 13:44:19,644 - [12651] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-15 13:44:19,644 - [12651] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (2737387, 2737388)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-15 13:44:19,948 - [12651] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-15 13:44:19,948 - [12651] - src.utils.log - INFO - Inside get_work_order_table - __SPLIT__ 2026-07-15 13:44:19,949 - [12651] - 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 = 135 AND d2.CompanyId = bm.CompanyId AND sss.ServiceSetupId = 34382 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-15 13:44:20,256 - [12651] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-15 13:44:20,256 - [12651] - 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 = 135 AND d2.CompanyId = bm.CompanyId AND sss.ServiceSetupId = 34382 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-15 13:44:20,560 - [12651] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-15 13:44:20,560 - [12651] - 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 = 135 AND d2.CompanyId = bm.CompanyId AND sss.ServiceSetupId = 34382 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-15 13:44:20,867 - [12651] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-15 13:44:20,871 - [12651] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder,BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 135;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-15 13:44:21,171 - [12651] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-15 13:44:21,171 - [12651] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 135 AND EnitityNumberType in ('WorkOrder','Invoice'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-15 13:44:21,468 - [12651] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-15 13:44:21,468 - [12651] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder, BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 135; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-15 13:44:21,767 - [12651] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-15 13:44:21,768 - [12651] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig SET NextNumber = NextNumber + 2 OUTPUT INSERTED.NextNumber - 2 AS StartNumber WHERE CompanyId = 135 AND EnitityNumberType IN ('WorkOrder','Invoice'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-15 13:44:22,066 - [12651] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-15 13:44:22,070 - [12651] - 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 = 34382... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-15 13:44:22,373 - [12651] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-15 13:44:22,375 - [12651] - src.utils.log - INFO - πŸ” Fetching data: SELECT x.CompanyId FROM CRM.CompanyMaster x WHERE CompanyKey = 'Fortive';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-15 13:44:22,674 - [12651] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-15 13:44:22,675 - [12651] - src.utils.log - INFO - πŸ” Fetching data: SELECT CollectionStatus,IsHold,AccountNo FROM CRM.Account a WHERE a.AccountNo = 'Nupur26' and a.CompanyId = 124;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-15 13:44:22,971 - [12651] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-15 13:44:22,974 - [12651] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderNo FROM ServiceCore.WorkOrder WHERE WorkOrderNo IN ('169321R', '169322R') AND CompanyId = 135 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-15 13:44:23,272 - [12651] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-15 13:44:23,272 - [12651] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrder (skip triggers): 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-15 13:44:23,775 - [12651] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrder (triggers skipped) - __SPLIT__ 2026-07-15 13:44:24,845 - [12651] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrder in 1 batches (triggers skipped) - __SPLIT__ 2026-07-15 13:44:24,993 - [12651] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-07-15 13:44:24,994 - [12651] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.ServiceSetup SET IsInitialWoGenerated = 1 WHERE CompanyId = 135 AND ServiceSetupId = 34382;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-15 13:44:25,293 - [12651] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-15 13:44:25,294 - [12651] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkorderId, WorkOrderNo FROM ServiceCore.WorkOrder wo WHERE wo.WorkOrderNo IN ('169321R', '169322R') AND wo.AccountNumber = 'Nupur26' AND wo.CompanyId = 135 ... (Thread: ThreadPoolExecutor-3_0) - __SPLIT__ 2026-07-15 13:44:25,597 - [12651] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-15 13:44:25,597 - [12651] - src.utils.log - INFO - Sequential fetching temp table records - __SPLIT__ 2026-07-15 13:44:25,597 - [12651] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationServices woag WHERE woag.WorkOrderAutoGenerationId in (2737387, 2737388)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-15 13:44:25,903 - [12651] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-15 13:44:25,903 - [12651] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SubWorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (2737387, 2737388)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-15 13:44:26,204 - [12651] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-15 13:44:26,204 - [12651] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationCrews woag WHERE woag.WorkOrderAutoGenerationId in (2737387, 2737388)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-15 13:44:26,505 - [12651] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-15 13:44:26,505 - [12651] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationSalesPersonCommission woag WHERE woag.WorkOrderAutoGenerationId in (2737387, 2737388)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-15 13:44:26,803 - [12651] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-15 13:44:26,803 - [12651] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupAutoGenerationSourceMapping woag WHERE woag.WorkOrderAutoGenerationId in (2737387, 2737388)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-15 13:44:27,104 - [12651] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-15 13:44:27,104 - [12651] - 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 (2737387, 2737388)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-15 13:44:27,418 - [12651] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-15 13:44:27,418 - [12651] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from CRM.LeadNote woag WHERE woag.RefId in (2737387, 2737388) and woag.RefType = 'TempWorkorder';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-15 13:44:27,717 - [12651] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-15 13:44:27,717 - [12651] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment woagca WHERE woagca.WorkOrderAutoGenerationId in (2737387, 2737388);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-15 13:44:28,014 - [12651] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-15 13:44:28,017 - [12651] - src.utils.log - INFO - Updating temp tables - __SPLIT__ 2026-07-15 13:44:28,035 - [12651] - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyKey FROM Common.CompanyMaster cm WHERE CompanyId = 135;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-15 13:44:28,330 - [12651] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-15 13:44:28,330 - [12651] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 135 AND EnitityNumberType in ('SubWorkOrder'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-15 13:44:28,630 - [12651] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-15 13:44:28,631 - [12651] - src.utils.log - INFO - πŸ“ Executing: UPDATE Common.GenerateNumberConfig SET NextNumber = '18287' WHERE CompanyId = 135 AND EnitityNumberType in ('SubWorkOrder');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-15 13:44:28,930 - [12651] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-15 13:44:28,935 - [12651] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-15 13:44:28,935 - [12651] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishHistory: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-15 13:44:29,273 - [12651] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationPublishHistory - __SPLIT__ 2026-07-15 13:44:30,336 - [12651] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishHistory in 1 batches - __SPLIT__ 2026-07-15 13:44:30,338 - [12651] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationPublishHistoryId, WorkOrderNo, ServiceSetupId FROM ServiceCore.WorkOrderAutoGenerationPublishHistory WHERE ServiceSetupId = 34382 AND WorkOrderNo IN ('1559646', '4482464') AND GenerateWorkOrderHistoryId = 12651;... (Thread: ThreadPoolExecutor-4_0) - __SPLIT__ 2026-07-15 13:44:30,663 - [12651] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-15 13:44:30,664 - [12651] - src.utils.log - INFO - 🏁 Final merged rows: 2 - __SPLIT__ 2026-07-15 13:44:30,670 - [12651] - src.utils.log - INFO - Sequential Insertion in work order tables begin - __SPLIT__ 2026-07-15 13:44:30,670 - [12651] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-15 13:44:30,670 - [12651] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderServices: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-15 13:44:30,990 - [12651] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderServices - __SPLIT__ 2026-07-15 13:44:32,037 - [12651] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderServices in 1 batches - __SPLIT__ 2026-07-15 13:44:32,038 - [12651] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderAppliedDiscount: - __SPLIT__ 2026-07-15 13:44:32,038 - [12651] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderSalesPersonCommission: - __SPLIT__ 2026-07-15 13:44:32,038 - [12651] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderCommissionAdjustment: - __SPLIT__ 2026-07-15 13:44:32,038 - [12651] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderCrew: - __SPLIT__ 2026-07-15 13:44:32,038 - [12651] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkorderSourceMapping: - __SPLIT__ 2026-07-15 13:44:32,038 - [12651] - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-07-15 13:44:32,038 - [12651] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-15 13:44:32,039 - [12651] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishServices: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-15 13:44:32,360 - [12651] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationPublishServices - __SPLIT__ 2026-07-15 13:44:33,411 - [12651] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishServices in 1 batches - __SPLIT__ 2026-07-15 13:44:33,411 - [12651] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-15 13:44:33,411 - [12651] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.SubWorkOrder: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-15 13:44:33,742 - [12651] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.SubWorkOrder - __SPLIT__ 2026-07-15 13:44:34,949 - [12651] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.SubWorkOrder in 1 batches - __SPLIT__ 2026-07-15 13:44:34,950 - [12651] - src.utils.log - INFO - πŸ” Fetching data: Select * From ServiceCore.SubWorkOrder where WorkOrderId in (811142, 811143)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-15 13:44:35,256 - [12651] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-15 13:44:35,263 - [12651] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-15 13:44:35,263 - [12651] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.subWorkOrderIssue: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-15 13:44:35,588 - [12651] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceAuto.subWorkOrderIssue - __SPLIT__ 2026-07-15 13:44:36,486 - [12651] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceAuto.subWorkOrderIssue in 1 batches - __SPLIT__ 2026-07-15 13:44:36,487 - [12651] - src.utils.log - INFO - πŸ” Fetching data: Select SubWorkOrderIssueId, SubWorkOrderId, ModifiedBy From ServiceAuto.subWorkOrderIssue where SubWorkOrderId in (82347, 82348) and ModifiedBy in ('999999999', '1000000000')... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-15 13:44:36,786 - [12651] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-15 13:44:36,787 - [12651] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceAuto.subWorkOrderIssue SET ModifiedBy = 'Fortive' WHERE ModifiedBy IN ('999999999', '1000000000'); ... (Thread: ThreadPoolExecutor-5_0) - __SPLIT__ 2026-07-15 13:44:37,377 - [12651] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-15 13:44:37,384 - [12651] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-15 13:44:37,385 - [12651] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.subWOIssueRepair: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-15 13:44:37,711 - [12651] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceAuto.subWOIssueRepair - __SPLIT__ 2026-07-15 13:44:38,613 - [12651] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceAuto.subWOIssueRepair in 1 batches - __SPLIT__ 2026-07-15 13:44:38,614 - [12651] - src.utils.log - INFO - πŸ” Fetching data: Select IssueRepairId, ModifiedBy From ServiceAuto.subWOIssueRepair where SubWorkOrderIssueId in (148140, 148141)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-15 13:44:38,911 - [12651] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-15 13:44:38,911 - [12651] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceAuto.subWOIssueRepair SET ModifiedBy = 'Fortive' WHERE ModifiedBy IN ('0___TMP___148140', '0___TMP___148141') AND CreatedDate = '2026-07-15 09:44:35.261'; ... (Thread: ThreadPoolExecutor-6_0) - __SPLIT__ 2026-07-15 13:44:39,432 - [12651] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-15 13:44:39,439 - [12651] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-15 13:44:39,439 - [12651] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.SubWOIssueRepairLabor: 4 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-15 13:44:39,758 - [12651] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 4) into ServiceAuto.SubWOIssueRepairLabor - __SPLIT__ 2026-07-15 13:44:40,803 - [12651] - src.utils.log - INFO - βœ… All 4 rows inserted successfully into ServiceAuto.SubWOIssueRepairLabor in 1 batches - __SPLIT__ 2026-07-15 13:44:40,809 - [12651] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-15 13:44:40,809 - [12651] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.SubWOIssueRepairPart: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-15 13:44:41,133 - [12651] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceAuto.SubWOIssueRepairPart - __SPLIT__ 2026-07-15 13:44:42,189 - [12651] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceAuto.SubWOIssueRepairPart in 1 batches - __SPLIT__ 2026-07-15 13:44:42,190 - [12651] - 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 = 34382... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-15 13:44:42,487 - [12651] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-15 13:44:42,494 - [12651] - src.utils.log - INFO - Size of Transaction: 2 - __SPLIT__ 2026-07-15 13:44:42,495 - [12651] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-15 13:44:42,965 - [12651] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-07-15 13:44:44,013 - [12651] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-07-15 13:44:44,160 - [12651] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-07-15 13:44:44,161 - [12651] - 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 = 135 AND t.TransactionType ='Invoice' AND t.CreatedDate = '2026-07-15 09:44:42.489';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-15 13:44:44,485 - [12651] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-15 13:44:44,487 - [12651] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 34382;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-15 13:44:44,786 - [12651] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-15 13:44:44,796 - [12651] - src.utils.log - INFO - πŸ“ Executing: UPDATE Billing.[Transaction] SET ModifiedBy = NULL WHERE ModifiedBy IN (12345678910,12345678911) AND CreatedDate = '2026-07-15 09:44:42.489'; ... (Thread: ThreadPoolExecutor-7_0) - __SPLIT__ 2026-07-15 13:44:45,117 - [12651] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-15 13:44:45,122 - [12651] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-15 13:44:45,123 - [12651] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-15 13:44:45,445 - [12651] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.Invoice - __SPLIT__ 2026-07-15 13:44:46,495 - [12651] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-07-15 13:44:46,495 - [12651] - src.utils.log - INFO - πŸ” Fetching data: SELECT InvoiceId, WorkOrderNo FROM Billing.Invoice i WHERE i.WorkOrderNo in ('169321R', '169322R')... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-15 13:44:46,844 - [12651] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-15 13:44:46,853 - [12651] - 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 = 34382 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-15 13:44:47,155 - [12651] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-15 13:44:47,155 - [12651] - 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 = 34382 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-15 13:44:47,455 - [12651] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-15 13:44:47,455 - [12651] - 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 = 34382 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-15 13:44:47,753 - [12651] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-15 13:44:47,754 - [12651] - 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 = 34382 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-15 13:44:48,051 - [12651] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-15 13:44:48,065 - [12651] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 34382;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-15 13:44:48,366 - [12651] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-15 13:44:48,372 - [12651] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId, AppliedDiscountAmt as AppliedDiscountAmount,IsActive ,ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 34382;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-15 13:44:48,670 - [12651] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-15 13:44:48,673 - [12651] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId,IsActive,DiscountAmount, IsDiscountPercent,DiscountPercent,DiscountDescription , ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 34382;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-15 13:44:48,973 - [12651] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-15 13:44:48,974 - [12651] - src.utils.log - INFO - Sequential Insertion in invoice tables begin - __SPLIT__ 2026-07-15 13:44:48,974 - [12651] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.AccountDiscountSetup: - __SPLIT__ 2026-07-15 13:44:48,974 - [12651] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-15 13:44:48,974 - [12651] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceCharges: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-15 13:44:49,301 - [12651] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.InvoiceCharges - __SPLIT__ 2026-07-15 13:44:50,346 - [12651] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.InvoiceCharges in 1 batches - __SPLIT__ 2026-07-15 13:44:50,347 - [12651] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.DiscountApplied: - __SPLIT__ 2026-07-15 13:44:50,347 - [12651] - src.utils.log - INFO - Invoice Publish Done - __SPLIT__ 2026-07-15 13:44:50,347 - [12651] - src.utils.log - INFO - Updating Next GenerationDate - __SPLIT__ 2026-07-15 13:44:50,347 - [12651] - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, MAX(NextWorkOrderGenerationDate) AS MaxNextWorkOrderGeneration FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 12651 GROUP BY ServiceSetupId; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-15 13:44:50,647 - [12651] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-15 13:44:50,653 - [12651] - src.utils.log - INFO - πŸ”„ Updating next gen date sequentially: inside update_next_workorder_generation - __SPLIT__ 2026-07-15 13:44:50,803 - [12651] - src.utils.log - INFO - πŸ›  Creating temp table #tbl_1f6955d39d - __SPLIT__ 2026-07-15 13:44:51,100 - [12651] - src.utils.log - INFO - πŸ“Œ Bulk inserting 1 rows into #tbl_1f6955d39d - __SPLIT__ 2026-07-15 13:44:51,395 - [12651] - src.utils.log - INFO - πŸ” Running MERGE update to apply changes - __SPLIT__ 2026-07-15 13:44:51,549 - [12651] - src.utils.log - INFO - βœ” SQL reported affected rows: 1 - __SPLIT__ 2026-07-15 13:44:51,702 - [12651] - src.utils.log - INFO - πŸ” Verified successfully updated 1 rows via #tbl_1f6955d39d - __SPLIT__ 2026-07-15 13:44:51,702 - [12651] - src.utils.log - INFO - πŸŽ‰ Successfully updated NextGenerationDate using temp table #tbl_1f6955d39d - __SPLIT__ 2026-07-15 13:44:51,702 - [12651] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 12651 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-15 13:44:51,999 - [12651] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-15 13:44:52,000 - [12651] - src.utils.log - INFO - Sequential deletion from temp tables begin - __SPLIT__ 2026-07-15 13:44:52,000 - [12651] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId in (2737387, 2737388) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-15 13:44:52,312 - [12651] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-15 13:44:52,312 - [12651] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId in (2737387, 2737388) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-15 13:44:52,619 - [12651] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-15 13:44:52,619 - [12651] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId in (2737387, 2737388) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-15 13:44:52,917 - [12651] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-15 13:44:52,917 - [12651] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId in (2737387, 2737388) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-15 13:44:53,254 - [12651] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-15 13:44:53,254 - [12651] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId in (2737387, 2737388) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-15 13:44:53,566 - [12651] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-15 13:44:53,567 - [12651] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (2737387, 2737388) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-15 13:44:53,868 - [12651] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-15 13:44:53,868 - [12651] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId in (2737387, 2737388) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-15 13:44:54,165 - [12651] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-15 13:44:54,165 - [12651] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (2737387, 2737388) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-15 13:44:54,483 - [12651] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-15 13:44:54,483 - [12651] - src.utils.log - INFO - Work order published ids: (2737387, 2737388) - __SPLIT__ 2026-07-15 13:44:54,484 - [12651] - src.utils.log - INFO - Time took to perform operation in publishing [12651]: 37.22 - __SPLIT__ 2026-07-15 13:44:54,484 - [12651] - src.utils.log - INFO - Publish Completed for GenerateWorkOrderHistoryId: [12651] - __SPLIT__ 2026-07-15 13:44:54,484 - [12651] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-07-15 09:44:54.483' WHERE CompanyId = 135 AND GenerateWorkOrderHistoryId = 12651;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-15 13:44:54,782 - [12651] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-16 06:26:26,906 - 124742 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=124742 - __SPLIT__ 2026-07-16 06:26:26,907 - 124742 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 124742 - __SPLIT__ 2026-07-16 06:26:26,908 - 124742 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-16 06:26:26,908 - 124742 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 06:26:28,896 - 124742 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-16 06:26:28,896 - 124742 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-07-16 06:26:28,897 - 124742 - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-07-16 06:26:28,897 - 124742 - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-07-16 06:26:28,897 - 124742 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 124742;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 06:26:30,735 - 124742 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-16 06:26:30,735 - 124742 - 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 = 124742), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 124742), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 124742 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-07-16 06:26:31,040 - 124742 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-16 06:26:31,040 - 124742 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 124742;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 06:26:31,304 - 124742 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-16 06:26:31,307 - 124742 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-07-16 06:26:31,308 - 124742 - 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 = 14037... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 06:26:31,576 - 124742 - src.utils.log - INFO - βœ… Fetched 60 rows - __SPLIT__ 2026-07-16 06:26:31,576 - 124742 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-07-16 06:26:31,579 - 124742 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-07-16 06:26:31,579 - 124742 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150665;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 06:26:31,842 - 124742 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-16 06:26:31,843 - 124742 - 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-07-16 00:00:00' and ServiceDate <= '2026-08-31 00:00:00' and ServiceSetupId = 150665 and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 06:26:32,111 - 124742 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-16 06:26:32,116 - 124742 - src.utils.log - INFO - Unable to get work order table Error: list index out of range - __SPLIT__ 2026-07-16 06:26:32,116 - 124742 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-07-16 06:26:32,116 - 124742 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-07-16 06:26:32,116 - 124742 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150665 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 06:26:32,421 - 124742 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-16 06:26:32,422 - 124742 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150665 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 06:26:32,726 - 124742 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-16 06:26:32,727 - 124742 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150665 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 06:26:32,996 - 124742 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-16 06:26:32,996 - 124742 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150665 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 06:26:33,302 - 124742 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-16 06:26:33,302 - 124742 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150665 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 06:26:33,606 - 124742 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-16 06:26:33,606 - 124742 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150665 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 06:26:33,881 - 124742 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-16 06:26:33,881 - 124742 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150665 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 06:26:34,146 - 124742 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-16 06:26:34,146 - 124742 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150665 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 06:26:34,530 - 124742 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-16 06:26:34,531 - 124742 - src.utils.log - INFO - No work order found in given range - __SPLIT__ 2026-07-16 06:26:34,531 - 124742 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Failed', WoGenErrorInfo ='No work orders generated with selected filters', WorkOrderStatusDateTime = '2026-07-16 02:26:34.531' WHERE GenerateWorkOrderHistoryId = 124742;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 06:26:34,794 - 124742 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-16 06:26:34,794 - 124742 - src.utils.log - INFO - Time took to perform operation: 7.89 - __SPLIT__ 2026-07-16 08:41:16,043 - 124744 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=124744 - __SPLIT__ 2026-07-16 08:41:16,044 - 124744 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 124744 - __SPLIT__ 2026-07-16 08:41:16,044 - 124744 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-16 08:41:16,044 - 124744 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 08:41:18,122 - 124744 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-16 08:41:18,122 - 124744 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-07-16 08:41:18,123 - 124744 - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-07-16 08:41:18,123 - 124744 - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-07-16 08:41:18,124 - 124744 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 124744;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 08:41:19,975 - 124744 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-16 08:41:19,975 - 124744 - 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 = 124744), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 124744), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 124744 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-07-16 08:41:20,280 - 124744 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-16 08:41:20,280 - 124744 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 124744;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 08:41:20,545 - 124744 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-16 08:41:20,548 - 124744 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-07-16 08:41:20,548 - 124744 - 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 = 14037... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 08:41:20,818 - 124744 - src.utils.log - INFO - βœ… Fetched 60 rows - __SPLIT__ 2026-07-16 08:41:20,818 - 124744 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-07-16 08:41:20,821 - 124744 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-07-16 08:41:20,821 - 124744 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150664;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 08:41:21,085 - 124744 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-16 08:41:21,086 - 124744 - 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-07-16 00:00:00' and ServiceDate <= '2026-08-31 00:00:00' and ServiceSetupId = 150664 and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 08:41:21,348 - 124744 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-16 08:41:21,352 - 124744 - src.utils.log - INFO - Unable to get work order table Error: list index out of range - __SPLIT__ 2026-07-16 08:41:21,353 - 124744 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-07-16 08:41:21,353 - 124744 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-07-16 08:41:21,353 - 124744 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150664 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 08:41:21,682 - 124744 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-16 08:41:21,683 - 124744 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150664 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 08:41:22,002 - 124744 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-16 08:41:22,002 - 124744 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150664 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 08:41:22,270 - 124744 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-16 08:41:22,270 - 124744 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150664 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 08:41:22,590 - 124744 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-16 08:41:22,591 - 124744 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150664 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 08:41:22,896 - 124744 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-16 08:41:22,896 - 124744 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150664 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 08:41:23,169 - 124744 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-16 08:41:23,169 - 124744 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150664 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 08:41:23,433 - 124744 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-16 08:41:23,433 - 124744 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150664 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 08:41:23,894 - 124744 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-16 08:41:23,894 - 124744 - src.utils.log - INFO - No work order found in given range - __SPLIT__ 2026-07-16 08:41:23,894 - 124744 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Failed', WoGenErrorInfo ='No work orders generated with selected filters', WorkOrderStatusDateTime = '2026-07-16 04:41:23.894' WHERE GenerateWorkOrderHistoryId = 124744;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 08:41:24,159 - 124744 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-16 08:41:24,159 - 124744 - src.utils.log - INFO - Time took to perform operation: 8.12 - __SPLIT__ 2026-07-16 10:24:53,713 - 12659 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=12659 - __SPLIT__ 2026-07-16 10:24:53,714 - 12659 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 12659 - __SPLIT__ 2026-07-16 10:24:53,728 - 12659 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-16 10:24:53,729 - 12659 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 10:24:56,359 - 12659 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-16 10:24:56,359 - 12659 - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-07-16 10:24:56,359 - 12659 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 12659;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 10:24:56,655 - 12659 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-16 10:24:56,656 - 12659 - 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 = 12659), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 12659), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 12659 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-07-16 10:24:56,975 - 12659 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-16 10:24:56,975 - 12659 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 12659;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 10:24:57,260 - 12659 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-16 10:24:57,263 - 12659 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-07-16 10:24:57,264 - 12659 - 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 = 13039... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 10:24:57,549 - 12659 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-16 10:24:57,550 - 12659 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-07-16 10:24:57,553 - 12659 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-07-16 10:24:57,553 - 12659 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 34387;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 10:24:57,839 - 12659 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-16 10:24:57,839 - 12659 - 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-07-16 00:00:00' and ServiceDate <= '2026-12-31 00:00:00' and ServiceSetupId = 34387 and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 10:24:58,128 - 12659 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-16 10:24:58,723 - 12659 - src.utils.log - INFO - Generating work orders for setup: 34387 - __SPLIT__ 2026-07-16 10:24:58,758 - 12659 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 1415;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 10:24:59,043 - 12659 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-16 10:24:59,051 - 12659 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 1415;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 10:24:59,334 - 12659 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-16 10:24:59,372 - 12659 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-07-16 10:24:59,378 - 12659 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=135 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 10:24:59,661 - 12659 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-16 10:24:59,663 - 12659 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-07-16 10:24:59,663 - 12659 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-07-16 10:24:59,663 - 12659 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34387 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 10:24:59,957 - 12659 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-16 10:24:59,958 - 12659 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34387 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 10:25:00,251 - 12659 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-16 10:25:00,251 - 12659 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34387 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 10:25:00,544 - 12659 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-16 10:25:00,544 - 12659 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34387 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 10:25:00,837 - 12659 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-16 10:25:00,837 - 12659 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34387 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 10:25:01,130 - 12659 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-16 10:25:01,133 - 12659 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34387 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 10:25:01,427 - 12659 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-16 10:25:01,428 - 12659 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34387 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 10:25:01,715 - 12659 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-16 10:25:01,715 - 12659 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34387 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 10:25:02,021 - 12659 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-16 10:25:02,021 - 12659 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-16 10:25:02,021 - 12659 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 5 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 10:25:02,341 - 12659 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 5) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-07-16 10:25:03,513 - 12659 - src.utils.log - INFO - βœ… All 5 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-07-16 10:25:03,514 - 12659 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 5 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-07-16 14:51:40.778' and ServiceSetupId = 34387... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 10:25:03,809 - 12659 - src.utils.log - INFO - βœ… Fetched 5 rows - __SPLIT__ 2026-07-16 10:25:03,809 - 12659 - src.utils.log - INFO - Id's of work order inserted to DB: [2737396 2737397 2737398 2737399 2737400] - __SPLIT__ 2026-07-16 10:25:03,809 - 12659 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 34387;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 10:25:04,097 - 12659 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-16 10:25:04,098 - 12659 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-07-16 10:25:04,098 - 12659 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId = 34387... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 10:25:04,384 - 12659 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-16 10:25:04,385 - 12659 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId = 34387... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 10:25:04,668 - 12659 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-16 10:25:04,672 - 12659 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId = 34387... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 10:25:04,958 - 12659 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-16 10:25:04,958 - 12659 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId = 34387... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 10:25:05,243 - 12659 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-16 10:25:05,244 - 12659 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId = 34387... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 10:25:05,529 - 12659 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-16 10:25:05,530 - 12659 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId = 34387;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 10:25:05,815 - 12659 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-16 10:25:05,816 - 12659 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId = 34387;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 10:25:06,100 - 12659 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-16 10:25:06,101 - 12659 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId = 34387;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 10:25:06,403 - 12659 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-16 10:25:06,404 - 12659 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId = 34387;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 10:25:06,690 - 12659 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-16 10:25:06,704 - 12659 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-07-16 10:25:06,704 - 12659 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-07-16 10:25:06,704 - 12659 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-07-16 10:25:06,704 - 12659 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.CommunicationPreferencesServiceReportNotification: - __SPLIT__ 2026-07-16 10:25:06,705 - 12659 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-07-16 10:25:06,705 - 12659 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-16 10:25:06,705 - 12659 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ('2737397', '2737396', '2737398', '2737399', '2737400') ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 10:25:06,988 - 12659 - src.utils.log - INFO - βœ… Fetched 5 rows - __SPLIT__ 2026-07-16 10:25:06,989 - 12659 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.SetupAutoGenerationSourceMapping: 0 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 10:25:07,275 - 12659 - src.utils.log - INFO - βœ… All 0 rows inserted successfully into ServiceCore.SetupAutoGenerationSourceMapping in 0 batches - __SPLIT__ 2026-07-16 10:25:07,276 - 12659 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-07-16 10:25:07,276 - 12659 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationAppliedDiscount: - __SPLIT__ 2026-07-16 10:25:07,276 - 12659 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-07-16 10:25:07,276 - 12659 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-16 10:25:07,276 - 12659 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (2737396, 2737397, 2737398, 2737399, 2737400) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 10:25:07,560 - 12659 - src.utils.log - INFO - βœ… Fetched 5 rows - __SPLIT__ 2026-07-16 10:25:07,561 - 12659 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.SubWorkOrderAutoGeneration: 5 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 10:25:07,859 - 12659 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 5) into ServiceCore.SubWorkOrderAutoGeneration - __SPLIT__ 2026-07-16 10:25:09,009 - 12659 - src.utils.log - INFO - βœ… All 5 rows inserted successfully into ServiceCore.SubWorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-07-16 10:25:09,009 - 12659 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-07-16 10:25:09,010 - 12659 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: - __SPLIT__ 2026-07-16 10:25:09,010 - 12659 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-07-16 10:25:09,010 - 12659 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: - __SPLIT__ 2026-07-16 10:25:09,010 - 12659 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-07-16 10:25:09,010 - 12659 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCrews: - __SPLIT__ 2026-07-16 10:25:09,010 - 12659 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-07-16 10:25:09,010 - 12659 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationServices: - __SPLIT__ 2026-07-16 10:25:09,010 - 12659 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-07-16 10:25:09,010 - 12659 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-16 10:25:09,011 - 12659 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (2737396, 2737397, 2737398, 2737399, 2737400) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 10:25:09,292 - 12659 - src.utils.log - INFO - βœ… Fetched 5 rows - __SPLIT__ 2026-07-16 10:25:09,293 - 12659 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 5 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 10:25:09,592 - 12659 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 5) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-07-16 10:25:10,590 - 12659 - src.utils.log - INFO - βœ… All 5 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-07-16 10:25:10,590 - 12659 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-07-16 10:25:10,590 - 12659 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 12659;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 10:25:10,875 - 12659 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-16 10:25:10,875 - 12659 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-07-16 10:25:10,875 - 12659 - src.utils.log - INFO - Time took to perform operation: 17.16 - __SPLIT__ 2026-07-16 11:14:01,793 - 124746 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=124746 - __SPLIT__ 2026-07-16 11:14:01,794 - 124746 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 124746 - __SPLIT__ 2026-07-16 11:14:01,795 - 124746 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-16 11:14:01,796 - 124746 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 11:14:03,886 - 124746 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-16 11:14:03,886 - 124746 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-07-16 11:14:03,887 - 124746 - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-07-16 11:14:03,887 - 124746 - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-07-16 11:14:03,887 - 124746 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 124746;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 11:14:06,258 - 124746 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-16 11:14:06,258 - 124746 - 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 = 124746), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 124746), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 124746 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-07-16 11:14:06,564 - 124746 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-16 11:14:06,564 - 124746 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 124746;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 11:14:06,828 - 124746 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-16 11:14:06,831 - 124746 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-07-16 11:14:06,832 - 124746 - 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 = 14037... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 11:14:07,102 - 124746 - src.utils.log - INFO - βœ… Fetched 60 rows - __SPLIT__ 2026-07-16 11:14:07,102 - 124746 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-07-16 11:14:07,105 - 124746 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-07-16 11:14:07,106 - 124746 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150665;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 11:14:07,369 - 124746 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-16 11:14:07,370 - 124746 - 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-07-16 00:00:00' and ServiceDate <= '2026-08-31 00:00:00' and ServiceSetupId = 150665 and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 11:14:07,633 - 124746 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-16 11:14:08,184 - 124746 - src.utils.log - INFO - Generating work orders for setup: 150665 - __SPLIT__ 2026-07-16 11:14:08,194 - 124746 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 1132;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 11:14:08,457 - 124746 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-16 11:14:08,494 - 124746 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-07-16 11:14:08,498 - 124746 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=133 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 11:14:08,760 - 124746 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-16 11:14:08,762 - 124746 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-07-16 11:14:08,762 - 124746 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-07-16 11:14:08,762 - 124746 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150665 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 11:14:09,068 - 124746 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-16 11:14:09,069 - 124746 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150665 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 11:14:09,371 - 124746 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-16 11:14:09,371 - 124746 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150665 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 11:14:09,638 - 124746 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-16 11:14:09,639 - 124746 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150665 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 11:14:09,942 - 124746 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-16 11:14:09,942 - 124746 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150665 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 11:14:10,244 - 124746 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-16 11:14:10,244 - 124746 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150665 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 11:14:10,516 - 124746 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-16 11:14:10,517 - 124746 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150665 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 11:14:10,780 - 124746 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-16 11:14:10,780 - 124746 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150665 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 11:14:11,160 - 124746 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-16 11:14:11,160 - 124746 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-16 11:14:11,160 - 124746 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 11:14:11,462 - 124746 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-07-16 11:14:12,404 - 124746 - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-07-16 11:14:12,405 - 124746 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 1 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-07-16 14:51:40.778' and ServiceSetupId = 150665... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 11:14:12,709 - 124746 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-16 11:14:12,709 - 124746 - src.utils.log - INFO - Id's of work order inserted to DB: [3681579] - __SPLIT__ 2026-07-16 11:14:12,709 - 124746 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150665;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 11:14:12,973 - 124746 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-16 11:14:12,973 - 124746 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-07-16 11:14:12,974 - 124746 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId = 150665... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 11:14:13,239 - 124746 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-16 11:14:13,240 - 124746 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId = 150665... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 11:14:13,504 - 124746 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-16 11:14:13,508 - 124746 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId = 150665... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 11:14:13,778 - 124746 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-16 11:14:13,780 - 124746 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId = 150665... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 11:14:14,043 - 124746 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-16 11:14:14,044 - 124746 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId = 150665... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 11:14:14,306 - 124746 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-16 11:14:14,307 - 124746 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId = 150665;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 11:14:14,571 - 124746 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-16 11:14:14,572 - 124746 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId = 150665;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 11:14:14,834 - 124746 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-16 11:14:14,835 - 124746 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId = 150665;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 11:14:15,204 - 124746 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-16 11:14:15,204 - 124746 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId = 150665;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 11:14:15,469 - 124746 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-16 11:14:15,476 - 124746 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-07-16 11:14:15,476 - 124746 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-07-16 11:14:15,476 - 124746 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-07-16 11:14:15,476 - 124746 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.CommunicationPreferencesServiceReportNotification: - __SPLIT__ 2026-07-16 11:14:15,477 - 124746 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-07-16 11:14:15,477 - 124746 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SetupAutoGenerationSourceMapping: - __SPLIT__ 2026-07-16 11:14:15,477 - 124746 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-07-16 11:14:15,477 - 124746 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationAppliedDiscount: - __SPLIT__ 2026-07-16 11:14:15,477 - 124746 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-07-16 11:14:15,477 - 124746 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SubWorkOrderAutoGeneration: - __SPLIT__ 2026-07-16 11:14:15,477 - 124746 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-07-16 11:14:15,477 - 124746 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: - __SPLIT__ 2026-07-16 11:14:15,477 - 124746 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-07-16 11:14:15,477 - 124746 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: - __SPLIT__ 2026-07-16 11:14:15,477 - 124746 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-07-16 11:14:15,477 - 124746 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-16 11:14:15,478 - 124746 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 3681579 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 11:14:15,740 - 124746 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-16 11:14:15,741 - 124746 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationCrews: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 11:14:16,010 - 124746 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderAutoGenerationCrews - __SPLIT__ 2026-07-16 11:14:16,935 - 124746 - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationCrews in 1 batches - __SPLIT__ 2026-07-16 11:14:16,935 - 124746 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-07-16 11:14:16,936 - 124746 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationServices: - __SPLIT__ 2026-07-16 11:14:16,936 - 124746 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-07-16 11:14:16,936 - 124746 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-16 11:14:16,936 - 124746 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 3681579 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 11:14:17,199 - 124746 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-16 11:14:17,200 - 124746 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 11:14:17,471 - 124746 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-07-16 11:14:18,399 - 124746 - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-07-16 11:14:18,399 - 124746 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-07-16 11:14:18,399 - 124746 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 124746;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 11:14:18,666 - 124746 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-16 11:14:18,666 - 124746 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-07-16 11:14:18,666 - 124746 - src.utils.log - INFO - Time took to perform operation: 16.87 - __SPLIT__ 2026-07-16 11:39:47,558 - 12664 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=12664 - __SPLIT__ 2026-07-16 11:39:47,559 - 12664 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 12664 - __SPLIT__ 2026-07-16 11:39:47,573 - 12664 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-16 11:39:47,573 - 12664 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 11:39:50,275 - 12664 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-16 11:39:50,275 - 12664 - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-07-16 11:39:50,275 - 12664 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 12664;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 11:39:50,573 - 12664 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-16 11:39:50,573 - 12664 - 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 = 12664), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 12664), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 12664 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-07-16 11:39:50,909 - 12664 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-16 11:39:50,909 - 12664 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 12664;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 11:39:51,210 - 12664 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-16 11:39:51,214 - 12664 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-07-16 11:39:51,215 - 12664 - 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 = 13169... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 11:39:51,521 - 12664 - src.utils.log - INFO - βœ… Fetched 60 rows - __SPLIT__ 2026-07-16 11:39:51,521 - 12664 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-07-16 11:39:51,525 - 12664 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-07-16 11:39:51,525 - 12664 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 34389;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 11:39:51,825 - 12664 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-16 11:39:51,826 - 12664 - 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-07-16 00:00:00' and ServiceDate <= '2026-08-31 00:00:00' and ServiceSetupId = 34389 and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 11:39:52,129 - 12664 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-16 11:39:52,753 - 12664 - src.utils.log - INFO - Generating work orders for setup: 34389 - __SPLIT__ 2026-07-16 11:39:52,762 - 12664 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 1363;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 11:39:53,061 - 12664 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-16 11:39:53,100 - 12664 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-07-16 11:39:53,104 - 12664 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=135 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 11:39:53,401 - 12664 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-16 11:39:53,402 - 12664 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-07-16 11:39:53,403 - 12664 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-07-16 11:39:53,403 - 12664 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34389 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 11:39:53,726 - 12664 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-16 11:39:53,726 - 12664 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34389 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 11:39:54,034 - 12664 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-16 11:39:54,034 - 12664 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34389 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 11:39:54,342 - 12664 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-16 11:39:54,342 - 12664 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34389 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 11:39:54,650 - 12664 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-16 11:39:54,650 - 12664 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34389 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 11:39:54,957 - 12664 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-16 11:39:54,957 - 12664 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34389 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 11:39:55,265 - 12664 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-16 11:39:55,265 - 12664 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34389 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 11:39:55,566 - 12664 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-16 11:39:55,566 - 12664 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34389 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 11:39:55,886 - 12664 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-16 11:39:55,887 - 12664 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-16 11:39:55,887 - 12664 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 11:39:56,225 - 12664 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-07-16 11:39:57,305 - 12664 - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-07-16 11:39:57,305 - 12664 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 1 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-07-16 14:51:40.585' and ServiceSetupId = 34389... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 11:39:57,611 - 12664 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-16 11:39:57,612 - 12664 - src.utils.log - INFO - Id's of work order inserted to DB: [2737410] - __SPLIT__ 2026-07-16 11:39:57,612 - 12664 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 34389;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 11:39:57,910 - 12664 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-16 11:39:57,911 - 12664 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-07-16 11:39:57,911 - 12664 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId = 34389... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 11:39:58,213 - 12664 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-16 11:39:58,213 - 12664 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId = 34389... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 11:39:58,513 - 12664 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-16 11:39:58,517 - 12664 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId = 34389... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 11:39:58,817 - 12664 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-16 11:39:58,818 - 12664 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId = 34389... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 11:39:59,118 - 12664 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-16 11:39:59,119 - 12664 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId = 34389... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 11:39:59,418 - 12664 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-16 11:39:59,418 - 12664 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId = 34389;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 11:39:59,718 - 12664 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-16 11:39:59,719 - 12664 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId = 34389;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 11:40:00,058 - 12664 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-16 11:40:00,073 - 12664 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId = 34389;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 11:40:00,390 - 12664 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-16 11:40:00,390 - 12664 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId = 34389;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 11:40:00,689 - 12664 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-16 11:40:00,696 - 12664 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-07-16 11:40:00,697 - 12664 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-07-16 11:40:00,697 - 12664 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-07-16 11:40:00,697 - 12664 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.CommunicationPreferencesServiceReportNotification: - __SPLIT__ 2026-07-16 11:40:00,697 - 12664 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-07-16 11:40:00,697 - 12664 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SetupAutoGenerationSourceMapping: - __SPLIT__ 2026-07-16 11:40:00,697 - 12664 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-07-16 11:40:00,697 - 12664 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationAppliedDiscount: - __SPLIT__ 2026-07-16 11:40:00,697 - 12664 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-07-16 11:40:00,697 - 12664 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SubWorkOrderAutoGeneration: - __SPLIT__ 2026-07-16 11:40:00,697 - 12664 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-07-16 11:40:00,697 - 12664 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: - __SPLIT__ 2026-07-16 11:40:00,697 - 12664 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-07-16 11:40:00,697 - 12664 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: - __SPLIT__ 2026-07-16 11:40:00,697 - 12664 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-07-16 11:40:00,698 - 12664 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-16 11:40:00,698 - 12664 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 2737410 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 11:40:00,996 - 12664 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-16 11:40:00,997 - 12664 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationCrews: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 11:40:01,319 - 12664 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderAutoGenerationCrews - __SPLIT__ 2026-07-16 11:40:02,379 - 12664 - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationCrews in 1 batches - __SPLIT__ 2026-07-16 11:40:02,379 - 12664 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-07-16 11:40:02,379 - 12664 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationServices: - __SPLIT__ 2026-07-16 11:40:02,380 - 12664 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-07-16 11:40:02,380 - 12664 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-16 11:40:02,380 - 12664 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 2737410 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 11:40:02,676 - 12664 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-16 11:40:02,676 - 12664 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 11:40:02,984 - 12664 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-07-16 11:40:04,038 - 12664 - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-07-16 11:40:04,038 - 12664 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-07-16 11:40:04,038 - 12664 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 12664;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 11:40:04,336 - 12664 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-16 11:40:04,336 - 12664 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-07-16 11:40:04,336 - 12664 - src.utils.log - INFO - Time took to perform operation: 16.78 - __SPLIT__ 2026-07-16 11:40:17,021 - [12664] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[2737410] user_id=122885 company_id=135 project_id=[12664] publish_all=False - __SPLIT__ 2026-07-16 11:40:17,022 - [12664] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[2737410] user_id=122885 company_id=135 project_id=[12664] publish_all=False - __SPLIT__ 2026-07-16 11:40:17,023 - [12664] - src.utils.log - INFO - Sequential Work order publish in progress for GenerateWorkOrderHistoryId: [12664] - __SPLIT__ 2026-07-16 11:40:17,037 - [12664] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-16 11:40:17,037 - [12664] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 11:40:19,715 - [12664] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-16 11:40:19,715 - [12664] - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-07-16 11:40:19,716 - [12664] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'InProgress' WHERE CompanyId = 135 AND GenerateWorkOrderHistoryId = 12664;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 11:40:20,010 - [12664] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-16 11:40:20,010 - [12664] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId = 2737410... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 11:40:20,313 - [12664] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-16 11:40:20,313 - [12664] - src.utils.log - INFO - Inside get_work_order_table - __SPLIT__ 2026-07-16 11:40:20,314 - [12664] - 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 = 135 AND d2.CompanyId = bm.CompanyId AND sss.ServiceSetupId = 34389 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 11:40:20,619 - [12664] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-16 11:40:20,619 - [12664] - 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 = 135 AND d2.CompanyId = bm.CompanyId AND sss.ServiceSetupId = 34389 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 11:40:20,922 - [12664] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-16 11:40:20,923 - [12664] - 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 = 135 AND d2.CompanyId = bm.CompanyId AND sss.ServiceSetupId = 34389 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 11:40:21,228 - [12664] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-16 11:40:21,233 - [12664] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder,BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 135;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 11:40:21,529 - [12664] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-16 11:40:21,529 - [12664] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 135 AND EnitityNumberType in ('WorkOrder','Invoice'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 11:40:21,827 - [12664] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-16 11:40:21,827 - [12664] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder, BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 135; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 11:40:22,122 - [12664] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-16 11:40:22,123 - [12664] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig SET NextNumber = NextNumber + 1 OUTPUT INSERTED.NextNumber - 1 AS StartNumber WHERE CompanyId = 135 AND EnitityNumberType IN ('WorkOrder','Invoice'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 11:40:22,422 - [12664] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-16 11:40:22,426 - [12664] - 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 = 34389... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 11:40:22,728 - [12664] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-16 11:40:22,730 - [12664] - src.utils.log - INFO - πŸ” Fetching data: SELECT x.CompanyId FROM CRM.CompanyMaster x WHERE CompanyKey = 'Fortive';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 11:40:23,026 - [12664] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-16 11:40:23,027 - [12664] - src.utils.log - INFO - πŸ” Fetching data: SELECT CollectionStatus,IsHold,AccountNo FROM CRM.Account a WHERE a.AccountNo = '8816' and a.CompanyId = 124;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 11:40:23,324 - [12664] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-16 11:40:23,326 - [12664] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderNo FROM ServiceCore.WorkOrder WHERE WorkOrderNo = '169341R' AND CompanyId = 135 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 11:40:23,623 - [12664] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-16 11:40:23,623 - [12664] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrder (skip triggers): 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 11:40:24,106 - [12664] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrder (triggers skipped) - __SPLIT__ 2026-07-16 11:40:25,176 - [12664] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrder in 1 batches (triggers skipped) - __SPLIT__ 2026-07-16 11:40:25,323 - [12664] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-07-16 11:40:25,326 - [12664] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkorderId, WorkOrderNo FROM ServiceCore.WorkOrder wo WHERE wo.WorkOrderNo = '169341R' AND wo.AccountNumber = '8816' AND wo.CompanyId = 135 ... (Thread: ThreadPoolExecutor-0_0) - __SPLIT__ 2026-07-16 11:40:25,623 - [12664] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-16 11:40:25,624 - [12664] - src.utils.log - INFO - Sequential fetching temp table records - __SPLIT__ 2026-07-16 11:40:25,624 - [12664] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationServices woag WHERE woag.WorkOrderAutoGenerationId = 2737410... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 11:40:25,926 - [12664] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-16 11:40:25,926 - [12664] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SubWorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId = 2737410... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 11:40:26,224 - [12664] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-16 11:40:26,225 - [12664] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationCrews woag WHERE woag.WorkOrderAutoGenerationId = 2737410... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 11:40:26,524 - [12664] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-16 11:40:26,525 - [12664] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationSalesPersonCommission woag WHERE woag.WorkOrderAutoGenerationId = 2737410... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 11:40:26,821 - [12664] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-16 11:40:26,821 - [12664] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupAutoGenerationSourceMapping woag WHERE woag.WorkOrderAutoGenerationId = 2737410... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 11:40:27,122 - [12664] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-16 11:40:27,122 - [12664] - 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 = 2737410... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 11:40:27,436 - [12664] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-16 11:40:27,436 - [12664] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from CRM.LeadNote woag WHERE woag.RefId = 2737410 and woag.RefType = 'TempWorkorder';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 11:40:27,735 - [12664] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-16 11:40:27,736 - [12664] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment woagca WHERE woagca.WorkOrderAutoGenerationId = 2737410;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 11:40:28,033 - [12664] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-16 11:40:28,035 - [12664] - src.utils.log - INFO - Updating temp tables - __SPLIT__ 2026-07-16 11:40:28,048 - [12664] - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyKey FROM Common.CompanyMaster cm WHERE CompanyId = 135;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 11:40:28,342 - [12664] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-16 11:40:28,343 - [12664] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 135 AND EnitityNumberType in ('SubWorkOrder'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 11:40:28,639 - [12664] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-16 11:40:28,643 - [12664] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-16 11:40:28,643 - [12664] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishHistory: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 11:40:28,965 - [12664] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderAutoGenerationPublishHistory - __SPLIT__ 2026-07-16 11:40:30,016 - [12664] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishHistory in 1 batches - __SPLIT__ 2026-07-16 11:40:30,017 - [12664] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationPublishHistoryId, WorkOrderNo, ServiceSetupId FROM ServiceCore.WorkOrderAutoGenerationPublishHistory WHERE ServiceSetupId = 34389 AND WorkOrderNo = '7566923' AND GenerateWorkOrderHistoryId = 12664; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 11:40:30,339 - [12664] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-16 11:40:30,345 - [12664] - src.utils.log - INFO - Sequential Insertion in work order tables begin - __SPLIT__ 2026-07-16 11:40:30,345 - [12664] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-16 11:40:30,345 - [12664] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderServices: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 11:40:30,648 - [12664] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderServices - __SPLIT__ 2026-07-16 11:40:31,694 - [12664] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderServices in 1 batches - __SPLIT__ 2026-07-16 11:40:31,695 - [12664] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderAppliedDiscount: - __SPLIT__ 2026-07-16 11:40:31,695 - [12664] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderSalesPersonCommission: - __SPLIT__ 2026-07-16 11:40:31,695 - [12664] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderCommissionAdjustment: - __SPLIT__ 2026-07-16 11:40:31,695 - [12664] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-16 11:40:31,695 - [12664] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderCrew: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 11:40:32,015 - [12664] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderCrew - __SPLIT__ 2026-07-16 11:40:33,060 - [12664] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderCrew in 1 batches - __SPLIT__ 2026-07-16 11:40:33,060 - [12664] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkorderSourceMapping: - __SPLIT__ 2026-07-16 11:40:33,060 - [12664] - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-07-16 11:40:33,060 - [12664] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-16 11:40:33,060 - [12664] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishServices: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 11:40:33,365 - [12664] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderAutoGenerationPublishServices - __SPLIT__ 2026-07-16 11:40:34,410 - [12664] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishServices in 1 batches - __SPLIT__ 2026-07-16 11:40:34,411 - [12664] - 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 = 34389... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 11:40:34,708 - [12664] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-16 11:40:34,715 - [12664] - src.utils.log - INFO - Size of Transaction: 1 - __SPLIT__ 2026-07-16 11:40:34,716 - [12664] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 11:40:35,166 - [12664] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-07-16 11:40:36,208 - [12664] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-07-16 11:40:36,356 - [12664] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-07-16 11:40:36,357 - [12664] - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionId, ModifiedBy, TransactionDate as InvoiceDate from Billing.[Transaction] t WHERE t.ModifiedBy = 12345678910 and t.CompanyId = 135 AND t.TransactionType ='Invoice' AND t.CreatedDate = '2026-07-16 07:40:34.710';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 11:40:36,681 - [12664] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-16 11:40:36,684 - [12664] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 34389;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 11:40:36,981 - [12664] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-16 11:40:36,990 - [12664] - src.utils.log - INFO - πŸ“ Executing: UPDATE Billing.[Transaction] SET ModifiedBy = NULL WHERE ModifiedBy = 12345678910 AND CreatedDate = '2026-07-16 07:40:34.710'; ... (Thread: ThreadPoolExecutor-1_0) - __SPLIT__ 2026-07-16 11:40:37,311 - [12664] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-16 11:40:37,315 - [12664] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-16 11:40:37,316 - [12664] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 11:40:37,624 - [12664] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into Billing.Invoice - __SPLIT__ 2026-07-16 11:40:38,670 - [12664] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-07-16 11:40:38,670 - [12664] - src.utils.log - INFO - πŸ” Fetching data: SELECT InvoiceId, WorkOrderNo FROM Billing.Invoice i WHERE i.WorkOrderNo = '169341R'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 11:40:39,012 - [12664] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-16 11:40:39,021 - [12664] - 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 = 34389 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 11:40:39,320 - [12664] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-16 11:40:39,320 - [12664] - 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 = 34389 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 11:40:39,619 - [12664] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-16 11:40:39,619 - [12664] - 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 = 34389 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 11:40:39,920 - [12664] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-16 11:40:39,921 - [12664] - 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 = 34389 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 11:40:40,220 - [12664] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-16 11:40:40,232 - [12664] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 34389;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 11:40:40,530 - [12664] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-16 11:40:40,535 - [12664] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId, AppliedDiscountAmt as AppliedDiscountAmount,IsActive ,ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 34389;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 11:40:40,833 - [12664] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-16 11:40:40,836 - [12664] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId,IsActive,DiscountAmount, IsDiscountPercent,DiscountPercent,DiscountDescription , ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 34389;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 11:40:41,133 - [12664] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-16 11:40:41,133 - [12664] - src.utils.log - INFO - Sequential Insertion in invoice tables begin - __SPLIT__ 2026-07-16 11:40:41,133 - [12664] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.AccountDiscountSetup: - __SPLIT__ 2026-07-16 11:40:41,134 - [12664] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-16 11:40:41,134 - [12664] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceCharges: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 11:40:41,439 - [12664] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into Billing.InvoiceCharges - __SPLIT__ 2026-07-16 11:40:42,482 - [12664] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into Billing.InvoiceCharges in 1 batches - __SPLIT__ 2026-07-16 11:40:42,483 - [12664] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.DiscountApplied: - __SPLIT__ 2026-07-16 11:40:42,483 - [12664] - src.utils.log - INFO - Invoice Publish Done - __SPLIT__ 2026-07-16 11:40:42,483 - [12664] - src.utils.log - INFO - Updating Next GenerationDate - __SPLIT__ 2026-07-16 11:40:42,483 - [12664] - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, MAX(NextWorkOrderGenerationDate) AS MaxNextWorkOrderGeneration FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 12664 GROUP BY ServiceSetupId; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 11:40:42,780 - [12664] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-16 11:40:42,787 - [12664] - src.utils.log - INFO - πŸ”„ Updating next gen date sequentially: inside update_next_workorder_generation - __SPLIT__ 2026-07-16 11:40:42,936 - [12664] - src.utils.log - INFO - πŸ›  Creating temp table #tbl_6a4eaf25ea - __SPLIT__ 2026-07-16 11:40:43,236 - [12664] - src.utils.log - INFO - πŸ“Œ Bulk inserting 1 rows into #tbl_6a4eaf25ea - __SPLIT__ 2026-07-16 11:40:43,531 - [12664] - src.utils.log - INFO - πŸ” Running MERGE update to apply changes - __SPLIT__ 2026-07-16 11:40:43,686 - [12664] - src.utils.log - INFO - βœ” SQL reported affected rows: 1 - __SPLIT__ 2026-07-16 11:40:43,836 - [12664] - src.utils.log - INFO - πŸ” Verified successfully updated 1 rows via #tbl_6a4eaf25ea - __SPLIT__ 2026-07-16 11:40:43,836 - [12664] - src.utils.log - INFO - πŸŽ‰ Successfully updated NextGenerationDate using temp table #tbl_6a4eaf25ea - __SPLIT__ 2026-07-16 11:40:43,837 - [12664] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 12664 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 11:40:44,130 - [12664] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-16 11:40:44,130 - [12664] - src.utils.log - INFO - Sequential deletion from temp tables begin - __SPLIT__ 2026-07-16 11:40:44,131 - [12664] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId = 2737410 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 11:40:44,442 - [12664] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-16 11:40:44,442 - [12664] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId = 2737410 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 11:40:44,749 - [12664] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-16 11:40:44,749 - [12664] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId = 2737410 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 11:40:45,044 - [12664] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-16 11:40:45,045 - [12664] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId = 2737410 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 11:40:45,378 - [12664] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-16 11:40:45,379 - [12664] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId = 2737410 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 11:40:45,690 - [12664] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-16 11:40:45,690 - [12664] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 2737410 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 11:40:45,987 - [12664] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-16 11:40:45,988 - [12664] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId = 2737410 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 11:40:46,283 - [12664] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-16 11:40:46,284 - [12664] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 2737410 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 11:40:46,590 - [12664] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-16 11:40:46,590 - [12664] - src.utils.log - INFO - Work order published ids: (2737410,) - __SPLIT__ 2026-07-16 11:40:46,591 - [12664] - src.utils.log - INFO - Time took to perform operation in publishing [12664]: 29.57 - __SPLIT__ 2026-07-16 11:40:46,591 - [12664] - src.utils.log - INFO - Publish Completed for GenerateWorkOrderHistoryId: [12664] - __SPLIT__ 2026-07-16 11:40:46,591 - [12664] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-07-16 07:40:46.590' WHERE CompanyId = 135 AND GenerateWorkOrderHistoryId = 12664;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 11:40:46,888 - [12664] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-16 12:09:03,215 - 12665 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=12665 - __SPLIT__ 2026-07-16 12:09:03,216 - 12665 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 12665 - __SPLIT__ 2026-07-16 12:09:03,216 - 12665 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-16 12:09:03,216 - 12665 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 12:09:05,277 - 12665 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-16 12:09:05,277 - 12665 - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-07-16 12:09:05,277 - 12665 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 12665;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 12:09:05,570 - 12665 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-16 12:09:05,571 - 12665 - 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 = 12665), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 12665), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 12665 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-07-16 12:09:05,902 - 12665 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-16 12:09:05,903 - 12665 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 12665;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 12:09:06,199 - 12665 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-16 12:09:06,202 - 12665 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-07-16 12:09:06,203 - 12665 - 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 = 13169... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 12:09:06,499 - 12665 - src.utils.log - INFO - βœ… Fetched 60 rows - __SPLIT__ 2026-07-16 12:09:06,499 - 12665 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-07-16 12:09:06,502 - 12665 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-07-16 12:09:06,503 - 12665 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 34390;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 12:09:06,798 - 12665 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-16 12:09:06,799 - 12665 - 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-07-16 00:00:00' and ServiceDate <= '2026-08-31 00:00:00' and ServiceSetupId = 34390 and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 12:09:07,097 - 12665 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-16 12:09:07,709 - 12665 - src.utils.log - INFO - Generating work orders for setup: 34390 - __SPLIT__ 2026-07-16 12:09:07,741 - 12665 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-07-16 12:09:07,745 - 12665 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=135 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 12:09:08,040 - 12665 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-16 12:09:08,042 - 12665 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-07-16 12:09:08,042 - 12665 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-07-16 12:09:08,042 - 12665 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34390 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 12:09:08,346 - 12665 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-16 12:09:08,346 - 12665 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34390 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 12:09:08,664 - 12665 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-16 12:09:08,664 - 12665 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34390 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 12:09:08,967 - 12665 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-16 12:09:08,967 - 12665 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34390 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 12:09:09,271 - 12665 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-16 12:09:09,271 - 12665 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34390 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 12:09:09,575 - 12665 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-16 12:09:09,575 - 12665 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34390 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 12:09:09,878 - 12665 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-16 12:09:09,878 - 12665 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34390 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 12:09:10,175 - 12665 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-16 12:09:10,175 - 12665 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34390 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 12:09:10,491 - 12665 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-16 12:09:10,491 - 12665 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-16 12:09:10,491 - 12665 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 12:09:10,827 - 12665 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-07-16 12:09:11,885 - 12665 - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-07-16 12:09:11,885 - 12665 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 1 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-07-16 14:51:40.585' and ServiceSetupId = 34390... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 12:09:12,186 - 12665 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-16 12:09:12,187 - 12665 - src.utils.log - INFO - Id's of work order inserted to DB: [2737411] - __SPLIT__ 2026-07-16 12:09:12,187 - 12665 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 34390;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 12:09:12,480 - 12665 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-16 12:09:12,480 - 12665 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-07-16 12:09:12,480 - 12665 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId = 34390... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 12:09:12,775 - 12665 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-16 12:09:12,776 - 12665 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId = 34390... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 12:09:13,070 - 12665 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-16 12:09:13,075 - 12665 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId = 34390... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 12:09:13,369 - 12665 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-16 12:09:13,370 - 12665 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId = 34390... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 12:09:13,662 - 12665 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-16 12:09:13,663 - 12665 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId = 34390... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 12:09:13,956 - 12665 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-16 12:09:13,957 - 12665 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId = 34390;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 12:09:14,250 - 12665 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-16 12:09:14,251 - 12665 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId = 34390;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 12:09:14,544 - 12665 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-16 12:09:14,544 - 12665 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId = 34390;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 12:09:14,856 - 12665 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-16 12:09:14,856 - 12665 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId = 34390;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 12:09:15,151 - 12665 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-16 12:09:15,156 - 12665 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-07-16 12:09:15,156 - 12665 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-07-16 12:09:15,156 - 12665 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-07-16 12:09:15,156 - 12665 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.CommunicationPreferencesServiceReportNotification: - __SPLIT__ 2026-07-16 12:09:15,156 - 12665 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-07-16 12:09:15,156 - 12665 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SetupAutoGenerationSourceMapping: - __SPLIT__ 2026-07-16 12:09:15,156 - 12665 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-07-16 12:09:15,156 - 12665 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationAppliedDiscount: - __SPLIT__ 2026-07-16 12:09:15,157 - 12665 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-07-16 12:09:15,157 - 12665 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SubWorkOrderAutoGeneration: - __SPLIT__ 2026-07-16 12:09:15,157 - 12665 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-07-16 12:09:15,157 - 12665 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: - __SPLIT__ 2026-07-16 12:09:15,157 - 12665 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-07-16 12:09:15,157 - 12665 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: - __SPLIT__ 2026-07-16 12:09:15,157 - 12665 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-07-16 12:09:15,157 - 12665 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCrews: - __SPLIT__ 2026-07-16 12:09:15,157 - 12665 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-07-16 12:09:15,157 - 12665 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationServices: - __SPLIT__ 2026-07-16 12:09:15,157 - 12665 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-07-16 12:09:15,157 - 12665 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-16 12:09:15,158 - 12665 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 2737411 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 12:09:15,450 - 12665 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-16 12:09:15,451 - 12665 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 12:09:15,751 - 12665 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-07-16 12:09:16,784 - 12665 - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-07-16 12:09:16,785 - 12665 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-07-16 12:09:16,785 - 12665 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 12665;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 12:09:17,077 - 12665 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-16 12:09:17,077 - 12665 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-07-16 12:09:17,077 - 12665 - src.utils.log - INFO - Time took to perform operation: 13.86 - __SPLIT__ 2026-07-16 12:14:18,073 - 124747 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=124747 - __SPLIT__ 2026-07-16 12:14:18,074 - 124747 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 124747 - __SPLIT__ 2026-07-16 12:14:18,075 - 124747 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-16 12:14:18,076 - 124747 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 12:14:20,036 - 124747 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-16 12:14:20,037 - 124747 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-07-16 12:14:20,037 - 124747 - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-07-16 12:14:20,038 - 124747 - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-07-16 12:14:20,038 - 124747 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 124747;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 12:14:22,426 - 124747 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-16 12:14:22,427 - 124747 - 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 = 124747), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 124747), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 124747 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-07-16 12:14:22,733 - 124747 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-16 12:14:22,733 - 124747 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 124747;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 12:14:22,999 - 124747 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-16 12:14:23,002 - 124747 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-07-16 12:14:23,003 - 124747 - 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 = 14653... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 12:14:23,277 - 124747 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-16 12:14:23,277 - 124747 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-07-16 12:14:23,280 - 124747 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-07-16 12:14:23,281 - 124747 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150667;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 12:14:23,546 - 124747 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-16 12:14:23,547 - 124747 - 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-07-16 00:00:00' and ServiceDate <= '2026-12-31 00:00:00' and ServiceSetupId = 150667 and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 12:14:23,818 - 124747 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-16 12:14:24,371 - 124747 - src.utils.log - INFO - Generating work orders for setup: 150667 - __SPLIT__ 2026-07-16 12:14:24,412 - 124747 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 11428;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 12:14:24,678 - 124747 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-16 12:14:24,687 - 124747 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 1130;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 12:14:24,952 - 124747 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-16 12:14:25,065 - 124747 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-07-16 12:14:25,071 - 124747 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=133 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 12:14:25,335 - 124747 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-16 12:14:25,337 - 124747 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-07-16 12:14:25,337 - 124747 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-07-16 12:14:25,338 - 124747 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150667 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 12:14:25,658 - 124747 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-16 12:14:25,658 - 124747 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150667 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 12:14:25,965 - 124747 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-16 12:14:25,966 - 124747 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150667 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 12:14:26,238 - 124747 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-16 12:14:26,238 - 124747 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150667 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 12:14:26,545 - 124747 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-16 12:14:26,546 - 124747 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150667 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 12:14:26,852 - 124747 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-16 12:14:26,853 - 124747 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150667 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 12:14:27,131 - 124747 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-16 12:14:27,132 - 124747 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150667 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 12:14:27,399 - 124747 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-16 12:14:27,400 - 124747 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150667 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 12:14:27,786 - 124747 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-16 12:14:27,786 - 124747 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-16 12:14:27,786 - 124747 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 6 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 12:14:28,087 - 124747 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 6) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-07-16 12:14:29,200 - 124747 - src.utils.log - INFO - βœ… All 6 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-07-16 12:14:29,200 - 124747 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 6 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-07-16 14:51:40.585' and ServiceSetupId = 150667... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 12:14:29,507 - 124747 - src.utils.log - INFO - βœ… Fetched 6 rows - __SPLIT__ 2026-07-16 12:14:29,507 - 124747 - src.utils.log - INFO - Id's of work order inserted to DB: [3681580 3681581 3681582 3681583 3681584 3681585] - __SPLIT__ 2026-07-16 12:14:29,508 - 124747 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150667;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 12:14:29,772 - 124747 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-16 12:14:29,773 - 124747 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-07-16 12:14:29,773 - 124747 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId = 150667... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 12:14:30,040 - 124747 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-16 12:14:30,041 - 124747 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId = 150667... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 12:14:30,306 - 124747 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-16 12:14:30,313 - 124747 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId = 150667... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 12:14:30,585 - 124747 - src.utils.log - INFO - βœ… Fetched 8 rows - __SPLIT__ 2026-07-16 12:14:30,586 - 124747 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId = 150667... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 12:14:30,852 - 124747 - src.utils.log - INFO - βœ… Fetched 8 rows - __SPLIT__ 2026-07-16 12:14:30,853 - 124747 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId = 150667... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 12:14:31,117 - 124747 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-16 12:14:31,117 - 124747 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId = 150667;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 12:14:31,383 - 124747 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-16 12:14:31,383 - 124747 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId = 150667;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 12:14:31,648 - 124747 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-16 12:14:31,648 - 124747 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId = 150667;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 12:14:32,009 - 124747 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-16 12:14:32,009 - 124747 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId = 150667;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 12:14:32,275 - 124747 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-16 12:14:32,291 - 124747 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-07-16 12:14:32,292 - 124747 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-07-16 12:14:32,292 - 124747 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-07-16 12:14:32,292 - 124747 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.CommunicationPreferencesServiceReportNotification: - __SPLIT__ 2026-07-16 12:14:32,292 - 124747 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-07-16 12:14:32,292 - 124747 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SetupAutoGenerationSourceMapping: - __SPLIT__ 2026-07-16 12:14:32,292 - 124747 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-07-16 12:14:32,292 - 124747 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationAppliedDiscount: - __SPLIT__ 2026-07-16 12:14:32,292 - 124747 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-07-16 12:14:32,292 - 124747 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SubWorkOrderAutoGeneration: - __SPLIT__ 2026-07-16 12:14:32,292 - 124747 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-07-16 12:14:32,292 - 124747 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: - __SPLIT__ 2026-07-16 12:14:32,292 - 124747 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-07-16 12:14:32,292 - 124747 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-16 12:14:32,293 - 124747 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3681580, 3681581, 3681582, 3681583, 3681584, 3681585) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 12:14:32,557 - 124747 - src.utils.log - INFO - βœ… Fetched 6 rows - __SPLIT__ 2026-07-16 12:14:32,558 - 124747 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: 24 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 12:14:32,847 - 124747 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 24) into ServiceCore.WorkOrderAutoGenerationSalesPersonCommission - __SPLIT__ 2026-07-16 12:14:33,798 - 124747 - src.utils.log - INFO - βœ… All 24 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationSalesPersonCommission in 1 batches - __SPLIT__ 2026-07-16 12:14:33,798 - 124747 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-07-16 12:14:33,798 - 124747 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-16 12:14:33,799 - 124747 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3681580, 3681581, 3681582, 3681583, 3681584, 3681585) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 12:14:34,063 - 124747 - src.utils.log - INFO - βœ… Fetched 6 rows - __SPLIT__ 2026-07-16 12:14:34,064 - 124747 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationCrews: 24 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 12:14:34,333 - 124747 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 24) into ServiceCore.WorkOrderAutoGenerationCrews - __SPLIT__ 2026-07-16 12:14:35,277 - 124747 - src.utils.log - INFO - βœ… All 24 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationCrews in 1 batches - __SPLIT__ 2026-07-16 12:14:35,277 - 124747 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-07-16 12:14:35,277 - 124747 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-16 12:14:35,278 - 124747 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 3681580 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 12:14:35,542 - 124747 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-16 12:14:35,543 - 124747 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 12:14:35,816 - 124747 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-07-16 12:14:36,754 - 124747 - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-07-16 12:14:36,754 - 124747 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-07-16 12:14:36,755 - 124747 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-16 12:14:36,755 - 124747 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3681581, 3681582, 3681583, 3681584, 3681585) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 12:14:37,021 - 124747 - src.utils.log - INFO - βœ… Fetched 5 rows - __SPLIT__ 2026-07-16 12:14:37,022 - 124747 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 10 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 12:14:37,294 - 124747 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 10) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-07-16 12:14:38,241 - 124747 - src.utils.log - INFO - βœ… All 10 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-07-16 12:14:38,242 - 124747 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-07-16 12:14:38,242 - 124747 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 124747;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 12:14:38,507 - 124747 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-16 12:14:38,507 - 124747 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-07-16 12:14:38,507 - 124747 - src.utils.log - INFO - Time took to perform operation: 20.43 - __SPLIT__ 2026-07-16 12:15:26,313 - [124747] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[3681580, 3681585] user_id=43135 company_id=133 project_id=[124747] publish_all=False - __SPLIT__ 2026-07-16 12:15:26,314 - [124747] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[3681580, 3681585] user_id=43135 company_id=133 project_id=[124747] publish_all=False - __SPLIT__ 2026-07-16 12:15:26,314 - [124747] - src.utils.log - INFO - Sequential Work order publish in progress for GenerateWorkOrderHistoryId: [124747] - __SPLIT__ 2026-07-16 12:15:26,328 - [124747] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-16 12:15:26,328 - [124747] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 12:15:28,851 - [124747] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-16 12:15:28,851 - [124747] - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-07-16 12:15:28,852 - [124747] - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-07-16 12:15:28,852 - [124747] - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-07-16 12:15:28,852 - [124747] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'InProgress' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124747;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 12:15:31,221 - [124747] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-16 12:15:31,222 - [124747] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (3681580, 3681585)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 12:15:31,491 - [124747] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-16 12:15:31,492 - [124747] - src.utils.log - INFO - Inside get_work_order_table - __SPLIT__ 2026-07-16 12:15:31,492 - [124747] - 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 = 150667 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 12:15:31,764 - [124747] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-16 12:15:31,764 - [124747] - 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 = 150667 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 12:15:32,035 - [124747] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-16 12:15:32,036 - [124747] - 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 = 150667 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 12:15:32,309 - [124747] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-16 12:15:32,314 - [124747] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder,BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 12:15:32,577 - [124747] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-16 12:15:32,577 - [124747] - 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-07-16 12:15:32,840 - [124747] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-16 12:15:32,841 - [124747] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder, BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 12:15:33,103 - [124747] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-16 12:15:33,104 - [124747] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 2 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 133 AND EnitityNumberType = 'WorkOrder'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 12:15:33,370 - [124747] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-16 12:15:33,371 - [124747] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 2 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 133 AND EnitityNumberType = 'Invoice'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 12:15:33,637 - [124747] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-16 12:15:33,642 - [124747] - 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 = 150667... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 12:15:33,910 - [124747] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-16 12:15:33,913 - [124747] - src.utils.log - INFO - πŸ” Fetching data: SELECT x.CompanyId FROM CRM.CompanyMaster x WHERE CompanyKey = 'abcdallas';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 12:15:34,175 - [124747] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-16 12:15:34,175 - [124747] - src.utils.log - INFO - πŸ” Fetching data: SELECT CollectionStatus,IsHold,AccountNo FROM CRM.Account a WHERE a.AccountNo = '15014' and a.CompanyId = 121;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 12:15:34,439 - [124747] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-16 12:15:34,441 - [124747] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderNo FROM ServiceCore.WorkOrder WHERE WorkOrderNo IN ('1427313', '1427314') AND CompanyId = 133 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 12:15:34,709 - [124747] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-16 12:15:34,709 - [124747] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrder (skip triggers): 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 12:15:35,139 - [124747] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrder (triggers skipped) - __SPLIT__ 2026-07-16 12:15:36,125 - [124747] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrder in 1 batches (triggers skipped) - __SPLIT__ 2026-07-16 12:15:36,256 - [124747] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-07-16 12:15:36,257 - [124747] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.ServiceSetup SET IsInitialWoGenerated = 1 WHERE CompanyId = 133 AND ServiceSetupId = 150667;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 12:15:36,524 - [124747] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-16 12:15:36,526 - [124747] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkorderId, WorkOrderNo FROM ServiceCore.WorkOrder wo WHERE wo.WorkOrderNo IN ('1427313', '1427314') AND wo.AccountNumber = '15014' AND wo.CompanyId = 133 ... (Thread: ThreadPoolExecutor-0_0) - __SPLIT__ 2026-07-16 12:15:36,795 - [124747] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-16 12:15:36,796 - [124747] - src.utils.log - INFO - Sequential fetching temp table records - __SPLIT__ 2026-07-16 12:15:36,796 - [124747] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationServices woag WHERE woag.WorkOrderAutoGenerationId in (3681580, 3681585)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 12:15:37,100 - [124747] - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-07-16 12:15:37,100 - [124747] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SubWorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (3681580, 3681585)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 12:15:37,366 - [124747] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-16 12:15:37,366 - [124747] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationCrews woag WHERE woag.WorkOrderAutoGenerationId in (3681580, 3681585)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 12:15:37,654 - [124747] - src.utils.log - INFO - βœ… Fetched 8 rows - __SPLIT__ 2026-07-16 12:15:37,655 - [124747] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationSalesPersonCommission woag WHERE woag.WorkOrderAutoGenerationId in (3681580, 3681585)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 12:15:37,922 - [124747] - src.utils.log - INFO - βœ… Fetched 8 rows - __SPLIT__ 2026-07-16 12:15:37,922 - [124747] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupAutoGenerationSourceMapping woag WHERE woag.WorkOrderAutoGenerationId in (3681580, 3681585)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 12:15:38,188 - [124747] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-16 12:15:38,188 - [124747] - 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 (3681580, 3681585)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 12:15:38,478 - [124747] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-16 12:15:38,479 - [124747] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from CRM.LeadNote woag WHERE woag.RefId in (3681580, 3681585) and woag.RefType = 'TempWorkorder';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 12:15:38,744 - [124747] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-16 12:15:38,744 - [124747] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment woagca WHERE woagca.WorkOrderAutoGenerationId in (3681580, 3681585);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 12:15:39,008 - [124747] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-16 12:15:39,011 - [124747] - src.utils.log - INFO - Updating temp tables - __SPLIT__ 2026-07-16 12:15:39,030 - [124747] - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyKey FROM Common.CompanyMaster cm WHERE CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 12:15:39,292 - [124747] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-16 12:15:39,293 - [124747] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 133 AND EnitityNumberType in ('SubWorkOrder'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 12:15:39,555 - [124747] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-16 12:15:39,561 - [124747] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-16 12:15:39,561 - [124747] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishHistory: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 12:15:39,850 - [124747] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationPublishHistory - __SPLIT__ 2026-07-16 12:15:40,794 - [124747] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishHistory in 1 batches - __SPLIT__ 2026-07-16 12:15:40,796 - [124747] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationPublishHistoryId, WorkOrderNo, ServiceSetupId FROM ServiceCore.WorkOrderAutoGenerationPublishHistory WHERE ServiceSetupId = 150667 AND WorkOrderNo IN ('622247', '1286500') AND GenerateWorkOrderHistoryId = 124747;... (Thread: ThreadPoolExecutor-1_0) - __SPLIT__ 2026-07-16 12:15:41,210 - [124747] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-16 12:15:41,211 - [124747] - src.utils.log - INFO - 🏁 Final merged rows: 2 - __SPLIT__ 2026-07-16 12:15:41,217 - [124747] - src.utils.log - INFO - Sequential Insertion in work order tables begin - __SPLIT__ 2026-07-16 12:15:41,217 - [124747] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-16 12:15:41,217 - [124747] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderServices: 4 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 12:15:41,488 - [124747] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 4) into ServiceCore.WorkOrderServices - __SPLIT__ 2026-07-16 12:15:42,437 - [124747] - src.utils.log - INFO - βœ… All 4 rows inserted successfully into ServiceCore.WorkOrderServices in 1 batches - __SPLIT__ 2026-07-16 12:15:42,437 - [124747] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderAppliedDiscount: - __SPLIT__ 2026-07-16 12:15:42,437 - [124747] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-16 12:15:42,437 - [124747] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderSalesPersonCommission: 8 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 12:15:42,725 - [124747] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 8) into ServiceCore.WorkOrderSalesPersonCommission - __SPLIT__ 2026-07-16 12:15:43,675 - [124747] - src.utils.log - INFO - βœ… All 8 rows inserted successfully into ServiceCore.WorkOrderSalesPersonCommission in 1 batches - __SPLIT__ 2026-07-16 12:15:43,675 - [124747] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderCommissionAdjustment: - __SPLIT__ 2026-07-16 12:15:43,675 - [124747] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-16 12:15:43,675 - [124747] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderCrew: 8 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 12:15:43,944 - [124747] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 8) into ServiceCore.WorkOrderCrew - __SPLIT__ 2026-07-16 12:15:44,878 - [124747] - src.utils.log - INFO - βœ… All 8 rows inserted successfully into ServiceCore.WorkOrderCrew in 1 batches - __SPLIT__ 2026-07-16 12:15:44,878 - [124747] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkorderSourceMapping: - __SPLIT__ 2026-07-16 12:15:44,878 - [124747] - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-07-16 12:15:44,878 - [124747] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-16 12:15:44,878 - [124747] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishServices: 4 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 12:15:45,150 - [124747] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 4) into ServiceCore.WorkOrderAutoGenerationPublishServices - __SPLIT__ 2026-07-16 12:15:46,085 - [124747] - src.utils.log - INFO - βœ… All 4 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishServices in 1 batches - __SPLIT__ 2026-07-16 12:15:46,086 - [124747] - 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 = 150667... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 12:15:46,349 - [124747] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-16 12:15:46,356 - [124747] - src.utils.log - INFO - Size of Transaction: 2 - __SPLIT__ 2026-07-16 12:15:46,357 - [124747] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 12:15:46,756 - [124747] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-07-16 12:15:47,684 - [124747] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-07-16 12:15:47,815 - [124747] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-07-16 12:15:47,816 - [124747] - 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 = 133 AND t.TransactionType ='Invoice' AND t.CreatedDate = '2026-07-16 08:15:46.351';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 12:15:48,195 - [124747] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-16 12:15:48,198 - [124747] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150667;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 12:15:48,462 - [124747] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-16 12:15:48,471 - [124747] - src.utils.log - INFO - πŸ“ Executing: UPDATE Billing.[Transaction] SET ModifiedBy = NULL WHERE ModifiedBy IN (12345678910,12345678911) AND CreatedDate = '2026-07-16 08:15:46.351'; ... (Thread: ThreadPoolExecutor-2_0) - __SPLIT__ 2026-07-16 12:15:48,888 - [124747] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-16 12:15:48,893 - [124747] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-16 12:15:48,893 - [124747] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 12:15:49,166 - [124747] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.Invoice - __SPLIT__ 2026-07-16 12:15:50,098 - [124747] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-07-16 12:15:50,099 - [124747] - src.utils.log - INFO - πŸ” Fetching data: SELECT InvoiceId, WorkOrderNo FROM Billing.Invoice i WHERE i.WorkOrderNo in ('1427313', '1427314')... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 12:15:51,021 - [124747] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-16 12:15:51,030 - [124747] - 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 = 150667 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 12:15:51,297 - [124747] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-16 12:15:51,297 - [124747] - 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 = 150667 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 12:15:51,563 - [124747] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-16 12:15:51,564 - [124747] - 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 = 150667 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 12:15:51,830 - [124747] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-16 12:15:51,830 - [124747] - 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 = 150667 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 12:15:52,096 - [124747] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-16 12:15:52,110 - [124747] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150667;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 12:15:52,374 - [124747] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-16 12:15:52,379 - [124747] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId, AppliedDiscountAmt as AppliedDiscountAmount,IsActive ,ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 150667;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 12:15:52,644 - [124747] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-16 12:15:52,647 - [124747] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId,IsActive,DiscountAmount, IsDiscountPercent,DiscountPercent,DiscountDescription , ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 150667;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 12:15:52,911 - [124747] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-16 12:15:52,912 - [124747] - src.utils.log - INFO - Sequential Insertion in invoice tables begin - __SPLIT__ 2026-07-16 12:15:52,912 - [124747] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.AccountDiscountSetup: - __SPLIT__ 2026-07-16 12:15:52,912 - [124747] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-16 12:15:52,912 - [124747] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceCharges: 4 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 12:15:53,184 - [124747] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 4) into Billing.InvoiceCharges - __SPLIT__ 2026-07-16 12:15:54,126 - [124747] - src.utils.log - INFO - βœ… All 4 rows inserted successfully into Billing.InvoiceCharges in 1 batches - __SPLIT__ 2026-07-16 12:15:54,127 - [124747] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.DiscountApplied: - __SPLIT__ 2026-07-16 12:15:54,127 - [124747] - src.utils.log - INFO - Invoice Publish Done - __SPLIT__ 2026-07-16 12:15:54,127 - [124747] - src.utils.log - INFO - Updating Next GenerationDate - __SPLIT__ 2026-07-16 12:15:54,127 - [124747] - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, MAX(NextWorkOrderGenerationDate) AS MaxNextWorkOrderGeneration FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 124747 GROUP BY ServiceSetupId; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 12:15:54,392 - [124747] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-16 12:15:54,398 - [124747] - src.utils.log - INFO - πŸ”„ Updating next gen date sequentially: inside update_next_workorder_generation - __SPLIT__ 2026-07-16 12:15:54,530 - [124747] - src.utils.log - INFO - πŸ›  Creating temp table #tbl_db5f2e843b - __SPLIT__ 2026-07-16 12:15:54,795 - [124747] - src.utils.log - INFO - πŸ“Œ Bulk inserting 1 rows into #tbl_db5f2e843b - __SPLIT__ 2026-07-16 12:15:55,057 - [124747] - src.utils.log - INFO - πŸ” Running MERGE update to apply changes - __SPLIT__ 2026-07-16 12:15:55,196 - [124747] - src.utils.log - INFO - βœ” SQL reported affected rows: 1 - __SPLIT__ 2026-07-16 12:15:55,332 - [124747] - src.utils.log - INFO - πŸ” Verified successfully updated 1 rows via #tbl_db5f2e843b - __SPLIT__ 2026-07-16 12:15:55,332 - [124747] - src.utils.log - INFO - πŸŽ‰ Successfully updated NextGenerationDate using temp table #tbl_db5f2e843b - __SPLIT__ 2026-07-16 12:15:55,332 - [124747] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 124747 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 12:15:55,595 - [124747] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-16 12:15:55,595 - [124747] - src.utils.log - INFO - Sequential deletion from temp tables begin - __SPLIT__ 2026-07-16 12:15:55,595 - [124747] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId in (3681580, 3681585) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 12:15:55,993 - [124747] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-16 12:15:55,994 - [124747] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId in (3681580, 3681585) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 12:15:56,349 - [124747] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-16 12:15:56,349 - [124747] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId in (3681580, 3681585) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 12:15:56,615 - [124747] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-16 12:15:56,615 - [124747] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId in (3681580, 3681585) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 12:15:56,955 - [124747] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-16 12:15:56,956 - [124747] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId in (3681580, 3681585) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 12:15:57,226 - [124747] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-16 12:15:57,226 - [124747] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (3681580, 3681585) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 12:15:57,492 - [124747] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-16 12:15:57,492 - [124747] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId in (3681580, 3681585) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 12:15:57,755 - [124747] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-16 12:15:57,756 - [124747] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (3681580, 3681585) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 12:15:58,104 - [124747] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-16 12:15:58,104 - [124747] - src.utils.log - INFO - Work order published ids: (3681580, 3681585) - __SPLIT__ 2026-07-16 12:15:58,105 - [124747] - src.utils.log - INFO - Time took to perform operation in publishing [124747]: 31.79 - __SPLIT__ 2026-07-16 12:15:58,105 - [124747] - src.utils.log - INFO - Publish Completed for GenerateWorkOrderHistoryId: [124747] - __SPLIT__ 2026-07-16 12:15:58,105 - [124747] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-07-16 08:15:58.104' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124747;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 12:15:58,368 - [124747] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-16 12:20:51,111 - 12666 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=12666 - __SPLIT__ 2026-07-16 12:20:51,112 - 12666 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 12666 - __SPLIT__ 2026-07-16 12:20:51,113 - 12666 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-16 12:20:51,114 - 12666 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 12:20:53,166 - 12666 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-16 12:20:53,166 - 12666 - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-07-16 12:20:53,166 - 12666 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 12666;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 12:20:53,458 - 12666 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-16 12:20:53,458 - 12666 - 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 = 12666), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 12666), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 12666 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-07-16 12:20:53,789 - 12666 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-16 12:20:53,789 - 12666 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 12666;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 12:20:54,082 - 12666 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-16 12:20:54,085 - 12666 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-07-16 12:20:54,086 - 12666 - 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 = 13169... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 12:20:54,382 - 12666 - src.utils.log - INFO - βœ… Fetched 60 rows - __SPLIT__ 2026-07-16 12:20:54,383 - 12666 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-07-16 12:20:54,386 - 12666 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-07-16 12:20:54,386 - 12666 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 34389;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 12:20:54,681 - 12666 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-16 12:20:54,681 - 12666 - 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-07-16 00:00:00' and ServiceDate <= '2028-12-31 00:00:00' and ServiceSetupId = 34389 and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 12:20:54,981 - 12666 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-16 12:20:55,593 - 12666 - src.utils.log - INFO - Generating work orders for setup: 34389 - __SPLIT__ 2026-07-16 12:20:55,626 - 12666 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 1363;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 12:20:55,920 - 12666 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-16 12:20:55,963 - 12666 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-07-16 12:20:55,970 - 12666 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=135 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 12:20:56,264 - 12666 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-16 12:20:56,266 - 12666 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-07-16 12:20:56,266 - 12666 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-07-16 12:20:56,266 - 12666 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34389 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 12:20:56,567 - 12666 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-16 12:20:56,567 - 12666 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34389 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 12:20:56,868 - 12666 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-16 12:20:56,868 - 12666 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34389 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 12:20:57,170 - 12666 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-16 12:20:57,170 - 12666 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34389 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 12:20:57,471 - 12666 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-16 12:20:57,471 - 12666 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34389 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 12:20:57,773 - 12666 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-16 12:20:57,773 - 12666 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34389 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 12:20:58,074 - 12666 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-16 12:20:58,074 - 12666 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34389 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 12:20:58,367 - 12666 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-16 12:20:58,367 - 12666 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34389 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 12:20:58,677 - 12666 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-16 12:20:58,677 - 12666 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-16 12:20:58,677 - 12666 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 5 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 12:20:59,006 - 12666 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 5) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-07-16 12:21:00,236 - 12666 - src.utils.log - INFO - βœ… All 5 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-07-16 12:21:00,236 - 12666 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 5 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-07-16 14:51:40.778' and ServiceSetupId = 34389... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 12:21:00,538 - 12666 - src.utils.log - INFO - βœ… Fetched 5 rows - __SPLIT__ 2026-07-16 12:21:00,538 - 12666 - src.utils.log - INFO - Id's of work order inserted to DB: [2737412 2737413 2737414 2737415 2737416] - __SPLIT__ 2026-07-16 12:21:00,538 - 12666 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 34389;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 12:21:00,831 - 12666 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-16 12:21:00,831 - 12666 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-07-16 12:21:00,831 - 12666 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId = 34389... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 12:21:01,126 - 12666 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-16 12:21:01,126 - 12666 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId = 34389... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 12:21:01,419 - 12666 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-16 12:21:01,424 - 12666 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId = 34389... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 12:21:01,720 - 12666 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-16 12:21:01,721 - 12666 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId = 34389... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 12:21:02,016 - 12666 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-16 12:21:02,016 - 12666 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId = 34389... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 12:21:02,310 - 12666 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-16 12:21:02,310 - 12666 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId = 34389;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 12:21:02,604 - 12666 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-16 12:21:02,605 - 12666 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId = 34389;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 12:21:02,897 - 12666 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-16 12:21:02,898 - 12666 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId = 34389;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 12:21:03,209 - 12666 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-16 12:21:03,210 - 12666 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId = 34389;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 12:21:03,502 - 12666 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-16 12:21:03,511 - 12666 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-07-16 12:21:03,511 - 12666 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-07-16 12:21:03,511 - 12666 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-07-16 12:21:03,511 - 12666 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.CommunicationPreferencesServiceReportNotification: - __SPLIT__ 2026-07-16 12:21:03,512 - 12666 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-07-16 12:21:03,512 - 12666 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SetupAutoGenerationSourceMapping: - __SPLIT__ 2026-07-16 12:21:03,512 - 12666 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-07-16 12:21:03,512 - 12666 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationAppliedDiscount: - __SPLIT__ 2026-07-16 12:21:03,512 - 12666 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-07-16 12:21:03,512 - 12666 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SubWorkOrderAutoGeneration: - __SPLIT__ 2026-07-16 12:21:03,512 - 12666 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-07-16 12:21:03,512 - 12666 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: - __SPLIT__ 2026-07-16 12:21:03,512 - 12666 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-07-16 12:21:03,512 - 12666 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: - __SPLIT__ 2026-07-16 12:21:03,512 - 12666 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-07-16 12:21:03,512 - 12666 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-16 12:21:03,512 - 12666 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (2737412, 2737413, 2737414, 2737415, 2737416) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 12:21:03,806 - 12666 - src.utils.log - INFO - βœ… Fetched 5 rows - __SPLIT__ 2026-07-16 12:21:03,807 - 12666 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationCrews: 5 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 12:21:04,106 - 12666 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 5) into ServiceCore.WorkOrderAutoGenerationCrews - __SPLIT__ 2026-07-16 12:21:05,145 - 12666 - src.utils.log - INFO - βœ… All 5 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationCrews in 1 batches - __SPLIT__ 2026-07-16 12:21:05,145 - 12666 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-07-16 12:21:05,145 - 12666 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationServices: - __SPLIT__ 2026-07-16 12:21:05,145 - 12666 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-07-16 12:21:05,146 - 12666 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-16 12:21:05,146 - 12666 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (2737412, 2737413, 2737414, 2737415, 2737416) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 12:21:05,438 - 12666 - src.utils.log - INFO - βœ… Fetched 5 rows - __SPLIT__ 2026-07-16 12:21:05,439 - 12666 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 5 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 12:21:05,741 - 12666 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 5) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-07-16 12:21:06,777 - 12666 - src.utils.log - INFO - βœ… All 5 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-07-16 12:21:06,777 - 12666 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-07-16 12:21:06,778 - 12666 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 12666;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 12:21:07,070 - 12666 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-16 12:21:07,070 - 12666 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-07-16 12:21:07,070 - 12666 - src.utils.log - INFO - Time took to perform operation: 15.96 - __SPLIT__ 2026-07-16 13:39:43,734 - 12667 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=12667 - __SPLIT__ 2026-07-16 13:39:43,735 - 12667 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 12667 - __SPLIT__ 2026-07-16 13:39:43,735 - 12667 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-16 13:39:43,735 - 12667 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 13:39:45,716 - 12667 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-16 13:39:45,716 - 12667 - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-07-16 13:39:45,716 - 12667 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 12667;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 13:39:45,997 - 12667 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-16 13:39:45,997 - 12667 - 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 = 12667), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 12667), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 12667 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-07-16 13:39:46,315 - 12667 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-16 13:39:46,316 - 12667 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 12667;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 13:39:46,600 - 12667 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-16 13:39:46,603 - 12667 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-07-16 13:39:46,604 - 12667 - 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 = 13169... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 13:39:46,888 - 12667 - src.utils.log - INFO - βœ… Fetched 60 rows - __SPLIT__ 2026-07-16 13:39:46,888 - 12667 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-07-16 13:39:46,891 - 12667 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-07-16 13:39:46,892 - 12667 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 34389;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 13:39:47,176 - 12667 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-16 13:39:47,176 - 12667 - 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-07-16 00:00:00' and ServiceDate <= '2026-08-31 00:00:00' and ServiceSetupId = 34389 and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 13:39:47,457 - 12667 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-16 13:39:48,041 - 12667 - src.utils.log - INFO - Generating work orders for setup: 34389 - __SPLIT__ 2026-07-16 13:39:48,050 - 12667 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 1363;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 13:39:48,332 - 12667 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-16 13:39:48,371 - 12667 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-07-16 13:39:48,376 - 12667 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=135 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 13:39:48,659 - 12667 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-16 13:39:48,661 - 12667 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-07-16 13:39:48,661 - 12667 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-07-16 13:39:48,661 - 12667 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34389 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 13:39:48,959 - 12667 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-16 13:39:48,959 - 12667 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34389 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 13:39:49,252 - 12667 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-16 13:39:49,252 - 12667 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34389 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 13:39:49,541 - 12667 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-16 13:39:49,541 - 12667 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34389 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 13:39:49,843 - 12667 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-16 13:39:49,844 - 12667 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34389 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 13:39:50,138 - 12667 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-16 13:39:50,138 - 12667 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34389 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 13:39:50,431 - 12667 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-16 13:39:50,431 - 12667 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34389 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 13:39:50,711 - 12667 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-16 13:39:50,712 - 12667 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34389 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 13:39:51,046 - 12667 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-16 13:39:51,047 - 12667 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-16 13:39:51,047 - 12667 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 13:39:51,368 - 12667 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-07-16 13:39:52,374 - 12667 - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-07-16 13:39:52,374 - 12667 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 1 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-07-16 14:51:40.406' and ServiceSetupId = 34389... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 13:39:52,664 - 12667 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-16 13:39:52,665 - 12667 - src.utils.log - INFO - Id's of work order inserted to DB: [2737418] - __SPLIT__ 2026-07-16 13:39:52,665 - 12667 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 34389;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 13:39:52,947 - 12667 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-16 13:39:52,947 - 12667 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-07-16 13:39:52,948 - 12667 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId = 34389... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 13:39:53,232 - 12667 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-16 13:39:53,232 - 12667 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId = 34389... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 13:39:53,513 - 12667 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-16 13:39:53,517 - 12667 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId = 34389... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 13:39:53,800 - 12667 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-16 13:39:53,801 - 12667 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId = 34389... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 13:39:54,081 - 12667 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-16 13:39:54,081 - 12667 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId = 34389... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 13:39:54,362 - 12667 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-16 13:39:54,362 - 12667 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId = 34389;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 13:39:54,642 - 12667 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-16 13:39:54,643 - 12667 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId = 34389;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 13:39:54,925 - 12667 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-16 13:39:54,926 - 12667 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId = 34389;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 13:39:55,223 - 12667 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-16 13:39:55,224 - 12667 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId = 34389;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 13:39:55,505 - 12667 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-16 13:39:55,513 - 12667 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-07-16 13:39:55,513 - 12667 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-07-16 13:39:55,513 - 12667 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-07-16 13:39:55,513 - 12667 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.CommunicationPreferencesServiceReportNotification: - __SPLIT__ 2026-07-16 13:39:55,513 - 12667 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-07-16 13:39:55,513 - 12667 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SetupAutoGenerationSourceMapping: - __SPLIT__ 2026-07-16 13:39:55,513 - 12667 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-07-16 13:39:55,513 - 12667 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationAppliedDiscount: - __SPLIT__ 2026-07-16 13:39:55,513 - 12667 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-07-16 13:39:55,514 - 12667 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SubWorkOrderAutoGeneration: - __SPLIT__ 2026-07-16 13:39:55,514 - 12667 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-07-16 13:39:55,514 - 12667 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: - __SPLIT__ 2026-07-16 13:39:55,514 - 12667 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-07-16 13:39:55,514 - 12667 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: - __SPLIT__ 2026-07-16 13:39:55,514 - 12667 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-07-16 13:39:55,514 - 12667 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-16 13:39:55,514 - 12667 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 2737418 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 13:39:55,796 - 12667 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-16 13:39:55,797 - 12667 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationCrews: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 13:39:56,083 - 12667 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderAutoGenerationCrews - __SPLIT__ 2026-07-16 13:39:57,071 - 12667 - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationCrews in 1 batches - __SPLIT__ 2026-07-16 13:39:57,071 - 12667 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-07-16 13:39:57,071 - 12667 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationServices: - __SPLIT__ 2026-07-16 13:39:57,071 - 12667 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-07-16 13:39:57,071 - 12667 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-16 13:39:57,072 - 12667 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 2737418 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 13:39:57,353 - 12667 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-16 13:39:57,354 - 12667 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 13:39:57,643 - 12667 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-07-16 13:39:58,633 - 12667 - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-07-16 13:39:58,633 - 12667 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-07-16 13:39:58,633 - 12667 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 12667;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 13:39:58,913 - 12667 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-16 13:39:58,913 - 12667 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-07-16 13:39:58,913 - 12667 - src.utils.log - INFO - Time took to perform operation: 15.18 - __SPLIT__ 2026-07-17 02:32:00,381 - 124749 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=124749 - __SPLIT__ 2026-07-17 02:32:00,382 - 124749 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 124749 - __SPLIT__ 2026-07-17 02:32:00,383 - 124749 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-17 02:32:00,383 - 124749 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 02:32:02,571 - 124749 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 02:32:02,572 - 124749 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-07-17 02:32:02,572 - 124749 - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-07-17 02:32:02,573 - 124749 - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-07-17 02:32:02,573 - 124749 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 124749;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 02:32:04,465 - 124749 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-17 02:32:04,465 - 124749 - 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 = 124749), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 124749), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 124749 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-07-17 02:32:04,851 - 124749 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 02:32:04,852 - 124749 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 124749;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 02:32:05,117 - 124749 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 02:32:05,120 - 124749 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-07-17 02:32:05,121 - 124749 - 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 = 14640... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 02:32:05,394 - 124749 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 02:32:05,394 - 124749 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-07-17 02:32:05,397 - 124749 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-07-17 02:32:05,397 - 124749 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150668;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 02:32:05,690 - 124749 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 02:32:05,691 - 124749 - 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-07-17 00:00:00' and ServiceDate <= '2026-12-31 00:00:00' and ServiceSetupId = 150668 and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 02:32:05,962 - 124749 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 02:32:06,526 - 124749 - src.utils.log - INFO - Generating work orders for setup: 150668 - __SPLIT__ 2026-07-17 02:32:06,560 - 124749 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 11427;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 02:32:06,824 - 124749 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 02:32:06,832 - 124749 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 11427;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 02:32:07,095 - 124749 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 02:32:07,131 - 124749 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-07-17 02:32:07,136 - 124749 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=133 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 02:32:07,409 - 124749 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 02:32:07,412 - 124749 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-07-17 02:32:07,412 - 124749 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-07-17 02:32:07,412 - 124749 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150668 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 02:32:07,736 - 124749 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 02:32:07,736 - 124749 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150668 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 02:32:08,058 - 124749 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 02:32:08,058 - 124749 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150668 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 02:32:08,339 - 124749 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 02:32:08,339 - 124749 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150668 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 02:32:08,660 - 124749 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 02:32:08,660 - 124749 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150668 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 02:32:08,975 - 124749 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 02:32:08,975 - 124749 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150668 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 02:32:09,325 - 124749 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 02:32:09,325 - 124749 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150668 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 02:32:09,606 - 124749 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 02:32:09,606 - 124749 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150668 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 02:32:09,992 - 124749 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 02:32:09,992 - 124749 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-17 02:32:09,993 - 124749 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 5 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 02:32:10,313 - 124749 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 5) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-07-17 02:32:11,456 - 124749 - src.utils.log - INFO - βœ… All 5 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-07-17 02:32:11,457 - 124749 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 5 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-07-16 14:51:40.585' and ServiceSetupId = 150668... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 02:32:11,776 - 124749 - src.utils.log - INFO - βœ… Fetched 5 rows - __SPLIT__ 2026-07-17 02:32:11,777 - 124749 - src.utils.log - INFO - Id's of work order inserted to DB: [3681590 3681591 3681592 3681593 3681594] - __SPLIT__ 2026-07-17 02:32:11,777 - 124749 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150668;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 02:32:12,043 - 124749 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 02:32:12,044 - 124749 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-07-17 02:32:12,044 - 124749 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId = 150668... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 02:32:12,310 - 124749 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 02:32:12,310 - 124749 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId = 150668... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 02:32:12,574 - 124749 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 02:32:12,579 - 124749 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId = 150668... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 02:32:12,923 - 124749 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 02:32:12,923 - 124749 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId = 150668... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 02:32:13,202 - 124749 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 02:32:13,203 - 124749 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId = 150668... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 02:32:13,471 - 124749 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 02:32:13,472 - 124749 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId = 150668;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 02:32:13,737 - 124749 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 02:32:13,738 - 124749 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId = 150668;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 02:32:14,006 - 124749 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 02:32:14,007 - 124749 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId = 150668;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 02:32:15,324 - 124749 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 02:32:15,325 - 124749 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId = 150668;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 02:32:15,598 - 124749 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 02:32:15,609 - 124749 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-07-17 02:32:15,609 - 124749 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-07-17 02:32:15,610 - 124749 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-07-17 02:32:15,610 - 124749 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.CommunicationPreferencesServiceReportNotification: - __SPLIT__ 2026-07-17 02:32:15,610 - 124749 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-07-17 02:32:15,610 - 124749 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-17 02:32:15,610 - 124749 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ('3681591', '3681590', '3681594', '3681593', '3681592') ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 02:32:15,873 - 124749 - src.utils.log - INFO - βœ… Fetched 5 rows - __SPLIT__ 2026-07-17 02:32:15,874 - 124749 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.SetupAutoGenerationSourceMapping: 0 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 02:32:16,161 - 124749 - src.utils.log - INFO - βœ… All 0 rows inserted successfully into ServiceCore.SetupAutoGenerationSourceMapping in 0 batches - __SPLIT__ 2026-07-17 02:32:16,161 - 124749 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-07-17 02:32:16,162 - 124749 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationAppliedDiscount: - __SPLIT__ 2026-07-17 02:32:16,162 - 124749 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-07-17 02:32:16,162 - 124749 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-17 02:32:16,162 - 124749 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3681590, 3681591, 3681592, 3681593, 3681594) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 02:32:16,425 - 124749 - src.utils.log - INFO - βœ… Fetched 5 rows - __SPLIT__ 2026-07-17 02:32:16,426 - 124749 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.SubWorkOrderAutoGeneration: 5 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 02:32:16,725 - 124749 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 5) into ServiceCore.SubWorkOrderAutoGeneration - __SPLIT__ 2026-07-17 02:32:17,803 - 124749 - src.utils.log - INFO - βœ… All 5 rows inserted successfully into ServiceCore.SubWorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-07-17 02:32:17,803 - 124749 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-07-17 02:32:17,803 - 124749 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: - __SPLIT__ 2026-07-17 02:32:17,803 - 124749 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-07-17 02:32:17,803 - 124749 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: - __SPLIT__ 2026-07-17 02:32:17,804 - 124749 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-07-17 02:32:17,804 - 124749 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCrews: - __SPLIT__ 2026-07-17 02:32:17,804 - 124749 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-07-17 02:32:17,804 - 124749 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationServices: - __SPLIT__ 2026-07-17 02:32:17,804 - 124749 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-07-17 02:32:17,804 - 124749 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-17 02:32:17,804 - 124749 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3681590, 3681591, 3681592, 3681593, 3681594) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 02:32:18,067 - 124749 - src.utils.log - INFO - βœ… Fetched 5 rows - __SPLIT__ 2026-07-17 02:32:18,068 - 124749 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 5 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 02:32:18,361 - 124749 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 5) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-07-17 02:32:19,311 - 124749 - src.utils.log - INFO - βœ… All 5 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-07-17 02:32:19,312 - 124749 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-07-17 02:32:19,312 - 124749 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 124749;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 02:32:19,577 - 124749 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-17 02:32:19,577 - 124749 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-07-17 02:32:19,578 - 124749 - src.utils.log - INFO - Time took to perform operation: 19.19 - __SPLIT__ 2026-07-17 02:32:46,507 - [124749] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[3681590, 3681591] user_id=43135 company_id=133 project_id=[124749] publish_all=False - __SPLIT__ 2026-07-17 02:32:46,508 - [124749] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[3681590, 3681591] user_id=43135 company_id=133 project_id=[124749] publish_all=False - __SPLIT__ 2026-07-17 02:32:46,508 - [124749] - src.utils.log - INFO - Sequential Work order publish in progress for GenerateWorkOrderHistoryId: [124749] - __SPLIT__ 2026-07-17 02:32:46,508 - [124749] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-17 02:32:46,508 - [124749] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 02:32:48,578 - [124749] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 02:32:48,578 - [124749] - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-07-17 02:32:48,579 - [124749] - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-07-17 02:32:48,579 - [124749] - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-07-17 02:32:48,579 - [124749] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'InProgress' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124749;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 02:32:50,421 - [124749] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-17 02:32:50,421 - [124749] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (3681590, 3681591)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 02:32:50,692 - [124749] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-17 02:32:50,692 - [124749] - src.utils.log - INFO - Inside get_work_order_table - __SPLIT__ 2026-07-17 02:32:50,693 - [124749] - 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 = 150668 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 02:32:50,964 - [124749] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 02:32:50,965 - [124749] - 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 = 150668 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 02:32:51,234 - [124749] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 02:32:51,234 - [124749] - 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 = 150668 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 02:32:51,508 - [124749] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 02:32:51,512 - [124749] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder,BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 02:32:51,775 - [124749] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 02:32:51,776 - [124749] - 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-07-17 02:32:52,054 - [124749] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-17 02:32:52,054 - [124749] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder, BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 02:32:52,317 - [124749] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 02:32:52,317 - [124749] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 2 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 133 AND EnitityNumberType = 'WorkOrder'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 02:32:52,582 - [124749] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 02:32:52,582 - [124749] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 2 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 133 AND EnitityNumberType = 'Invoice'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 02:32:52,848 - [124749] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 02:32:52,852 - [124749] - 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 = 150668... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 02:32:53,118 - [124749] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 02:32:53,120 - [124749] - src.utils.log - INFO - πŸ” Fetching data: SELECT x.CompanyId FROM CRM.CompanyMaster x WHERE CompanyKey = 'abcdallas';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 02:32:53,381 - [124749] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 02:32:53,382 - [124749] - src.utils.log - INFO - πŸ” Fetching data: SELECT CollectionStatus,IsHold,AccountNo FROM CRM.Account a WHERE a.AccountNo = '15001' and a.CompanyId = 121;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 02:32:53,644 - [124749] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 02:32:53,646 - [124749] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderNo FROM ServiceCore.WorkOrder WHERE WorkOrderNo IN ('1427317', '1427318') AND CompanyId = 133 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 02:32:53,912 - [124749] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 02:32:53,912 - [124749] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrder (skip triggers): 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 02:32:54,361 - [124749] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrder (triggers skipped) - __SPLIT__ 2026-07-17 02:32:55,492 - [124749] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrder in 1 batches (triggers skipped) - __SPLIT__ 2026-07-17 02:32:55,623 - [124749] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-07-17 02:32:55,624 - [124749] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.ServiceSetup SET IsInitialWoGenerated = 1 WHERE CompanyId = 133 AND ServiceSetupId = 150668;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 02:32:55,892 - [124749] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-17 02:32:55,893 - [124749] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkorderId, WorkOrderNo FROM ServiceCore.WorkOrder wo WHERE wo.WorkOrderNo IN ('1427317', '1427318') AND wo.AccountNumber = '15001' AND wo.CompanyId = 133 ... (Thread: ThreadPoolExecutor-0_0) - __SPLIT__ 2026-07-17 02:32:56,160 - [124749] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-17 02:32:56,161 - [124749] - src.utils.log - INFO - Sequential fetching temp table records - __SPLIT__ 2026-07-17 02:32:56,161 - [124749] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationServices woag WHERE woag.WorkOrderAutoGenerationId in (3681590, 3681591)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 02:32:56,931 - [124749] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-17 02:32:56,931 - [124749] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SubWorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (3681590, 3681591)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 02:32:57,196 - [124749] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-17 02:32:57,197 - [124749] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationCrews woag WHERE woag.WorkOrderAutoGenerationId in (3681590, 3681591)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 02:32:57,628 - [124749] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 02:32:57,628 - [124749] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationSalesPersonCommission woag WHERE woag.WorkOrderAutoGenerationId in (3681590, 3681591)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 02:32:57,891 - [124749] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 02:32:57,891 - [124749] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupAutoGenerationSourceMapping woag WHERE woag.WorkOrderAutoGenerationId in (3681590, 3681591)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 02:32:58,175 - [124749] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 02:32:58,175 - [124749] - 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 (3681590, 3681591)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 02:32:58,777 - [124749] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 02:32:58,777 - [124749] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from CRM.LeadNote woag WHERE woag.RefId in (3681590, 3681591) and woag.RefType = 'TempWorkorder';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 02:32:59,041 - [124749] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 02:32:59,042 - [124749] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment woagca WHERE woagca.WorkOrderAutoGenerationId in (3681590, 3681591);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 02:32:59,304 - [124749] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 02:32:59,307 - [124749] - src.utils.log - INFO - Updating temp tables - __SPLIT__ 2026-07-17 02:32:59,325 - [124749] - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyKey FROM Common.CompanyMaster cm WHERE CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 02:32:59,587 - [124749] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 02:32:59,588 - [124749] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 133 AND EnitityNumberType in ('SubWorkOrder'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 02:32:59,850 - [124749] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 02:32:59,851 - [124749] - src.utils.log - INFO - πŸ“ Executing: UPDATE Common.GenerateNumberConfig SET NextNumber = '22847' WHERE CompanyId = 133 AND EnitityNumberType in ('SubWorkOrder');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 02:33:00,116 - [124749] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-17 02:33:00,120 - [124749] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-17 02:33:00,120 - [124749] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishHistory: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 02:33:00,428 - [124749] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationPublishHistory - __SPLIT__ 2026-07-17 02:33:01,364 - [124749] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishHistory in 1 batches - __SPLIT__ 2026-07-17 02:33:01,366 - [124749] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationPublishHistoryId, WorkOrderNo, ServiceSetupId FROM ServiceCore.WorkOrderAutoGenerationPublishHistory WHERE ServiceSetupId = 150668 AND WorkOrderNo IN ('3639634', '7892603') AND GenerateWorkOrderHistoryId = 124749;... (Thread: ThreadPoolExecutor-1_0) - __SPLIT__ 2026-07-17 02:33:01,862 - [124749] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-17 02:33:01,862 - [124749] - src.utils.log - INFO - 🏁 Final merged rows: 2 - __SPLIT__ 2026-07-17 02:33:01,868 - [124749] - src.utils.log - INFO - Sequential Insertion in work order tables begin - __SPLIT__ 2026-07-17 02:33:01,869 - [124749] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-17 02:33:01,869 - [124749] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderServices: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 02:33:02,157 - [124749] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderServices - __SPLIT__ 2026-07-17 02:33:03,190 - [124749] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderServices in 1 batches - __SPLIT__ 2026-07-17 02:33:03,191 - [124749] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderAppliedDiscount: - __SPLIT__ 2026-07-17 02:33:03,191 - [124749] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderSalesPersonCommission: - __SPLIT__ 2026-07-17 02:33:03,191 - [124749] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderCommissionAdjustment: - __SPLIT__ 2026-07-17 02:33:03,191 - [124749] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderCrew: - __SPLIT__ 2026-07-17 02:33:03,191 - [124749] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkorderSourceMapping: - __SPLIT__ 2026-07-17 02:33:03,191 - [124749] - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-07-17 02:33:03,191 - [124749] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-17 02:33:03,191 - [124749] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishServices: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 02:33:03,480 - [124749] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationPublishServices - __SPLIT__ 2026-07-17 02:33:04,422 - [124749] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishServices in 1 batches - __SPLIT__ 2026-07-17 02:33:04,422 - [124749] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-17 02:33:04,422 - [124749] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.SubWorkOrder: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 02:33:04,720 - [124749] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.SubWorkOrder - __SPLIT__ 2026-07-17 02:33:05,968 - [124749] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.SubWorkOrder in 1 batches - __SPLIT__ 2026-07-17 02:33:05,969 - [124749] - src.utils.log - INFO - πŸ” Fetching data: Select * From ServiceCore.SubWorkOrder where WorkOrderId in (2157604, 2157605)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 02:33:06,244 - [124749] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-17 02:33:06,251 - [124749] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-17 02:33:06,251 - [124749] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.subWorkOrderIssue: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 02:33:06,538 - [124749] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceAuto.subWorkOrderIssue - __SPLIT__ 2026-07-17 02:33:07,584 - [124749] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceAuto.subWorkOrderIssue in 1 batches - __SPLIT__ 2026-07-17 02:33:07,585 - [124749] - src.utils.log - INFO - πŸ” Fetching data: Select SubWorkOrderIssueId, SubWorkOrderId, ModifiedBy From ServiceAuto.subWorkOrderIssue where SubWorkOrderId in (230445, 230446) and ModifiedBy in ('999999999', '1000000000')... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 02:33:07,848 - [124749] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-17 02:33:07,848 - [124749] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceAuto.subWorkOrderIssue SET ModifiedBy = 'abcdallas' WHERE ModifiedBy IN ('999999999', '1000000000'); ... (Thread: ThreadPoolExecutor-2_0) - __SPLIT__ 2026-07-17 02:33:08,182 - [124749] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-17 02:33:08,190 - [124749] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-17 02:33:08,190 - [124749] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.subWOIssueRepair: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 02:33:08,482 - [124749] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceAuto.subWOIssueRepair - __SPLIT__ 2026-07-17 02:33:09,297 - [124749] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceAuto.subWOIssueRepair in 1 batches - __SPLIT__ 2026-07-17 02:33:09,298 - [124749] - src.utils.log - INFO - πŸ” Fetching data: Select IssueRepairId, ModifiedBy From ServiceAuto.subWOIssueRepair where SubWorkOrderIssueId in (192627, 192628)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 02:33:09,560 - [124749] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-17 02:33:09,561 - [124749] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceAuto.subWOIssueRepair SET ModifiedBy = 'abcdallas' WHERE ModifiedBy IN ('0___TMP___192627', '0___TMP___192628') AND CreatedDate = '2026-07-16 22:33:06.249'; ... (Thread: ThreadPoolExecutor-3_0) - __SPLIT__ 2026-07-17 02:33:09,880 - [124749] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-17 02:33:09,887 - [124749] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-17 02:33:09,887 - [124749] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.SubWOIssueRepairLabor: 4 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 02:33:10,175 - [124749] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 4) into ServiceAuto.SubWOIssueRepairLabor - __SPLIT__ 2026-07-17 02:33:11,123 - [124749] - src.utils.log - INFO - βœ… All 4 rows inserted successfully into ServiceAuto.SubWOIssueRepairLabor in 1 batches - __SPLIT__ 2026-07-17 02:33:11,124 - [124749] - 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 = 150668... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 02:33:11,385 - [124749] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 02:33:11,392 - [124749] - src.utils.log - INFO - Size of Transaction: 2 - __SPLIT__ 2026-07-17 02:33:11,393 - [124749] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 02:33:11,810 - [124749] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-07-17 02:33:12,806 - [124749] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-07-17 02:33:12,936 - [124749] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-07-17 02:33:12,937 - [124749] - 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 = 133 AND t.TransactionType ='Invoice' AND t.CreatedDate = '2026-07-16 22:33:11.387';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 02:33:20,031 - [124749] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-17 02:33:20,034 - [124749] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150668;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 02:33:20,297 - [124749] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 02:33:20,307 - [124749] - src.utils.log - INFO - πŸ“ Executing: UPDATE Billing.[Transaction] SET ModifiedBy = NULL WHERE ModifiedBy IN (12345678910,12345678911) AND CreatedDate = '2026-07-16 22:33:11.387'; ... (Thread: ThreadPoolExecutor-4_0) - __SPLIT__ 2026-07-17 02:33:20,751 - [124749] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-17 02:33:20,755 - [124749] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-17 02:33:20,755 - [124749] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 02:33:21,046 - [124749] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.Invoice - __SPLIT__ 2026-07-17 02:33:22,039 - [124749] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-07-17 02:33:22,040 - [124749] - src.utils.log - INFO - πŸ” Fetching data: SELECT InvoiceId, WorkOrderNo FROM Billing.Invoice i WHERE i.WorkOrderNo in ('1427317', '1427318')... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 02:33:23,018 - [124749] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-17 02:33:23,027 - [124749] - 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 = 150668 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 02:33:23,293 - [124749] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 02:33:23,293 - [124749] - 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 = 150668 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 02:33:23,557 - [124749] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 02:33:23,558 - [124749] - 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 = 150668 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 02:33:23,821 - [124749] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 02:33:23,822 - [124749] - 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 = 150668 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 02:33:24,085 - [124749] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 02:33:24,098 - [124749] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150668;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 02:33:24,361 - [124749] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 02:33:24,367 - [124749] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId, AppliedDiscountAmt as AppliedDiscountAmount,IsActive ,ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 150668;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 02:33:24,629 - [124749] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 02:33:24,632 - [124749] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId,IsActive,DiscountAmount, IsDiscountPercent,DiscountPercent,DiscountDescription , ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 150668;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 02:33:24,894 - [124749] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 02:33:24,895 - [124749] - src.utils.log - INFO - Sequential Insertion in invoice tables begin - __SPLIT__ 2026-07-17 02:33:24,895 - [124749] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.AccountDiscountSetup: - __SPLIT__ 2026-07-17 02:33:24,895 - [124749] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-17 02:33:24,895 - [124749] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceCharges: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 02:33:25,186 - [124749] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.InvoiceCharges - __SPLIT__ 2026-07-17 02:33:26,147 - [124749] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.InvoiceCharges in 1 batches - __SPLIT__ 2026-07-17 02:33:26,148 - [124749] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.DiscountApplied: - __SPLIT__ 2026-07-17 02:33:26,148 - [124749] - src.utils.log - INFO - Invoice Publish Done - __SPLIT__ 2026-07-17 02:33:26,148 - [124749] - src.utils.log - INFO - Updating Next GenerationDate - __SPLIT__ 2026-07-17 02:33:26,148 - [124749] - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, MAX(NextWorkOrderGenerationDate) AS MaxNextWorkOrderGeneration FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 124749 GROUP BY ServiceSetupId; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 02:33:26,420 - [124749] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 02:33:26,426 - [124749] - src.utils.log - INFO - πŸ”„ Updating next gen date sequentially: inside update_next_workorder_generation - __SPLIT__ 2026-07-17 02:33:26,558 - [124749] - src.utils.log - INFO - πŸ›  Creating temp table #tbl_7b0fb48c38 - __SPLIT__ 2026-07-17 02:33:26,821 - [124749] - src.utils.log - INFO - πŸ“Œ Bulk inserting 1 rows into #tbl_7b0fb48c38 - __SPLIT__ 2026-07-17 02:33:27,082 - [124749] - src.utils.log - INFO - πŸ” Running MERGE update to apply changes - __SPLIT__ 2026-07-17 02:33:27,222 - [124749] - src.utils.log - INFO - βœ” SQL reported affected rows: 1 - __SPLIT__ 2026-07-17 02:33:27,357 - [124749] - src.utils.log - INFO - πŸ” Verified successfully updated 1 rows via #tbl_7b0fb48c38 - __SPLIT__ 2026-07-17 02:33:27,357 - [124749] - src.utils.log - INFO - πŸŽ‰ Successfully updated NextGenerationDate using temp table #tbl_7b0fb48c38 - __SPLIT__ 2026-07-17 02:33:27,357 - [124749] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 124749 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 02:33:27,619 - [124749] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 02:33:27,619 - [124749] - src.utils.log - INFO - Sequential deletion from temp tables begin - __SPLIT__ 2026-07-17 02:33:27,619 - [124749] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId in (3681590, 3681591) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 02:33:28,030 - [124749] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 02:33:28,030 - [124749] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId in (3681590, 3681591) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 02:33:28,373 - [124749] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 02:33:28,374 - [124749] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId in (3681590, 3681591) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 02:33:28,637 - [124749] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 02:33:28,637 - [124749] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId in (3681590, 3681591) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 02:33:28,982 - [124749] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 02:33:28,982 - [124749] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId in (3681590, 3681591) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 02:33:29,250 - [124749] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 02:33:29,250 - [124749] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (3681590, 3681591) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 02:33:29,518 - [124749] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 02:33:29,519 - [124749] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId in (3681590, 3681591) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 02:33:29,781 - [124749] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 02:33:29,781 - [124749] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (3681590, 3681591) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 02:33:30,134 - [124749] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 02:33:30,135 - [124749] - src.utils.log - INFO - Work order published ids: (3681590, 3681591) - __SPLIT__ 2026-07-17 02:33:30,135 - [124749] - src.utils.log - INFO - Time took to perform operation in publishing [124749]: 43.63 - __SPLIT__ 2026-07-17 02:33:30,135 - [124749] - src.utils.log - INFO - Publish Completed for GenerateWorkOrderHistoryId: [124749] - __SPLIT__ 2026-07-17 02:33:30,135 - [124749] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-07-16 22:33:30.135' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124749;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 02:33:30,399 - [124749] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-17 02:55:37,934 - 124751 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=124751 - __SPLIT__ 2026-07-17 02:55:37,935 - 124751 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 124751 - __SPLIT__ 2026-07-17 02:55:37,936 - 124751 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-17 02:55:37,936 - 124751 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 02:55:40,025 - 124751 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 02:55:40,025 - 124751 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-07-17 02:55:40,025 - 124751 - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-07-17 02:55:40,026 - 124751 - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-07-17 02:55:40,026 - 124751 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 124751;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 02:55:41,856 - 124751 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-17 02:55:41,856 - 124751 - 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 = 124751), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 124751), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 124751 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-07-17 02:55:42,167 - 124751 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 02:55:42,167 - 124751 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 124751;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 02:55:42,430 - 124751 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 02:55:42,433 - 124751 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-07-17 02:55:42,433 - 124751 - 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 = 14451... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 02:55:42,705 - 124751 - src.utils.log - INFO - βœ… Fetched 6 rows - __SPLIT__ 2026-07-17 02:55:42,705 - 124751 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-07-17 02:55:42,708 - 124751 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-07-17 02:55:42,709 - 124751 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150670;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 02:55:42,973 - 124751 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 02:55:42,973 - 124751 - 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-07-17 00:00:00' and ServiceDate <= '2026-12-31 00:00:00' and ServiceSetupId = 150670 and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 02:55:43,242 - 124751 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 02:55:43,790 - 124751 - src.utils.log - INFO - Generating work orders for setup: 150670 - __SPLIT__ 2026-07-17 02:55:43,812 - 124751 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 1131;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 02:55:44,073 - 124751 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 02:55:44,081 - 124751 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 1131;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 02:55:44,343 - 124751 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 02:55:44,378 - 124751 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-07-17 02:55:44,383 - 124751 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=133 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 02:55:44,644 - 124751 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 02:55:44,646 - 124751 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-07-17 02:55:44,646 - 124751 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-07-17 02:55:44,647 - 124751 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150670 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 02:55:44,968 - 124751 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 02:55:44,968 - 124751 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150670 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 02:55:45,291 - 124751 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 02:55:45,292 - 124751 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150670 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 02:55:45,561 - 124751 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 02:55:45,562 - 124751 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150670 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 02:55:45,884 - 124751 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 02:55:45,885 - 124751 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150670 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 02:55:46,204 - 124751 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 02:55:46,204 - 124751 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150670 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 02:55:46,480 - 124751 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 02:55:46,480 - 124751 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150670 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 02:55:46,745 - 124751 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 02:55:46,746 - 124751 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150670 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 02:55:47,153 - 124751 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 02:55:47,154 - 124751 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-17 02:55:47,154 - 124751 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 3 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 02:55:47,452 - 124751 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-07-17 02:55:48,539 - 124751 - src.utils.log - INFO - βœ… All 3 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-07-17 02:55:48,540 - 124751 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 3 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-07-16 14:51:40.778' and ServiceSetupId = 150670... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 02:55:48,855 - 124751 - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-07-17 02:55:48,855 - 124751 - src.utils.log - INFO - Id's of work order inserted to DB: [3681596 3681597 3681598] - __SPLIT__ 2026-07-17 02:55:48,855 - 124751 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150670;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 02:55:49,119 - 124751 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 02:55:49,119 - 124751 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-07-17 02:55:49,120 - 124751 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId = 150670... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 02:55:49,384 - 124751 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 02:55:49,384 - 124751 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId = 150670... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 02:55:49,645 - 124751 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 02:55:49,650 - 124751 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId = 150670... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 02:55:49,918 - 124751 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 02:55:49,919 - 124751 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId = 150670... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 02:55:50,180 - 124751 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 02:55:50,181 - 124751 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId = 150670... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 02:55:50,442 - 124751 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 02:55:50,443 - 124751 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId = 150670;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 02:55:50,706 - 124751 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 02:55:50,707 - 124751 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId = 150670;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 02:55:50,967 - 124751 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 02:55:50,968 - 124751 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId = 150670;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 02:55:51,341 - 124751 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 02:55:51,341 - 124751 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId = 150670;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 02:55:51,605 - 124751 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 02:55:51,617 - 124751 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-07-17 02:55:51,617 - 124751 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-07-17 02:55:51,617 - 124751 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-07-17 02:55:51,617 - 124751 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.CommunicationPreferencesServiceReportNotification: - __SPLIT__ 2026-07-17 02:55:51,617 - 124751 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-07-17 02:55:51,617 - 124751 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-17 02:55:51,618 - 124751 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ('3681598', '3681597', '3681596') ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 02:55:51,880 - 124751 - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-07-17 02:55:51,881 - 124751 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.SetupAutoGenerationSourceMapping: 0 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 02:55:52,144 - 124751 - src.utils.log - INFO - βœ… All 0 rows inserted successfully into ServiceCore.SetupAutoGenerationSourceMapping in 0 batches - __SPLIT__ 2026-07-17 02:55:52,145 - 124751 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-07-17 02:55:52,145 - 124751 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationAppliedDiscount: - __SPLIT__ 2026-07-17 02:55:52,145 - 124751 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-07-17 02:55:52,145 - 124751 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-17 02:55:52,145 - 124751 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3681596, 3681597, 3681598) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 02:55:52,407 - 124751 - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-07-17 02:55:52,408 - 124751 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.SubWorkOrderAutoGeneration: 3 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 02:55:52,685 - 124751 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into ServiceCore.SubWorkOrderAutoGeneration - __SPLIT__ 2026-07-17 02:55:53,620 - 124751 - src.utils.log - INFO - βœ… All 3 rows inserted successfully into ServiceCore.SubWorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-07-17 02:55:53,621 - 124751 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-07-17 02:55:53,621 - 124751 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: - __SPLIT__ 2026-07-17 02:55:53,621 - 124751 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-07-17 02:55:53,621 - 124751 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: - __SPLIT__ 2026-07-17 02:55:53,621 - 124751 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-07-17 02:55:53,621 - 124751 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCrews: - __SPLIT__ 2026-07-17 02:55:53,621 - 124751 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-07-17 02:55:53,621 - 124751 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationServices: - __SPLIT__ 2026-07-17 02:55:53,621 - 124751 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-07-17 02:55:53,622 - 124751 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-17 02:55:53,622 - 124751 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3681596, 3681597, 3681598) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 02:55:53,883 - 124751 - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-07-17 02:55:53,884 - 124751 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 3 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 02:55:54,152 - 124751 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-07-17 02:55:55,088 - 124751 - src.utils.log - INFO - βœ… All 3 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-07-17 02:55:55,088 - 124751 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-07-17 02:55:55,089 - 124751 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 124751;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 02:55:55,351 - 124751 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-17 02:55:55,351 - 124751 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-07-17 02:55:55,351 - 124751 - src.utils.log - INFO - Time took to perform operation: 17.42 - __SPLIT__ 2026-07-17 02:56:13,173 - [124751] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[3681596] user_id=43135 company_id=133 project_id=[124751] publish_all=False - __SPLIT__ 2026-07-17 02:56:13,174 - [124751] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[3681596] user_id=43135 company_id=133 project_id=[124751] publish_all=False - __SPLIT__ 2026-07-17 02:56:13,175 - [124751] - src.utils.log - INFO - Sequential Work order publish in progress for GenerateWorkOrderHistoryId: [124751] - __SPLIT__ 2026-07-17 02:56:13,175 - [124751] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-17 02:56:13,175 - [124751] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 02:56:15,247 - [124751] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 02:56:15,247 - [124751] - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-07-17 02:56:15,247 - [124751] - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-07-17 02:56:15,248 - [124751] - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-07-17 02:56:15,248 - [124751] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'InProgress' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124751;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 02:56:17,081 - [124751] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-17 02:56:17,081 - [124751] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId = 3681596... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 02:56:17,347 - [124751] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 02:56:17,348 - [124751] - src.utils.log - INFO - Inside get_work_order_table - __SPLIT__ 2026-07-17 02:56:17,348 - [124751] - 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 = 150670 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 02:56:17,619 - [124751] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 02:56:17,619 - [124751] - 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 = 150670 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 02:56:17,890 - [124751] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 02:56:17,890 - [124751] - 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 = 150670 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 02:56:18,166 - [124751] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 02:56:18,170 - [124751] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder,BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 02:56:18,432 - [124751] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 02:56:18,432 - [124751] - 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-07-17 02:56:18,693 - [124751] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-17 02:56:18,693 - [124751] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder, BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 02:56:18,955 - [124751] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 02:56:18,956 - [124751] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 1 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 133 AND EnitityNumberType = 'WorkOrder'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 02:56:19,220 - [124751] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 02:56:19,221 - [124751] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 1 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 133 AND EnitityNumberType = 'Invoice'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 02:56:19,486 - [124751] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 02:56:19,490 - [124751] - 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 = 150670... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 02:56:19,758 - [124751] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 02:56:19,760 - [124751] - src.utils.log - INFO - πŸ” Fetching data: SELECT x.CompanyId FROM CRM.CompanyMaster x WHERE CompanyKey = 'abcdallas';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 02:56:20,021 - [124751] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 02:56:20,021 - [124751] - src.utils.log - INFO - πŸ” Fetching data: SELECT CollectionStatus,IsHold,AccountNo FROM CRM.Account a WHERE a.AccountNo = '15001' and a.CompanyId = 121;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 02:56:20,283 - [124751] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 02:56:20,286 - [124751] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderNo FROM ServiceCore.WorkOrder WHERE WorkOrderNo = '1427320' AND CompanyId = 133 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 02:56:20,549 - [124751] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 02:56:20,550 - [124751] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrder (skip triggers): 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 02:56:20,981 - [124751] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrder (triggers skipped) - __SPLIT__ 2026-07-17 02:56:21,965 - [124751] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrder in 1 batches (triggers skipped) - __SPLIT__ 2026-07-17 02:56:22,096 - [124751] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-07-17 02:56:22,097 - [124751] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.ServiceSetup SET IsInitialWoGenerated = 1 WHERE CompanyId = 133 AND ServiceSetupId = 150670;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 02:56:22,361 - [124751] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-17 02:56:22,362 - [124751] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkorderId, WorkOrderNo FROM ServiceCore.WorkOrder wo WHERE wo.WorkOrderNo = '1427320' AND wo.AccountNumber = '15001' AND wo.CompanyId = 133 ... (Thread: ThreadPoolExecutor-5_0) - __SPLIT__ 2026-07-17 02:56:22,628 - [124751] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 02:56:22,629 - [124751] - src.utils.log - INFO - Sequential fetching temp table records - __SPLIT__ 2026-07-17 02:56:22,629 - [124751] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationServices woag WHERE woag.WorkOrderAutoGenerationId = 3681596... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 02:56:22,922 - [124751] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 02:56:22,922 - [124751] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SubWorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId = 3681596... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 02:56:23,188 - [124751] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 02:56:23,188 - [124751] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationCrews woag WHERE woag.WorkOrderAutoGenerationId = 3681596... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 02:56:23,467 - [124751] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 02:56:23,467 - [124751] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationSalesPersonCommission woag WHERE woag.WorkOrderAutoGenerationId = 3681596... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 02:56:23,730 - [124751] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 02:56:23,731 - [124751] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupAutoGenerationSourceMapping woag WHERE woag.WorkOrderAutoGenerationId = 3681596... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 02:56:23,994 - [124751] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 02:56:23,994 - [124751] - 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 = 3681596... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 02:56:24,279 - [124751] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 02:56:24,279 - [124751] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from CRM.LeadNote woag WHERE woag.RefId = 3681596 and woag.RefType = 'TempWorkorder';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 02:56:24,542 - [124751] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 02:56:24,543 - [124751] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment woagca WHERE woagca.WorkOrderAutoGenerationId = 3681596;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 02:56:24,805 - [124751] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 02:56:24,807 - [124751] - src.utils.log - INFO - Updating temp tables - __SPLIT__ 2026-07-17 02:56:24,823 - [124751] - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyKey FROM Common.CompanyMaster cm WHERE CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 02:56:25,084 - [124751] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 02:56:25,085 - [124751] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 133 AND EnitityNumberType in ('SubWorkOrder'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 02:56:25,346 - [124751] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 02:56:25,347 - [124751] - src.utils.log - INFO - πŸ“ Executing: UPDATE Common.GenerateNumberConfig SET NextNumber = '22849' WHERE CompanyId = 133 AND EnitityNumberType in ('SubWorkOrder');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 02:56:25,610 - [124751] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-17 02:56:25,614 - [124751] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-17 02:56:25,615 - [124751] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishHistory: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 02:56:25,902 - [124751] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderAutoGenerationPublishHistory - __SPLIT__ 2026-07-17 02:56:26,835 - [124751] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishHistory in 1 batches - __SPLIT__ 2026-07-17 02:56:26,836 - [124751] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationPublishHistoryId, WorkOrderNo, ServiceSetupId FROM ServiceCore.WorkOrderAutoGenerationPublishHistory WHERE ServiceSetupId = 150670 AND WorkOrderNo = '5783901' AND GenerateWorkOrderHistoryId = 124751; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 02:56:27,264 - [124751] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 02:56:27,270 - [124751] - src.utils.log - INFO - Sequential Insertion in work order tables begin - __SPLIT__ 2026-07-17 02:56:27,270 - [124751] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-17 02:56:27,270 - [124751] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderServices: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 02:56:27,540 - [124751] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderServices - __SPLIT__ 2026-07-17 02:56:28,467 - [124751] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderServices in 1 batches - __SPLIT__ 2026-07-17 02:56:28,467 - [124751] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderAppliedDiscount: - __SPLIT__ 2026-07-17 02:56:28,467 - [124751] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderSalesPersonCommission: - __SPLIT__ 2026-07-17 02:56:28,467 - [124751] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderCommissionAdjustment: - __SPLIT__ 2026-07-17 02:56:28,467 - [124751] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderCrew: - __SPLIT__ 2026-07-17 02:56:28,468 - [124751] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkorderSourceMapping: - __SPLIT__ 2026-07-17 02:56:28,468 - [124751] - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-07-17 02:56:28,468 - [124751] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-17 02:56:28,468 - [124751] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishServices: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 02:56:28,738 - [124751] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderAutoGenerationPublishServices - __SPLIT__ 2026-07-17 02:56:29,663 - [124751] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishServices in 1 batches - __SPLIT__ 2026-07-17 02:56:29,663 - [124751] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-17 02:56:29,663 - [124751] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.SubWorkOrder: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 02:56:29,943 - [124751] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.SubWorkOrder - __SPLIT__ 2026-07-17 02:56:30,878 - [124751] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.SubWorkOrder in 1 batches - __SPLIT__ 2026-07-17 02:56:30,878 - [124751] - src.utils.log - INFO - πŸ” Fetching data: Select * From ServiceCore.SubWorkOrder where WorkOrderId = 2157607... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 02:56:31,156 - [124751] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 02:56:31,161 - [124751] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-17 02:56:31,161 - [124751] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.subWorkOrderIssue: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 02:56:31,428 - [124751] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceAuto.subWorkOrderIssue - __SPLIT__ 2026-07-17 02:56:32,353 - [124751] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceAuto.subWorkOrderIssue in 1 batches - __SPLIT__ 2026-07-17 02:56:32,354 - [124751] - src.utils.log - INFO - πŸ” Fetching data: Select SubWorkOrderIssueId, SubWorkOrderId, ModifiedBy From ServiceAuto.subWorkOrderIssue where SubWorkOrderId = 230448 and ModifiedBy = 999999999 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 02:56:32,618 - [124751] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 02:56:32,618 - [124751] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceAuto.subWorkOrderIssue SET ModifiedBy = 'abcdallas' WHERE ModifiedBy = '999999999'; ... (Thread: ThreadPoolExecutor-6_0) - __SPLIT__ 2026-07-17 02:56:32,914 - [124751] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-17 02:56:32,917 - [124751] - 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 = 150670... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 02:56:33,179 - [124751] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 02:56:33,185 - [124751] - src.utils.log - INFO - Size of Transaction: 1 - __SPLIT__ 2026-07-17 02:56:33,186 - [124751] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 02:56:33,583 - [124751] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-07-17 02:56:34,505 - [124751] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-07-17 02:56:34,636 - [124751] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-07-17 02:56:34,637 - [124751] - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionId, ModifiedBy, TransactionDate as InvoiceDate from Billing.[Transaction] t WHERE t.ModifiedBy = 12345678910 and t.CompanyId = 133 AND t.TransactionType ='Invoice' AND t.CreatedDate = '2026-07-16 22:56:33.180';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 02:56:35,008 - [124751] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 02:56:35,011 - [124751] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150670;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 02:56:35,275 - [124751] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 02:56:35,284 - [124751] - src.utils.log - INFO - πŸ“ Executing: UPDATE Billing.[Transaction] SET ModifiedBy = NULL WHERE ModifiedBy = 12345678910 AND CreatedDate = '2026-07-16 22:56:33.180'; ... (Thread: ThreadPoolExecutor-7_0) - __SPLIT__ 2026-07-17 02:56:36,170 - [124751] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-17 02:56:36,174 - [124751] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-17 02:56:36,175 - [124751] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 02:56:36,446 - [124751] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into Billing.Invoice - __SPLIT__ 2026-07-17 02:56:37,377 - [124751] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-07-17 02:56:37,378 - [124751] - src.utils.log - INFO - πŸ” Fetching data: SELECT InvoiceId, WorkOrderNo FROM Billing.Invoice i WHERE i.WorkOrderNo = '1427320'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 02:56:38,171 - [124751] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 02:56:38,180 - [124751] - 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 = 150670 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 02:56:38,445 - [124751] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 02:56:38,446 - [124751] - 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 = 150670 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 02:56:38,711 - [124751] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 02:56:38,711 - [124751] - 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 = 150670 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 02:56:38,977 - [124751] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 02:56:38,978 - [124751] - 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 = 150670 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 02:56:39,242 - [124751] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 02:56:39,256 - [124751] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId, AppliedDiscountAmt as AppliedDiscountAmount,IsActive ,ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 150670;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 02:56:39,519 - [124751] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 02:56:39,522 - [124751] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId,IsActive,DiscountAmount, IsDiscountPercent,DiscountPercent,DiscountDescription , ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 150670;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 02:56:39,785 - [124751] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 02:56:39,786 - [124751] - src.utils.log - INFO - Sequential Insertion in invoice tables begin - __SPLIT__ 2026-07-17 02:56:39,786 - [124751] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.AccountDiscountSetup: - __SPLIT__ 2026-07-17 02:56:39,786 - [124751] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.InvoiceCharges: - __SPLIT__ 2026-07-17 02:56:39,786 - [124751] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.DiscountApplied: - __SPLIT__ 2026-07-17 02:56:39,786 - [124751] - src.utils.log - INFO - Invoice Publish Done - __SPLIT__ 2026-07-17 02:56:39,786 - [124751] - src.utils.log - INFO - Updating Next GenerationDate - __SPLIT__ 2026-07-17 02:56:39,787 - [124751] - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, MAX(NextWorkOrderGenerationDate) AS MaxNextWorkOrderGeneration FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 124751 GROUP BY ServiceSetupId; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 02:56:40,049 - [124751] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 02:56:40,055 - [124751] - src.utils.log - INFO - πŸ”„ Updating next gen date sequentially: inside update_next_workorder_generation - __SPLIT__ 2026-07-17 02:56:40,187 - [124751] - src.utils.log - INFO - πŸ›  Creating temp table #tbl_14dbe86f37 - __SPLIT__ 2026-07-17 02:56:40,450 - [124751] - src.utils.log - INFO - πŸ“Œ Bulk inserting 1 rows into #tbl_14dbe86f37 - __SPLIT__ 2026-07-17 02:56:40,711 - [124751] - src.utils.log - INFO - πŸ” Running MERGE update to apply changes - __SPLIT__ 2026-07-17 02:56:40,850 - [124751] - src.utils.log - INFO - βœ” SQL reported affected rows: 1 - __SPLIT__ 2026-07-17 02:56:40,986 - [124751] - src.utils.log - INFO - πŸ” Verified successfully updated 1 rows via #tbl_14dbe86f37 - __SPLIT__ 2026-07-17 02:56:40,986 - [124751] - src.utils.log - INFO - πŸŽ‰ Successfully updated NextGenerationDate using temp table #tbl_14dbe86f37 - __SPLIT__ 2026-07-17 02:56:40,986 - [124751] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 124751 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 02:56:41,247 - [124751] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 02:56:41,248 - [124751] - src.utils.log - INFO - Sequential deletion from temp tables begin - __SPLIT__ 2026-07-17 02:56:41,248 - [124751] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId = 3681596 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 02:56:41,633 - [124751] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 02:56:41,634 - [124751] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId = 3681596 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 02:56:41,974 - [124751] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 02:56:41,974 - [124751] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId = 3681596 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 02:56:42,237 - [124751] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 02:56:42,237 - [124751] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId = 3681596 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 02:56:42,605 - [124751] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 02:56:42,605 - [124751] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId = 3681596 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 02:56:42,873 - [124751] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 02:56:42,874 - [124751] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 3681596 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 02:56:43,141 - [124751] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 02:56:43,141 - [124751] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId = 3681596 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 02:56:43,403 - [124751] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 02:56:43,403 - [124751] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 3681596 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 02:56:43,720 - [124751] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 02:56:43,720 - [124751] - src.utils.log - INFO - Work order published ids: (3681596,) - __SPLIT__ 2026-07-17 02:56:43,720 - [124751] - src.utils.log - INFO - Time took to perform operation in publishing [124751]: 30.55 - __SPLIT__ 2026-07-17 02:56:43,720 - [124751] - src.utils.log - INFO - Publish Completed for GenerateWorkOrderHistoryId: [124751] - __SPLIT__ 2026-07-17 02:56:43,721 - [124751] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-07-16 22:56:43.720' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124751;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 02:56:43,983 - [124751] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-17 05:41:10,083 - 12674 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=12674 - __SPLIT__ 2026-07-17 05:41:10,084 - 12674 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 12674 - __SPLIT__ 2026-07-17 05:41:10,084 - 12674 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-17 05:41:10,084 - 12674 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 05:41:12,191 - 12674 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 05:41:12,191 - 12674 - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-07-17 05:41:12,191 - 12674 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 12674;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 05:41:12,491 - 12674 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-17 05:41:12,491 - 12674 - 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 = 12674), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 12674), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 12674 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-07-17 05:41:12,825 - 12674 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 05:41:12,825 - 12674 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 12674;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 05:41:13,127 - 12674 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 05:41:13,131 - 12674 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-07-17 05:41:13,132 - 12674 - 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 = 13169... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 05:41:13,437 - 12674 - src.utils.log - INFO - βœ… Fetched 60 rows - __SPLIT__ 2026-07-17 05:41:13,437 - 12674 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-07-17 05:41:13,440 - 12674 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-07-17 05:41:13,440 - 12674 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 34389;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 05:41:13,744 - 12674 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 05:41:13,745 - 12674 - 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-07-17 00:00:00' and ServiceDate <= '2028-12-31 00:00:00' and ServiceSetupId = 34389 and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 05:41:14,048 - 12674 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 05:41:14,672 - 12674 - src.utils.log - INFO - Generating work orders for setup: 34389 - __SPLIT__ 2026-07-17 05:41:14,784 - 12674 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 1363;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 05:41:15,083 - 12674 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 05:41:15,126 - 12674 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-07-17 05:41:15,132 - 12674 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=135 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 05:41:15,433 - 12674 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 05:41:15,434 - 12674 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-07-17 05:41:15,435 - 12674 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-07-17 05:41:15,435 - 12674 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34389 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 05:41:15,751 - 12674 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 05:41:15,751 - 12674 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34389 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 05:41:16,064 - 12674 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 05:41:16,065 - 12674 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34389 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 05:41:16,372 - 12674 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 05:41:16,373 - 12674 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34389 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 05:41:17,470 - 12674 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 05:41:17,470 - 12674 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34389 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 05:41:18,061 - 12674 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 05:41:18,062 - 12674 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34389 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 05:41:18,373 - 12674 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 05:41:18,374 - 12674 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34389 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 05:41:18,677 - 12674 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 05:41:18,678 - 12674 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34389 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 05:41:19,034 - 12674 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 05:41:19,034 - 12674 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-17 05:41:19,034 - 12674 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 5 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 05:41:19,406 - 12674 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 5) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-07-17 05:41:20,809 - 12674 - src.utils.log - INFO - βœ… All 5 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-07-17 05:41:20,810 - 12674 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 5 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-07-16 14:51:40.406' and ServiceSetupId = 34389... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 05:41:21,116 - 12674 - src.utils.log - INFO - βœ… Fetched 5 rows - __SPLIT__ 2026-07-17 05:41:21,116 - 12674 - src.utils.log - INFO - Id's of work order inserted to DB: [2737440 2737441 2737442 2737443 2737444] - __SPLIT__ 2026-07-17 05:41:21,117 - 12674 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 34389;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 05:41:21,416 - 12674 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 05:41:21,416 - 12674 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-07-17 05:41:21,417 - 12674 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId = 34389... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 05:41:21,717 - 12674 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 05:41:21,717 - 12674 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId = 34389... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 05:41:22,018 - 12674 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 05:41:22,022 - 12674 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId = 34389... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 05:41:22,325 - 12674 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 05:41:22,326 - 12674 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId = 34389... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 05:41:22,627 - 12674 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 05:41:22,628 - 12674 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId = 34389... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 05:41:22,928 - 12674 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 05:41:22,929 - 12674 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId = 34389;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 05:41:23,230 - 12674 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 05:41:23,230 - 12674 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId = 34389;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 05:41:23,531 - 12674 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 05:41:23,531 - 12674 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId = 34389;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 05:41:23,989 - 12674 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 05:41:23,990 - 12674 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId = 34389;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 05:41:24,291 - 12674 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 05:41:24,299 - 12674 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-07-17 05:41:24,300 - 12674 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-07-17 05:41:24,300 - 12674 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-07-17 05:41:24,300 - 12674 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.CommunicationPreferencesServiceReportNotification: - __SPLIT__ 2026-07-17 05:41:24,300 - 12674 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-07-17 05:41:24,300 - 12674 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SetupAutoGenerationSourceMapping: - __SPLIT__ 2026-07-17 05:41:24,300 - 12674 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-07-17 05:41:24,300 - 12674 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationAppliedDiscount: - __SPLIT__ 2026-07-17 05:41:24,300 - 12674 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-07-17 05:41:24,301 - 12674 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SubWorkOrderAutoGeneration: - __SPLIT__ 2026-07-17 05:41:24,301 - 12674 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-07-17 05:41:24,301 - 12674 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: - __SPLIT__ 2026-07-17 05:41:24,301 - 12674 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-07-17 05:41:24,301 - 12674 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: - __SPLIT__ 2026-07-17 05:41:24,301 - 12674 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-07-17 05:41:24,301 - 12674 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-17 05:41:24,301 - 12674 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (2737440, 2737441, 2737442, 2737443, 2737444) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 05:41:24,602 - 12674 - src.utils.log - INFO - βœ… Fetched 5 rows - __SPLIT__ 2026-07-17 05:41:24,603 - 12674 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationCrews: 5 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 05:41:24,925 - 12674 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 5) into ServiceCore.WorkOrderAutoGenerationCrews - __SPLIT__ 2026-07-17 05:41:25,979 - 12674 - src.utils.log - INFO - βœ… All 5 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationCrews in 1 batches - __SPLIT__ 2026-07-17 05:41:25,979 - 12674 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-07-17 05:41:25,980 - 12674 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationServices: - __SPLIT__ 2026-07-17 05:41:25,980 - 12674 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-07-17 05:41:25,980 - 12674 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-17 05:41:25,980 - 12674 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (2737440, 2737441, 2737442, 2737443, 2737444) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 05:41:26,278 - 12674 - src.utils.log - INFO - βœ… Fetched 5 rows - __SPLIT__ 2026-07-17 05:41:26,279 - 12674 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 5 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 05:41:26,602 - 12674 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 5) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-07-17 05:41:27,663 - 12674 - src.utils.log - INFO - βœ… All 5 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-07-17 05:41:27,664 - 12674 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-07-17 05:41:27,664 - 12674 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 12674;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 05:41:27,962 - 12674 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-17 05:41:27,962 - 12674 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-07-17 05:41:27,962 - 12674 - src.utils.log - INFO - Time took to perform operation: 17.88 - __SPLIT__ 2026-07-17 06:29:49,137 - 12675 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=12675 - __SPLIT__ 2026-07-17 06:29:49,138 - 12675 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 12675 - __SPLIT__ 2026-07-17 06:29:49,139 - 12675 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-17 06:29:49,139 - 12675 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 06:29:51,229 - 12675 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 06:29:51,229 - 12675 - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-07-17 06:29:51,229 - 12675 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 12675;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 06:29:51,526 - 12675 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-17 06:29:51,526 - 12675 - 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 = 12675), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 12675), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 12675 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-07-17 06:29:51,860 - 12675 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 06:29:51,860 - 12675 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 12675;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 06:29:52,161 - 12675 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 06:29:52,164 - 12675 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-07-17 06:29:52,164 - 12675 - 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 = 13169... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 06:29:52,464 - 12675 - src.utils.log - INFO - βœ… Fetched 60 rows - __SPLIT__ 2026-07-17 06:29:52,465 - 12675 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-07-17 06:29:52,468 - 12675 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-07-17 06:29:52,468 - 12675 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 34399;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 06:29:52,767 - 12675 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 06:29:52,768 - 12675 - 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-07-17 00:00:00' and ServiceDate <= '2026-08-31 00:00:00' and ServiceSetupId = 34399 and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 06:29:53,071 - 12675 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 06:29:53,693 - 12675 - src.utils.log - INFO - Generating work orders for setup: 34399 - __SPLIT__ 2026-07-17 06:29:53,705 - 12675 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 1363;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 06:29:54,004 - 12675 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 06:29:54,041 - 12675 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-07-17 06:29:54,045 - 12675 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=135 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 06:29:54,343 - 12675 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 06:29:54,345 - 12675 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-07-17 06:29:54,345 - 12675 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-07-17 06:29:54,345 - 12675 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34399 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 06:29:54,652 - 12675 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 06:29:54,653 - 12675 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34399 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 06:29:54,960 - 12675 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 06:29:54,960 - 12675 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34399 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 06:29:55,268 - 12675 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 06:29:55,268 - 12675 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34399 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 06:29:55,574 - 12675 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 06:29:55,574 - 12675 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34399 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 06:29:55,881 - 12675 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 06:29:55,881 - 12675 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34399 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 06:29:56,188 - 12675 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 06:29:56,189 - 12675 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34399 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 06:29:56,490 - 12675 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 06:29:56,490 - 12675 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34399 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 06:29:56,808 - 12675 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 06:29:56,808 - 12675 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-17 06:29:56,808 - 12675 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 06:29:57,144 - 12675 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-07-17 06:29:58,216 - 12675 - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-07-17 06:29:58,216 - 12675 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 1 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-07-16 14:51:40.585' and ServiceSetupId = 34399... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 06:29:58,520 - 12675 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 06:29:58,521 - 12675 - src.utils.log - INFO - Id's of work order inserted to DB: [2737450] - __SPLIT__ 2026-07-17 06:29:58,521 - 12675 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 34399;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 06:29:58,819 - 12675 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 06:29:58,819 - 12675 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-07-17 06:29:58,820 - 12675 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId = 34399... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 06:29:59,121 - 12675 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 06:29:59,122 - 12675 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId = 34399... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 06:29:59,420 - 12675 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 06:29:59,425 - 12675 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId = 34399... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 06:29:59,724 - 12675 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 06:29:59,726 - 12675 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId = 34399... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 06:30:00,024 - 12675 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 06:30:00,025 - 12675 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId = 34399... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 06:30:00,327 - 12675 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 06:30:00,327 - 12675 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId = 34399;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 06:30:00,627 - 12675 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 06:30:00,627 - 12675 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId = 34399;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 06:30:00,925 - 12675 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 06:30:00,926 - 12675 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId = 34399;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 06:30:01,242 - 12675 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 06:30:01,250 - 12675 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId = 34399;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 06:30:01,549 - 12675 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 06:30:01,557 - 12675 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-07-17 06:30:01,557 - 12675 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-07-17 06:30:01,557 - 12675 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-07-17 06:30:01,557 - 12675 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.CommunicationPreferencesServiceReportNotification: - __SPLIT__ 2026-07-17 06:30:01,557 - 12675 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-07-17 06:30:01,557 - 12675 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SetupAutoGenerationSourceMapping: - __SPLIT__ 2026-07-17 06:30:01,558 - 12675 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-07-17 06:30:01,558 - 12675 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationAppliedDiscount: - __SPLIT__ 2026-07-17 06:30:01,558 - 12675 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-07-17 06:30:01,558 - 12675 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SubWorkOrderAutoGeneration: - __SPLIT__ 2026-07-17 06:30:01,558 - 12675 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-07-17 06:30:01,558 - 12675 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: - __SPLIT__ 2026-07-17 06:30:01,558 - 12675 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-07-17 06:30:01,558 - 12675 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: - __SPLIT__ 2026-07-17 06:30:01,558 - 12675 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-07-17 06:30:01,558 - 12675 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-17 06:30:01,559 - 12675 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 2737450 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 06:30:01,868 - 12675 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 06:30:01,870 - 12675 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationCrews: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 06:30:02,177 - 12675 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderAutoGenerationCrews - __SPLIT__ 2026-07-17 06:30:03,228 - 12675 - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationCrews in 1 batches - __SPLIT__ 2026-07-17 06:30:03,229 - 12675 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-07-17 06:30:03,229 - 12675 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationServices: - __SPLIT__ 2026-07-17 06:30:03,229 - 12675 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-07-17 06:30:03,229 - 12675 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-17 06:30:03,229 - 12675 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 2737450 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 06:30:03,526 - 12675 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 06:30:03,527 - 12675 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 06:30:03,834 - 12675 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-07-17 06:30:04,890 - 12675 - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-07-17 06:30:04,891 - 12675 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-07-17 06:30:04,891 - 12675 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 12675;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 06:30:05,188 - 12675 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-17 06:30:05,188 - 12675 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-07-17 06:30:05,188 - 12675 - src.utils.log - INFO - Time took to perform operation: 16.05 - __SPLIT__ 2026-07-17 10:04:38,925 - 124752 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=124752 - __SPLIT__ 2026-07-17 10:04:38,926 - 124752 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 124752 - __SPLIT__ 2026-07-17 10:04:38,927 - 124752 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-17 10:04:38,927 - 124752 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:04:40,950 - 124752 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 10:04:40,950 - 124752 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-07-17 10:04:40,951 - 124752 - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-07-17 10:04:40,951 - 124752 - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-07-17 10:04:40,951 - 124752 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 124752;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:04:42,812 - 124752 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-17 10:04:42,812 - 124752 - 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 = 124752), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 124752), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 124752 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-07-17 10:04:43,120 - 124752 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 10:04:43,121 - 124752 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 124752;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:04:43,388 - 124752 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 10:04:43,391 - 124752 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-07-17 10:04:43,392 - 124752 - 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 = 14037... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:04:43,668 - 124752 - src.utils.log - INFO - βœ… Fetched 60 rows - __SPLIT__ 2026-07-17 10:04:43,668 - 124752 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-07-17 10:04:43,671 - 124752 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-07-17 10:04:43,672 - 124752 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150672;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:04:43,938 - 124752 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 10:04:43,939 - 124752 - 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-07-17 00:00:00' and ServiceDate <= '2026-12-31 00:00:00' and ServiceSetupId = 150672 and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:04:44,212 - 124752 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 10:04:44,768 - 124752 - src.utils.log - INFO - Generating work orders for setup: 150672 - __SPLIT__ 2026-07-17 10:04:44,776 - 124752 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 1131;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:04:45,043 - 124752 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 10:04:45,098 - 124752 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-07-17 10:04:45,102 - 124752 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=133 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:04:45,367 - 124752 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 10:04:45,369 - 124752 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-07-17 10:04:45,369 - 124752 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-07-17 10:04:45,369 - 124752 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150672 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:04:45,693 - 124752 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 10:04:45,694 - 124752 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150672 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:04:46,014 - 124752 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 10:04:46,014 - 124752 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150672 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:04:46,289 - 124752 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 10:04:46,289 - 124752 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150672 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:04:46,612 - 124752 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 10:04:46,612 - 124752 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150672 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:04:46,937 - 124752 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 10:04:46,937 - 124752 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150672 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:04:47,217 - 124752 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 10:04:47,218 - 124752 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150672 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:04:47,487 - 124752 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 10:04:47,487 - 124752 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150672 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:04:47,890 - 124752 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 10:04:47,891 - 124752 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-17 10:04:47,891 - 124752 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:04:48,215 - 124752 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-07-17 10:04:49,176 - 124752 - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-07-17 10:04:49,177 - 124752 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 1 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-07-16 14:51:40.778' and ServiceSetupId = 150672... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:04:49,494 - 124752 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 10:04:49,494 - 124752 - src.utils.log - INFO - Id's of work order inserted to DB: [3681599] - __SPLIT__ 2026-07-17 10:04:49,494 - 124752 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150672;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:04:49,760 - 124752 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 10:04:49,760 - 124752 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-07-17 10:04:49,761 - 124752 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId = 150672... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:04:50,030 - 124752 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 10:04:50,030 - 124752 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId = 150672... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:04:50,296 - 124752 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 10:04:50,301 - 124752 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId = 150672... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:04:50,574 - 124752 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 10:04:50,576 - 124752 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId = 150672... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:04:50,843 - 124752 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 10:04:50,843 - 124752 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId = 150672... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:04:51,109 - 124752 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 10:04:51,110 - 124752 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId = 150672;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:04:51,378 - 124752 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 10:04:51,378 - 124752 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId = 150672;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:04:51,644 - 124752 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 10:04:51,645 - 124752 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId = 150672;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:04:52,027 - 124752 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 10:04:52,028 - 124752 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId = 150672;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:04:52,302 - 124752 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 10:04:52,309 - 124752 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-07-17 10:04:52,309 - 124752 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-07-17 10:04:52,309 - 124752 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-07-17 10:04:52,309 - 124752 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.CommunicationPreferencesServiceReportNotification: - __SPLIT__ 2026-07-17 10:04:52,309 - 124752 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-07-17 10:04:52,309 - 124752 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SetupAutoGenerationSourceMapping: - __SPLIT__ 2026-07-17 10:04:52,309 - 124752 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-07-17 10:04:52,310 - 124752 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationAppliedDiscount: - __SPLIT__ 2026-07-17 10:04:52,310 - 124752 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-07-17 10:04:52,310 - 124752 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SubWorkOrderAutoGeneration: - __SPLIT__ 2026-07-17 10:04:52,310 - 124752 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-07-17 10:04:52,310 - 124752 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: - __SPLIT__ 2026-07-17 10:04:52,310 - 124752 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-07-17 10:04:52,310 - 124752 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: - __SPLIT__ 2026-07-17 10:04:52,310 - 124752 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-07-17 10:04:52,310 - 124752 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-17 10:04:52,310 - 124752 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 3681599 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:04:52,577 - 124752 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 10:04:52,578 - 124752 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationCrews: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:04:52,869 - 124752 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderAutoGenerationCrews - __SPLIT__ 2026-07-17 10:04:53,817 - 124752 - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationCrews in 1 batches - __SPLIT__ 2026-07-17 10:04:53,818 - 124752 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-07-17 10:04:53,818 - 124752 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationServices: - __SPLIT__ 2026-07-17 10:04:53,818 - 124752 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-07-17 10:04:53,818 - 124752 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-17 10:04:53,818 - 124752 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 3681599 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:04:54,084 - 124752 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 10:04:54,085 - 124752 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:04:54,380 - 124752 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-07-17 10:04:55,320 - 124752 - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-07-17 10:04:55,321 - 124752 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-07-17 10:04:55,321 - 124752 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 124752;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:04:55,588 - 124752 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-17 10:04:55,588 - 124752 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-07-17 10:04:55,588 - 124752 - src.utils.log - INFO - Time took to perform operation: 16.66 - __SPLIT__ 2026-07-17 10:05:14,195 - [124752] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[3681599] user_id=43135 company_id=133 project_id=[124752] publish_all=False - __SPLIT__ 2026-07-17 10:05:14,196 - [124752] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[3681599] user_id=43135 company_id=133 project_id=[124752] publish_all=False - __SPLIT__ 2026-07-17 10:05:14,196 - [124752] - src.utils.log - INFO - Sequential Work order publish in progress for GenerateWorkOrderHistoryId: [124752] - __SPLIT__ 2026-07-17 10:05:14,197 - [124752] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-17 10:05:14,197 - [124752] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:05:16,183 - [124752] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 10:05:16,184 - [124752] - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-07-17 10:05:16,184 - [124752] - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-07-17 10:05:16,185 - [124752] - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-07-17 10:05:16,185 - [124752] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'InProgress' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124752;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:05:18,043 - [124752] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-17 10:05:18,043 - [124752] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId = 3681599... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:05:18,312 - [124752] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 10:05:18,313 - [124752] - src.utils.log - INFO - Inside get_work_order_table - __SPLIT__ 2026-07-17 10:05:18,313 - [124752] - 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 = 150672 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:05:18,589 - [124752] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 10:05:18,589 - [124752] - 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 = 150672 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:05:18,864 - [124752] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 10:05:18,864 - [124752] - 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 = 150672 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:05:19,142 - [124752] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 10:05:19,146 - [124752] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder,BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:05:19,411 - [124752] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 10:05:19,411 - [124752] - 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-07-17 10:05:19,676 - [124752] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-17 10:05:19,676 - [124752] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder, BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:05:19,941 - [124752] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 10:05:19,942 - [124752] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 1 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 133 AND EnitityNumberType = 'WorkOrder'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:05:20,208 - [124752] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 10:05:20,209 - [124752] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 1 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 133 AND EnitityNumberType = 'Invoice'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:05:20,477 - [124752] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 10:05:20,481 - [124752] - 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 = 150672... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:05:20,752 - [124752] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 10:05:20,754 - [124752] - src.utils.log - INFO - πŸ” Fetching data: SELECT x.CompanyId FROM CRM.CompanyMaster x WHERE CompanyKey = 'abcdallas';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:05:21,018 - [124752] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 10:05:21,019 - [124752] - src.utils.log - INFO - πŸ” Fetching data: SELECT CollectionStatus,IsHold,AccountNo FROM CRM.Account a WHERE a.AccountNo = '15016' and a.CompanyId = 121;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:05:21,285 - [124752] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 10:05:21,287 - [124752] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderNo FROM ServiceCore.WorkOrder WHERE WorkOrderNo = '1427324' AND CompanyId = 133 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:05:21,552 - [124752] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 10:05:21,553 - [124752] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrder (skip triggers): 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:05:22,007 - [124752] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrder (triggers skipped) - __SPLIT__ 2026-07-17 10:05:22,977 - [124752] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrder in 1 batches (triggers skipped) - __SPLIT__ 2026-07-17 10:05:23,109 - [124752] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-07-17 10:05:23,111 - [124752] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkorderId, WorkOrderNo FROM ServiceCore.WorkOrder wo WHERE wo.WorkOrderNo = '1427324' AND wo.AccountNumber = '15016' AND wo.CompanyId = 133 ... (Thread: ThreadPoolExecutor-8_0) - __SPLIT__ 2026-07-17 10:05:23,376 - [124752] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 10:05:23,377 - [124752] - src.utils.log - INFO - Sequential fetching temp table records - __SPLIT__ 2026-07-17 10:05:23,377 - [124752] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationServices woag WHERE woag.WorkOrderAutoGenerationId = 3681599... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:05:23,675 - [124752] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 10:05:23,676 - [124752] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SubWorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId = 3681599... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:05:23,943 - [124752] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 10:05:23,943 - [124752] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationCrews woag WHERE woag.WorkOrderAutoGenerationId = 3681599... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:05:24,227 - [124752] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 10:05:24,227 - [124752] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationSalesPersonCommission woag WHERE woag.WorkOrderAutoGenerationId = 3681599... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:05:24,493 - [124752] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 10:05:24,493 - [124752] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupAutoGenerationSourceMapping woag WHERE woag.WorkOrderAutoGenerationId = 3681599... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:05:24,759 - [124752] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 10:05:24,759 - [124752] - 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 = 3681599... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:05:25,048 - [124752] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 10:05:25,048 - [124752] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from CRM.LeadNote woag WHERE woag.RefId = 3681599 and woag.RefType = 'TempWorkorder';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:05:25,316 - [124752] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 10:05:25,316 - [124752] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment woagca WHERE woagca.WorkOrderAutoGenerationId = 3681599;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:05:25,581 - [124752] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 10:05:25,583 - [124752] - src.utils.log - INFO - Updating temp tables - __SPLIT__ 2026-07-17 10:05:25,595 - [124752] - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyKey FROM Common.CompanyMaster cm WHERE CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:05:25,860 - [124752] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 10:05:25,860 - [124752] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 133 AND EnitityNumberType in ('SubWorkOrder'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:05:26,126 - [124752] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 10:05:26,130 - [124752] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-17 10:05:26,131 - [124752] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishHistory: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:05:26,442 - [124752] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderAutoGenerationPublishHistory - __SPLIT__ 2026-07-17 10:05:27,488 - [124752] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishHistory in 1 batches - __SPLIT__ 2026-07-17 10:05:27,489 - [124752] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationPublishHistoryId, WorkOrderNo, ServiceSetupId FROM ServiceCore.WorkOrderAutoGenerationPublishHistory WHERE ServiceSetupId = 150672 AND WorkOrderNo = '1005791' AND GenerateWorkOrderHistoryId = 124752; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:05:27,922 - [124752] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 10:05:27,927 - [124752] - src.utils.log - INFO - Sequential Insertion in work order tables begin - __SPLIT__ 2026-07-17 10:05:27,928 - [124752] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-17 10:05:27,928 - [124752] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderServices: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:05:28,220 - [124752] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderServices - __SPLIT__ 2026-07-17 10:05:29,155 - [124752] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderServices in 1 batches - __SPLIT__ 2026-07-17 10:05:29,155 - [124752] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderAppliedDiscount: - __SPLIT__ 2026-07-17 10:05:29,156 - [124752] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderSalesPersonCommission: - __SPLIT__ 2026-07-17 10:05:29,156 - [124752] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderCommissionAdjustment: - __SPLIT__ 2026-07-17 10:05:29,156 - [124752] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-17 10:05:29,156 - [124752] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderCrew: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:05:29,446 - [124752] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderCrew - __SPLIT__ 2026-07-17 10:05:30,383 - [124752] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderCrew in 1 batches - __SPLIT__ 2026-07-17 10:05:30,383 - [124752] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkorderSourceMapping: - __SPLIT__ 2026-07-17 10:05:30,383 - [124752] - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-07-17 10:05:30,384 - [124752] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-17 10:05:30,384 - [124752] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishServices: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:05:30,676 - [124752] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderAutoGenerationPublishServices - __SPLIT__ 2026-07-17 10:05:31,611 - [124752] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishServices in 1 batches - __SPLIT__ 2026-07-17 10:05:31,612 - [124752] - 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 = 150672... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:05:31,877 - [124752] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 10:05:31,884 - [124752] - src.utils.log - INFO - Size of Transaction: 1 - __SPLIT__ 2026-07-17 10:05:31,884 - [124752] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:05:32,308 - [124752] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-07-17 10:05:33,241 - [124752] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-07-17 10:05:33,373 - [124752] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-07-17 10:05:33,374 - [124752] - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionId, ModifiedBy, TransactionDate as InvoiceDate from Billing.[Transaction] t WHERE t.ModifiedBy = 12345678910 and t.CompanyId = 133 AND t.TransactionType ='Invoice' AND t.CreatedDate = '2026-07-17 06:05:31.879';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:05:33,747 - [124752] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 10:05:33,750 - [124752] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150672;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:05:34,016 - [124752] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 10:05:34,024 - [124752] - src.utils.log - INFO - πŸ“ Executing: UPDATE Billing.[Transaction] SET ModifiedBy = NULL WHERE ModifiedBy = 12345678910 AND CreatedDate = '2026-07-17 06:05:31.879'; ... (Thread: ThreadPoolExecutor-9_0) - __SPLIT__ 2026-07-17 10:05:34,904 - [124752] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-17 10:05:34,909 - [124752] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-17 10:05:34,909 - [124752] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:05:35,203 - [124752] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into Billing.Invoice - __SPLIT__ 2026-07-17 10:05:36,137 - [124752] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-07-17 10:05:36,138 - [124752] - src.utils.log - INFO - πŸ” Fetching data: SELECT InvoiceId, WorkOrderNo FROM Billing.Invoice i WHERE i.WorkOrderNo = '1427324'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:05:36,932 - [124752] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 10:05:36,943 - [124752] - 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 = 150672 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:05:37,212 - [124752] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 10:05:37,213 - [124752] - 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 = 150672 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:05:37,481 - [124752] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 10:05:37,482 - [124752] - 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 = 150672 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:05:37,750 - [124752] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 10:05:37,751 - [124752] - 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 = 150672 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:05:38,019 - [124752] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 10:05:38,031 - [124752] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150672;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:05:38,296 - [124752] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 10:05:38,302 - [124752] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId, AppliedDiscountAmt as AppliedDiscountAmount,IsActive ,ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 150672;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:05:38,569 - [124752] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 10:05:38,572 - [124752] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId,IsActive,DiscountAmount, IsDiscountPercent,DiscountPercent,DiscountDescription , ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 150672;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:05:38,839 - [124752] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 10:05:38,840 - [124752] - src.utils.log - INFO - Sequential Insertion in invoice tables begin - __SPLIT__ 2026-07-17 10:05:38,840 - [124752] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.AccountDiscountSetup: - __SPLIT__ 2026-07-17 10:05:38,840 - [124752] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-17 10:05:38,840 - [124752] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceCharges: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:05:39,133 - [124752] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into Billing.InvoiceCharges - __SPLIT__ 2026-07-17 10:05:40,070 - [124752] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into Billing.InvoiceCharges in 1 batches - __SPLIT__ 2026-07-17 10:05:40,070 - [124752] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.DiscountApplied: - __SPLIT__ 2026-07-17 10:05:40,070 - [124752] - src.utils.log - INFO - Invoice Publish Done - __SPLIT__ 2026-07-17 10:05:40,071 - [124752] - src.utils.log - INFO - Updating Next GenerationDate - __SPLIT__ 2026-07-17 10:05:40,071 - [124752] - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, MAX(NextWorkOrderGenerationDate) AS MaxNextWorkOrderGeneration FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 124752 GROUP BY ServiceSetupId; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:05:40,338 - [124752] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 10:05:40,344 - [124752] - src.utils.log - INFO - πŸ”„ Updating next gen date sequentially: inside update_next_workorder_generation - __SPLIT__ 2026-07-17 10:05:40,477 - [124752] - src.utils.log - INFO - πŸ›  Creating temp table #tbl_3d47b57514 - __SPLIT__ 2026-07-17 10:05:40,744 - [124752] - src.utils.log - INFO - πŸ“Œ Bulk inserting 1 rows into #tbl_3d47b57514 - __SPLIT__ 2026-07-17 10:05:41,010 - [124752] - src.utils.log - INFO - πŸ” Running MERGE update to apply changes - __SPLIT__ 2026-07-17 10:05:41,152 - [124752] - src.utils.log - INFO - βœ” SQL reported affected rows: 1 - __SPLIT__ 2026-07-17 10:05:41,290 - [124752] - src.utils.log - INFO - πŸ” Verified successfully updated 1 rows via #tbl_3d47b57514 - __SPLIT__ 2026-07-17 10:05:41,290 - [124752] - src.utils.log - INFO - πŸŽ‰ Successfully updated NextGenerationDate using temp table #tbl_3d47b57514 - __SPLIT__ 2026-07-17 10:05:41,290 - [124752] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 124752 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:05:41,555 - [124752] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 10:05:41,555 - [124752] - src.utils.log - INFO - Sequential deletion from temp tables begin - __SPLIT__ 2026-07-17 10:05:41,555 - [124752] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId = 3681599 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:05:41,946 - [124752] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 10:05:41,946 - [124752] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId = 3681599 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:05:42,291 - [124752] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 10:05:42,292 - [124752] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId = 3681599 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:05:42,557 - [124752] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 10:05:42,557 - [124752] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId = 3681599 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:05:42,898 - [124752] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 10:05:42,899 - [124752] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId = 3681599 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:05:43,169 - [124752] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 10:05:43,169 - [124752] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 3681599 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:05:43,437 - [124752] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 10:05:43,437 - [124752] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId = 3681599 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:05:43,702 - [124752] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 10:05:43,702 - [124752] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 3681599 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:05:44,011 - [124752] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 10:05:44,012 - [124752] - src.utils.log - INFO - Work order published ids: (3681599,) - __SPLIT__ 2026-07-17 10:05:44,012 - [124752] - src.utils.log - INFO - Time took to perform operation in publishing [124752]: 29.82 - __SPLIT__ 2026-07-17 10:05:44,012 - [124752] - src.utils.log - INFO - Publish Completed for GenerateWorkOrderHistoryId: [124752] - __SPLIT__ 2026-07-17 10:05:44,012 - [124752] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-07-17 06:05:44.012' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124752;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:05:44,279 - [124752] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-17 10:08:08,217 - 124753 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=124753 - __SPLIT__ 2026-07-17 10:08:08,218 - 124753 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 124753 - __SPLIT__ 2026-07-17 10:08:08,219 - 124753 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-17 10:08:08,219 - 124753 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:08:10,204 - 124753 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 10:08:10,204 - 124753 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-07-17 10:08:10,205 - 124753 - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-07-17 10:08:10,205 - 124753 - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-07-17 10:08:10,205 - 124753 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 124753;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:08:12,066 - 124753 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-17 10:08:12,066 - 124753 - 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 = 124753), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 124753), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 124753 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-07-17 10:08:12,375 - 124753 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 10:08:12,375 - 124753 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 124753;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:08:12,642 - 124753 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 10:08:12,645 - 124753 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-07-17 10:08:12,646 - 124753 - 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 = 14037... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:08:12,918 - 124753 - src.utils.log - INFO - βœ… Fetched 60 rows - __SPLIT__ 2026-07-17 10:08:12,918 - 124753 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-07-17 10:08:12,922 - 124753 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-07-17 10:08:12,922 - 124753 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150672;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:08:13,190 - 124753 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 10:08:13,190 - 124753 - 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-07-17 00:00:00' and ServiceDate <= '2027-12-31 00:00:00' and ServiceSetupId = 150672 and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:08:13,468 - 124753 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 10:08:14,021 - 124753 - src.utils.log - INFO - Generating work orders for setup: 150672 - __SPLIT__ 2026-07-17 10:08:14,036 - 124753 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 1131;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:08:14,302 - 124753 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 10:08:14,344 - 124753 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-07-17 10:08:14,351 - 124753 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=133 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:08:14,616 - 124753 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 10:08:14,618 - 124753 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-07-17 10:08:14,618 - 124753 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-07-17 10:08:14,619 - 124753 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150672 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:08:14,935 - 124753 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 10:08:14,935 - 124753 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150672 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:08:15,251 - 124753 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 10:08:15,251 - 124753 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150672 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:08:15,522 - 124753 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 10:08:15,522 - 124753 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150672 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:08:15,843 - 124753 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 10:08:15,843 - 124753 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150672 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:08:16,159 - 124753 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 10:08:16,159 - 124753 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150672 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:08:16,436 - 124753 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 10:08:16,437 - 124753 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150672 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:08:16,702 - 124753 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 10:08:16,702 - 124753 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150672 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:08:17,086 - 124753 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 10:08:17,086 - 124753 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-17 10:08:17,086 - 124753 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:08:17,388 - 124753 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-07-17 10:08:18,359 - 124753 - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-07-17 10:08:18,360 - 124753 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 2 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-07-16 14:51:40.778' and ServiceSetupId = 150672... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:08:18,677 - 124753 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-17 10:08:18,678 - 124753 - src.utils.log - INFO - Id's of work order inserted to DB: [3681600 3681601] - __SPLIT__ 2026-07-17 10:08:18,678 - 124753 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150672;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:08:18,944 - 124753 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 10:08:18,944 - 124753 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-07-17 10:08:18,945 - 124753 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId = 150672... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:08:19,211 - 124753 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 10:08:19,211 - 124753 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId = 150672... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:08:19,477 - 124753 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 10:08:19,481 - 124753 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId = 150672... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:08:19,755 - 124753 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 10:08:19,757 - 124753 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId = 150672... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:08:20,022 - 124753 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 10:08:20,023 - 124753 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId = 150672... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:08:20,288 - 124753 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 10:08:20,288 - 124753 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId = 150672;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:08:20,553 - 124753 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 10:08:20,554 - 124753 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId = 150672;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:08:20,819 - 124753 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 10:08:20,820 - 124753 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId = 150672;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:08:21,183 - 124753 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 10:08:21,184 - 124753 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId = 150672;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:08:21,450 - 124753 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 10:08:21,458 - 124753 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-07-17 10:08:21,458 - 124753 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-07-17 10:08:21,459 - 124753 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-07-17 10:08:21,459 - 124753 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.CommunicationPreferencesServiceReportNotification: - __SPLIT__ 2026-07-17 10:08:21,459 - 124753 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-07-17 10:08:21,459 - 124753 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SetupAutoGenerationSourceMapping: - __SPLIT__ 2026-07-17 10:08:21,459 - 124753 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-07-17 10:08:21,459 - 124753 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationAppliedDiscount: - __SPLIT__ 2026-07-17 10:08:21,459 - 124753 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-07-17 10:08:21,459 - 124753 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SubWorkOrderAutoGeneration: - __SPLIT__ 2026-07-17 10:08:21,459 - 124753 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-07-17 10:08:21,459 - 124753 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: - __SPLIT__ 2026-07-17 10:08:21,459 - 124753 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-07-17 10:08:21,459 - 124753 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: - __SPLIT__ 2026-07-17 10:08:21,459 - 124753 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-07-17 10:08:21,459 - 124753 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-17 10:08:21,460 - 124753 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3681600, 3681601) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:08:21,726 - 124753 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-17 10:08:21,727 - 124753 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationCrews: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:08:21,998 - 124753 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationCrews - __SPLIT__ 2026-07-17 10:08:22,939 - 124753 - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationCrews in 1 batches - __SPLIT__ 2026-07-17 10:08:22,939 - 124753 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-07-17 10:08:22,939 - 124753 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationServices: - __SPLIT__ 2026-07-17 10:08:22,939 - 124753 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-07-17 10:08:22,939 - 124753 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-17 10:08:22,940 - 124753 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3681600, 3681601) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:08:23,205 - 124753 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-17 10:08:23,206 - 124753 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:08:23,480 - 124753 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-07-17 10:08:24,427 - 124753 - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-07-17 10:08:24,427 - 124753 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-07-17 10:08:24,427 - 124753 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 124753;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:08:24,694 - 124753 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-17 10:08:24,694 - 124753 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-07-17 10:08:24,694 - 124753 - src.utils.log - INFO - Time took to perform operation: 16.48 - __SPLIT__ 2026-07-17 10:08:42,762 - [124753] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[3681601] user_id=43135 company_id=133 project_id=[124753] publish_all=False - __SPLIT__ 2026-07-17 10:08:42,763 - [124753] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[3681601] user_id=43135 company_id=133 project_id=[124753] publish_all=False - __SPLIT__ 2026-07-17 10:08:42,763 - [124753] - src.utils.log - INFO - Sequential Work order publish in progress for GenerateWorkOrderHistoryId: [124753] - __SPLIT__ 2026-07-17 10:08:42,764 - [124753] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-17 10:08:42,764 - [124753] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:08:44,724 - [124753] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 10:08:44,724 - [124753] - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-07-17 10:08:44,725 - [124753] - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-07-17 10:08:44,725 - [124753] - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-07-17 10:08:44,726 - [124753] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'InProgress' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124753;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:08:46,570 - [124753] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-17 10:08:46,570 - [124753] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId = 3681601... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:08:46,837 - [124753] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 10:08:46,837 - [124753] - src.utils.log - INFO - Inside get_work_order_table - __SPLIT__ 2026-07-17 10:08:46,838 - [124753] - 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 = 150672 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:08:47,100 - [124753] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 10:08:47,101 - [124753] - 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 = 150672 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:08:47,364 - [124753] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 10:08:47,364 - [124753] - 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 = 150672 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:08:47,627 - [124753] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 10:08:47,631 - [124753] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder,BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:08:47,894 - [124753] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 10:08:47,894 - [124753] - 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-07-17 10:08:48,158 - [124753] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-17 10:08:48,158 - [124753] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder, BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:08:48,421 - [124753] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 10:08:48,422 - [124753] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 1 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 133 AND EnitityNumberType = 'WorkOrder'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:08:48,686 - [124753] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 10:08:48,687 - [124753] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 1 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 133 AND EnitityNumberType = 'Invoice'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:08:48,953 - [124753] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 10:08:48,957 - [124753] - 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 = 150672... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:08:49,220 - [124753] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 10:08:49,222 - [124753] - src.utils.log - INFO - πŸ” Fetching data: SELECT x.CompanyId FROM CRM.CompanyMaster x WHERE CompanyKey = 'abcdallas';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:08:49,485 - [124753] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 10:08:49,486 - [124753] - src.utils.log - INFO - πŸ” Fetching data: SELECT CollectionStatus,IsHold,AccountNo FROM CRM.Account a WHERE a.AccountNo = '15016' and a.CompanyId = 121;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:08:49,749 - [124753] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 10:08:49,751 - [124753] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderNo FROM ServiceCore.WorkOrder WHERE WorkOrderNo = '1427325' AND CompanyId = 133 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:08:50,015 - [124753] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 10:08:50,015 - [124753] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrder (skip triggers): 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:08:50,447 - [124753] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrder (triggers skipped) - __SPLIT__ 2026-07-17 10:08:51,410 - [124753] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrder in 1 batches (triggers skipped) - __SPLIT__ 2026-07-17 10:08:51,541 - [124753] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-07-17 10:08:51,543 - [124753] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkorderId, WorkOrderNo FROM ServiceCore.WorkOrder wo WHERE wo.WorkOrderNo = '1427325' AND wo.AccountNumber = '15016' AND wo.CompanyId = 133 ... (Thread: ThreadPoolExecutor-0_0) - __SPLIT__ 2026-07-17 10:08:51,806 - [124753] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 10:08:51,807 - [124753] - src.utils.log - INFO - Sequential fetching temp table records - __SPLIT__ 2026-07-17 10:08:51,807 - [124753] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationServices woag WHERE woag.WorkOrderAutoGenerationId = 3681601... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:08:52,102 - [124753] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 10:08:52,103 - [124753] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SubWorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId = 3681601... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:08:52,368 - [124753] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 10:08:52,368 - [124753] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationCrews woag WHERE woag.WorkOrderAutoGenerationId = 3681601... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:08:52,648 - [124753] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 10:08:52,649 - [124753] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationSalesPersonCommission woag WHERE woag.WorkOrderAutoGenerationId = 3681601... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:08:52,912 - [124753] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 10:08:52,912 - [124753] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupAutoGenerationSourceMapping woag WHERE woag.WorkOrderAutoGenerationId = 3681601... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:08:53,176 - [124753] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 10:08:53,176 - [124753] - 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 = 3681601... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:08:53,462 - [124753] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 10:08:53,462 - [124753] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from CRM.LeadNote woag WHERE woag.RefId = 3681601 and woag.RefType = 'TempWorkorder';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:08:53,728 - [124753] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 10:08:53,728 - [124753] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment woagca WHERE woagca.WorkOrderAutoGenerationId = 3681601;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:08:53,991 - [124753] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 10:08:53,994 - [124753] - src.utils.log - INFO - Updating temp tables - __SPLIT__ 2026-07-17 10:08:54,007 - [124753] - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyKey FROM Common.CompanyMaster cm WHERE CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:08:54,270 - [124753] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 10:08:54,270 - [124753] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 133 AND EnitityNumberType in ('SubWorkOrder'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:08:54,534 - [124753] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 10:08:54,538 - [124753] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-17 10:08:54,538 - [124753] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishHistory: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:08:54,827 - [124753] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderAutoGenerationPublishHistory - __SPLIT__ 2026-07-17 10:08:55,763 - [124753] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishHistory in 1 batches - __SPLIT__ 2026-07-17 10:08:55,764 - [124753] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationPublishHistoryId, WorkOrderNo, ServiceSetupId FROM ServiceCore.WorkOrderAutoGenerationPublishHistory WHERE ServiceSetupId = 150672 AND WorkOrderNo = '8652154' AND GenerateWorkOrderHistoryId = 124753; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:08:56,192 - [124753] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 10:08:56,198 - [124753] - src.utils.log - INFO - Sequential Insertion in work order tables begin - __SPLIT__ 2026-07-17 10:08:56,198 - [124753] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-17 10:08:56,198 - [124753] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderServices: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:08:56,469 - [124753] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderServices - __SPLIT__ 2026-07-17 10:08:57,397 - [124753] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderServices in 1 batches - __SPLIT__ 2026-07-17 10:08:57,398 - [124753] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderAppliedDiscount: - __SPLIT__ 2026-07-17 10:08:57,398 - [124753] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderSalesPersonCommission: - __SPLIT__ 2026-07-17 10:08:57,398 - [124753] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderCommissionAdjustment: - __SPLIT__ 2026-07-17 10:08:57,398 - [124753] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-17 10:08:57,398 - [124753] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderCrew: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:08:57,667 - [124753] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderCrew - __SPLIT__ 2026-07-17 10:08:58,595 - [124753] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderCrew in 1 batches - __SPLIT__ 2026-07-17 10:08:58,596 - [124753] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkorderSourceMapping: - __SPLIT__ 2026-07-17 10:08:58,596 - [124753] - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-07-17 10:08:58,596 - [124753] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-17 10:08:58,596 - [124753] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishServices: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:08:58,867 - [124753] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderAutoGenerationPublishServices - __SPLIT__ 2026-07-17 10:08:59,796 - [124753] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishServices in 1 batches - __SPLIT__ 2026-07-17 10:08:59,797 - [124753] - 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 = 150672... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:09:00,061 - [124753] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 10:09:00,071 - [124753] - src.utils.log - INFO - Size of Transaction: 1 - __SPLIT__ 2026-07-17 10:09:00,073 - [124753] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:09:00,474 - [124753] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-07-17 10:09:01,401 - [124753] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-07-17 10:09:01,532 - [124753] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-07-17 10:09:01,533 - [124753] - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionId, ModifiedBy, TransactionDate as InvoiceDate from Billing.[Transaction] t WHERE t.ModifiedBy = 12345678910 and t.CompanyId = 133 AND t.TransactionType ='Invoice' AND t.CreatedDate = '2026-07-17 06:09:00.064';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:09:01,902 - [124753] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 10:09:01,905 - [124753] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150672;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:09:02,169 - [124753] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 10:09:02,177 - [124753] - src.utils.log - INFO - πŸ“ Executing: UPDATE Billing.[Transaction] SET ModifiedBy = NULL WHERE ModifiedBy = 12345678910 AND CreatedDate = '2026-07-17 06:09:00.064'; ... (Thread: ThreadPoolExecutor-1_0) - __SPLIT__ 2026-07-17 10:09:03,057 - [124753] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-17 10:09:03,061 - [124753] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-17 10:09:03,061 - [124753] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:09:03,334 - [124753] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into Billing.Invoice - __SPLIT__ 2026-07-17 10:09:04,261 - [124753] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-07-17 10:09:04,262 - [124753] - src.utils.log - INFO - πŸ” Fetching data: SELECT InvoiceId, WorkOrderNo FROM Billing.Invoice i WHERE i.WorkOrderNo = '1427325'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:09:05,056 - [124753] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 10:09:05,064 - [124753] - 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 = 150672 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:09:05,327 - [124753] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 10:09:05,328 - [124753] - 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 = 150672 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:09:05,592 - [124753] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 10:09:05,592 - [124753] - 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 = 150672 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:09:05,855 - [124753] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 10:09:05,856 - [124753] - 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 = 150672 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:09:06,119 - [124753] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 10:09:06,131 - [124753] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150672;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:09:06,396 - [124753] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 10:09:06,401 - [124753] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId, AppliedDiscountAmt as AppliedDiscountAmount,IsActive ,ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 150672;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:09:06,666 - [124753] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 10:09:06,669 - [124753] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId,IsActive,DiscountAmount, IsDiscountPercent,DiscountPercent,DiscountDescription , ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 150672;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:09:06,932 - [124753] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 10:09:06,932 - [124753] - src.utils.log - INFO - Sequential Insertion in invoice tables begin - __SPLIT__ 2026-07-17 10:09:06,933 - [124753] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.AccountDiscountSetup: - __SPLIT__ 2026-07-17 10:09:06,933 - [124753] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-17 10:09:06,933 - [124753] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceCharges: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:09:07,205 - [124753] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into Billing.InvoiceCharges - __SPLIT__ 2026-07-17 10:09:08,133 - [124753] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into Billing.InvoiceCharges in 1 batches - __SPLIT__ 2026-07-17 10:09:08,134 - [124753] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.DiscountApplied: - __SPLIT__ 2026-07-17 10:09:08,134 - [124753] - src.utils.log - INFO - Invoice Publish Done - __SPLIT__ 2026-07-17 10:09:08,134 - [124753] - src.utils.log - INFO - Updating Next GenerationDate - __SPLIT__ 2026-07-17 10:09:08,134 - [124753] - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, MAX(NextWorkOrderGenerationDate) AS MaxNextWorkOrderGeneration FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 124753 GROUP BY ServiceSetupId; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:09:08,399 - [124753] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 10:09:08,405 - [124753] - src.utils.log - INFO - πŸ”„ Updating next gen date sequentially: inside update_next_workorder_generation - __SPLIT__ 2026-07-17 10:09:08,538 - [124753] - src.utils.log - INFO - πŸ›  Creating temp table #tbl_f112f6fcb8 - __SPLIT__ 2026-07-17 10:09:08,803 - [124753] - src.utils.log - INFO - πŸ“Œ Bulk inserting 1 rows into #tbl_f112f6fcb8 - __SPLIT__ 2026-07-17 10:09:09,068 - [124753] - src.utils.log - INFO - πŸ” Running MERGE update to apply changes - __SPLIT__ 2026-07-17 10:09:09,210 - [124753] - src.utils.log - INFO - βœ” SQL reported affected rows: 1 - __SPLIT__ 2026-07-17 10:09:09,347 - [124753] - src.utils.log - INFO - πŸ” Verified successfully updated 1 rows via #tbl_f112f6fcb8 - __SPLIT__ 2026-07-17 10:09:09,347 - [124753] - src.utils.log - INFO - πŸŽ‰ Successfully updated NextGenerationDate using temp table #tbl_f112f6fcb8 - __SPLIT__ 2026-07-17 10:09:09,347 - [124753] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 124753 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:09:09,611 - [124753] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 10:09:09,611 - [124753] - src.utils.log - INFO - Sequential deletion from temp tables begin - __SPLIT__ 2026-07-17 10:09:09,611 - [124753] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId = 3681601 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:09:09,998 - [124753] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 10:09:09,998 - [124753] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId = 3681601 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:09:10,341 - [124753] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 10:09:10,341 - [124753] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId = 3681601 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:09:10,605 - [124753] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 10:09:10,605 - [124753] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId = 3681601 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:09:10,942 - [124753] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 10:09:10,942 - [124753] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId = 3681601 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:09:11,211 - [124753] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 10:09:11,211 - [124753] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 3681601 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:09:11,477 - [124753] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 10:09:11,478 - [124753] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId = 3681601 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:09:11,740 - [124753] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 10:09:11,741 - [124753] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 3681601 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:09:12,049 - [124753] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 10:09:12,049 - [124753] - src.utils.log - INFO - Work order published ids: (3681601,) - __SPLIT__ 2026-07-17 10:09:12,049 - [124753] - src.utils.log - INFO - Time took to perform operation in publishing [124753]: 29.29 - __SPLIT__ 2026-07-17 10:09:12,049 - [124753] - src.utils.log - INFO - Publish Completed for GenerateWorkOrderHistoryId: [124753] - __SPLIT__ 2026-07-17 10:09:12,049 - [124753] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-07-17 06:09:12.049' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124753;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:09:12,314 - [124753] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-17 10:12:28,240 - 124754 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=124754 - __SPLIT__ 2026-07-17 10:12:28,241 - 124754 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 124754 - __SPLIT__ 2026-07-17 10:12:28,241 - 124754 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-17 10:12:28,241 - 124754 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:12:30,308 - 124754 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 10:12:30,308 - 124754 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-07-17 10:12:30,308 - 124754 - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-07-17 10:12:30,309 - 124754 - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-07-17 10:12:30,309 - 124754 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 124754;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:12:32,155 - 124754 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-17 10:12:32,155 - 124754 - 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 = 124754), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 124754), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 124754 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-07-17 10:12:32,462 - 124754 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 10:12:32,462 - 124754 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 124754;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:12:32,727 - 124754 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 10:12:32,731 - 124754 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-07-17 10:12:32,731 - 124754 - 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 = 14626... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:12:33,006 - 124754 - src.utils.log - INFO - βœ… Fetched 60 rows - __SPLIT__ 2026-07-17 10:12:33,007 - 124754 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-07-17 10:12:33,010 - 124754 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-07-17 10:12:33,010 - 124754 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150673;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:12:33,275 - 124754 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 10:12:33,275 - 124754 - 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-08-01 00:00:00' and ServiceDate <= '2026-08-31 00:00:00' and ServiceSetupId = 150673 and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:12:33,547 - 124754 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 10:12:34,106 - 124754 - src.utils.log - INFO - Generating work orders for setup: 150673 - __SPLIT__ 2026-07-17 10:12:34,244 - 124754 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 1132;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:12:34,507 - 124754 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 10:12:34,551 - 124754 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-07-17 10:12:34,557 - 124754 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=133 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:12:34,820 - 124754 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 10:12:34,822 - 124754 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-07-17 10:12:34,822 - 124754 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-07-17 10:12:34,822 - 124754 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150673 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:12:35,140 - 124754 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 10:12:35,140 - 124754 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150673 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:12:35,458 - 124754 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 10:12:35,458 - 124754 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150673 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:12:35,730 - 124754 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 10:12:35,730 - 124754 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150673 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:12:36,049 - 124754 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 10:12:36,049 - 124754 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150673 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:12:36,366 - 124754 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 10:12:36,366 - 124754 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150673 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:12:36,644 - 124754 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 10:12:36,644 - 124754 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150673 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:12:36,911 - 124754 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 10:12:36,911 - 124754 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150673 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:12:37,300 - 124754 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 10:12:37,301 - 124754 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-17 10:12:37,301 - 124754 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 21 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:12:37,601 - 124754 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 21) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-07-17 10:12:39,492 - 124754 - src.utils.log - INFO - βœ… All 21 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-07-17 10:12:39,493 - 124754 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 21 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-07-16 14:51:40.585' and ServiceSetupId = 150673... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:12:39,809 - 124754 - src.utils.log - INFO - βœ… Fetched 21 rows - __SPLIT__ 2026-07-17 10:12:39,810 - 124754 - src.utils.log - INFO - Id's of work order inserted to DB: [3681602 3681603 3681604 3681605 3681606 3681607 3681608 3681609 3681610 3681611 3681612 3681613 3681614 3681615 3681616 3681617 3681618 3681619 3681620 3681621 3681622] - __SPLIT__ 2026-07-17 10:12:39,810 - 124754 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150673;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:12:40,074 - 124754 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 10:12:40,075 - 124754 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-07-17 10:12:40,075 - 124754 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId = 150673... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:12:40,342 - 124754 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 10:12:40,342 - 124754 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId = 150673... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:12:40,606 - 124754 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 10:12:40,611 - 124754 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId = 150673... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:12:40,882 - 124754 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 10:12:40,884 - 124754 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId = 150673... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:12:41,148 - 124754 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 10:12:41,149 - 124754 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId = 150673... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:12:41,412 - 124754 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 10:12:41,413 - 124754 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId = 150673;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:12:41,678 - 124754 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 10:12:41,678 - 124754 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId = 150673;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:12:41,942 - 124754 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 10:12:41,943 - 124754 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId = 150673;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:12:42,309 - 124754 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 10:12:42,309 - 124754 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId = 150673;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:12:42,575 - 124754 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 10:12:42,583 - 124754 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-07-17 10:12:42,584 - 124754 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-07-17 10:12:42,584 - 124754 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-07-17 10:12:42,584 - 124754 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.CommunicationPreferencesServiceReportNotification: - __SPLIT__ 2026-07-17 10:12:42,584 - 124754 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-07-17 10:12:42,584 - 124754 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SetupAutoGenerationSourceMapping: - __SPLIT__ 2026-07-17 10:12:42,584 - 124754 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-07-17 10:12:42,584 - 124754 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationAppliedDiscount: - __SPLIT__ 2026-07-17 10:12:42,584 - 124754 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-07-17 10:12:42,584 - 124754 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SubWorkOrderAutoGeneration: - __SPLIT__ 2026-07-17 10:12:42,584 - 124754 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-07-17 10:12:42,584 - 124754 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: - __SPLIT__ 2026-07-17 10:12:42,584 - 124754 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-07-17 10:12:42,585 - 124754 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: - __SPLIT__ 2026-07-17 10:12:42,585 - 124754 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-07-17 10:12:42,585 - 124754 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-17 10:12:42,585 - 124754 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3681602, 3681603, 3681604, 3681605, 3681606, 3681607, 3681608, 3681609, 3681610, 3681611, 3681612, 3681613, 3681614, 3681615, 3681616, 3681617, 3681618, 3681619, 3681620, 3681621, 3681622) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:12:42,850 - 124754 - src.utils.log - INFO - βœ… Fetched 21 rows - __SPLIT__ 2026-07-17 10:12:42,851 - 124754 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationCrews: 21 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:12:43,141 - 124754 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 21) into ServiceCore.WorkOrderAutoGenerationCrews - __SPLIT__ 2026-07-17 10:12:44,085 - 124754 - src.utils.log - INFO - βœ… All 21 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationCrews in 1 batches - __SPLIT__ 2026-07-17 10:12:44,085 - 124754 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-07-17 10:12:44,085 - 124754 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationServices: - __SPLIT__ 2026-07-17 10:12:44,085 - 124754 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-07-17 10:12:44,085 - 124754 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-17 10:12:44,086 - 124754 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3681602, 3681603, 3681604, 3681605, 3681606, 3681607, 3681608, 3681609, 3681610, 3681611, 3681612, 3681613, 3681614, 3681615, 3681616, 3681617, 3681618, 3681619, 3681620, 3681621, 3681622) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:12:44,349 - 124754 - src.utils.log - INFO - βœ… Fetched 21 rows - __SPLIT__ 2026-07-17 10:12:44,350 - 124754 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 21 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:12:44,642 - 124754 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 21) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-07-17 10:12:45,602 - 124754 - src.utils.log - INFO - βœ… All 21 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-07-17 10:12:45,603 - 124754 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-07-17 10:12:45,603 - 124754 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 124754;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:12:45,868 - 124754 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-17 10:12:45,868 - 124754 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-07-17 10:12:45,868 - 124754 - src.utils.log - INFO - Time took to perform operation: 17.63 - __SPLIT__ 2026-07-17 10:13:03,278 - [124754] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[] user_id=43135 company_id=133 project_id=[124754] publish_all=True - __SPLIT__ 2026-07-17 10:13:03,279 - [124754] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[] user_id=43135 company_id=133 project_id=[124754] publish_all=True - __SPLIT__ 2026-07-17 10:13:03,280 - [124754] - src.utils.log - INFO - Sequential Work order publish in progress for GenerateWorkOrderHistoryId: [124754] - __SPLIT__ 2026-07-17 10:13:03,280 - [124754] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-17 10:13:03,280 - [124754] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:13:05,261 - [124754] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 10:13:05,262 - [124754] - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-07-17 10:13:05,262 - [124754] - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-07-17 10:13:05,263 - [124754] - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-07-17 10:13:05,263 - [124754] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'InProgress' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124754;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:13:07,121 - [124754] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-17 10:13:07,121 - [124754] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGeneration woag WHERE woag.GenerateWorkOrderHistoryId = 124754... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:13:07,442 - [124754] - src.utils.log - INFO - βœ… Fetched 21 rows - __SPLIT__ 2026-07-17 10:13:07,443 - [124754] - src.utils.log - INFO - Inside get_work_order_table - __SPLIT__ 2026-07-17 10:13:07,443 - [124754] - 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 = 150673 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:13:07,719 - [124754] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 10:13:07,719 - [124754] - 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 = 150673 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:13:07,992 - [124754] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 10:13:07,993 - [124754] - 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 = 150673 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:13:08,271 - [124754] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 10:13:08,275 - [124754] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder,BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:13:08,539 - [124754] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 10:13:08,540 - [124754] - 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-07-17 10:13:08,805 - [124754] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-17 10:13:08,805 - [124754] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder, BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:13:09,069 - [124754] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 10:13:09,070 - [124754] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 21 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 133 AND EnitityNumberType = 'WorkOrder'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:13:09,338 - [124754] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 10:13:09,339 - [124754] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 21 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 133 AND EnitityNumberType = 'Invoice'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:13:09,608 - [124754] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 10:13:09,612 - [124754] - 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 = 150673... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:13:09,883 - [124754] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 10:13:09,893 - [124754] - src.utils.log - INFO - πŸ” Fetching data: SELECT x.CompanyId FROM CRM.CompanyMaster x WHERE CompanyKey = 'abcdallas';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:13:10,157 - [124754] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 10:13:10,158 - [124754] - src.utils.log - INFO - πŸ” Fetching data: SELECT CollectionStatus,IsHold,AccountNo FROM CRM.Account a WHERE a.AccountNo = '15016' and a.CompanyId = 121;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:13:10,422 - [124754] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 10:13:10,424 - [124754] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderNo FROM ServiceCore.WorkOrder WHERE WorkOrderNo IN ('1427326', '1427327', '1427328', '1427329', '1427330', '1427331', '1427332', '1427333', '1427334', '1427335', '1427336', '1427337', '1427338', '1427339', '1427340', '1427341', '1427342', '1427343', '1427344', '1427345', '1427346') AND CompanyId = 133 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:13:10,696 - [124754] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 10:13:10,696 - [124754] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrder (skip triggers): 21 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:13:11,151 - [124754] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 21) into ServiceCore.WorkOrder (triggers skipped) - __SPLIT__ 2026-07-17 10:13:13,157 - [124754] - src.utils.log - INFO - βœ… All 21 rows inserted successfully into ServiceCore.WorkOrder in 1 batches (triggers skipped) - __SPLIT__ 2026-07-17 10:13:13,289 - [124754] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-07-17 10:13:13,291 - [124754] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkorderId, WorkOrderNo FROM ServiceCore.WorkOrder wo WHERE wo.WorkOrderNo IN ('1427326', '1427327', '1427328', '1427329', '1427330', '1427331', '1427332', '1427333', '1427334', '1427335', '1427336', '1427337', '1427338', '1427339', '1427340', '1427341', '1427342', '1427343', '1427344', '1427345', '1427346') AND wo.AccountNumber = '15016' AND wo.CompanyId = 133 ... (Thread: ThreadPoolExecutor-2_0) - __SPLIT__ 2026-07-17 10:13:13,564 - [124754] - src.utils.log - INFO - βœ… Fetched 21 rows - __SPLIT__ 2026-07-17 10:13:13,565 - [124754] - src.utils.log - INFO - Sequential fetching temp table records - __SPLIT__ 2026-07-17 10:13:13,565 - [124754] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationServices woag WHERE woag.WorkOrderAutoGenerationId in (3681602, 3681603, 3681604, 3681605, 3681606, 3681607, 3681608, 3681609, 3681610, 3681611, 3681612, 3681613, 3681614, 3681615, 3681616, 3681617, 3681618, 3681619, 3681620, 3681621, 3681622)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:13:13,932 - [124754] - src.utils.log - INFO - βœ… Fetched 21 rows - __SPLIT__ 2026-07-17 10:13:13,933 - [124754] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SubWorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (3681602, 3681603, 3681604, 3681605, 3681606, 3681607, 3681608, 3681609, 3681610, 3681611, 3681612, 3681613, 3681614, 3681615, 3681616, 3681617, 3681618, 3681619, 3681620, 3681621, 3681622)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:13:14,203 - [124754] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 10:13:14,204 - [124754] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationCrews woag WHERE woag.WorkOrderAutoGenerationId in (3681602, 3681603, 3681604, 3681605, 3681606, 3681607, 3681608, 3681609, 3681610, 3681611, 3681612, 3681613, 3681614, 3681615, 3681616, 3681617, 3681618, 3681619, 3681620, 3681621, 3681622)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:13:14,528 - [124754] - src.utils.log - INFO - βœ… Fetched 21 rows - __SPLIT__ 2026-07-17 10:13:14,528 - [124754] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationSalesPersonCommission woag WHERE woag.WorkOrderAutoGenerationId in (3681602, 3681603, 3681604, 3681605, 3681606, 3681607, 3681608, 3681609, 3681610, 3681611, 3681612, 3681613, 3681614, 3681615, 3681616, 3681617, 3681618, 3681619, 3681620, 3681621, 3681622)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:13:14,796 - [124754] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 10:13:14,797 - [124754] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupAutoGenerationSourceMapping woag WHERE woag.WorkOrderAutoGenerationId in (3681602, 3681603, 3681604, 3681605, 3681606, 3681607, 3681608, 3681609, 3681610, 3681611, 3681612, 3681613, 3681614, 3681615, 3681616, 3681617, 3681618, 3681619, 3681620, 3681621, 3681622)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:13:15,068 - [124754] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 10:13:15,068 - [124754] - 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 (3681602, 3681603, 3681604, 3681605, 3681606, 3681607, 3681608, 3681609, 3681610, 3681611, 3681612, 3681613, 3681614, 3681615, 3681616, 3681617, 3681618, 3681619, 3681620, 3681621, 3681622)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:13:15,389 - [124754] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 10:13:15,389 - [124754] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from CRM.LeadNote woag WHERE woag.RefId in (3681602, 3681603, 3681604, 3681605, 3681606, 3681607, 3681608, 3681609, 3681610, 3681611, 3681612, 3681613, 3681614, 3681615, 3681616, 3681617, 3681618, 3681619, 3681620, 3681621, 3681622) and woag.RefType = 'TempWorkorder';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:13:15,658 - [124754] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 10:13:15,658 - [124754] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment woagca WHERE woagca.WorkOrderAutoGenerationId in (3681602, 3681603, 3681604, 3681605, 3681606, 3681607, 3681608, 3681609, 3681610, 3681611, 3681612, 3681613, 3681614, 3681615, 3681616, 3681617, 3681618, 3681619, 3681620, 3681621, 3681622);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:13:15,926 - [124754] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 10:13:15,928 - [124754] - src.utils.log - INFO - Updating temp tables - __SPLIT__ 2026-07-17 10:13:15,940 - [124754] - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyKey FROM Common.CompanyMaster cm WHERE CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:13:16,205 - [124754] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 10:13:16,205 - [124754] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 133 AND EnitityNumberType in ('SubWorkOrder'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:13:16,470 - [124754] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 10:13:16,474 - [124754] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-17 10:13:16,474 - [124754] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishHistory: 21 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:13:16,784 - [124754] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 21) into ServiceCore.WorkOrderAutoGenerationPublishHistory - __SPLIT__ 2026-07-17 10:13:17,942 - [124754] - src.utils.log - INFO - βœ… All 21 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishHistory in 1 batches - __SPLIT__ 2026-07-17 10:13:17,943 - [124754] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationPublishHistoryId, WorkOrderNo, ServiceSetupId FROM ServiceCore.WorkOrderAutoGenerationPublishHistory WHERE ServiceSetupId = 150673 AND WorkOrderNo IN ('4293360', '7586081', '3015871', '2718597', '6320894', '9994406', '2127928', '7338144', '7262895', '7934526', '8494291', '6785124', '7866874', '9243423', '6280678', '8989175', '2387268', '8535299', '6029055', '8137539', '2475376') AND GenerateWorkOrderHistoryId = 124754;... (Thread: ThreadPoolExecutor-3_0) - __SPLIT__ 2026-07-17 10:13:18,390 - [124754] - src.utils.log - INFO - βœ… Fetched 21 rows - __SPLIT__ 2026-07-17 10:13:18,391 - [124754] - src.utils.log - INFO - 🏁 Final merged rows: 21 - __SPLIT__ 2026-07-17 10:13:18,397 - [124754] - src.utils.log - INFO - Sequential Insertion in work order tables begin - __SPLIT__ 2026-07-17 10:13:18,397 - [124754] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-17 10:13:18,397 - [124754] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderServices: 21 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:13:18,691 - [124754] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 21) into ServiceCore.WorkOrderServices - __SPLIT__ 2026-07-17 10:13:19,651 - [124754] - src.utils.log - INFO - βœ… All 21 rows inserted successfully into ServiceCore.WorkOrderServices in 1 batches - __SPLIT__ 2026-07-17 10:13:19,652 - [124754] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderAppliedDiscount: - __SPLIT__ 2026-07-17 10:13:19,652 - [124754] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderSalesPersonCommission: - __SPLIT__ 2026-07-17 10:13:19,652 - [124754] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderCommissionAdjustment: - __SPLIT__ 2026-07-17 10:13:19,652 - [124754] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-17 10:13:19,652 - [124754] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderCrew: 21 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:13:19,943 - [124754] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 21) into ServiceCore.WorkOrderCrew - __SPLIT__ 2026-07-17 10:13:20,894 - [124754] - src.utils.log - INFO - βœ… All 21 rows inserted successfully into ServiceCore.WorkOrderCrew in 1 batches - __SPLIT__ 2026-07-17 10:13:20,894 - [124754] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkorderSourceMapping: - __SPLIT__ 2026-07-17 10:13:20,894 - [124754] - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-07-17 10:13:20,894 - [124754] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-17 10:13:20,894 - [124754] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishServices: 21 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:13:21,188 - [124754] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 21) into ServiceCore.WorkOrderAutoGenerationPublishServices - __SPLIT__ 2026-07-17 10:13:22,144 - [124754] - src.utils.log - INFO - βœ… All 21 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishServices in 1 batches - __SPLIT__ 2026-07-17 10:13:22,145 - [124754] - 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 = 150673... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:13:22,410 - [124754] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 10:13:22,417 - [124754] - src.utils.log - INFO - Size of Transaction: 21 - __SPLIT__ 2026-07-17 10:13:22,417 - [124754] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 21 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:13:22,841 - [124754] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 21) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-07-17 10:13:23,788 - [124754] - src.utils.log - INFO - βœ… All 21 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-07-17 10:13:23,921 - [124754] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-07-17 10:13:23,921 - [124754] - 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) and t.CompanyId = 133 AND t.TransactionType ='Invoice' AND t.CreatedDate = '2026-07-17 06:13:22.412';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:13:24,310 - [124754] - src.utils.log - INFO - βœ… Fetched 21 rows - __SPLIT__ 2026-07-17 10:13:24,313 - [124754] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150673;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:13:24,578 - [124754] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 10:13:24,589 - [124754] - 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) AND CreatedDate = '2026-07-17 06:13:22.412'; ... (Thread: ThreadPoolExecutor-4_0) - __SPLIT__ 2026-07-17 10:13:24,955 - [124754] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-17 10:13:24,960 - [124754] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-17 10:13:24,960 - [124754] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 21 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:13:25,257 - [124754] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 21) into Billing.Invoice - __SPLIT__ 2026-07-17 10:13:26,245 - [124754] - src.utils.log - INFO - βœ… All 21 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-07-17 10:13:26,245 - [124754] - src.utils.log - INFO - πŸ” Fetching data: SELECT InvoiceId, WorkOrderNo FROM Billing.Invoice i WHERE i.WorkOrderNo in ('1427346', '1427345', '1427344', '1427343', '1427342', '1427341', '1427340', '1427339', '1427338', '1427337', '1427336', '1427335', '1427334', '1427333', '1427332', '1427331', '1427330', '1427329', '1427328', '1427327', '1427326')... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:13:28,062 - [124754] - src.utils.log - INFO - βœ… Fetched 21 rows - __SPLIT__ 2026-07-17 10:13:28,072 - [124754] - 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 = 150673 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:13:28,341 - [124754] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 10:13:28,342 - [124754] - 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 = 150673 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:13:28,610 - [124754] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 10:13:28,611 - [124754] - 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 = 150673 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:13:28,879 - [124754] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 10:13:28,879 - [124754] - 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 = 150673 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:13:29,147 - [124754] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 10:13:29,160 - [124754] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150673;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:13:29,425 - [124754] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 10:13:29,431 - [124754] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId, AppliedDiscountAmt as AppliedDiscountAmount,IsActive ,ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 150673;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:13:29,697 - [124754] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 10:13:29,701 - [124754] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId,IsActive,DiscountAmount, IsDiscountPercent,DiscountPercent,DiscountDescription , ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 150673;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:13:29,968 - [124754] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 10:13:29,968 - [124754] - src.utils.log - INFO - Sequential Insertion in invoice tables begin - __SPLIT__ 2026-07-17 10:13:29,968 - [124754] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.AccountDiscountSetup: - __SPLIT__ 2026-07-17 10:13:29,968 - [124754] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-17 10:13:29,968 - [124754] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceCharges: 21 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:13:30,263 - [124754] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 21) into Billing.InvoiceCharges - __SPLIT__ 2026-07-17 10:13:31,351 - [124754] - src.utils.log - INFO - βœ… All 21 rows inserted successfully into Billing.InvoiceCharges in 1 batches - __SPLIT__ 2026-07-17 10:13:31,352 - [124754] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.DiscountApplied: - __SPLIT__ 2026-07-17 10:13:31,352 - [124754] - src.utils.log - INFO - Invoice Publish Done - __SPLIT__ 2026-07-17 10:13:31,352 - [124754] - src.utils.log - INFO - Updating Next GenerationDate - __SPLIT__ 2026-07-17 10:13:31,352 - [124754] - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, MAX(NextWorkOrderGenerationDate) AS MaxNextWorkOrderGeneration FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 124754 GROUP BY ServiceSetupId; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:13:31,619 - [124754] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 10:13:31,625 - [124754] - src.utils.log - INFO - πŸ”„ Updating next gen date sequentially: inside update_next_workorder_generation - __SPLIT__ 2026-07-17 10:13:31,759 - [124754] - src.utils.log - INFO - πŸ›  Creating temp table #tbl_54be26d796 - __SPLIT__ 2026-07-17 10:13:32,026 - [124754] - src.utils.log - INFO - πŸ“Œ Bulk inserting 1 rows into #tbl_54be26d796 - __SPLIT__ 2026-07-17 10:13:32,291 - [124754] - src.utils.log - INFO - πŸ” Running MERGE update to apply changes - __SPLIT__ 2026-07-17 10:13:32,446 - [124754] - src.utils.log - INFO - βœ” SQL reported affected rows: 1 - __SPLIT__ 2026-07-17 10:13:32,583 - [124754] - src.utils.log - INFO - πŸ” Verified successfully updated 1 rows via #tbl_54be26d796 - __SPLIT__ 2026-07-17 10:13:32,583 - [124754] - src.utils.log - INFO - πŸŽ‰ Successfully updated NextGenerationDate using temp table #tbl_54be26d796 - __SPLIT__ 2026-07-17 10:13:32,584 - [124754] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 124754 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:13:32,849 - [124754] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 10:13:32,850 - [124754] - src.utils.log - INFO - Sequential deletion from temp tables begin - __SPLIT__ 2026-07-17 10:13:32,850 - [124754] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId in (3681602, 3681603, 3681604, 3681605, 3681606, 3681607, 3681608, 3681609, 3681610, 3681611, 3681612, 3681613, 3681614, 3681615, 3681616, 3681617, 3681618, 3681619, 3681620, 3681621, 3681622) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:13:33,300 - [124754] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 10:13:33,300 - [124754] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId in (3681602, 3681603, 3681604, 3681605, 3681606, 3681607, 3681608, 3681609, 3681610, 3681611, 3681612, 3681613, 3681614, 3681615, 3681616, 3681617, 3681618, 3681619, 3681620, 3681621, 3681622) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:13:33,684 - [124754] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 10:13:33,684 - [124754] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId in (3681602, 3681603, 3681604, 3681605, 3681606, 3681607, 3681608, 3681609, 3681610, 3681611, 3681612, 3681613, 3681614, 3681615, 3681616, 3681617, 3681618, 3681619, 3681620, 3681621, 3681622) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:13:33,953 - [124754] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 10:13:33,953 - [124754] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId in (3681602, 3681603, 3681604, 3681605, 3681606, 3681607, 3681608, 3681609, 3681610, 3681611, 3681612, 3681613, 3681614, 3681615, 3681616, 3681617, 3681618, 3681619, 3681620, 3681621, 3681622) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:13:34,319 - [124754] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 10:13:34,320 - [124754] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId in (3681602, 3681603, 3681604, 3681605, 3681606, 3681607, 3681608, 3681609, 3681610, 3681611, 3681612, 3681613, 3681614, 3681615, 3681616, 3681617, 3681618, 3681619, 3681620, 3681621, 3681622) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:13:34,595 - [124754] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 10:13:34,595 - [124754] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (3681602, 3681603, 3681604, 3681605, 3681606, 3681607, 3681608, 3681609, 3681610, 3681611, 3681612, 3681613, 3681614, 3681615, 3681616, 3681617, 3681618, 3681619, 3681620, 3681621, 3681622) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:13:34,866 - [124754] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 10:13:34,867 - [124754] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId in (3681602, 3681603, 3681604, 3681605, 3681606, 3681607, 3681608, 3681609, 3681610, 3681611, 3681612, 3681613, 3681614, 3681615, 3681616, 3681617, 3681618, 3681619, 3681620, 3681621, 3681622) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:13:35,133 - [124754] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 10:13:35,133 - [124754] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (3681602, 3681603, 3681604, 3681605, 3681606, 3681607, 3681608, 3681609, 3681610, 3681611, 3681612, 3681613, 3681614, 3681615, 3681616, 3681617, 3681618, 3681619, 3681620, 3681621, 3681622) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:13:36,379 - [124754] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 10:13:36,380 - [124754] - src.utils.log - INFO - Work order published ids: (3681602, 3681603, 3681604, 3681605, 3681606, 3681607, 3681608, 3681609, 3681610, 3681611, 3681612, 3681613, 3681614, 3681615, 3681616, 3681617, 3681618, 3681619, 3681620, 3681621, 3681622) - __SPLIT__ 2026-07-17 10:13:36,380 - [124754] - src.utils.log - INFO - Time took to perform operation in publishing [124754]: 33.1 - __SPLIT__ 2026-07-17 10:13:36,380 - [124754] - src.utils.log - INFO - Publish Completed for GenerateWorkOrderHistoryId: [124754] - __SPLIT__ 2026-07-17 10:13:36,380 - [124754] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-07-17 06:13:36.380' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124754;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:13:36,648 - [124754] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-17 10:15:32,675 - 124755 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=124755 - __SPLIT__ 2026-07-17 10:15:32,676 - 124755 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 124755 - __SPLIT__ 2026-07-17 10:15:32,676 - 124755 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-17 10:15:32,676 - 124755 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:15:34,649 - 124755 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 10:15:34,650 - 124755 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-07-17 10:15:34,650 - 124755 - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-07-17 10:15:34,650 - 124755 - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-07-17 10:15:34,651 - 124755 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 124755;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:15:36,485 - 124755 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-17 10:15:36,485 - 124755 - 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 = 124755), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 124755), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 124755 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-07-17 10:15:37,437 - 124755 - src.utils.log - INFO - βœ… Fetched 110 rows - __SPLIT__ 2026-07-17 10:15:37,437 - 124755 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 124755;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:15:37,700 - 124755 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 10:15:37,704 - 124755 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-07-17 10:15:37,704 - 124755 - 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 (14080, 14465, 14466, 14725, 14728, 14473, 13962, 13965, 13971, 14615, 14616, 14489, 14620, 14626, 14627, 14632, 14505, 14633, 14634, 14637, 14509, 14638, 14640, 14641, 14513, 14643, 14775, 14653, 14654, 14655, 14657, 14532, 14534, 14662, 14663, 14537, 14795, 14667, 14669, 14668, 14671, 14031, 14037, 14682, 14562, 14819, 14052, 14693, 14053, 14059, 14571, 14447, 14448, 14070)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:15:38,279 - 124755 - src.utils.log - INFO - βœ… Fetched 1396 rows - __SPLIT__ 2026-07-17 10:15:38,280 - 124755 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-07-17 10:15:38,283 - 124755 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-07-17 10:15:38,284 - 124755 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId in (34818, 150535, 150538, 150539, 150031, 150032, 150547, 150549, 150554, 150556, 150557, 36892, 150559, 150560, 150561, 150562, 150573, 53806, 150579, 150580, 39481, 150592, 150595, 150598, 129618, 22612, 34905, 58460, 58462, 34910, 56414, 129633, 58472, 150649, 34428, 150664, 150665, 150666, 150671, 51356, 150173, 119474, 119476, 54453, 119480, 150205, 32958, 150207, 150214, 58567, 58571, 150222, 48334, 55510, 150252, 46320, 150264, 150265, 150266, 150269, 150289, 58649, 149787, 150303, 150334, 44538, 46434, 47462, 149870, 149874, 150392, 150394, 139663, 69019, 36264, 33709, 150446, 36270, 36271, 150450, 150455, 150456, 150457, 150458, 150459, 33723, 48573, 150465, 150468, 150471, 150472, 150473, 150474, 150475, 150480, 150482, 150483, 150484, 33746, 150486, 150492, 150495, 150498, 150501, 150502, 150507, 150003, 150516, 150522, 150524);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:15:38,558 - 124755 - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-07-17 10:15:38,559 - 124755 - 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-08-01 00:00:00' and ServiceDate <= '2026-08-31 00:00:00' and ServiceSetupId in (34818, 150535, 150538, 150539, 150031, 150032, 150547, 150549, 150554, 150556, 150557, 36892, 150559, 150560, 150561, 150562, 150573, 53806, 150579, 150580, 39481, 150592, 150595, 150598, 129618, 22612, 34905, 58460, 58462, 34910, 56414, 129633, 58472, 150649, 34428, 150664, 150665, 150666, 150671, 51356, 150173, 119474, 119476, 54453, 119480, 150205, 32958, 150207, 150214, 58567, 58571, 150222, 48334, 55510, 150252, 46320, 150264, 150265, 150266, 150269, 150289, 58649, 149787, 150303, 150334, 44538, 46434, 47462, 149870, 149874, 150392, 150394, 139663, 69019, 36264, 33709, 150446, 36270, 36271, 150450, 150455, 150456, 150457, 150458, 150459, 33723, 48573, 150465, 150468, 150471, 150472, 150473, 150474, 150475, 150480, 150482, 150483, 150484, 33746, 150486, 150492, 150495, 150498, 150501, 150502, 150507, 150003, 150516, 150522, 150524) and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:15:38,854 - 124755 - src.utils.log - INFO - βœ… Fetched 122 rows - __SPLIT__ 2026-07-17 10:15:39,716 - 124755 - src.utils.log - INFO - Generating work orders for setup: 150334 - __SPLIT__ 2026-07-17 10:15:39,717 - 124755 - src.utils.log - INFO - Error processing schedule ID 14626: cannot access local variable 'sorted_service_dates' where it is not associated with a value - __SPLIT__ 2026-07-17 10:15:39,718 - 124755 - src.utils.log - INFO - Generating work orders for setup: 149874 - __SPLIT__ 2026-07-17 10:15:39,719 - 124755 - src.utils.log - INFO - Error processing schedule ID 14615: cannot access local variable 'sorted_service_dates' where it is not associated with a value - __SPLIT__ 2026-07-17 10:15:39,719 - 124755 - src.utils.log - INFO - Generating work orders for setup: 150498 - __SPLIT__ 2026-07-17 10:15:39,728 - 124755 - src.utils.log - INFO - Generating work orders for setup: 149787 - __SPLIT__ 2026-07-17 10:15:39,736 - 124755 - src.utils.log - INFO - Generating work orders for setup: 150214 - __SPLIT__ 2026-07-17 10:15:39,744 - 124755 - src.utils.log - INFO - Generating work orders for setup: 150205 - __SPLIT__ 2026-07-17 10:15:39,753 - 124755 - src.utils.log - INFO - Generating work orders for setup: 150222 - __SPLIT__ 2026-07-17 10:15:39,761 - 124755 - src.utils.log - INFO - Generating work orders for setup: 150265 - __SPLIT__ 2026-07-17 10:15:39,769 - 124755 - src.utils.log - INFO - Generating work orders for setup: 150266 - __SPLIT__ 2026-07-17 10:15:39,777 - 124755 - src.utils.log - INFO - Generating work orders for setup: 150303 - __SPLIT__ 2026-07-17 10:15:39,816 - 124755 - src.utils.log - INFO - Generating work orders for setup: 150556 - __SPLIT__ 2026-07-17 10:15:39,825 - 124755 - src.utils.log - INFO - Generating work orders for setup: 150392 - __SPLIT__ 2026-07-17 10:15:39,833 - 124755 - src.utils.log - INFO - Generating work orders for setup: 150394 - __SPLIT__ 2026-07-17 10:15:39,842 - 124755 - src.utils.log - INFO - Generating work orders for setup: 150446 - __SPLIT__ 2026-07-17 10:15:39,851 - 124755 - src.utils.log - INFO - Generating work orders for setup: 150450 - __SPLIT__ 2026-07-17 10:15:39,860 - 124755 - src.utils.log - INFO - Generating work orders for setup: 150455 - __SPLIT__ 2026-07-17 10:15:39,869 - 124755 - src.utils.log - INFO - Generating work orders for setup: 150456 - __SPLIT__ 2026-07-17 10:15:39,877 - 124755 - src.utils.log - INFO - Generating work orders for setup: 150457 - __SPLIT__ 2026-07-17 10:15:39,886 - 124755 - src.utils.log - INFO - Generating work orders for setup: 150458 - __SPLIT__ 2026-07-17 10:15:39,894 - 124755 - src.utils.log - INFO - Generating work orders for setup: 150459 - __SPLIT__ 2026-07-17 10:15:39,903 - 124755 - src.utils.log - INFO - Generating work orders for setup: 150465 - __SPLIT__ 2026-07-17 10:15:39,911 - 124755 - src.utils.log - INFO - Generating work orders for setup: 150468 - __SPLIT__ 2026-07-17 10:15:39,920 - 124755 - src.utils.log - INFO - Generating work orders for setup: 150472 - __SPLIT__ 2026-07-17 10:15:39,928 - 124755 - src.utils.log - INFO - Generating work orders for setup: 150473 - __SPLIT__ 2026-07-17 10:15:39,937 - 124755 - src.utils.log - INFO - Generating work orders for setup: 150474 - __SPLIT__ 2026-07-17 10:15:39,946 - 124755 - src.utils.log - INFO - Generating work orders for setup: 150482 - __SPLIT__ 2026-07-17 10:15:39,955 - 124755 - src.utils.log - INFO - Generating work orders for setup: 150495 - __SPLIT__ 2026-07-17 10:15:39,963 - 124755 - src.utils.log - INFO - Generating work orders for setup: 150475 - __SPLIT__ 2026-07-17 10:15:39,972 - 124755 - src.utils.log - INFO - Generating work orders for setup: 150480 - __SPLIT__ 2026-07-17 10:15:40,001 - 124755 - src.utils.log - INFO - Generating work orders for setup: 150483 - __SPLIT__ 2026-07-17 10:15:40,011 - 124755 - src.utils.log - INFO - Generating work orders for setup: 150484 - __SPLIT__ 2026-07-17 10:15:40,020 - 124755 - src.utils.log - INFO - Generating work orders for setup: 150486 - __SPLIT__ 2026-07-17 10:15:40,028 - 124755 - src.utils.log - INFO - Generating work orders for setup: 150492 - __SPLIT__ 2026-07-17 10:15:40,037 - 124755 - src.utils.log - INFO - Generating work orders for setup: 150501 - __SPLIT__ 2026-07-17 10:15:40,047 - 124755 - src.utils.log - INFO - Generating work orders for setup: 150502 - __SPLIT__ 2026-07-17 10:15:40,063 - 124755 - src.utils.log - INFO - Generating work orders for setup: 150507 - __SPLIT__ 2026-07-17 10:15:40,072 - 124755 - src.utils.log - INFO - Generating work orders for setup: 150516 - __SPLIT__ 2026-07-17 10:15:40,081 - 124755 - src.utils.log - INFO - Generating work orders for setup: 150522 - __SPLIT__ 2026-07-17 10:15:40,089 - 124755 - src.utils.log - INFO - Generating work orders for setup: 150524 - __SPLIT__ 2026-07-17 10:15:40,105 - 124755 - src.utils.log - INFO - Generating work orders for setup: 150535 - __SPLIT__ 2026-07-17 10:15:40,115 - 124755 - src.utils.log - INFO - Generating work orders for setup: 150538 - __SPLIT__ 2026-07-17 10:15:40,123 - 124755 - src.utils.log - INFO - Generating work orders for setup: 150539 - __SPLIT__ 2026-07-17 10:15:40,132 - 124755 - src.utils.log - INFO - Generating work orders for setup: 150547 - __SPLIT__ 2026-07-17 10:15:40,140 - 124755 - src.utils.log - INFO - Generating work orders for setup: 150549 - __SPLIT__ 2026-07-17 10:15:40,150 - 124755 - src.utils.log - INFO - Generating work orders for setup: 150554 - __SPLIT__ 2026-07-17 10:15:40,159 - 124755 - src.utils.log - INFO - Generating work orders for setup: 150557 - __SPLIT__ 2026-07-17 10:15:40,168 - 124755 - src.utils.log - INFO - Generating work orders for setup: 150559 - __SPLIT__ 2026-07-17 10:15:40,176 - 124755 - src.utils.log - INFO - Generating work orders for setup: 150560 - __SPLIT__ 2026-07-17 10:15:40,185 - 124755 - src.utils.log - INFO - Generating work orders for setup: 150561 - __SPLIT__ 2026-07-17 10:15:40,194 - 124755 - src.utils.log - INFO - Generating work orders for setup: 150562 - __SPLIT__ 2026-07-17 10:15:40,202 - 124755 - src.utils.log - INFO - Generating work orders for setup: 150598 - __SPLIT__ 2026-07-17 10:15:40,358 - 124755 - src.utils.log - INFO - Generating work orders for setup: 150573 - __SPLIT__ 2026-07-17 10:15:40,367 - 124755 - src.utils.log - INFO - Generating work orders for setup: 150579 - __SPLIT__ 2026-07-17 10:15:40,377 - 124755 - src.utils.log - INFO - Generating work orders for setup: 150580 - __SPLIT__ 2026-07-17 10:15:40,386 - 124755 - src.utils.log - INFO - Generating work orders for setup: 150595 - __SPLIT__ 2026-07-17 10:15:40,395 - 124755 - src.utils.log - INFO - Generating work orders for setup: 150649 - __SPLIT__ 2026-07-17 10:15:40,412 - 124755 - src.utils.log - INFO - Generating work orders for setup: 150664 - __SPLIT__ 2026-07-17 10:15:40,421 - 124755 - src.utils.log - INFO - Generating work orders for setup: 150665 - __SPLIT__ 2026-07-17 10:15:40,430 - 124755 - src.utils.log - INFO - Generating work orders for setup: 150666 - __SPLIT__ 2026-07-17 10:15:40,439 - 124755 - src.utils.log - INFO - Generating work orders for setup: 150671 - __SPLIT__ 2026-07-17 10:15:40,449 - 124755 - src.utils.log - INFO - Generating work orders for setup: 33709 - __SPLIT__ 2026-07-17 10:15:40,459 - 124755 - src.utils.log - INFO - Generating work orders for setup: 33723 - __SPLIT__ 2026-07-17 10:15:40,468 - 124755 - src.utils.log - INFO - Generating work orders for setup: 33746 - __SPLIT__ 2026-07-17 10:15:40,477 - 124755 - src.utils.log - INFO - Generating work orders for setup: 34428 - __SPLIT__ 2026-07-17 10:15:40,485 - 124755 - src.utils.log - INFO - Generating work orders for setup: 34818 - __SPLIT__ 2026-07-17 10:15:40,494 - 124755 - src.utils.log - INFO - Generating work orders for setup: 34905 - __SPLIT__ 2026-07-17 10:15:40,503 - 124755 - src.utils.log - INFO - Generating work orders for setup: 36264 - __SPLIT__ 2026-07-17 10:15:40,512 - 124755 - src.utils.log - INFO - Generating work orders for setup: 36270 - __SPLIT__ 2026-07-17 10:15:40,521 - 124755 - src.utils.log - INFO - Generating work orders for setup: 36271 - __SPLIT__ 2026-07-17 10:15:40,530 - 124755 - src.utils.log - INFO - Generating work orders for setup: 150592 - __SPLIT__ 2026-07-17 10:15:40,539 - 124755 - src.utils.log - INFO - Generating work orders for setup: 56414 - __SPLIT__ 2026-07-17 10:15:40,548 - 124755 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 11435.0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:15:40,811 - 124755 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 10:15:40,820 - 124755 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId in (11426.0, 11427.0, 11428.0, 11429.0, 1127.0, 1130.0, 1131.0, 11436.0, 1133.0, 1132.0, 1035.0, 11437.0, 11438.0, -1.0);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:15:41,084 - 124755 - src.utils.log - INFO - βœ… Fetched 13 rows - __SPLIT__ 2026-07-17 10:15:41,146 - 124755 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-07-17 10:15:41,164 - 124755 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=133 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:15:41,426 - 124755 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 10:15:41,428 - 124755 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-07-17 10:15:41,429 - 124755 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-07-17 10:15:41,429 - 124755 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (34818, 150535, 150538, 150539, 150031, 150032, 150547, 150549, 150554, 150556, 150557, 36892, 150559, 150560, 150561, 150562, 150573, 53806, 150579, 150580, 39481, 150592, 150595, 150598, 129618, 22612, 34905, 58460, 58462, 34910, 56414, 129633, 58472, 150649, 34428, 150664, 150665, 150666, 150671, 51356, 150173, 119474, 119476, 54453, 119480, 150205, 32958, 150207, 150214, 58567, 58571, 150222, 48334, 55510, 150252, 46320, 150264, 150265, 150266, 150269, 150289, 58649, 149787, 150303, 150334, 44538, 46434, 47462, 149870, 149874, 150392, 150394, 139663, 69019, 36264, 33709, 150446, 36270, 36271, 150450, 150455, 150456, 150457, 150458, 150459, 33723, 48573, 150465, 150468, 150471, 150472, 150473, 150474, 150475, 150480, 150482, 150483, 150484, 33746, 150486, 150492, 150495, 150498, 150501, 150502, 150507, 150003, 150516, 150522, 150524) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:15:41,788 - 124755 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 10:15:41,789 - 124755 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (34818, 150535, 150538, 150539, 150031, 150032, 150547, 150549, 150554, 150556, 150557, 36892, 150559, 150560, 150561, 150562, 150573, 53806, 150579, 150580, 39481, 150592, 150595, 150598, 129618, 22612, 34905, 58460, 58462, 34910, 56414, 129633, 58472, 150649, 34428, 150664, 150665, 150666, 150671, 51356, 150173, 119474, 119476, 54453, 119480, 150205, 32958, 150207, 150214, 58567, 58571, 150222, 48334, 55510, 150252, 46320, 150264, 150265, 150266, 150269, 150289, 58649, 149787, 150303, 150334, 44538, 46434, 47462, 149870, 149874, 150392, 150394, 139663, 69019, 36264, 33709, 150446, 36270, 36271, 150450, 150455, 150456, 150457, 150458, 150459, 33723, 48573, 150465, 150468, 150471, 150472, 150473, 150474, 150475, 150480, 150482, 150483, 150484, 33746, 150486, 150492, 150495, 150498, 150501, 150502, 150507, 150003, 150516, 150522, 150524) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:15:42,135 - 124755 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 10:15:42,135 - 124755 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (34818, 150535, 150538, 150539, 150031, 150032, 150547, 150549, 150554, 150556, 150557, 36892, 150559, 150560, 150561, 150562, 150573, 53806, 150579, 150580, 39481, 150592, 150595, 150598, 129618, 22612, 34905, 58460, 58462, 34910, 56414, 129633, 58472, 150649, 34428, 150664, 150665, 150666, 150671, 51356, 150173, 119474, 119476, 54453, 119480, 150205, 32958, 150207, 150214, 58567, 58571, 150222, 48334, 55510, 150252, 46320, 150264, 150265, 150266, 150269, 150289, 58649, 149787, 150303, 150334, 44538, 46434, 47462, 149870, 149874, 150392, 150394, 139663, 69019, 36264, 33709, 150446, 36270, 36271, 150450, 150455, 150456, 150457, 150458, 150459, 33723, 48573, 150465, 150468, 150471, 150472, 150473, 150474, 150475, 150480, 150482, 150483, 150484, 33746, 150486, 150492, 150495, 150498, 150501, 150502, 150507, 150003, 150516, 150522, 150524) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:15:42,415 - 124755 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 10:15:42,415 - 124755 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (34818, 150535, 150538, 150539, 150031, 150032, 150547, 150549, 150554, 150556, 150557, 36892, 150559, 150560, 150561, 150562, 150573, 53806, 150579, 150580, 39481, 150592, 150595, 150598, 129618, 22612, 34905, 58460, 58462, 34910, 56414, 129633, 58472, 150649, 34428, 150664, 150665, 150666, 150671, 51356, 150173, 119474, 119476, 54453, 119480, 150205, 32958, 150207, 150214, 58567, 58571, 150222, 48334, 55510, 150252, 46320, 150264, 150265, 150266, 150269, 150289, 58649, 149787, 150303, 150334, 44538, 46434, 47462, 149870, 149874, 150392, 150394, 139663, 69019, 36264, 33709, 150446, 36270, 36271, 150450, 150455, 150456, 150457, 150458, 150459, 33723, 48573, 150465, 150468, 150471, 150472, 150473, 150474, 150475, 150480, 150482, 150483, 150484, 33746, 150486, 150492, 150495, 150498, 150501, 150502, 150507, 150003, 150516, 150522, 150524) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:15:42,766 - 124755 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 10:15:42,766 - 124755 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (34818, 150535, 150538, 150539, 150031, 150032, 150547, 150549, 150554, 150556, 150557, 36892, 150559, 150560, 150561, 150562, 150573, 53806, 150579, 150580, 39481, 150592, 150595, 150598, 129618, 22612, 34905, 58460, 58462, 34910, 56414, 129633, 58472, 150649, 34428, 150664, 150665, 150666, 150671, 51356, 150173, 119474, 119476, 54453, 119480, 150205, 32958, 150207, 150214, 58567, 58571, 150222, 48334, 55510, 150252, 46320, 150264, 150265, 150266, 150269, 150289, 58649, 149787, 150303, 150334, 44538, 46434, 47462, 149870, 149874, 150392, 150394, 139663, 69019, 36264, 33709, 150446, 36270, 36271, 150450, 150455, 150456, 150457, 150458, 150459, 33723, 48573, 150465, 150468, 150471, 150472, 150473, 150474, 150475, 150480, 150482, 150483, 150484, 33746, 150486, 150492, 150495, 150498, 150501, 150502, 150507, 150003, 150516, 150522, 150524) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:15:43,099 - 124755 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 10:15:43,099 - 124755 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (34818, 150535, 150538, 150539, 150031, 150032, 150547, 150549, 150554, 150556, 150557, 36892, 150559, 150560, 150561, 150562, 150573, 53806, 150579, 150580, 39481, 150592, 150595, 150598, 129618, 22612, 34905, 58460, 58462, 34910, 56414, 129633, 58472, 150649, 34428, 150664, 150665, 150666, 150671, 51356, 150173, 119474, 119476, 54453, 119480, 150205, 32958, 150207, 150214, 58567, 58571, 150222, 48334, 55510, 150252, 46320, 150264, 150265, 150266, 150269, 150289, 58649, 149787, 150303, 150334, 44538, 46434, 47462, 149870, 149874, 150392, 150394, 139663, 69019, 36264, 33709, 150446, 36270, 36271, 150450, 150455, 150456, 150457, 150458, 150459, 33723, 48573, 150465, 150468, 150471, 150472, 150473, 150474, 150475, 150480, 150482, 150483, 150484, 33746, 150486, 150492, 150495, 150498, 150501, 150502, 150507, 150003, 150516, 150522, 150524) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:15:43,389 - 124755 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 10:15:43,389 - 124755 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (34818, 150535, 150538, 150539, 150031, 150032, 150547, 150549, 150554, 150556, 150557, 36892, 150559, 150560, 150561, 150562, 150573, 53806, 150579, 150580, 39481, 150592, 150595, 150598, 129618, 22612, 34905, 58460, 58462, 34910, 56414, 129633, 58472, 150649, 34428, 150664, 150665, 150666, 150671, 51356, 150173, 119474, 119476, 54453, 119480, 150205, 32958, 150207, 150214, 58567, 58571, 150222, 48334, 55510, 150252, 46320, 150264, 150265, 150266, 150269, 150289, 58649, 149787, 150303, 150334, 44538, 46434, 47462, 149870, 149874, 150392, 150394, 139663, 69019, 36264, 33709, 150446, 36270, 36271, 150450, 150455, 150456, 150457, 150458, 150459, 33723, 48573, 150465, 150468, 150471, 150472, 150473, 150474, 150475, 150480, 150482, 150483, 150484, 33746, 150486, 150492, 150495, 150498, 150501, 150502, 150507, 150003, 150516, 150522, 150524) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:15:43,665 - 124755 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 10:15:43,665 - 124755 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (34818, 150535, 150538, 150539, 150031, 150032, 150547, 150549, 150554, 150556, 150557, 36892, 150559, 150560, 150561, 150562, 150573, 53806, 150579, 150580, 39481, 150592, 150595, 150598, 129618, 22612, 34905, 58460, 58462, 34910, 56414, 129633, 58472, 150649, 34428, 150664, 150665, 150666, 150671, 51356, 150173, 119474, 119476, 54453, 119480, 150205, 32958, 150207, 150214, 58567, 58571, 150222, 48334, 55510, 150252, 46320, 150264, 150265, 150266, 150269, 150289, 58649, 149787, 150303, 150334, 44538, 46434, 47462, 149870, 149874, 150392, 150394, 139663, 69019, 36264, 33709, 150446, 36270, 36271, 150450, 150455, 150456, 150457, 150458, 150459, 33723, 48573, 150465, 150468, 150471, 150472, 150473, 150474, 150475, 150480, 150482, 150483, 150484, 33746, 150486, 150492, 150495, 150498, 150501, 150502, 150507, 150003, 150516, 150522, 150524) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:15:45,091 - 124755 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 10:15:45,091 - 124755 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-17 10:15:45,091 - 124755 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 78 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:15:45,414 - 124755 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 78) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-07-17 10:15:49,237 - 124755 - src.utils.log - INFO - βœ… All 78 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-07-17 10:15:49,238 - 124755 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 78 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-07-16 14:51:40.585' and ServiceSetupId in (34818, 150535, 150538, 150539, 150031, 150032, 150547, 150549, 150554, 150556, 150557, 36892, 150559, 150560, 150561, 150562, 150573, 53806, 150579, 150580, 39481, 150592, 150595, 150598, 129618, 22612, 34905, 58460, 58462, 34910, 56414, 129633, 58472, 150649, 34428, 150664, 150665, 150666, 150671, 51356, 150173, 119474, 119476, 54453, 119480, 150205, 32958, 150207, 150214, 58567, 58571, 150222, 48334, 55510, 150252, 46320, 150264, 150265, 150266, 150269, 150289, 58649, 149787, 150303, 150334, 44538, 46434, 47462, 149870, 149874, 150392, 150394, 139663, 69019, 36264, 33709, 150446, 36270, 36271, 150450, 150455, 150456, 150457, 150458, 150459, 33723, 48573, 150465, 150468, 150471, 150472, 150473, 150474, 150475, 150480, 150482, 150483, 150484, 33746, 150486, 150492, 150495, 150498, 150501, 150502, 150507, 150003, 150516, 150522, 150524)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:15:49,562 - 124755 - src.utils.log - INFO - βœ… Fetched 78 rows - __SPLIT__ 2026-07-17 10:15:49,563 - 124755 - src.utils.log - INFO - Id's of work order inserted to DB: [3681623 3681624 3681625 3681626 3681627 3681628 3681629 3681630 3681631 3681632 3681633 3681634 3681635 3681636 3681637 3681638 3681639 3681640 3681641 3681642 3681643 3681644 3681645 3681646 3681647 3681648 3681649 3681650 3681651 3681652 3681653 3681654 3681655 3681656 3681657 3681658 3681659 3681660 3681661 3681662 3681663 3681664 3681665 3681666 3681667 3681668 3681669 3681670 3681671 3681672 3681673 3681674 3681675 3681676 3681677 3681678 3681679 3681680 3681681 3681682 3681683 3681684 3681685 3681686 3681687 3681688 3681689 3681690 3681691 3681692 3681693 3681694 3681695 3681696 3681697 3681698 3681699 3681700] - __SPLIT__ 2026-07-17 10:15:49,563 - 124755 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId in (34818, 150535, 150538, 150539, 150031, 150032, 150547, 150549, 150554, 150556, 150557, 36892, 150559, 150560, 150561, 150562, 150573, 53806, 150579, 150580, 39481, 150592, 150595, 150598, 129618, 22612, 34905, 58460, 58462, 34910, 56414, 129633, 58472, 150649, 34428, 150664, 150665, 150666, 150671, 51356, 150173, 119474, 119476, 54453, 119480, 150205, 32958, 150207, 150214, 58567, 58571, 150222, 48334, 55510, 150252, 46320, 150264, 150265, 150266, 150269, 150289, 58649, 149787, 150303, 150334, 44538, 46434, 47462, 149870, 149874, 150392, 150394, 139663, 69019, 36264, 33709, 150446, 36270, 36271, 150450, 150455, 150456, 150457, 150458, 150459, 33723, 48573, 150465, 150468, 150471, 150472, 150473, 150474, 150475, 150480, 150482, 150483, 150484, 33746, 150486, 150492, 150495, 150498, 150501, 150502, 150507, 150003, 150516, 150522, 150524);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:15:49,829 - 124755 - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-07-17 10:15:49,829 - 124755 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-07-17 10:15:49,830 - 124755 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId in (150535, 150664, 150665, 150538, 150539, 150666, 150671, 150547, 150549, 150554, 150556, 150557, 150559, 150560, 150561, 150562, 150573, 150446, 150450, 150579, 150580, 150455, 150456, 150457, 150458, 150459, 150394, 150592, 150465, 150595, 150468, 150598, 150472, 150473, 150474, 150475, 150480, 150482, 150483, 150484, 150486, 150492, 150495, 150498, 150501, 150502, 150507, 150516, 150392, 150649, 150522, 150524)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:15:50,104 - 124755 - src.utils.log - INFO - βœ… Fetched 89 rows - __SPLIT__ 2026-07-17 10:15:50,104 - 124755 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId in (150535, 150664, 150665, 150538, 150539, 150666, 150671, 150547, 150549, 150554, 150556, 150557, 150559, 150560, 150561, 150562, 150573, 150446, 150450, 150579, 150580, 150455, 150456, 150457, 150458, 150459, 150394, 150592, 150465, 150595, 150468, 150598, 150472, 150473, 150474, 150475, 150480, 150482, 150483, 150484, 150486, 150492, 150495, 150498, 150501, 150502, 150507, 150516, 150392, 150649, 150522, 150524)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:15:50,374 - 124755 - src.utils.log - INFO - βœ… Fetched 31 rows - __SPLIT__ 2026-07-17 10:15:50,382 - 124755 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId in (150535, 150664, 150665, 150538, 150539, 150666, 150671, 150547, 150549, 150554, 150556, 150557, 150559, 150560, 150561, 150562, 150573, 150446, 150450, 150579, 150580, 150455, 150456, 150457, 150458, 150459, 150394, 150592, 150465, 150595, 150468, 150598, 150472, 150473, 150474, 150475, 150480, 150482, 150483, 150484, 150486, 150492, 150495, 150498, 150501, 150502, 150507, 150516, 150392, 150649, 150522, 150524)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:15:50,689 - 124755 - src.utils.log - INFO - βœ… Fetched 89 rows - __SPLIT__ 2026-07-17 10:15:50,690 - 124755 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId in (150535, 150664, 150665, 150538, 150539, 150666, 150671, 150547, 150549, 150554, 150556, 150557, 150559, 150560, 150561, 150562, 150573, 150446, 150450, 150579, 150580, 150455, 150456, 150457, 150458, 150459, 150394, 150592, 150465, 150595, 150468, 150598, 150472, 150473, 150474, 150475, 150480, 150482, 150483, 150484, 150486, 150492, 150495, 150498, 150501, 150502, 150507, 150516, 150392, 150649, 150522, 150524)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:15:50,960 - 124755 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 10:15:50,962 - 124755 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId in (150535, 150664, 150665, 150538, 150539, 150666, 150671, 150547, 150549, 150554, 150556, 150557, 150559, 150560, 150561, 150562, 150573, 150446, 150450, 150579, 150580, 150455, 150456, 150457, 150458, 150459, 150394, 150592, 150465, 150595, 150468, 150598, 150472, 150473, 150474, 150475, 150480, 150482, 150483, 150484, 150486, 150492, 150495, 150498, 150501, 150502, 150507, 150516, 150392, 150649, 150522, 150524)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:15:51,229 - 124755 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 10:15:51,230 - 124755 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId in (150535, 150664, 150665, 150538, 150539, 150666, 150671, 150547, 150549, 150554, 150556, 150557, 150559, 150560, 150561, 150562, 150573, 150446, 150450, 150579, 150580, 150455, 150456, 150457, 150458, 150459, 150394, 150592, 150465, 150595, 150468, 150598, 150472, 150473, 150474, 150475, 150480, 150482, 150483, 150484, 150486, 150492, 150495, 150498, 150501, 150502, 150507, 150516, 150392, 150649, 150522, 150524);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:15:51,498 - 124755 - src.utils.log - INFO - βœ… Fetched 49 rows - __SPLIT__ 2026-07-17 10:15:51,500 - 124755 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId in (150535, 150664, 150665, 150538, 150539, 150666, 150671, 150547, 150549, 150554, 150556, 150557, 150559, 150560, 150561, 150562, 150573, 150446, 150450, 150579, 150580, 150455, 150456, 150457, 150458, 150459, 150394, 150592, 150465, 150595, 150468, 150598, 150472, 150473, 150474, 150475, 150480, 150482, 150483, 150484, 150486, 150492, 150495, 150498, 150501, 150502, 150507, 150516, 150392, 150649, 150522, 150524);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:15:51,767 - 124755 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-17 10:15:51,768 - 124755 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId in (150535, 150664, 150665, 150538, 150539, 150666, 150671, 150547, 150549, 150554, 150556, 150557, 150559, 150560, 150561, 150562, 150573, 150446, 150450, 150579, 150580, 150455, 150456, 150457, 150458, 150459, 150394, 150592, 150465, 150595, 150468, 150598, 150472, 150473, 150474, 150475, 150480, 150482, 150483, 150484, 150486, 150492, 150495, 150498, 150501, 150502, 150507, 150516, 150392, 150649, 150522, 150524);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:15:52,068 - 124755 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 10:15:52,068 - 124755 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId in (150535, 150664, 150665, 150538, 150539, 150666, 150671, 150547, 150549, 150554, 150556, 150557, 150559, 150560, 150561, 150562, 150573, 150446, 150450, 150579, 150580, 150455, 150456, 150457, 150458, 150459, 150394, 150592, 150465, 150595, 150468, 150598, 150472, 150473, 150474, 150475, 150480, 150482, 150483, 150484, 150486, 150492, 150495, 150498, 150501, 150502, 150507, 150516, 150392, 150649, 150522, 150524);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:15:52,336 - 124755 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 10:15:52,363 - 124755 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-07-17 10:15:52,364 - 124755 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-07-17 10:15:52,364 - 124755 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-07-17 10:15:52,364 - 124755 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.CommunicationPreferencesServiceReportNotification: - __SPLIT__ 2026-07-17 10:15:52,364 - 124755 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-07-17 10:15:52,364 - 124755 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-17 10:15:52,364 - 124755 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ('3681675', '3681698') ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:15:52,628 - 124755 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-17 10:15:52,629 - 124755 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.SetupAutoGenerationSourceMapping: 0 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:15:52,914 - 124755 - src.utils.log - INFO - βœ… All 0 rows inserted successfully into ServiceCore.SetupAutoGenerationSourceMapping in 0 batches - __SPLIT__ 2026-07-17 10:15:52,915 - 124755 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-07-17 10:15:52,915 - 124755 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-17 10:15:52,915 - 124755 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3681667, 3681672, 3681675, 3681679, 3681682, 3681683, 3681684, 3681685, 3681687, 3681688, 3681694, 3681696, 3681625, 3681632, 3681637, 3681643, 3681646, 3681657, 3681658, 3681659, 3681662) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:15:53,179 - 124755 - src.utils.log - INFO - βœ… Fetched 21 rows - __SPLIT__ 2026-07-17 10:15:53,180 - 124755 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationAppliedDiscount: 49 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:15:53,470 - 124755 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 49) into ServiceCore.WorkOrderAutoGenerationAppliedDiscount - __SPLIT__ 2026-07-17 10:15:54,440 - 124755 - src.utils.log - INFO - βœ… All 49 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationAppliedDiscount in 1 batches - __SPLIT__ 2026-07-17 10:15:54,441 - 124755 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-07-17 10:15:54,441 - 124755 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-17 10:15:54,441 - 124755 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3681685.0, 3681686.0) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:15:54,705 - 124755 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-17 10:15:54,706 - 124755 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.SubWorkOrderAutoGeneration: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:15:55,002 - 124755 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.SubWorkOrderAutoGeneration - __SPLIT__ 2026-07-17 10:15:56,070 - 124755 - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.SubWorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-07-17 10:15:56,071 - 124755 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-07-17 10:15:56,071 - 124755 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: - __SPLIT__ 2026-07-17 10:15:56,071 - 124755 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-07-17 10:15:56,071 - 124755 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: - __SPLIT__ 2026-07-17 10:15:56,072 - 124755 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-07-17 10:15:56,072 - 124755 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-17 10:15:56,072 - 124755 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3681664, 3681665, 3681666, 3681667, 3681668, 3681669, 3681670, 3681671, 3681673, 3681674, 3681675, 3681676, 3681677, 3681678, 3681679, 3681680, 3681681, 3681682, 3681683, 3681684, 3681687, 3681688, 3681689, 3681690, 3681691, 3681692, 3681693, 3681694, 3681695, 3681696, 3681697, 3681698, 3681699, 3681700, 3681623, 3681624, 3681625, 3681626, 3681627, 3681628, 3681629, 3681630, 3681631, 3681632, 3681633, 3681634, 3681635, 3681636, 3681637, 3681638, 3681639, 3681640, 3681641, 3681642, 3681643, 3681644, 3681645, 3681646, 3681647, 3681648, 3681649, 3681650, 3681651, 3681652, 3681653, 3681654, 3681655, 3681656, 3681657, 3681658, 3681659, 3681660, 3681661, 3681662, 3681663) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:15:56,338 - 124755 - src.utils.log - INFO - βœ… Fetched 75 rows - __SPLIT__ 2026-07-17 10:15:56,339 - 124755 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationCrews: 86 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:15:56,606 - 124755 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 86) into ServiceCore.WorkOrderAutoGenerationCrews - __SPLIT__ 2026-07-17 10:15:57,721 - 124755 - src.utils.log - INFO - βœ… All 86 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationCrews in 1 batches - __SPLIT__ 2026-07-17 10:15:57,722 - 124755 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-07-17 10:15:57,722 - 124755 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-17 10:15:57,722 - 124755 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 3681623 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:15:57,983 - 124755 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 10:15:57,984 - 124755 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:15:58,254 - 124755 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-07-17 10:15:59,185 - 124755 - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-07-17 10:15:59,186 - 124755 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-07-17 10:15:59,186 - 124755 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-17 10:15:59,186 - 124755 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3681624, 3681625, 3681626, 3681627, 3681628, 3681629, 3681630, 3681631, 3681632, 3681633, 3681634, 3681635, 3681636, 3681637, 3681638, 3681639, 3681640, 3681641, 3681642, 3681643, 3681644, 3681645, 3681646, 3681647, 3681648, 3681649, 3681650, 3681651, 3681652, 3681653, 3681654, 3681655, 3681656, 3681657, 3681658, 3681659, 3681660, 3681661, 3681662, 3681663, 3681664, 3681665, 3681666, 3681667, 3681668, 3681669, 3681670, 3681671, 3681672, 3681673, 3681674, 3681675, 3681676, 3681677, 3681678, 3681679, 3681680, 3681681, 3681682, 3681683, 3681684, 3681685, 3681686, 3681687, 3681688, 3681689, 3681690, 3681691, 3681692, 3681693, 3681694, 3681695, 3681696, 3681697, 3681698, 3681699, 3681700) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:15:59,454 - 124755 - src.utils.log - INFO - βœ… Fetched 77 rows - __SPLIT__ 2026-07-17 10:15:59,455 - 124755 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 120 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:15:59,726 - 124755 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 120) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-07-17 10:16:01,252 - 124755 - src.utils.log - INFO - βœ… All 120 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-07-17 10:16:01,252 - 124755 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-07-17 10:16:01,252 - 124755 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 124755;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:16:01,516 - 124755 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-17 10:16:01,516 - 124755 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-07-17 10:16:01,516 - 124755 - src.utils.log - INFO - Time took to perform operation: 28.84 - __SPLIT__ 2026-07-17 10:16:24,758 - [124755] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[] user_id=43135 company_id=133 project_id=[124755] publish_all=True - __SPLIT__ 2026-07-17 10:16:24,759 - [124755] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[] user_id=43135 company_id=133 project_id=[124755] publish_all=True - __SPLIT__ 2026-07-17 10:16:24,759 - [124755] - src.utils.log - INFO - Sequential Work order publish in progress for GenerateWorkOrderHistoryId: [124755] - __SPLIT__ 2026-07-17 10:16:24,760 - [124755] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-17 10:16:24,760 - [124755] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:16:26,833 - [124755] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 10:16:26,834 - [124755] - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-07-17 10:16:26,834 - [124755] - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-07-17 10:16:26,835 - [124755] - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-07-17 10:16:26,835 - [124755] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'InProgress' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124755;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:16:28,691 - [124755] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-17 10:16:28,691 - [124755] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGeneration woag WHERE woag.GenerateWorkOrderHistoryId = 124755... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:16:29,144 - [124755] - src.utils.log - INFO - βœ… Fetched 78 rows - __SPLIT__ 2026-07-17 10:16:29,144 - [124755] - src.utils.log - INFO - Inside get_work_order_table - __SPLIT__ 2026-07-17 10:16:29,144 - [124755] - 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 (150502, 150598, 150480, 150579, 150573, 150482, 150554, 150556, 150557, 150580, 150475, 150559, 150561, 150560, 150549, 150457, 150562, 150547, 150524, 150671, 150649, 150592, 150456, 150458, 150664, 150450, 150516, 150446, 150522, 150474, 150483, 150539, 150501, 150665, 150473, 150538, 150666, 150486, 150484, 150472, 150495, 150394, 150455, 150459, 150392, 150535, 150465, 150468, 150492, 150498, 150595, 150507) AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:16:29,425 - [124755] - src.utils.log - INFO - βœ… Fetched 52 rows - __SPLIT__ 2026-07-17 10:16:29,425 - [124755] - 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 (150502, 150598, 150480, 150579, 150573, 150482, 150554, 150556, 150557, 150580, 150475, 150559, 150561, 150560, 150549, 150457, 150562, 150547, 150524, 150671, 150649, 150592, 150456, 150458, 150664, 150450, 150516, 150446, 150522, 150474, 150483, 150539, 150501, 150665, 150473, 150538, 150666, 150486, 150484, 150472, 150495, 150394, 150455, 150459, 150392, 150535, 150465, 150468, 150492, 150498, 150595, 150507) AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:16:29,703 - [124755] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 10:16:29,704 - [124755] - 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 (150502, 150598, 150480, 150579, 150573, 150482, 150554, 150556, 150557, 150580, 150475, 150559, 150561, 150560, 150549, 150457, 150562, 150547, 150524, 150671, 150649, 150592, 150456, 150458, 150664, 150450, 150516, 150446, 150522, 150474, 150483, 150539, 150501, 150665, 150473, 150538, 150666, 150486, 150484, 150472, 150495, 150394, 150455, 150459, 150392, 150535, 150465, 150468, 150492, 150498, 150595, 150507) AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:16:29,985 - [124755] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 10:16:29,994 - [124755] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder,BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:16:30,259 - [124755] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 10:16:30,259 - [124755] - 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-07-17 10:16:30,524 - [124755] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-17 10:16:30,524 - [124755] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder, BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:16:30,788 - [124755] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 10:16:30,789 - [124755] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 78 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 133 AND EnitityNumberType = 'WorkOrder'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:16:31,058 - [124755] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 10:16:31,058 - [124755] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 78 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 133 AND EnitityNumberType = 'Invoice'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:16:31,327 - [124755] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 10:16:31,332 - [124755] - 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 (150502, 150598, 150480, 150579, 150573, 150482, 150554, 150556, 150557, 150580, 150475, 150559, 150561, 150560, 150549, 150457, 150562, 150547, 150524, 150671, 150649, 150592, 150456, 150458, 150664, 150450, 150516, 150446, 150522, 150474, 150483, 150539, 150501, 150665, 150473, 150538, 150666, 150486, 150484, 150472, 150495, 150394, 150455, 150459, 150392, 150535, 150465, 150468, 150492, 150498, 150595, 150507)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:16:31,635 - [124755] - src.utils.log - INFO - βœ… Fetched 52 rows - __SPLIT__ 2026-07-17 10:16:31,687 - [124755] - src.utils.log - INFO - πŸ” Fetching data: SELECT x.CompanyId FROM CRM.CompanyMaster x WHERE CompanyKey = 'abcdallas';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:16:31,951 - [124755] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 10:16:31,952 - [124755] - src.utils.log - INFO - πŸ” Fetching data: SELECT CollectionStatus,IsHold,AccountNo FROM CRM.Account a WHERE a.AccountNo in ('14943', '14969', '14976', '14930', '14935', '14981', '14942', '15013', '14972', '14907', '14968', '14941', '14958', '14974', '14949', '14963', '14939', '8663', '14954', '14966', '14936', '14088', '14937', '15008', '14944', '14973', '14891', '14970', '14977', '14933', '15015', '14945') and a.CompanyId = 121;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:16:32,272 - [124755] - src.utils.log - INFO - βœ… Fetched 32 rows - __SPLIT__ 2026-07-17 10:16:32,275 - [124755] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderNo FROM ServiceCore.WorkOrder WHERE WorkOrderNo IN ('1427347', '1427348', '1427349', '1427350', '1427351', '1427352', '1427353', '1427354', '1427355', '1427356', '1427357', '1427358', '1427359', '1427360', '1427361', '1427362', '1427363', '1427364', '1427365', '1427366', '1427367', '1427368', '1427369', '1427370', '1427371', '1427372', '1427373', '1427374', '1427375', '1427376', '1427377', '1427378', '1427379', '1427380', '1427381', '1427382', '1427383', '1427384', '1427385', '1427386', '1427387', '1427388', '1427389', '1427390', '1427391', '1427392', '1427393', '1427394', '1427395', '1427396', '1427397', '1427398', '1427399', '1427400', '1427401', '1427402', '1427403', '1427404', '1427405', '1427406', '1427407', '1427408', '1427409', '1427410', '1427411', '1427412', '1427413', '1427414', '1427415', '1427416', '1427417', '1427418', '1427419', '1427420', '1427421', '1427422', '1427423', '1427424') AND CompanyId = 133 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:16:32,551 - [124755] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 10:16:32,551 - [124755] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrder (skip triggers): 78 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:16:32,985 - [124755] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 78) into ServiceCore.WorkOrder (triggers skipped) - __SPLIT__ 2026-07-17 10:16:36,941 - [124755] - src.utils.log - INFO - βœ… All 78 rows inserted successfully into ServiceCore.WorkOrder in 1 batches (triggers skipped) - __SPLIT__ 2026-07-17 10:16:37,073 - [124755] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-07-17 10:16:37,075 - [124755] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.ServiceSetup SET IsInitialWoGenerated = 1 WHERE CompanyId = 133 AND ServiceSetupId = 150502;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:16:37,341 - [124755] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-17 10:16:37,342 - [124755] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkorderId, WorkOrderNo FROM ServiceCore.WorkOrder wo WHERE wo.WorkOrderNo IN ('1427347', '1427348', '1427349', '1427350', '1427351', '1427352', '1427353', '1427354', '1427355', '1427356', '1427357', '1427358', '1427359', '1427360', '1427361', '1427362', '1427363', '1427364', '1427365', '1427366', '1427367', '1427368', '1427369', '1427370', '1427371', '1427372', '1427373', '1427374', '1427375', '1427376', '1427377', '1427378', '1427379', '1427380', '1427381', '1427382', '1427383', '1427384', '1427385', '1427386', '1427387', '1427388', '1427389', '1427390', '1427391', '1427392', '1427393', '1427394', '1427395', '1427396', '1427397', '1427398', '1427399', '1427400', '1427401', '1427402', '1427403', '1427404', '1427405', '1427406', '1427407', '1427408', '1427409', '1427410', '1427411', '1427412', '1427413', '1427414', '1427415', '1427416', '1427417', '1427418', '1427419', '1427420', '1427421', '1427422', '1427423', '1427424') AND wo.AccountNumber IN ('14949', '14973', '14944', '14976', '14974', '14943', '14969', '14891', '14970', '14977', '14972', '14968', '14937', '14958', '15015', '15008', '8663', '14936', '15013', '14933', '14954', '14930', '14942', '14966', '14945', '14907', '14935', '14963', '14939', '14941', '14088', '14981') AND wo.CompanyId = 133 ... (Thread: ThreadPoolExecutor-10_0) - __SPLIT__ 2026-07-17 10:16:37,624 - [124755] - src.utils.log - INFO - βœ… Fetched 78 rows - __SPLIT__ 2026-07-17 10:16:37,624 - [124755] - src.utils.log - INFO - Sequential fetching temp table records - __SPLIT__ 2026-07-17 10:16:37,625 - [124755] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationServices woag WHERE woag.WorkOrderAutoGenerationId in (3681623, 3681624, 3681625, 3681626, 3681627, 3681628, 3681629, 3681630, 3681631, 3681632, 3681633, 3681634, 3681635, 3681636, 3681637, 3681638, 3681639, 3681640, 3681641, 3681642, 3681643, 3681644, 3681645, 3681646, 3681647, 3681648, 3681649, 3681650, 3681651, 3681652, 3681653, 3681654, 3681655, 3681656, 3681657, 3681658, 3681659, 3681660, 3681661, 3681662, 3681663, 3681664, 3681665, 3681666, 3681667, 3681668, 3681669, 3681670, 3681671, 3681672, 3681673, 3681674, 3681675, 3681676, 3681677, 3681678, 3681679, 3681680, 3681681, 3681682, 3681683, 3681684, 3681685, 3681686, 3681687, 3681688, 3681689, 3681690, 3681691, 3681692, 3681693, 3681694, 3681695, 3681696, 3681697, 3681698, 3681699, 3681700)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:16:37,958 - [124755] - src.utils.log - INFO - βœ… Fetched 121 rows - __SPLIT__ 2026-07-17 10:16:37,958 - [124755] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SubWorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (3681623, 3681624, 3681625, 3681626, 3681627, 3681628, 3681629, 3681630, 3681631, 3681632, 3681633, 3681634, 3681635, 3681636, 3681637, 3681638, 3681639, 3681640, 3681641, 3681642, 3681643, 3681644, 3681645, 3681646, 3681647, 3681648, 3681649, 3681650, 3681651, 3681652, 3681653, 3681654, 3681655, 3681656, 3681657, 3681658, 3681659, 3681660, 3681661, 3681662, 3681663, 3681664, 3681665, 3681666, 3681667, 3681668, 3681669, 3681670, 3681671, 3681672, 3681673, 3681674, 3681675, 3681676, 3681677, 3681678, 3681679, 3681680, 3681681, 3681682, 3681683, 3681684, 3681685, 3681686, 3681687, 3681688, 3681689, 3681690, 3681691, 3681692, 3681693, 3681694, 3681695, 3681696, 3681697, 3681698, 3681699, 3681700)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:16:38,233 - [124755] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-17 10:16:38,234 - [124755] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationCrews woag WHERE woag.WorkOrderAutoGenerationId in (3681623, 3681624, 3681625, 3681626, 3681627, 3681628, 3681629, 3681630, 3681631, 3681632, 3681633, 3681634, 3681635, 3681636, 3681637, 3681638, 3681639, 3681640, 3681641, 3681642, 3681643, 3681644, 3681645, 3681646, 3681647, 3681648, 3681649, 3681650, 3681651, 3681652, 3681653, 3681654, 3681655, 3681656, 3681657, 3681658, 3681659, 3681660, 3681661, 3681662, 3681663, 3681664, 3681665, 3681666, 3681667, 3681668, 3681669, 3681670, 3681671, 3681672, 3681673, 3681674, 3681675, 3681676, 3681677, 3681678, 3681679, 3681680, 3681681, 3681682, 3681683, 3681684, 3681685, 3681686, 3681687, 3681688, 3681689, 3681690, 3681691, 3681692, 3681693, 3681694, 3681695, 3681696, 3681697, 3681698, 3681699, 3681700)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:16:38,546 - [124755] - src.utils.log - INFO - βœ… Fetched 86 rows - __SPLIT__ 2026-07-17 10:16:38,546 - [124755] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationSalesPersonCommission woag WHERE woag.WorkOrderAutoGenerationId in (3681623, 3681624, 3681625, 3681626, 3681627, 3681628, 3681629, 3681630, 3681631, 3681632, 3681633, 3681634, 3681635, 3681636, 3681637, 3681638, 3681639, 3681640, 3681641, 3681642, 3681643, 3681644, 3681645, 3681646, 3681647, 3681648, 3681649, 3681650, 3681651, 3681652, 3681653, 3681654, 3681655, 3681656, 3681657, 3681658, 3681659, 3681660, 3681661, 3681662, 3681663, 3681664, 3681665, 3681666, 3681667, 3681668, 3681669, 3681670, 3681671, 3681672, 3681673, 3681674, 3681675, 3681676, 3681677, 3681678, 3681679, 3681680, 3681681, 3681682, 3681683, 3681684, 3681685, 3681686, 3681687, 3681688, 3681689, 3681690, 3681691, 3681692, 3681693, 3681694, 3681695, 3681696, 3681697, 3681698, 3681699, 3681700)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:16:38,817 - [124755] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 10:16:38,818 - [124755] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupAutoGenerationSourceMapping woag WHERE woag.WorkOrderAutoGenerationId in (3681623, 3681624, 3681625, 3681626, 3681627, 3681628, 3681629, 3681630, 3681631, 3681632, 3681633, 3681634, 3681635, 3681636, 3681637, 3681638, 3681639, 3681640, 3681641, 3681642, 3681643, 3681644, 3681645, 3681646, 3681647, 3681648, 3681649, 3681650, 3681651, 3681652, 3681653, 3681654, 3681655, 3681656, 3681657, 3681658, 3681659, 3681660, 3681661, 3681662, 3681663, 3681664, 3681665, 3681666, 3681667, 3681668, 3681669, 3681670, 3681671, 3681672, 3681673, 3681674, 3681675, 3681676, 3681677, 3681678, 3681679, 3681680, 3681681, 3681682, 3681683, 3681684, 3681685, 3681686, 3681687, 3681688, 3681689, 3681690, 3681691, 3681692, 3681693, 3681694, 3681695, 3681696, 3681697, 3681698, 3681699, 3681700)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:16:39,092 - [124755] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 10:16:39,093 - [124755] - 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 (3681623, 3681624, 3681625, 3681626, 3681627, 3681628, 3681629, 3681630, 3681631, 3681632, 3681633, 3681634, 3681635, 3681636, 3681637, 3681638, 3681639, 3681640, 3681641, 3681642, 3681643, 3681644, 3681645, 3681646, 3681647, 3681648, 3681649, 3681650, 3681651, 3681652, 3681653, 3681654, 3681655, 3681656, 3681657, 3681658, 3681659, 3681660, 3681661, 3681662, 3681663, 3681664, 3681665, 3681666, 3681667, 3681668, 3681669, 3681670, 3681671, 3681672, 3681673, 3681674, 3681675, 3681676, 3681677, 3681678, 3681679, 3681680, 3681681, 3681682, 3681683, 3681684, 3681685, 3681686, 3681687, 3681688, 3681689, 3681690, 3681691, 3681692, 3681693, 3681694, 3681695, 3681696, 3681697, 3681698, 3681699, 3681700)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:16:39,398 - [124755] - src.utils.log - INFO - βœ… Fetched 49 rows - __SPLIT__ 2026-07-17 10:16:39,399 - [124755] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from CRM.LeadNote woag WHERE woag.RefId in (3681623, 3681624, 3681625, 3681626, 3681627, 3681628, 3681629, 3681630, 3681631, 3681632, 3681633, 3681634, 3681635, 3681636, 3681637, 3681638, 3681639, 3681640, 3681641, 3681642, 3681643, 3681644, 3681645, 3681646, 3681647, 3681648, 3681649, 3681650, 3681651, 3681652, 3681653, 3681654, 3681655, 3681656, 3681657, 3681658, 3681659, 3681660, 3681661, 3681662, 3681663, 3681664, 3681665, 3681666, 3681667, 3681668, 3681669, 3681670, 3681671, 3681672, 3681673, 3681674, 3681675, 3681676, 3681677, 3681678, 3681679, 3681680, 3681681, 3681682, 3681683, 3681684, 3681685, 3681686, 3681687, 3681688, 3681689, 3681690, 3681691, 3681692, 3681693, 3681694, 3681695, 3681696, 3681697, 3681698, 3681699, 3681700) and woag.RefType = 'TempWorkorder';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:16:39,672 - [124755] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 10:16:39,672 - [124755] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment woagca WHERE woagca.WorkOrderAutoGenerationId in (3681623, 3681624, 3681625, 3681626, 3681627, 3681628, 3681629, 3681630, 3681631, 3681632, 3681633, 3681634, 3681635, 3681636, 3681637, 3681638, 3681639, 3681640, 3681641, 3681642, 3681643, 3681644, 3681645, 3681646, 3681647, 3681648, 3681649, 3681650, 3681651, 3681652, 3681653, 3681654, 3681655, 3681656, 3681657, 3681658, 3681659, 3681660, 3681661, 3681662, 3681663, 3681664, 3681665, 3681666, 3681667, 3681668, 3681669, 3681670, 3681671, 3681672, 3681673, 3681674, 3681675, 3681676, 3681677, 3681678, 3681679, 3681680, 3681681, 3681682, 3681683, 3681684, 3681685, 3681686, 3681687, 3681688, 3681689, 3681690, 3681691, 3681692, 3681693, 3681694, 3681695, 3681696, 3681697, 3681698, 3681699, 3681700);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:16:39,944 - [124755] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 10:16:39,947 - [124755] - src.utils.log - INFO - Updating temp tables - __SPLIT__ 2026-07-17 10:16:39,973 - [124755] - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyKey FROM Common.CompanyMaster cm WHERE CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:16:40,237 - [124755] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 10:16:40,241 - [124755] - src.utils.log - INFO - πŸ” Fetching data: Select DiscountSetupId, [SysName] as DiscountSysName from Common.DiscountSetupMaster WHERE DiscountSetupId IN (1150, 1141, 1159, 1147, 899, 947, 942, 1160, 1142, 1091) AND CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:16:40,508 - [124755] - src.utils.log - INFO - βœ… Fetched 10 rows - __SPLIT__ 2026-07-17 10:16:40,511 - [124755] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 133 AND EnitityNumberType in ('SubWorkOrder'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:16:40,776 - [124755] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 10:16:40,777 - [124755] - src.utils.log - INFO - πŸ“ Executing: UPDATE Common.GenerateNumberConfig SET NextNumber = '22851' WHERE CompanyId = 133 AND EnitityNumberType in ('SubWorkOrder');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:16:41,044 - [124755] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-17 10:16:41,049 - [124755] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-17 10:16:41,049 - [124755] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishHistory: 78 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:16:41,340 - [124755] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 78) into ServiceCore.WorkOrderAutoGenerationPublishHistory - __SPLIT__ 2026-07-17 10:16:43,002 - [124755] - src.utils.log - INFO - βœ… All 78 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishHistory in 1 batches - __SPLIT__ 2026-07-17 10:16:43,004 - [124755] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationPublishHistoryId, WorkOrderNo, ServiceSetupId FROM ServiceCore.WorkOrderAutoGenerationPublishHistory WHERE ServiceSetupId IN (150502, 150598, 150480, 150579, 150573, 150482, 150554, 150556, 150557, 150580, 150475, 150559, 150561, 150560, 150549, 150457, 150562, 150547, 150524, 150671, 150649, 150592, 150456, 150458, 150664, 150450, 150516, 150446, 150522, 150474, 150483, 150539, 150501, 150665, 150473, 150538, 150666, 150486, 150484, 150472, 150495, 150394, 150455, 150459, 150392, 150535, 150465, 150468, 150492, 150498, 150595, 150507) AND WorkOrderNo IN ('341929', '4699291', '8919906', '4974256', '5682207', '2206773', '5029574', '3998644', '5723565', '6958321', '1910135', '6187344', '8191827', '4706053', '3818568', '4245522', '3967421', '6104371', '5281620', '1330182', '8539384', '8347706', '3951547', '7270949', '1941824', '9063118', '5926942', '3248582', '7415939', '8688588', '8559507', '6961953', '1714455', '3657465', '5114586', '4806588', '2285745', '8817325', '9910813', '5116914', '3221174', '2053492', '3004691', '3088830', '3558316', '2794888', '7698897', '9076653', '5330580', '7694617', '8488021', '3131824', '6636858', '7979528', '8551465', '7139544', '2512762', '9813685', '3217472', '8737428', '5543923', '9284596', '6119607', '7384435', '8495585', '6113282', '1086675', '2324525', '1341544', '6294312', '6679465', '3409381', '4968865', '4462187', '7092917', '6774150', '8492109', '4107236') AND GenerateWorkOrderHistoryId = 124755;... (Thread: ThreadPoolExecutor-11_0) - __SPLIT__ 2026-07-17 10:16:43,446 - [124755] - src.utils.log - INFO - βœ… Fetched 78 rows - __SPLIT__ 2026-07-17 10:16:43,446 - [124755] - src.utils.log - INFO - 🏁 Final merged rows: 78 - __SPLIT__ 2026-07-17 10:16:43,453 - [124755] - src.utils.log - INFO - Sequential Insertion in work order tables begin - __SPLIT__ 2026-07-17 10:16:43,453 - [124755] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-17 10:16:43,454 - [124755] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderServices: 121 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:16:43,726 - [124755] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 121) into ServiceCore.WorkOrderServices - __SPLIT__ 2026-07-17 10:16:44,882 - [124755] - src.utils.log - INFO - βœ… All 121 rows inserted successfully into ServiceCore.WorkOrderServices in 1 batches - __SPLIT__ 2026-07-17 10:16:44,882 - [124755] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-17 10:16:44,882 - [124755] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.WorkOrderAppliedDiscount: 49 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:16:45,174 - [124755] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 49) into ServiceAuto.WorkOrderAppliedDiscount - __SPLIT__ 2026-07-17 10:16:46,293 - [124755] - src.utils.log - INFO - βœ… All 49 rows inserted successfully into ServiceAuto.WorkOrderAppliedDiscount in 1 batches - __SPLIT__ 2026-07-17 10:16:46,293 - [124755] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderSalesPersonCommission: - __SPLIT__ 2026-07-17 10:16:46,293 - [124755] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderCommissionAdjustment: - __SPLIT__ 2026-07-17 10:16:46,293 - [124755] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-17 10:16:46,293 - [124755] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderCrew: 86 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:16:46,564 - [124755] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 86) into ServiceCore.WorkOrderCrew - __SPLIT__ 2026-07-17 10:16:47,564 - [124755] - src.utils.log - INFO - βœ… All 86 rows inserted successfully into ServiceCore.WorkOrderCrew in 1 batches - __SPLIT__ 2026-07-17 10:16:47,565 - [124755] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkorderSourceMapping: - __SPLIT__ 2026-07-17 10:16:47,565 - [124755] - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-07-17 10:16:47,565 - [124755] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-17 10:16:47,565 - [124755] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishServices: 121 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:16:47,838 - [124755] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 121) into ServiceCore.WorkOrderAutoGenerationPublishServices - __SPLIT__ 2026-07-17 10:16:48,996 - [124755] - src.utils.log - INFO - βœ… All 121 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishServices in 1 batches - __SPLIT__ 2026-07-17 10:16:48,997 - [124755] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-17 10:16:48,997 - [124755] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.SubWorkOrder: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:16:49,299 - [124755] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.SubWorkOrder - __SPLIT__ 2026-07-17 10:16:50,375 - [124755] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.SubWorkOrder in 1 batches - __SPLIT__ 2026-07-17 10:16:50,376 - [124755] - src.utils.log - INFO - πŸ” Fetching data: Select * From ServiceCore.SubWorkOrder where WorkOrderId in (2157696, 2157697)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:16:50,659 - [124755] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-17 10:16:50,666 - [124755] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-17 10:16:50,666 - [124755] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.subWorkOrderIssue: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:16:50,957 - [124755] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceAuto.subWorkOrderIssue - __SPLIT__ 2026-07-17 10:16:51,899 - [124755] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceAuto.subWorkOrderIssue in 1 batches - __SPLIT__ 2026-07-17 10:16:51,900 - [124755] - src.utils.log - INFO - πŸ” Fetching data: Select SubWorkOrderIssueId, SubWorkOrderId, ModifiedBy From ServiceAuto.subWorkOrderIssue where SubWorkOrderId in (230449, 230450) and ModifiedBy in ('999999999', '1000000000')... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:16:52,166 - [124755] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-17 10:16:52,166 - [124755] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceAuto.subWorkOrderIssue SET ModifiedBy = 'abcdallas' WHERE ModifiedBy IN ('999999999', '1000000000'); ... (Thread: ThreadPoolExecutor-12_0) - __SPLIT__ 2026-07-17 10:16:52,468 - [124755] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-17 10:16:52,475 - [124755] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-17 10:16:52,475 - [124755] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.subWOIssueRepair: 3 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:16:52,771 - [124755] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into ServiceAuto.subWOIssueRepair - __SPLIT__ 2026-07-17 10:16:53,714 - [124755] - src.utils.log - INFO - βœ… All 3 rows inserted successfully into ServiceAuto.subWOIssueRepair in 1 batches - __SPLIT__ 2026-07-17 10:16:53,715 - [124755] - src.utils.log - INFO - πŸ” Fetching data: Select IssueRepairId, ModifiedBy From ServiceAuto.subWOIssueRepair where SubWorkOrderIssueId in (192632, 192633)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:16:53,981 - [124755] - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-07-17 10:16:53,982 - [124755] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceAuto.subWOIssueRepair SET ModifiedBy = 'abcdallas' WHERE ModifiedBy IN ('0___TMP___192632', '1___TMP___192632', '0___TMP___192633') AND CreatedDate = '2026-07-17 06:16:50.664'; ... (Thread: ThreadPoolExecutor-13_0) - __SPLIT__ 2026-07-17 10:16:54,269 - [124755] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-17 10:16:54,276 - [124755] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-17 10:16:54,276 - [124755] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.SubWOIssueRepairLabor: 6 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:16:54,567 - [124755] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 6) into ServiceAuto.SubWOIssueRepairLabor - __SPLIT__ 2026-07-17 10:16:55,508 - [124755] - src.utils.log - INFO - βœ… All 6 rows inserted successfully into ServiceAuto.SubWOIssueRepairLabor in 1 batches - __SPLIT__ 2026-07-17 10:16:55,514 - [124755] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-17 10:16:55,514 - [124755] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.SubWOIssueRepairPart: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:16:55,812 - [124755] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceAuto.SubWOIssueRepairPart - __SPLIT__ 2026-07-17 10:16:56,753 - [124755] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceAuto.SubWOIssueRepairPart in 1 batches - __SPLIT__ 2026-07-17 10:16:56,754 - [124755] - 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 (150502, 150598, 150480, 150579, 150573, 150482, 150554, 150556, 150557, 150580, 150475, 150559, 150561, 150560, 150549, 150457, 150562, 150547, 150524, 150671, 150649, 150592, 150456, 150458, 150664, 150450, 150516, 150446, 150522, 150474, 150483, 150539, 150501, 150665, 150473, 150538, 150666, 150486, 150484, 150472, 150495, 150394, 150455, 150459, 150392, 150535, 150465, 150468, 150492, 150498, 150595, 150507)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:16:57,023 - [124755] - src.utils.log - INFO - βœ… Fetched 52 rows - __SPLIT__ 2026-07-17 10:16:57,032 - [124755] - src.utils.log - INFO - Size of Transaction: 54 - __SPLIT__ 2026-07-17 10:16:57,033 - [124755] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 54 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:16:57,435 - [124755] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 54) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-07-17 10:16:58,502 - [124755] - src.utils.log - INFO - βœ… All 54 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-07-17 10:16:58,634 - [124755] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-07-17 10:16:58,635 - [124755] - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionId, ModifiedBy, TransactionDate as InvoiceDate from Billing.[Transaction] t WHERE t.ModifiedBy in (12345678910, 12345678911, 12345678912, 12345678913, 12345678914, 12345678915, 12345678916, 12345678917, 12345678918, 12345678919, 12345678920, 12345678921, 12345678922, 12345678923, 12345678924, 12345678925, 12345678926, 12345678927, 12345678928, 12345678929, 12345678930, 12345678931, 12345678932, 12345678933, 12345678934, 12345678935, 12345678936, 12345678937, 12345678938, 12345678939, 12345678940, 12345678941, 12345678942, 12345678943, 12345678944, 12345678945, 12345678946, 12345678947, 12345678948, 12345678949, 12345678950, 12345678951, 12345678952, 12345678953, 12345678954, 12345678955, 12345678956, 12345678957, 12345678958, 12345678959, 12345678960, 12345678961, 12345678962, 12345678963) and t.CompanyId = 133 AND t.TransactionType ='Invoice' AND t.CreatedDate = '2026-07-17 06:16:57.026';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:16:59,030 - [124755] - src.utils.log - INFO - βœ… Fetched 54 rows - __SPLIT__ 2026-07-17 10:16:59,033 - [124755] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId in (150392, 150394, 150446, 150450, 150455, 150456, 150457, 150458, 150459, 150465, 150468, 150472, 150473, 150474, 150475, 150480, 150482, 150483, 150484, 150486, 150492, 150495, 150498, 150501, 150502, 150507, 150516, 150522, 150524, 150535, 150538, 150539, 150547, 150549, 150554, 150556, 150557, 150559, 150560, 150561, 150562, 150573, 150579, 150580, 150592, 150595, 150598, 150649, 150664, 150665, 150666, 150671);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:16:59,306 - [124755] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-17 10:16:59,317 - [124755] - src.utils.log - INFO - πŸ“ Executing: UPDATE Billing.[Transaction] SET ModifiedBy = NULL WHERE ModifiedBy IN (12345678910,12345678911,12345678912,12345678913,12345678914,12345678915,12345678916,12345678917,12345678918,12345678919,12345678920,12345678921,12345678922,12345678923,12345678924,12345678925,12345678926,12345678927,12345678928,12345678929,12345678930,12345678931,12345678932,12345678933,12345678934,12345678935,12345678936,12345678937,12345678938,12345678939,12345678940,12345678941,12345678942,12345678943,12345678944,12345678945,12345678946,12345678947,12345678948,12345678949,12345678950,12345678951,12345678952,12345678953,12345678954,12345678955,12345678956,12345678957,12345678958,12345678959,12345678960,12345678961,12345678962,12345678963) AND CreatedDate = '2026-07-17 06:16:57.026'; ... (Thread: ThreadPoolExecutor-14_0) - __SPLIT__ 2026-07-17 10:16:59,694 - [124755] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-17 10:16:59,700 - [124755] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-17 10:16:59,700 - [124755] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 54 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:16:59,975 - [124755] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 54) into Billing.Invoice - __SPLIT__ 2026-07-17 10:17:01,006 - [124755] - src.utils.log - INFO - βœ… All 54 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-07-17 10:17:01,007 - [124755] - src.utils.log - INFO - πŸ” Fetching data: SELECT InvoiceId, WorkOrderNo FROM Billing.Invoice i WHERE i.WorkOrderNo in ('1427413', '1427410', '1427386', '1427409', '1427422', '1427399', '1427347', '1427424', '1427389', '1427392', '1427398', '1427371', '1427417', '1427369', '1427365', '1427357', '1427358', '1427359', '1427362', '1427364', '1427363', '1427368', '1427354', '1427353', '1427360', '1427380', '1427423', '1427419', '1427415', '1427414', '1427416', '1427402', '1427393', '1427390', '1427388', '1427387', '1427385', '1427378', '1427377', '1427375', '1427373', '1427372', '1427366', '1427355', '1427351', '1427350', '1427352', '1427348', '1427394', '1427379', '1427384', '1427400', '1427405', '1427376')... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:17:04,086 - [124755] - src.utils.log - INFO - βœ… Fetched 54 rows - __SPLIT__ 2026-07-17 10:17:04,097 - [124755] - 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 (150502, 150598, 150579, 150573, 150554, 150556, 150557, 150580, 150559, 150561, 150560, 150549, 150562, 150547, 150524, 150671, 150649, 150592, 150664, 150450, 150516, 150522, 150501, 150665, 150666, 150495, 150394, 150392, 150535, 150498, 150595, 150507) and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:17:04,371 - [124755] - src.utils.log - INFO - βœ… Fetched 36 rows - __SPLIT__ 2026-07-17 10:17:04,371 - [124755] - 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 (150502, 150598, 150579, 150573, 150554, 150556, 150557, 150580, 150559, 150561, 150560, 150549, 150562, 150547, 150524, 150671, 150649, 150592, 150664, 150450, 150516, 150522, 150501, 150665, 150666, 150495, 150394, 150392, 150535, 150498, 150595, 150507) and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:17:04,644 - [124755] - src.utils.log - INFO - βœ… Fetched 21 rows - __SPLIT__ 2026-07-17 10:17:04,644 - [124755] - 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 (150502, 150598, 150579, 150573, 150554, 150556, 150557, 150580, 150559, 150561, 150560, 150549, 150562, 150547, 150524, 150671, 150649, 150592, 150664, 150450, 150516, 150522, 150501, 150665, 150666, 150495, 150394, 150392, 150535, 150498, 150595, 150507) and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:17:04,917 - [124755] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 10:17:04,917 - [124755] - 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 (150502, 150598, 150579, 150573, 150554, 150556, 150557, 150580, 150559, 150561, 150560, 150549, 150562, 150547, 150524, 150671, 150649, 150592, 150664, 150450, 150516, 150522, 150501, 150665, 150666, 150495, 150394, 150392, 150535, 150498, 150595, 150507) and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:17:05,189 - [124755] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 10:17:05,205 - [124755] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId in (150502, 150598, 150579, 150573, 150554, 150556, 150557, 150580, 150559, 150561, 150560, 150549, 150562, 150547, 150524, 150671, 150649, 150592, 150664, 150450, 150516, 150522, 150501, 150665, 150666, 150495, 150394, 150392, 150535, 150498, 150595, 150507);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:17:05,477 - [124755] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-17 10:17:05,484 - [124755] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId, AppliedDiscountAmt as AppliedDiscountAmount,IsActive ,ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId in (150502, 150598, 150579, 150573, 150554, 150556, 150557, 150580, 150559, 150561, 150560, 150549, 150562, 150547, 150524, 150671, 150649, 150592, 150664, 150450, 150516, 150522, 150501, 150665, 150666, 150495, 150394, 150392, 150535, 150498, 150595, 150507);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:17:05,752 - [124755] - src.utils.log - INFO - βœ… Fetched 6 rows - __SPLIT__ 2026-07-17 10:17:05,764 - [124755] - 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 (150502, 150598, 150579, 150573, 150554, 150556, 150557, 150580, 150559, 150561, 150560, 150549, 150562, 150547, 150524, 150671, 150649, 150592, 150664, 150450, 150516, 150522, 150501, 150665, 150666, 150495, 150394, 150392, 150535, 150498, 150595, 150507);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:17:06,032 - [124755] - src.utils.log - INFO - βœ… Fetched 6 rows - __SPLIT__ 2026-07-17 10:17:06,042 - [124755] - src.utils.log - INFO - Sequential Insertion in invoice tables begin - __SPLIT__ 2026-07-17 10:17:06,042 - [124755] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-17 10:17:06,042 - [124755] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.AccountDiscountSetup: 4 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:17:06,334 - [124755] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 4) into Billing.AccountDiscountSetup - __SPLIT__ 2026-07-17 10:17:07,276 - [124755] - src.utils.log - INFO - βœ… All 4 rows inserted successfully into Billing.AccountDiscountSetup in 1 batches - __SPLIT__ 2026-07-17 10:17:07,277 - [124755] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-17 10:17:07,277 - [124755] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceCharges: 57 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:17:07,551 - [124755] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 57) into Billing.InvoiceCharges - __SPLIT__ 2026-07-17 10:17:08,965 - [124755] - src.utils.log - INFO - βœ… All 57 rows inserted successfully into Billing.InvoiceCharges in 1 batches - __SPLIT__ 2026-07-17 10:17:08,966 - [124755] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-17 10:17:08,966 - [124755] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.DiscountApplied: 4 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:17:09,257 - [124755] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 4) into Billing.DiscountApplied - __SPLIT__ 2026-07-17 10:17:10,193 - [124755] - src.utils.log - INFO - βœ… All 4 rows inserted successfully into Billing.DiscountApplied in 1 batches - __SPLIT__ 2026-07-17 10:17:10,193 - [124755] - src.utils.log - INFO - Invoice Publish Done - __SPLIT__ 2026-07-17 10:17:10,194 - [124755] - src.utils.log - INFO - Updating Next GenerationDate - __SPLIT__ 2026-07-17 10:17:10,194 - [124755] - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, MAX(NextWorkOrderGenerationDate) AS MaxNextWorkOrderGeneration FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 124755 GROUP BY ServiceSetupId; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:17:10,462 - [124755] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 10:17:10,468 - [124755] - src.utils.log - INFO - πŸ”„ Updating next gen date sequentially: inside update_next_workorder_generation - __SPLIT__ 2026-07-17 10:17:10,601 - [124755] - src.utils.log - INFO - πŸ›  Creating temp table #tbl_452ad92b58 - __SPLIT__ 2026-07-17 10:17:10,869 - [124755] - src.utils.log - INFO - πŸ“Œ Bulk inserting 52 rows into #tbl_452ad92b58 - __SPLIT__ 2026-07-17 10:17:17,847 - [124755] - src.utils.log - INFO - πŸ” Running MERGE update to apply changes - __SPLIT__ 2026-07-17 10:17:17,990 - [124755] - src.utils.log - INFO - βœ” SQL reported affected rows: 52 - __SPLIT__ 2026-07-17 10:17:18,128 - [124755] - src.utils.log - INFO - πŸ” Verified successfully updated 52 rows via #tbl_452ad92b58 - __SPLIT__ 2026-07-17 10:17:18,128 - [124755] - src.utils.log - INFO - πŸŽ‰ Successfully updated NextGenerationDate using temp table #tbl_452ad92b58 - __SPLIT__ 2026-07-17 10:17:18,128 - [124755] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 124755 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:17:18,393 - [124755] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 10:17:18,393 - [124755] - src.utils.log - INFO - Sequential deletion from temp tables begin - __SPLIT__ 2026-07-17 10:17:18,393 - [124755] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId in (3681623, 3681624, 3681625, 3681626, 3681627, 3681628, 3681629, 3681630, 3681631, 3681632, 3681633, 3681634, 3681635, 3681636, 3681637, 3681638, 3681639, 3681640, 3681641, 3681642, 3681643, 3681644, 3681645, 3681646, 3681647, 3681648, 3681649, 3681650, 3681651, 3681652, 3681653, 3681654, 3681655, 3681656, 3681657, 3681658, 3681659, 3681660, 3681661, 3681662, 3681663, 3681664, 3681665, 3681666, 3681667, 3681668, 3681669, 3681670, 3681671, 3681672, 3681673, 3681674, 3681675, 3681676, 3681677, 3681678, 3681679, 3681680, 3681681, 3681682, 3681683, 3681684, 3681685, 3681686, 3681687, 3681688, 3681689, 3681690, 3681691, 3681692, 3681693, 3681694, 3681695, 3681696, 3681697, 3681698, 3681699, 3681700) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:17:18,725 - [124755] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 10:17:18,725 - [124755] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId in (3681623, 3681624, 3681625, 3681626, 3681627, 3681628, 3681629, 3681630, 3681631, 3681632, 3681633, 3681634, 3681635, 3681636, 3681637, 3681638, 3681639, 3681640, 3681641, 3681642, 3681643, 3681644, 3681645, 3681646, 3681647, 3681648, 3681649, 3681650, 3681651, 3681652, 3681653, 3681654, 3681655, 3681656, 3681657, 3681658, 3681659, 3681660, 3681661, 3681662, 3681663, 3681664, 3681665, 3681666, 3681667, 3681668, 3681669, 3681670, 3681671, 3681672, 3681673, 3681674, 3681675, 3681676, 3681677, 3681678, 3681679, 3681680, 3681681, 3681682, 3681683, 3681684, 3681685, 3681686, 3681687, 3681688, 3681689, 3681690, 3681691, 3681692, 3681693, 3681694, 3681695, 3681696, 3681697, 3681698, 3681699, 3681700) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:17:19,038 - [124755] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 10:17:19,038 - [124755] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId in (3681623, 3681624, 3681625, 3681626, 3681627, 3681628, 3681629, 3681630, 3681631, 3681632, 3681633, 3681634, 3681635, 3681636, 3681637, 3681638, 3681639, 3681640, 3681641, 3681642, 3681643, 3681644, 3681645, 3681646, 3681647, 3681648, 3681649, 3681650, 3681651, 3681652, 3681653, 3681654, 3681655, 3681656, 3681657, 3681658, 3681659, 3681660, 3681661, 3681662, 3681663, 3681664, 3681665, 3681666, 3681667, 3681668, 3681669, 3681670, 3681671, 3681672, 3681673, 3681674, 3681675, 3681676, 3681677, 3681678, 3681679, 3681680, 3681681, 3681682, 3681683, 3681684, 3681685, 3681686, 3681687, 3681688, 3681689, 3681690, 3681691, 3681692, 3681693, 3681694, 3681695, 3681696, 3681697, 3681698, 3681699, 3681700) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:17:19,311 - [124755] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 10:17:19,312 - [124755] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId in (3681623, 3681624, 3681625, 3681626, 3681627, 3681628, 3681629, 3681630, 3681631, 3681632, 3681633, 3681634, 3681635, 3681636, 3681637, 3681638, 3681639, 3681640, 3681641, 3681642, 3681643, 3681644, 3681645, 3681646, 3681647, 3681648, 3681649, 3681650, 3681651, 3681652, 3681653, 3681654, 3681655, 3681656, 3681657, 3681658, 3681659, 3681660, 3681661, 3681662, 3681663, 3681664, 3681665, 3681666, 3681667, 3681668, 3681669, 3681670, 3681671, 3681672, 3681673, 3681674, 3681675, 3681676, 3681677, 3681678, 3681679, 3681680, 3681681, 3681682, 3681683, 3681684, 3681685, 3681686, 3681687, 3681688, 3681689, 3681690, 3681691, 3681692, 3681693, 3681694, 3681695, 3681696, 3681697, 3681698, 3681699, 3681700) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:17:19,618 - [124755] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 10:17:19,618 - [124755] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId in (3681623, 3681624, 3681625, 3681626, 3681627, 3681628, 3681629, 3681630, 3681631, 3681632, 3681633, 3681634, 3681635, 3681636, 3681637, 3681638, 3681639, 3681640, 3681641, 3681642, 3681643, 3681644, 3681645, 3681646, 3681647, 3681648, 3681649, 3681650, 3681651, 3681652, 3681653, 3681654, 3681655, 3681656, 3681657, 3681658, 3681659, 3681660, 3681661, 3681662, 3681663, 3681664, 3681665, 3681666, 3681667, 3681668, 3681669, 3681670, 3681671, 3681672, 3681673, 3681674, 3681675, 3681676, 3681677, 3681678, 3681679, 3681680, 3681681, 3681682, 3681683, 3681684, 3681685, 3681686, 3681687, 3681688, 3681689, 3681690, 3681691, 3681692, 3681693, 3681694, 3681695, 3681696, 3681697, 3681698, 3681699, 3681700) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:17:19,893 - [124755] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 10:17:19,893 - [124755] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (3681623, 3681624, 3681625, 3681626, 3681627, 3681628, 3681629, 3681630, 3681631, 3681632, 3681633, 3681634, 3681635, 3681636, 3681637, 3681638, 3681639, 3681640, 3681641, 3681642, 3681643, 3681644, 3681645, 3681646, 3681647, 3681648, 3681649, 3681650, 3681651, 3681652, 3681653, 3681654, 3681655, 3681656, 3681657, 3681658, 3681659, 3681660, 3681661, 3681662, 3681663, 3681664, 3681665, 3681666, 3681667, 3681668, 3681669, 3681670, 3681671, 3681672, 3681673, 3681674, 3681675, 3681676, 3681677, 3681678, 3681679, 3681680, 3681681, 3681682, 3681683, 3681684, 3681685, 3681686, 3681687, 3681688, 3681689, 3681690, 3681691, 3681692, 3681693, 3681694, 3681695, 3681696, 3681697, 3681698, 3681699, 3681700) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:17:20,172 - [124755] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 10:17:20,172 - [124755] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId in (3681623, 3681624, 3681625, 3681626, 3681627, 3681628, 3681629, 3681630, 3681631, 3681632, 3681633, 3681634, 3681635, 3681636, 3681637, 3681638, 3681639, 3681640, 3681641, 3681642, 3681643, 3681644, 3681645, 3681646, 3681647, 3681648, 3681649, 3681650, 3681651, 3681652, 3681653, 3681654, 3681655, 3681656, 3681657, 3681658, 3681659, 3681660, 3681661, 3681662, 3681663, 3681664, 3681665, 3681666, 3681667, 3681668, 3681669, 3681670, 3681671, 3681672, 3681673, 3681674, 3681675, 3681676, 3681677, 3681678, 3681679, 3681680, 3681681, 3681682, 3681683, 3681684, 3681685, 3681686, 3681687, 3681688, 3681689, 3681690, 3681691, 3681692, 3681693, 3681694, 3681695, 3681696, 3681697, 3681698, 3681699, 3681700) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:17:20,443 - [124755] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 10:17:20,443 - [124755] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (3681623, 3681624, 3681625, 3681626, 3681627, 3681628, 3681629, 3681630, 3681631, 3681632, 3681633, 3681634, 3681635, 3681636, 3681637, 3681638, 3681639, 3681640, 3681641, 3681642, 3681643, 3681644, 3681645, 3681646, 3681647, 3681648, 3681649, 3681650, 3681651, 3681652, 3681653, 3681654, 3681655, 3681656, 3681657, 3681658, 3681659, 3681660, 3681661, 3681662, 3681663, 3681664, 3681665, 3681666, 3681667, 3681668, 3681669, 3681670, 3681671, 3681672, 3681673, 3681674, 3681675, 3681676, 3681677, 3681678, 3681679, 3681680, 3681681, 3681682, 3681683, 3681684, 3681685, 3681686, 3681687, 3681688, 3681689, 3681690, 3681691, 3681692, 3681693, 3681694, 3681695, 3681696, 3681697, 3681698, 3681699, 3681700) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:17:24,054 - [124755] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 10:17:24,054 - [124755] - src.utils.log - INFO - Work order published ids: (3681623, 3681624, 3681625, 3681626, 3681627, 3681628, 3681629, 3681630, 3681631, 3681632, 3681633, 3681634, 3681635, 3681636, 3681637, 3681638, 3681639, 3681640, 3681641, 3681642, 3681643, 3681644, 3681645, 3681646, 3681647, 3681648, 3681649, 3681650, 3681651, 3681652, 3681653, 3681654, 3681655, 3681656, 3681657, 3681658, 3681659, 3681660, 3681661, 3681662, 3681663, 3681664, 3681665, 3681666, 3681667, 3681668, 3681669, 3681670, 3681671, 3681672, 3681673, 3681674, 3681675, 3681676, 3681677, 3681678, 3681679, 3681680, 3681681, 3681682, 3681683, 3681684, 3681685, 3681686, 3681687, 3681688, 3681689, 3681690, 3681691, 3681692, 3681693, 3681694, 3681695, 3681696, 3681697, 3681698, 3681699, 3681700) - __SPLIT__ 2026-07-17 10:17:24,054 - [124755] - src.utils.log - INFO - Time took to perform operation in publishing [124755]: 59.29 - __SPLIT__ 2026-07-17 10:17:24,054 - [124755] - src.utils.log - INFO - Publish Completed for GenerateWorkOrderHistoryId: [124755] - __SPLIT__ 2026-07-17 10:17:24,054 - [124755] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-07-17 06:17:24.054' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124755;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:17:24,320 - [124755] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-17 10:18:01,582 - 124756 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=124756 - __SPLIT__ 2026-07-17 10:18:01,583 - 124756 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 124756 - __SPLIT__ 2026-07-17 10:18:01,584 - 124756 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-17 10:18:01,584 - 124756 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:18:03,571 - 124756 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 10:18:03,572 - 124756 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-07-17 10:18:03,572 - 124756 - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-07-17 10:18:03,573 - 124756 - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-07-17 10:18:03,573 - 124756 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 124756;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:18:05,431 - 124756 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-17 10:18:05,431 - 124756 - 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 = 124756), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 124756), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 124756 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-07-17 10:18:06,293 - 124756 - src.utils.log - INFO - βœ… Fetched 204 rows - __SPLIT__ 2026-07-17 10:18:06,293 - 124756 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 124756;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:18:06,561 - 124756 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 10:18:06,565 - 124756 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-07-17 10:18:06,566 - 124756 - 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 (14338, 14339, 14341, 14344, 14346, 14351, 14420, 14424, 14425, 14426, 14430, 14431, 14432, 14447, 14466, 13962, 13964, 13965, 13971, 14489, 14505, 14509, 14513, 14532, 14537, 14031, 14037, 14562, 14052, 14053, 14059, 14571, 14578, 14580, 14070, 14586, 14080, 14614, 14615, 14616, 14620, 14626, 14627, 14632, 14633, 14634, 14637, 14638, 14640, 14641, 14642, 14643, 14653, 14654, 14655, 14657, 14662, 14663, 14667, 14668, 14669, 14671, 14676, 14682, 14693, 14725, 14728, 14775, 14795, 14819, 14318, 14319, 14320, 14321, 14329, 14330, 14845)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:18:07,127 - 124756 - src.utils.log - INFO - βœ… Fetched 2593 rows - __SPLIT__ 2026-07-17 10:18:07,128 - 124756 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-07-17 10:18:07,132 - 124756 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-07-17 10:18:07,132 - 124756 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId in (150529, 33786, 34818, 56836, 150533, 150534, 150535, 150031, 150032, 150546, 150547, 33785, 150549, 49685, 150551, 150552, 150554, 150556, 150557, 36892, 150559, 150560, 150561, 150562, 56867, 56864, 150566, 150571, 150573, 150574, 36910, 53806, 150579, 150580, 39481, 150588, 150589, 150592, 150595, 150598, 150600, 150601, 129618, 22612, 34905, 58460, 58462, 34910, 56414, 129633, 150625, 58472, 150637, 150640, 150641, 150642, 150649, 150650, 34428, 150654, 150655, 150656, 150657, 150660, 150665, 150666, 150671, 150673, 34450, 34965, 51356, 150173, 119474, 119476, 54453, 119480, 150205, 32958, 150207, 150210, 150214, 58567, 58571, 150222, 48334, 30416, 55510, 46811, 46813, 33508, 33509, 46820, 150252, 32492, 46320, 150264, 150265, 150266, 150269, 150289, 58649, 31001, 149787, 150303, 150309, 150312, 150313, 150314, 150334, 150338, 150352, 44538, 150355, 150358, 150359, 54615, 150361, 150365, 150370, 46434, 150374, 150375, 47462, 150379, 150380, 149870, 150383, 150384, 150385, 149874, 150387, 150392, 150394, 150395, 150396, 33659, 150398, 150400, 150401, 39813, 150410, 150412, 150414, 139663, 150417, 150418, 33681, 150420, 33684, 34709, 69019, 33694, 33701, 150439, 36264, 33706, 150444, 33709, 150446, 150447, 36270, 36271, 150450, 150451, 150452, 33716, 150454, 150455, 150456, 150457, 150458, 150459, 33723, 33724, 48573, 150470, 150471, 33735, 33736, 150475, 150480, 33746, 150483, 33752, 33754, 25052, 150495, 150496, 150497, 55775, 33763, 150501, 150503, 150504, 150510, 33775, 150003, 150516, 150518, 34295, 150521, 150522, 150524, 150525);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:18:07,416 - 124756 - src.utils.log - INFO - βœ… Fetched 7 rows - __SPLIT__ 2026-07-17 10:18:07,417 - 124756 - 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-07-17 00:00:00' and ServiceDate <= '2026-09-30 00:00:00' and ServiceSetupId in (150529, 33786, 34818, 56836, 150533, 150534, 150535, 150031, 150032, 150546, 150547, 33785, 150549, 49685, 150551, 150552, 150554, 150556, 150557, 36892, 150559, 150560, 150561, 150562, 56867, 56864, 150566, 150571, 150573, 150574, 36910, 53806, 150579, 150580, 39481, 150588, 150589, 150592, 150595, 150598, 150600, 150601, 129618, 22612, 34905, 58460, 58462, 34910, 56414, 129633, 150625, 58472, 150637, 150640, 150641, 150642, 150649, 150650, 34428, 150654, 150655, 150656, 150657, 150660, 150665, 150666, 150671, 150673, 34450, 34965, 51356, 150173, 119474, 119476, 54453, 119480, 150205, 32958, 150207, 150210, 150214, 58567, 58571, 150222, 48334, 30416, 55510, 46811, 46813, 33508, 33509, 46820, 150252, 32492, 46320, 150264, 150265, 150266, 150269, 150289, 58649, 31001, 149787, 150303, 150309, 150312, 150313, 150314, 150334, 150338, 150352, 44538, 150355, 150358, 150359, 54615, 150361, 150365, 150370, 46434, 150374, 150375, 47462, 150379, 150380, 149870, 150383, 150384, 150385, 149874, 150387, 150392, 150394, 150395, 150396, 33659, 150398, 150400, 150401, 39813, 150410, 150412, 150414, 139663, 150417, 150418, 33681, 150420, 33684, 34709, 69019, 33694, 33701, 150439, 36264, 33706, 150444, 33709, 150446, 150447, 36270, 36271, 150450, 150451, 150452, 33716, 150454, 150455, 150456, 150457, 150458, 150459, 33723, 33724, 48573, 150470, 150471, 33735, 33736, 150475, 150480, 33746, 150483, 33752, 33754, 25052, 150495, 150496, 150497, 55775, 33763, 150501, 150503, 150504, 150510, 33775, 150003, 150516, 150518, 34295, 150521, 150522, 150524, 150525) and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:18:07,721 - 124756 - src.utils.log - INFO - βœ… Fetched 449 rows - __SPLIT__ 2026-07-17 10:18:08,705 - 124756 - src.utils.log - INFO - Generating work orders for setup: 150334 - __SPLIT__ 2026-07-17 10:18:08,707 - 124756 - src.utils.log - INFO - Error processing schedule ID 14626: cannot access local variable 'sorted_service_dates' where it is not associated with a value - __SPLIT__ 2026-07-17 10:18:08,707 - 124756 - src.utils.log - INFO - Generating work orders for setup: 150410 - __SPLIT__ 2026-07-17 10:18:08,717 - 124756 - src.utils.log - INFO - Generating work orders for setup: 149874 - __SPLIT__ 2026-07-17 10:18:08,856 - 124756 - src.utils.log - INFO - Generating work orders for setup: 150533 - __SPLIT__ 2026-07-17 10:18:08,879 - 124756 - src.utils.log - INFO - Generating work orders for setup: 150534 - __SPLIT__ 2026-07-17 10:18:08,903 - 124756 - src.utils.log - INFO - Generating work orders for setup: 150352 - __SPLIT__ 2026-07-17 10:18:08,928 - 124756 - src.utils.log - INFO - Generating work orders for setup: 150447 - __SPLIT__ 2026-07-17 10:18:08,937 - 124756 - src.utils.log - INFO - Generating work orders for setup: 149787 - __SPLIT__ 2026-07-17 10:18:08,959 - 124756 - src.utils.log - INFO - Generating work orders for setup: 150214 - __SPLIT__ 2026-07-17 10:18:08,967 - 124756 - src.utils.log - INFO - Generating work orders for setup: 150205 - __SPLIT__ 2026-07-17 10:18:08,983 - 124756 - src.utils.log - INFO - Generating work orders for setup: 150210 - __SPLIT__ 2026-07-17 10:18:08,990 - 124756 - src.utils.log - INFO - Generating work orders for setup: 150222 - __SPLIT__ 2026-07-17 10:18:09,005 - 124756 - src.utils.log - INFO - Generating work orders for setup: 150265 - __SPLIT__ 2026-07-17 10:18:09,013 - 124756 - src.utils.log - INFO - Generating work orders for setup: 150266 - __SPLIT__ 2026-07-17 10:18:09,022 - 124756 - src.utils.log - INFO - Generating work orders for setup: 150303 - __SPLIT__ 2026-07-17 10:18:09,128 - 124756 - src.utils.log - INFO - Generating work orders for setup: 150309 - __SPLIT__ 2026-07-17 10:18:09,150 - 124756 - src.utils.log - INFO - Generating work orders for setup: 150312 - __SPLIT__ 2026-07-17 10:18:09,172 - 124756 - src.utils.log - INFO - Generating work orders for setup: 150313 - __SPLIT__ 2026-07-17 10:18:09,196 - 124756 - src.utils.log - INFO - Generating work orders for setup: 150314 - __SPLIT__ 2026-07-17 10:18:09,219 - 124756 - src.utils.log - INFO - Generating work orders for setup: 150338 - __SPLIT__ 2026-07-17 10:18:09,230 - 124756 - src.utils.log - INFO - Generating work orders for setup: 150359 - __SPLIT__ 2026-07-17 10:18:09,240 - 124756 - src.utils.log - INFO - Generating work orders for setup: 150355 - __SPLIT__ 2026-07-17 10:18:09,249 - 124756 - src.utils.log - INFO - Generating work orders for setup: 150358 - __SPLIT__ 2026-07-17 10:18:09,272 - 124756 - src.utils.log - INFO - Generating work orders for setup: 150361 - __SPLIT__ 2026-07-17 10:18:09,281 - 124756 - src.utils.log - INFO - Generating work orders for setup: 150365 - __SPLIT__ 2026-07-17 10:18:09,290 - 124756 - src.utils.log - INFO - Generating work orders for setup: 150370 - __SPLIT__ 2026-07-17 10:18:09,300 - 124756 - src.utils.log - INFO - Generating work orders for setup: 150556 - __SPLIT__ 2026-07-17 10:18:09,310 - 124756 - src.utils.log - INFO - Generating work orders for setup: 150374 - __SPLIT__ 2026-07-17 10:18:09,319 - 124756 - src.utils.log - INFO - Generating work orders for setup: 150375 - __SPLIT__ 2026-07-17 10:18:09,329 - 124756 - src.utils.log - INFO - Generating work orders for setup: 150379 - __SPLIT__ 2026-07-17 10:18:09,338 - 124756 - src.utils.log - INFO - Generating work orders for setup: 150380 - __SPLIT__ 2026-07-17 10:18:09,347 - 124756 - src.utils.log - INFO - Generating work orders for setup: 150383 - __SPLIT__ 2026-07-17 10:18:09,356 - 124756 - src.utils.log - INFO - Generating work orders for setup: 150384 - __SPLIT__ 2026-07-17 10:18:09,365 - 124756 - src.utils.log - INFO - Generating work orders for setup: 150385 - __SPLIT__ 2026-07-17 10:18:09,374 - 124756 - src.utils.log - INFO - Generating work orders for setup: 150387 - __SPLIT__ 2026-07-17 10:18:09,384 - 124756 - src.utils.log - INFO - Generating work orders for setup: 150392 - __SPLIT__ 2026-07-17 10:18:09,393 - 124756 - src.utils.log - INFO - Generating work orders for setup: 150394 - __SPLIT__ 2026-07-17 10:18:09,402 - 124756 - src.utils.log - INFO - Generating work orders for setup: 150395 - __SPLIT__ 2026-07-17 10:18:09,412 - 124756 - src.utils.log - INFO - Generating work orders for setup: 150396 - __SPLIT__ 2026-07-17 10:18:09,422 - 124756 - src.utils.log - INFO - Generating work orders for setup: 150398 - __SPLIT__ 2026-07-17 10:18:09,431 - 124756 - src.utils.log - INFO - Generating work orders for setup: 150400 - __SPLIT__ 2026-07-17 10:18:09,441 - 124756 - src.utils.log - INFO - Generating work orders for setup: 150401 - __SPLIT__ 2026-07-17 10:18:09,450 - 124756 - src.utils.log - INFO - Generating work orders for setup: 150412 - __SPLIT__ 2026-07-17 10:18:09,467 - 124756 - src.utils.log - INFO - Generating work orders for setup: 150414 - __SPLIT__ 2026-07-17 10:18:09,477 - 124756 - src.utils.log - INFO - Generating work orders for setup: 150417 - __SPLIT__ 2026-07-17 10:18:09,509 - 124756 - src.utils.log - INFO - Generating work orders for setup: 150418 - __SPLIT__ 2026-07-17 10:18:09,583 - 124756 - src.utils.log - INFO - Generating work orders for setup: 150420 - __SPLIT__ 2026-07-17 10:18:09,600 - 124756 - src.utils.log - INFO - Generating work orders for setup: 150439 - __SPLIT__ 2026-07-17 10:18:09,635 - 124756 - src.utils.log - INFO - Generating work orders for setup: 150444 - __SPLIT__ 2026-07-17 10:18:09,661 - 124756 - src.utils.log - INFO - Generating work orders for setup: 150446 - __SPLIT__ 2026-07-17 10:18:09,670 - 124756 - src.utils.log - INFO - Generating work orders for setup: 150450 - __SPLIT__ 2026-07-17 10:18:09,680 - 124756 - src.utils.log - INFO - Generating work orders for setup: 150451 - __SPLIT__ 2026-07-17 10:18:09,705 - 124756 - src.utils.log - INFO - Generating work orders for setup: 150452 - __SPLIT__ 2026-07-17 10:18:09,731 - 124756 - src.utils.log - INFO - Generating work orders for setup: 150454 - __SPLIT__ 2026-07-17 10:18:09,757 - 124756 - src.utils.log - INFO - Generating work orders for setup: 150455 - __SPLIT__ 2026-07-17 10:18:09,766 - 124756 - src.utils.log - INFO - Generating work orders for setup: 150456 - __SPLIT__ 2026-07-17 10:18:09,776 - 124756 - src.utils.log - INFO - Generating work orders for setup: 150457 - __SPLIT__ 2026-07-17 10:18:09,787 - 124756 - src.utils.log - INFO - Generating work orders for setup: 150458 - __SPLIT__ 2026-07-17 10:18:09,797 - 124756 - src.utils.log - INFO - Generating work orders for setup: 150459 - __SPLIT__ 2026-07-17 10:18:09,807 - 124756 - src.utils.log - INFO - Generating work orders for setup: 150470 - __SPLIT__ 2026-07-17 10:18:09,833 - 124756 - src.utils.log - INFO - Generating work orders for setup: 150495 - __SPLIT__ 2026-07-17 10:18:09,844 - 124756 - src.utils.log - INFO - Generating work orders for setup: 150497 - __SPLIT__ 2026-07-17 10:18:09,860 - 124756 - src.utils.log - INFO - Generating work orders for setup: 150475 - __SPLIT__ 2026-07-17 10:18:09,870 - 124756 - src.utils.log - INFO - Generating work orders for setup: 150480 - __SPLIT__ 2026-07-17 10:18:09,905 - 124756 - src.utils.log - INFO - Generating work orders for setup: 150483 - __SPLIT__ 2026-07-17 10:18:09,915 - 124756 - src.utils.log - INFO - Generating work orders for setup: 150496 - __SPLIT__ 2026-07-17 10:18:09,950 - 124756 - src.utils.log - INFO - Generating work orders for setup: 150501 - __SPLIT__ 2026-07-17 10:18:09,961 - 124756 - src.utils.log - INFO - Generating work orders for setup: 150503 - __SPLIT__ 2026-07-17 10:18:09,994 - 124756 - src.utils.log - INFO - Generating work orders for setup: 150504 - __SPLIT__ 2026-07-17 10:18:10,029 - 124756 - src.utils.log - INFO - Generating work orders for setup: 150510 - __SPLIT__ 2026-07-17 10:18:10,064 - 124756 - src.utils.log - INFO - Generating work orders for setup: 150516 - __SPLIT__ 2026-07-17 10:18:10,075 - 124756 - src.utils.log - INFO - Generating work orders for setup: 150521 - __SPLIT__ 2026-07-17 10:18:10,165 - 124756 - src.utils.log - INFO - Generating work orders for setup: 150522 - __SPLIT__ 2026-07-17 10:18:10,176 - 124756 - src.utils.log - INFO - Generating work orders for setup: 150524 - __SPLIT__ 2026-07-17 10:18:10,197 - 124756 - src.utils.log - INFO - Generating work orders for setup: 150525 - __SPLIT__ 2026-07-17 10:18:10,231 - 124756 - src.utils.log - INFO - Generating work orders for setup: 150529 - __SPLIT__ 2026-07-17 10:18:10,257 - 124756 - src.utils.log - INFO - Generating work orders for setup: 150535 - __SPLIT__ 2026-07-17 10:18:10,267 - 124756 - src.utils.log - INFO - Generating work orders for setup: 150546 - __SPLIT__ 2026-07-17 10:18:10,304 - 124756 - src.utils.log - INFO - Generating work orders for setup: 150547 - __SPLIT__ 2026-07-17 10:18:10,314 - 124756 - src.utils.log - INFO - Generating work orders for setup: 150549 - __SPLIT__ 2026-07-17 10:18:10,324 - 124756 - src.utils.log - INFO - Generating work orders for setup: 150551 - __SPLIT__ 2026-07-17 10:18:10,350 - 124756 - src.utils.log - INFO - Generating work orders for setup: 150552 - __SPLIT__ 2026-07-17 10:18:10,376 - 124756 - src.utils.log - INFO - Generating work orders for setup: 150554 - __SPLIT__ 2026-07-17 10:18:10,387 - 124756 - src.utils.log - INFO - Generating work orders for setup: 150557 - __SPLIT__ 2026-07-17 10:18:10,397 - 124756 - src.utils.log - INFO - Generating work orders for setup: 150566 - __SPLIT__ 2026-07-17 10:18:10,423 - 124756 - src.utils.log - INFO - Generating work orders for setup: 150559 - __SPLIT__ 2026-07-17 10:18:10,433 - 124756 - src.utils.log - INFO - Generating work orders for setup: 150560 - __SPLIT__ 2026-07-17 10:18:10,444 - 124756 - src.utils.log - INFO - Generating work orders for setup: 150561 - __SPLIT__ 2026-07-17 10:18:10,454 - 124756 - src.utils.log - INFO - Generating work orders for setup: 150562 - __SPLIT__ 2026-07-17 10:18:10,464 - 124756 - src.utils.log - INFO - Generating work orders for setup: 150598 - __SPLIT__ 2026-07-17 10:18:10,691 - 124756 - src.utils.log - INFO - Generating work orders for setup: 150571 - __SPLIT__ 2026-07-17 10:18:10,717 - 124756 - src.utils.log - INFO - Generating work orders for setup: 150573 - __SPLIT__ 2026-07-17 10:18:10,728 - 124756 - src.utils.log - INFO - Generating work orders for setup: 150574 - __SPLIT__ 2026-07-17 10:18:10,762 - 124756 - src.utils.log - INFO - Generating work orders for setup: 150579 - __SPLIT__ 2026-07-17 10:18:10,773 - 124756 - src.utils.log - INFO - Generating work orders for setup: 150580 - __SPLIT__ 2026-07-17 10:18:10,783 - 124756 - src.utils.log - INFO - Generating work orders for setup: 150588 - __SPLIT__ 2026-07-17 10:18:10,793 - 124756 - src.utils.log - INFO - Generating work orders for setup: 150589 - __SPLIT__ 2026-07-17 10:18:10,836 - 124756 - src.utils.log - INFO - Generating work orders for setup: 150595 - __SPLIT__ 2026-07-17 10:18:10,847 - 124756 - src.utils.log - INFO - Generating work orders for setup: 150600 - __SPLIT__ 2026-07-17 10:18:10,859 - 124756 - src.utils.log - INFO - Generating work orders for setup: 150601 - __SPLIT__ 2026-07-17 10:18:10,870 - 124756 - src.utils.log - INFO - Generating work orders for setup: 150625 - __SPLIT__ 2026-07-17 10:18:10,881 - 124756 - src.utils.log - INFO - Generating work orders for setup: 150637 - __SPLIT__ 2026-07-17 10:18:10,892 - 124756 - src.utils.log - INFO - Generating work orders for setup: 150655 - __SPLIT__ 2026-07-17 10:18:10,902 - 124756 - src.utils.log - INFO - Generating work orders for setup: 150656 - __SPLIT__ 2026-07-17 10:18:10,912 - 124756 - src.utils.log - INFO - Generating work orders for setup: 150657 - __SPLIT__ 2026-07-17 10:18:10,922 - 124756 - src.utils.log - INFO - Generating work orders for setup: 150640 - __SPLIT__ 2026-07-17 10:18:11,397 - 124756 - src.utils.log - INFO - Generating work orders for setup: 150660 - __SPLIT__ 2026-07-17 10:18:11,407 - 124756 - src.utils.log - INFO - Generating work orders for setup: 150641 - __SPLIT__ 2026-07-17 10:18:11,680 - 124756 - src.utils.log - INFO - Generating work orders for setup: 150642 - __SPLIT__ 2026-07-17 10:18:11,888 - 124756 - src.utils.log - INFO - Generating work orders for setup: 150649 - __SPLIT__ 2026-07-17 10:18:11,910 - 124756 - src.utils.log - INFO - Generating work orders for setup: 150650 - __SPLIT__ 2026-07-17 10:18:12,128 - 124756 - src.utils.log - INFO - Generating work orders for setup: 150654 - __SPLIT__ 2026-07-17 10:18:12,149 - 124756 - src.utils.log - INFO - Generating work orders for setup: 150665 - __SPLIT__ 2026-07-17 10:18:12,160 - 124756 - src.utils.log - INFO - Generating work orders for setup: 150666 - __SPLIT__ 2026-07-17 10:18:12,171 - 124756 - src.utils.log - INFO - Generating work orders for setup: 150671 - __SPLIT__ 2026-07-17 10:18:12,183 - 124756 - src.utils.log - INFO - Generating work orders for setup: 150673 - __SPLIT__ 2026-07-17 10:18:12,432 - 124756 - src.utils.log - INFO - Generating work orders for setup: 25052 - __SPLIT__ 2026-07-17 10:18:12,444 - 124756 - src.utils.log - INFO - Generating work orders for setup: 30416 - __SPLIT__ 2026-07-17 10:18:12,455 - 124756 - src.utils.log - INFO - Generating work orders for setup: 31001 - __SPLIT__ 2026-07-17 10:18:12,465 - 124756 - src.utils.log - INFO - Generating work orders for setup: 56867 - __SPLIT__ 2026-07-17 10:18:12,475 - 124756 - src.utils.log - INFO - Generating work orders for setup: 32492 - __SPLIT__ 2026-07-17 10:18:12,485 - 124756 - src.utils.log - INFO - Generating work orders for setup: 56836 - __SPLIT__ 2026-07-17 10:18:12,494 - 124756 - src.utils.log - INFO - Generating work orders for setup: 33508 - __SPLIT__ 2026-07-17 10:18:12,504 - 124756 - src.utils.log - INFO - Generating work orders for setup: 33509 - __SPLIT__ 2026-07-17 10:18:12,514 - 124756 - src.utils.log - INFO - Generating work orders for setup: 33659 - __SPLIT__ 2026-07-17 10:18:12,526 - 124756 - src.utils.log - INFO - Generating work orders for setup: 33681 - __SPLIT__ 2026-07-17 10:18:12,536 - 124756 - src.utils.log - INFO - Generating work orders for setup: 33684 - __SPLIT__ 2026-07-17 10:18:12,546 - 124756 - src.utils.log - INFO - Generating work orders for setup: 33694 - __SPLIT__ 2026-07-17 10:18:12,557 - 124756 - src.utils.log - INFO - Generating work orders for setup: 33701 - __SPLIT__ 2026-07-17 10:18:12,568 - 124756 - src.utils.log - INFO - Generating work orders for setup: 33706 - __SPLIT__ 2026-07-17 10:18:12,579 - 124756 - src.utils.log - INFO - Generating work orders for setup: 33709 - __SPLIT__ 2026-07-17 10:18:12,590 - 124756 - src.utils.log - INFO - Generating work orders for setup: 33716 - __SPLIT__ 2026-07-17 10:18:12,601 - 124756 - src.utils.log - INFO - Generating work orders for setup: 33723 - __SPLIT__ 2026-07-17 10:18:12,611 - 124756 - src.utils.log - INFO - Generating work orders for setup: 33724 - __SPLIT__ 2026-07-17 10:18:12,620 - 124756 - src.utils.log - INFO - Generating work orders for setup: 33735 - __SPLIT__ 2026-07-17 10:18:12,630 - 124756 - src.utils.log - INFO - Generating work orders for setup: 33736 - __SPLIT__ 2026-07-17 10:18:12,640 - 124756 - src.utils.log - INFO - Generating work orders for setup: 33746 - __SPLIT__ 2026-07-17 10:18:12,650 - 124756 - src.utils.log - INFO - Generating work orders for setup: 33752 - __SPLIT__ 2026-07-17 10:18:12,660 - 124756 - src.utils.log - INFO - Generating work orders for setup: 33754 - __SPLIT__ 2026-07-17 10:18:12,670 - 124756 - src.utils.log - INFO - Generating work orders for setup: 33763 - __SPLIT__ 2026-07-17 10:18:12,680 - 124756 - src.utils.log - INFO - Generating work orders for setup: 33775 - __SPLIT__ 2026-07-17 10:18:12,690 - 124756 - src.utils.log - INFO - Generating work orders for setup: 33785 - __SPLIT__ 2026-07-17 10:18:12,700 - 124756 - src.utils.log - INFO - Generating work orders for setup: 33786 - __SPLIT__ 2026-07-17 10:18:12,711 - 124756 - src.utils.log - INFO - Generating work orders for setup: 34295 - __SPLIT__ 2026-07-17 10:18:12,722 - 124756 - src.utils.log - INFO - Generating work orders for setup: 34428 - __SPLIT__ 2026-07-17 10:18:12,732 - 124756 - src.utils.log - INFO - Generating work orders for setup: 34450 - __SPLIT__ 2026-07-17 10:18:12,742 - 124756 - src.utils.log - INFO - Generating work orders for setup: 34709 - __SPLIT__ 2026-07-17 10:18:12,752 - 124756 - src.utils.log - INFO - Generating work orders for setup: 34818 - __SPLIT__ 2026-07-17 10:18:12,762 - 124756 - src.utils.log - INFO - Generating work orders for setup: 34905 - __SPLIT__ 2026-07-17 10:18:12,772 - 124756 - src.utils.log - INFO - Generating work orders for setup: 34965 - __SPLIT__ 2026-07-17 10:18:12,781 - 124756 - src.utils.log - INFO - Generating work orders for setup: 36264 - __SPLIT__ 2026-07-17 10:18:12,791 - 124756 - src.utils.log - INFO - Generating work orders for setup: 36270 - __SPLIT__ 2026-07-17 10:18:12,801 - 124756 - src.utils.log - INFO - Generating work orders for setup: 36271 - __SPLIT__ 2026-07-17 10:18:12,811 - 124756 - src.utils.log - INFO - Generating work orders for setup: 36910 - __SPLIT__ 2026-07-17 10:18:12,821 - 124756 - src.utils.log - INFO - Generating work orders for setup: 39813 - __SPLIT__ 2026-07-17 10:18:12,832 - 124756 - src.utils.log - INFO - Generating work orders for setup: 49685 - __SPLIT__ 2026-07-17 10:18:12,842 - 124756 - src.utils.log - INFO - Generating work orders for setup: 54615 - __SPLIT__ 2026-07-17 10:18:12,854 - 124756 - src.utils.log - INFO - Generating work orders for setup: 55775 - __SPLIT__ 2026-07-17 10:18:12,863 - 124756 - src.utils.log - INFO - Generating work orders for setup: 46811 - __SPLIT__ 2026-07-17 10:18:12,873 - 124756 - src.utils.log - INFO - Generating work orders for setup: 46813 - __SPLIT__ 2026-07-17 10:18:12,883 - 124756 - src.utils.log - INFO - Generating work orders for setup: 46820 - __SPLIT__ 2026-07-17 10:18:12,894 - 124756 - src.utils.log - INFO - Generating work orders for setup: 56864 - __SPLIT__ 2026-07-17 10:18:12,904 - 124756 - src.utils.log - INFO - Generating work orders for setup: 150518 - __SPLIT__ 2026-07-17 10:18:12,933 - 124756 - src.utils.log - INFO - Generating work orders for setup: 150592 - __SPLIT__ 2026-07-17 10:18:12,952 - 124756 - src.utils.log - INFO - Generating work orders for setup: 56414 - __SPLIT__ 2026-07-17 10:18:12,963 - 124756 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId in (11428.0, 1127.0, 1131.0, 1132.0, 1133.0);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:18:13,230 - 124756 - src.utils.log - INFO - βœ… Fetched 5 rows - __SPLIT__ 2026-07-17 10:18:13,240 - 124756 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId in (11426.0, 11427.0, 11428.0, 11429.0, 1127.0, 1129.0, 1130.0, 1131.0, 11436.0, 1133.0, 1132.0, 11437.0, 1035.0, 11438.0, -1.0);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:18:13,508 - 124756 - src.utils.log - INFO - βœ… Fetched 14 rows - __SPLIT__ 2026-07-17 10:18:13,626 - 124756 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-07-17 10:18:14,218 - 124756 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=133 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:18:14,484 - 124756 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 10:18:14,487 - 124756 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-07-17 10:18:14,487 - 124756 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-07-17 10:18:14,487 - 124756 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (150529, 33786, 34818, 56836, 150533, 150534, 150535, 150031, 150032, 150546, 150547, 33785, 150549, 49685, 150551, 150552, 150554, 150556, 150557, 36892, 150559, 150560, 150561, 150562, 56867, 56864, 150566, 150571, 150573, 150574, 36910, 53806, 150579, 150580, 39481, 150588, 150589, 150592, 150595, 150598, 150600, 150601, 129618, 22612, 34905, 58460, 58462, 34910, 56414, 129633, 150625, 58472, 150637, 150640, 150641, 150642, 150649, 150650, 34428, 150654, 150655, 150656, 150657, 150660, 150665, 150666, 150671, 150673, 34450, 34965, 51356, 150173, 119474, 119476, 54453, 119480, 150205, 32958, 150207, 150210, 150214, 58567, 58571, 150222, 48334, 30416, 55510, 46811, 46813, 33508, 33509, 46820, 150252, 32492, 46320, 150264, 150265, 150266, 150269, 150289, 58649, 31001, 149787, 150303, 150309, 150312, 150313, 150314, 150334, 150338, 150352, 44538, 150355, 150358, 150359, 54615, 150361, 150365, 150370, 46434, 150374, 150375, 47462, 150379, 150380, 149870, 150383, 150384, 150385, 149874, 150387, 150392, 150394, 150395, 150396, 33659, 150398, 150400, 150401, 39813, 150410, 150412, 150414, 139663, 150417, 150418, 33681, 150420, 33684, 34709, 69019, 33694, 33701, 150439, 36264, 33706, 150444, 33709, 150446, 150447, 36270, 36271, 150450, 150451, 150452, 33716, 150454, 150455, 150456, 150457, 150458, 150459, 33723, 33724, 48573, 150470, 150471, 33735, 33736, 150475, 150480, 33746, 150483, 33752, 33754, 25052, 150495, 150496, 150497, 55775, 33763, 150501, 150503, 150504, 150510, 33775, 150003, 150516, 150518, 34295, 150521, 150522, 150524, 150525) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:18:14,867 - 124756 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 10:18:14,868 - 124756 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (150529, 33786, 34818, 56836, 150533, 150534, 150535, 150031, 150032, 150546, 150547, 33785, 150549, 49685, 150551, 150552, 150554, 150556, 150557, 36892, 150559, 150560, 150561, 150562, 56867, 56864, 150566, 150571, 150573, 150574, 36910, 53806, 150579, 150580, 39481, 150588, 150589, 150592, 150595, 150598, 150600, 150601, 129618, 22612, 34905, 58460, 58462, 34910, 56414, 129633, 150625, 58472, 150637, 150640, 150641, 150642, 150649, 150650, 34428, 150654, 150655, 150656, 150657, 150660, 150665, 150666, 150671, 150673, 34450, 34965, 51356, 150173, 119474, 119476, 54453, 119480, 150205, 32958, 150207, 150210, 150214, 58567, 58571, 150222, 48334, 30416, 55510, 46811, 46813, 33508, 33509, 46820, 150252, 32492, 46320, 150264, 150265, 150266, 150269, 150289, 58649, 31001, 149787, 150303, 150309, 150312, 150313, 150314, 150334, 150338, 150352, 44538, 150355, 150358, 150359, 54615, 150361, 150365, 150370, 46434, 150374, 150375, 47462, 150379, 150380, 149870, 150383, 150384, 150385, 149874, 150387, 150392, 150394, 150395, 150396, 33659, 150398, 150400, 150401, 39813, 150410, 150412, 150414, 139663, 150417, 150418, 33681, 150420, 33684, 34709, 69019, 33694, 33701, 150439, 36264, 33706, 150444, 33709, 150446, 150447, 36270, 36271, 150450, 150451, 150452, 33716, 150454, 150455, 150456, 150457, 150458, 150459, 33723, 33724, 48573, 150470, 150471, 33735, 33736, 150475, 150480, 33746, 150483, 33752, 33754, 25052, 150495, 150496, 150497, 55775, 33763, 150501, 150503, 150504, 150510, 33775, 150003, 150516, 150518, 34295, 150521, 150522, 150524, 150525) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:18:15,222 - 124756 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 10:18:15,222 - 124756 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (150529, 33786, 34818, 56836, 150533, 150534, 150535, 150031, 150032, 150546, 150547, 33785, 150549, 49685, 150551, 150552, 150554, 150556, 150557, 36892, 150559, 150560, 150561, 150562, 56867, 56864, 150566, 150571, 150573, 150574, 36910, 53806, 150579, 150580, 39481, 150588, 150589, 150592, 150595, 150598, 150600, 150601, 129618, 22612, 34905, 58460, 58462, 34910, 56414, 129633, 150625, 58472, 150637, 150640, 150641, 150642, 150649, 150650, 34428, 150654, 150655, 150656, 150657, 150660, 150665, 150666, 150671, 150673, 34450, 34965, 51356, 150173, 119474, 119476, 54453, 119480, 150205, 32958, 150207, 150210, 150214, 58567, 58571, 150222, 48334, 30416, 55510, 46811, 46813, 33508, 33509, 46820, 150252, 32492, 46320, 150264, 150265, 150266, 150269, 150289, 58649, 31001, 149787, 150303, 150309, 150312, 150313, 150314, 150334, 150338, 150352, 44538, 150355, 150358, 150359, 54615, 150361, 150365, 150370, 46434, 150374, 150375, 47462, 150379, 150380, 149870, 150383, 150384, 150385, 149874, 150387, 150392, 150394, 150395, 150396, 33659, 150398, 150400, 150401, 39813, 150410, 150412, 150414, 139663, 150417, 150418, 33681, 150420, 33684, 34709, 69019, 33694, 33701, 150439, 36264, 33706, 150444, 33709, 150446, 150447, 36270, 36271, 150450, 150451, 150452, 33716, 150454, 150455, 150456, 150457, 150458, 150459, 33723, 33724, 48573, 150470, 150471, 33735, 33736, 150475, 150480, 33746, 150483, 33752, 33754, 25052, 150495, 150496, 150497, 55775, 33763, 150501, 150503, 150504, 150510, 33775, 150003, 150516, 150518, 34295, 150521, 150522, 150524, 150525) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:18:15,513 - 124756 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 10:18:15,514 - 124756 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (150529, 33786, 34818, 56836, 150533, 150534, 150535, 150031, 150032, 150546, 150547, 33785, 150549, 49685, 150551, 150552, 150554, 150556, 150557, 36892, 150559, 150560, 150561, 150562, 56867, 56864, 150566, 150571, 150573, 150574, 36910, 53806, 150579, 150580, 39481, 150588, 150589, 150592, 150595, 150598, 150600, 150601, 129618, 22612, 34905, 58460, 58462, 34910, 56414, 129633, 150625, 58472, 150637, 150640, 150641, 150642, 150649, 150650, 34428, 150654, 150655, 150656, 150657, 150660, 150665, 150666, 150671, 150673, 34450, 34965, 51356, 150173, 119474, 119476, 54453, 119480, 150205, 32958, 150207, 150210, 150214, 58567, 58571, 150222, 48334, 30416, 55510, 46811, 46813, 33508, 33509, 46820, 150252, 32492, 46320, 150264, 150265, 150266, 150269, 150289, 58649, 31001, 149787, 150303, 150309, 150312, 150313, 150314, 150334, 150338, 150352, 44538, 150355, 150358, 150359, 54615, 150361, 150365, 150370, 46434, 150374, 150375, 47462, 150379, 150380, 149870, 150383, 150384, 150385, 149874, 150387, 150392, 150394, 150395, 150396, 33659, 150398, 150400, 150401, 39813, 150410, 150412, 150414, 139663, 150417, 150418, 33681, 150420, 33684, 34709, 69019, 33694, 33701, 150439, 36264, 33706, 150444, 33709, 150446, 150447, 36270, 36271, 150450, 150451, 150452, 33716, 150454, 150455, 150456, 150457, 150458, 150459, 33723, 33724, 48573, 150470, 150471, 33735, 33736, 150475, 150480, 33746, 150483, 33752, 33754, 25052, 150495, 150496, 150497, 55775, 33763, 150501, 150503, 150504, 150510, 33775, 150003, 150516, 150518, 34295, 150521, 150522, 150524, 150525) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:18:15,876 - 124756 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 10:18:15,876 - 124756 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (150529, 33786, 34818, 56836, 150533, 150534, 150535, 150031, 150032, 150546, 150547, 33785, 150549, 49685, 150551, 150552, 150554, 150556, 150557, 36892, 150559, 150560, 150561, 150562, 56867, 56864, 150566, 150571, 150573, 150574, 36910, 53806, 150579, 150580, 39481, 150588, 150589, 150592, 150595, 150598, 150600, 150601, 129618, 22612, 34905, 58460, 58462, 34910, 56414, 129633, 150625, 58472, 150637, 150640, 150641, 150642, 150649, 150650, 34428, 150654, 150655, 150656, 150657, 150660, 150665, 150666, 150671, 150673, 34450, 34965, 51356, 150173, 119474, 119476, 54453, 119480, 150205, 32958, 150207, 150210, 150214, 58567, 58571, 150222, 48334, 30416, 55510, 46811, 46813, 33508, 33509, 46820, 150252, 32492, 46320, 150264, 150265, 150266, 150269, 150289, 58649, 31001, 149787, 150303, 150309, 150312, 150313, 150314, 150334, 150338, 150352, 44538, 150355, 150358, 150359, 54615, 150361, 150365, 150370, 46434, 150374, 150375, 47462, 150379, 150380, 149870, 150383, 150384, 150385, 149874, 150387, 150392, 150394, 150395, 150396, 33659, 150398, 150400, 150401, 39813, 150410, 150412, 150414, 139663, 150417, 150418, 33681, 150420, 33684, 34709, 69019, 33694, 33701, 150439, 36264, 33706, 150444, 33709, 150446, 150447, 36270, 36271, 150450, 150451, 150452, 33716, 150454, 150455, 150456, 150457, 150458, 150459, 33723, 33724, 48573, 150470, 150471, 33735, 33736, 150475, 150480, 33746, 150483, 33752, 33754, 25052, 150495, 150496, 150497, 55775, 33763, 150501, 150503, 150504, 150510, 33775, 150003, 150516, 150518, 34295, 150521, 150522, 150524, 150525) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:18:16,228 - 124756 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 10:18:16,229 - 124756 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (150529, 33786, 34818, 56836, 150533, 150534, 150535, 150031, 150032, 150546, 150547, 33785, 150549, 49685, 150551, 150552, 150554, 150556, 150557, 36892, 150559, 150560, 150561, 150562, 56867, 56864, 150566, 150571, 150573, 150574, 36910, 53806, 150579, 150580, 39481, 150588, 150589, 150592, 150595, 150598, 150600, 150601, 129618, 22612, 34905, 58460, 58462, 34910, 56414, 129633, 150625, 58472, 150637, 150640, 150641, 150642, 150649, 150650, 34428, 150654, 150655, 150656, 150657, 150660, 150665, 150666, 150671, 150673, 34450, 34965, 51356, 150173, 119474, 119476, 54453, 119480, 150205, 32958, 150207, 150210, 150214, 58567, 58571, 150222, 48334, 30416, 55510, 46811, 46813, 33508, 33509, 46820, 150252, 32492, 46320, 150264, 150265, 150266, 150269, 150289, 58649, 31001, 149787, 150303, 150309, 150312, 150313, 150314, 150334, 150338, 150352, 44538, 150355, 150358, 150359, 54615, 150361, 150365, 150370, 46434, 150374, 150375, 47462, 150379, 150380, 149870, 150383, 150384, 150385, 149874, 150387, 150392, 150394, 150395, 150396, 33659, 150398, 150400, 150401, 39813, 150410, 150412, 150414, 139663, 150417, 150418, 33681, 150420, 33684, 34709, 69019, 33694, 33701, 150439, 36264, 33706, 150444, 33709, 150446, 150447, 36270, 36271, 150450, 150451, 150452, 33716, 150454, 150455, 150456, 150457, 150458, 150459, 33723, 33724, 48573, 150470, 150471, 33735, 33736, 150475, 150480, 33746, 150483, 33752, 33754, 25052, 150495, 150496, 150497, 55775, 33763, 150501, 150503, 150504, 150510, 33775, 150003, 150516, 150518, 34295, 150521, 150522, 150524, 150525) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:18:16,523 - 124756 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 10:18:16,524 - 124756 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (150529, 33786, 34818, 56836, 150533, 150534, 150535, 150031, 150032, 150546, 150547, 33785, 150549, 49685, 150551, 150552, 150554, 150556, 150557, 36892, 150559, 150560, 150561, 150562, 56867, 56864, 150566, 150571, 150573, 150574, 36910, 53806, 150579, 150580, 39481, 150588, 150589, 150592, 150595, 150598, 150600, 150601, 129618, 22612, 34905, 58460, 58462, 34910, 56414, 129633, 150625, 58472, 150637, 150640, 150641, 150642, 150649, 150650, 34428, 150654, 150655, 150656, 150657, 150660, 150665, 150666, 150671, 150673, 34450, 34965, 51356, 150173, 119474, 119476, 54453, 119480, 150205, 32958, 150207, 150210, 150214, 58567, 58571, 150222, 48334, 30416, 55510, 46811, 46813, 33508, 33509, 46820, 150252, 32492, 46320, 150264, 150265, 150266, 150269, 150289, 58649, 31001, 149787, 150303, 150309, 150312, 150313, 150314, 150334, 150338, 150352, 44538, 150355, 150358, 150359, 54615, 150361, 150365, 150370, 46434, 150374, 150375, 47462, 150379, 150380, 149870, 150383, 150384, 150385, 149874, 150387, 150392, 150394, 150395, 150396, 33659, 150398, 150400, 150401, 39813, 150410, 150412, 150414, 139663, 150417, 150418, 33681, 150420, 33684, 34709, 69019, 33694, 33701, 150439, 36264, 33706, 150444, 33709, 150446, 150447, 36270, 36271, 150450, 150451, 150452, 33716, 150454, 150455, 150456, 150457, 150458, 150459, 33723, 33724, 48573, 150470, 150471, 33735, 33736, 150475, 150480, 33746, 150483, 33752, 33754, 25052, 150495, 150496, 150497, 55775, 33763, 150501, 150503, 150504, 150510, 33775, 150003, 150516, 150518, 34295, 150521, 150522, 150524, 150525) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:18:16,810 - 124756 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 10:18:16,810 - 124756 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (150529, 33786, 34818, 56836, 150533, 150534, 150535, 150031, 150032, 150546, 150547, 33785, 150549, 49685, 150551, 150552, 150554, 150556, 150557, 36892, 150559, 150560, 150561, 150562, 56867, 56864, 150566, 150571, 150573, 150574, 36910, 53806, 150579, 150580, 39481, 150588, 150589, 150592, 150595, 150598, 150600, 150601, 129618, 22612, 34905, 58460, 58462, 34910, 56414, 129633, 150625, 58472, 150637, 150640, 150641, 150642, 150649, 150650, 34428, 150654, 150655, 150656, 150657, 150660, 150665, 150666, 150671, 150673, 34450, 34965, 51356, 150173, 119474, 119476, 54453, 119480, 150205, 32958, 150207, 150210, 150214, 58567, 58571, 150222, 48334, 30416, 55510, 46811, 46813, 33508, 33509, 46820, 150252, 32492, 46320, 150264, 150265, 150266, 150269, 150289, 58649, 31001, 149787, 150303, 150309, 150312, 150313, 150314, 150334, 150338, 150352, 44538, 150355, 150358, 150359, 54615, 150361, 150365, 150370, 46434, 150374, 150375, 47462, 150379, 150380, 149870, 150383, 150384, 150385, 149874, 150387, 150392, 150394, 150395, 150396, 33659, 150398, 150400, 150401, 39813, 150410, 150412, 150414, 139663, 150417, 150418, 33681, 150420, 33684, 34709, 69019, 33694, 33701, 150439, 36264, 33706, 150444, 33709, 150446, 150447, 36270, 36271, 150450, 150451, 150452, 33716, 150454, 150455, 150456, 150457, 150458, 150459, 33723, 33724, 48573, 150470, 150471, 33735, 33736, 150475, 150480, 33746, 150483, 33752, 33754, 25052, 150495, 150496, 150497, 55775, 33763, 150501, 150503, 150504, 150510, 33775, 150003, 150516, 150518, 34295, 150521, 150522, 150524, 150525) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:18:18,316 - 124756 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 10:18:18,316 - 124756 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-17 10:18:18,316 - 124756 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 336 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:18:18,620 - 124756 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 336) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-07-17 10:18:26,455 - 124756 - src.utils.log - INFO - βœ… All 336 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-07-17 10:18:26,456 - 124756 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 336 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-07-16 14:51:40.406' and ServiceSetupId in (150529, 33786, 34818, 56836, 150533, 150534, 150535, 150031, 150032, 150546, 150547, 33785, 150549, 49685, 150551, 150552, 150554, 150556, 150557, 36892, 150559, 150560, 150561, 150562, 56867, 56864, 150566, 150571, 150573, 150574, 36910, 53806, 150579, 150580, 39481, 150588, 150589, 150592, 150595, 150598, 150600, 150601, 129618, 22612, 34905, 58460, 58462, 34910, 56414, 129633, 150625, 58472, 150637, 150640, 150641, 150642, 150649, 150650, 34428, 150654, 150655, 150656, 150657, 150660, 150665, 150666, 150671, 150673, 34450, 34965, 51356, 150173, 119474, 119476, 54453, 119480, 150205, 32958, 150207, 150210, 150214, 58567, 58571, 150222, 48334, 30416, 55510, 46811, 46813, 33508, 33509, 46820, 150252, 32492, 46320, 150264, 150265, 150266, 150269, 150289, 58649, 31001, 149787, 150303, 150309, 150312, 150313, 150314, 150334, 150338, 150352, 44538, 150355, 150358, 150359, 54615, 150361, 150365, 150370, 46434, 150374, 150375, 47462, 150379, 150380, 149870, 150383, 150384, 150385, 149874, 150387, 150392, 150394, 150395, 150396, 33659, 150398, 150400, 150401, 39813, 150410, 150412, 150414, 139663, 150417, 150418, 33681, 150420, 33684, 34709, 69019, 33694, 33701, 150439, 36264, 33706, 150444, 33709, 150446, 150447, 36270, 36271, 150450, 150451, 150452, 33716, 150454, 150455, 150456, 150457, 150458, 150459, 33723, 33724, 48573, 150470, 150471, 33735, 33736, 150475, 150480, 33746, 150483, 33752, 33754, 25052, 150495, 150496, 150497, 55775, 33763, 150501, 150503, 150504, 150510, 33775, 150003, 150516, 150518, 34295, 150521, 150522, 150524, 150525)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:18:26,798 - 124756 - src.utils.log - INFO - βœ… Fetched 336 rows - __SPLIT__ 2026-07-17 10:18:26,799 - 124756 - src.utils.log - INFO - Id's of work order inserted to DB: [3681701 3681702 3681703 3681704 3681705 3681706 3681707 3681708 3681709 3681710 3681711 3681712 3681713 3681714 3681715 3681716 3681717 3681718 3681719 3681720 3681721 3681722 3681723 3681724 3681725 3681726 3681727 3681728 3681729 3681730 3681731 3681732 3681733 3681734 3681735 3681736 3681737 3681738 3681739 3681740 3681741 3681742 3681743 3681744 3681745 3681746 3681747 3681748 3681749 3681750 3681751 3681752 3681753 3681754 3681755 3681756 3681757 3681758 3681759 3681760 3681761 3681762 3681763 3681764 3681765 3681766 3681767 3681768 3681769 3681770 3681771 3681772 3681773 3681774 3681775 3681776 3681777 3681778 3681779 3681780 3681781 3681782 3681783 3681784 3681785 3681786 3681787 3681788 3681789 3681790 3681791 3681792 3681793 3681794 3681795 3681796 3681797 3681798 3681799 3681800 3681801 3681802 3681803 3681804 3681805 3681806 3681807 3681808 3681809 3681810 3681811 3681812 3681813 3681814 3681815 3681816 3681817 3681818 3681819 3681820 3681821 3681822 3681823 3681824 3681825 3681826 3681827 3681828 3681829 3681830 3681831 3681832 3681833 3681834 3681835 3681836 3681837 3681838 3681839 3681840 3681841 3681842 3681843 3681844 3681845 3681846 3681847 3681848 3681849 3681850 3681851 3681852 3681853 3681854 3681855 3681856 3681857 3681858 3681859 3681860 3681861 3681862 3681863 3681864 3681865 3681866 3681867 3681868 3681869 3681870 3681871 3681872 3681873 3681874 3681875 3681876 3681877 3681878 3681879 3681880 3681881 3681882 3681883 3681884 3681885 3681886 3681887 3681888 3681889 3681890 3681891 3681892 3681893 3681894 3681895 3681896 3681897 3681898 3681899 3681900 3681901 3681902 3681903 3681904 3681905 3681906 3681907 3681908 3681909 3681910 3681911 3681912 3681913 3681914 3681915 3681916 3681917 3681918 3681919 3681920 3681921 3681922 3681923 3681924 3681925 3681926 3681927 3681928 3681929 3681930 3681931 3681932 3681933 3681934 3681935 3681936 3681937 3681938 3681939 3681940 3681941 3681942 3681943 3681944 3681945 3681946 3681947 3681948 3681949 3681950 3681951 3681952 3681953 3681954 3681955 3681956 3681957 3681958 3681959 3681960 3681961 3681962 3681963 3681964 3681965 3681966 3681967 3681968 3681969 3681970 3681971 3681972 3681973 3681974 3681975 3681976 3681977 3681978 3681979 3681980 3681981 3681982 3681983 3681984 3681985 3681986 3681987 3681988 3681989 3681990 3681991 3681992 3681993 3681994 3681995 3681996 3681997 3681998 3681999 3682000 3682001 3682002 3682003 3682004 3682005 3682006 3682007 3682008 3682009 3682010 3682011 3682012 3682013 3682014 3682015 3682016 3682017 3682018 3682019 3682020 3682021 3682022 3682023 3682024 3682025 3682026 3682027 3682028 3682029 3682030 3682031 3682032 3682033 3682034 3682035 3682036] - __SPLIT__ 2026-07-17 10:18:26,800 - 124756 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId in (150529, 33786, 34818, 56836, 150533, 150534, 150535, 150031, 150032, 150546, 150547, 33785, 150549, 49685, 150551, 150552, 150554, 150556, 150557, 36892, 150559, 150560, 150561, 150562, 56867, 56864, 150566, 150571, 150573, 150574, 36910, 53806, 150579, 150580, 39481, 150588, 150589, 150592, 150595, 150598, 150600, 150601, 129618, 22612, 34905, 58460, 58462, 34910, 56414, 129633, 150625, 58472, 150637, 150640, 150641, 150642, 150649, 150650, 34428, 150654, 150655, 150656, 150657, 150660, 150665, 150666, 150671, 150673, 34450, 34965, 51356, 150173, 119474, 119476, 54453, 119480, 150205, 32958, 150207, 150210, 150214, 58567, 58571, 150222, 48334, 30416, 55510, 46811, 46813, 33508, 33509, 46820, 150252, 32492, 46320, 150264, 150265, 150266, 150269, 150289, 58649, 31001, 149787, 150303, 150309, 150312, 150313, 150314, 150334, 150338, 150352, 44538, 150355, 150358, 150359, 54615, 150361, 150365, 150370, 46434, 150374, 150375, 47462, 150379, 150380, 149870, 150383, 150384, 150385, 149874, 150387, 150392, 150394, 150395, 150396, 33659, 150398, 150400, 150401, 39813, 150410, 150412, 150414, 139663, 150417, 150418, 33681, 150420, 33684, 34709, 69019, 33694, 33701, 150439, 36264, 33706, 150444, 33709, 150446, 150447, 36270, 36271, 150450, 150451, 150452, 33716, 150454, 150455, 150456, 150457, 150458, 150459, 33723, 33724, 48573, 150470, 150471, 33735, 33736, 150475, 150480, 33746, 150483, 33752, 33754, 25052, 150495, 150496, 150497, 55775, 33763, 150501, 150503, 150504, 150510, 33775, 150003, 150516, 150518, 34295, 150521, 150522, 150524, 150525);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:18:27,076 - 124756 - src.utils.log - INFO - βœ… Fetched 7 rows - __SPLIT__ 2026-07-17 10:18:27,077 - 124756 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-07-17 10:18:27,077 - 124756 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId in (150529, 150533, 150534, 150535, 150546, 150547, 150549, 150551, 150552, 150554, 150556, 150557, 150559, 150560, 150561, 150562, 150566, 150571, 150573, 150574, 150579, 150580, 150588, 150589, 150592, 150595, 150598, 150600, 150601, 150625, 150637, 150640, 150641, 150642, 150649, 150650, 150654, 150655, 150656, 150657, 150660, 150665, 150666, 150671, 150673, 150338, 150352, 150355, 150358, 150359, 150365, 150370, 150374, 150375, 150379, 150380, 150383, 150384, 150385, 150387, 150392, 150394, 150395, 150396, 150398, 150400, 150401, 150410, 150412, 150414, 150417, 150418, 150420, 150439, 150444, 150446, 150447, 150450, 150451, 150452, 150454, 150455, 150456, 150457, 150458, 150459, 150470, 150475, 150480, 150483, 150495, 150496, 150497, 150501, 150503, 150504, 150510, 150516, 150518, 150521, 150522, 150524, 150525)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:18:27,366 - 124756 - src.utils.log - INFO - βœ… Fetched 169 rows - __SPLIT__ 2026-07-17 10:18:27,366 - 124756 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId in (150529, 150533, 150534, 150535, 150546, 150547, 150549, 150551, 150552, 150554, 150556, 150557, 150559, 150560, 150561, 150562, 150566, 150571, 150573, 150574, 150579, 150580, 150588, 150589, 150592, 150595, 150598, 150600, 150601, 150625, 150637, 150640, 150641, 150642, 150649, 150650, 150654, 150655, 150656, 150657, 150660, 150665, 150666, 150671, 150673, 150338, 150352, 150355, 150358, 150359, 150365, 150370, 150374, 150375, 150379, 150380, 150383, 150384, 150385, 150387, 150392, 150394, 150395, 150396, 150398, 150400, 150401, 150410, 150412, 150414, 150417, 150418, 150420, 150439, 150444, 150446, 150447, 150450, 150451, 150452, 150454, 150455, 150456, 150457, 150458, 150459, 150470, 150475, 150480, 150483, 150495, 150496, 150497, 150501, 150503, 150504, 150510, 150516, 150518, 150521, 150522, 150524, 150525)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:18:27,642 - 124756 - src.utils.log - INFO - βœ… Fetched 88 rows - __SPLIT__ 2026-07-17 10:18:27,649 - 124756 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId in (150529, 150533, 150534, 150535, 150546, 150547, 150549, 150551, 150552, 150554, 150556, 150557, 150559, 150560, 150561, 150562, 150566, 150571, 150573, 150574, 150579, 150580, 150588, 150589, 150592, 150595, 150598, 150600, 150601, 150625, 150637, 150640, 150641, 150642, 150649, 150650, 150654, 150655, 150656, 150657, 150660, 150665, 150666, 150671, 150673, 150338, 150352, 150355, 150358, 150359, 150365, 150370, 150374, 150375, 150379, 150380, 150383, 150384, 150385, 150387, 150392, 150394, 150395, 150396, 150398, 150400, 150401, 150410, 150412, 150414, 150417, 150418, 150420, 150439, 150444, 150446, 150447, 150450, 150451, 150452, 150454, 150455, 150456, 150457, 150458, 150459, 150470, 150475, 150480, 150483, 150495, 150496, 150497, 150501, 150503, 150504, 150510, 150516, 150518, 150521, 150522, 150524, 150525)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:18:27,944 - 124756 - src.utils.log - INFO - βœ… Fetched 183 rows - __SPLIT__ 2026-07-17 10:18:27,945 - 124756 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId in (150529, 150533, 150534, 150535, 150546, 150547, 150549, 150551, 150552, 150554, 150556, 150557, 150559, 150560, 150561, 150562, 150566, 150571, 150573, 150574, 150579, 150580, 150588, 150589, 150592, 150595, 150598, 150600, 150601, 150625, 150637, 150640, 150641, 150642, 150649, 150650, 150654, 150655, 150656, 150657, 150660, 150665, 150666, 150671, 150673, 150338, 150352, 150355, 150358, 150359, 150365, 150370, 150374, 150375, 150379, 150380, 150383, 150384, 150385, 150387, 150392, 150394, 150395, 150396, 150398, 150400, 150401, 150410, 150412, 150414, 150417, 150418, 150420, 150439, 150444, 150446, 150447, 150450, 150451, 150452, 150454, 150455, 150456, 150457, 150458, 150459, 150470, 150475, 150480, 150483, 150495, 150496, 150497, 150501, 150503, 150504, 150510, 150516, 150518, 150521, 150522, 150524, 150525)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:18:28,220 - 124756 - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-07-17 10:18:28,221 - 124756 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId in (150529, 150533, 150534, 150535, 150546, 150547, 150549, 150551, 150552, 150554, 150556, 150557, 150559, 150560, 150561, 150562, 150566, 150571, 150573, 150574, 150579, 150580, 150588, 150589, 150592, 150595, 150598, 150600, 150601, 150625, 150637, 150640, 150641, 150642, 150649, 150650, 150654, 150655, 150656, 150657, 150660, 150665, 150666, 150671, 150673, 150338, 150352, 150355, 150358, 150359, 150365, 150370, 150374, 150375, 150379, 150380, 150383, 150384, 150385, 150387, 150392, 150394, 150395, 150396, 150398, 150400, 150401, 150410, 150412, 150414, 150417, 150418, 150420, 150439, 150444, 150446, 150447, 150450, 150451, 150452, 150454, 150455, 150456, 150457, 150458, 150459, 150470, 150475, 150480, 150483, 150495, 150496, 150497, 150501, 150503, 150504, 150510, 150516, 150518, 150521, 150522, 150524, 150525)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:18:28,494 - 124756 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 10:18:28,496 - 124756 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId in (150529, 150533, 150534, 150535, 150546, 150547, 150549, 150551, 150552, 150554, 150556, 150557, 150559, 150560, 150561, 150562, 150566, 150571, 150573, 150574, 150579, 150580, 150588, 150589, 150592, 150595, 150598, 150600, 150601, 150625, 150637, 150640, 150641, 150642, 150649, 150650, 150654, 150655, 150656, 150657, 150660, 150665, 150666, 150671, 150673, 150338, 150352, 150355, 150358, 150359, 150365, 150370, 150374, 150375, 150379, 150380, 150383, 150384, 150385, 150387, 150392, 150394, 150395, 150396, 150398, 150400, 150401, 150410, 150412, 150414, 150417, 150418, 150420, 150439, 150444, 150446, 150447, 150450, 150451, 150452, 150454, 150455, 150456, 150457, 150458, 150459, 150470, 150475, 150480, 150483, 150495, 150496, 150497, 150501, 150503, 150504, 150510, 150516, 150518, 150521, 150522, 150524, 150525);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:18:28,832 - 124756 - src.utils.log - INFO - βœ… Fetched 93 rows - __SPLIT__ 2026-07-17 10:18:28,833 - 124756 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId in (150529, 150533, 150534, 150535, 150546, 150547, 150549, 150551, 150552, 150554, 150556, 150557, 150559, 150560, 150561, 150562, 150566, 150571, 150573, 150574, 150579, 150580, 150588, 150589, 150592, 150595, 150598, 150600, 150601, 150625, 150637, 150640, 150641, 150642, 150649, 150650, 150654, 150655, 150656, 150657, 150660, 150665, 150666, 150671, 150673, 150338, 150352, 150355, 150358, 150359, 150365, 150370, 150374, 150375, 150379, 150380, 150383, 150384, 150385, 150387, 150392, 150394, 150395, 150396, 150398, 150400, 150401, 150410, 150412, 150414, 150417, 150418, 150420, 150439, 150444, 150446, 150447, 150450, 150451, 150452, 150454, 150455, 150456, 150457, 150458, 150459, 150470, 150475, 150480, 150483, 150495, 150496, 150497, 150501, 150503, 150504, 150510, 150516, 150518, 150521, 150522, 150524, 150525);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:18:29,106 - 124756 - src.utils.log - INFO - βœ… Fetched 7 rows - __SPLIT__ 2026-07-17 10:18:29,108 - 124756 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId in (150529, 150533, 150534, 150535, 150546, 150547, 150549, 150551, 150552, 150554, 150556, 150557, 150559, 150560, 150561, 150562, 150566, 150571, 150573, 150574, 150579, 150580, 150588, 150589, 150592, 150595, 150598, 150600, 150601, 150625, 150637, 150640, 150641, 150642, 150649, 150650, 150654, 150655, 150656, 150657, 150660, 150665, 150666, 150671, 150673, 150338, 150352, 150355, 150358, 150359, 150365, 150370, 150374, 150375, 150379, 150380, 150383, 150384, 150385, 150387, 150392, 150394, 150395, 150396, 150398, 150400, 150401, 150410, 150412, 150414, 150417, 150418, 150420, 150439, 150444, 150446, 150447, 150450, 150451, 150452, 150454, 150455, 150456, 150457, 150458, 150459, 150470, 150475, 150480, 150483, 150495, 150496, 150497, 150501, 150503, 150504, 150510, 150516, 150518, 150521, 150522, 150524, 150525);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:18:29,523 - 124756 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 10:18:29,523 - 124756 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId in (150529, 150533, 150534, 150535, 150546, 150547, 150549, 150551, 150552, 150554, 150556, 150557, 150559, 150560, 150561, 150562, 150566, 150571, 150573, 150574, 150579, 150580, 150588, 150589, 150592, 150595, 150598, 150600, 150601, 150625, 150637, 150640, 150641, 150642, 150649, 150650, 150654, 150655, 150656, 150657, 150660, 150665, 150666, 150671, 150673, 150338, 150352, 150355, 150358, 150359, 150365, 150370, 150374, 150375, 150379, 150380, 150383, 150384, 150385, 150387, 150392, 150394, 150395, 150396, 150398, 150400, 150401, 150410, 150412, 150414, 150417, 150418, 150420, 150439, 150444, 150446, 150447, 150450, 150451, 150452, 150454, 150455, 150456, 150457, 150458, 150459, 150470, 150475, 150480, 150483, 150495, 150496, 150497, 150501, 150503, 150504, 150510, 150516, 150518, 150521, 150522, 150524, 150525);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:18:29,797 - 124756 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 10:18:29,827 - 124756 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-07-17 10:18:29,828 - 124756 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-07-17 10:18:29,828 - 124756 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-07-17 10:18:29,828 - 124756 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.CommunicationPreferencesServiceReportNotification: - __SPLIT__ 2026-07-17 10:18:29,828 - 124756 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-07-17 10:18:29,828 - 124756 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-17 10:18:29,828 - 124756 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ('3681813', '3681702', '3681804', '3681806', '3681781', '3681850', '3681876', '3681822') ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:18:30,095 - 124756 - src.utils.log - INFO - βœ… Fetched 8 rows - __SPLIT__ 2026-07-17 10:18:30,096 - 124756 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.SetupAutoGenerationSourceMapping: 0 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:18:30,363 - 124756 - src.utils.log - INFO - βœ… All 0 rows inserted successfully into ServiceCore.SetupAutoGenerationSourceMapping in 0 batches - __SPLIT__ 2026-07-17 10:18:30,364 - 124756 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-07-17 10:18:30,364 - 124756 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-17 10:18:30,364 - 124756 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3681793, 3681794, 3681797, 3681809, 3681810, 3681821, 3681822, 3681823, 3681825, 3681827, 3681830, 3681831, 3681833, 3681835, 3681841, 3681842, 3681847, 3681853, 3681854, 3681857, 3681858, 3681866, 3681868, 3681873, 3681874, 3681875, 3681878, 3681883, 3681884, 3681885, 3681888, 3681890, 3681895, 3681903, 3681910, 3681911, 3681912, 3681914, 3681915, 3681920, 3681922, 3681923, 3681925, 3681932, 3681935, 3681938, 3681940, 3681943, 3681945, 3681946, 3681948, 3681951, 3681952, 3681954, 3681955, 3681956, 3681964, 3681965, 3681967, 3681974, 3681976, 3681980, 3681986, 3681987, 3681991, 3681994, 3681998, 3681999, 3682000, 3682003, 3682004, 3682008, 3682015, 3682019, 3682024, 3682027, 3682028, 3682031, 3682035, 3681701, 3681710, 3681713, 3681714, 3681717, 3681726, 3681727, 3681728, 3681729, 3681732, 3681736, 3681737, 3681738, 3681741, 3681745, 3681746, 3681757, 3681758, 3681759, 3681762, 3681769, 3681770, 3681772, 3681773, 3681774, 3681777, 3681781, 3681782, 3681783, 3681784, 3681785, 3681787, 3681789) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:18:30,637 - 124756 - src.utils.log - INFO - βœ… Fetched 112 rows - __SPLIT__ 2026-07-17 10:18:30,638 - 124756 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationAppliedDiscount: 226 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:18:30,912 - 124756 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 226) into ServiceCore.WorkOrderAutoGenerationAppliedDiscount - __SPLIT__ 2026-07-17 10:18:32,439 - 124756 - src.utils.log - INFO - βœ… All 226 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationAppliedDiscount in 1 batches - __SPLIT__ 2026-07-17 10:18:32,439 - 124756 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-07-17 10:18:32,440 - 124756 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-17 10:18:32,440 - 124756 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3681992.0, 3681749.0, 3681750.0, 3681751.0, 3681786.0, 3681787.0) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:18:32,706 - 124756 - src.utils.log - INFO - βœ… Fetched 6 rows - __SPLIT__ 2026-07-17 10:18:32,707 - 124756 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.SubWorkOrderAutoGeneration: 6 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:18:32,988 - 124756 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 6) into ServiceCore.SubWorkOrderAutoGeneration - __SPLIT__ 2026-07-17 10:18:34,076 - 124756 - src.utils.log - INFO - βœ… All 6 rows inserted successfully into ServiceCore.SubWorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-07-17 10:18:34,077 - 124756 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-07-17 10:18:34,077 - 124756 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: - __SPLIT__ 2026-07-17 10:18:34,077 - 124756 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-07-17 10:18:34,077 - 124756 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-17 10:18:34,078 - 124756 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 3681702 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:18:34,343 - 124756 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 10:18:34,344 - 124756 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:18:34,638 - 124756 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationSalesPersonCommission - __SPLIT__ 2026-07-17 10:18:35,579 - 124756 - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationSalesPersonCommission in 1 batches - __SPLIT__ 2026-07-17 10:18:35,579 - 124756 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-07-17 10:18:35,579 - 124756 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-17 10:18:35,580 - 124756 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3681701, 3681702, 3681703, 3681704, 3681705, 3681706, 3681707, 3681708, 3681709, 3681710, 3681711, 3681712, 3681713, 3681714, 3681715, 3681716, 3681717, 3681718, 3681719, 3681720, 3681721, 3681722, 3681723, 3681724, 3681725, 3681726, 3681727, 3681728, 3681729, 3681730, 3681731, 3681732, 3681733, 3681734, 3681735, 3681736, 3681737, 3681738, 3681739, 3681740, 3681741, 3681742, 3681743, 3681744, 3681745, 3681746, 3681747, 3681748, 3681752, 3681753, 3681754, 3681755, 3681756, 3681757, 3681758, 3681759, 3681760, 3681761, 3681762, 3681763, 3681764, 3681765, 3681766, 3681767, 3681768, 3681769, 3681770, 3681771, 3681772, 3681773, 3681774, 3681775, 3681776, 3681777, 3681778, 3681779, 3681780, 3681781, 3681782, 3681783, 3681784, 3681785, 3681788, 3681789, 3681790, 3681791, 3681792, 3681793, 3681794, 3681795, 3681796, 3681797, 3681798, 3681799, 3681800, 3681801, 3681802, 3681803, 3681805, 3681806, 3681807, 3681808, 3681809, 3681810, 3681811, 3681812, 3681813, 3681814, 3681815, 3681816, 3681817, 3681818, 3681819, 3681820, 3681821, 3681822, 3681823, 3681824, 3681825, 3681826, 3681827, 3681828, 3681829, 3681830, 3681831, 3681832, 3681833, 3681834, 3681835, 3681836, 3681837, 3681838, 3681839, 3681840, 3681841, 3681842, 3681843, 3681844, 3681845, 3681846, 3681847, 3681848, 3681849, 3681850, 3681851, 3681852, 3681853, 3681854, 3681855, 3681856, 3681857, 3681858, 3681859, 3681860, 3681861, 3681862, 3681863, 3681864, 3681865, 3681866, 3681867, 3681868, 3681869, 3681870, 3681871, 3681872, 3681873, 3681874, 3681875, 3681877, 3681878, 3681879, 3681880, 3681881, 3681882, 3681883, 3681884, 3681885, 3681886, 3681887, 3681888, 3681889, 3681890, 3681891, 3681892, 3681893, 3681894, 3681895, 3681896, 3681897, 3681898, 3681899, 3681900, 3681901, 3681902, 3681903, 3681904, 3681905, 3681906, 3681907, 3681908, 3681909, 3681910, 3681911, 3681912, 3681913, 3681914, 3681915, 3681916, 3681917, 3681918, 3681919, 3681920, 3681921, 3681922, 3681923, 3681924, 3681925, 3681926, 3681927, 3681928, 3681929, 3681930, 3681931, 3681932, 3681933, 3681934, 3681935, 3681936, 3681937, 3681938, 3681939, 3681940, 3681941, 3681942, 3681943, 3681944, 3681945, 3681946, 3681947, 3681948, 3681949, 3681950, 3681951, 3681952, 3681953, 3681954, 3681955, 3681956, 3681957, 3681958, 3681959, 3681960, 3681961, 3681962, 3681963, 3681964, 3681965, 3681966, 3681967, 3681968, 3681969, 3681970, 3681971, 3681972, 3681973, 3681974, 3681975, 3681976, 3681977, 3681978, 3681979, 3681980, 3681981, 3681982, 3681983, 3681984, 3681985, 3681987, 3681988, 3681989, 3681990, 3681991, 3681993, 3681994, 3681995, 3681996, 3681997, 3681998, 3681999, 3682000, 3682001, 3682002, 3682003, 3682004, 3682005, 3682006, 3682007, 3682008, 3682009, 3682010, 3682011, 3682012, 3682013, 3682014, 3682015, 3682016, 3682017, 3682018, 3682019, 3682020, 3682021, 3682022, 3682023, 3682024, 3682025, 3682026, 3682027, 3682028, 3682029, 3682030, 3682031, 3682032, 3682033, 3682034, 3682035, 3682036) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:18:35,864 - 124756 - src.utils.log - INFO - βœ… Fetched 327 rows - __SPLIT__ 2026-07-17 10:18:35,865 - 124756 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationCrews: 414 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:18:36,136 - 124756 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 414) into ServiceCore.WorkOrderAutoGenerationCrews - __SPLIT__ 2026-07-17 10:18:37,991 - 124756 - src.utils.log - INFO - βœ… All 414 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationCrews in 1 batches - __SPLIT__ 2026-07-17 10:18:37,992 - 124756 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-07-17 10:18:37,992 - 124756 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-17 10:18:37,992 - 124756 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3681701, 3681702, 3681703, 3681704, 3681705, 3681706, 3681707, 3681708, 3681709) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:18:38,259 - 124756 - src.utils.log - INFO - βœ… Fetched 9 rows - __SPLIT__ 2026-07-17 10:18:38,260 - 124756 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 13 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:18:38,534 - 124756 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 13) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-07-17 10:18:39,496 - 124756 - src.utils.log - INFO - βœ… All 13 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-07-17 10:18:39,496 - 124756 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-07-17 10:18:39,497 - 124756 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-17 10:18:39,497 - 124756 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3681710, 3681711, 3681712, 3681713, 3681714, 3681715, 3681716, 3681717, 3681718, 3681719, 3681720, 3681721, 3681722, 3681723, 3681724, 3681725, 3681726, 3681727, 3681728, 3681729, 3681730, 3681731, 3681732, 3681733, 3681734, 3681735, 3681736, 3681737, 3681738, 3681739, 3681740, 3681741, 3681742, 3681743, 3681744, 3681745, 3681746, 3681747, 3681748, 3681749, 3681750, 3681751, 3681752, 3681753, 3681754, 3681755, 3681756, 3681757, 3681758, 3681759, 3681760, 3681761, 3681762, 3681763, 3681764, 3681765, 3681766, 3681767, 3681768, 3681769, 3681770, 3681771, 3681772, 3681773, 3681774, 3681775, 3681776, 3681777, 3681778, 3681779, 3681780, 3681781, 3681782, 3681783, 3681784, 3681785, 3681786, 3681787, 3681788, 3681789, 3681790, 3681791, 3681792, 3681793, 3681794, 3681795, 3681796, 3681797, 3681798, 3681799, 3681800, 3681801, 3681802, 3681803, 3681804, 3681805, 3681806, 3681807, 3681808, 3681809, 3681810, 3681811, 3681812, 3681813, 3681814, 3681815, 3681816, 3681817, 3681818, 3681819, 3681820, 3681821, 3681822, 3681823, 3681824, 3681825, 3681826, 3681827, 3681828, 3681829, 3681830, 3681831, 3681832, 3681833, 3681834, 3681835, 3681836, 3681837, 3681838, 3681839, 3681840, 3681841, 3681842, 3681843, 3681844, 3681845, 3681846, 3681847, 3681848, 3681849, 3681850, 3681851, 3681852, 3681853, 3681854, 3681855, 3681856, 3681857, 3681858, 3681859, 3681860, 3681861, 3681862, 3681863, 3681864, 3681865, 3681866, 3681867, 3681868, 3681869, 3681870, 3681871, 3681872, 3681873, 3681874, 3681875, 3681876, 3681877, 3681878, 3681879, 3681880, 3681881, 3681882, 3681883, 3681884, 3681885, 3681886, 3681887, 3681888, 3681889, 3681890, 3681891, 3681892, 3681893, 3681894, 3681895, 3681896, 3681897, 3681898, 3681899, 3681900, 3681901, 3681902, 3681903, 3681904, 3681905, 3681906, 3681907, 3681908, 3681909, 3681910, 3681911, 3681912, 3681913, 3681914, 3681915, 3681916, 3681917, 3681918, 3681919, 3681920, 3681921, 3681922, 3681923, 3681924, 3681925, 3681926, 3681927, 3681928, 3681929, 3681930, 3681931, 3681932, 3681933, 3681934, 3681935, 3681936, 3681937, 3681938, 3681939, 3681940, 3681941, 3681942, 3681943, 3681944, 3681945, 3681946, 3681947, 3681948, 3681949, 3681950, 3681951, 3681952, 3681953, 3681954, 3681955, 3681956, 3681957, 3681958, 3681959, 3681960, 3681961, 3681962, 3681963, 3681964, 3681965, 3681966, 3681967, 3681968, 3681969, 3681970, 3681971, 3681972, 3681973, 3681974, 3681975, 3681976, 3681977, 3681978, 3681979, 3681980, 3681981, 3681982, 3681983, 3681984, 3681985, 3681986, 3681987, 3681988, 3681989, 3681990, 3681991, 3681992, 3681993, 3681994, 3681995, 3681996, 3681997, 3681998, 3681999, 3682000, 3682001, 3682002, 3682003, 3682004, 3682005, 3682006, 3682007, 3682008, 3682009, 3682010, 3682011, 3682012, 3682013, 3682014, 3682015, 3682016, 3682017, 3682018, 3682019, 3682020, 3682021, 3682022, 3682023, 3682024, 3682025, 3682026, 3682027, 3682028, 3682029, 3682030, 3682031, 3682032, 3682033, 3682034, 3682035, 3682036) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:18:39,784 - 124756 - src.utils.log - INFO - βœ… Fetched 327 rows - __SPLIT__ 2026-07-17 10:18:39,785 - 124756 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 636 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:18:40,060 - 124756 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 636) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-07-17 10:18:43,177 - 124756 - src.utils.log - INFO - βœ… All 636 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-07-17 10:18:43,177 - 124756 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-07-17 10:18:43,178 - 124756 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 124756;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:18:43,444 - 124756 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-17 10:18:43,444 - 124756 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-07-17 10:18:43,444 - 124756 - src.utils.log - INFO - Time took to perform operation: 41.86 - __SPLIT__ 2026-07-17 10:18:51,095 - [124756] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[] user_id=43135 company_id=133 project_id=[124756] publish_all=True - __SPLIT__ 2026-07-17 10:18:51,096 - [124756] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[] user_id=43135 company_id=133 project_id=[124756] publish_all=True - __SPLIT__ 2026-07-17 10:18:51,096 - [124756] - src.utils.log - INFO - Sequential Work order publish in progress for GenerateWorkOrderHistoryId: [124756] - __SPLIT__ 2026-07-17 10:18:51,097 - [124756] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-17 10:18:51,097 - [124756] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:18:53,171 - [124756] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 10:18:53,171 - [124756] - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-07-17 10:18:53,172 - [124756] - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-07-17 10:18:53,172 - [124756] - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-07-17 10:18:53,172 - [124756] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'InProgress' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124756;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:18:55,028 - [124756] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-17 10:18:55,029 - [124756] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGeneration woag WHERE woag.GenerateWorkOrderHistoryId = 124756... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:18:55,752 - [124756] - src.utils.log - INFO - βœ… Fetched 336 rows - __SPLIT__ 2026-07-17 10:18:55,753 - [124756] - src.utils.log - INFO - Inside get_work_order_table - __SPLIT__ 2026-07-17 10:18:55,754 - [124756] - 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 (150439, 150497, 150496, 150503, 150504, 150510, 150525, 150546, 150574, 150370, 150598, 150673, 150640, 150418, 150383, 150385, 150398, 150392, 150521, 150588, 150384, 150650, 150470, 150451, 150452, 150454, 150571, 150374, 150358, 150395, 150394, 150396, 150595, 150410, 150625, 150592, 150414, 150642, 150535, 150420, 150649, 150641, 150400, 150654, 150412, 150444, 150417, 150524, 150480, 150447, 150501, 150455, 150459, 150401, 150387, 150495, 150589, 150562, 150547, 150552, 150554, 150518, 150557, 150656, 150657, 150655, 150560, 150375, 150338, 150556, 150359, 150600, 150355, 150534, 150559, 150637, 150475, 150529, 150457, 150561, 150566, 150352, 150533, 150551, 150660, 150665, 150666, 150601, 150446, 150671, 150549, 150379, 150516, 150483, 150450, 150380, 150458, 150365, 150580, 150579, 150573, 150456, 150522) AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:18:56,042 - [124756] - src.utils.log - INFO - βœ… Fetched 103 rows - __SPLIT__ 2026-07-17 10:18:56,042 - [124756] - 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 (150439, 150497, 150496, 150503, 150504, 150510, 150525, 150546, 150574, 150370, 150598, 150673, 150640, 150418, 150383, 150385, 150398, 150392, 150521, 150588, 150384, 150650, 150470, 150451, 150452, 150454, 150571, 150374, 150358, 150395, 150394, 150396, 150595, 150410, 150625, 150592, 150414, 150642, 150535, 150420, 150649, 150641, 150400, 150654, 150412, 150444, 150417, 150524, 150480, 150447, 150501, 150455, 150459, 150401, 150387, 150495, 150589, 150562, 150547, 150552, 150554, 150518, 150557, 150656, 150657, 150655, 150560, 150375, 150338, 150556, 150359, 150600, 150355, 150534, 150559, 150637, 150475, 150529, 150457, 150561, 150566, 150352, 150533, 150551, 150660, 150665, 150666, 150601, 150446, 150671, 150549, 150379, 150516, 150483, 150450, 150380, 150458, 150365, 150580, 150579, 150573, 150456, 150522) AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:18:56,326 - [124756] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 10:18:56,327 - [124756] - 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 (150439, 150497, 150496, 150503, 150504, 150510, 150525, 150546, 150574, 150370, 150598, 150673, 150640, 150418, 150383, 150385, 150398, 150392, 150521, 150588, 150384, 150650, 150470, 150451, 150452, 150454, 150571, 150374, 150358, 150395, 150394, 150396, 150595, 150410, 150625, 150592, 150414, 150642, 150535, 150420, 150649, 150641, 150400, 150654, 150412, 150444, 150417, 150524, 150480, 150447, 150501, 150455, 150459, 150401, 150387, 150495, 150589, 150562, 150547, 150552, 150554, 150518, 150557, 150656, 150657, 150655, 150560, 150375, 150338, 150556, 150359, 150600, 150355, 150534, 150559, 150637, 150475, 150529, 150457, 150561, 150566, 150352, 150533, 150551, 150660, 150665, 150666, 150601, 150446, 150671, 150549, 150379, 150516, 150483, 150450, 150380, 150458, 150365, 150580, 150579, 150573, 150456, 150522) AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:18:56,621 - [124756] - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-07-17 10:18:56,630 - [124756] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder,BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:18:56,895 - [124756] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 10:18:56,895 - [124756] - 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-07-17 10:18:57,160 - [124756] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-17 10:18:57,160 - [124756] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder, BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:18:57,425 - [124756] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 10:18:57,426 - [124756] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 336 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 133 AND EnitityNumberType = 'WorkOrder'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:18:57,696 - [124756] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 10:18:57,696 - [124756] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 336 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 133 AND EnitityNumberType = 'Invoice'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:18:57,966 - [124756] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 10:18:57,971 - [124756] - 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 (150439, 150497, 150496, 150503, 150504, 150510, 150525, 150546, 150574, 150370, 150598, 150673, 150640, 150418, 150383, 150385, 150398, 150392, 150521, 150588, 150384, 150650, 150470, 150451, 150452, 150454, 150571, 150374, 150358, 150395, 150394, 150396, 150595, 150410, 150625, 150592, 150414, 150642, 150535, 150420, 150649, 150641, 150400, 150654, 150412, 150444, 150417, 150524, 150480, 150447, 150501, 150455, 150459, 150401, 150387, 150495, 150589, 150562, 150547, 150552, 150554, 150518, 150557, 150656, 150657, 150655, 150560, 150375, 150338, 150556, 150359, 150600, 150355, 150534, 150559, 150637, 150475, 150529, 150457, 150561, 150566, 150352, 150533, 150551, 150660, 150665, 150666, 150601, 150446, 150671, 150549, 150379, 150516, 150483, 150450, 150380, 150458, 150365, 150580, 150579, 150573, 150456, 150522)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:18:58,265 - [124756] - src.utils.log - INFO - βœ… Fetched 103 rows - __SPLIT__ 2026-07-17 10:18:58,496 - [124756] - src.utils.log - INFO - πŸ” Fetching data: SELECT x.CompanyId FROM CRM.CompanyMaster x WHERE CompanyKey = 'abcdallas';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:18:58,760 - [124756] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 10:18:58,761 - [124756] - src.utils.log - INFO - πŸ” Fetching data: SELECT CollectionStatus,IsHold,AccountNo FROM CRM.Account a WHERE a.AccountNo in ('14960', '14908', '14943', '14890', '14969', '14917', '14976', '14930', '14911', '14935', '14981', '14896', '14946', '14942', '15013', '14972', '14070', '14907', '15002', '14912', '14971', '13935', '14968', '14997', '15003', '14958', '14974', '14949', '14963', '14927', '8663', '14954', '14880', '14899', '14902', '14876', '15016', '15012', '14936', '14937', '15008', '14901', '14944', '14986', '14953', '15001', '14934', '14420', '6467', '14856', '14973', '15000', '14891', '14904', '14970', '14875', '14933', '14867', '15015', '14977') and a.CompanyId = 121;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:18:59,074 - [124756] - src.utils.log - INFO - βœ… Fetched 60 rows - __SPLIT__ 2026-07-17 10:18:59,077 - [124756] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderNo FROM ServiceCore.WorkOrder WHERE WorkOrderNo IN ('1427425', '1427426', '1427427', '1427428', '1427429', '1427430', '1427431', '1427432', '1427433', '1427434', '1427435', '1427436', '1427437', '1427438', '1427439', '1427440', '1427441', '1427442', '1427443', '1427444', '1427445', '1427446', '1427447', '1427448', '1427449', '1427450', '1427451', '1427452', '1427453', '1427454', '1427455', '1427456', '1427457', '1427458', '1427459', '1427460', '1427461', '1427462', '1427463', '1427464', '1427465', '1427466', '1427467', '1427468', '1427469', '1427470', '1427471', '1427472', '1427473', '1427474', '1427475', '1427476', '1427477', '1427478', '1427479', '1427480', '1427481', '1427482', '1427483', '1427484', '1427485', '1427486', '1427487', '1427488', '1427489', '1427490', '1427491', '1427492', '1427493', '1427494', '1427495', '1427496', '1427497', '1427498', '1427499', '1427500', '1427501', '1427502', '1427503', '1427504', '1427505', '1427506', '1427507', '1427508', '1427509', '1427510', '1427511', '1427512', '1427513', '1427514', '1427515', '1427516', '1427517', '1427518', '1427519', '1427520', '1427521', '1427522', '1427523', '1427524', '1427525', '1427526', '1427527', '1427528', '1427529', '1427530', '1427531', '1427532', '1427533', '1427534', '1427535', '1427536', '1427537', '1427538', '1427539', '1427540', '1427541', '1427542', '1427543', '1427544', '1427545', '1427546', '1427547', '1427548', '1427549', '1427550', '1427551', '1427552', '1427553', '1427554', '1427555', '1427556', '1427557', '1427558', '1427559', '1427560', '1427561', '1427562', '1427563', '1427564', '1427565', '1427566', '1427567', '1427568', '1427569', '1427570', '1427571', '1427572', '1427573', '1427574', '1427575', '1427576', '1427577', '1427578', '1427579', '1427580', '1427581', '1427582', '1427583', '1427584', '1427585', '1427586', '1427587', '1427588', '1427589', '1427590', '1427591', '1427592', '1427593', '1427594', '1427595', '1427596', '1427597', '1427598', '1427599', '1427600', '1427601', '1427602', '1427603', '1427604', '1427605', '1427606', '1427607', '1427608', '1427609', '1427610', '1427611', '1427612', '1427613', '1427614', '1427615', '1427616', '1427617', '1427618', '1427619', '1427620', '1427621', '1427622', '1427623', '1427624', '1427625', '1427626', '1427627', '1427628', '1427629', '1427630', '1427631', '1427632', '1427633', '1427634', '1427635', '1427636', '1427637', '1427638', '1427639', '1427640', '1427641', '1427642', '1427643', '1427644', '1427645', '1427646', '1427647', '1427648', '1427649', '1427650', '1427651', '1427652', '1427653', '1427654', '1427655', '1427656', '1427657', '1427658', '1427659', '1427660', '1427661', '1427662', '1427663', '1427664', '1427665', '1427666', '1427667', '1427668', '1427669', '1427670', '1427671', '1427672', '1427673', '1427674', '1427675', '1427676', '1427677', '1427678', '1427679', '1427680', '1427681', '1427682', '1427683', '1427684', '1427685', '1427686', '1427687', '1427688', '1427689', '1427690', '1427691', '1427692', '1427693', '1427694', '1427695', '1427696', '1427697', '1427698', '1427699', '1427700', '1427701', '1427702', '1427703', '1427704', '1427705', '1427706', '1427707', '1427708', '1427709', '1427710', '1427711', '1427712', '1427713', '1427714', '1427715', '1427716', '1427717', '1427718', '1427719', '1427720', '1427721', '1427722', '1427723', '1427724', '1427725', '1427726', '1427727', '1427728', '1427729', '1427730', '1427731', '1427732', '1427733', '1427734', '1427735', '1427736', '1427737', '1427738', '1427739', '1427740', '1427741', '1427742', '1427743', '1427744', '1427745', '1427746', '1427747', '1427748', '1427749', '1427750', '1427751', '1427752', '1427753', '1427754', '1427755', '1427756', '1427757', '1427758', '1427759', '1427760') AND CompanyId = 133 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:18:59,369 - [124756] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 10:18:59,369 - [124756] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrder (skip triggers): 336 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:18:59,804 - [124756] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 336) into ServiceCore.WorkOrder (triggers skipped) - __SPLIT__ 2026-07-17 10:19:09,286 - [124756] - src.utils.log - INFO - βœ… All 336 rows inserted successfully into ServiceCore.WorkOrder in 1 batches (triggers skipped) - __SPLIT__ 2026-07-17 10:19:09,419 - [124756] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-07-17 10:19:09,421 - [124756] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.ServiceSetup SET IsInitialWoGenerated = 1 WHERE CompanyId = 133 AND ServiceSetupId in (150439, 150497, 150496, 150503, 150504, 150510, 150525, 150546, 150574);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:19:09,694 - [124756] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-17 10:19:09,695 - [124756] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkorderId, WorkOrderNo FROM ServiceCore.WorkOrder wo WHERE wo.WorkOrderNo IN ('1427425', '1427426', '1427427', '1427428', '1427429', '1427430', '1427431', '1427432', '1427433', '1427434', '1427435', '1427436', '1427437', '1427438', '1427439', '1427440', '1427441', '1427442', '1427443', '1427444', '1427445', '1427446', '1427447', '1427448', '1427449', '1427450', '1427451', '1427452', '1427453', '1427454', '1427455', '1427456', '1427457', '1427458', '1427459', '1427460', '1427461', '1427462', '1427463', '1427464', '1427465', '1427466', '1427467', '1427468', '1427469', '1427470', '1427471', '1427472', '1427473', '1427474', '1427475', '1427476', '1427477', '1427478', '1427479', '1427480', '1427481', '1427482', '1427483', '1427484', '1427485', '1427486', '1427487', '1427488', '1427489', '1427490', '1427491', '1427492', '1427493', '1427494', '1427495', '1427496', '1427497', '1427498', '1427499', '1427500', '1427501', '1427502', '1427503', '1427504', '1427505', '1427506', '1427507', '1427508', '1427509', '1427510', '1427511', '1427512', '1427513', '1427514', '1427515', '1427516', '1427517', '1427518', '1427519', '1427520', '1427521', '1427522', '1427523', '1427524', '1427525', '1427526', '1427527', '1427528', '1427529', '1427530', '1427531', '1427532', '1427533', '1427534', '1427535', '1427536', '1427537', '1427538', '1427539', '1427540', '1427541', '1427542', '1427543', '1427544', '1427545', '1427546', '1427547', '1427548', '1427549', '1427550', '1427551', '1427552', '1427553', '1427554', '1427555', '1427556', '1427557', '1427558', '1427559', '1427560', '1427561', '1427562', '1427563', '1427564', '1427565', '1427566', '1427567', '1427568', '1427569', '1427570', '1427571', '1427572', '1427573', '1427574', '1427575', '1427576', '1427577', '1427578', '1427579', '1427580', '1427581', '1427582', '1427583', '1427584', '1427585', '1427586', '1427587', '1427588', '1427589', '1427590', '1427591', '1427592', '1427593', '1427594', '1427595', '1427596', '1427597', '1427598', '1427599', '1427600', '1427601', '1427602', '1427603', '1427604', '1427605', '1427606', '1427607', '1427608', '1427609', '1427610', '1427611', '1427612', '1427613', '1427614', '1427615', '1427616', '1427617', '1427618', '1427619', '1427620', '1427621', '1427622', '1427623', '1427624', '1427625', '1427626', '1427627', '1427628', '1427629', '1427630', '1427631', '1427632', '1427633', '1427634', '1427635', '1427636', '1427637', '1427638', '1427639', '1427640', '1427641', '1427642', '1427643', '1427644', '1427645', '1427646', '1427647', '1427648', '1427649', '1427650', '1427651', '1427652', '1427653', '1427654', '1427655', '1427656', '1427657', '1427658', '1427659', '1427660', '1427661', '1427662', '1427663', '1427664', '1427665', '1427666', '1427667', '1427668', '1427669', '1427670', '1427671', '1427672', '1427673', '1427674', '1427675', '1427676', '1427677', '1427678', '1427679', '1427680', '1427681', '1427682', '1427683', '1427684', '1427685', '1427686', '1427687', '1427688', '1427689', '1427690', '1427691', '1427692', '1427693', '1427694', '1427695', '1427696', '1427697', '1427698', '1427699', '1427700', '1427701', '1427702', '1427703', '1427704', '1427705', '1427706', '1427707', '1427708', '1427709', '1427710', '1427711', '1427712', '1427713', '1427714', '1427715', '1427716', '1427717', '1427718', '1427719', '1427720', '1427721', '1427722', '1427723', '1427724', '1427725', '1427726', '1427727', '1427728', '1427729', '1427730', '1427731', '1427732', '1427733', '1427734', '1427735', '1427736', '1427737', '1427738', '1427739', '1427740', '1427741', '1427742', '1427743', '1427744', '1427745', '1427746', '1427747', '1427748', '1427749', '1427750', '1427751', '1427752', '1427753', '1427754', '1427755', '1427756', '1427757', '1427758', '1427759', '1427760') AND wo.AccountNumber IN ('14927', '14943', '14946', '14949', '14953', '14960', '14968', '14974', '14890', '14973', '15016', '15001', '14917', '14902', '14908', '14907', '14958', '14981', '15008', '14942', '14934', '14935', '14896', '14876', '13935', '14997', '8663', '15003', '14963', '15002', '14911', '15012', '14912', '14930', '14944', '14420', '14937', '14904', '14972', '14969', '6467', '14970', '15000', '14899', '14856', '14891', '14867', '14986', '14875', '14070', '14971', '15013', '15015', '14901', '14954', '14933', '14880', '14977', '14976', '14936') AND wo.CompanyId = 133 ... (Thread: ThreadPoolExecutor-15_0) - __SPLIT__ 2026-07-17 10:19:10,004 - [124756] - src.utils.log - INFO - βœ… Fetched 336 rows - __SPLIT__ 2026-07-17 10:19:10,005 - [124756] - src.utils.log - INFO - Sequential fetching temp table records - __SPLIT__ 2026-07-17 10:19:10,005 - [124756] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationServices woag WHERE woag.WorkOrderAutoGenerationId in (3681701, 3681702, 3681703, 3681704, 3681705, 3681706, 3681707, 3681708, 3681709, 3681710, 3681711, 3681712, 3681713, 3681714, 3681715, 3681716, 3681717, 3681718, 3681719, 3681720, 3681721, 3681722, 3681723, 3681724, 3681725, 3681726, 3681727, 3681728, 3681729, 3681730, 3681731, 3681732, 3681733, 3681734, 3681735, 3681736, 3681737, 3681738, 3681739, 3681740, 3681741, 3681742, 3681743, 3681744, 3681745, 3681746, 3681747, 3681748, 3681749, 3681750, 3681751, 3681752, 3681753, 3681754, 3681755, 3681756, 3681757, 3681758, 3681759, 3681760, 3681761, 3681762, 3681763, 3681764, 3681765, 3681766, 3681767, 3681768, 3681769, 3681770, 3681771, 3681772, 3681773, 3681774, 3681775, 3681776, 3681777, 3681778, 3681779, 3681780, 3681781, 3681782, 3681783, 3681784, 3681785, 3681786, 3681787, 3681788, 3681789, 3681790, 3681791, 3681792, 3681793, 3681794, 3681795, 3681796, 3681797, 3681798, 3681799, 3681800, 3681801, 3681802, 3681803, 3681804, 3681805, 3681806, 3681807, 3681808, 3681809, 3681810, 3681811, 3681812, 3681813, 3681814, 3681815, 3681816, 3681817, 3681818, 3681819, 3681820, 3681821, 3681822, 3681823, 3681824, 3681825, 3681826, 3681827, 3681828, 3681829, 3681830, 3681831, 3681832, 3681833, 3681834, 3681835, 3681836, 3681837, 3681838, 3681839, 3681840, 3681841, 3681842, 3681843, 3681844, 3681845, 3681846, 3681847, 3681848, 3681849, 3681850, 3681851, 3681852, 3681853, 3681854, 3681855, 3681856, 3681857, 3681858, 3681859, 3681860, 3681861, 3681862, 3681863, 3681864, 3681865, 3681866, 3681867, 3681868, 3681869, 3681870, 3681871, 3681872, 3681873, 3681874, 3681875, 3681876, 3681877, 3681878, 3681879, 3681880, 3681881, 3681882, 3681883, 3681884, 3681885, 3681886, 3681887, 3681888, 3681889, 3681890, 3681891, 3681892, 3681893, 3681894, 3681895, 3681896, 3681897, 3681898, 3681899, 3681900, 3681901, 3681902, 3681903, 3681904, 3681905, 3681906, 3681907, 3681908, 3681909, 3681910, 3681911, 3681912, 3681913, 3681914, 3681915, 3681916, 3681917, 3681918, 3681919, 3681920, 3681921, 3681922, 3681923, 3681924, 3681925, 3681926, 3681927, 3681928, 3681929, 3681930, 3681931, 3681932, 3681933, 3681934, 3681935, 3681936, 3681937, 3681938, 3681939, 3681940, 3681941, 3681942, 3681943, 3681944, 3681945, 3681946, 3681947, 3681948, 3681949, 3681950, 3681951, 3681952, 3681953, 3681954, 3681955, 3681956, 3681957, 3681958, 3681959, 3681960, 3681961, 3681962, 3681963, 3681964, 3681965, 3681966, 3681967, 3681968, 3681969, 3681970, 3681971, 3681972, 3681973, 3681974, 3681975, 3681976, 3681977, 3681978, 3681979, 3681980, 3681981, 3681982, 3681983, 3681984, 3681985, 3681986, 3681987, 3681988, 3681989, 3681990, 3681991, 3681992, 3681993, 3681994, 3681995, 3681996, 3681997, 3681998, 3681999, 3682000, 3682001, 3682002, 3682003, 3682004, 3682005, 3682006, 3682007, 3682008, 3682009, 3682010, 3682011, 3682012, 3682013, 3682014, 3682015, 3682016, 3682017, 3682018, 3682019, 3682020, 3682021, 3682022, 3682023, 3682024, 3682025, 3682026, 3682027, 3682028, 3682029, 3682030, 3682031, 3682032, 3682033, 3682034, 3682035, 3682036)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:19:10,360 - [124756] - src.utils.log - INFO - βœ… Fetched 649 rows - __SPLIT__ 2026-07-17 10:19:10,361 - [124756] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SubWorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (3681701, 3681702, 3681703, 3681704, 3681705, 3681706, 3681707, 3681708, 3681709, 3681710, 3681711, 3681712, 3681713, 3681714, 3681715, 3681716, 3681717, 3681718, 3681719, 3681720, 3681721, 3681722, 3681723, 3681724, 3681725, 3681726, 3681727, 3681728, 3681729, 3681730, 3681731, 3681732, 3681733, 3681734, 3681735, 3681736, 3681737, 3681738, 3681739, 3681740, 3681741, 3681742, 3681743, 3681744, 3681745, 3681746, 3681747, 3681748, 3681749, 3681750, 3681751, 3681752, 3681753, 3681754, 3681755, 3681756, 3681757, 3681758, 3681759, 3681760, 3681761, 3681762, 3681763, 3681764, 3681765, 3681766, 3681767, 3681768, 3681769, 3681770, 3681771, 3681772, 3681773, 3681774, 3681775, 3681776, 3681777, 3681778, 3681779, 3681780, 3681781, 3681782, 3681783, 3681784, 3681785, 3681786, 3681787, 3681788, 3681789, 3681790, 3681791, 3681792, 3681793, 3681794, 3681795, 3681796, 3681797, 3681798, 3681799, 3681800, 3681801, 3681802, 3681803, 3681804, 3681805, 3681806, 3681807, 3681808, 3681809, 3681810, 3681811, 3681812, 3681813, 3681814, 3681815, 3681816, 3681817, 3681818, 3681819, 3681820, 3681821, 3681822, 3681823, 3681824, 3681825, 3681826, 3681827, 3681828, 3681829, 3681830, 3681831, 3681832, 3681833, 3681834, 3681835, 3681836, 3681837, 3681838, 3681839, 3681840, 3681841, 3681842, 3681843, 3681844, 3681845, 3681846, 3681847, 3681848, 3681849, 3681850, 3681851, 3681852, 3681853, 3681854, 3681855, 3681856, 3681857, 3681858, 3681859, 3681860, 3681861, 3681862, 3681863, 3681864, 3681865, 3681866, 3681867, 3681868, 3681869, 3681870, 3681871, 3681872, 3681873, 3681874, 3681875, 3681876, 3681877, 3681878, 3681879, 3681880, 3681881, 3681882, 3681883, 3681884, 3681885, 3681886, 3681887, 3681888, 3681889, 3681890, 3681891, 3681892, 3681893, 3681894, 3681895, 3681896, 3681897, 3681898, 3681899, 3681900, 3681901, 3681902, 3681903, 3681904, 3681905, 3681906, 3681907, 3681908, 3681909, 3681910, 3681911, 3681912, 3681913, 3681914, 3681915, 3681916, 3681917, 3681918, 3681919, 3681920, 3681921, 3681922, 3681923, 3681924, 3681925, 3681926, 3681927, 3681928, 3681929, 3681930, 3681931, 3681932, 3681933, 3681934, 3681935, 3681936, 3681937, 3681938, 3681939, 3681940, 3681941, 3681942, 3681943, 3681944, 3681945, 3681946, 3681947, 3681948, 3681949, 3681950, 3681951, 3681952, 3681953, 3681954, 3681955, 3681956, 3681957, 3681958, 3681959, 3681960, 3681961, 3681962, 3681963, 3681964, 3681965, 3681966, 3681967, 3681968, 3681969, 3681970, 3681971, 3681972, 3681973, 3681974, 3681975, 3681976, 3681977, 3681978, 3681979, 3681980, 3681981, 3681982, 3681983, 3681984, 3681985, 3681986, 3681987, 3681988, 3681989, 3681990, 3681991, 3681992, 3681993, 3681994, 3681995, 3681996, 3681997, 3681998, 3681999, 3682000, 3682001, 3682002, 3682003, 3682004, 3682005, 3682006, 3682007, 3682008, 3682009, 3682010, 3682011, 3682012, 3682013, 3682014, 3682015, 3682016, 3682017, 3682018, 3682019, 3682020, 3682021, 3682022, 3682023, 3682024, 3682025, 3682026, 3682027, 3682028, 3682029, 3682030, 3682031, 3682032, 3682033, 3682034, 3682035, 3682036)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:19:10,649 - [124756] - src.utils.log - INFO - βœ… Fetched 6 rows - __SPLIT__ 2026-07-17 10:19:10,649 - [124756] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationCrews woag WHERE woag.WorkOrderAutoGenerationId in (3681701, 3681702, 3681703, 3681704, 3681705, 3681706, 3681707, 3681708, 3681709, 3681710, 3681711, 3681712, 3681713, 3681714, 3681715, 3681716, 3681717, 3681718, 3681719, 3681720, 3681721, 3681722, 3681723, 3681724, 3681725, 3681726, 3681727, 3681728, 3681729, 3681730, 3681731, 3681732, 3681733, 3681734, 3681735, 3681736, 3681737, 3681738, 3681739, 3681740, 3681741, 3681742, 3681743, 3681744, 3681745, 3681746, 3681747, 3681748, 3681749, 3681750, 3681751, 3681752, 3681753, 3681754, 3681755, 3681756, 3681757, 3681758, 3681759, 3681760, 3681761, 3681762, 3681763, 3681764, 3681765, 3681766, 3681767, 3681768, 3681769, 3681770, 3681771, 3681772, 3681773, 3681774, 3681775, 3681776, 3681777, 3681778, 3681779, 3681780, 3681781, 3681782, 3681783, 3681784, 3681785, 3681786, 3681787, 3681788, 3681789, 3681790, 3681791, 3681792, 3681793, 3681794, 3681795, 3681796, 3681797, 3681798, 3681799, 3681800, 3681801, 3681802, 3681803, 3681804, 3681805, 3681806, 3681807, 3681808, 3681809, 3681810, 3681811, 3681812, 3681813, 3681814, 3681815, 3681816, 3681817, 3681818, 3681819, 3681820, 3681821, 3681822, 3681823, 3681824, 3681825, 3681826, 3681827, 3681828, 3681829, 3681830, 3681831, 3681832, 3681833, 3681834, 3681835, 3681836, 3681837, 3681838, 3681839, 3681840, 3681841, 3681842, 3681843, 3681844, 3681845, 3681846, 3681847, 3681848, 3681849, 3681850, 3681851, 3681852, 3681853, 3681854, 3681855, 3681856, 3681857, 3681858, 3681859, 3681860, 3681861, 3681862, 3681863, 3681864, 3681865, 3681866, 3681867, 3681868, 3681869, 3681870, 3681871, 3681872, 3681873, 3681874, 3681875, 3681876, 3681877, 3681878, 3681879, 3681880, 3681881, 3681882, 3681883, 3681884, 3681885, 3681886, 3681887, 3681888, 3681889, 3681890, 3681891, 3681892, 3681893, 3681894, 3681895, 3681896, 3681897, 3681898, 3681899, 3681900, 3681901, 3681902, 3681903, 3681904, 3681905, 3681906, 3681907, 3681908, 3681909, 3681910, 3681911, 3681912, 3681913, 3681914, 3681915, 3681916, 3681917, 3681918, 3681919, 3681920, 3681921, 3681922, 3681923, 3681924, 3681925, 3681926, 3681927, 3681928, 3681929, 3681930, 3681931, 3681932, 3681933, 3681934, 3681935, 3681936, 3681937, 3681938, 3681939, 3681940, 3681941, 3681942, 3681943, 3681944, 3681945, 3681946, 3681947, 3681948, 3681949, 3681950, 3681951, 3681952, 3681953, 3681954, 3681955, 3681956, 3681957, 3681958, 3681959, 3681960, 3681961, 3681962, 3681963, 3681964, 3681965, 3681966, 3681967, 3681968, 3681969, 3681970, 3681971, 3681972, 3681973, 3681974, 3681975, 3681976, 3681977, 3681978, 3681979, 3681980, 3681981, 3681982, 3681983, 3681984, 3681985, 3681986, 3681987, 3681988, 3681989, 3681990, 3681991, 3681992, 3681993, 3681994, 3681995, 3681996, 3681997, 3681998, 3681999, 3682000, 3682001, 3682002, 3682003, 3682004, 3682005, 3682006, 3682007, 3682008, 3682009, 3682010, 3682011, 3682012, 3682013, 3682014, 3682015, 3682016, 3682017, 3682018, 3682019, 3682020, 3682021, 3682022, 3682023, 3682024, 3682025, 3682026, 3682027, 3682028, 3682029, 3682030, 3682031, 3682032, 3682033, 3682034, 3682035, 3682036)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:19:10,981 - [124756] - src.utils.log - INFO - βœ… Fetched 414 rows - __SPLIT__ 2026-07-17 10:19:10,981 - [124756] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationSalesPersonCommission woag WHERE woag.WorkOrderAutoGenerationId in (3681701, 3681702, 3681703, 3681704, 3681705, 3681706, 3681707, 3681708, 3681709, 3681710, 3681711, 3681712, 3681713, 3681714, 3681715, 3681716, 3681717, 3681718, 3681719, 3681720, 3681721, 3681722, 3681723, 3681724, 3681725, 3681726, 3681727, 3681728, 3681729, 3681730, 3681731, 3681732, 3681733, 3681734, 3681735, 3681736, 3681737, 3681738, 3681739, 3681740, 3681741, 3681742, 3681743, 3681744, 3681745, 3681746, 3681747, 3681748, 3681749, 3681750, 3681751, 3681752, 3681753, 3681754, 3681755, 3681756, 3681757, 3681758, 3681759, 3681760, 3681761, 3681762, 3681763, 3681764, 3681765, 3681766, 3681767, 3681768, 3681769, 3681770, 3681771, 3681772, 3681773, 3681774, 3681775, 3681776, 3681777, 3681778, 3681779, 3681780, 3681781, 3681782, 3681783, 3681784, 3681785, 3681786, 3681787, 3681788, 3681789, 3681790, 3681791, 3681792, 3681793, 3681794, 3681795, 3681796, 3681797, 3681798, 3681799, 3681800, 3681801, 3681802, 3681803, 3681804, 3681805, 3681806, 3681807, 3681808, 3681809, 3681810, 3681811, 3681812, 3681813, 3681814, 3681815, 3681816, 3681817, 3681818, 3681819, 3681820, 3681821, 3681822, 3681823, 3681824, 3681825, 3681826, 3681827, 3681828, 3681829, 3681830, 3681831, 3681832, 3681833, 3681834, 3681835, 3681836, 3681837, 3681838, 3681839, 3681840, 3681841, 3681842, 3681843, 3681844, 3681845, 3681846, 3681847, 3681848, 3681849, 3681850, 3681851, 3681852, 3681853, 3681854, 3681855, 3681856, 3681857, 3681858, 3681859, 3681860, 3681861, 3681862, 3681863, 3681864, 3681865, 3681866, 3681867, 3681868, 3681869, 3681870, 3681871, 3681872, 3681873, 3681874, 3681875, 3681876, 3681877, 3681878, 3681879, 3681880, 3681881, 3681882, 3681883, 3681884, 3681885, 3681886, 3681887, 3681888, 3681889, 3681890, 3681891, 3681892, 3681893, 3681894, 3681895, 3681896, 3681897, 3681898, 3681899, 3681900, 3681901, 3681902, 3681903, 3681904, 3681905, 3681906, 3681907, 3681908, 3681909, 3681910, 3681911, 3681912, 3681913, 3681914, 3681915, 3681916, 3681917, 3681918, 3681919, 3681920, 3681921, 3681922, 3681923, 3681924, 3681925, 3681926, 3681927, 3681928, 3681929, 3681930, 3681931, 3681932, 3681933, 3681934, 3681935, 3681936, 3681937, 3681938, 3681939, 3681940, 3681941, 3681942, 3681943, 3681944, 3681945, 3681946, 3681947, 3681948, 3681949, 3681950, 3681951, 3681952, 3681953, 3681954, 3681955, 3681956, 3681957, 3681958, 3681959, 3681960, 3681961, 3681962, 3681963, 3681964, 3681965, 3681966, 3681967, 3681968, 3681969, 3681970, 3681971, 3681972, 3681973, 3681974, 3681975, 3681976, 3681977, 3681978, 3681979, 3681980, 3681981, 3681982, 3681983, 3681984, 3681985, 3681986, 3681987, 3681988, 3681989, 3681990, 3681991, 3681992, 3681993, 3681994, 3681995, 3681996, 3681997, 3681998, 3681999, 3682000, 3682001, 3682002, 3682003, 3682004, 3682005, 3682006, 3682007, 3682008, 3682009, 3682010, 3682011, 3682012, 3682013, 3682014, 3682015, 3682016, 3682017, 3682018, 3682019, 3682020, 3682021, 3682022, 3682023, 3682024, 3682025, 3682026, 3682027, 3682028, 3682029, 3682030, 3682031, 3682032, 3682033, 3682034, 3682035, 3682036)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:19:11,266 - [124756] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-17 10:19:11,267 - [124756] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupAutoGenerationSourceMapping woag WHERE woag.WorkOrderAutoGenerationId in (3681701, 3681702, 3681703, 3681704, 3681705, 3681706, 3681707, 3681708, 3681709, 3681710, 3681711, 3681712, 3681713, 3681714, 3681715, 3681716, 3681717, 3681718, 3681719, 3681720, 3681721, 3681722, 3681723, 3681724, 3681725, 3681726, 3681727, 3681728, 3681729, 3681730, 3681731, 3681732, 3681733, 3681734, 3681735, 3681736, 3681737, 3681738, 3681739, 3681740, 3681741, 3681742, 3681743, 3681744, 3681745, 3681746, 3681747, 3681748, 3681749, 3681750, 3681751, 3681752, 3681753, 3681754, 3681755, 3681756, 3681757, 3681758, 3681759, 3681760, 3681761, 3681762, 3681763, 3681764, 3681765, 3681766, 3681767, 3681768, 3681769, 3681770, 3681771, 3681772, 3681773, 3681774, 3681775, 3681776, 3681777, 3681778, 3681779, 3681780, 3681781, 3681782, 3681783, 3681784, 3681785, 3681786, 3681787, 3681788, 3681789, 3681790, 3681791, 3681792, 3681793, 3681794, 3681795, 3681796, 3681797, 3681798, 3681799, 3681800, 3681801, 3681802, 3681803, 3681804, 3681805, 3681806, 3681807, 3681808, 3681809, 3681810, 3681811, 3681812, 3681813, 3681814, 3681815, 3681816, 3681817, 3681818, 3681819, 3681820, 3681821, 3681822, 3681823, 3681824, 3681825, 3681826, 3681827, 3681828, 3681829, 3681830, 3681831, 3681832, 3681833, 3681834, 3681835, 3681836, 3681837, 3681838, 3681839, 3681840, 3681841, 3681842, 3681843, 3681844, 3681845, 3681846, 3681847, 3681848, 3681849, 3681850, 3681851, 3681852, 3681853, 3681854, 3681855, 3681856, 3681857, 3681858, 3681859, 3681860, 3681861, 3681862, 3681863, 3681864, 3681865, 3681866, 3681867, 3681868, 3681869, 3681870, 3681871, 3681872, 3681873, 3681874, 3681875, 3681876, 3681877, 3681878, 3681879, 3681880, 3681881, 3681882, 3681883, 3681884, 3681885, 3681886, 3681887, 3681888, 3681889, 3681890, 3681891, 3681892, 3681893, 3681894, 3681895, 3681896, 3681897, 3681898, 3681899, 3681900, 3681901, 3681902, 3681903, 3681904, 3681905, 3681906, 3681907, 3681908, 3681909, 3681910, 3681911, 3681912, 3681913, 3681914, 3681915, 3681916, 3681917, 3681918, 3681919, 3681920, 3681921, 3681922, 3681923, 3681924, 3681925, 3681926, 3681927, 3681928, 3681929, 3681930, 3681931, 3681932, 3681933, 3681934, 3681935, 3681936, 3681937, 3681938, 3681939, 3681940, 3681941, 3681942, 3681943, 3681944, 3681945, 3681946, 3681947, 3681948, 3681949, 3681950, 3681951, 3681952, 3681953, 3681954, 3681955, 3681956, 3681957, 3681958, 3681959, 3681960, 3681961, 3681962, 3681963, 3681964, 3681965, 3681966, 3681967, 3681968, 3681969, 3681970, 3681971, 3681972, 3681973, 3681974, 3681975, 3681976, 3681977, 3681978, 3681979, 3681980, 3681981, 3681982, 3681983, 3681984, 3681985, 3681986, 3681987, 3681988, 3681989, 3681990, 3681991, 3681992, 3681993, 3681994, 3681995, 3681996, 3681997, 3681998, 3681999, 3682000, 3682001, 3682002, 3682003, 3682004, 3682005, 3682006, 3682007, 3682008, 3682009, 3682010, 3682011, 3682012, 3682013, 3682014, 3682015, 3682016, 3682017, 3682018, 3682019, 3682020, 3682021, 3682022, 3682023, 3682024, 3682025, 3682026, 3682027, 3682028, 3682029, 3682030, 3682031, 3682032, 3682033, 3682034, 3682035, 3682036)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:19:11,552 - [124756] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 10:19:11,552 - [124756] - 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 (3681701, 3681702, 3681703, 3681704, 3681705, 3681706, 3681707, 3681708, 3681709, 3681710, 3681711, 3681712, 3681713, 3681714, 3681715, 3681716, 3681717, 3681718, 3681719, 3681720, 3681721, 3681722, 3681723, 3681724, 3681725, 3681726, 3681727, 3681728, 3681729, 3681730, 3681731, 3681732, 3681733, 3681734, 3681735, 3681736, 3681737, 3681738, 3681739, 3681740, 3681741, 3681742, 3681743, 3681744, 3681745, 3681746, 3681747, 3681748, 3681749, 3681750, 3681751, 3681752, 3681753, 3681754, 3681755, 3681756, 3681757, 3681758, 3681759, 3681760, 3681761, 3681762, 3681763, 3681764, 3681765, 3681766, 3681767, 3681768, 3681769, 3681770, 3681771, 3681772, 3681773, 3681774, 3681775, 3681776, 3681777, 3681778, 3681779, 3681780, 3681781, 3681782, 3681783, 3681784, 3681785, 3681786, 3681787, 3681788, 3681789, 3681790, 3681791, 3681792, 3681793, 3681794, 3681795, 3681796, 3681797, 3681798, 3681799, 3681800, 3681801, 3681802, 3681803, 3681804, 3681805, 3681806, 3681807, 3681808, 3681809, 3681810, 3681811, 3681812, 3681813, 3681814, 3681815, 3681816, 3681817, 3681818, 3681819, 3681820, 3681821, 3681822, 3681823, 3681824, 3681825, 3681826, 3681827, 3681828, 3681829, 3681830, 3681831, 3681832, 3681833, 3681834, 3681835, 3681836, 3681837, 3681838, 3681839, 3681840, 3681841, 3681842, 3681843, 3681844, 3681845, 3681846, 3681847, 3681848, 3681849, 3681850, 3681851, 3681852, 3681853, 3681854, 3681855, 3681856, 3681857, 3681858, 3681859, 3681860, 3681861, 3681862, 3681863, 3681864, 3681865, 3681866, 3681867, 3681868, 3681869, 3681870, 3681871, 3681872, 3681873, 3681874, 3681875, 3681876, 3681877, 3681878, 3681879, 3681880, 3681881, 3681882, 3681883, 3681884, 3681885, 3681886, 3681887, 3681888, 3681889, 3681890, 3681891, 3681892, 3681893, 3681894, 3681895, 3681896, 3681897, 3681898, 3681899, 3681900, 3681901, 3681902, 3681903, 3681904, 3681905, 3681906, 3681907, 3681908, 3681909, 3681910, 3681911, 3681912, 3681913, 3681914, 3681915, 3681916, 3681917, 3681918, 3681919, 3681920, 3681921, 3681922, 3681923, 3681924, 3681925, 3681926, 3681927, 3681928, 3681929, 3681930, 3681931, 3681932, 3681933, 3681934, 3681935, 3681936, 3681937, 3681938, 3681939, 3681940, 3681941, 3681942, 3681943, 3681944, 3681945, 3681946, 3681947, 3681948, 3681949, 3681950, 3681951, 3681952, 3681953, 3681954, 3681955, 3681956, 3681957, 3681958, 3681959, 3681960, 3681961, 3681962, 3681963, 3681964, 3681965, 3681966, 3681967, 3681968, 3681969, 3681970, 3681971, 3681972, 3681973, 3681974, 3681975, 3681976, 3681977, 3681978, 3681979, 3681980, 3681981, 3681982, 3681983, 3681984, 3681985, 3681986, 3681987, 3681988, 3681989, 3681990, 3681991, 3681992, 3681993, 3681994, 3681995, 3681996, 3681997, 3681998, 3681999, 3682000, 3682001, 3682002, 3682003, 3682004, 3682005, 3682006, 3682007, 3682008, 3682009, 3682010, 3682011, 3682012, 3682013, 3682014, 3682015, 3682016, 3682017, 3682018, 3682019, 3682020, 3682021, 3682022, 3682023, 3682024, 3682025, 3682026, 3682027, 3682028, 3682029, 3682030, 3682031, 3682032, 3682033, 3682034, 3682035, 3682036)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:19:11,881 - [124756] - src.utils.log - INFO - βœ… Fetched 226 rows - __SPLIT__ 2026-07-17 10:19:11,882 - [124756] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from CRM.LeadNote woag WHERE woag.RefId in (3681701, 3681702, 3681703, 3681704, 3681705, 3681706, 3681707, 3681708, 3681709, 3681710, 3681711, 3681712, 3681713, 3681714, 3681715, 3681716, 3681717, 3681718, 3681719, 3681720, 3681721, 3681722, 3681723, 3681724, 3681725, 3681726, 3681727, 3681728, 3681729, 3681730, 3681731, 3681732, 3681733, 3681734, 3681735, 3681736, 3681737, 3681738, 3681739, 3681740, 3681741, 3681742, 3681743, 3681744, 3681745, 3681746, 3681747, 3681748, 3681749, 3681750, 3681751, 3681752, 3681753, 3681754, 3681755, 3681756, 3681757, 3681758, 3681759, 3681760, 3681761, 3681762, 3681763, 3681764, 3681765, 3681766, 3681767, 3681768, 3681769, 3681770, 3681771, 3681772, 3681773, 3681774, 3681775, 3681776, 3681777, 3681778, 3681779, 3681780, 3681781, 3681782, 3681783, 3681784, 3681785, 3681786, 3681787, 3681788, 3681789, 3681790, 3681791, 3681792, 3681793, 3681794, 3681795, 3681796, 3681797, 3681798, 3681799, 3681800, 3681801, 3681802, 3681803, 3681804, 3681805, 3681806, 3681807, 3681808, 3681809, 3681810, 3681811, 3681812, 3681813, 3681814, 3681815, 3681816, 3681817, 3681818, 3681819, 3681820, 3681821, 3681822, 3681823, 3681824, 3681825, 3681826, 3681827, 3681828, 3681829, 3681830, 3681831, 3681832, 3681833, 3681834, 3681835, 3681836, 3681837, 3681838, 3681839, 3681840, 3681841, 3681842, 3681843, 3681844, 3681845, 3681846, 3681847, 3681848, 3681849, 3681850, 3681851, 3681852, 3681853, 3681854, 3681855, 3681856, 3681857, 3681858, 3681859, 3681860, 3681861, 3681862, 3681863, 3681864, 3681865, 3681866, 3681867, 3681868, 3681869, 3681870, 3681871, 3681872, 3681873, 3681874, 3681875, 3681876, 3681877, 3681878, 3681879, 3681880, 3681881, 3681882, 3681883, 3681884, 3681885, 3681886, 3681887, 3681888, 3681889, 3681890, 3681891, 3681892, 3681893, 3681894, 3681895, 3681896, 3681897, 3681898, 3681899, 3681900, 3681901, 3681902, 3681903, 3681904, 3681905, 3681906, 3681907, 3681908, 3681909, 3681910, 3681911, 3681912, 3681913, 3681914, 3681915, 3681916, 3681917, 3681918, 3681919, 3681920, 3681921, 3681922, 3681923, 3681924, 3681925, 3681926, 3681927, 3681928, 3681929, 3681930, 3681931, 3681932, 3681933, 3681934, 3681935, 3681936, 3681937, 3681938, 3681939, 3681940, 3681941, 3681942, 3681943, 3681944, 3681945, 3681946, 3681947, 3681948, 3681949, 3681950, 3681951, 3681952, 3681953, 3681954, 3681955, 3681956, 3681957, 3681958, 3681959, 3681960, 3681961, 3681962, 3681963, 3681964, 3681965, 3681966, 3681967, 3681968, 3681969, 3681970, 3681971, 3681972, 3681973, 3681974, 3681975, 3681976, 3681977, 3681978, 3681979, 3681980, 3681981, 3681982, 3681983, 3681984, 3681985, 3681986, 3681987, 3681988, 3681989, 3681990, 3681991, 3681992, 3681993, 3681994, 3681995, 3681996, 3681997, 3681998, 3681999, 3682000, 3682001, 3682002, 3682003, 3682004, 3682005, 3682006, 3682007, 3682008, 3682009, 3682010, 3682011, 3682012, 3682013, 3682014, 3682015, 3682016, 3682017, 3682018, 3682019, 3682020, 3682021, 3682022, 3682023, 3682024, 3682025, 3682026, 3682027, 3682028, 3682029, 3682030, 3682031, 3682032, 3682033, 3682034, 3682035, 3682036) and woag.RefType = 'TempWorkorder';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:19:12,170 - [124756] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 10:19:12,171 - [124756] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment woagca WHERE woagca.WorkOrderAutoGenerationId in (3681701, 3681702, 3681703, 3681704, 3681705, 3681706, 3681707, 3681708, 3681709, 3681710, 3681711, 3681712, 3681713, 3681714, 3681715, 3681716, 3681717, 3681718, 3681719, 3681720, 3681721, 3681722, 3681723, 3681724, 3681725, 3681726, 3681727, 3681728, 3681729, 3681730, 3681731, 3681732, 3681733, 3681734, 3681735, 3681736, 3681737, 3681738, 3681739, 3681740, 3681741, 3681742, 3681743, 3681744, 3681745, 3681746, 3681747, 3681748, 3681749, 3681750, 3681751, 3681752, 3681753, 3681754, 3681755, 3681756, 3681757, 3681758, 3681759, 3681760, 3681761, 3681762, 3681763, 3681764, 3681765, 3681766, 3681767, 3681768, 3681769, 3681770, 3681771, 3681772, 3681773, 3681774, 3681775, 3681776, 3681777, 3681778, 3681779, 3681780, 3681781, 3681782, 3681783, 3681784, 3681785, 3681786, 3681787, 3681788, 3681789, 3681790, 3681791, 3681792, 3681793, 3681794, 3681795, 3681796, 3681797, 3681798, 3681799, 3681800, 3681801, 3681802, 3681803, 3681804, 3681805, 3681806, 3681807, 3681808, 3681809, 3681810, 3681811, 3681812, 3681813, 3681814, 3681815, 3681816, 3681817, 3681818, 3681819, 3681820, 3681821, 3681822, 3681823, 3681824, 3681825, 3681826, 3681827, 3681828, 3681829, 3681830, 3681831, 3681832, 3681833, 3681834, 3681835, 3681836, 3681837, 3681838, 3681839, 3681840, 3681841, 3681842, 3681843, 3681844, 3681845, 3681846, 3681847, 3681848, 3681849, 3681850, 3681851, 3681852, 3681853, 3681854, 3681855, 3681856, 3681857, 3681858, 3681859, 3681860, 3681861, 3681862, 3681863, 3681864, 3681865, 3681866, 3681867, 3681868, 3681869, 3681870, 3681871, 3681872, 3681873, 3681874, 3681875, 3681876, 3681877, 3681878, 3681879, 3681880, 3681881, 3681882, 3681883, 3681884, 3681885, 3681886, 3681887, 3681888, 3681889, 3681890, 3681891, 3681892, 3681893, 3681894, 3681895, 3681896, 3681897, 3681898, 3681899, 3681900, 3681901, 3681902, 3681903, 3681904, 3681905, 3681906, 3681907, 3681908, 3681909, 3681910, 3681911, 3681912, 3681913, 3681914, 3681915, 3681916, 3681917, 3681918, 3681919, 3681920, 3681921, 3681922, 3681923, 3681924, 3681925, 3681926, 3681927, 3681928, 3681929, 3681930, 3681931, 3681932, 3681933, 3681934, 3681935, 3681936, 3681937, 3681938, 3681939, 3681940, 3681941, 3681942, 3681943, 3681944, 3681945, 3681946, 3681947, 3681948, 3681949, 3681950, 3681951, 3681952, 3681953, 3681954, 3681955, 3681956, 3681957, 3681958, 3681959, 3681960, 3681961, 3681962, 3681963, 3681964, 3681965, 3681966, 3681967, 3681968, 3681969, 3681970, 3681971, 3681972, 3681973, 3681974, 3681975, 3681976, 3681977, 3681978, 3681979, 3681980, 3681981, 3681982, 3681983, 3681984, 3681985, 3681986, 3681987, 3681988, 3681989, 3681990, 3681991, 3681992, 3681993, 3681994, 3681995, 3681996, 3681997, 3681998, 3681999, 3682000, 3682001, 3682002, 3682003, 3682004, 3682005, 3682006, 3682007, 3682008, 3682009, 3682010, 3682011, 3682012, 3682013, 3682014, 3682015, 3682016, 3682017, 3682018, 3682019, 3682020, 3682021, 3682022, 3682023, 3682024, 3682025, 3682026, 3682027, 3682028, 3682029, 3682030, 3682031, 3682032, 3682033, 3682034, 3682035, 3682036);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:19:12,453 - [124756] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 10:19:12,456 - [124756] - src.utils.log - INFO - Updating temp tables - __SPLIT__ 2026-07-17 10:19:12,491 - [124756] - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyKey FROM Common.CompanyMaster cm WHERE CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:19:12,757 - [124756] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 10:19:12,761 - [124756] - src.utils.log - INFO - πŸ” Fetching data: Select DiscountSetupId, [SysName] as DiscountSysName from Common.DiscountSetupMaster WHERE DiscountSetupId IN (942, 919, 1160, 1159, 1091, 1147, 1141, 899, 1150, 947, 894) AND CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:19:13,028 - [124756] - src.utils.log - INFO - βœ… Fetched 11 rows - __SPLIT__ 2026-07-17 10:19:13,031 - [124756] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 133 AND EnitityNumberType in ('SubWorkOrder'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:19:13,297 - [124756] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 10:19:13,298 - [124756] - src.utils.log - INFO - πŸ“ Executing: UPDATE Common.GenerateNumberConfig SET NextNumber = '22857' WHERE CompanyId = 133 AND EnitityNumberType in ('SubWorkOrder');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:19:13,565 - [124756] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-17 10:19:13,569 - [124756] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-17 10:19:13,570 - [124756] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishHistory: 336 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:19:13,862 - [124756] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 336) into ServiceCore.WorkOrderAutoGenerationPublishHistory - __SPLIT__ 2026-07-17 10:19:18,840 - [124756] - src.utils.log - INFO - βœ… All 336 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishHistory in 1 batches - __SPLIT__ 2026-07-17 10:19:18,841 - [124756] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationPublishHistoryId, WorkOrderNo, ServiceSetupId FROM ServiceCore.WorkOrderAutoGenerationPublishHistory WHERE ServiceSetupId IN (150439, 150497, 150496, 150503, 150504, 150510, 150525, 150546, 150574, 150370, 150598, 150673, 150640, 150418, 150383, 150385, 150398, 150392, 150521, 150588, 150384, 150650, 150470, 150451, 150452, 150454, 150571, 150374, 150358, 150395, 150394, 150396, 150595, 150410, 150625, 150592, 150414, 150642, 150535, 150420, 150649, 150641, 150400, 150654, 150412, 150444, 150417, 150524, 150480, 150447, 150501, 150455, 150459, 150401, 150387, 150495, 150589, 150562, 150547, 150552, 150554, 150518, 150557, 150656, 150657, 150655, 150560, 150375, 150338, 150556, 150359, 150600, 150355, 150534, 150559, 150637, 150475, 150529, 150457, 150561, 150566, 150352, 150533, 150551, 150660, 150665, 150666, 150601, 150446, 150671, 150549, 150379, 150516, 150483, 150450, 150380, 150458, 150365, 150580, 150579, 150573, 150456, 150522) AND WorkOrderNo IN ('983238', '249377', '799407', '562570', '442142', '675375', '983141', '460831', '219688', '7513711', '2746431', '2991324', '1700549', '6175154', '7727926', '7213194', '3428495', '5431127', '1662792', '6967710', '1601653', '6190786', '8219564', '3386564', '4326220', '6698501', '8326605', '2975361', '1696758', '7016539', '7084261', '6913262', '3356589', '2962389', '9708121', '6819512', '7026090', '3078301', '5218084', '2063432', '6867052', '9302499', '8590893', '2039325', '2459801', '6568417', '6200955', '1951013', '1727798', '3996761', '7887118', '7853960', '9804860', '2006286', '1027760', '6242319', '1543916', '2489060', '3158508', '8916439', '9673546', '6059608', '6590760', '9138705', '6354983', '1320904', '8422195', '4241737', '3065102', '7933333', '1867627', '1286730', '2473087', '4852002', '3302040', '7952360', '4439387', '1362006', '3540269', '9037014', '1920998', '1366698', '4547002', '7672903', '7548569', '1636476', '1024097', '1292936', '3292857', '1291611', '7674614', '7166874', '4624182', '4443239', '8349168', '8822828', '4059750', '3026694', '9530353', '1133218', '3413522', '6476041', '1921947', '5382313', '2063204', '7034083', '9971108', '9715370', '1871680', '9999571', '9759335', '3980322', '1828216', '7847101', '6216396', '9554229', '1768767', '8151255', '7087422', '5190037', '3073192', '2964371', '1552069', '4989622', '9109958', '3081063', '5199022', '1808811', '6682014', '5797545', '8427782', '4331700', '1700402', '7107464', '1884121', '1448511', '5920380', '8970659', '1345061', '1692536', '9652523', '5775629', '5910047', '9163002', '9654264', '6818577', '5105640', '6155840', '4223325', '5262302', '1003661', '9432544', '1114885', '1970939', '8422963', '3403857', '5419404', '2962748', '4902923', '1002357', '2937880', '4447294', '1564628', '6503960', '6279432', '2906779', '1044357', '2883428', '8484190', '7038809', '4446210', '5487861', '5561186', '2235230', '9891086', '4723941', '1797248', '7759169', '6615544', '9427607', '6639156', '8057267', '1386690', '6298435', '1172178', '9955912', '3417632', '3843236', '9919202', '2612550', '6347875', '1868324', '1933584', '6909624', '1372183', '9564423', '6173147', '5518065', '4995066', '1306099', '2252838', '6833566', '3419488', '7119970', '1020372', '9416181', '5294690', '5161578', '2568869', '2699742', '6306769', '6073677', '8119929', '5437806', '7037308', '4636389', '9558223', '4734999', '4956866', '7431634', '5172743', '4899875', '3565241', '7287873', '2959476', '1104230', '7222466', '2952894', '4258189', '8922178', '6686297', '6083077', '2723560', '9376710', '8582639', '3003641', '4425569', '6520142', '7682892', '5990990', '4573334', '8976014', '4633227', '1452553', '5622572', '2484801', '4678260', '4467608', '5965453', '8493976', '7020854', '8961763', '1121525', '3342148', '3973196', '5865252', '8075171', '8954010', '5517670', '5748164', '7638999', '9084716', '5125134', '9935743', '7708961', '6302072', '5160164', '1239411', '2650551', '5696233', '8869764', '9750073', '5258653', '8183233', '5240977', '7176998', '3261034', '7528007', '7908087', '6933096', '9573986', '2018337', '3383926', '1242277', '8981093', '1551872', '7735661', '2112802', '5589294', '2384890', '2846151', '5039332', '9773491', '6741357', '4628159', '9047812', '2340549', '8774758', '1088188', '5921458', '4136971', '5636130', '4997557', '9546357', '3910669', '6928479', '1978999', '1221456', '2325806', '9885143', '4101075', '5067586', '9280087', '3589586', '1621440', '6142808', '7703311', '2634970', '3631967', '8366230', '1770300', '1042373', '2090905', '6506637', '1494113', '7016553', '3992101', '2744632', '2003793', '5141539', '3661529', '7026426', '9993714', '9616006', '8212833', '5317265') AND GenerateWorkOrderHistoryId = 124756;... (Thread: ThreadPoolExecutor-16_0) - __SPLIT__ 2026-07-17 10:19:19,323 - [124756] - src.utils.log - INFO - βœ… Fetched 336 rows - __SPLIT__ 2026-07-17 10:19:19,324 - [124756] - src.utils.log - INFO - 🏁 Final merged rows: 336 - __SPLIT__ 2026-07-17 10:19:19,332 - [124756] - src.utils.log - INFO - Sequential Insertion in work order tables begin - __SPLIT__ 2026-07-17 10:19:19,332 - [124756] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-17 10:19:19,332 - [124756] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderServices: 649 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:19:19,606 - [124756] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 649) into ServiceCore.WorkOrderServices - __SPLIT__ 2026-07-17 10:19:22,866 - [124756] - src.utils.log - INFO - βœ… All 649 rows inserted successfully into ServiceCore.WorkOrderServices in 1 batches - __SPLIT__ 2026-07-17 10:19:22,866 - [124756] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-17 10:19:22,866 - [124756] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.WorkOrderAppliedDiscount: 226 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:19:23,140 - [124756] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 226) into ServiceAuto.WorkOrderAppliedDiscount - __SPLIT__ 2026-07-17 10:19:24,938 - [124756] - src.utils.log - INFO - βœ… All 226 rows inserted successfully into ServiceAuto.WorkOrderAppliedDiscount in 1 batches - __SPLIT__ 2026-07-17 10:19:24,939 - [124756] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-17 10:19:24,939 - [124756] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderSalesPersonCommission: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:19:25,231 - [124756] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderSalesPersonCommission - __SPLIT__ 2026-07-17 10:19:26,172 - [124756] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderSalesPersonCommission in 1 batches - __SPLIT__ 2026-07-17 10:19:26,172 - [124756] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderCommissionAdjustment: - __SPLIT__ 2026-07-17 10:19:26,172 - [124756] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-17 10:19:26,172 - [124756] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderCrew: 414 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:19:26,443 - [124756] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 414) into ServiceCore.WorkOrderCrew - __SPLIT__ 2026-07-17 10:19:28,229 - [124756] - src.utils.log - INFO - βœ… All 414 rows inserted successfully into ServiceCore.WorkOrderCrew in 1 batches - __SPLIT__ 2026-07-17 10:19:28,230 - [124756] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkorderSourceMapping: - __SPLIT__ 2026-07-17 10:19:28,230 - [124756] - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-07-17 10:19:28,230 - [124756] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-17 10:19:28,230 - [124756] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishServices: 649 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:19:28,504 - [124756] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 649) into ServiceCore.WorkOrderAutoGenerationPublishServices - __SPLIT__ 2026-07-17 10:19:31,797 - [124756] - src.utils.log - INFO - βœ… All 649 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishServices in 1 batches - __SPLIT__ 2026-07-17 10:19:31,797 - [124756] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-17 10:19:31,798 - [124756] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.SubWorkOrder: 6 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:19:32,079 - [124756] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 6) into ServiceCore.SubWorkOrder - __SPLIT__ 2026-07-17 10:19:33,170 - [124756] - src.utils.log - INFO - βœ… All 6 rows inserted successfully into ServiceCore.SubWorkOrder in 1 batches - __SPLIT__ 2026-07-17 10:19:33,171 - [124756] - src.utils.log - INFO - πŸ” Fetching data: Select * From ServiceCore.SubWorkOrder where WorkOrderId in (2157760, 2157761, 2157762, 2157797, 2157798, 2158003)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:19:33,454 - [124756] - src.utils.log - INFO - βœ… Fetched 6 rows - __SPLIT__ 2026-07-17 10:19:33,463 - [124756] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-17 10:19:33,463 - [124756] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.subWorkOrderIssue: 6 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:19:33,734 - [124756] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 6) into ServiceAuto.subWorkOrderIssue - __SPLIT__ 2026-07-17 10:19:34,675 - [124756] - src.utils.log - INFO - βœ… All 6 rows inserted successfully into ServiceAuto.subWorkOrderIssue in 1 batches - __SPLIT__ 2026-07-17 10:19:34,676 - [124756] - src.utils.log - INFO - πŸ” Fetching data: Select SubWorkOrderIssueId, SubWorkOrderId, ModifiedBy From ServiceAuto.subWorkOrderIssue where SubWorkOrderId in (230455, 230451, 230453, 230454, 230456, 230452) and ModifiedBy in ('999999999', '1000000000', '1000000001', '1000000002', '1000000003', '1000000004')... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:19:34,943 - [124756] - src.utils.log - INFO - βœ… Fetched 6 rows - __SPLIT__ 2026-07-17 10:19:34,944 - [124756] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceAuto.subWorkOrderIssue SET ModifiedBy = 'abcdallas' WHERE ModifiedBy IN ('999999999', '1000000000', '1000000001', '1000000002', '1000000003', '1000000004'); ... (Thread: ThreadPoolExecutor-17_0) - __SPLIT__ 2026-07-17 10:19:35,250 - [124756] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-17 10:19:35,257 - [124756] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-17 10:19:35,257 - [124756] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.subWOIssueRepair: 7 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:19:35,533 - [124756] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 7) into ServiceAuto.subWOIssueRepair - __SPLIT__ 2026-07-17 10:19:36,482 - [124756] - src.utils.log - INFO - βœ… All 7 rows inserted successfully into ServiceAuto.subWOIssueRepair in 1 batches - __SPLIT__ 2026-07-17 10:19:36,483 - [124756] - src.utils.log - INFO - πŸ” Fetching data: Select IssueRepairId, ModifiedBy From ServiceAuto.subWOIssueRepair where SubWorkOrderIssueId in (192634, 192635, 192636, 192637, 192638, 192639)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:19:36,749 - [124756] - src.utils.log - INFO - βœ… Fetched 7 rows - __SPLIT__ 2026-07-17 10:19:36,750 - [124756] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceAuto.subWOIssueRepair SET ModifiedBy = 'abcdallas' WHERE ModifiedBy IN ('0___TMP___192634', '1___TMP___192634', '0___TMP___192635', '0___TMP___192636', '0___TMP___192637', '0___TMP___192638', '0___TMP___192639') AND CreatedDate = '2026-07-17 06:19:33.461'; ... (Thread: ThreadPoolExecutor-18_0) - __SPLIT__ 2026-07-17 10:19:37,031 - [124756] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-17 10:19:37,037 - [124756] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-17 10:19:37,038 - [124756] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.SubWOIssueRepairLabor: 14 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:19:37,309 - [124756] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 14) into ServiceAuto.SubWOIssueRepairLabor - __SPLIT__ 2026-07-17 10:19:38,256 - [124756] - src.utils.log - INFO - βœ… All 14 rows inserted successfully into ServiceAuto.SubWOIssueRepairLabor in 1 batches - __SPLIT__ 2026-07-17 10:19:38,261 - [124756] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-17 10:19:38,261 - [124756] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.SubWOIssueRepairPart: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:19:38,538 - [124756] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceAuto.SubWOIssueRepairPart - __SPLIT__ 2026-07-17 10:19:39,477 - [124756] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceAuto.SubWOIssueRepairPart in 1 batches - __SPLIT__ 2026-07-17 10:19:39,478 - [124756] - 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 (150439, 150497, 150496, 150503, 150504, 150510, 150525, 150546, 150574, 150370, 150598, 150673, 150640, 150418, 150383, 150385, 150398, 150392, 150521, 150588, 150384, 150650, 150470, 150451, 150452, 150454, 150571, 150374, 150358, 150395, 150394, 150396, 150595, 150410, 150625, 150592, 150414, 150642, 150535, 150420, 150649, 150641, 150400, 150654, 150412, 150444, 150417, 150524, 150480, 150447, 150501, 150455, 150459, 150401, 150387, 150495, 150589, 150562, 150547, 150552, 150554, 150518, 150557, 150656, 150657, 150655, 150560, 150375, 150338, 150556, 150359, 150600, 150355, 150534, 150559, 150637, 150475, 150529, 150457, 150561, 150566, 150352, 150533, 150551, 150660, 150665, 150666, 150601, 150446, 150671, 150549, 150379, 150516, 150483, 150450, 150380, 150458, 150365, 150580, 150579, 150573, 150456, 150522)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:19:39,747 - [124756] - src.utils.log - INFO - βœ… Fetched 103 rows - __SPLIT__ 2026-07-17 10:19:39,757 - [124756] - src.utils.log - INFO - Size of Transaction: 288 - __SPLIT__ 2026-07-17 10:19:39,758 - [124756] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 288 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:19:40,161 - [124756] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 288) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-07-17 10:19:41,729 - [124756] - src.utils.log - INFO - βœ… All 288 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-07-17 10:19:41,861 - [124756] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-07-17 10:19:41,862 - [124756] - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionId, ModifiedBy, TransactionDate as InvoiceDate from Billing.[Transaction] t WHERE t.ModifiedBy in (12345678910, 12345678911, 12345678912, 12345678913, 12345678914, 12345678915, 12345678916, 12345678917, 12345678918, 12345678919, 12345678920, 12345678921, 12345678922, 12345678923, 12345678924, 12345678925, 12345678926, 12345678927, 12345678928, 12345678929, 12345678930, 12345678931, 12345678932, 12345678933, 12345678934, 12345678935, 12345678936, 12345678937, 12345678938, 12345678939, 12345678940, 12345678941, 12345678942, 12345678943, 12345678944, 12345678945, 12345678946, 12345678947, 12345678948, 12345678949, 12345678950, 12345678951, 12345678952, 12345678953, 12345678954, 12345678955, 12345678956, 12345678957, 12345678958, 12345678959, 12345678960, 12345678961, 12345678962, 12345678963, 12345678964, 12345678965, 12345678966, 12345678967, 12345678968, 12345678969, 12345678970, 12345678971, 12345678972, 12345678973, 12345678974, 12345678975, 12345678976, 12345678977, 12345678978, 12345678979, 12345678980, 12345678981, 12345678982, 12345678983, 12345678984, 12345678985, 12345678986, 12345678987, 12345678988, 12345678989, 12345678990, 12345678991, 12345678992, 12345678993, 12345678994, 12345678995, 12345678996, 12345678997, 12345678998, 12345678999, 12345679000, 12345679001, 12345679002, 12345679003, 12345679004, 12345679005, 12345679006, 12345679007, 12345679008, 12345679009, 12345679010, 12345679011, 12345679012, 12345679013, 12345679014, 12345679015, 12345679016, 12345679017, 12345679018, 12345679019, 12345679020, 12345679021, 12345679022, 12345679023, 12345679024, 12345679025, 12345679026, 12345679027, 12345679028, 12345679029, 12345679030, 12345679031, 12345679032, 12345679033, 12345679034, 12345679035, 12345679036, 12345679037, 12345679038, 12345679039, 12345679040, 12345679041, 12345679042, 12345679043, 12345679044, 12345679045, 12345679046, 12345679047, 12345679048, 12345679049, 12345679050, 12345679051, 12345679052, 12345679053, 12345679054, 12345679055, 12345679056, 12345679057, 12345679058, 12345679059, 12345679060, 12345679061, 12345679062, 12345679063, 12345679064, 12345679065, 12345679066, 12345679067, 12345679068, 12345679069, 12345679070, 12345679071, 12345679072, 12345679073, 12345679074, 12345679075, 12345679076, 12345679077, 12345679078, 12345679079, 12345679080, 12345679081, 12345679082, 12345679083, 12345679084, 12345679085, 12345679086, 12345679087, 12345679088, 12345679089, 12345679090, 12345679091, 12345679092, 12345679093, 12345679094, 12345679095, 12345679096, 12345679097, 12345679098, 12345679099, 12345679100, 12345679101, 12345679102, 12345679103, 12345679104, 12345679105, 12345679106, 12345679107, 12345679108, 12345679109, 12345679110, 12345679111, 12345679112, 12345679113, 12345679114, 12345679115, 12345679116, 12345679117, 12345679118, 12345679119, 12345679120, 12345679121, 12345679122, 12345679123, 12345679124, 12345679125, 12345679126, 12345679127, 12345679128, 12345679129, 12345679130, 12345679131, 12345679132, 12345679133, 12345679134, 12345679135, 12345679136, 12345679137, 12345679138, 12345679139, 12345679140, 12345679141, 12345679142, 12345679143, 12345679144, 12345679145, 12345679146, 12345679147, 12345679148, 12345679149, 12345679150, 12345679151, 12345679152, 12345679153, 12345679154, 12345679155, 12345679156, 12345679157, 12345679158, 12345679159, 12345679160, 12345679161, 12345679162, 12345679163, 12345679164, 12345679165, 12345679166, 12345679167, 12345679168, 12345679169, 12345679170, 12345679171, 12345679172, 12345679173, 12345679174, 12345679175, 12345679176, 12345679177, 12345679178, 12345679179, 12345679180, 12345679181, 12345679182, 12345679183, 12345679184, 12345679185, 12345679186, 12345679187, 12345679188, 12345679189, 12345679190, 12345679191, 12345679192, 12345679193, 12345679194, 12345679195, 12345679196, 12345679197) and t.CompanyId = 133 AND t.TransactionType ='Invoice' AND t.CreatedDate = '2026-07-17 06:19:39.752';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:19:43,019 - [124756] - src.utils.log - INFO - βœ… Fetched 288 rows - __SPLIT__ 2026-07-17 10:19:43,023 - [124756] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId in (150338, 150352, 150355, 150358, 150359, 150365, 150370, 150374, 150375, 150379, 150380, 150383, 150384, 150385, 150387, 150392, 150394, 150395, 150396, 150398, 150400, 150401, 150410, 150412, 150414, 150417, 150418, 150420, 150439, 150444, 150446, 150447, 150450, 150451, 150452, 150454, 150455, 150456, 150457, 150458, 150459, 150470, 150475, 150480, 150483, 150495, 150496, 150497, 150501, 150503, 150504, 150510, 150516, 150518, 150521, 150522, 150524, 150525, 150529, 150533, 150534, 150535, 150546, 150547, 150549, 150551, 150552, 150554, 150556, 150557, 150559, 150560, 150561, 150562, 150566, 150571, 150573, 150574, 150579, 150580, 150588, 150589, 150592, 150595, 150598, 150600, 150601, 150625, 150637, 150640, 150641, 150642, 150649, 150650, 150654, 150655, 150656, 150657, 150660, 150665, 150666, 150671, 150673);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:19:43,299 - [124756] - src.utils.log - INFO - βœ… Fetched 6 rows - __SPLIT__ 2026-07-17 10:19:43,316 - [124756] - src.utils.log - INFO - πŸ“ Executing: UPDATE Billing.[Transaction] SET ModifiedBy = NULL WHERE ModifiedBy IN (12345678910,12345678911,12345678912,12345678913,12345678914,12345678915,12345678916,12345678917,12345678918,12345678919,12345678920,12345678921,12345678922,12345678923,12345678924,12345678925,12345678926,12345678927,12345678928,12345678929,12345678930,12345678931,12345678932,12345678933,12345678934,12345678935,12345678936,12345678937,12345678938,12345678939,12345678940,12345678941,12345678942,12345678943,12345678944,12345678945,12345678946,12345678947,12345678948,12345678949,12345678950,12345678951,12345678952,12345678953,12345678954,12345678955,12345678956,12345678957,12345678958,12345678959,12345678960,12345678961,12345678962,12345678963,12345678964,12345678965,12345678966,12345678967,12345678968,12345678969,12345678970,12345678971,12345678972,12345678973,12345678974,12345678975,12345678976,12345678977,12345678978,12345678979,12345678980,12345678981,12345678982,12345678983,12345678984,12345678985,12345678986,12345678987,12345678988,12345678989,12345678990,12345678991,12345678992,12345678993,12345678994,12345678995,12345678996,12345678997,12345678998,12345678999,12345679000,12345679001,12345679002,12345679003,12345679004,12345679005,12345679006,12345679007,12345679008,12345679009,12345679010,12345679011,12345679012,12345679013,12345679014,12345679015,12345679016,12345679017,12345679018,12345679019,12345679020,12345679021,12345679022,12345679023,12345679024,12345679025,12345679026,12345679027,12345679028,12345679029,12345679030,12345679031,12345679032,12345679033,12345679034,12345679035,12345679036,12345679037,12345679038,12345679039,12345679040,12345679041,12345679042,12345679043,12345679044,12345679045,12345679046,12345679047,12345679048,12345679049,12345679050,12345679051,12345679052,12345679053,12345679054,12345679055,12345679056,12345679057,12345679058,12345679059,12345679060,12345679061,12345679062,12345679063,12345679064,12345679065,12345679066,12345679067,12345679068,12345679069,12345679070,12345679071,12345679072,12345679073,12345679074,12345679075,12345679076,12345679077,12345679078,12345679079,12345679080,12345679081,12345679082,12345679083,12345679084,12345679085,12345679086,12345679087,12345679088,12345679089,12345679090,12345679091,12345679092,12345679093,12345679094,12345679095,12345679096,12345679097,12345679098,12345679099,12345679100,12345679101,12345679102,12345679103,12345679104,12345679105,12345679106,12345679107,12345679108,12345679109,12345679110,12345679111,12345679112,12345679113,12345679114,12345679115,12345679116,12345679117,12345679118,12345679119,12345679120,12345679121,12345679122,12345679123,12345679124,12345679125,12345679126,12345679127,12345679128,12345679129,12345679130,12345679131,12345679132,12345679133,12345679134,12345679135,12345679136,12345679137,12345679138,12345679139,12345679140,12345679141,12345679142,12345679143,12345679144,12345679145,12345679146,12345679147,12345679148,12345679149,12345679150,12345679151,12345679152,12345679153,12345679154,12345679155,12345679156,12345679157,12345679158,12345679159,12345679160,12345679161,12345679162,12345679163,12345679164,12345679165,12345679166,12345679167,12345679168,12345679169,12345679170,12345679171,12345679172,12345679173,12345679174,12345679175,12345679176,12345679177,12345679178,12345679179,12345679180,12345679181,12345679182,12345679183,12345679184,12345679185,12345679186,12345679187,12345679188,12345679189,12345679190,12345679191,12345679192,12345679193,12345679194,12345679195,12345679196,12345679197) AND CreatedDate = '2026-07-17 06:19:39.752'; ... (Thread: ThreadPoolExecutor-19_0) - __SPLIT__ 2026-07-17 10:19:44,158 - [124756] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-17 10:19:44,164 - [124756] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-17 10:19:44,164 - [124756] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 288 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:19:44,439 - [124756] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 288) into Billing.Invoice - __SPLIT__ 2026-07-17 10:19:46,868 - [124756] - src.utils.log - INFO - βœ… All 288 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-07-17 10:19:46,869 - [124756] - src.utils.log - INFO - πŸ” Fetching data: SELECT InvoiceId, WorkOrderNo FROM Billing.Invoice i WHERE i.WorkOrderNo in ('1427534', '1427609', '1427565', '1427607', '1427538', '1427573', '1427464', '1427628', '1427536', '1427460', '1427533', '1427643', '1427716', '1427439', '1427446', '1427440', '1427510', '1427442', '1427474', '1427473', '1427475', '1427441', '1427493', '1427477', '1427482', '1427498', '1427678', '1427755', '1427598', '1427438', '1427483', '1427704', '1427689', '1427743', '1427722', '1427634', '1427647', '1427608', '1427486', '1427724', '1427502', '1427711', '1427511', '1427427', '1427579', '1427454', '1427544', '1427426', '1427505', '1427429', '1427430', '1427562', '1427463', '1427631', '1427706', '1427610', '1427522', '1427613', '1427531', '1427663', '1427671', '1427637', '1427556', '1427472', '1427444', '1427703', '1427740', '1427620', '1427674', '1427744', '1427500', '1427757', '1427431', '1427575', '1427466', '1427594', '1427641', '1427569', '1427604', '1427611', '1427563', '1427539', '1427485', '1427432', '1427584', '1427570', '1427550', '1427515', '1427640', '1427585', '1427572', '1427645', '1427586', '1427568', '1427519', '1427520', '1427535', '1427523', '1427540', '1427532', '1427552', '1427514', '1427587', '1427564', '1427648', '1427660', '1427455', '1427686', '1427738', '1427433', '1427658', '1427458', '1427737', '1427736', '1427734', '1427445', '1427526', '1427673', '1427560', '1427512', '1427754', '1427479', '1427729', '1427476', '1427435', '1427443', '1427447', '1427504', '1427480', '1427491', '1427701', '1427712', '1427682', '1427685', '1427693', '1427742', '1427747', '1427753', '1427731', '1427615', '1427622', '1427626', '1427633', '1427605', '1427652', '1427524', '1427537', '1427600', '1427478', '1427612', '1427659', '1427662', '1427664', '1427676', '1427667', '1427669', '1427670', '1427672', '1427675', '1427635', '1427636', '1427638', '1427639', '1427590', '1427582', '1427554', '1427555', '1427557', '1427559', '1427566', '1427456', '1427461', '1427462', '1427465', '1427469', '1427470', '1427437', '1427494', '1427506', '1427481', '1427700', '1427718', '1427715', '1427679', '1427688', '1427691', '1427728', '1427748', '1427759', '1427732', '1427614', '1427619', '1427627', '1427597', '1427646', '1427649', '1427698', '1427489', '1427699', '1427702', '1427709', '1427677', '1427684', '1427690', '1427741', '1427745', '1427756', '1427730', '1427618', '1427621', '1427629', '1427623', '1427543', '1427650', '1427580', '1427484', '1427490', '1427708', '1427713', '1427707', '1427687', '1427692', '1427695', '1427760', '1427719', '1427720', '1427735', '1427624', '1427630', '1427595', '1427542', '1427651', '1427516', '1427487', '1427726', '1427525', '1427527', '1427576', '1427642', '1427666', '1427668', '1427655', '1427665', '1427589', '1427553', '1427558', '1427449', '1427467', '1427468', '1427499', '1427488', '1427681', '1427683', '1427758', '1427721', '1427596', '1427601', '1427495', '1427750', '1427530', '1427528', '1427529', '1427574', '1427588', '1427591', '1427603', '1427448', '1427436', '1427471', '1427503', '1427492', '1427567', '1427705', '1427714', '1427717', '1427697', '1427694', '1427696', '1427746', '1427749', '1427725', '1427733', '1427625', '1427632', '1427593', '1427606', '1427653', '1427654')... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:19:48,036 - [124756] - src.utils.log - INFO - βœ… Fetched 288 rows - __SPLIT__ 2026-07-17 10:19:48,048 - [124756] - 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 (150497, 150496, 150504, 150510, 150525, 150546, 150574, 150598, 150673, 150640, 150418, 150383, 150385, 150398, 150392, 150521, 150588, 150384, 150650, 150571, 150374, 150358, 150395, 150394, 150396, 150595, 150410, 150625, 150592, 150414, 150642, 150535, 150420, 150649, 150641, 150400, 150654, 150417, 150524, 150447, 150501, 150387, 150495, 150589, 150562, 150547, 150552, 150554, 150518, 150557, 150656, 150657, 150655, 150560, 150375, 150338, 150556, 150359, 150600, 150355, 150534, 150559, 150561, 150566, 150352, 150533, 150551, 150660, 150665, 150666, 150601, 150671, 150549, 150379, 150516, 150450, 150380, 150580, 150579, 150573, 150522) and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:19:48,325 - [124756] - src.utils.log - INFO - βœ… Fetched 109 rows - __SPLIT__ 2026-07-17 10:19:48,326 - [124756] - 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 (150497, 150496, 150504, 150510, 150525, 150546, 150574, 150598, 150673, 150640, 150418, 150383, 150385, 150398, 150392, 150521, 150588, 150384, 150650, 150571, 150374, 150358, 150395, 150394, 150396, 150595, 150410, 150625, 150592, 150414, 150642, 150535, 150420, 150649, 150641, 150400, 150654, 150417, 150524, 150447, 150501, 150387, 150495, 150589, 150562, 150547, 150552, 150554, 150518, 150557, 150656, 150657, 150655, 150560, 150375, 150338, 150556, 150359, 150600, 150355, 150534, 150559, 150561, 150566, 150352, 150533, 150551, 150660, 150665, 150666, 150601, 150671, 150549, 150379, 150516, 150450, 150380, 150580, 150579, 150573, 150522) and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:19:48,603 - [124756] - src.utils.log - INFO - βœ… Fetched 67 rows - __SPLIT__ 2026-07-17 10:19:48,603 - [124756] - 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 (150497, 150496, 150504, 150510, 150525, 150546, 150574, 150598, 150673, 150640, 150418, 150383, 150385, 150398, 150392, 150521, 150588, 150384, 150650, 150571, 150374, 150358, 150395, 150394, 150396, 150595, 150410, 150625, 150592, 150414, 150642, 150535, 150420, 150649, 150641, 150400, 150654, 150417, 150524, 150447, 150501, 150387, 150495, 150589, 150562, 150547, 150552, 150554, 150518, 150557, 150656, 150657, 150655, 150560, 150375, 150338, 150556, 150359, 150600, 150355, 150534, 150559, 150561, 150566, 150352, 150533, 150551, 150660, 150665, 150666, 150601, 150671, 150549, 150379, 150516, 150450, 150380, 150580, 150579, 150573, 150522) and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:19:48,880 - [124756] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 10:19:48,880 - [124756] - 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 (150497, 150496, 150504, 150510, 150525, 150546, 150574, 150598, 150673, 150640, 150418, 150383, 150385, 150398, 150392, 150521, 150588, 150384, 150650, 150571, 150374, 150358, 150395, 150394, 150396, 150595, 150410, 150625, 150592, 150414, 150642, 150535, 150420, 150649, 150641, 150400, 150654, 150417, 150524, 150447, 150501, 150387, 150495, 150589, 150562, 150547, 150552, 150554, 150518, 150557, 150656, 150657, 150655, 150560, 150375, 150338, 150556, 150359, 150600, 150355, 150534, 150559, 150561, 150566, 150352, 150533, 150551, 150660, 150665, 150666, 150601, 150671, 150549, 150379, 150516, 150450, 150380, 150580, 150579, 150573, 150522) and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:19:49,157 - [124756] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 10:19:49,166 - [124756] - src.utils.log - INFO - πŸ” Fetching data: SELECT fm.YearlyOccurrence, fs.FrequencyScheduleId From ServiceCore.FrequencySchedule fs join ServiceCore.FrequencyMaster fm on fs.FrequencyId = fm.FrequencyId where fs.FrequencyScheduleId in (14728, 13962, 14614, 14615, 14626, 14627, 14632, 14633, 14509, 14638, 14637, 14641, 14642, 14643, 14653, 14655, 14662, 14663, 14667, 14668, 14676, 14037, 14819, 14580, 14586, 14845);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:19:49,435 - [124756] - src.utils.log - INFO - βœ… Fetched 26 rows - __SPLIT__ 2026-07-17 10:19:49,437 - [124756] - src.utils.log - INFO - πŸ” Fetching data: SELECT fm.YearlyOccurrence, fs.FrequencyScheduleId From ServiceCore.FrequencySchedule fs join ServiceCore.FrequencyMaster fm on fs.FrequencyId = fm.FrequencyId where fs.FrequencyScheduleId in (14502, 13966);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:19:49,704 - [124756] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-17 10:19:49,712 - [124756] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId in (150497, 150496, 150504, 150510, 150525, 150546, 150574, 150598, 150673, 150640, 150418, 150383, 150385, 150398, 150392, 150521, 150588, 150384, 150650, 150571, 150374, 150358, 150395, 150394, 150396, 150595, 150410, 150625, 150592, 150414, 150642, 150535, 150420, 150649, 150641, 150400, 150654, 150417, 150524, 150447, 150501, 150387, 150495, 150589, 150562, 150547, 150552, 150554, 150518, 150557, 150656, 150657, 150655, 150560, 150375, 150338, 150556, 150359, 150600, 150355, 150534, 150559, 150561, 150566, 150352, 150533, 150551, 150660, 150665, 150666, 150601, 150671, 150549, 150379, 150516, 150450, 150380, 150580, 150579, 150573, 150522);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:19:49,988 - [124756] - src.utils.log - INFO - βœ… Fetched 6 rows - __SPLIT__ 2026-07-17 10:19:49,996 - [124756] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId, AppliedDiscountAmt as AppliedDiscountAmount,IsActive ,ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId in (150497, 150496, 150504, 150510, 150525, 150546, 150574, 150598, 150673, 150640, 150418, 150383, 150385, 150398, 150392, 150521, 150588, 150384, 150650, 150571, 150374, 150358, 150395, 150394, 150396, 150595, 150410, 150625, 150592, 150414, 150642, 150535, 150420, 150649, 150641, 150400, 150654, 150417, 150524, 150447, 150501, 150387, 150495, 150589, 150562, 150547, 150552, 150554, 150518, 150557, 150656, 150657, 150655, 150560, 150375, 150338, 150556, 150359, 150600, 150355, 150534, 150559, 150561, 150566, 150352, 150533, 150551, 150660, 150665, 150666, 150601, 150671, 150549, 150379, 150516, 150450, 150380, 150580, 150579, 150573, 150522);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:19:50,272 - [124756] - src.utils.log - INFO - βœ… Fetched 28 rows - __SPLIT__ 2026-07-17 10:19:50,286 - [124756] - 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 (150497, 150496, 150504, 150510, 150525, 150546, 150574, 150598, 150673, 150640, 150418, 150383, 150385, 150398, 150392, 150521, 150588, 150384, 150650, 150571, 150374, 150358, 150395, 150394, 150396, 150595, 150410, 150625, 150592, 150414, 150642, 150535, 150420, 150649, 150641, 150400, 150654, 150417, 150524, 150447, 150501, 150387, 150495, 150589, 150562, 150547, 150552, 150554, 150518, 150557, 150656, 150657, 150655, 150560, 150375, 150338, 150556, 150359, 150600, 150355, 150534, 150559, 150561, 150566, 150352, 150533, 150551, 150660, 150665, 150666, 150601, 150671, 150549, 150379, 150516, 150450, 150380, 150580, 150579, 150573, 150522);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:19:50,564 - [124756] - src.utils.log - INFO - βœ… Fetched 28 rows - __SPLIT__ 2026-07-17 10:19:50,575 - [124756] - src.utils.log - INFO - Sequential Insertion in invoice tables begin - __SPLIT__ 2026-07-17 10:19:50,575 - [124756] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-17 10:19:50,575 - [124756] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.AccountDiscountSetup: 127 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:19:50,846 - [124756] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 127) into Billing.AccountDiscountSetup - __SPLIT__ 2026-07-17 10:19:52,119 - [124756] - src.utils.log - INFO - βœ… All 127 rows inserted successfully into Billing.AccountDiscountSetup in 1 batches - __SPLIT__ 2026-07-17 10:19:52,119 - [124756] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-17 10:19:52,119 - [124756] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceCharges: 530 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:19:52,394 - [124756] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 530) into Billing.InvoiceCharges - __SPLIT__ 2026-07-17 10:19:55,206 - [124756] - src.utils.log - INFO - βœ… All 530 rows inserted successfully into Billing.InvoiceCharges in 1 batches - __SPLIT__ 2026-07-17 10:19:55,206 - [124756] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-17 10:19:55,206 - [124756] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.DiscountApplied: 127 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:19:55,476 - [124756] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 127) into Billing.DiscountApplied - __SPLIT__ 2026-07-17 10:19:56,603 - [124756] - src.utils.log - INFO - βœ… All 127 rows inserted successfully into Billing.DiscountApplied in 1 batches - __SPLIT__ 2026-07-17 10:19:56,604 - [124756] - src.utils.log - INFO - Invoice Publish Done - __SPLIT__ 2026-07-17 10:19:56,604 - [124756] - src.utils.log - INFO - Updating Next GenerationDate - __SPLIT__ 2026-07-17 10:19:56,605 - [124756] - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, MAX(NextWorkOrderGenerationDate) AS MaxNextWorkOrderGeneration FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 124756 GROUP BY ServiceSetupId; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:19:56,872 - [124756] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 10:19:56,878 - [124756] - src.utils.log - INFO - πŸ”„ Updating next gen date sequentially: inside update_next_workorder_generation - __SPLIT__ 2026-07-17 10:19:57,012 - [124756] - src.utils.log - INFO - πŸ›  Creating temp table #tbl_4541e81922 - __SPLIT__ 2026-07-17 10:19:57,280 - [124756] - src.utils.log - INFO - πŸ“Œ Bulk inserting 103 rows into #tbl_4541e81922 - __SPLIT__ 2026-07-17 10:20:10,997 - [124756] - src.utils.log - INFO - πŸ” Running MERGE update to apply changes - __SPLIT__ 2026-07-17 10:20:11,139 - [124756] - src.utils.log - INFO - βœ” SQL reported affected rows: 103 - __SPLIT__ 2026-07-17 10:20:11,278 - [124756] - src.utils.log - INFO - πŸ” Verified successfully updated 103 rows via #tbl_4541e81922 - __SPLIT__ 2026-07-17 10:20:11,278 - [124756] - src.utils.log - INFO - πŸŽ‰ Successfully updated NextGenerationDate using temp table #tbl_4541e81922 - __SPLIT__ 2026-07-17 10:20:11,278 - [124756] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 124756 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:20:11,543 - [124756] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 10:20:11,544 - [124756] - src.utils.log - INFO - Sequential deletion from temp tables begin - __SPLIT__ 2026-07-17 10:20:11,544 - [124756] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId in (3681701, 3681702, 3681703, 3681704, 3681705, 3681706, 3681707, 3681708, 3681709, 3681710, 3681711, 3681712, 3681713, 3681714, 3681715, 3681716, 3681717, 3681718, 3681719, 3681720, 3681721, 3681722, 3681723, 3681724, 3681725, 3681726, 3681727, 3681728, 3681729, 3681730, 3681731, 3681732, 3681733, 3681734, 3681735, 3681736, 3681737, 3681738, 3681739, 3681740, 3681741, 3681742, 3681743, 3681744, 3681745, 3681746, 3681747, 3681748, 3681749, 3681750, 3681751, 3681752, 3681753, 3681754, 3681755, 3681756, 3681757, 3681758, 3681759, 3681760, 3681761, 3681762, 3681763, 3681764, 3681765, 3681766, 3681767, 3681768, 3681769, 3681770, 3681771, 3681772, 3681773, 3681774, 3681775, 3681776, 3681777, 3681778, 3681779, 3681780, 3681781, 3681782, 3681783, 3681784, 3681785, 3681786, 3681787, 3681788, 3681789, 3681790, 3681791, 3681792, 3681793, 3681794, 3681795, 3681796, 3681797, 3681798, 3681799, 3681800, 3681801, 3681802, 3681803, 3681804, 3681805, 3681806, 3681807, 3681808, 3681809, 3681810, 3681811, 3681812, 3681813, 3681814, 3681815, 3681816, 3681817, 3681818, 3681819, 3681820, 3681821, 3681822, 3681823, 3681824, 3681825, 3681826, 3681827, 3681828, 3681829, 3681830, 3681831, 3681832, 3681833, 3681834, 3681835, 3681836, 3681837, 3681838, 3681839, 3681840, 3681841, 3681842, 3681843, 3681844, 3681845, 3681846, 3681847, 3681848, 3681849, 3681850, 3681851, 3681852, 3681853, 3681854, 3681855, 3681856, 3681857, 3681858, 3681859, 3681860, 3681861, 3681862, 3681863, 3681864, 3681865, 3681866, 3681867, 3681868, 3681869, 3681870, 3681871, 3681872, 3681873, 3681874, 3681875, 3681876, 3681877, 3681878, 3681879, 3681880, 3681881, 3681882, 3681883, 3681884, 3681885, 3681886, 3681887, 3681888, 3681889, 3681890, 3681891, 3681892, 3681893, 3681894, 3681895, 3681896, 3681897, 3681898, 3681899, 3681900, 3681901, 3681902, 3681903, 3681904, 3681905, 3681906, 3681907, 3681908, 3681909, 3681910, 3681911, 3681912, 3681913, 3681914, 3681915, 3681916, 3681917, 3681918, 3681919, 3681920, 3681921, 3681922, 3681923, 3681924, 3681925, 3681926, 3681927, 3681928, 3681929, 3681930, 3681931, 3681932, 3681933, 3681934, 3681935, 3681936, 3681937, 3681938, 3681939, 3681940, 3681941, 3681942, 3681943, 3681944, 3681945, 3681946, 3681947, 3681948, 3681949, 3681950, 3681951, 3681952, 3681953, 3681954, 3681955, 3681956, 3681957, 3681958, 3681959, 3681960, 3681961, 3681962, 3681963, 3681964, 3681965, 3681966, 3681967, 3681968, 3681969, 3681970, 3681971, 3681972, 3681973, 3681974, 3681975, 3681976, 3681977, 3681978, 3681979, 3681980, 3681981, 3681982, 3681983, 3681984, 3681985, 3681986, 3681987, 3681988, 3681989, 3681990, 3681991, 3681992, 3681993, 3681994, 3681995, 3681996, 3681997, 3681998, 3681999, 3682000, 3682001, 3682002, 3682003, 3682004, 3682005, 3682006, 3682007, 3682008, 3682009, 3682010, 3682011, 3682012, 3682013, 3682014, 3682015, 3682016, 3682017, 3682018, 3682019, 3682020, 3682021, 3682022, 3682023, 3682024, 3682025, 3682026, 3682027, 3682028, 3682029, 3682030, 3682031, 3682032, 3682033, 3682034, 3682035, 3682036) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:20:11,895 - [124756] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 10:20:11,895 - [124756] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId in (3681701, 3681702, 3681703, 3681704, 3681705, 3681706, 3681707, 3681708, 3681709, 3681710, 3681711, 3681712, 3681713, 3681714, 3681715, 3681716, 3681717, 3681718, 3681719, 3681720, 3681721, 3681722, 3681723, 3681724, 3681725, 3681726, 3681727, 3681728, 3681729, 3681730, 3681731, 3681732, 3681733, 3681734, 3681735, 3681736, 3681737, 3681738, 3681739, 3681740, 3681741, 3681742, 3681743, 3681744, 3681745, 3681746, 3681747, 3681748, 3681749, 3681750, 3681751, 3681752, 3681753, 3681754, 3681755, 3681756, 3681757, 3681758, 3681759, 3681760, 3681761, 3681762, 3681763, 3681764, 3681765, 3681766, 3681767, 3681768, 3681769, 3681770, 3681771, 3681772, 3681773, 3681774, 3681775, 3681776, 3681777, 3681778, 3681779, 3681780, 3681781, 3681782, 3681783, 3681784, 3681785, 3681786, 3681787, 3681788, 3681789, 3681790, 3681791, 3681792, 3681793, 3681794, 3681795, 3681796, 3681797, 3681798, 3681799, 3681800, 3681801, 3681802, 3681803, 3681804, 3681805, 3681806, 3681807, 3681808, 3681809, 3681810, 3681811, 3681812, 3681813, 3681814, 3681815, 3681816, 3681817, 3681818, 3681819, 3681820, 3681821, 3681822, 3681823, 3681824, 3681825, 3681826, 3681827, 3681828, 3681829, 3681830, 3681831, 3681832, 3681833, 3681834, 3681835, 3681836, 3681837, 3681838, 3681839, 3681840, 3681841, 3681842, 3681843, 3681844, 3681845, 3681846, 3681847, 3681848, 3681849, 3681850, 3681851, 3681852, 3681853, 3681854, 3681855, 3681856, 3681857, 3681858, 3681859, 3681860, 3681861, 3681862, 3681863, 3681864, 3681865, 3681866, 3681867, 3681868, 3681869, 3681870, 3681871, 3681872, 3681873, 3681874, 3681875, 3681876, 3681877, 3681878, 3681879, 3681880, 3681881, 3681882, 3681883, 3681884, 3681885, 3681886, 3681887, 3681888, 3681889, 3681890, 3681891, 3681892, 3681893, 3681894, 3681895, 3681896, 3681897, 3681898, 3681899, 3681900, 3681901, 3681902, 3681903, 3681904, 3681905, 3681906, 3681907, 3681908, 3681909, 3681910, 3681911, 3681912, 3681913, 3681914, 3681915, 3681916, 3681917, 3681918, 3681919, 3681920, 3681921, 3681922, 3681923, 3681924, 3681925, 3681926, 3681927, 3681928, 3681929, 3681930, 3681931, 3681932, 3681933, 3681934, 3681935, 3681936, 3681937, 3681938, 3681939, 3681940, 3681941, 3681942, 3681943, 3681944, 3681945, 3681946, 3681947, 3681948, 3681949, 3681950, 3681951, 3681952, 3681953, 3681954, 3681955, 3681956, 3681957, 3681958, 3681959, 3681960, 3681961, 3681962, 3681963, 3681964, 3681965, 3681966, 3681967, 3681968, 3681969, 3681970, 3681971, 3681972, 3681973, 3681974, 3681975, 3681976, 3681977, 3681978, 3681979, 3681980, 3681981, 3681982, 3681983, 3681984, 3681985, 3681986, 3681987, 3681988, 3681989, 3681990, 3681991, 3681992, 3681993, 3681994, 3681995, 3681996, 3681997, 3681998, 3681999, 3682000, 3682001, 3682002, 3682003, 3682004, 3682005, 3682006, 3682007, 3682008, 3682009, 3682010, 3682011, 3682012, 3682013, 3682014, 3682015, 3682016, 3682017, 3682018, 3682019, 3682020, 3682021, 3682022, 3682023, 3682024, 3682025, 3682026, 3682027, 3682028, 3682029, 3682030, 3682031, 3682032, 3682033, 3682034, 3682035, 3682036) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:20:12,226 - [124756] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 10:20:12,226 - [124756] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId in (3681701, 3681702, 3681703, 3681704, 3681705, 3681706, 3681707, 3681708, 3681709, 3681710, 3681711, 3681712, 3681713, 3681714, 3681715, 3681716, 3681717, 3681718, 3681719, 3681720, 3681721, 3681722, 3681723, 3681724, 3681725, 3681726, 3681727, 3681728, 3681729, 3681730, 3681731, 3681732, 3681733, 3681734, 3681735, 3681736, 3681737, 3681738, 3681739, 3681740, 3681741, 3681742, 3681743, 3681744, 3681745, 3681746, 3681747, 3681748, 3681749, 3681750, 3681751, 3681752, 3681753, 3681754, 3681755, 3681756, 3681757, 3681758, 3681759, 3681760, 3681761, 3681762, 3681763, 3681764, 3681765, 3681766, 3681767, 3681768, 3681769, 3681770, 3681771, 3681772, 3681773, 3681774, 3681775, 3681776, 3681777, 3681778, 3681779, 3681780, 3681781, 3681782, 3681783, 3681784, 3681785, 3681786, 3681787, 3681788, 3681789, 3681790, 3681791, 3681792, 3681793, 3681794, 3681795, 3681796, 3681797, 3681798, 3681799, 3681800, 3681801, 3681802, 3681803, 3681804, 3681805, 3681806, 3681807, 3681808, 3681809, 3681810, 3681811, 3681812, 3681813, 3681814, 3681815, 3681816, 3681817, 3681818, 3681819, 3681820, 3681821, 3681822, 3681823, 3681824, 3681825, 3681826, 3681827, 3681828, 3681829, 3681830, 3681831, 3681832, 3681833, 3681834, 3681835, 3681836, 3681837, 3681838, 3681839, 3681840, 3681841, 3681842, 3681843, 3681844, 3681845, 3681846, 3681847, 3681848, 3681849, 3681850, 3681851, 3681852, 3681853, 3681854, 3681855, 3681856, 3681857, 3681858, 3681859, 3681860, 3681861, 3681862, 3681863, 3681864, 3681865, 3681866, 3681867, 3681868, 3681869, 3681870, 3681871, 3681872, 3681873, 3681874, 3681875, 3681876, 3681877, 3681878, 3681879, 3681880, 3681881, 3681882, 3681883, 3681884, 3681885, 3681886, 3681887, 3681888, 3681889, 3681890, 3681891, 3681892, 3681893, 3681894, 3681895, 3681896, 3681897, 3681898, 3681899, 3681900, 3681901, 3681902, 3681903, 3681904, 3681905, 3681906, 3681907, 3681908, 3681909, 3681910, 3681911, 3681912, 3681913, 3681914, 3681915, 3681916, 3681917, 3681918, 3681919, 3681920, 3681921, 3681922, 3681923, 3681924, 3681925, 3681926, 3681927, 3681928, 3681929, 3681930, 3681931, 3681932, 3681933, 3681934, 3681935, 3681936, 3681937, 3681938, 3681939, 3681940, 3681941, 3681942, 3681943, 3681944, 3681945, 3681946, 3681947, 3681948, 3681949, 3681950, 3681951, 3681952, 3681953, 3681954, 3681955, 3681956, 3681957, 3681958, 3681959, 3681960, 3681961, 3681962, 3681963, 3681964, 3681965, 3681966, 3681967, 3681968, 3681969, 3681970, 3681971, 3681972, 3681973, 3681974, 3681975, 3681976, 3681977, 3681978, 3681979, 3681980, 3681981, 3681982, 3681983, 3681984, 3681985, 3681986, 3681987, 3681988, 3681989, 3681990, 3681991, 3681992, 3681993, 3681994, 3681995, 3681996, 3681997, 3681998, 3681999, 3682000, 3682001, 3682002, 3682003, 3682004, 3682005, 3682006, 3682007, 3682008, 3682009, 3682010, 3682011, 3682012, 3682013, 3682014, 3682015, 3682016, 3682017, 3682018, 3682019, 3682020, 3682021, 3682022, 3682023, 3682024, 3682025, 3682026, 3682027, 3682028, 3682029, 3682030, 3682031, 3682032, 3682033, 3682034, 3682035, 3682036) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:20:12,514 - [124756] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 10:20:12,514 - [124756] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId in (3681701, 3681702, 3681703, 3681704, 3681705, 3681706, 3681707, 3681708, 3681709, 3681710, 3681711, 3681712, 3681713, 3681714, 3681715, 3681716, 3681717, 3681718, 3681719, 3681720, 3681721, 3681722, 3681723, 3681724, 3681725, 3681726, 3681727, 3681728, 3681729, 3681730, 3681731, 3681732, 3681733, 3681734, 3681735, 3681736, 3681737, 3681738, 3681739, 3681740, 3681741, 3681742, 3681743, 3681744, 3681745, 3681746, 3681747, 3681748, 3681749, 3681750, 3681751, 3681752, 3681753, 3681754, 3681755, 3681756, 3681757, 3681758, 3681759, 3681760, 3681761, 3681762, 3681763, 3681764, 3681765, 3681766, 3681767, 3681768, 3681769, 3681770, 3681771, 3681772, 3681773, 3681774, 3681775, 3681776, 3681777, 3681778, 3681779, 3681780, 3681781, 3681782, 3681783, 3681784, 3681785, 3681786, 3681787, 3681788, 3681789, 3681790, 3681791, 3681792, 3681793, 3681794, 3681795, 3681796, 3681797, 3681798, 3681799, 3681800, 3681801, 3681802, 3681803, 3681804, 3681805, 3681806, 3681807, 3681808, 3681809, 3681810, 3681811, 3681812, 3681813, 3681814, 3681815, 3681816, 3681817, 3681818, 3681819, 3681820, 3681821, 3681822, 3681823, 3681824, 3681825, 3681826, 3681827, 3681828, 3681829, 3681830, 3681831, 3681832, 3681833, 3681834, 3681835, 3681836, 3681837, 3681838, 3681839, 3681840, 3681841, 3681842, 3681843, 3681844, 3681845, 3681846, 3681847, 3681848, 3681849, 3681850, 3681851, 3681852, 3681853, 3681854, 3681855, 3681856, 3681857, 3681858, 3681859, 3681860, 3681861, 3681862, 3681863, 3681864, 3681865, 3681866, 3681867, 3681868, 3681869, 3681870, 3681871, 3681872, 3681873, 3681874, 3681875, 3681876, 3681877, 3681878, 3681879, 3681880, 3681881, 3681882, 3681883, 3681884, 3681885, 3681886, 3681887, 3681888, 3681889, 3681890, 3681891, 3681892, 3681893, 3681894, 3681895, 3681896, 3681897, 3681898, 3681899, 3681900, 3681901, 3681902, 3681903, 3681904, 3681905, 3681906, 3681907, 3681908, 3681909, 3681910, 3681911, 3681912, 3681913, 3681914, 3681915, 3681916, 3681917, 3681918, 3681919, 3681920, 3681921, 3681922, 3681923, 3681924, 3681925, 3681926, 3681927, 3681928, 3681929, 3681930, 3681931, 3681932, 3681933, 3681934, 3681935, 3681936, 3681937, 3681938, 3681939, 3681940, 3681941, 3681942, 3681943, 3681944, 3681945, 3681946, 3681947, 3681948, 3681949, 3681950, 3681951, 3681952, 3681953, 3681954, 3681955, 3681956, 3681957, 3681958, 3681959, 3681960, 3681961, 3681962, 3681963, 3681964, 3681965, 3681966, 3681967, 3681968, 3681969, 3681970, 3681971, 3681972, 3681973, 3681974, 3681975, 3681976, 3681977, 3681978, 3681979, 3681980, 3681981, 3681982, 3681983, 3681984, 3681985, 3681986, 3681987, 3681988, 3681989, 3681990, 3681991, 3681992, 3681993, 3681994, 3681995, 3681996, 3681997, 3681998, 3681999, 3682000, 3682001, 3682002, 3682003, 3682004, 3682005, 3682006, 3682007, 3682008, 3682009, 3682010, 3682011, 3682012, 3682013, 3682014, 3682015, 3682016, 3682017, 3682018, 3682019, 3682020, 3682021, 3682022, 3682023, 3682024, 3682025, 3682026, 3682027, 3682028, 3682029, 3682030, 3682031, 3682032, 3682033, 3682034, 3682035, 3682036) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:20:12,837 - [124756] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 10:20:12,838 - [124756] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId in (3681701, 3681702, 3681703, 3681704, 3681705, 3681706, 3681707, 3681708, 3681709, 3681710, 3681711, 3681712, 3681713, 3681714, 3681715, 3681716, 3681717, 3681718, 3681719, 3681720, 3681721, 3681722, 3681723, 3681724, 3681725, 3681726, 3681727, 3681728, 3681729, 3681730, 3681731, 3681732, 3681733, 3681734, 3681735, 3681736, 3681737, 3681738, 3681739, 3681740, 3681741, 3681742, 3681743, 3681744, 3681745, 3681746, 3681747, 3681748, 3681749, 3681750, 3681751, 3681752, 3681753, 3681754, 3681755, 3681756, 3681757, 3681758, 3681759, 3681760, 3681761, 3681762, 3681763, 3681764, 3681765, 3681766, 3681767, 3681768, 3681769, 3681770, 3681771, 3681772, 3681773, 3681774, 3681775, 3681776, 3681777, 3681778, 3681779, 3681780, 3681781, 3681782, 3681783, 3681784, 3681785, 3681786, 3681787, 3681788, 3681789, 3681790, 3681791, 3681792, 3681793, 3681794, 3681795, 3681796, 3681797, 3681798, 3681799, 3681800, 3681801, 3681802, 3681803, 3681804, 3681805, 3681806, 3681807, 3681808, 3681809, 3681810, 3681811, 3681812, 3681813, 3681814, 3681815, 3681816, 3681817, 3681818, 3681819, 3681820, 3681821, 3681822, 3681823, 3681824, 3681825, 3681826, 3681827, 3681828, 3681829, 3681830, 3681831, 3681832, 3681833, 3681834, 3681835, 3681836, 3681837, 3681838, 3681839, 3681840, 3681841, 3681842, 3681843, 3681844, 3681845, 3681846, 3681847, 3681848, 3681849, 3681850, 3681851, 3681852, 3681853, 3681854, 3681855, 3681856, 3681857, 3681858, 3681859, 3681860, 3681861, 3681862, 3681863, 3681864, 3681865, 3681866, 3681867, 3681868, 3681869, 3681870, 3681871, 3681872, 3681873, 3681874, 3681875, 3681876, 3681877, 3681878, 3681879, 3681880, 3681881, 3681882, 3681883, 3681884, 3681885, 3681886, 3681887, 3681888, 3681889, 3681890, 3681891, 3681892, 3681893, 3681894, 3681895, 3681896, 3681897, 3681898, 3681899, 3681900, 3681901, 3681902, 3681903, 3681904, 3681905, 3681906, 3681907, 3681908, 3681909, 3681910, 3681911, 3681912, 3681913, 3681914, 3681915, 3681916, 3681917, 3681918, 3681919, 3681920, 3681921, 3681922, 3681923, 3681924, 3681925, 3681926, 3681927, 3681928, 3681929, 3681930, 3681931, 3681932, 3681933, 3681934, 3681935, 3681936, 3681937, 3681938, 3681939, 3681940, 3681941, 3681942, 3681943, 3681944, 3681945, 3681946, 3681947, 3681948, 3681949, 3681950, 3681951, 3681952, 3681953, 3681954, 3681955, 3681956, 3681957, 3681958, 3681959, 3681960, 3681961, 3681962, 3681963, 3681964, 3681965, 3681966, 3681967, 3681968, 3681969, 3681970, 3681971, 3681972, 3681973, 3681974, 3681975, 3681976, 3681977, 3681978, 3681979, 3681980, 3681981, 3681982, 3681983, 3681984, 3681985, 3681986, 3681987, 3681988, 3681989, 3681990, 3681991, 3681992, 3681993, 3681994, 3681995, 3681996, 3681997, 3681998, 3681999, 3682000, 3682001, 3682002, 3682003, 3682004, 3682005, 3682006, 3682007, 3682008, 3682009, 3682010, 3682011, 3682012, 3682013, 3682014, 3682015, 3682016, 3682017, 3682018, 3682019, 3682020, 3682021, 3682022, 3682023, 3682024, 3682025, 3682026, 3682027, 3682028, 3682029, 3682030, 3682031, 3682032, 3682033, 3682034, 3682035, 3682036) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:20:13,122 - [124756] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 10:20:13,123 - [124756] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (3681701, 3681702, 3681703, 3681704, 3681705, 3681706, 3681707, 3681708, 3681709, 3681710, 3681711, 3681712, 3681713, 3681714, 3681715, 3681716, 3681717, 3681718, 3681719, 3681720, 3681721, 3681722, 3681723, 3681724, 3681725, 3681726, 3681727, 3681728, 3681729, 3681730, 3681731, 3681732, 3681733, 3681734, 3681735, 3681736, 3681737, 3681738, 3681739, 3681740, 3681741, 3681742, 3681743, 3681744, 3681745, 3681746, 3681747, 3681748, 3681749, 3681750, 3681751, 3681752, 3681753, 3681754, 3681755, 3681756, 3681757, 3681758, 3681759, 3681760, 3681761, 3681762, 3681763, 3681764, 3681765, 3681766, 3681767, 3681768, 3681769, 3681770, 3681771, 3681772, 3681773, 3681774, 3681775, 3681776, 3681777, 3681778, 3681779, 3681780, 3681781, 3681782, 3681783, 3681784, 3681785, 3681786, 3681787, 3681788, 3681789, 3681790, 3681791, 3681792, 3681793, 3681794, 3681795, 3681796, 3681797, 3681798, 3681799, 3681800, 3681801, 3681802, 3681803, 3681804, 3681805, 3681806, 3681807, 3681808, 3681809, 3681810, 3681811, 3681812, 3681813, 3681814, 3681815, 3681816, 3681817, 3681818, 3681819, 3681820, 3681821, 3681822, 3681823, 3681824, 3681825, 3681826, 3681827, 3681828, 3681829, 3681830, 3681831, 3681832, 3681833, 3681834, 3681835, 3681836, 3681837, 3681838, 3681839, 3681840, 3681841, 3681842, 3681843, 3681844, 3681845, 3681846, 3681847, 3681848, 3681849, 3681850, 3681851, 3681852, 3681853, 3681854, 3681855, 3681856, 3681857, 3681858, 3681859, 3681860, 3681861, 3681862, 3681863, 3681864, 3681865, 3681866, 3681867, 3681868, 3681869, 3681870, 3681871, 3681872, 3681873, 3681874, 3681875, 3681876, 3681877, 3681878, 3681879, 3681880, 3681881, 3681882, 3681883, 3681884, 3681885, 3681886, 3681887, 3681888, 3681889, 3681890, 3681891, 3681892, 3681893, 3681894, 3681895, 3681896, 3681897, 3681898, 3681899, 3681900, 3681901, 3681902, 3681903, 3681904, 3681905, 3681906, 3681907, 3681908, 3681909, 3681910, 3681911, 3681912, 3681913, 3681914, 3681915, 3681916, 3681917, 3681918, 3681919, 3681920, 3681921, 3681922, 3681923, 3681924, 3681925, 3681926, 3681927, 3681928, 3681929, 3681930, 3681931, 3681932, 3681933, 3681934, 3681935, 3681936, 3681937, 3681938, 3681939, 3681940, 3681941, 3681942, 3681943, 3681944, 3681945, 3681946, 3681947, 3681948, 3681949, 3681950, 3681951, 3681952, 3681953, 3681954, 3681955, 3681956, 3681957, 3681958, 3681959, 3681960, 3681961, 3681962, 3681963, 3681964, 3681965, 3681966, 3681967, 3681968, 3681969, 3681970, 3681971, 3681972, 3681973, 3681974, 3681975, 3681976, 3681977, 3681978, 3681979, 3681980, 3681981, 3681982, 3681983, 3681984, 3681985, 3681986, 3681987, 3681988, 3681989, 3681990, 3681991, 3681992, 3681993, 3681994, 3681995, 3681996, 3681997, 3681998, 3681999, 3682000, 3682001, 3682002, 3682003, 3682004, 3682005, 3682006, 3682007, 3682008, 3682009, 3682010, 3682011, 3682012, 3682013, 3682014, 3682015, 3682016, 3682017, 3682018, 3682019, 3682020, 3682021, 3682022, 3682023, 3682024, 3682025, 3682026, 3682027, 3682028, 3682029, 3682030, 3682031, 3682032, 3682033, 3682034, 3682035, 3682036) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:20:13,414 - [124756] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 10:20:13,414 - [124756] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId in (3681701, 3681702, 3681703, 3681704, 3681705, 3681706, 3681707, 3681708, 3681709, 3681710, 3681711, 3681712, 3681713, 3681714, 3681715, 3681716, 3681717, 3681718, 3681719, 3681720, 3681721, 3681722, 3681723, 3681724, 3681725, 3681726, 3681727, 3681728, 3681729, 3681730, 3681731, 3681732, 3681733, 3681734, 3681735, 3681736, 3681737, 3681738, 3681739, 3681740, 3681741, 3681742, 3681743, 3681744, 3681745, 3681746, 3681747, 3681748, 3681749, 3681750, 3681751, 3681752, 3681753, 3681754, 3681755, 3681756, 3681757, 3681758, 3681759, 3681760, 3681761, 3681762, 3681763, 3681764, 3681765, 3681766, 3681767, 3681768, 3681769, 3681770, 3681771, 3681772, 3681773, 3681774, 3681775, 3681776, 3681777, 3681778, 3681779, 3681780, 3681781, 3681782, 3681783, 3681784, 3681785, 3681786, 3681787, 3681788, 3681789, 3681790, 3681791, 3681792, 3681793, 3681794, 3681795, 3681796, 3681797, 3681798, 3681799, 3681800, 3681801, 3681802, 3681803, 3681804, 3681805, 3681806, 3681807, 3681808, 3681809, 3681810, 3681811, 3681812, 3681813, 3681814, 3681815, 3681816, 3681817, 3681818, 3681819, 3681820, 3681821, 3681822, 3681823, 3681824, 3681825, 3681826, 3681827, 3681828, 3681829, 3681830, 3681831, 3681832, 3681833, 3681834, 3681835, 3681836, 3681837, 3681838, 3681839, 3681840, 3681841, 3681842, 3681843, 3681844, 3681845, 3681846, 3681847, 3681848, 3681849, 3681850, 3681851, 3681852, 3681853, 3681854, 3681855, 3681856, 3681857, 3681858, 3681859, 3681860, 3681861, 3681862, 3681863, 3681864, 3681865, 3681866, 3681867, 3681868, 3681869, 3681870, 3681871, 3681872, 3681873, 3681874, 3681875, 3681876, 3681877, 3681878, 3681879, 3681880, 3681881, 3681882, 3681883, 3681884, 3681885, 3681886, 3681887, 3681888, 3681889, 3681890, 3681891, 3681892, 3681893, 3681894, 3681895, 3681896, 3681897, 3681898, 3681899, 3681900, 3681901, 3681902, 3681903, 3681904, 3681905, 3681906, 3681907, 3681908, 3681909, 3681910, 3681911, 3681912, 3681913, 3681914, 3681915, 3681916, 3681917, 3681918, 3681919, 3681920, 3681921, 3681922, 3681923, 3681924, 3681925, 3681926, 3681927, 3681928, 3681929, 3681930, 3681931, 3681932, 3681933, 3681934, 3681935, 3681936, 3681937, 3681938, 3681939, 3681940, 3681941, 3681942, 3681943, 3681944, 3681945, 3681946, 3681947, 3681948, 3681949, 3681950, 3681951, 3681952, 3681953, 3681954, 3681955, 3681956, 3681957, 3681958, 3681959, 3681960, 3681961, 3681962, 3681963, 3681964, 3681965, 3681966, 3681967, 3681968, 3681969, 3681970, 3681971, 3681972, 3681973, 3681974, 3681975, 3681976, 3681977, 3681978, 3681979, 3681980, 3681981, 3681982, 3681983, 3681984, 3681985, 3681986, 3681987, 3681988, 3681989, 3681990, 3681991, 3681992, 3681993, 3681994, 3681995, 3681996, 3681997, 3681998, 3681999, 3682000, 3682001, 3682002, 3682003, 3682004, 3682005, 3682006, 3682007, 3682008, 3682009, 3682010, 3682011, 3682012, 3682013, 3682014, 3682015, 3682016, 3682017, 3682018, 3682019, 3682020, 3682021, 3682022, 3682023, 3682024, 3682025, 3682026, 3682027, 3682028, 3682029, 3682030, 3682031, 3682032, 3682033, 3682034, 3682035, 3682036) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:20:13,699 - [124756] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 10:20:13,699 - [124756] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (3681701, 3681702, 3681703, 3681704, 3681705, 3681706, 3681707, 3681708, 3681709, 3681710, 3681711, 3681712, 3681713, 3681714, 3681715, 3681716, 3681717, 3681718, 3681719, 3681720, 3681721, 3681722, 3681723, 3681724, 3681725, 3681726, 3681727, 3681728, 3681729, 3681730, 3681731, 3681732, 3681733, 3681734, 3681735, 3681736, 3681737, 3681738, 3681739, 3681740, 3681741, 3681742, 3681743, 3681744, 3681745, 3681746, 3681747, 3681748, 3681749, 3681750, 3681751, 3681752, 3681753, 3681754, 3681755, 3681756, 3681757, 3681758, 3681759, 3681760, 3681761, 3681762, 3681763, 3681764, 3681765, 3681766, 3681767, 3681768, 3681769, 3681770, 3681771, 3681772, 3681773, 3681774, 3681775, 3681776, 3681777, 3681778, 3681779, 3681780, 3681781, 3681782, 3681783, 3681784, 3681785, 3681786, 3681787, 3681788, 3681789, 3681790, 3681791, 3681792, 3681793, 3681794, 3681795, 3681796, 3681797, 3681798, 3681799, 3681800, 3681801, 3681802, 3681803, 3681804, 3681805, 3681806, 3681807, 3681808, 3681809, 3681810, 3681811, 3681812, 3681813, 3681814, 3681815, 3681816, 3681817, 3681818, 3681819, 3681820, 3681821, 3681822, 3681823, 3681824, 3681825, 3681826, 3681827, 3681828, 3681829, 3681830, 3681831, 3681832, 3681833, 3681834, 3681835, 3681836, 3681837, 3681838, 3681839, 3681840, 3681841, 3681842, 3681843, 3681844, 3681845, 3681846, 3681847, 3681848, 3681849, 3681850, 3681851, 3681852, 3681853, 3681854, 3681855, 3681856, 3681857, 3681858, 3681859, 3681860, 3681861, 3681862, 3681863, 3681864, 3681865, 3681866, 3681867, 3681868, 3681869, 3681870, 3681871, 3681872, 3681873, 3681874, 3681875, 3681876, 3681877, 3681878, 3681879, 3681880, 3681881, 3681882, 3681883, 3681884, 3681885, 3681886, 3681887, 3681888, 3681889, 3681890, 3681891, 3681892, 3681893, 3681894, 3681895, 3681896, 3681897, 3681898, 3681899, 3681900, 3681901, 3681902, 3681903, 3681904, 3681905, 3681906, 3681907, 3681908, 3681909, 3681910, 3681911, 3681912, 3681913, 3681914, 3681915, 3681916, 3681917, 3681918, 3681919, 3681920, 3681921, 3681922, 3681923, 3681924, 3681925, 3681926, 3681927, 3681928, 3681929, 3681930, 3681931, 3681932, 3681933, 3681934, 3681935, 3681936, 3681937, 3681938, 3681939, 3681940, 3681941, 3681942, 3681943, 3681944, 3681945, 3681946, 3681947, 3681948, 3681949, 3681950, 3681951, 3681952, 3681953, 3681954, 3681955, 3681956, 3681957, 3681958, 3681959, 3681960, 3681961, 3681962, 3681963, 3681964, 3681965, 3681966, 3681967, 3681968, 3681969, 3681970, 3681971, 3681972, 3681973, 3681974, 3681975, 3681976, 3681977, 3681978, 3681979, 3681980, 3681981, 3681982, 3681983, 3681984, 3681985, 3681986, 3681987, 3681988, 3681989, 3681990, 3681991, 3681992, 3681993, 3681994, 3681995, 3681996, 3681997, 3681998, 3681999, 3682000, 3682001, 3682002, 3682003, 3682004, 3682005, 3682006, 3682007, 3682008, 3682009, 3682010, 3682011, 3682012, 3682013, 3682014, 3682015, 3682016, 3682017, 3682018, 3682019, 3682020, 3682021, 3682022, 3682023, 3682024, 3682025, 3682026, 3682027, 3682028, 3682029, 3682030, 3682031, 3682032, 3682033, 3682034, 3682035, 3682036) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:20:15,055 - [124756] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 10:20:15,056 - [124756] - src.utils.log - INFO - Work order published ids: (3681701, 3681702, 3681703, 3681704, 3681705, 3681706, 3681707, 3681708, 3681709, 3681710, 3681711, 3681712, 3681713, 3681714, 3681715, 3681716, 3681717, 3681718, 3681719, 3681720, 3681721, 3681722, 3681723, 3681724, 3681725, 3681726, 3681727, 3681728, 3681729, 3681730, 3681731, 3681732, 3681733, 3681734, 3681735, 3681736, 3681737, 3681738, 3681739, 3681740, 3681741, 3681742, 3681743, 3681744, 3681745, 3681746, 3681747, 3681748, 3681749, 3681750, 3681751, 3681752, 3681753, 3681754, 3681755, 3681756, 3681757, 3681758, 3681759, 3681760, 3681761, 3681762, 3681763, 3681764, 3681765, 3681766, 3681767, 3681768, 3681769, 3681770, 3681771, 3681772, 3681773, 3681774, 3681775, 3681776, 3681777, 3681778, 3681779, 3681780, 3681781, 3681782, 3681783, 3681784, 3681785, 3681786, 3681787, 3681788, 3681789, 3681790, 3681791, 3681792, 3681793, 3681794, 3681795, 3681796, 3681797, 3681798, 3681799, 3681800, 3681801, 3681802, 3681803, 3681804, 3681805, 3681806, 3681807, 3681808, 3681809, 3681810, 3681811, 3681812, 3681813, 3681814, 3681815, 3681816, 3681817, 3681818, 3681819, 3681820, 3681821, 3681822, 3681823, 3681824, 3681825, 3681826, 3681827, 3681828, 3681829, 3681830, 3681831, 3681832, 3681833, 3681834, 3681835, 3681836, 3681837, 3681838, 3681839, 3681840, 3681841, 3681842, 3681843, 3681844, 3681845, 3681846, 3681847, 3681848, 3681849, 3681850, 3681851, 3681852, 3681853, 3681854, 3681855, 3681856, 3681857, 3681858, 3681859, 3681860, 3681861, 3681862, 3681863, 3681864, 3681865, 3681866, 3681867, 3681868, 3681869, 3681870, 3681871, 3681872, 3681873, 3681874, 3681875, 3681876, 3681877, 3681878, 3681879, 3681880, 3681881, 3681882, 3681883, 3681884, 3681885, 3681886, 3681887, 3681888, 3681889, 3681890, 3681891, 3681892, 3681893, 3681894, 3681895, 3681896, 3681897, 3681898, 3681899, 3681900, 3681901, 3681902, 3681903, 3681904, 3681905, 3681906, 3681907, 3681908, 3681909, 3681910, 3681911, 3681912, 3681913, 3681914, 3681915, 3681916, 3681917, 3681918, 3681919, 3681920, 3681921, 3681922, 3681923, 3681924, 3681925, 3681926, 3681927, 3681928, 3681929, 3681930, 3681931, 3681932, 3681933, 3681934, 3681935, 3681936, 3681937, 3681938, 3681939, 3681940, 3681941, 3681942, 3681943, 3681944, 3681945, 3681946, 3681947, 3681948, 3681949, 3681950, 3681951, 3681952, 3681953, 3681954, 3681955, 3681956, 3681957, 3681958, 3681959, 3681960, 3681961, 3681962, 3681963, 3681964, 3681965, 3681966, 3681967, 3681968, 3681969, 3681970, 3681971, 3681972, 3681973, 3681974, 3681975, 3681976, 3681977, 3681978, 3681979, 3681980, 3681981, 3681982, 3681983, 3681984, 3681985, 3681986, 3681987, 3681988, 3681989, 3681990, 3681991, 3681992, 3681993, 3681994, 3681995, 3681996, 3681997, 3681998, 3681999, 3682000, 3682001, 3682002, 3682003, 3682004, 3682005, 3682006, 3682007, 3682008, 3682009, 3682010, 3682011, 3682012, 3682013, 3682014, 3682015, 3682016, 3682017, 3682018, 3682019, 3682020, 3682021, 3682022, 3682023, 3682024, 3682025, 3682026, 3682027, 3682028, 3682029, 3682030, 3682031, 3682032, 3682033, 3682034, 3682035, 3682036) - __SPLIT__ 2026-07-17 10:20:15,056 - [124756] - src.utils.log - INFO - Time took to perform operation in publishing [124756]: 83.96 - __SPLIT__ 2026-07-17 10:20:15,056 - [124756] - src.utils.log - INFO - Publish Completed for GenerateWorkOrderHistoryId: [124756] - __SPLIT__ 2026-07-17 10:20:15,056 - [124756] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-07-17 06:20:15.055' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124756;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:20:15,323 - [124756] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-17 10:35:11,046 - 124757 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=124757 - __SPLIT__ 2026-07-17 10:35:11,047 - 124757 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 124757 - __SPLIT__ 2026-07-17 10:35:11,048 - 124757 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-17 10:35:11,048 - 124757 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:35:13,139 - 124757 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 10:35:13,140 - 124757 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-07-17 10:35:13,140 - 124757 - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-07-17 10:35:13,141 - 124757 - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-07-17 10:35:13,141 - 124757 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 124757;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:35:15,000 - 124757 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-17 10:35:15,000 - 124757 - 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 = 124757), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 124757), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 124757 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-07-17 10:35:15,307 - 124757 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 10:35:15,307 - 124757 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 124757;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:35:15,574 - 124757 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 10:35:15,577 - 124757 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-07-17 10:35:15,577 - 124757 - 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 = 14667... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:35:15,854 - 124757 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 10:35:15,855 - 124757 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-07-17 10:35:15,857 - 124757 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-07-17 10:35:15,858 - 124757 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150674;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:35:16,123 - 124757 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 10:35:16,124 - 124757 - 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-07-17 00:00:00' and ServiceDate <= '2026-08-31 00:00:00' and ServiceSetupId = 150674 and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:35:16,397 - 124757 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 10:35:16,951 - 124757 - src.utils.log - INFO - Generating work orders for setup: 150674 - __SPLIT__ 2026-07-17 10:35:16,971 - 124757 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 1035;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:35:17,235 - 124757 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 10:35:17,245 - 124757 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 1127;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:35:17,509 - 124757 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 10:35:17,545 - 124757 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-07-17 10:35:17,550 - 124757 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=133 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:35:17,814 - 124757 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 10:35:17,817 - 124757 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-07-17 10:35:17,817 - 124757 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-07-17 10:35:17,817 - 124757 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150674 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:35:18,135 - 124757 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 10:35:18,135 - 124757 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150674 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:35:18,453 - 124757 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 10:35:18,453 - 124757 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150674 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:35:18,733 - 124757 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 10:35:18,733 - 124757 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150674 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:35:19,052 - 124757 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 10:35:19,052 - 124757 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150674 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:35:19,371 - 124757 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 10:35:19,371 - 124757 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150674 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:35:19,650 - 124757 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 10:35:19,650 - 124757 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150674 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:35:19,920 - 124757 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 10:35:19,921 - 124757 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150674 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:35:20,315 - 124757 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 10:35:20,315 - 124757 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-17 10:35:20,315 - 124757 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:35:20,616 - 124757 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-07-17 10:35:21,584 - 124757 - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-07-17 10:35:21,585 - 124757 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 2 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-07-16 14:51:40.585' and ServiceSetupId = 150674... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:35:21,902 - 124757 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-17 10:35:21,903 - 124757 - src.utils.log - INFO - Id's of work order inserted to DB: [3682037 3682038] - __SPLIT__ 2026-07-17 10:35:21,903 - 124757 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150674;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:35:22,169 - 124757 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 10:35:22,169 - 124757 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-07-17 10:35:22,170 - 124757 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId = 150674... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:35:22,437 - 124757 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 10:35:22,437 - 124757 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId = 150674... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:35:22,703 - 124757 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 10:35:22,711 - 124757 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId = 150674... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:35:22,983 - 124757 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-17 10:35:22,984 - 124757 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId = 150674... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:35:23,250 - 124757 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 10:35:23,250 - 124757 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId = 150674... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:35:23,514 - 124757 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 10:35:23,515 - 124757 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId = 150674;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:35:23,781 - 124757 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 10:35:23,781 - 124757 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId = 150674;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:35:24,046 - 124757 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 10:35:24,046 - 124757 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId = 150674;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:35:24,412 - 124757 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 10:35:24,412 - 124757 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId = 150674;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:35:24,679 - 124757 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 10:35:24,692 - 124757 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-07-17 10:35:24,693 - 124757 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-07-17 10:35:24,693 - 124757 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-07-17 10:35:24,693 - 124757 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.CommunicationPreferencesServiceReportNotification: - __SPLIT__ 2026-07-17 10:35:24,693 - 124757 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-07-17 10:35:24,693 - 124757 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SetupAutoGenerationSourceMapping: - __SPLIT__ 2026-07-17 10:35:24,693 - 124757 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-07-17 10:35:24,693 - 124757 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationAppliedDiscount: - __SPLIT__ 2026-07-17 10:35:24,693 - 124757 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-07-17 10:35:24,693 - 124757 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SubWorkOrderAutoGeneration: - __SPLIT__ 2026-07-17 10:35:24,693 - 124757 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-07-17 10:35:24,693 - 124757 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: - __SPLIT__ 2026-07-17 10:35:24,694 - 124757 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-07-17 10:35:24,694 - 124757 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: - __SPLIT__ 2026-07-17 10:35:24,694 - 124757 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-07-17 10:35:24,694 - 124757 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-17 10:35:24,694 - 124757 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3682037, 3682038) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:35:24,961 - 124757 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-17 10:35:24,962 - 124757 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationCrews: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:35:25,232 - 124757 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationCrews - __SPLIT__ 2026-07-17 10:35:26,168 - 124757 - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationCrews in 1 batches - __SPLIT__ 2026-07-17 10:35:26,168 - 124757 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-07-17 10:35:26,168 - 124757 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-17 10:35:26,168 - 124757 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 3682037 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:35:26,432 - 124757 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 10:35:26,433 - 124757 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:35:26,705 - 124757 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-07-17 10:35:27,646 - 124757 - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-07-17 10:35:27,647 - 124757 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-07-17 10:35:27,647 - 124757 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-17 10:35:27,647 - 124757 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 3682038 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:35:27,911 - 124757 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 10:35:27,912 - 124757 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:35:28,185 - 124757 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-07-17 10:35:29,119 - 124757 - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-07-17 10:35:29,120 - 124757 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-07-17 10:35:29,120 - 124757 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 124757;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:35:29,385 - 124757 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-17 10:35:29,386 - 124757 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-07-17 10:35:29,386 - 124757 - src.utils.log - INFO - Time took to perform operation: 18.34 - __SPLIT__ 2026-07-17 10:35:49,246 - [124757] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[3682037, 3682038] user_id=43135 company_id=133 project_id=[124757] publish_all=False - __SPLIT__ 2026-07-17 10:35:49,247 - [124757] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[3682037, 3682038] user_id=43135 company_id=133 project_id=[124757] publish_all=False - __SPLIT__ 2026-07-17 10:35:49,247 - [124757] - src.utils.log - INFO - Sequential Work order publish in progress for GenerateWorkOrderHistoryId: [124757] - __SPLIT__ 2026-07-17 10:35:49,248 - [124757] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-17 10:35:49,248 - [124757] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:35:51,228 - [124757] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 10:35:51,229 - [124757] - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-07-17 10:35:51,229 - [124757] - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-07-17 10:35:51,230 - [124757] - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-07-17 10:35:51,230 - [124757] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'InProgress' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124757;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:35:53,089 - [124757] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-17 10:35:53,089 - [124757] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (3682037, 3682038)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:35:53,358 - [124757] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-17 10:35:53,359 - [124757] - src.utils.log - INFO - Inside get_work_order_table - __SPLIT__ 2026-07-17 10:35:53,359 - [124757] - 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 = 150674 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:35:53,634 - [124757] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 10:35:53,635 - [124757] - 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 = 150674 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:35:53,909 - [124757] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 10:35:53,910 - [124757] - 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 = 150674 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:35:54,187 - [124757] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 10:35:54,191 - [124757] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder,BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:35:54,454 - [124757] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 10:35:54,455 - [124757] - 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-07-17 10:35:54,719 - [124757] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-17 10:35:54,719 - [124757] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder, BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:35:54,984 - [124757] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 10:35:54,985 - [124757] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 2 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 133 AND EnitityNumberType = 'WorkOrder'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:35:55,258 - [124757] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 10:35:55,258 - [124757] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 2 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 133 AND EnitityNumberType = 'Invoice'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:35:55,525 - [124757] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 10:35:55,529 - [124757] - 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 = 150674... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:35:55,799 - [124757] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 10:35:55,801 - [124757] - src.utils.log - INFO - πŸ” Fetching data: SELECT x.CompanyId FROM CRM.CompanyMaster x WHERE CompanyKey = 'abcdallas';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:35:56,066 - [124757] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 10:35:56,067 - [124757] - src.utils.log - INFO - πŸ” Fetching data: SELECT CollectionStatus,IsHold,AccountNo FROM CRM.Account a WHERE a.AccountNo = '14998' and a.CompanyId = 121;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:35:56,331 - [124757] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 10:35:56,334 - [124757] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderNo FROM ServiceCore.WorkOrder WHERE WorkOrderNo IN ('1427761', '1427762') AND CompanyId = 133 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:35:56,604 - [124757] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 10:35:56,604 - [124757] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrder (skip triggers): 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:35:57,037 - [124757] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrder (triggers skipped) - __SPLIT__ 2026-07-17 10:35:58,010 - [124757] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrder in 1 batches (triggers skipped) - __SPLIT__ 2026-07-17 10:35:58,144 - [124757] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-07-17 10:35:58,145 - [124757] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.ServiceSetup SET IsInitialWoGenerated = 1 WHERE CompanyId = 133 AND ServiceSetupId = 150674;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:35:58,410 - [124757] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-17 10:35:58,411 - [124757] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkorderId, WorkOrderNo FROM ServiceCore.WorkOrder wo WHERE wo.WorkOrderNo IN ('1427761', '1427762') AND wo.AccountNumber = '14998' AND wo.CompanyId = 133 ... (Thread: ThreadPoolExecutor-20_0) - __SPLIT__ 2026-07-17 10:35:58,682 - [124757] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-17 10:35:58,682 - [124757] - src.utils.log - INFO - Sequential fetching temp table records - __SPLIT__ 2026-07-17 10:35:58,683 - [124757] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationServices woag WHERE woag.WorkOrderAutoGenerationId in (3682037, 3682038)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:35:58,994 - [124757] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-17 10:35:58,995 - [124757] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SubWorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (3682037, 3682038)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:35:59,262 - [124757] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 10:35:59,262 - [124757] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationCrews woag WHERE woag.WorkOrderAutoGenerationId in (3682037, 3682038)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:35:59,550 - [124757] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-17 10:35:59,550 - [124757] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationSalesPersonCommission woag WHERE woag.WorkOrderAutoGenerationId in (3682037, 3682038)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:35:59,816 - [124757] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 10:35:59,816 - [124757] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupAutoGenerationSourceMapping woag WHERE woag.WorkOrderAutoGenerationId in (3682037, 3682038)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:36:00,084 - [124757] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 10:36:00,084 - [124757] - 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 (3682037, 3682038)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:36:00,375 - [124757] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 10:36:00,376 - [124757] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from CRM.LeadNote woag WHERE woag.RefId in (3682037, 3682038) and woag.RefType = 'TempWorkorder';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:36:00,643 - [124757] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 10:36:00,643 - [124757] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment woagca WHERE woagca.WorkOrderAutoGenerationId in (3682037, 3682038);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:36:00,909 - [124757] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 10:36:00,911 - [124757] - src.utils.log - INFO - Updating temp tables - __SPLIT__ 2026-07-17 10:36:00,924 - [124757] - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyKey FROM Common.CompanyMaster cm WHERE CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:36:01,188 - [124757] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 10:36:01,189 - [124757] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 133 AND EnitityNumberType in ('SubWorkOrder'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:36:01,454 - [124757] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 10:36:01,458 - [124757] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-17 10:36:01,459 - [124757] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishHistory: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:36:01,750 - [124757] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationPublishHistory - __SPLIT__ 2026-07-17 10:36:02,707 - [124757] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishHistory in 1 batches - __SPLIT__ 2026-07-17 10:36:02,708 - [124757] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationPublishHistoryId, WorkOrderNo, ServiceSetupId FROM ServiceCore.WorkOrderAutoGenerationPublishHistory WHERE ServiceSetupId = 150674 AND WorkOrderNo IN ('464115', '4902710') AND GenerateWorkOrderHistoryId = 124757;... (Thread: ThreadPoolExecutor-21_0) - __SPLIT__ 2026-07-17 10:36:03,154 - [124757] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-17 10:36:03,155 - [124757] - src.utils.log - INFO - 🏁 Final merged rows: 2 - __SPLIT__ 2026-07-17 10:36:03,161 - [124757] - src.utils.log - INFO - Sequential Insertion in work order tables begin - __SPLIT__ 2026-07-17 10:36:03,161 - [124757] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-17 10:36:03,161 - [124757] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderServices: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:36:03,433 - [124757] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderServices - __SPLIT__ 2026-07-17 10:36:04,371 - [124757] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderServices in 1 batches - __SPLIT__ 2026-07-17 10:36:04,372 - [124757] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderAppliedDiscount: - __SPLIT__ 2026-07-17 10:36:04,372 - [124757] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderSalesPersonCommission: - __SPLIT__ 2026-07-17 10:36:04,372 - [124757] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderCommissionAdjustment: - __SPLIT__ 2026-07-17 10:36:04,372 - [124757] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-17 10:36:04,372 - [124757] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderCrew: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:36:04,643 - [124757] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderCrew - __SPLIT__ 2026-07-17 10:36:05,580 - [124757] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderCrew in 1 batches - __SPLIT__ 2026-07-17 10:36:05,581 - [124757] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkorderSourceMapping: - __SPLIT__ 2026-07-17 10:36:05,581 - [124757] - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-07-17 10:36:05,581 - [124757] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-17 10:36:05,581 - [124757] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishServices: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:36:05,854 - [124757] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationPublishServices - __SPLIT__ 2026-07-17 10:36:06,788 - [124757] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishServices in 1 batches - __SPLIT__ 2026-07-17 10:36:06,788 - [124757] - 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 = 150674... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:36:07,054 - [124757] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 10:36:07,061 - [124757] - src.utils.log - INFO - Size of Transaction: 2 - __SPLIT__ 2026-07-17 10:36:07,062 - [124757] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:36:07,464 - [124757] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-07-17 10:36:08,395 - [124757] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-07-17 10:36:08,527 - [124757] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-07-17 10:36:08,528 - [124757] - 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 = 133 AND t.TransactionType ='Invoice' AND t.CreatedDate = '2026-07-17 06:36:07.056';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:36:08,927 - [124757] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-17 10:36:08,930 - [124757] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150674;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:36:09,195 - [124757] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 10:36:09,204 - [124757] - src.utils.log - INFO - πŸ“ Executing: UPDATE Billing.[Transaction] SET ModifiedBy = NULL WHERE ModifiedBy IN (12345678910,12345678911) AND CreatedDate = '2026-07-17 06:36:07.056'; ... (Thread: ThreadPoolExecutor-22_0) - __SPLIT__ 2026-07-17 10:36:09,585 - [124757] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-17 10:36:09,590 - [124757] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-17 10:36:09,591 - [124757] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:36:09,867 - [124757] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.Invoice - __SPLIT__ 2026-07-17 10:36:10,801 - [124757] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-07-17 10:36:10,802 - [124757] - src.utils.log - INFO - πŸ” Fetching data: SELECT InvoiceId, WorkOrderNo FROM Billing.Invoice i WHERE i.WorkOrderNo in ('1427761', '1427762')... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:36:11,673 - [124757] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-17 10:36:11,682 - [124757] - 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 = 150674 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:36:11,951 - [124757] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 10:36:11,952 - [124757] - 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 = 150674 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:36:12,221 - [124757] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 10:36:12,222 - [124757] - 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 = 150674 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:36:12,490 - [124757] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 10:36:12,490 - [124757] - 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 = 150674 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:36:12,759 - [124757] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 10:36:12,773 - [124757] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150674;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:36:13,038 - [124757] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 10:36:13,044 - [124757] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId, AppliedDiscountAmt as AppliedDiscountAmount,IsActive ,ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 150674;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:36:13,310 - [124757] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 10:36:13,314 - [124757] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId,IsActive,DiscountAmount, IsDiscountPercent,DiscountPercent,DiscountDescription , ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 150674;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:36:13,580 - [124757] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 10:36:13,581 - [124757] - src.utils.log - INFO - Sequential Insertion in invoice tables begin - __SPLIT__ 2026-07-17 10:36:13,581 - [124757] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.AccountDiscountSetup: - __SPLIT__ 2026-07-17 10:36:13,581 - [124757] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-17 10:36:13,581 - [124757] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceCharges: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:36:13,854 - [124757] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.InvoiceCharges - __SPLIT__ 2026-07-17 10:36:14,786 - [124757] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.InvoiceCharges in 1 batches - __SPLIT__ 2026-07-17 10:36:14,786 - [124757] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.DiscountApplied: - __SPLIT__ 2026-07-17 10:36:14,786 - [124757] - src.utils.log - INFO - Invoice Publish Done - __SPLIT__ 2026-07-17 10:36:14,787 - [124757] - src.utils.log - INFO - Updating Next GenerationDate - __SPLIT__ 2026-07-17 10:36:14,787 - [124757] - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, MAX(NextWorkOrderGenerationDate) AS MaxNextWorkOrderGeneration FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 124757 GROUP BY ServiceSetupId; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:36:15,054 - [124757] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 10:36:15,060 - [124757] - src.utils.log - INFO - πŸ”„ Updating next gen date sequentially: inside update_next_workorder_generation - __SPLIT__ 2026-07-17 10:36:15,197 - [124757] - src.utils.log - INFO - πŸ›  Creating temp table #tbl_9c3682f410 - __SPLIT__ 2026-07-17 10:36:15,463 - [124757] - src.utils.log - INFO - πŸ“Œ Bulk inserting 1 rows into #tbl_9c3682f410 - __SPLIT__ 2026-07-17 10:36:15,728 - [124757] - src.utils.log - INFO - πŸ” Running MERGE update to apply changes - __SPLIT__ 2026-07-17 10:36:15,869 - [124757] - src.utils.log - INFO - βœ” SQL reported affected rows: 1 - __SPLIT__ 2026-07-17 10:36:16,007 - [124757] - src.utils.log - INFO - πŸ” Verified successfully updated 1 rows via #tbl_9c3682f410 - __SPLIT__ 2026-07-17 10:36:16,007 - [124757] - src.utils.log - INFO - πŸŽ‰ Successfully updated NextGenerationDate using temp table #tbl_9c3682f410 - __SPLIT__ 2026-07-17 10:36:16,007 - [124757] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 124757 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:36:16,272 - [124757] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 10:36:16,272 - [124757] - src.utils.log - INFO - Sequential deletion from temp tables begin - __SPLIT__ 2026-07-17 10:36:16,272 - [124757] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId in (3682037, 3682038) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:36:16,673 - [124757] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 10:36:16,673 - [124757] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId in (3682037, 3682038) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:36:17,025 - [124757] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 10:36:17,026 - [124757] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId in (3682037, 3682038) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:36:17,294 - [124757] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 10:36:17,294 - [124757] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId in (3682037, 3682038) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:36:17,639 - [124757] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 10:36:17,639 - [124757] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId in (3682037, 3682038) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:36:17,911 - [124757] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 10:36:17,911 - [124757] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (3682037, 3682038) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:36:18,181 - [124757] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 10:36:18,181 - [124757] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId in (3682037, 3682038) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:36:18,446 - [124757] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 10:36:18,446 - [124757] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (3682037, 3682038) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:36:18,803 - [124757] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 10:36:18,803 - [124757] - src.utils.log - INFO - Work order published ids: (3682037, 3682038) - __SPLIT__ 2026-07-17 10:36:18,804 - [124757] - src.utils.log - INFO - Time took to perform operation in publishing [124757]: 29.56 - __SPLIT__ 2026-07-17 10:36:18,804 - [124757] - src.utils.log - INFO - Publish Completed for GenerateWorkOrderHistoryId: [124757] - __SPLIT__ 2026-07-17 10:36:18,804 - [124757] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-07-17 06:36:18.803' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124757;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:36:19,069 - [124757] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-17 10:41:24,346 - 124759 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=124759 - __SPLIT__ 2026-07-17 10:41:24,347 - 124759 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 124759 - __SPLIT__ 2026-07-17 10:41:24,347 - 124759 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-17 10:41:24,348 - 124759 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:41:26,312 - 124759 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 10:41:26,313 - 124759 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-07-17 10:41:26,313 - 124759 - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-07-17 10:41:26,314 - 124759 - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-07-17 10:41:26,314 - 124759 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 124759;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:41:28,153 - 124759 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-17 10:41:28,153 - 124759 - 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 = 124759), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 124759), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 124759 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-07-17 10:41:28,455 - 124759 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 10:41:28,455 - 124759 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 124759;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:41:28,719 - 124759 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 10:41:28,720 - 124759 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Failed', WoGenErrorInfo ='No setups found in given range', WorkOrderStatusDateTime = '2026-07-17 06:41:28.720' WHERE GenerateWorkOrderHistoryId = 124759;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:41:28,985 - 124759 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-17 10:41:28,985 - 124759 - src.utils.log - INFO - No Setup Found Error:No setups found for GenerateWorkOrderHistoryid: 124759 - __SPLIT__ 2026-07-17 10:43:08,782 - 124760 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=124760 - __SPLIT__ 2026-07-17 10:43:08,782 - 124760 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 124760 - __SPLIT__ 2026-07-17 10:43:08,783 - 124760 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-17 10:43:08,783 - 124760 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:43:10,862 - 124760 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 10:43:10,862 - 124760 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-07-17 10:43:10,863 - 124760 - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-07-17 10:43:10,863 - 124760 - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-07-17 10:43:10,863 - 124760 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 124760;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:43:12,704 - 124760 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-17 10:43:12,705 - 124760 - 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 = 124760), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 124760), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 124760 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-07-17 10:43:13,011 - 124760 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 10:43:13,011 - 124760 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 124760;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:43:13,276 - 124760 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 10:43:13,279 - 124760 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-07-17 10:43:13,280 - 124760 - 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 = 14577... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:43:13,555 - 124760 - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-07-17 10:43:13,555 - 124760 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-07-17 10:43:13,559 - 124760 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-07-17 10:43:13,559 - 124760 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150674;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:43:13,823 - 124760 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 10:43:13,824 - 124760 - 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-10-15 00:00:00' and ServiceDate <= '2026-10-15 00:00:00' and ServiceSetupId = 150674 and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:43:14,094 - 124760 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 10:43:14,641 - 124760 - src.utils.log - INFO - Generating work orders for setup: 150674 - __SPLIT__ 2026-07-17 10:43:14,650 - 124760 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 1127;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:43:14,912 - 124760 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 10:43:14,950 - 124760 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-07-17 10:43:14,954 - 124760 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=133 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:43:15,216 - 124760 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 10:43:15,218 - 124760 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-07-17 10:43:15,218 - 124760 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-07-17 10:43:15,218 - 124760 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150674 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:43:15,561 - 124760 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 10:43:15,561 - 124760 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150674 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:43:15,893 - 124760 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 10:43:15,893 - 124760 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150674 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:43:16,160 - 124760 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 10:43:16,161 - 124760 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150674 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:43:16,504 - 124760 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 10:43:16,504 - 124760 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150674 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:43:16,878 - 124760 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 10:43:16,878 - 124760 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150674 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:43:17,163 - 124760 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 10:43:17,164 - 124760 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150674 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:43:17,429 - 124760 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 10:43:17,430 - 124760 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150674 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:43:17,854 - 124760 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 10:43:17,854 - 124760 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-17 10:43:17,854 - 124760 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:43:18,155 - 124760 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-07-17 10:43:19,105 - 124760 - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-07-17 10:43:19,106 - 124760 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 1 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-07-16 14:51:40.585' and ServiceSetupId = 150674... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:43:19,421 - 124760 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 10:43:19,422 - 124760 - src.utils.log - INFO - Id's of work order inserted to DB: [3682040] - __SPLIT__ 2026-07-17 10:43:19,422 - 124760 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150674;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:43:19,686 - 124760 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 10:43:19,686 - 124760 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-07-17 10:43:19,686 - 124760 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId = 150674... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:43:19,950 - 124760 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 10:43:19,950 - 124760 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId = 150674... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:43:20,216 - 124760 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 10:43:20,223 - 124760 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId = 150674... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:43:20,494 - 124760 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-17 10:43:20,495 - 124760 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId = 150674... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:43:20,758 - 124760 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 10:43:20,759 - 124760 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId = 150674... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:43:21,022 - 124760 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 10:43:21,022 - 124760 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId = 150674;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:43:21,284 - 124760 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 10:43:21,285 - 124760 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId = 150674;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:43:21,548 - 124760 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 10:43:21,548 - 124760 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId = 150674;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:43:21,908 - 124760 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 10:43:21,908 - 124760 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId = 150674;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:43:22,170 - 124760 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 10:43:22,182 - 124760 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-07-17 10:43:22,183 - 124760 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-07-17 10:43:22,183 - 124760 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-07-17 10:43:22,183 - 124760 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.CommunicationPreferencesServiceReportNotification: - __SPLIT__ 2026-07-17 10:43:22,183 - 124760 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-07-17 10:43:22,183 - 124760 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SetupAutoGenerationSourceMapping: - __SPLIT__ 2026-07-17 10:43:22,183 - 124760 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-07-17 10:43:22,183 - 124760 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationAppliedDiscount: - __SPLIT__ 2026-07-17 10:43:22,183 - 124760 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-07-17 10:43:22,183 - 124760 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SubWorkOrderAutoGeneration: - __SPLIT__ 2026-07-17 10:43:22,183 - 124760 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-07-17 10:43:22,183 - 124760 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: - __SPLIT__ 2026-07-17 10:43:22,184 - 124760 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-07-17 10:43:22,184 - 124760 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: - __SPLIT__ 2026-07-17 10:43:22,184 - 124760 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-07-17 10:43:22,184 - 124760 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-17 10:43:22,184 - 124760 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 3682040 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:43:22,446 - 124760 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 10:43:22,447 - 124760 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationCrews: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:43:22,715 - 124760 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderAutoGenerationCrews - __SPLIT__ 2026-07-17 10:43:23,644 - 124760 - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationCrews in 1 batches - __SPLIT__ 2026-07-17 10:43:23,644 - 124760 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-07-17 10:43:23,644 - 124760 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationServices: - __SPLIT__ 2026-07-17 10:43:23,645 - 124760 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-07-17 10:43:23,645 - 124760 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-17 10:43:23,645 - 124760 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 3682040 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:43:23,907 - 124760 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 10:43:23,908 - 124760 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:43:24,180 - 124760 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-07-17 10:43:25,106 - 124760 - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-07-17 10:43:25,107 - 124760 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-07-17 10:43:25,107 - 124760 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 124760;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:43:25,370 - 124760 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-17 10:43:25,370 - 124760 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-07-17 10:43:25,370 - 124760 - src.utils.log - INFO - Time took to perform operation: 16.59 - __SPLIT__ 2026-07-17 10:43:49,637 - [124760] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[3682040] user_id=43135 company_id=133 project_id=[124760] publish_all=False - __SPLIT__ 2026-07-17 10:43:49,638 - [124760] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[3682040] user_id=43135 company_id=133 project_id=[124760] publish_all=False - __SPLIT__ 2026-07-17 10:43:49,638 - [124760] - src.utils.log - INFO - Sequential Work order publish in progress for GenerateWorkOrderHistoryId: [124760] - __SPLIT__ 2026-07-17 10:43:49,639 - [124760] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-17 10:43:49,639 - [124760] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:43:51,605 - [124760] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 10:43:51,605 - [124760] - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-07-17 10:43:51,606 - [124760] - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-07-17 10:43:51,606 - [124760] - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-07-17 10:43:51,606 - [124760] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'InProgress' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124760;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:43:53,452 - [124760] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-17 10:43:53,452 - [124760] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId = 3682040... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:43:53,719 - [124760] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 10:43:53,720 - [124760] - src.utils.log - INFO - Inside get_work_order_table - __SPLIT__ 2026-07-17 10:43:53,720 - [124760] - 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 = 150674 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:43:53,984 - [124760] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 10:43:53,984 - [124760] - 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 = 150674 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:43:54,247 - [124760] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 10:43:54,248 - [124760] - 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 = 150674 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:43:54,511 - [124760] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 10:43:54,515 - [124760] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder,BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:43:54,778 - [124760] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 10:43:54,778 - [124760] - 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-07-17 10:43:55,041 - [124760] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-17 10:43:55,042 - [124760] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder, BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:43:55,305 - [124760] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 10:43:55,305 - [124760] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 1 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 133 AND EnitityNumberType = 'WorkOrder'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:43:55,571 - [124760] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 10:43:55,572 - [124760] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 1 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 133 AND EnitityNumberType = 'Invoice'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:43:55,837 - [124760] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 10:43:55,841 - [124760] - 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 = 150674... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:43:56,106 - [124760] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 10:43:56,107 - [124760] - src.utils.log - INFO - πŸ” Fetching data: SELECT x.CompanyId FROM CRM.CompanyMaster x WHERE CompanyKey = 'abcdallas';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:43:56,370 - [124760] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 10:43:56,371 - [124760] - src.utils.log - INFO - πŸ” Fetching data: SELECT CollectionStatus,IsHold,AccountNo FROM CRM.Account a WHERE a.AccountNo = '14998' and a.CompanyId = 121;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:43:56,634 - [124760] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 10:43:56,636 - [124760] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderNo FROM ServiceCore.WorkOrder WHERE WorkOrderNo = '1427763' AND CompanyId = 133 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:43:56,899 - [124760] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 10:43:56,899 - [124760] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrder (skip triggers): 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:43:57,330 - [124760] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrder (triggers skipped) - __SPLIT__ 2026-07-17 10:43:58,275 - [124760] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrder in 1 batches (triggers skipped) - __SPLIT__ 2026-07-17 10:43:58,406 - [124760] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-07-17 10:43:58,408 - [124760] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkorderId, WorkOrderNo FROM ServiceCore.WorkOrder wo WHERE wo.WorkOrderNo = '1427763' AND wo.AccountNumber = '14998' AND wo.CompanyId = 133 ... (Thread: ThreadPoolExecutor-23_0) - __SPLIT__ 2026-07-17 10:43:58,671 - [124760] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 10:43:58,672 - [124760] - src.utils.log - INFO - Sequential fetching temp table records - __SPLIT__ 2026-07-17 10:43:58,672 - [124760] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationServices woag WHERE woag.WorkOrderAutoGenerationId = 3682040... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:43:58,966 - [124760] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 10:43:58,967 - [124760] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SubWorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId = 3682040... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:43:59,231 - [124760] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 10:43:59,231 - [124760] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationCrews woag WHERE woag.WorkOrderAutoGenerationId = 3682040... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:43:59,512 - [124760] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 10:43:59,512 - [124760] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationSalesPersonCommission woag WHERE woag.WorkOrderAutoGenerationId = 3682040... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:43:59,775 - [124760] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 10:43:59,776 - [124760] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupAutoGenerationSourceMapping woag WHERE woag.WorkOrderAutoGenerationId = 3682040... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:44:00,040 - [124760] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 10:44:00,041 - [124760] - 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 = 3682040... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:44:00,333 - [124760] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 10:44:00,333 - [124760] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from CRM.LeadNote woag WHERE woag.RefId = 3682040 and woag.RefType = 'TempWorkorder';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:44:00,599 - [124760] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 10:44:00,600 - [124760] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment woagca WHERE woagca.WorkOrderAutoGenerationId = 3682040;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:44:00,862 - [124760] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 10:44:00,865 - [124760] - src.utils.log - INFO - Updating temp tables - __SPLIT__ 2026-07-17 10:44:00,877 - [124760] - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyKey FROM Common.CompanyMaster cm WHERE CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:44:01,141 - [124760] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 10:44:01,141 - [124760] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 133 AND EnitityNumberType in ('SubWorkOrder'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:44:01,405 - [124760] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 10:44:01,409 - [124760] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-17 10:44:01,409 - [124760] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishHistory: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:44:01,699 - [124760] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderAutoGenerationPublishHistory - __SPLIT__ 2026-07-17 10:44:02,634 - [124760] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishHistory in 1 batches - __SPLIT__ 2026-07-17 10:44:02,635 - [124760] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationPublishHistoryId, WorkOrderNo, ServiceSetupId FROM ServiceCore.WorkOrderAutoGenerationPublishHistory WHERE ServiceSetupId = 150674 AND WorkOrderNo = '5779230' AND GenerateWorkOrderHistoryId = 124760; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:44:03,064 - [124760] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 10:44:03,070 - [124760] - src.utils.log - INFO - Sequential Insertion in work order tables begin - __SPLIT__ 2026-07-17 10:44:03,070 - [124760] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-17 10:44:03,070 - [124760] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderServices: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:44:03,342 - [124760] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderServices - __SPLIT__ 2026-07-17 10:44:04,271 - [124760] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderServices in 1 batches - __SPLIT__ 2026-07-17 10:44:04,272 - [124760] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderAppliedDiscount: - __SPLIT__ 2026-07-17 10:44:04,272 - [124760] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderSalesPersonCommission: - __SPLIT__ 2026-07-17 10:44:04,272 - [124760] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderCommissionAdjustment: - __SPLIT__ 2026-07-17 10:44:04,272 - [124760] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-17 10:44:04,272 - [124760] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderCrew: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:44:04,541 - [124760] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderCrew - __SPLIT__ 2026-07-17 10:44:05,470 - [124760] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderCrew in 1 batches - __SPLIT__ 2026-07-17 10:44:05,470 - [124760] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkorderSourceMapping: - __SPLIT__ 2026-07-17 10:44:05,470 - [124760] - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-07-17 10:44:05,471 - [124760] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-17 10:44:05,471 - [124760] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishServices: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:44:05,742 - [124760] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderAutoGenerationPublishServices - __SPLIT__ 2026-07-17 10:44:06,671 - [124760] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishServices in 1 batches - __SPLIT__ 2026-07-17 10:44:06,671 - [124760] - 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 = 150674... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:44:06,935 - [124760] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 10:44:06,941 - [124760] - src.utils.log - INFO - Size of Transaction: 1 - __SPLIT__ 2026-07-17 10:44:06,943 - [124760] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:44:07,344 - [124760] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-07-17 10:44:08,270 - [124760] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-07-17 10:44:08,401 - [124760] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-07-17 10:44:08,402 - [124760] - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionId, ModifiedBy, TransactionDate as InvoiceDate from Billing.[Transaction] t WHERE t.ModifiedBy = 12345678910 and t.CompanyId = 133 AND t.TransactionType ='Invoice' AND t.CreatedDate = '2026-07-17 06:44:06.937';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:44:08,771 - [124760] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 10:44:08,774 - [124760] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150674;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:44:09,039 - [124760] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 10:44:09,047 - [124760] - src.utils.log - INFO - πŸ“ Executing: UPDATE Billing.[Transaction] SET ModifiedBy = NULL WHERE ModifiedBy = 12345678910 AND CreatedDate = '2026-07-17 06:44:06.937'; ... (Thread: ThreadPoolExecutor-24_0) - __SPLIT__ 2026-07-17 10:44:09,924 - [124760] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-17 10:44:09,928 - [124760] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-17 10:44:09,929 - [124760] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:44:10,202 - [124760] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into Billing.Invoice - __SPLIT__ 2026-07-17 10:44:11,132 - [124760] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-07-17 10:44:11,133 - [124760] - src.utils.log - INFO - πŸ” Fetching data: SELECT InvoiceId, WorkOrderNo FROM Billing.Invoice i WHERE i.WorkOrderNo = '1427763'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:44:11,914 - [124760] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 10:44:11,923 - [124760] - 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 = 150674 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:44:12,186 - [124760] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 10:44:12,187 - [124760] - 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 = 150674 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:44:12,450 - [124760] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 10:44:12,451 - [124760] - 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 = 150674 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:44:12,713 - [124760] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 10:44:12,714 - [124760] - 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 = 150674 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:44:12,977 - [124760] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 10:44:12,990 - [124760] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150674;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:44:13,254 - [124760] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 10:44:13,259 - [124760] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId, AppliedDiscountAmt as AppliedDiscountAmount,IsActive ,ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 150674;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:44:13,522 - [124760] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 10:44:13,525 - [124760] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId,IsActive,DiscountAmount, IsDiscountPercent,DiscountPercent,DiscountDescription , ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 150674;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:44:13,788 - [124760] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 10:44:13,789 - [124760] - src.utils.log - INFO - Sequential Insertion in invoice tables begin - __SPLIT__ 2026-07-17 10:44:13,789 - [124760] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.AccountDiscountSetup: - __SPLIT__ 2026-07-17 10:44:13,789 - [124760] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-17 10:44:13,789 - [124760] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceCharges: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:44:14,061 - [124760] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into Billing.InvoiceCharges - __SPLIT__ 2026-07-17 10:44:14,992 - [124760] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into Billing.InvoiceCharges in 1 batches - __SPLIT__ 2026-07-17 10:44:14,992 - [124760] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.DiscountApplied: - __SPLIT__ 2026-07-17 10:44:14,993 - [124760] - src.utils.log - INFO - Invoice Publish Done - __SPLIT__ 2026-07-17 10:44:14,993 - [124760] - src.utils.log - INFO - Updating Next GenerationDate - __SPLIT__ 2026-07-17 10:44:14,993 - [124760] - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, MAX(NextWorkOrderGenerationDate) AS MaxNextWorkOrderGeneration FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 124760 GROUP BY ServiceSetupId; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:44:15,258 - [124760] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 10:44:15,264 - [124760] - src.utils.log - INFO - πŸ”„ Updating next gen date sequentially: inside update_next_workorder_generation - __SPLIT__ 2026-07-17 10:44:15,397 - [124760] - src.utils.log - INFO - πŸ›  Creating temp table #tbl_0e7e1d04d5 - __SPLIT__ 2026-07-17 10:44:15,663 - [124760] - src.utils.log - INFO - πŸ“Œ Bulk inserting 1 rows into #tbl_0e7e1d04d5 - __SPLIT__ 2026-07-17 10:44:15,926 - [124760] - src.utils.log - INFO - πŸ” Running MERGE update to apply changes - __SPLIT__ 2026-07-17 10:44:16,066 - [124760] - src.utils.log - INFO - βœ” SQL reported affected rows: 1 - __SPLIT__ 2026-07-17 10:44:16,203 - [124760] - src.utils.log - INFO - πŸ” Verified successfully updated 1 rows via #tbl_0e7e1d04d5 - __SPLIT__ 2026-07-17 10:44:16,203 - [124760] - src.utils.log - INFO - πŸŽ‰ Successfully updated NextGenerationDate using temp table #tbl_0e7e1d04d5 - __SPLIT__ 2026-07-17 10:44:16,204 - [124760] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 124760 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:44:16,467 - [124760] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 10:44:16,468 - [124760] - src.utils.log - INFO - Sequential deletion from temp tables begin - __SPLIT__ 2026-07-17 10:44:16,468 - [124760] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId = 3682040 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:44:16,856 - [124760] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 10:44:16,856 - [124760] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId = 3682040 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:44:17,197 - [124760] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 10:44:17,198 - [124760] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId = 3682040 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:44:17,462 - [124760] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 10:44:17,462 - [124760] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId = 3682040 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:44:17,797 - [124760] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 10:44:17,798 - [124760] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId = 3682040 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:44:18,067 - [124760] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 10:44:18,067 - [124760] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 3682040 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:44:18,333 - [124760] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 10:44:18,334 - [124760] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId = 3682040 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:44:18,596 - [124760] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 10:44:18,596 - [124760] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 3682040 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:44:18,904 - [124760] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 10:44:18,904 - [124760] - src.utils.log - INFO - Work order published ids: (3682040,) - __SPLIT__ 2026-07-17 10:44:18,904 - [124760] - src.utils.log - INFO - Time took to perform operation in publishing [124760]: 29.27 - __SPLIT__ 2026-07-17 10:44:18,904 - [124760] - src.utils.log - INFO - Publish Completed for GenerateWorkOrderHistoryId: [124760] - __SPLIT__ 2026-07-17 10:44:18,904 - [124760] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-07-17 06:44:18.904' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124760;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:44:19,170 - [124760] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-17 10:48:25,459 - 124761 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=124761 - __SPLIT__ 2026-07-17 10:48:25,460 - 124761 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 124761 - __SPLIT__ 2026-07-17 10:48:25,461 - 124761 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-17 10:48:25,461 - 124761 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:48:27,429 - 124761 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 10:48:27,429 - 124761 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-07-17 10:48:27,430 - 124761 - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-07-17 10:48:27,430 - 124761 - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-07-17 10:48:27,430 - 124761 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 124761;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:48:29,265 - 124761 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-17 10:48:29,265 - 124761 - 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 = 124761), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 124761), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 124761 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-07-17 10:48:29,571 - 124761 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 10:48:29,572 - 124761 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 124761;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:48:29,834 - 124761 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 10:48:29,837 - 124761 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-07-17 10:48:29,838 - 124761 - 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 = 14550... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:48:30,111 - 124761 - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-07-17 10:48:30,111 - 124761 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-07-17 10:48:30,114 - 124761 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-07-17 10:48:30,114 - 124761 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150674;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:48:30,376 - 124761 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 10:48:30,377 - 124761 - 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-07-17 00:00:00' and ServiceDate <= '2027-12-31 00:00:00' and ServiceSetupId = 150674 and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:48:30,647 - 124761 - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-07-17 10:48:31,192 - 124761 - src.utils.log - INFO - Generating work orders for setup: 150674 - __SPLIT__ 2026-07-17 10:48:31,212 - 124761 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 1127;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:48:31,473 - 124761 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 10:48:31,517 - 124761 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-07-17 10:48:31,524 - 124761 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=133 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:48:31,784 - 124761 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 10:48:31,786 - 124761 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-07-17 10:48:31,786 - 124761 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-07-17 10:48:31,787 - 124761 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150674 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:48:32,099 - 124761 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 10:48:32,099 - 124761 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150674 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:48:32,418 - 124761 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 10:48:32,418 - 124761 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150674 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:48:32,685 - 124761 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 10:48:32,686 - 124761 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150674 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:48:33,001 - 124761 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 10:48:33,001 - 124761 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150674 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:48:33,313 - 124761 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 10:48:33,313 - 124761 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150674 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:48:33,584 - 124761 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 10:48:33,585 - 124761 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150674 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:48:33,849 - 124761 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 10:48:33,850 - 124761 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150674 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:48:34,239 - 124761 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 10:48:34,239 - 124761 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-17 10:48:34,239 - 124761 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 3 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:48:34,537 - 124761 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-07-17 10:48:35,627 - 124761 - src.utils.log - INFO - βœ… All 3 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-07-17 10:48:35,628 - 124761 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 3 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-07-16 14:51:40.585' and ServiceSetupId = 150674... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:48:35,942 - 124761 - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-07-17 10:48:35,942 - 124761 - src.utils.log - INFO - Id's of work order inserted to DB: [3682041 3682042 3682043] - __SPLIT__ 2026-07-17 10:48:35,942 - 124761 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150674;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:48:36,205 - 124761 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 10:48:36,205 - 124761 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-07-17 10:48:36,206 - 124761 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId = 150674... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:48:36,468 - 124761 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 10:48:36,468 - 124761 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId = 150674... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:48:36,730 - 124761 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 10:48:36,738 - 124761 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId = 150674... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:48:37,007 - 124761 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-17 10:48:37,009 - 124761 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId = 150674... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:48:37,271 - 124761 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 10:48:37,271 - 124761 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId = 150674... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:48:37,533 - 124761 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 10:48:37,533 - 124761 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId = 150674;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:48:37,796 - 124761 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 10:48:37,796 - 124761 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId = 150674;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:48:38,057 - 124761 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 10:48:38,058 - 124761 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId = 150674;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:48:38,418 - 124761 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 10:48:38,419 - 124761 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId = 150674;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:48:38,680 - 124761 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 10:48:38,692 - 124761 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-07-17 10:48:38,692 - 124761 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-07-17 10:48:38,693 - 124761 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-07-17 10:48:38,693 - 124761 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.CommunicationPreferencesServiceReportNotification: - __SPLIT__ 2026-07-17 10:48:38,693 - 124761 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-07-17 10:48:38,693 - 124761 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SetupAutoGenerationSourceMapping: - __SPLIT__ 2026-07-17 10:48:38,693 - 124761 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-07-17 10:48:38,693 - 124761 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationAppliedDiscount: - __SPLIT__ 2026-07-17 10:48:38,693 - 124761 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-07-17 10:48:38,693 - 124761 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SubWorkOrderAutoGeneration: - __SPLIT__ 2026-07-17 10:48:38,693 - 124761 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-07-17 10:48:38,693 - 124761 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: - __SPLIT__ 2026-07-17 10:48:38,693 - 124761 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-07-17 10:48:38,693 - 124761 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: - __SPLIT__ 2026-07-17 10:48:38,693 - 124761 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-07-17 10:48:38,694 - 124761 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-17 10:48:38,694 - 124761 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3682041, 3682042, 3682043) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:48:38,956 - 124761 - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-07-17 10:48:38,957 - 124761 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationCrews: 3 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:48:39,225 - 124761 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into ServiceCore.WorkOrderAutoGenerationCrews - __SPLIT__ 2026-07-17 10:48:40,151 - 124761 - src.utils.log - INFO - βœ… All 3 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationCrews in 1 batches - __SPLIT__ 2026-07-17 10:48:40,152 - 124761 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-07-17 10:48:40,152 - 124761 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationServices: - __SPLIT__ 2026-07-17 10:48:40,152 - 124761 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-07-17 10:48:40,152 - 124761 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-17 10:48:40,153 - 124761 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3682041, 3682042, 3682043) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:48:40,413 - 124761 - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-07-17 10:48:40,414 - 124761 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 3 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:48:40,684 - 124761 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-07-17 10:48:41,607 - 124761 - src.utils.log - INFO - βœ… All 3 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-07-17 10:48:41,607 - 124761 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-07-17 10:48:41,607 - 124761 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 124761;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:48:41,871 - 124761 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-17 10:48:41,871 - 124761 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-07-17 10:48:41,871 - 124761 - src.utils.log - INFO - Time took to perform operation: 16.41 - __SPLIT__ 2026-07-17 10:50:15,075 - [124761] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[3682041, 3682043] user_id=43135 company_id=133 project_id=[124761] publish_all=False - __SPLIT__ 2026-07-17 10:50:15,075 - [124761] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[3682041, 3682043] user_id=43135 company_id=133 project_id=[124761] publish_all=False - __SPLIT__ 2026-07-17 10:50:15,076 - [124761] - src.utils.log - INFO - Sequential Work order publish in progress for GenerateWorkOrderHistoryId: [124761] - __SPLIT__ 2026-07-17 10:50:15,076 - [124761] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-17 10:50:15,076 - [124761] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:50:17,039 - [124761] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 10:50:17,040 - [124761] - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-07-17 10:50:17,040 - [124761] - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-07-17 10:50:17,041 - [124761] - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-07-17 10:50:17,041 - [124761] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'InProgress' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124761;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:50:18,900 - [124761] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-17 10:50:18,900 - [124761] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (3682041, 3682043)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:50:19,170 - [124761] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-17 10:50:19,171 - [124761] - src.utils.log - INFO - Inside get_work_order_table - __SPLIT__ 2026-07-17 10:50:19,171 - [124761] - 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 = 150674 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:50:19,435 - [124761] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 10:50:19,436 - [124761] - 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 = 150674 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:50:19,701 - [124761] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 10:50:19,701 - [124761] - 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 = 150674 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:50:19,966 - [124761] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 10:50:19,970 - [124761] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder,BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:50:20,234 - [124761] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 10:50:20,234 - [124761] - 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-07-17 10:50:20,498 - [124761] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-17 10:50:20,499 - [124761] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder, BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:50:20,763 - [124761] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 10:50:20,763 - [124761] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 2 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 133 AND EnitityNumberType = 'WorkOrder'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:50:21,030 - [124761] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 10:50:21,030 - [124761] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 2 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 133 AND EnitityNumberType = 'Invoice'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:50:21,297 - [124761] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 10:50:21,301 - [124761] - 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 = 150674... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:50:21,567 - [124761] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 10:50:21,569 - [124761] - src.utils.log - INFO - πŸ” Fetching data: SELECT x.CompanyId FROM CRM.CompanyMaster x WHERE CompanyKey = 'abcdallas';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:50:21,833 - [124761] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 10:50:21,834 - [124761] - src.utils.log - INFO - πŸ” Fetching data: SELECT CollectionStatus,IsHold,AccountNo FROM CRM.Account a WHERE a.AccountNo = '14998' and a.CompanyId = 121;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:50:22,098 - [124761] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 10:50:22,101 - [124761] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderNo FROM ServiceCore.WorkOrder WHERE WorkOrderNo IN ('1427765', '1427766') AND CompanyId = 133 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:50:22,371 - [124761] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 10:50:22,371 - [124761] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrder (skip triggers): 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:50:22,806 - [124761] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrder (triggers skipped) - __SPLIT__ 2026-07-17 10:50:23,782 - [124761] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrder in 1 batches (triggers skipped) - __SPLIT__ 2026-07-17 10:50:23,914 - [124761] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-07-17 10:50:23,916 - [124761] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkorderId, WorkOrderNo FROM ServiceCore.WorkOrder wo WHERE wo.WorkOrderNo IN ('1427765', '1427766') AND wo.AccountNumber = '14998' AND wo.CompanyId = 133 ... (Thread: ThreadPoolExecutor-25_0) - __SPLIT__ 2026-07-17 10:50:24,188 - [124761] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-17 10:50:24,189 - [124761] - src.utils.log - INFO - Sequential fetching temp table records - __SPLIT__ 2026-07-17 10:50:24,189 - [124761] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationServices woag WHERE woag.WorkOrderAutoGenerationId in (3682041, 3682043)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:50:24,495 - [124761] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-17 10:50:24,495 - [124761] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SubWorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (3682041, 3682043)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:50:24,764 - [124761] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 10:50:24,764 - [124761] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationCrews woag WHERE woag.WorkOrderAutoGenerationId in (3682041, 3682043)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:50:25,053 - [124761] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-17 10:50:25,054 - [124761] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationSalesPersonCommission woag WHERE woag.WorkOrderAutoGenerationId in (3682041, 3682043)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:50:25,320 - [124761] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 10:50:25,320 - [124761] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupAutoGenerationSourceMapping woag WHERE woag.WorkOrderAutoGenerationId in (3682041, 3682043)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:50:25,588 - [124761] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 10:50:25,589 - [124761] - 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 (3682041, 3682043)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:50:25,881 - [124761] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 10:50:25,881 - [124761] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from CRM.LeadNote woag WHERE woag.RefId in (3682041, 3682043) and woag.RefType = 'TempWorkorder';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:50:26,148 - [124761] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 10:50:26,149 - [124761] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment woagca WHERE woagca.WorkOrderAutoGenerationId in (3682041, 3682043);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:50:26,414 - [124761] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 10:50:26,417 - [124761] - src.utils.log - INFO - Updating temp tables - __SPLIT__ 2026-07-17 10:50:26,429 - [124761] - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyKey FROM Common.CompanyMaster cm WHERE CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:50:26,693 - [124761] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 10:50:26,693 - [124761] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 133 AND EnitityNumberType in ('SubWorkOrder'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:50:26,958 - [124761] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 10:50:26,962 - [124761] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-17 10:50:26,962 - [124761] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishHistory: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:50:27,252 - [124761] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationPublishHistory - __SPLIT__ 2026-07-17 10:50:28,219 - [124761] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishHistory in 1 batches - __SPLIT__ 2026-07-17 10:50:28,220 - [124761] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationPublishHistoryId, WorkOrderNo, ServiceSetupId FROM ServiceCore.WorkOrderAutoGenerationPublishHistory WHERE ServiceSetupId = 150674 AND WorkOrderNo IN ('5941444', '9490392') AND GenerateWorkOrderHistoryId = 124761;... (Thread: ThreadPoolExecutor-26_0) - __SPLIT__ 2026-07-17 10:50:28,669 - [124761] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-17 10:50:28,670 - [124761] - src.utils.log - INFO - 🏁 Final merged rows: 2 - __SPLIT__ 2026-07-17 10:50:28,675 - [124761] - src.utils.log - INFO - Sequential Insertion in work order tables begin - __SPLIT__ 2026-07-17 10:50:28,675 - [124761] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-17 10:50:28,675 - [124761] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderServices: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:50:28,950 - [124761] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderServices - __SPLIT__ 2026-07-17 10:50:29,986 - [124761] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderServices in 1 batches - __SPLIT__ 2026-07-17 10:50:29,986 - [124761] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderAppliedDiscount: - __SPLIT__ 2026-07-17 10:50:29,986 - [124761] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderSalesPersonCommission: - __SPLIT__ 2026-07-17 10:50:29,986 - [124761] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderCommissionAdjustment: - __SPLIT__ 2026-07-17 10:50:29,986 - [124761] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-17 10:50:29,986 - [124761] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderCrew: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:50:30,256 - [124761] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderCrew - __SPLIT__ 2026-07-17 10:50:31,188 - [124761] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderCrew in 1 batches - __SPLIT__ 2026-07-17 10:50:31,189 - [124761] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkorderSourceMapping: - __SPLIT__ 2026-07-17 10:50:31,189 - [124761] - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-07-17 10:50:31,189 - [124761] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-17 10:50:31,189 - [124761] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishServices: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:50:31,462 - [124761] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationPublishServices - __SPLIT__ 2026-07-17 10:50:32,394 - [124761] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishServices in 1 batches - __SPLIT__ 2026-07-17 10:50:32,395 - [124761] - 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 = 150674... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:50:32,661 - [124761] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 10:50:32,667 - [124761] - src.utils.log - INFO - Size of Transaction: 2 - __SPLIT__ 2026-07-17 10:50:32,668 - [124761] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:50:33,071 - [124761] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-07-17 10:50:34,004 - [124761] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-07-17 10:50:34,137 - [124761] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-07-17 10:50:34,138 - [124761] - 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 = 133 AND t.TransactionType ='Invoice' AND t.CreatedDate = '2026-07-17 06:50:32.662';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:50:34,538 - [124761] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-17 10:50:34,540 - [124761] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150674;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:50:34,806 - [124761] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 10:50:34,815 - [124761] - src.utils.log - INFO - πŸ“ Executing: UPDATE Billing.[Transaction] SET ModifiedBy = NULL WHERE ModifiedBy IN (12345678910,12345678911) AND CreatedDate = '2026-07-17 06:50:32.662'; ... (Thread: ThreadPoolExecutor-27_0) - __SPLIT__ 2026-07-17 10:50:35,190 - [124761] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-17 10:50:35,196 - [124761] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-17 10:50:35,196 - [124761] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:50:35,470 - [124761] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.Invoice - __SPLIT__ 2026-07-17 10:50:36,413 - [124761] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-07-17 10:50:36,414 - [124761] - src.utils.log - INFO - πŸ” Fetching data: SELECT InvoiceId, WorkOrderNo FROM Billing.Invoice i WHERE i.WorkOrderNo in ('1427766', '1427765')... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:50:37,281 - [124761] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-17 10:50:37,290 - [124761] - 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 = 150674 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:50:37,555 - [124761] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 10:50:37,555 - [124761] - 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 = 150674 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:50:37,820 - [124761] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 10:50:37,821 - [124761] - 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 = 150674 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:50:38,085 - [124761] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 10:50:38,085 - [124761] - 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 = 150674 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:50:38,350 - [124761] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 10:50:38,363 - [124761] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150674;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:50:38,628 - [124761] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 10:50:38,634 - [124761] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId, AppliedDiscountAmt as AppliedDiscountAmount,IsActive ,ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 150674;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:50:38,899 - [124761] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 10:50:38,902 - [124761] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId,IsActive,DiscountAmount, IsDiscountPercent,DiscountPercent,DiscountDescription , ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 150674;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:50:39,166 - [124761] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 10:50:39,167 - [124761] - src.utils.log - INFO - Sequential Insertion in invoice tables begin - __SPLIT__ 2026-07-17 10:50:39,167 - [124761] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.AccountDiscountSetup: - __SPLIT__ 2026-07-17 10:50:39,167 - [124761] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-17 10:50:39,167 - [124761] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceCharges: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:50:39,440 - [124761] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.InvoiceCharges - __SPLIT__ 2026-07-17 10:50:40,377 - [124761] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.InvoiceCharges in 1 batches - __SPLIT__ 2026-07-17 10:50:40,377 - [124761] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.DiscountApplied: - __SPLIT__ 2026-07-17 10:50:40,378 - [124761] - src.utils.log - INFO - Invoice Publish Done - __SPLIT__ 2026-07-17 10:50:40,378 - [124761] - src.utils.log - INFO - Updating Next GenerationDate - __SPLIT__ 2026-07-17 10:50:40,378 - [124761] - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, MAX(NextWorkOrderGenerationDate) AS MaxNextWorkOrderGeneration FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 124761 GROUP BY ServiceSetupId; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:50:40,644 - [124761] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 10:50:40,650 - [124761] - src.utils.log - INFO - πŸ”„ Updating next gen date sequentially: inside update_next_workorder_generation - __SPLIT__ 2026-07-17 10:50:40,784 - [124761] - src.utils.log - INFO - πŸ›  Creating temp table #tbl_e7255d6731 - __SPLIT__ 2026-07-17 10:50:41,051 - [124761] - src.utils.log - INFO - πŸ“Œ Bulk inserting 1 rows into #tbl_e7255d6731 - __SPLIT__ 2026-07-17 10:50:41,316 - [124761] - src.utils.log - INFO - πŸ” Running MERGE update to apply changes - __SPLIT__ 2026-07-17 10:50:41,456 - [124761] - src.utils.log - INFO - βœ” SQL reported affected rows: 1 - __SPLIT__ 2026-07-17 10:50:41,595 - [124761] - src.utils.log - INFO - πŸ” Verified successfully updated 1 rows via #tbl_e7255d6731 - __SPLIT__ 2026-07-17 10:50:41,595 - [124761] - src.utils.log - INFO - πŸŽ‰ Successfully updated NextGenerationDate using temp table #tbl_e7255d6731 - __SPLIT__ 2026-07-17 10:50:41,595 - [124761] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 124761 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:50:41,860 - [124761] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 10:50:41,861 - [124761] - src.utils.log - INFO - Sequential deletion from temp tables begin - __SPLIT__ 2026-07-17 10:50:41,861 - [124761] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId in (3682041, 3682043) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:50:42,270 - [124761] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 10:50:42,270 - [124761] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId in (3682041, 3682043) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:50:42,632 - [124761] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 10:50:42,633 - [124761] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId in (3682041, 3682043) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:50:42,899 - [124761] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 10:50:42,899 - [124761] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId in (3682041, 3682043) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:50:43,251 - [124761] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 10:50:43,251 - [124761] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId in (3682041, 3682043) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:50:43,525 - [124761] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 10:50:43,525 - [124761] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (3682041, 3682043) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:50:43,794 - [124761] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 10:50:43,794 - [124761] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId in (3682041, 3682043) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:50:44,060 - [124761] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 10:50:44,060 - [124761] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (3682041, 3682043) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:50:44,419 - [124761] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 10:50:44,419 - [124761] - src.utils.log - INFO - Work order published ids: (3682041, 3682043) - __SPLIT__ 2026-07-17 10:50:44,419 - [124761] - src.utils.log - INFO - Time took to perform operation in publishing [124761]: 29.34 - __SPLIT__ 2026-07-17 10:50:44,420 - [124761] - src.utils.log - INFO - Publish Completed for GenerateWorkOrderHistoryId: [124761] - __SPLIT__ 2026-07-17 10:50:44,420 - [124761] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-07-17 06:50:44.419' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124761;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 10:50:44,685 - [124761] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-17 13:23:14,651 - 12678 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=12678 - __SPLIT__ 2026-07-17 13:23:14,652 - 12678 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 12678 - __SPLIT__ 2026-07-17 13:23:14,653 - 12678 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-17 13:23:14,653 - 12678 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 13:23:16,631 - 12678 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 13:23:16,631 - 12678 - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-07-17 13:23:16,631 - 12678 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 12678;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 13:23:16,915 - 12678 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-17 13:23:16,915 - 12678 - 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 = 12678), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 12678), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 12678 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-07-17 13:23:17,237 - 12678 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 13:23:17,237 - 12678 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 12678;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 13:23:17,523 - 12678 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 13:23:17,526 - 12678 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-07-17 13:23:17,527 - 12678 - 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 = 13057... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 13:23:17,815 - 12678 - src.utils.log - INFO - βœ… Fetched 60 rows - __SPLIT__ 2026-07-17 13:23:17,815 - 12678 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-07-17 13:23:17,818 - 12678 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-07-17 13:23:17,818 - 12678 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 34402;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 13:23:18,104 - 12678 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 13:23:18,104 - 12678 - 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-07-17 00:00:00' and ServiceDate <= '2029-12-31 00:00:00' and ServiceSetupId = 34402 and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 13:23:18,391 - 12678 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 13:23:18,991 - 12678 - src.utils.log - INFO - Generating work orders for setup: 34402 - __SPLIT__ 2026-07-17 13:23:19,739 - 12678 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 1393;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 13:23:20,022 - 12678 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 13:23:20,081 - 12678 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-07-17 13:23:20,088 - 12678 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=135 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 13:23:20,395 - 12678 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 13:23:20,398 - 12678 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-07-17 13:23:20,398 - 12678 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-07-17 13:23:20,398 - 12678 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34402 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 13:23:20,689 - 12678 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 13:23:20,689 - 12678 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34402 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 13:23:20,980 - 12678 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 13:23:20,980 - 12678 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34402 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 13:23:21,272 - 12678 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 13:23:21,272 - 12678 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34402 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 13:23:21,562 - 12678 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 13:23:21,562 - 12678 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34402 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 13:23:21,853 - 12678 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 13:23:21,853 - 12678 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34402 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 13:23:22,146 - 12678 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 13:23:22,146 - 12678 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34402 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 13:23:22,431 - 12678 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 13:23:22,431 - 12678 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34402 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 13:23:22,732 - 12678 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 13:23:22,732 - 12678 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-17 13:23:22,732 - 12678 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 83 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 13:23:23,069 - 12678 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 83) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-07-17 13:23:26,747 - 12678 - src.utils.log - INFO - βœ… All 83 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-07-17 13:23:26,747 - 12678 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 83 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-07-16 14:51:40.778' and ServiceSetupId = 34402... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 13:23:27,037 - 12678 - src.utils.log - INFO - βœ… Fetched 83 rows - __SPLIT__ 2026-07-17 13:23:27,038 - 12678 - src.utils.log - INFO - Id's of work order inserted to DB: [2737457 2737458 2737459 2737460 2737461 2737462 2737463 2737464 2737465 2737466 2737467 2737468 2737469 2737470 2737471 2737472 2737473 2737474 2737475 2737476 2737477 2737478 2737479 2737480 2737481 2737482 2737483 2737484 2737485 2737486 2737487 2737488 2737489 2737490 2737491 2737492 2737493 2737494 2737495 2737496 2737497 2737498 2737499 2737500 2737501 2737502 2737503 2737504 2737505 2737506 2737507 2737508 2737509 2737510 2737511 2737512 2737513 2737514 2737515 2737516 2737517 2737518 2737519 2737520 2737521 2737522 2737523 2737524 2737525 2737526 2737527 2737528 2737529 2737530 2737531 2737532 2737533 2737534 2737535 2737536 2737537 2737538 2737539] - __SPLIT__ 2026-07-17 13:23:27,038 - 12678 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 34402;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 13:23:27,321 - 12678 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 13:23:27,321 - 12678 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-07-17 13:23:27,321 - 12678 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId = 34402... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 13:23:27,609 - 12678 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 13:23:27,609 - 12678 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId = 34402... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 13:23:27,893 - 12678 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 13:23:27,901 - 12678 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId = 34402... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 13:23:28,202 - 12678 - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-07-17 13:23:28,204 - 12678 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId = 34402... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 13:23:28,487 - 12678 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 13:23:28,488 - 12678 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId = 34402... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 13:23:28,772 - 12678 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 13:23:28,772 - 12678 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId = 34402;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 13:23:29,056 - 12678 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 13:23:29,057 - 12678 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId = 34402;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 13:23:29,339 - 12678 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 13:23:29,339 - 12678 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId = 34402;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 13:23:29,639 - 12678 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 13:23:29,639 - 12678 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId = 34402;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 13:23:29,923 - 12678 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 13:23:29,936 - 12678 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-07-17 13:23:29,936 - 12678 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-07-17 13:23:29,937 - 12678 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-07-17 13:23:29,937 - 12678 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.CommunicationPreferencesServiceReportNotification: - __SPLIT__ 2026-07-17 13:23:29,937 - 12678 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-07-17 13:23:29,937 - 12678 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SetupAutoGenerationSourceMapping: - __SPLIT__ 2026-07-17 13:23:29,937 - 12678 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-07-17 13:23:29,937 - 12678 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationAppliedDiscount: - __SPLIT__ 2026-07-17 13:23:29,937 - 12678 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-07-17 13:23:29,937 - 12678 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SubWorkOrderAutoGeneration: - __SPLIT__ 2026-07-17 13:23:29,937 - 12678 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-07-17 13:23:29,937 - 12678 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: - __SPLIT__ 2026-07-17 13:23:29,937 - 12678 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-07-17 13:23:29,937 - 12678 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: - __SPLIT__ 2026-07-17 13:23:29,937 - 12678 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-07-17 13:23:29,937 - 12678 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-17 13:23:29,938 - 12678 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (2737457, 2737458, 2737459, 2737460, 2737461, 2737462, 2737463, 2737464, 2737465, 2737466, 2737467, 2737468, 2737469, 2737470, 2737471, 2737472, 2737473, 2737474, 2737475, 2737476, 2737477, 2737478, 2737479, 2737480, 2737481, 2737482, 2737483, 2737484, 2737485, 2737486, 2737487, 2737488, 2737489, 2737490, 2737491, 2737492, 2737493, 2737494, 2737495, 2737496, 2737497, 2737498, 2737499, 2737500, 2737501, 2737502, 2737503, 2737504, 2737505, 2737506, 2737507, 2737508, 2737509, 2737510, 2737511, 2737512, 2737513, 2737514, 2737515, 2737516, 2737517, 2737518, 2737519, 2737520, 2737521, 2737522, 2737523, 2737524, 2737525, 2737526, 2737527, 2737528, 2737529, 2737530, 2737531, 2737532, 2737533, 2737534, 2737535, 2737536, 2737537, 2737538, 2737539) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 13:23:30,225 - 12678 - src.utils.log - INFO - βœ… Fetched 83 rows - __SPLIT__ 2026-07-17 13:23:30,226 - 12678 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationCrews: 84 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 13:23:30,530 - 12678 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 84) into ServiceCore.WorkOrderAutoGenerationCrews - __SPLIT__ 2026-07-17 13:23:31,581 - 12678 - src.utils.log - INFO - βœ… All 84 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationCrews in 1 batches - __SPLIT__ 2026-07-17 13:23:31,581 - 12678 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-07-17 13:23:31,581 - 12678 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-17 13:23:31,582 - 12678 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 2737457 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 13:23:31,864 - 12678 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 13:23:31,865 - 12678 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 13:23:32,172 - 12678 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-07-17 13:23:33,170 - 12678 - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-07-17 13:23:33,170 - 12678 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-07-17 13:23:33,170 - 12678 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-17 13:23:33,171 - 12678 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (2737458, 2737459, 2737460, 2737461, 2737462, 2737463, 2737464, 2737465, 2737466, 2737467, 2737468, 2737469, 2737470, 2737471, 2737472, 2737473, 2737474, 2737475, 2737476, 2737477, 2737478, 2737479, 2737480, 2737481, 2737482, 2737483, 2737484, 2737485, 2737486, 2737487, 2737488, 2737489, 2737490, 2737491, 2737492, 2737493, 2737494, 2737495, 2737496, 2737497, 2737498, 2737499, 2737500, 2737501, 2737502, 2737503, 2737504, 2737505, 2737506, 2737507, 2737508, 2737509, 2737510, 2737511, 2737512, 2737513, 2737514, 2737515, 2737516, 2737517, 2737518, 2737519, 2737520, 2737521, 2737522, 2737523, 2737524, 2737525, 2737526, 2737527, 2737528, 2737529, 2737530, 2737531, 2737532, 2737533, 2737534, 2737535, 2737536, 2737537, 2737538, 2737539) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 13:23:33,458 - 12678 - src.utils.log - INFO - βœ… Fetched 82 rows - __SPLIT__ 2026-07-17 13:23:33,459 - 12678 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 82 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 13:23:33,748 - 12678 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 82) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-07-17 13:23:34,867 - 12678 - src.utils.log - INFO - βœ… All 82 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-07-17 13:23:34,867 - 12678 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-07-17 13:23:34,867 - 12678 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 12678;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 13:23:35,149 - 12678 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-17 13:23:35,149 - 12678 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-07-17 13:23:35,149 - 12678 - src.utils.log - INFO - Time took to perform operation: 20.5 - __SPLIT__ 2026-07-17 13:32:48,079 - 124763 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=124763 - __SPLIT__ 2026-07-17 13:32:48,080 - 124763 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 124763 - __SPLIT__ 2026-07-17 13:32:48,080 - 124763 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-17 13:32:48,081 - 124763 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 13:32:50,069 - 124763 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 13:32:50,070 - 124763 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-07-17 13:32:50,070 - 124763 - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-07-17 13:32:50,070 - 124763 - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-07-17 13:32:50,071 - 124763 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 124763;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 13:32:51,930 - 124763 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-17 13:32:51,931 - 124763 - 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 = 124763), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 124763), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 124763 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-07-17 13:32:52,242 - 124763 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 13:32:52,243 - 124763 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 124763;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 13:32:52,510 - 124763 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 13:32:52,513 - 124763 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-07-17 13:32:52,514 - 124763 - 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 = 14037... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 13:32:52,786 - 124763 - src.utils.log - INFO - βœ… Fetched 60 rows - __SPLIT__ 2026-07-17 13:32:52,786 - 124763 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-07-17 13:32:52,789 - 124763 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-07-17 13:32:52,789 - 124763 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150686;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 13:32:53,056 - 124763 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 13:32:53,057 - 124763 - 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-07-17 00:00:00' and ServiceDate <= '2026-08-31 00:00:00' and ServiceSetupId = 150686 and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 13:32:53,330 - 124763 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 13:32:53,887 - 124763 - src.utils.log - INFO - Generating work orders for setup: 150686 - __SPLIT__ 2026-07-17 13:32:53,896 - 124763 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 11436;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 13:32:54,162 - 124763 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 13:32:54,197 - 124763 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-07-17 13:32:54,201 - 124763 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=133 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 13:32:54,465 - 124763 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 13:32:54,467 - 124763 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-07-17 13:32:54,467 - 124763 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-07-17 13:32:54,467 - 124763 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150686 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 13:32:54,824 - 124763 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 13:32:54,824 - 124763 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150686 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 13:32:55,181 - 124763 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 13:32:55,181 - 124763 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150686 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 13:32:55,455 - 124763 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 13:32:55,456 - 124763 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150686 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 13:32:55,798 - 124763 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 13:32:55,798 - 124763 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150686 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 13:32:56,125 - 124763 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 13:32:56,125 - 124763 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150686 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 13:32:56,407 - 124763 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 13:32:56,407 - 124763 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150686 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 13:32:56,681 - 124763 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 13:32:56,681 - 124763 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150686 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 13:32:57,160 - 124763 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 13:32:57,160 - 124763 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-17 13:32:57,160 - 124763 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 13:32:57,464 - 124763 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-07-17 13:32:58,417 - 124763 - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-07-17 13:32:58,418 - 124763 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 1 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-07-16 14:51:40.778' and ServiceSetupId = 150686... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 13:32:58,736 - 124763 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 13:32:58,736 - 124763 - src.utils.log - INFO - Id's of work order inserted to DB: [3682045] - __SPLIT__ 2026-07-17 13:32:58,737 - 124763 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150686;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 13:32:59,003 - 124763 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 13:32:59,003 - 124763 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-07-17 13:32:59,004 - 124763 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId = 150686... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 13:32:59,272 - 124763 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 13:32:59,273 - 124763 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId = 150686... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 13:32:59,539 - 124763 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 13:32:59,543 - 124763 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId = 150686... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 13:32:59,817 - 124763 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 13:32:59,819 - 124763 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId = 150686... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 13:33:00,085 - 124763 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 13:33:00,085 - 124763 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId = 150686... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 13:33:00,351 - 124763 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 13:33:00,351 - 124763 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId = 150686;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 13:33:00,618 - 124763 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 13:33:00,619 - 124763 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId = 150686;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 13:33:00,884 - 124763 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 13:33:00,885 - 124763 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId = 150686;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 13:33:01,265 - 124763 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 13:33:01,266 - 124763 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId = 150686;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 13:33:01,534 - 124763 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 13:33:01,541 - 124763 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-07-17 13:33:01,541 - 124763 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-07-17 13:33:01,541 - 124763 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-07-17 13:33:01,541 - 124763 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.CommunicationPreferencesServiceReportNotification: - __SPLIT__ 2026-07-17 13:33:01,541 - 124763 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-07-17 13:33:01,542 - 124763 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SetupAutoGenerationSourceMapping: - __SPLIT__ 2026-07-17 13:33:01,542 - 124763 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-07-17 13:33:01,542 - 124763 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationAppliedDiscount: - __SPLIT__ 2026-07-17 13:33:01,542 - 124763 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-07-17 13:33:01,542 - 124763 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SubWorkOrderAutoGeneration: - __SPLIT__ 2026-07-17 13:33:01,542 - 124763 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-07-17 13:33:01,542 - 124763 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: - __SPLIT__ 2026-07-17 13:33:01,542 - 124763 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-07-17 13:33:01,542 - 124763 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: - __SPLIT__ 2026-07-17 13:33:01,542 - 124763 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-07-17 13:33:01,542 - 124763 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-17 13:33:01,542 - 124763 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 3682045 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 13:33:01,807 - 124763 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 13:33:01,808 - 124763 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationCrews: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 13:33:02,080 - 124763 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderAutoGenerationCrews - __SPLIT__ 2026-07-17 13:33:03,017 - 124763 - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationCrews in 1 batches - __SPLIT__ 2026-07-17 13:33:03,017 - 124763 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-07-17 13:33:03,017 - 124763 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationServices: - __SPLIT__ 2026-07-17 13:33:03,017 - 124763 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-07-17 13:33:03,018 - 124763 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-17 13:33:03,018 - 124763 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 3682045 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 13:33:03,283 - 124763 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 13:33:03,284 - 124763 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 13:33:03,558 - 124763 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-07-17 13:33:04,496 - 124763 - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-07-17 13:33:04,496 - 124763 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-07-17 13:33:04,496 - 124763 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 124763;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 13:33:04,763 - 124763 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-17 13:33:04,763 - 124763 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-07-17 13:33:04,763 - 124763 - src.utils.log - INFO - Time took to perform operation: 16.68 - __SPLIT__ 2026-07-17 14:42:22,159 - 12679 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=12679 - __SPLIT__ 2026-07-17 14:42:22,160 - 12679 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 12679 - __SPLIT__ 2026-07-17 14:42:22,161 - 12679 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-17 14:42:22,161 - 12679 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 14:42:24,229 - 12679 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 14:42:24,229 - 12679 - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-07-17 14:42:24,229 - 12679 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 12679;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 14:42:24,525 - 12679 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-17 14:42:24,525 - 12679 - 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 = 12679), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 12679), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 12679 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-07-17 14:42:24,857 - 12679 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 14:42:24,858 - 12679 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 12679;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 14:42:25,156 - 12679 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 14:42:25,159 - 12679 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-07-17 14:42:25,160 - 12679 - 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 = 13057... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 14:42:25,457 - 12679 - src.utils.log - INFO - βœ… Fetched 60 rows - __SPLIT__ 2026-07-17 14:42:25,457 - 12679 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-07-17 14:42:25,461 - 12679 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-07-17 14:42:25,461 - 12679 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 34402;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 14:42:25,757 - 12679 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 14:42:25,757 - 12679 - 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-07-17 00:00:00' and ServiceDate <= '2029-12-31 00:00:00' and ServiceSetupId = 34402 and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 14:42:26,052 - 12679 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 14:42:26,674 - 12679 - src.utils.log - INFO - Generating work orders for setup: 34402 - __SPLIT__ 2026-07-17 14:42:27,590 - 12679 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 1393;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 14:42:27,886 - 12679 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 14:42:27,945 - 12679 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-07-17 14:42:27,953 - 12679 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=135 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 14:42:28,246 - 12679 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 14:42:28,249 - 12679 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-07-17 14:42:28,249 - 12679 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-07-17 14:42:28,249 - 12679 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34402 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 14:42:28,560 - 12679 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 14:42:28,560 - 12679 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34402 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 14:42:28,866 - 12679 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 14:42:28,866 - 12679 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34402 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 14:42:29,167 - 12679 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 14:42:29,167 - 12679 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34402 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 14:42:29,481 - 12679 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 14:42:29,481 - 12679 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34402 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 14:42:29,786 - 12679 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 14:42:29,786 - 12679 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34402 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 14:42:30,090 - 12679 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 14:42:30,090 - 12679 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34402 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 14:42:30,384 - 12679 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 14:42:30,384 - 12679 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34402 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 14:42:31,239 - 12679 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 14:42:31,240 - 12679 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-17 14:42:31,240 - 12679 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 83 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 14:42:31,572 - 12679 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 83) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-07-17 14:42:34,932 - 12679 - src.utils.log - INFO - βœ… All 83 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-07-17 14:42:34,933 - 12679 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 83 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-07-16 14:51:40.420' and ServiceSetupId = 34402... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 14:42:35,235 - 12679 - src.utils.log - INFO - βœ… Fetched 83 rows - __SPLIT__ 2026-07-17 14:42:35,235 - 12679 - src.utils.log - INFO - Id's of work order inserted to DB: [2737540 2737541 2737542 2737543 2737544 2737545 2737546 2737547 2737548 2737549 2737550 2737551 2737552 2737553 2737554 2737555 2737556 2737557 2737558 2737559 2737560 2737561 2737562 2737563 2737564 2737565 2737566 2737567 2737568 2737569 2737570 2737571 2737572 2737573 2737574 2737575 2737576 2737577 2737578 2737579 2737580 2737581 2737582 2737583 2737584 2737585 2737586 2737587 2737588 2737589 2737590 2737591 2737592 2737593 2737594 2737595 2737596 2737597 2737598 2737599 2737600 2737601 2737602 2737603 2737604 2737605 2737606 2737607 2737608 2737609 2737610 2737611 2737612 2737613 2737614 2737615 2737616 2737617 2737618 2737619 2737620 2737621 2737622] - __SPLIT__ 2026-07-17 14:42:35,236 - 12679 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 34402;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 14:42:35,530 - 12679 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 14:42:35,530 - 12679 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-07-17 14:42:35,530 - 12679 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId = 34402... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 14:42:35,827 - 12679 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 14:42:35,828 - 12679 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId = 34402... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 14:42:36,125 - 12679 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 14:42:36,132 - 12679 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId = 34402... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 14:42:36,428 - 12679 - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-07-17 14:42:36,430 - 12679 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId = 34402... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 14:42:36,724 - 12679 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 14:42:36,724 - 12679 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId = 34402... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 14:42:37,019 - 12679 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 14:42:37,019 - 12679 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId = 34402;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 14:42:37,314 - 12679 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 14:42:37,315 - 12679 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId = 34402;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 14:42:37,609 - 12679 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 14:42:37,610 - 12679 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId = 34402;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 14:42:37,923 - 12679 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 14:42:37,923 - 12679 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId = 34402;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 14:42:38,218 - 12679 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 14:42:38,231 - 12679 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-07-17 14:42:38,232 - 12679 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-07-17 14:42:38,232 - 12679 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-07-17 14:42:38,232 - 12679 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.CommunicationPreferencesServiceReportNotification: - __SPLIT__ 2026-07-17 14:42:38,232 - 12679 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-07-17 14:42:38,232 - 12679 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SetupAutoGenerationSourceMapping: - __SPLIT__ 2026-07-17 14:42:38,232 - 12679 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-07-17 14:42:38,232 - 12679 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationAppliedDiscount: - __SPLIT__ 2026-07-17 14:42:38,232 - 12679 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-07-17 14:42:38,232 - 12679 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SubWorkOrderAutoGeneration: - __SPLIT__ 2026-07-17 14:42:38,232 - 12679 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-07-17 14:42:38,232 - 12679 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: - __SPLIT__ 2026-07-17 14:42:38,233 - 12679 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-07-17 14:42:38,233 - 12679 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: - __SPLIT__ 2026-07-17 14:42:38,233 - 12679 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-07-17 14:42:38,233 - 12679 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-17 14:42:38,233 - 12679 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (2737540, 2737541, 2737542, 2737543, 2737544, 2737545, 2737546, 2737547, 2737548, 2737549, 2737550, 2737551, 2737552, 2737553, 2737554, 2737555, 2737556, 2737557, 2737558, 2737559, 2737560, 2737561, 2737562, 2737563, 2737564, 2737565, 2737566, 2737567, 2737568, 2737569, 2737570, 2737571, 2737572, 2737573, 2737574, 2737575, 2737576, 2737577, 2737578, 2737579, 2737580, 2737581, 2737582, 2737583, 2737584, 2737585, 2737586, 2737587, 2737588, 2737589, 2737590, 2737591, 2737592, 2737593, 2737594, 2737595, 2737596, 2737597, 2737598, 2737599, 2737600, 2737601, 2737602, 2737603, 2737604, 2737605, 2737606, 2737607, 2737608, 2737609, 2737610, 2737611, 2737612, 2737613, 2737614, 2737615, 2737616, 2737617, 2737618, 2737619, 2737620, 2737621, 2737622) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 14:42:38,534 - 12679 - src.utils.log - INFO - βœ… Fetched 83 rows - __SPLIT__ 2026-07-17 14:42:38,535 - 12679 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationCrews: 84 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 14:42:38,837 - 12679 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 84) into ServiceCore.WorkOrderAutoGenerationCrews - __SPLIT__ 2026-07-17 14:42:39,899 - 12679 - src.utils.log - INFO - βœ… All 84 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationCrews in 1 batches - __SPLIT__ 2026-07-17 14:42:39,900 - 12679 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-07-17 14:42:39,900 - 12679 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-17 14:42:39,900 - 12679 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 2737540 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 14:42:40,194 - 12679 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 14:42:40,195 - 12679 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 14:42:40,499 - 12679 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-07-17 14:42:41,541 - 12679 - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-07-17 14:42:41,541 - 12679 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-07-17 14:42:41,541 - 12679 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-17 14:42:41,542 - 12679 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (2737541, 2737542, 2737543, 2737544, 2737545, 2737546, 2737547, 2737548, 2737549, 2737550, 2737551, 2737552, 2737553, 2737554, 2737555, 2737556, 2737557, 2737558, 2737559, 2737560, 2737561, 2737562, 2737563, 2737564, 2737565, 2737566, 2737567, 2737568, 2737569, 2737570, 2737571, 2737572, 2737573, 2737574, 2737575, 2737576, 2737577, 2737578, 2737579, 2737580, 2737581, 2737582, 2737583, 2737584, 2737585, 2737586, 2737587, 2737588, 2737589, 2737590, 2737591, 2737592, 2737593, 2737594, 2737595, 2737596, 2737597, 2737598, 2737599, 2737600, 2737601, 2737602, 2737603, 2737604, 2737605, 2737606, 2737607, 2737608, 2737609, 2737610, 2737611, 2737612, 2737613, 2737614, 2737615, 2737616, 2737617, 2737618, 2737619, 2737620, 2737621, 2737622) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 14:42:41,842 - 12679 - src.utils.log - INFO - βœ… Fetched 82 rows - __SPLIT__ 2026-07-17 14:42:41,843 - 12679 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 82 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 14:42:42,147 - 12679 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 82) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-07-17 14:42:43,232 - 12679 - src.utils.log - INFO - βœ… All 82 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-07-17 14:42:43,233 - 12679 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-07-17 14:42:43,233 - 12679 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 12679;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 14:42:43,526 - 12679 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-17 14:42:43,527 - 12679 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-07-17 14:42:43,527 - 12679 - src.utils.log - INFO - Time took to perform operation: 21.37 - __SPLIT__ 2026-07-17 16:34:50,605 - 124764 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=124764 - __SPLIT__ 2026-07-17 16:34:50,606 - 124764 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 124764 - __SPLIT__ 2026-07-17 16:34:50,607 - 124764 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-17 16:34:50,607 - 124764 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 16:34:52,586 - 124764 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 16:34:52,586 - 124764 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-07-17 16:34:52,587 - 124764 - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-07-17 16:34:52,587 - 124764 - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-07-17 16:34:52,587 - 124764 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 124764;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 16:34:54,937 - 124764 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-17 16:34:54,937 - 124764 - 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 = 124764), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 124764), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 124764 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-07-17 16:34:55,243 - 124764 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 16:34:55,243 - 124764 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 124764;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 16:34:55,505 - 124764 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 16:34:55,508 - 124764 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-07-17 16:34:55,508 - 124764 - 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 = 14640... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 16:34:55,778 - 124764 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 16:34:55,778 - 124764 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-07-17 16:34:55,781 - 124764 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-07-17 16:34:55,781 - 124764 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150668;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 16:34:56,044 - 124764 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 16:34:56,045 - 124764 - 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-07-17 00:00:00' and ServiceDate <= '2027-12-31 00:00:00' and ServiceSetupId = 150668 and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 16:34:56,314 - 124764 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-17 16:34:56,863 - 124764 - src.utils.log - INFO - Generating work orders for setup: 150668 - __SPLIT__ 2026-07-17 16:34:56,941 - 124764 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 11427;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 16:34:57,201 - 124764 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 16:34:57,210 - 124764 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 11427;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 16:34:57,470 - 124764 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 16:34:57,511 - 124764 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-07-17 16:34:57,517 - 124764 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=133 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 16:34:57,777 - 124764 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 16:34:57,779 - 124764 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-07-17 16:34:57,779 - 124764 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-07-17 16:34:57,779 - 124764 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150668 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 16:34:58,125 - 124764 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 16:34:58,125 - 124764 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150668 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 16:34:58,474 - 124764 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 16:34:58,474 - 124764 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150668 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 16:34:58,744 - 124764 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 16:34:58,745 - 124764 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150668 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 16:34:59,098 - 124764 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 16:34:59,098 - 124764 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150668 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 16:34:59,414 - 124764 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 16:34:59,414 - 124764 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150668 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 16:34:59,692 - 124764 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 16:34:59,692 - 124764 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150668 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 16:34:59,953 - 124764 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 16:34:59,953 - 124764 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150668 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 16:35:00,502 - 124764 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 16:35:00,502 - 124764 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-17 16:35:00,502 - 124764 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 11 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 16:35:00,799 - 124764 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 11) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-07-17 16:35:02,197 - 124764 - src.utils.log - INFO - βœ… All 11 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-07-17 16:35:02,197 - 124764 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 11 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-07-16 14:51:40.420' and ServiceSetupId = 150668... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 16:35:02,519 - 124764 - src.utils.log - INFO - βœ… Fetched 11 rows - __SPLIT__ 2026-07-17 16:35:02,519 - 124764 - src.utils.log - INFO - Id's of work order inserted to DB: [3682046 3682047 3682048 3682049 3682050 3682051 3682052 3682053 3682054 3682055 3682056] - __SPLIT__ 2026-07-17 16:35:02,519 - 124764 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150668;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 16:35:02,783 - 124764 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 16:35:02,783 - 124764 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-07-17 16:35:02,783 - 124764 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId = 150668... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 16:35:03,047 - 124764 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 16:35:03,048 - 124764 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId = 150668... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 16:35:03,308 - 124764 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 16:35:03,313 - 124764 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId = 150668... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 16:35:03,580 - 124764 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 16:35:03,581 - 124764 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId = 150668... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 16:35:03,841 - 124764 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 16:35:03,842 - 124764 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId = 150668... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 16:35:04,102 - 124764 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 16:35:04,103 - 124764 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId = 150668;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 16:35:04,363 - 124764 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 16:35:04,364 - 124764 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId = 150668;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 16:35:04,624 - 124764 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-17 16:35:04,625 - 124764 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId = 150668;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 16:35:04,995 - 124764 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 16:35:04,996 - 124764 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId = 150668;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 16:35:05,258 - 124764 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 16:35:05,270 - 124764 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-07-17 16:35:05,271 - 124764 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-07-17 16:35:05,271 - 124764 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-07-17 16:35:05,271 - 124764 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.CommunicationPreferencesServiceReportNotification: - __SPLIT__ 2026-07-17 16:35:05,271 - 124764 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-07-17 16:35:05,271 - 124764 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-17 16:35:05,271 - 124764 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ('3682052', '3682051', '3682053', '3682046', '3682050', '3682047', '3682048', '3682049', '3682056', '3682055', '3682054') ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 16:35:05,533 - 124764 - src.utils.log - INFO - βœ… Fetched 11 rows - __SPLIT__ 2026-07-17 16:35:05,534 - 124764 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.SetupAutoGenerationSourceMapping: 0 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 16:35:05,797 - 124764 - src.utils.log - INFO - βœ… All 0 rows inserted successfully into ServiceCore.SetupAutoGenerationSourceMapping in 0 batches - __SPLIT__ 2026-07-17 16:35:05,797 - 124764 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-07-17 16:35:05,797 - 124764 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationAppliedDiscount: - __SPLIT__ 2026-07-17 16:35:05,797 - 124764 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-07-17 16:35:05,797 - 124764 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-17 16:35:05,798 - 124764 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3682048, 3682049, 3682050, 3682051, 3682052, 3682053, 3682054, 3682055, 3682056, 3682046, 3682047) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 16:35:06,061 - 124764 - src.utils.log - INFO - βœ… Fetched 11 rows - __SPLIT__ 2026-07-17 16:35:06,061 - 124764 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.SubWorkOrderAutoGeneration: 11 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 16:35:06,337 - 124764 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 11) into ServiceCore.SubWorkOrderAutoGeneration - __SPLIT__ 2026-07-17 16:35:07,429 - 124764 - src.utils.log - INFO - βœ… All 11 rows inserted successfully into ServiceCore.SubWorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-07-17 16:35:07,429 - 124764 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-07-17 16:35:07,429 - 124764 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: - __SPLIT__ 2026-07-17 16:35:07,429 - 124764 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-07-17 16:35:07,429 - 124764 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: - __SPLIT__ 2026-07-17 16:35:07,429 - 124764 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-07-17 16:35:07,430 - 124764 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCrews: - __SPLIT__ 2026-07-17 16:35:07,430 - 124764 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-07-17 16:35:07,430 - 124764 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationServices: - __SPLIT__ 2026-07-17 16:35:07,430 - 124764 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-07-17 16:35:07,430 - 124764 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-17 16:35:07,430 - 124764 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3682048, 3682049, 3682050, 3682051, 3682052, 3682053, 3682054, 3682055, 3682056, 3682046, 3682047) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 16:35:07,690 - 124764 - src.utils.log - INFO - βœ… Fetched 11 rows - __SPLIT__ 2026-07-17 16:35:07,691 - 124764 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 11 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 16:35:07,960 - 124764 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 11) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-07-17 16:35:08,899 - 124764 - src.utils.log - INFO - βœ… All 11 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-07-17 16:35:08,899 - 124764 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-07-17 16:35:08,899 - 124764 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 124764;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 16:35:09,161 - 124764 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-17 16:35:09,161 - 124764 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-07-17 16:35:09,161 - 124764 - src.utils.log - INFO - Time took to perform operation: 18.55 - __SPLIT__ 2026-07-17 16:35:45,856 - [124764] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[3682056] user_id=43135 company_id=133 project_id=[124764] publish_all=False - __SPLIT__ 2026-07-17 16:35:45,857 - [124764] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[3682056] user_id=43135 company_id=133 project_id=[124764] publish_all=False - __SPLIT__ 2026-07-17 16:35:45,857 - [124764] - src.utils.log - INFO - Sequential Work order publish in progress for GenerateWorkOrderHistoryId: [124764] - __SPLIT__ 2026-07-17 16:35:45,858 - [124764] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-17 16:35:45,858 - [124764] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 16:35:47,814 - [124764] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 16:35:47,814 - [124764] - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-07-17 16:35:47,815 - [124764] - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-07-17 16:35:47,815 - [124764] - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-07-17 16:35:47,815 - [124764] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'InProgress' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124764;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 16:35:49,669 - [124764] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-17 16:35:49,670 - [124764] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId = 3682056... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 16:35:49,938 - [124764] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 16:35:49,939 - [124764] - src.utils.log - INFO - Inside get_work_order_table - __SPLIT__ 2026-07-17 16:35:49,939 - [124764] - 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 = 150668 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 16:35:50,214 - [124764] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 16:35:50,214 - [124764] - 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 = 150668 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 16:35:50,489 - [124764] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 16:35:50,489 - [124764] - 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 = 150668 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 16:35:50,766 - [124764] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 16:35:50,770 - [124764] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder,BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 16:35:51,034 - [124764] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 16:35:51,035 - [124764] - 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-07-17 16:35:51,299 - [124764] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-17 16:35:51,300 - [124764] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder, BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 16:35:51,564 - [124764] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 16:35:51,564 - [124764] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 1 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 133 AND EnitityNumberType = 'WorkOrder'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 16:35:51,831 - [124764] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 16:35:51,831 - [124764] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 1 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 133 AND EnitityNumberType = 'Invoice'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 16:35:52,098 - [124764] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 16:35:52,103 - [124764] - 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 = 150668... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 16:35:52,374 - [124764] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 16:35:52,376 - [124764] - src.utils.log - INFO - πŸ” Fetching data: SELECT x.CompanyId FROM CRM.CompanyMaster x WHERE CompanyKey = 'abcdallas';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 16:35:52,640 - [124764] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 16:35:52,640 - [124764] - src.utils.log - INFO - πŸ” Fetching data: SELECT CollectionStatus,IsHold,AccountNo FROM CRM.Account a WHERE a.AccountNo = '15001' and a.CompanyId = 121;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 16:35:52,905 - [124764] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 16:35:52,907 - [124764] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderNo FROM ServiceCore.WorkOrder WHERE WorkOrderNo = '1427768' AND CompanyId = 133 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 16:35:53,172 - [124764] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 16:35:53,172 - [124764] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrder (skip triggers): 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 16:35:53,604 - [124764] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrder (triggers skipped) - __SPLIT__ 2026-07-17 16:35:54,554 - [124764] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrder in 1 batches (triggers skipped) - __SPLIT__ 2026-07-17 16:35:54,686 - [124764] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-07-17 16:35:54,688 - [124764] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkorderId, WorkOrderNo FROM ServiceCore.WorkOrder wo WHERE wo.WorkOrderNo = '1427768' AND wo.AccountNumber = '15001' AND wo.CompanyId = 133 ... (Thread: ThreadPoolExecutor-28_0) - __SPLIT__ 2026-07-17 16:35:54,953 - [124764] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 16:35:54,954 - [124764] - src.utils.log - INFO - Sequential fetching temp table records - __SPLIT__ 2026-07-17 16:35:54,954 - [124764] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationServices woag WHERE woag.WorkOrderAutoGenerationId = 3682056... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 16:35:55,258 - [124764] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 16:35:55,259 - [124764] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SubWorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId = 3682056... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 16:35:55,526 - [124764] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 16:35:55,527 - [124764] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationCrews woag WHERE woag.WorkOrderAutoGenerationId = 3682056... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 16:35:55,808 - [124764] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 16:35:55,809 - [124764] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationSalesPersonCommission woag WHERE woag.WorkOrderAutoGenerationId = 3682056... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 16:35:56,073 - [124764] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 16:35:56,074 - [124764] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupAutoGenerationSourceMapping woag WHERE woag.WorkOrderAutoGenerationId = 3682056... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 16:35:56,339 - [124764] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 16:35:56,340 - [124764] - 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 = 3682056... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 16:35:56,628 - [124764] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 16:35:56,628 - [124764] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from CRM.LeadNote woag WHERE woag.RefId = 3682056 and woag.RefType = 'TempWorkorder';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 16:35:56,896 - [124764] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 16:35:56,897 - [124764] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment woagca WHERE woagca.WorkOrderAutoGenerationId = 3682056;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 16:35:57,161 - [124764] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 16:35:57,164 - [124764] - src.utils.log - INFO - Updating temp tables - __SPLIT__ 2026-07-17 16:35:57,181 - [124764] - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyKey FROM Common.CompanyMaster cm WHERE CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 16:35:57,445 - [124764] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 16:35:57,446 - [124764] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 133 AND EnitityNumberType in ('SubWorkOrder'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 16:35:57,710 - [124764] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 16:35:57,711 - [124764] - src.utils.log - INFO - πŸ“ Executing: UPDATE Common.GenerateNumberConfig SET NextNumber = '22858' WHERE CompanyId = 133 AND EnitityNumberType in ('SubWorkOrder');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 16:35:57,978 - [124764] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-17 16:35:57,982 - [124764] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-17 16:35:57,982 - [124764] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishHistory: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 16:35:58,272 - [124764] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderAutoGenerationPublishHistory - __SPLIT__ 2026-07-17 16:35:59,214 - [124764] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishHistory in 1 batches - __SPLIT__ 2026-07-17 16:35:59,215 - [124764] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationPublishHistoryId, WorkOrderNo, ServiceSetupId FROM ServiceCore.WorkOrderAutoGenerationPublishHistory WHERE ServiceSetupId = 150668 AND WorkOrderNo = '3001363' AND GenerateWorkOrderHistoryId = 124764; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 16:35:59,647 - [124764] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 16:35:59,653 - [124764] - src.utils.log - INFO - Sequential Insertion in work order tables begin - __SPLIT__ 2026-07-17 16:35:59,654 - [124764] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-17 16:35:59,654 - [124764] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderServices: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 16:35:59,927 - [124764] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderServices - __SPLIT__ 2026-07-17 16:36:00,873 - [124764] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderServices in 1 batches - __SPLIT__ 2026-07-17 16:36:00,873 - [124764] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderAppliedDiscount: - __SPLIT__ 2026-07-17 16:36:00,873 - [124764] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderSalesPersonCommission: - __SPLIT__ 2026-07-17 16:36:00,873 - [124764] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderCommissionAdjustment: - __SPLIT__ 2026-07-17 16:36:00,874 - [124764] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderCrew: - __SPLIT__ 2026-07-17 16:36:00,874 - [124764] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkorderSourceMapping: - __SPLIT__ 2026-07-17 16:36:00,874 - [124764] - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-07-17 16:36:00,874 - [124764] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-17 16:36:00,874 - [124764] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishServices: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 16:36:01,148 - [124764] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderAutoGenerationPublishServices - __SPLIT__ 2026-07-17 16:36:02,084 - [124764] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishServices in 1 batches - __SPLIT__ 2026-07-17 16:36:02,084 - [124764] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-17 16:36:02,084 - [124764] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.SubWorkOrder: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 16:36:02,365 - [124764] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.SubWorkOrder - __SPLIT__ 2026-07-17 16:36:03,438 - [124764] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.SubWorkOrder in 1 batches - __SPLIT__ 2026-07-17 16:36:03,439 - [124764] - src.utils.log - INFO - πŸ” Fetching data: Select * From ServiceCore.SubWorkOrder where WorkOrderId = 2158055... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 16:36:03,720 - [124764] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 16:36:03,727 - [124764] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-17 16:36:03,727 - [124764] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.subWorkOrderIssue: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 16:36:03,997 - [124764] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceAuto.subWorkOrderIssue - __SPLIT__ 2026-07-17 16:36:04,933 - [124764] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceAuto.subWorkOrderIssue in 1 batches - __SPLIT__ 2026-07-17 16:36:04,934 - [124764] - src.utils.log - INFO - πŸ” Fetching data: Select SubWorkOrderIssueId, SubWorkOrderId, ModifiedBy From ServiceAuto.subWorkOrderIssue where SubWorkOrderId = 230457 and ModifiedBy = 999999999 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 16:36:05,201 - [124764] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 16:36:05,202 - [124764] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceAuto.subWorkOrderIssue SET ModifiedBy = 'abcdallas' WHERE ModifiedBy = '999999999'; ... (Thread: ThreadPoolExecutor-29_0) - __SPLIT__ 2026-07-17 16:36:05,504 - [124764] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-17 16:36:05,511 - [124764] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-17 16:36:05,512 - [124764] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.subWOIssueRepair: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 16:36:05,791 - [124764] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceAuto.subWOIssueRepair - __SPLIT__ 2026-07-17 16:36:06,598 - [124764] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceAuto.subWOIssueRepair in 1 batches - __SPLIT__ 2026-07-17 16:36:06,599 - [124764] - src.utils.log - INFO - πŸ” Fetching data: Select IssueRepairId, ModifiedBy From ServiceAuto.subWOIssueRepair where SubWorkOrderIssueId = 192640... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 16:36:06,865 - [124764] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 16:36:06,866 - [124764] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceAuto.subWOIssueRepair SET ModifiedBy = 'abcdallas' WHERE ModifiedBy = '0___TMP___192640' AND CreatedDate = '2026-07-17 12:36:03.725'; ... (Thread: ThreadPoolExecutor-30_0) - __SPLIT__ 2026-07-17 16:36:07,148 - [124764] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-17 16:36:07,155 - [124764] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-17 16:36:07,155 - [124764] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.SubWOIssueRepairLabor: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 16:36:07,426 - [124764] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceAuto.SubWOIssueRepairLabor - __SPLIT__ 2026-07-17 16:36:08,367 - [124764] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceAuto.SubWOIssueRepairLabor in 1 batches - __SPLIT__ 2026-07-17 16:36:08,368 - [124764] - 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 = 150668... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 16:36:08,632 - [124764] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 16:36:08,639 - [124764] - src.utils.log - INFO - Size of Transaction: 1 - __SPLIT__ 2026-07-17 16:36:08,640 - [124764] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 16:36:09,043 - [124764] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-07-17 16:36:09,977 - [124764] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-07-17 16:36:10,109 - [124764] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-07-17 16:36:10,110 - [124764] - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionId, ModifiedBy, TransactionDate as InvoiceDate from Billing.[Transaction] t WHERE t.ModifiedBy = 12345678910 and t.CompanyId = 133 AND t.TransactionType ='Invoice' AND t.CreatedDate = '2026-07-17 12:36:08.634';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 16:36:10,488 - [124764] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 16:36:10,490 - [124764] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150668;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 16:36:10,757 - [124764] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 16:36:10,769 - [124764] - src.utils.log - INFO - πŸ“ Executing: UPDATE Billing.[Transaction] SET ModifiedBy = NULL WHERE ModifiedBy = 12345678910 AND CreatedDate = '2026-07-17 12:36:08.634'; ... (Thread: ThreadPoolExecutor-31_0) - __SPLIT__ 2026-07-17 16:36:11,662 - [124764] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-17 16:36:11,667 - [124764] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-17 16:36:11,667 - [124764] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 16:36:11,941 - [124764] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into Billing.Invoice - __SPLIT__ 2026-07-17 16:36:12,879 - [124764] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-07-17 16:36:12,880 - [124764] - src.utils.log - INFO - πŸ” Fetching data: SELECT InvoiceId, WorkOrderNo FROM Billing.Invoice i WHERE i.WorkOrderNo = '1427768'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 16:36:13,676 - [124764] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 16:36:13,685 - [124764] - 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 = 150668 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 16:36:13,954 - [124764] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 16:36:13,954 - [124764] - 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 = 150668 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 16:36:14,222 - [124764] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 16:36:14,222 - [124764] - 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 = 150668 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 16:36:14,491 - [124764] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 16:36:14,491 - [124764] - 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 = 150668 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 16:36:14,759 - [124764] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 16:36:14,771 - [124764] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150668;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 16:36:15,039 - [124764] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-17 16:36:15,045 - [124764] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId, AppliedDiscountAmt as AppliedDiscountAmount,IsActive ,ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 150668;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 16:36:15,309 - [124764] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 16:36:15,312 - [124764] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId,IsActive,DiscountAmount, IsDiscountPercent,DiscountPercent,DiscountDescription , ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 150668;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 16:36:15,577 - [124764] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 16:36:15,577 - [124764] - src.utils.log - INFO - Sequential Insertion in invoice tables begin - __SPLIT__ 2026-07-17 16:36:15,578 - [124764] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.AccountDiscountSetup: - __SPLIT__ 2026-07-17 16:36:15,578 - [124764] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-17 16:36:15,578 - [124764] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceCharges: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 16:36:15,851 - [124764] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into Billing.InvoiceCharges - __SPLIT__ 2026-07-17 16:36:16,785 - [124764] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into Billing.InvoiceCharges in 1 batches - __SPLIT__ 2026-07-17 16:36:16,785 - [124764] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.DiscountApplied: - __SPLIT__ 2026-07-17 16:36:16,785 - [124764] - src.utils.log - INFO - Invoice Publish Done - __SPLIT__ 2026-07-17 16:36:16,786 - [124764] - src.utils.log - INFO - Updating Next GenerationDate - __SPLIT__ 2026-07-17 16:36:16,786 - [124764] - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, MAX(NextWorkOrderGenerationDate) AS MaxNextWorkOrderGeneration FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 124764 GROUP BY ServiceSetupId; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 16:36:17,053 - [124764] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-17 16:36:17,058 - [124764] - src.utils.log - INFO - πŸ”„ Updating next gen date sequentially: inside update_next_workorder_generation - __SPLIT__ 2026-07-17 16:36:17,191 - [124764] - src.utils.log - INFO - πŸ›  Creating temp table #tbl_b077188f8b - __SPLIT__ 2026-07-17 16:36:17,458 - [124764] - src.utils.log - INFO - πŸ“Œ Bulk inserting 1 rows into #tbl_b077188f8b - __SPLIT__ 2026-07-17 16:36:17,723 - [124764] - src.utils.log - INFO - πŸ” Running MERGE update to apply changes - __SPLIT__ 2026-07-17 16:36:17,864 - [124764] - src.utils.log - INFO - βœ” SQL reported affected rows: 1 - __SPLIT__ 2026-07-17 16:36:18,001 - [124764] - src.utils.log - INFO - πŸ” Verified successfully updated 1 rows via #tbl_b077188f8b - __SPLIT__ 2026-07-17 16:36:18,001 - [124764] - src.utils.log - INFO - πŸŽ‰ Successfully updated NextGenerationDate using temp table #tbl_b077188f8b - __SPLIT__ 2026-07-17 16:36:18,002 - [124764] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 124764 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 16:36:18,266 - [124764] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 16:36:18,267 - [124764] - src.utils.log - INFO - Sequential deletion from temp tables begin - __SPLIT__ 2026-07-17 16:36:18,267 - [124764] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId = 3682056 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 16:36:18,664 - [124764] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 16:36:18,664 - [124764] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId = 3682056 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 16:36:19,008 - [124764] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 16:36:19,008 - [124764] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId = 3682056 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 16:36:19,273 - [124764] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 16:36:19,274 - [124764] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId = 3682056 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 16:36:19,625 - [124764] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 16:36:19,625 - [124764] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId = 3682056 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 16:36:19,896 - [124764] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 16:36:19,897 - [124764] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 3682056 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 16:36:20,165 - [124764] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 16:36:20,166 - [124764] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId = 3682056 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 16:36:20,430 - [124764] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 16:36:20,430 - [124764] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 3682056 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 16:36:20,741 - [124764] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-17 16:36:20,741 - [124764] - src.utils.log - INFO - Work order published ids: (3682056,) - __SPLIT__ 2026-07-17 16:36:20,741 - [124764] - src.utils.log - INFO - Time took to perform operation in publishing [124764]: 34.88 - __SPLIT__ 2026-07-17 16:36:20,742 - [124764] - src.utils.log - INFO - Publish Completed for GenerateWorkOrderHistoryId: [124764] - __SPLIT__ 2026-07-17 16:36:20,742 - [124764] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-07-17 12:36:20.741' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124764;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-17 16:36:21,007 - [124764] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-20 08:40:36,245 - 124766 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=124766 - __SPLIT__ 2026-07-20 08:40:36,475 - 124766 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 124766 - __SPLIT__ 2026-07-20 08:40:36,548 - 124766 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-20 08:40:36,627 - 124766 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 08:40:38,666 - 124766 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 08:40:38,737 - 124766 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-07-20 08:40:38,810 - 124766 - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-07-20 08:40:38,883 - 124766 - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-07-20 08:40:38,954 - 124766 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 124766;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 08:40:40,876 - 124766 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-20 08:40:40,945 - 124766 - 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 = 124766), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 124766), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 124766 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-07-20 08:40:41,322 - 124766 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 08:40:41,388 - 124766 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 124766;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 08:40:41,722 - 124766 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 08:40:41,797 - 124766 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-07-20 08:40:41,875 - 124766 - 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 = 14842... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 08:40:42,221 - 124766 - src.utils.log - INFO - βœ… Fetched 60 rows - __SPLIT__ 2026-07-20 08:40:42,291 - 124766 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-07-20 08:40:42,361 - 124766 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-07-20 08:40:42,429 - 124766 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150692;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 08:40:42,813 - 124766 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 08:40:42,877 - 124766 - 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-07-20 00:00:00' and ServiceDate <= '2026-08-31 00:00:00' and ServiceSetupId = 150692 and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 08:40:43,214 - 124766 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 08:40:43,831 - 124766 - src.utils.log - INFO - Generating work orders for setup: 150692 - __SPLIT__ 2026-07-20 08:40:43,928 - 124766 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 11436;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 08:40:44,254 - 124766 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 08:40:44,359 - 124766 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-07-20 08:40:44,427 - 124766 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=133 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 08:40:44,753 - 124766 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 08:40:44,823 - 124766 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-07-20 08:40:44,891 - 124766 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-07-20 08:40:44,957 - 124766 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150692 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 08:40:45,338 - 124766 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 08:40:45,401 - 124766 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150692 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 08:40:45,773 - 124766 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 08:40:45,842 - 124766 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150692 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 08:40:46,176 - 124766 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 08:40:46,256 - 124766 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150692 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 08:40:46,629 - 124766 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 08:40:46,699 - 124766 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150692 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 08:40:47,127 - 124766 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 08:40:47,202 - 124766 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150692 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 08:40:47,546 - 124766 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 08:40:47,618 - 124766 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150692 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 08:40:47,958 - 124766 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 08:40:48,034 - 124766 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150692 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 08:40:48,523 - 124766 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 08:40:48,588 - 124766 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 08:40:48,661 - 124766 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 5 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 08:40:49,032 - 124766 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 5) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-07-20 08:40:50,201 - 124766 - src.utils.log - INFO - βœ… All 5 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-07-20 08:40:50,272 - 124766 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 5 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-07-16 14:51:40.778' and ServiceSetupId = 150692... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 08:40:50,649 - 124766 - src.utils.log - INFO - βœ… Fetched 5 rows - __SPLIT__ 2026-07-20 08:40:50,717 - 124766 - src.utils.log - INFO - Id's of work order inserted to DB: [3683040 3683041 3683042 3683043 3683044] - __SPLIT__ 2026-07-20 08:40:50,792 - 124766 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150692;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 08:40:51,126 - 124766 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 08:40:51,196 - 124766 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-07-20 08:40:51,263 - 124766 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId = 150692... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 08:40:51,602 - 124766 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 08:40:51,666 - 124766 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId = 150692... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 08:40:52,046 - 124766 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 08:40:52,121 - 124766 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId = 150692... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 08:40:52,462 - 124766 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 08:40:52,529 - 124766 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId = 150692... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 08:40:52,857 - 124766 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 08:40:52,922 - 124766 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId = 150692... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 08:40:53,257 - 124766 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 08:40:53,317 - 124766 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId = 150692;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 08:40:53,643 - 124766 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 08:40:53,706 - 124766 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId = 150692;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 08:40:54,036 - 124766 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 08:40:54,107 - 124766 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId = 150692;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 08:40:54,535 - 124766 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 08:40:54,602 - 124766 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId = 150692;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 08:40:54,932 - 124766 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 08:40:55,019 - 124766 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-07-20 08:40:55,088 - 124766 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-07-20 08:40:55,156 - 124766 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-07-20 08:40:55,218 - 124766 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.CommunicationPreferencesServiceReportNotification: - __SPLIT__ 2026-07-20 08:40:55,290 - 124766 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-07-20 08:40:55,410 - 124766 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SetupAutoGenerationSourceMapping: - __SPLIT__ 2026-07-20 08:40:55,480 - 124766 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-07-20 08:40:55,554 - 124766 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationAppliedDiscount: - __SPLIT__ 2026-07-20 08:40:55,627 - 124766 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-07-20 08:40:55,695 - 124766 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SubWorkOrderAutoGeneration: - __SPLIT__ 2026-07-20 08:40:55,765 - 124766 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-07-20 08:40:55,844 - 124766 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: - __SPLIT__ 2026-07-20 08:40:55,936 - 124766 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-07-20 08:40:56,008 - 124766 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: - __SPLIT__ 2026-07-20 08:40:56,076 - 124766 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-07-20 08:40:56,146 - 124766 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 08:40:56,218 - 124766 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 3683040 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 08:40:56,553 - 124766 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 08:40:56,627 - 124766 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationCrews: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 08:40:56,974 - 124766 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderAutoGenerationCrews - __SPLIT__ 2026-07-20 08:40:57,977 - 124766 - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationCrews in 1 batches - __SPLIT__ 2026-07-20 08:40:58,050 - 124766 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-07-20 08:40:58,118 - 124766 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 08:40:58,196 - 124766 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 3683040 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 08:40:58,534 - 124766 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 08:40:58,659 - 124766 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 08:40:59,000 - 124766 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-07-20 08:41:00,016 - 124766 - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-07-20 08:41:00,133 - 124766 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-07-20 08:41:00,205 - 124766 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 08:41:00,279 - 124766 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3683041, 3683042, 3683043, 3683044) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 08:41:00,617 - 124766 - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-07-20 08:41:00,687 - 124766 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 4 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 08:41:01,022 - 124766 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 4) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-07-20 08:41:02,033 - 124766 - src.utils.log - INFO - βœ… All 4 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-07-20 08:41:02,126 - 124766 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-07-20 08:41:02,201 - 124766 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 124766;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 08:41:02,535 - 124766 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-20 08:41:02,602 - 124766 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-07-20 08:41:02,679 - 124766 - src.utils.log - INFO - Time took to perform operation: 26.05 - __SPLIT__ 2026-07-20 09:02:45,452 - 124767 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=124767 - __SPLIT__ 2026-07-20 09:02:45,674 - 124767 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 124767 - __SPLIT__ 2026-07-20 09:02:45,748 - 124767 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-20 09:02:45,818 - 124767 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:02:47,980 - 124767 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 09:02:48,051 - 124767 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-07-20 09:02:48,118 - 124767 - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-07-20 09:02:48,197 - 124767 - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-07-20 09:02:48,265 - 124767 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 124767;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:02:50,187 - 124767 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-20 09:02:50,260 - 124767 - 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 = 124767), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 124767), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 124767 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-07-20 09:02:50,631 - 124767 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 09:02:50,702 - 124767 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 124767;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:02:51,036 - 124767 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 09:02:51,110 - 124767 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Failed', WoGenErrorInfo ='No setups found in given range', WorkOrderStatusDateTime = '2026-07-20 05:02:51.110' WHERE GenerateWorkOrderHistoryId = 124767;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:02:51,448 - 124767 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-20 09:02:51,515 - 124767 - src.utils.log - INFO - No Setup Found Error:No setups found for GenerateWorkOrderHistoryid: 124767 - __SPLIT__ 2026-07-20 09:03:15,914 - 124768 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=124768 - __SPLIT__ 2026-07-20 09:03:16,133 - 124768 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 124768 - __SPLIT__ 2026-07-20 09:03:16,204 - 124768 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-20 09:03:16,276 - 124768 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:03:18,439 - 124768 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 09:03:18,513 - 124768 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-07-20 09:03:18,581 - 124768 - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-07-20 09:03:18,657 - 124768 - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-07-20 09:03:18,731 - 124768 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 124768;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:03:20,642 - 124768 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-20 09:03:20,716 - 124768 - 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 = 124768), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 124768), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 124768 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-07-20 09:03:21,116 - 124768 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 09:03:21,186 - 124768 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 124768;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:03:21,524 - 124768 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 09:03:21,601 - 124768 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-07-20 09:03:21,675 - 124768 - 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 = 14842... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:03:22,023 - 124768 - src.utils.log - INFO - βœ… Fetched 60 rows - __SPLIT__ 2026-07-20 09:03:22,098 - 124768 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-07-20 09:03:22,172 - 124768 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-07-20 09:03:22,246 - 124768 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150692;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:03:22,636 - 124768 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 09:03:22,696 - 124768 - 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-07-20 00:00:00' and ServiceDate <= '2026-12-31 00:00:00' and ServiceSetupId = 150692 and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:03:23,019 - 124768 - src.utils.log - INFO - βœ… Fetched 5 rows - __SPLIT__ 2026-07-20 09:03:23,634 - 124768 - src.utils.log - INFO - Generating work orders for setup: 150692 - __SPLIT__ 2026-07-20 09:03:23,818 - 124768 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-07-20 09:03:23,880 - 124768 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=133 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:03:24,197 - 124768 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 09:03:24,260 - 124768 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-07-20 09:03:24,318 - 124768 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-07-20 09:03:24,378 - 124768 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150692 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:03:24,746 - 124768 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 09:03:24,803 - 124768 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150692 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:03:25,169 - 124768 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 09:03:25,227 - 124768 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150692 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:03:25,557 - 124768 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 09:03:25,621 - 124768 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150692 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:03:25,992 - 124768 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 09:03:26,052 - 124768 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150692 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:03:26,420 - 124768 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 09:03:26,482 - 124768 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150692 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:03:26,870 - 124768 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 09:03:26,931 - 124768 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150692 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:03:27,248 - 124768 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 09:03:27,305 - 124768 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150692 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:03:27,738 - 124768 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 09:03:27,799 - 124768 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 09:03:27,851 - 124768 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 17 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:03:28,205 - 124768 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 17) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-07-20 09:03:29,844 - 124768 - src.utils.log - INFO - βœ… All 17 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-07-20 09:03:29,901 - 124768 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 17 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-07-16 14:51:40.585' and ServiceSetupId = 150692... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:03:30,259 - 124768 - src.utils.log - INFO - βœ… Fetched 17 rows - __SPLIT__ 2026-07-20 09:03:30,314 - 124768 - src.utils.log - INFO - Id's of work order inserted to DB: [3683045 3683046 3683047 3683048 3683049 3683050 3683051 3683052 3683053 3683054 3683055 3683056 3683057 3683058 3683059 3683060 3683061] - __SPLIT__ 2026-07-20 09:03:30,373 - 124768 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150692;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:03:30,694 - 124768 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 09:03:30,749 - 124768 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-07-20 09:03:30,809 - 124768 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId = 150692... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:03:31,128 - 124768 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 09:03:31,184 - 124768 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId = 150692... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:03:31,505 - 124768 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 09:03:31,566 - 124768 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId = 150692... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:03:31,952 - 124768 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 09:03:32,019 - 124768 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId = 150692... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:03:32,356 - 124768 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 09:03:32,497 - 124768 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId = 150692... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:03:32,831 - 124768 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 09:03:32,912 - 124768 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId = 150692;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:03:33,244 - 124768 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 09:03:33,318 - 124768 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId = 150692;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:03:33,646 - 124768 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 09:03:33,717 - 124768 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId = 150692;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:03:34,151 - 124768 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 09:03:34,225 - 124768 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId = 150692;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:03:34,562 - 124768 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 09:03:34,642 - 124768 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-07-20 09:03:34,721 - 124768 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-07-20 09:03:34,797 - 124768 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-07-20 09:03:34,869 - 124768 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.CommunicationPreferencesServiceReportNotification: - __SPLIT__ 2026-07-20 09:03:34,939 - 124768 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-07-20 09:03:35,013 - 124768 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SetupAutoGenerationSourceMapping: - __SPLIT__ 2026-07-20 09:03:35,092 - 124768 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-07-20 09:03:35,212 - 124768 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationAppliedDiscount: - __SPLIT__ 2026-07-20 09:03:35,277 - 124768 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-07-20 09:03:35,336 - 124768 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SubWorkOrderAutoGeneration: - __SPLIT__ 2026-07-20 09:03:35,402 - 124768 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-07-20 09:03:35,471 - 124768 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: - __SPLIT__ 2026-07-20 09:03:35,541 - 124768 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-07-20 09:03:35,607 - 124768 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: - __SPLIT__ 2026-07-20 09:03:35,673 - 124768 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-07-20 09:03:35,743 - 124768 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCrews: - __SPLIT__ 2026-07-20 09:03:35,812 - 124768 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-07-20 09:03:35,871 - 124768 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationServices: - __SPLIT__ 2026-07-20 09:03:35,929 - 124768 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-07-20 09:03:35,997 - 124768 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 09:03:36,064 - 124768 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3683045, 3683046, 3683047, 3683048, 3683049, 3683050, 3683051, 3683052, 3683053, 3683054, 3683055, 3683056, 3683057, 3683058, 3683059, 3683060, 3683061) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:03:36,387 - 124768 - src.utils.log - INFO - βœ… Fetched 17 rows - __SPLIT__ 2026-07-20 09:03:36,460 - 124768 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 17 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:03:36,794 - 124768 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 17) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-07-20 09:03:37,936 - 124768 - src.utils.log - INFO - βœ… All 17 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-07-20 09:03:37,998 - 124768 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-07-20 09:03:38,066 - 124768 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 124768;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:03:38,443 - 124768 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-20 09:03:38,504 - 124768 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-07-20 09:03:38,569 - 124768 - src.utils.log - INFO - Time took to perform operation: 22.3 - __SPLIT__ 2026-07-20 09:07:16,875 - [124768] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[3683045] user_id=43135 company_id=133 project_id=[124768] publish_all=False - __SPLIT__ 2026-07-20 09:07:16,984 - [124768] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[3683045] user_id=43135 company_id=133 project_id=[124768] publish_all=False - __SPLIT__ 2026-07-20 09:07:17,056 - [124768] - src.utils.log - INFO - Sequential Work order publish in progress for GenerateWorkOrderHistoryId: [124768] - __SPLIT__ 2026-07-20 09:07:17,125 - [124768] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-20 09:07:17,194 - [124768] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:07:19,239 - [124768] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 09:07:19,313 - [124768] - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-07-20 09:07:19,379 - [124768] - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-07-20 09:07:19,449 - [124768] - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-07-20 09:07:19,515 - [124768] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'InProgress' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124768;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:07:21,431 - [124768] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-20 09:07:21,504 - [124768] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId = 3683045... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:07:21,836 - [124768] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 09:07:21,912 - [124768] - src.utils.log - INFO - Inside get_work_order_table - __SPLIT__ 2026-07-20 09:07:21,979 - [124768] - 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 = 150692 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:07:22,313 - [124768] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 09:07:22,376 - [124768] - 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 = 150692 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:07:22,705 - [124768] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 09:07:22,775 - [124768] - 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 = 150692 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:07:23,100 - [124768] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 09:07:23,172 - [124768] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder,BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:07:23,553 - [124768] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 09:07:23,625 - [124768] - 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-07-20 09:07:23,958 - [124768] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-20 09:07:24,038 - [124768] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder, BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:07:24,376 - [124768] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 09:07:24,450 - [124768] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 1 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 133 AND EnitityNumberType = 'WorkOrder'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:07:24,788 - [124768] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 09:07:24,859 - [124768] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 1 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 133 AND EnitityNumberType = 'Invoice'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:07:25,195 - [124768] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 09:07:25,269 - [124768] - 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 = 150692... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:07:25,598 - [124768] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 09:07:25,676 - [124768] - src.utils.log - INFO - πŸ” Fetching data: SELECT x.CompanyId FROM CRM.CompanyMaster x WHERE CompanyKey = 'abcdallas';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:07:26,007 - [124768] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 09:07:26,081 - [124768] - src.utils.log - INFO - πŸ” Fetching data: SELECT CollectionStatus,IsHold,AccountNo FROM CRM.Account a WHERE a.AccountNo = '15017' and a.CompanyId = 121;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:07:26,417 - [124768] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 09:07:26,497 - [124768] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderNo FROM ServiceCore.WorkOrder WHERE WorkOrderNo = '1428757' AND CompanyId = 133 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:07:26,828 - [124768] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 09:07:26,898 - [124768] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrder (skip triggers): 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:07:27,396 - [124768] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrder (triggers skipped) - __SPLIT__ 2026-07-20 09:07:28,434 - [124768] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrder in 1 batches (triggers skipped) - __SPLIT__ 2026-07-20 09:07:28,689 - [124768] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-07-20 09:07:28,762 - [124768] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkorderId, WorkOrderNo FROM ServiceCore.WorkOrder wo WHERE wo.WorkOrderNo = '1428757' AND wo.AccountNumber = '15017' AND wo.CompanyId = 133 ... (Thread: ThreadPoolExecutor-32_0) - __SPLIT__ 2026-07-20 09:07:29,097 - [124768] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 09:07:29,166 - [124768] - src.utils.log - INFO - Sequential fetching temp table records - __SPLIT__ 2026-07-20 09:07:29,238 - [124768] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationServices woag WHERE woag.WorkOrderAutoGenerationId = 3683045... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:07:29,598 - [124768] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 09:07:29,687 - [124768] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SubWorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId = 3683045... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:07:30,022 - [124768] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 09:07:30,096 - [124768] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationCrews woag WHERE woag.WorkOrderAutoGenerationId = 3683045... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:07:30,452 - [124768] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 09:07:30,521 - [124768] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationSalesPersonCommission woag WHERE woag.WorkOrderAutoGenerationId = 3683045... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:07:30,854 - [124768] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 09:07:30,922 - [124768] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupAutoGenerationSourceMapping woag WHERE woag.WorkOrderAutoGenerationId = 3683045... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:07:31,253 - [124768] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 09:07:31,327 - [124768] - 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 = 3683045... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:07:31,683 - [124768] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 09:07:31,754 - [124768] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from CRM.LeadNote woag WHERE woag.RefId = 3683045 and woag.RefType = 'TempWorkorder';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:07:32,092 - [124768] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 09:07:32,166 - [124768] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment woagca WHERE woagca.WorkOrderAutoGenerationId = 3683045;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:07:32,499 - [124768] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 09:07:32,616 - [124768] - src.utils.log - INFO - Updating temp tables - __SPLIT__ 2026-07-20 09:07:32,694 - [124768] - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyKey FROM Common.CompanyMaster cm WHERE CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:07:33,023 - [124768] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 09:07:33,093 - [124768] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 133 AND EnitityNumberType in ('SubWorkOrder'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:07:33,427 - [124768] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 09:07:33,501 - [124768] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 09:07:33,572 - [124768] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishHistory: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:07:33,927 - [124768] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderAutoGenerationPublishHistory - __SPLIT__ 2026-07-20 09:07:34,933 - [124768] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishHistory in 1 batches - __SPLIT__ 2026-07-20 09:07:35,005 - [124768] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationPublishHistoryId, WorkOrderNo, ServiceSetupId FROM ServiceCore.WorkOrderAutoGenerationPublishHistory WHERE ServiceSetupId = 150692 AND WorkOrderNo = '6142782' AND GenerateWorkOrderHistoryId = 124768; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:07:35,495 - [124768] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 09:07:35,568 - [124768] - src.utils.log - INFO - Sequential Insertion in work order tables begin - __SPLIT__ 2026-07-20 09:07:35,635 - [124768] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 09:07:35,706 - [124768] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderServices: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:07:36,070 - [124768] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderServices - __SPLIT__ 2026-07-20 09:07:37,076 - [124768] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderServices in 1 batches - __SPLIT__ 2026-07-20 09:07:37,152 - [124768] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderAppliedDiscount: - __SPLIT__ 2026-07-20 09:07:37,223 - [124768] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderSalesPersonCommission: - __SPLIT__ 2026-07-20 09:07:37,293 - [124768] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderCommissionAdjustment: - __SPLIT__ 2026-07-20 09:07:37,364 - [124768] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderCrew: - __SPLIT__ 2026-07-20 09:07:37,483 - [124768] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkorderSourceMapping: - __SPLIT__ 2026-07-20 09:07:37,553 - [124768] - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-07-20 09:07:37,619 - [124768] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 09:07:37,691 - [124768] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishServices: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:07:38,034 - [124768] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderAutoGenerationPublishServices - __SPLIT__ 2026-07-20 09:07:39,041 - [124768] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishServices in 1 batches - __SPLIT__ 2026-07-20 09:07:39,115 - [124768] - 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 = 150692... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:07:39,453 - [124768] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 09:07:39,534 - [124768] - src.utils.log - INFO - Size of Transaction: 1 - __SPLIT__ 2026-07-20 09:07:39,609 - [124768] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:07:40,087 - [124768] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-07-20 09:07:41,085 - [124768] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-07-20 09:07:41,288 - [124768] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-07-20 09:07:41,362 - [124768] - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionId, ModifiedBy, TransactionDate as InvoiceDate from Billing.[Transaction] t WHERE t.ModifiedBy = 12345678910 and t.CompanyId = 133 AND t.TransactionType ='Invoice' AND t.CreatedDate = '2026-07-20 05:07:39.530';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:07:41,798 - [124768] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 09:07:41,875 - [124768] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150692;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:07:42,208 - [124768] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 09:07:42,288 - [124768] - src.utils.log - INFO - πŸ“ Executing: UPDATE Billing.[Transaction] SET ModifiedBy = NULL WHERE ModifiedBy = 12345678910 AND CreatedDate = '2026-07-20 05:07:39.530'; ... (Thread: ThreadPoolExecutor-33_0) - __SPLIT__ 2026-07-20 09:07:43,194 - [124768] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-20 09:07:43,269 - [124768] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 09:07:43,377 - [124768] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:07:43,704 - [124768] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into Billing.Invoice - __SPLIT__ 2026-07-20 09:07:44,692 - [124768] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-07-20 09:07:44,754 - [124768] - src.utils.log - INFO - πŸ” Fetching data: SELECT InvoiceId, WorkOrderNo FROM Billing.Invoice i WHERE i.WorkOrderNo = '1428757'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:07:45,634 - [124768] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 09:07:45,702 - [124768] - 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 = 150692 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:07:46,026 - [124768] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 09:07:46,096 - [124768] - 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 = 150692 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:07:46,420 - [124768] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 09:07:46,484 - [124768] - 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 = 150692 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:07:46,809 - [124768] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 09:07:46,876 - [124768] - 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 = 150692 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:07:47,207 - [124768] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 09:07:47,274 - [124768] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150692;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:07:47,594 - [124768] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 09:07:47,662 - [124768] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId, AppliedDiscountAmt as AppliedDiscountAmount,IsActive ,ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 150692;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:07:47,996 - [124768] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 09:07:48,058 - [124768] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId,IsActive,DiscountAmount, IsDiscountPercent,DiscountPercent,DiscountDescription , ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 150692;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:07:48,390 - [124768] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 09:07:48,452 - [124768] - src.utils.log - INFO - Sequential Insertion in invoice tables begin - __SPLIT__ 2026-07-20 09:07:48,565 - [124768] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.AccountDiscountSetup: - __SPLIT__ 2026-07-20 09:07:48,636 - [124768] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 09:07:48,705 - [124768] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceCharges: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:07:49,035 - [124768] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into Billing.InvoiceCharges - __SPLIT__ 2026-07-20 09:07:50,025 - [124768] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into Billing.InvoiceCharges in 1 batches - __SPLIT__ 2026-07-20 09:07:50,090 - [124768] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.DiscountApplied: - __SPLIT__ 2026-07-20 09:07:50,158 - [124768] - src.utils.log - INFO - Invoice Publish Done - __SPLIT__ 2026-07-20 09:07:50,222 - [124768] - src.utils.log - INFO - Updating Next GenerationDate - __SPLIT__ 2026-07-20 09:07:50,289 - [124768] - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, MAX(NextWorkOrderGenerationDate) AS MaxNextWorkOrderGeneration FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 124768 GROUP BY ServiceSetupId; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:07:50,622 - [124768] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 09:07:50,693 - [124768] - src.utils.log - INFO - πŸ”„ Updating next gen date sequentially: inside update_next_workorder_generation - __SPLIT__ 2026-07-20 09:07:50,892 - [124768] - src.utils.log - INFO - πŸ›  Creating temp table #tbl_96f15956a1 - __SPLIT__ 2026-07-20 09:07:51,219 - [124768] - src.utils.log - INFO - πŸ“Œ Bulk inserting 1 rows into #tbl_96f15956a1 - __SPLIT__ 2026-07-20 09:07:51,545 - [124768] - src.utils.log - INFO - πŸ” Running MERGE update to apply changes - __SPLIT__ 2026-07-20 09:07:51,747 - [124768] - src.utils.log - INFO - βœ” SQL reported affected rows: 1 - __SPLIT__ 2026-07-20 09:07:51,949 - [124768] - src.utils.log - INFO - πŸ” Verified successfully updated 1 rows via #tbl_96f15956a1 - __SPLIT__ 2026-07-20 09:07:52,024 - [124768] - src.utils.log - INFO - πŸŽ‰ Successfully updated NextGenerationDate using temp table #tbl_96f15956a1 - __SPLIT__ 2026-07-20 09:07:52,085 - [124768] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 124768 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:07:52,417 - [124768] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 09:07:52,480 - [124768] - src.utils.log - INFO - Sequential deletion from temp tables begin - __SPLIT__ 2026-07-20 09:07:52,593 - [124768] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId = 3683045 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:07:53,050 - [124768] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 09:07:53,108 - [124768] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId = 3683045 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:07:53,518 - [124768] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 09:07:53,582 - [124768] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId = 3683045 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:07:53,906 - [124768] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 09:07:53,971 - [124768] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId = 3683045 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:07:54,370 - [124768] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 09:07:54,438 - [124768] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId = 3683045 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:07:54,776 - [124768] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 09:07:54,843 - [124768] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 3683045 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:07:55,173 - [124768] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 09:07:55,239 - [124768] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId = 3683045 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:07:55,570 - [124768] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 09:07:55,637 - [124768] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 3683045 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:07:56,005 - [124768] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 09:07:56,074 - [124768] - src.utils.log - INFO - Work order published ids: (3683045,) - __SPLIT__ 2026-07-20 09:07:56,146 - [124768] - src.utils.log - INFO - Time took to perform operation in publishing [124768]: 39.02 - __SPLIT__ 2026-07-20 09:07:56,204 - [124768] - src.utils.log - INFO - Publish Completed for GenerateWorkOrderHistoryId: [124768] - __SPLIT__ 2026-07-20 09:07:56,266 - [124768] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-07-20 05:07:56.074' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124768;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:07:56,638 - [124768] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-20 09:12:58,627 - 124769 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=124769 - __SPLIT__ 2026-07-20 09:12:58,742 - 124769 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 124769 - __SPLIT__ 2026-07-20 09:12:58,805 - 124769 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-20 09:12:58,868 - 124769 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:13:00,905 - 124769 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 09:13:00,970 - 124769 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-07-20 09:13:01,036 - 124769 - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-07-20 09:13:01,106 - 124769 - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-07-20 09:13:01,176 - 124769 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 124769;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:13:03,087 - 124769 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-20 09:13:03,152 - 124769 - 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 = 124769), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 124769), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 124769 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-07-20 09:13:03,520 - 124769 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 09:13:03,598 - 124769 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 124769;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:13:03,930 - 124769 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 09:13:03,987 - 124769 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Failed', WoGenErrorInfo ='No setups found in given range', WorkOrderStatusDateTime = '2026-07-20 05:13:03.987' WHERE GenerateWorkOrderHistoryId = 124769;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:13:04,319 - 124769 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-20 09:13:04,390 - 124769 - src.utils.log - INFO - No Setup Found Error:No setups found for GenerateWorkOrderHistoryid: 124769 - __SPLIT__ 2026-07-20 09:14:16,731 - 124770 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=124770 - __SPLIT__ 2026-07-20 09:14:16,850 - 124770 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 124770 - __SPLIT__ 2026-07-20 09:14:16,915 - 124770 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-20 09:14:16,986 - 124770 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:14:19,122 - 124770 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 09:14:19,195 - 124770 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-07-20 09:14:19,269 - 124770 - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-07-20 09:14:19,334 - 124770 - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-07-20 09:14:19,408 - 124770 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 124770;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:14:21,306 - 124770 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-20 09:14:21,377 - 124770 - 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 = 124770), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 124770), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 124770 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-07-20 09:14:21,751 - 124770 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 09:14:21,819 - 124770 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 124770;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:14:22,153 - 124770 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 09:14:22,222 - 124770 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-07-20 09:14:22,286 - 124770 - 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 = 14842... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:14:22,612 - 124770 - src.utils.log - INFO - βœ… Fetched 60 rows - __SPLIT__ 2026-07-20 09:14:22,678 - 124770 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-07-20 09:14:22,752 - 124770 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-07-20 09:14:22,821 - 124770 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150678;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:14:23,154 - 124770 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 09:14:23,298 - 124770 - 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-07-20 00:00:00' and ServiceDate <= '2028-12-31 00:00:00' and ServiceSetupId = 150678 and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:14:23,630 - 124770 - src.utils.log - INFO - βœ… Fetched 14 rows - __SPLIT__ 2026-07-20 09:14:24,252 - 124770 - src.utils.log - INFO - Generating work orders for setup: 150678 - __SPLIT__ 2026-07-20 09:14:25,308 - 124770 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 1132;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:14:25,641 - 124770 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 09:14:25,768 - 124770 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-07-20 09:14:25,834 - 124770 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=133 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:14:26,156 - 124770 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 09:14:26,227 - 124770 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-07-20 09:14:26,288 - 124770 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-07-20 09:14:26,356 - 124770 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150678 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:14:26,726 - 124770 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 09:14:26,791 - 124770 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150678 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:14:27,167 - 124770 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 09:14:27,223 - 124770 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150678 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:14:27,551 - 124770 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 09:14:27,615 - 124770 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150678 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:14:27,994 - 124770 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 09:14:28,063 - 124770 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150678 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:14:28,435 - 124770 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 09:14:28,560 - 124770 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150678 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:14:28,907 - 124770 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 09:14:28,978 - 124770 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150678 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:14:29,318 - 124770 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 09:14:29,387 - 124770 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150678 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:14:29,847 - 124770 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 09:14:29,919 - 124770 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 09:14:29,988 - 124770 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 96 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:14:30,358 - 124770 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 96) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-07-20 09:14:33,875 - 124770 - src.utils.log - INFO - βœ… All 96 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-07-20 09:14:33,943 - 124770 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 96 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-07-16 14:51:40.778' and ServiceSetupId = 150678... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:14:34,321 - 124770 - src.utils.log - INFO - βœ… Fetched 96 rows - __SPLIT__ 2026-07-20 09:14:34,394 - 124770 - src.utils.log - INFO - Id's of work order inserted to DB: [3683062 3683063 3683064 3683065 3683066 3683067 3683068 3683069 3683070 3683071 3683072 3683073 3683074 3683075 3683076 3683077 3683078 3683079 3683080 3683081 3683082 3683083 3683084 3683085 3683086 3683087 3683088 3683089 3683090 3683091 3683092 3683093 3683094 3683095 3683096 3683097 3683098 3683099 3683100 3683101 3683102 3683103 3683104 3683105 3683106 3683107 3683108 3683109 3683110 3683111 3683112 3683113 3683114 3683115 3683116 3683117 3683118 3683119 3683120 3683121 3683122 3683123 3683124 3683125 3683126 3683127 3683128 3683129 3683130 3683131 3683132 3683133 3683134 3683135 3683136 3683137 3683138 3683139 3683140 3683141 3683142 3683143 3683144 3683145 3683146 3683147 3683148 3683149 3683150 3683151 3683152 3683153 3683154 3683155 3683156 3683157] - __SPLIT__ 2026-07-20 09:14:34,464 - 124770 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150678;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:14:34,825 - 124770 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 09:14:34,895 - 124770 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-07-20 09:14:34,968 - 124770 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId = 150678... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:14:35,304 - 124770 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 09:14:35,378 - 124770 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId = 150678... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:14:35,710 - 124770 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 09:14:35,841 - 124770 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId = 150678... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:14:36,175 - 124770 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-20 09:14:36,249 - 124770 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId = 150678... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:14:36,581 - 124770 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 09:14:36,651 - 124770 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId = 150678... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:14:36,972 - 124770 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 09:14:37,040 - 124770 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId = 150678;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:14:37,369 - 124770 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 09:14:37,445 - 124770 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId = 150678;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:14:37,781 - 124770 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 09:14:37,854 - 124770 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId = 150678;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:14:38,273 - 124770 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 09:14:38,346 - 124770 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId = 150678;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:14:38,686 - 124770 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 09:14:38,767 - 124770 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-07-20 09:14:38,835 - 124770 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-07-20 09:14:38,908 - 124770 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-07-20 09:14:38,974 - 124770 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.CommunicationPreferencesServiceReportNotification: - __SPLIT__ 2026-07-20 09:14:39,036 - 124770 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-07-20 09:14:39,102 - 124770 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SetupAutoGenerationSourceMapping: - __SPLIT__ 2026-07-20 09:14:39,212 - 124770 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-07-20 09:14:39,276 - 124770 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationAppliedDiscount: - __SPLIT__ 2026-07-20 09:14:39,334 - 124770 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-07-20 09:14:39,398 - 124770 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SubWorkOrderAutoGeneration: - __SPLIT__ 2026-07-20 09:14:39,459 - 124770 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-07-20 09:14:39,521 - 124770 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: - __SPLIT__ 2026-07-20 09:14:39,591 - 124770 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-07-20 09:14:39,655 - 124770 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: - __SPLIT__ 2026-07-20 09:14:39,721 - 124770 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-07-20 09:14:39,779 - 124770 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 09:14:39,837 - 124770 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3683062, 3683063, 3683064, 3683065, 3683066, 3683067, 3683068, 3683069, 3683070, 3683071, 3683072, 3683073, 3683074, 3683075, 3683076, 3683077, 3683078, 3683079, 3683080, 3683081, 3683082, 3683083, 3683084, 3683085, 3683086, 3683087, 3683088, 3683089, 3683090, 3683091, 3683092, 3683093, 3683094, 3683095, 3683096, 3683097, 3683098, 3683099, 3683100, 3683101, 3683102, 3683103, 3683104, 3683105, 3683106, 3683107, 3683108, 3683109, 3683110, 3683111, 3683112, 3683113, 3683114, 3683115, 3683116, 3683117, 3683118, 3683119, 3683120, 3683121, 3683122, 3683123, 3683124, 3683125, 3683126, 3683127, 3683128, 3683129, 3683130, 3683131, 3683132, 3683133, 3683134, 3683135, 3683136, 3683137, 3683138, 3683139, 3683140, 3683141, 3683142, 3683143, 3683144, 3683145, 3683146, 3683147, 3683148, 3683149, 3683150, 3683151, 3683152, 3683153, 3683154, 3683155, 3683156, 3683157) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:14:40,164 - 124770 - src.utils.log - INFO - βœ… Fetched 96 rows - __SPLIT__ 2026-07-20 09:14:40,237 - 124770 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationCrews: 96 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:14:40,572 - 124770 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 96) into ServiceCore.WorkOrderAutoGenerationCrews - __SPLIT__ 2026-07-20 09:14:41,884 - 124770 - src.utils.log - INFO - βœ… All 96 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationCrews in 1 batches - __SPLIT__ 2026-07-20 09:14:41,949 - 124770 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-07-20 09:14:42,016 - 124770 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationServices: - __SPLIT__ 2026-07-20 09:14:42,083 - 124770 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-07-20 09:14:42,155 - 124770 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 09:14:42,224 - 124770 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3683062, 3683063, 3683064, 3683065, 3683066, 3683067, 3683068, 3683069, 3683070, 3683071, 3683072, 3683073, 3683074, 3683075, 3683076, 3683077, 3683078, 3683079, 3683080, 3683081, 3683082, 3683083, 3683084, 3683085, 3683086, 3683087, 3683088, 3683089, 3683090, 3683091, 3683092, 3683093, 3683094, 3683095, 3683096, 3683097, 3683098, 3683099, 3683100, 3683101, 3683102, 3683103, 3683104, 3683105, 3683106, 3683107, 3683108, 3683109, 3683110, 3683111, 3683112, 3683113, 3683114, 3683115, 3683116, 3683117, 3683118, 3683119, 3683120, 3683121, 3683122, 3683123, 3683124, 3683125, 3683126, 3683127, 3683128, 3683129, 3683130, 3683131, 3683132, 3683133, 3683134, 3683135, 3683136, 3683137, 3683138, 3683139, 3683140, 3683141, 3683142, 3683143, 3683144, 3683145, 3683146, 3683147, 3683148, 3683149, 3683150, 3683151, 3683152, 3683153, 3683154, 3683155, 3683156, 3683157) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:14:42,605 - 124770 - src.utils.log - INFO - βœ… Fetched 96 rows - __SPLIT__ 2026-07-20 09:14:42,677 - 124770 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 96 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:14:43,014 - 124770 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 96) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-07-20 09:14:44,283 - 124770 - src.utils.log - INFO - βœ… All 96 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-07-20 09:14:44,349 - 124770 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-07-20 09:14:44,417 - 124770 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 124770;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:14:44,752 - 124770 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-20 09:14:44,829 - 124770 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-07-20 09:14:44,902 - 124770 - src.utils.log - INFO - Time took to perform operation: 27.92 - __SPLIT__ 2026-07-20 09:16:28,453 - [124770] - src.utils.log - INFO - ParallelProcessing=True temp_wo=[3683062, 3683063, 3683064, 3683065, 3683066] user_id=43135 company_id=133 project_id=[124770] publish_all=False - __SPLIT__ 2026-07-20 09:16:28,583 - [124770] - src.utils.log - INFO - ParallelProcessing=True temp_wo=[3683062, 3683063, 3683064, 3683065, 3683066] user_id=43135 company_id=133 project_id=[124770] publish_all=False - __SPLIT__ 2026-07-20 09:16:28,652 - [124770] - src.utils.log - INFO - Parallel Work order publish in progress for GenerateWorkOrderHistoryId: [124770] - __SPLIT__ 2026-07-20 09:16:28,726 - [124770] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-20 09:16:28,791 - [124770] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:16:30,858 - [124770] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 09:16:30,931 - [124770] - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-07-20 09:16:31,006 - [124770] - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-07-20 09:16:31,074 - [124770] - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-07-20 09:16:31,144 - [124770] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'InProgress' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124770;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:16:33,039 - [124770] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-20 09:16:33,113 - [124770] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (3683062, 3683063, 3683064, 3683065, 3683066)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:16:33,455 - [124770] - src.utils.log - INFO - βœ… Fetched 5 rows - __SPLIT__ 2026-07-20 09:16:33,526 - [124770] - src.utils.log - INFO - Inside get_work_order_table - __SPLIT__ 2026-07-20 09:16:33,598 - [124770] - 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 = 150678 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:16:33,936 - [124770] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 09:16:34,009 - [124770] - 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 = 150678 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:16:34,352 - [124770] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 09:16:34,423 - [124770] - 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 = 150678 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:16:34,778 - [124770] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 09:16:34,850 - [124770] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder,BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:16:35,223 - [124770] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 09:16:35,288 - [124770] - 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-07-20 09:16:35,615 - [124770] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-20 09:16:35,670 - [124770] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder, BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:16:35,996 - [124770] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 09:16:36,060 - [124770] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 5 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 133 AND EnitityNumberType = 'WorkOrder'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:16:36,395 - [124770] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 09:16:36,460 - [124770] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 5 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 133 AND EnitityNumberType = 'Invoice'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:16:36,790 - [124770] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 09:16:36,855 - [124770] - 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 = 150678... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:16:37,187 - [124770] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 09:16:37,254 - [124770] - src.utils.log - INFO - πŸ” Fetching data: SELECT x.CompanyId FROM CRM.CompanyMaster x WHERE CompanyKey = 'abcdallas';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:16:37,582 - [124770] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 09:16:37,640 - [124770] - src.utils.log - INFO - πŸ” Fetching data: SELECT CollectionStatus,IsHold,AccountNo FROM CRM.Account a WHERE a.AccountNo = '15017' and a.CompanyId = 121;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:16:37,963 - [124770] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 09:16:38,021 - [124770] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderNo FROM ServiceCore.WorkOrder WHERE WorkOrderNo IN ('1428758', '1428759', '1428760', '1428761', '1428762') AND CompanyId = 133 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:16:38,350 - [124770] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 09:16:38,419 - [124770] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrder (skip triggers): 5 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:16:38,906 - [124770] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 5) into ServiceCore.WorkOrder (triggers skipped) - __SPLIT__ 2026-07-20 09:16:40,076 - [124770] - src.utils.log - INFO - βœ… All 5 rows inserted successfully into ServiceCore.WorkOrder in 1 batches (triggers skipped) - __SPLIT__ 2026-07-20 09:16:40,328 - [124770] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-07-20 09:16:40,398 - [124770] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkorderId, WorkOrderNo FROM ServiceCore.WorkOrder wo WHERE wo.WorkOrderNo IN ('1428758', '1428759', '1428760', '1428761', '1428762') AND wo.AccountNumber = '15017' AND wo.CompanyId = 133 ... (Thread: ThreadPoolExecutor-34_0) - __SPLIT__ 2026-07-20 09:16:40,738 - [124770] - src.utils.log - INFO - βœ… Fetched 5 rows - __SPLIT__ 2026-07-20 09:16:40,802 - [124770] - src.utils.log - INFO - Parallel fetching temp table records - __SPLIT__ 2026-07-20 09:16:40,872 - [124770] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationServices woag WHERE woag.WorkOrderAutoGenerationId in (3683062, 3683063, 3683064, 3683065, 3683066)... (Thread: ThreadPoolExecutor-35_0) - __SPLIT__ 2026-07-20 09:16:40,873 - [124770] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SubWorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (3683062, 3683063, 3683064, 3683065, 3683066)... (Thread: ThreadPoolExecutor-35_1) - __SPLIT__ 2026-07-20 09:16:40,875 - [124770] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationCrews woag WHERE woag.WorkOrderAutoGenerationId in (3683062, 3683063, 3683064, 3683065, 3683066)... (Thread: ThreadPoolExecutor-35_2) - __SPLIT__ 2026-07-20 09:16:40,875 - [124770] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationSalesPersonCommission woag WHERE woag.WorkOrderAutoGenerationId in (3683062, 3683063, 3683064, 3683065, 3683066)... (Thread: ThreadPoolExecutor-35_3) - __SPLIT__ 2026-07-20 09:16:40,875 - [124770] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupAutoGenerationSourceMapping woag WHERE woag.WorkOrderAutoGenerationId in (3683062, 3683063, 3683064, 3683065, 3683066)... (Thread: ThreadPoolExecutor-35_4) - __SPLIT__ 2026-07-20 09:16:40,876 - [124770] - 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 (3683062, 3683063, 3683064, 3683065, 3683066)... (Thread: ThreadPoolExecutor-35_5) - __SPLIT__ 2026-07-20 09:16:40,876 - [124770] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from CRM.LeadNote woag WHERE woag.RefId in (3683062, 3683063, 3683064, 3683065, 3683066) and woag.RefType = 'TempWorkorder';... (Thread: ThreadPoolExecutor-35_6) - __SPLIT__ 2026-07-20 09:16:40,876 - [124770] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment woagca WHERE woagca.WorkOrderAutoGenerationId in (3683062, 3683063, 3683064, 3683065, 3683066);... (Thread: ThreadPoolExecutor-35_7) - __SPLIT__ 2026-07-20 09:16:41,235 - [124770] - src.utils.log - INFO - βœ… Fetched 5 rows - __SPLIT__ 2026-07-20 09:16:42,103 - [124770] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 09:16:42,139 - [124770] - src.utils.log - INFO - βœ… Fetched 5 rows - __SPLIT__ 2026-07-20 09:16:42,199 - [124770] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 09:16:42,256 - [124770] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 09:16:42,353 - [124770] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 09:16:42,389 - [124770] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 09:16:42,453 - [124770] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 09:16:42,613 - [124770] - src.utils.log - INFO - Updating temp tables - __SPLIT__ 2026-07-20 09:16:42,701 - [124770] - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyKey FROM Common.CompanyMaster cm WHERE CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:16:43,030 - [124770] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 09:16:43,097 - [124770] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 133 AND EnitityNumberType in ('SubWorkOrder'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:16:43,438 - [124770] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 09:16:43,511 - [124770] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 09:16:43,583 - [124770] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishHistory: 5 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:16:43,932 - [124770] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 5) into ServiceCore.WorkOrderAutoGenerationPublishHistory - __SPLIT__ 2026-07-20 09:16:45,074 - [124770] - src.utils.log - INFO - βœ… All 5 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishHistory in 1 batches - __SPLIT__ 2026-07-20 09:16:45,151 - [124770] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationPublishHistoryId, WorkOrderNo, ServiceSetupId FROM ServiceCore.WorkOrderAutoGenerationPublishHistory WHERE ServiceSetupId = 150678 AND WorkOrderNo IN ('7211322', '6689562', '4787284', '5288860', '6563198') AND GenerateWorkOrderHistoryId = 124770;... (Thread: ThreadPoolExecutor-36_0) - __SPLIT__ 2026-07-20 09:16:45,662 - [124770] - src.utils.log - INFO - βœ… Fetched 5 rows - __SPLIT__ 2026-07-20 09:16:45,733 - [124770] - src.utils.log - INFO - 🏁 Final merged rows: 5 - __SPLIT__ 2026-07-20 09:16:45,813 - [124770] - src.utils.log - INFO - Error: insert_all_publish_tables_parallel() takes 11 positional arguments but 12 were given - __SPLIT__ 2026-07-20 09:16:45,882 - [124770] - src.utils.log - INFO - Time took to perform operation in publishing [124770]: 17.16 - __SPLIT__ 2026-07-20 09:16:45,953 - [124770] - src.utils.log - INFO - Publish Completed for GenerateWorkOrderHistoryId: [124770] - __SPLIT__ 2026-07-20 09:16:46,017 - [124770] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-07-20 05:16:46.017' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124770;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:16:46,344 - [124770] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-20 09:46:41,661 - 124772 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=124772 - __SPLIT__ 2026-07-20 09:46:41,781 - 124772 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 124772 - __SPLIT__ 2026-07-20 09:46:41,847 - 124772 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-20 09:46:41,914 - 124772 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:46:44,052 - 124772 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 09:46:44,116 - 124772 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-07-20 09:46:44,188 - 124772 - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-07-20 09:46:44,259 - 124772 - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-07-20 09:46:44,329 - 124772 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 124772;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:46:46,325 - 124772 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-20 09:46:46,386 - 124772 - 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 = 124772), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 124772), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 124772 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-07-20 09:46:46,765 - 124772 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 09:46:46,825 - 124772 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 124772;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:46:47,163 - 124772 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 09:46:47,228 - 124772 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-07-20 09:46:47,297 - 124772 - 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 = 14842... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:46:47,644 - 124772 - src.utils.log - INFO - βœ… Fetched 60 rows - __SPLIT__ 2026-07-20 09:46:47,715 - 124772 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-07-20 09:46:47,781 - 124772 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-07-20 09:46:47,848 - 124772 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150692;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:46:48,189 - 124772 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 09:46:48,306 - 124772 - 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-07-20 00:00:00' and ServiceDate <= '2029-12-31 00:00:00' and ServiceSetupId = 150692 and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:46:48,659 - 124772 - src.utils.log - INFO - βœ… Fetched 6 rows - __SPLIT__ 2026-07-20 09:46:49,312 - 124772 - src.utils.log - INFO - Generating work orders for setup: 150692 - __SPLIT__ 2026-07-20 09:46:51,067 - 124772 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-07-20 09:46:51,145 - 124772 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=133 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:46:51,485 - 124772 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 09:46:51,556 - 124772 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-07-20 09:46:51,620 - 124772 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-07-20 09:46:51,678 - 124772 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150692 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:46:52,090 - 124772 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 09:46:52,162 - 124772 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150692 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:46:52,565 - 124772 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 09:46:52,627 - 124772 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150692 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:46:52,977 - 124772 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 09:46:53,044 - 124772 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150692 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:46:53,451 - 124772 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 09:46:53,518 - 124772 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150692 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:46:53,913 - 124772 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 09:46:53,983 - 124772 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150692 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:46:54,332 - 124772 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 09:46:54,444 - 124772 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150692 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:46:54,782 - 124772 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 09:46:54,849 - 124772 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150692 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:46:55,962 - 124772 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 09:46:56,032 - 124772 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 09:46:56,103 - 124772 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 144 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:46:56,480 - 124772 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 144) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-07-20 09:47:01,411 - 124772 - src.utils.log - INFO - βœ… All 144 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-07-20 09:47:01,480 - 124772 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 144 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-07-16 14:51:40.585' and ServiceSetupId = 150692... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:47:01,863 - 124772 - src.utils.log - INFO - βœ… Fetched 144 rows - __SPLIT__ 2026-07-20 09:47:01,926 - 124772 - src.utils.log - INFO - Id's of work order inserted to DB: [3683160 3683161 3683162 3683163 3683164 3683165 3683166 3683167 3683168 3683169 3683170 3683171 3683172 3683173 3683174 3683175 3683176 3683177 3683178 3683179 3683180 3683181 3683182 3683183 3683184 3683185 3683186 3683187 3683188 3683189 3683190 3683191 3683192 3683193 3683194 3683195 3683196 3683197 3683198 3683199 3683200 3683201 3683202 3683203 3683204 3683205 3683206 3683207 3683208 3683209 3683210 3683211 3683212 3683213 3683214 3683215 3683216 3683217 3683218 3683219 3683220 3683221 3683222 3683223 3683224 3683225 3683226 3683227 3683228 3683229 3683230 3683231 3683232 3683233 3683234 3683235 3683236 3683237 3683238 3683239 3683240 3683241 3683242 3683243 3683244 3683245 3683246 3683247 3683248 3683249 3683250 3683251 3683252 3683253 3683254 3683255 3683256 3683257 3683258 3683259 3683260 3683261 3683262 3683263 3683264 3683265 3683266 3683267 3683268 3683269 3683270 3683271 3683272 3683273 3683274 3683275 3683276 3683277 3683278 3683279 3683280 3683281 3683282 3683283 3683284 3683285 3683286 3683287 3683288 3683289 3683290 3683291 3683292 3683293 3683294 3683295 3683296 3683297 3683298 3683299 3683300 3683301 3683302 3683303] - __SPLIT__ 2026-07-20 09:47:01,985 - 124772 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150692;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:47:02,329 - 124772 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 09:47:02,398 - 124772 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-07-20 09:47:02,466 - 124772 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId = 150692... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:47:02,843 - 124772 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 09:47:02,927 - 124772 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId = 150692... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:47:03,268 - 124772 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 09:47:03,341 - 124772 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId = 150692... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:47:03,682 - 124772 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 09:47:03,797 - 124772 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId = 150692... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:47:04,142 - 124772 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 09:47:04,212 - 124772 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId = 150692... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:47:04,557 - 124772 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 09:47:04,629 - 124772 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId = 150692;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:47:04,976 - 124772 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 09:47:05,044 - 124772 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId = 150692;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:47:05,391 - 124772 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 09:47:05,463 - 124772 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId = 150692;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:47:05,894 - 124772 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 09:47:05,968 - 124772 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId = 150692;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:47:06,312 - 124772 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 09:47:06,394 - 124772 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-07-20 09:47:06,464 - 124772 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-07-20 09:47:06,532 - 124772 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-07-20 09:47:06,605 - 124772 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.CommunicationPreferencesServiceReportNotification: - __SPLIT__ 2026-07-20 09:47:06,678 - 124772 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-07-20 09:47:06,747 - 124772 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SetupAutoGenerationSourceMapping: - __SPLIT__ 2026-07-20 09:47:06,819 - 124772 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-07-20 09:47:06,889 - 124772 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationAppliedDiscount: - __SPLIT__ 2026-07-20 09:47:07,011 - 124772 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-07-20 09:47:07,082 - 124772 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SubWorkOrderAutoGeneration: - __SPLIT__ 2026-07-20 09:47:07,150 - 124772 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-07-20 09:47:07,225 - 124772 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: - __SPLIT__ 2026-07-20 09:47:07,298 - 124772 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-07-20 09:47:07,361 - 124772 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: - __SPLIT__ 2026-07-20 09:47:07,432 - 124772 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-07-20 09:47:07,500 - 124772 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCrews: - __SPLIT__ 2026-07-20 09:47:07,567 - 124772 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-07-20 09:47:07,638 - 124772 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationServices: - __SPLIT__ 2026-07-20 09:47:07,710 - 124772 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-07-20 09:47:07,810 - 124772 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 09:47:07,879 - 124772 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3683160, 3683161, 3683162, 3683163, 3683164, 3683165, 3683166, 3683167, 3683168, 3683169, 3683170, 3683171, 3683172, 3683173, 3683174, 3683175, 3683176, 3683177, 3683178, 3683179, 3683180, 3683181, 3683182, 3683183, 3683184, 3683185, 3683186, 3683187, 3683188, 3683189, 3683190, 3683191, 3683192, 3683193, 3683194, 3683195, 3683196, 3683197, 3683198, 3683199, 3683200, 3683201, 3683202, 3683203, 3683204, 3683205, 3683206, 3683207, 3683208, 3683209, 3683210, 3683211, 3683212, 3683213, 3683214, 3683215, 3683216, 3683217, 3683218, 3683219, 3683220, 3683221, 3683222, 3683223, 3683224, 3683225, 3683226, 3683227, 3683228, 3683229, 3683230, 3683231, 3683232, 3683233, 3683234, 3683235, 3683236, 3683237, 3683238, 3683239, 3683240, 3683241, 3683242, 3683243, 3683244, 3683245, 3683246, 3683247, 3683248, 3683249, 3683250, 3683251, 3683252, 3683253, 3683254, 3683255, 3683256, 3683257, 3683258, 3683259, 3683260, 3683261, 3683262, 3683263, 3683264, 3683265, 3683266, 3683267, 3683268, 3683269, 3683270, 3683271, 3683272, 3683273, 3683274, 3683275, 3683276, 3683277, 3683278, 3683279, 3683280, 3683281, 3683282, 3683283, 3683284, 3683285, 3683286, 3683287, 3683288, 3683289, 3683290, 3683291, 3683292, 3683293, 3683294, 3683295, 3683296, 3683297, 3683298, 3683299, 3683300, 3683301, 3683302, 3683303) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:47:08,234 - 124772 - src.utils.log - INFO - βœ… Fetched 144 rows - __SPLIT__ 2026-07-20 09:47:08,313 - 124772 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 144 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:47:08,664 - 124772 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 144) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-07-20 09:47:10,352 - 124772 - src.utils.log - INFO - βœ… All 144 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-07-20 09:47:10,422 - 124772 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-07-20 09:47:10,496 - 124772 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 124772;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:47:10,845 - 124772 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-20 09:47:10,954 - 124772 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-07-20 09:47:11,023 - 124772 - src.utils.log - INFO - Time took to perform operation: 29.11 - __SPLIT__ 2026-07-20 09:54:04,821 - 124773 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=124773 - __SPLIT__ 2026-07-20 09:54:04,938 - 124773 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 124773 - __SPLIT__ 2026-07-20 09:54:05,003 - 124773 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-20 09:54:05,076 - 124773 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:54:07,212 - 124773 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 09:54:07,276 - 124773 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-07-20 09:54:07,342 - 124773 - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-07-20 09:54:07,417 - 124773 - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-07-20 09:54:07,483 - 124773 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 124773;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:54:09,453 - 124773 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-20 09:54:09,522 - 124773 - 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 = 124773), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 124773), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 124773 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-07-20 09:54:09,905 - 124773 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 09:54:09,972 - 124773 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 124773;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:54:10,312 - 124773 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 09:54:10,384 - 124773 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-07-20 09:54:10,459 - 124773 - 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 = 14626... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:54:10,804 - 124773 - src.utils.log - INFO - βœ… Fetched 60 rows - __SPLIT__ 2026-07-20 09:54:10,870 - 124773 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-07-20 09:54:10,935 - 124773 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-07-20 09:54:10,996 - 124773 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150694;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:54:11,343 - 124773 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 09:54:11,451 - 124773 - 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-07-20 00:00:00' and ServiceDate <= '2026-07-31 00:00:00' and ServiceSetupId = 150694 and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:54:11,793 - 124773 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 09:54:12,435 - 124773 - src.utils.log - INFO - Generating work orders for setup: 150694 - __SPLIT__ 2026-07-20 09:54:12,554 - 124773 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 11436;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:54:12,894 - 124773 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 09:54:12,969 - 124773 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 1132;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:54:13,301 - 124773 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 09:54:13,402 - 124773 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-07-20 09:54:13,470 - 124773 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=133 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:54:13,803 - 124773 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 09:54:13,864 - 124773 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-07-20 09:54:13,925 - 124773 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-07-20 09:54:13,987 - 124773 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150694 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:54:14,364 - 124773 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 09:54:14,427 - 124773 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150694 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:54:14,811 - 124773 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 09:54:14,877 - 124773 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150694 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:54:15,221 - 124773 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 09:54:15,285 - 124773 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150694 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:54:15,673 - 124773 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 09:54:15,776 - 124773 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150694 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:54:16,160 - 124773 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 09:54:16,226 - 124773 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150694 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:54:16,574 - 124773 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 09:54:16,641 - 124773 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150694 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:54:16,988 - 124773 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 09:54:17,053 - 124773 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150694 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:54:17,508 - 124773 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 09:54:17,575 - 124773 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 09:54:17,643 - 124773 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 10 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:54:18,013 - 124773 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 10) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-07-20 09:54:19,514 - 124773 - src.utils.log - INFO - βœ… All 10 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-07-20 09:54:19,587 - 124773 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 10 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-07-16 14:51:40.778' and ServiceSetupId = 150694... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:54:19,974 - 124773 - src.utils.log - INFO - βœ… Fetched 10 rows - __SPLIT__ 2026-07-20 09:54:20,049 - 124773 - src.utils.log - INFO - Id's of work order inserted to DB: [3683304 3683305 3683306 3683307 3683308 3683309 3683310 3683311 3683312 3683313] - __SPLIT__ 2026-07-20 09:54:20,106 - 124773 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150694;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:54:20,442 - 124773 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 09:54:20,508 - 124773 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-07-20 09:54:20,573 - 124773 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId = 150694... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:54:20,905 - 124773 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 09:54:21,014 - 124773 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId = 150694... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:54:21,352 - 124773 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 09:54:21,422 - 124773 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId = 150694... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:54:21,760 - 124773 - src.utils.log - INFO - βœ… Fetched 9 rows - __SPLIT__ 2026-07-20 09:54:21,817 - 124773 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId = 150694... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:54:22,162 - 124773 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 09:54:22,222 - 124773 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId = 150694... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:54:22,556 - 124773 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 09:54:22,619 - 124773 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId = 150694;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:54:22,960 - 124773 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 09:54:23,020 - 124773 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId = 150694;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:54:23,357 - 124773 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 09:54:23,423 - 124773 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId = 150694;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:54:23,851 - 124773 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 09:54:23,915 - 124773 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId = 150694;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:54:24,256 - 124773 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 09:54:24,332 - 124773 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-07-20 09:54:24,404 - 124773 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-07-20 09:54:24,471 - 124773 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-07-20 09:54:24,532 - 124773 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.CommunicationPreferencesServiceReportNotification: - __SPLIT__ 2026-07-20 09:54:24,652 - 124773 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-07-20 09:54:24,715 - 124773 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SetupAutoGenerationSourceMapping: - __SPLIT__ 2026-07-20 09:54:24,781 - 124773 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-07-20 09:54:24,850 - 124773 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationAppliedDiscount: - __SPLIT__ 2026-07-20 09:54:24,917 - 124773 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-07-20 09:54:24,976 - 124773 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SubWorkOrderAutoGeneration: - __SPLIT__ 2026-07-20 09:54:25,039 - 124773 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-07-20 09:54:25,106 - 124773 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: - __SPLIT__ 2026-07-20 09:54:25,173 - 124773 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-07-20 09:54:25,243 - 124773 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: - __SPLIT__ 2026-07-20 09:54:25,308 - 124773 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-07-20 09:54:25,375 - 124773 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 09:54:25,439 - 124773 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3683304, 3683305, 3683306, 3683307, 3683308, 3683309, 3683310, 3683311, 3683312, 3683313) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:54:25,777 - 124773 - src.utils.log - INFO - βœ… Fetched 10 rows - __SPLIT__ 2026-07-20 09:54:25,840 - 124773 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationCrews: 49 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:54:26,185 - 124773 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 49) into ServiceCore.WorkOrderAutoGenerationCrews - __SPLIT__ 2026-07-20 09:54:27,366 - 124773 - src.utils.log - INFO - βœ… All 49 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationCrews in 1 batches - __SPLIT__ 2026-07-20 09:54:27,436 - 124773 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-07-20 09:54:27,498 - 124773 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 09:54:27,576 - 124773 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 3683304 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:54:27,959 - 124773 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 09:54:28,017 - 124773 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:54:28,357 - 124773 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-07-20 09:54:29,381 - 124773 - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-07-20 09:54:29,434 - 124773 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-07-20 09:54:29,499 - 124773 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 09:54:29,563 - 124773 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3683305, 3683306, 3683307, 3683308, 3683309, 3683310, 3683311, 3683312, 3683313) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:54:29,894 - 124773 - src.utils.log - INFO - βœ… Fetched 9 rows - __SPLIT__ 2026-07-20 09:54:29,962 - 124773 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 9 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:54:30,295 - 124773 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 9) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-07-20 09:54:31,338 - 124773 - src.utils.log - INFO - βœ… All 9 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-07-20 09:54:31,404 - 124773 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-07-20 09:54:31,460 - 124773 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 124773;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:54:31,797 - 124773 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-20 09:54:31,859 - 124773 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-07-20 09:54:31,922 - 124773 - src.utils.log - INFO - Time took to perform operation: 26.86 - __SPLIT__ 2026-07-20 09:54:47,456 - [124773] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[3683304, 3683313] user_id=43135 company_id=133 project_id=[124773] publish_all=False - __SPLIT__ 2026-07-20 09:54:47,586 - [124773] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[3683304, 3683313] user_id=43135 company_id=133 project_id=[124773] publish_all=False - __SPLIT__ 2026-07-20 09:54:47,664 - [124773] - src.utils.log - INFO - Sequential Work order publish in progress for GenerateWorkOrderHistoryId: [124773] - __SPLIT__ 2026-07-20 09:54:47,737 - [124773] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-20 09:54:47,807 - [124773] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:54:49,975 - [124773] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 09:54:50,045 - [124773] - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-07-20 09:54:50,112 - [124773] - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-07-20 09:54:50,182 - [124773] - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-07-20 09:54:50,249 - [124773] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'InProgress' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124773;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:54:52,158 - [124773] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-20 09:54:52,232 - [124773] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (3683304, 3683313)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:54:52,563 - [124773] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-20 09:54:52,634 - [124773] - src.utils.log - INFO - Inside get_work_order_table - __SPLIT__ 2026-07-20 09:54:52,707 - [124773] - 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 = 150694 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:54:53,039 - [124773] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 09:54:53,109 - [124773] - 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 = 150694 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:54:53,442 - [124773] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 09:54:53,515 - [124773] - 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 = 150694 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:54:53,860 - [124773] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 09:54:53,933 - [124773] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder,BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:54:54,321 - [124773] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 09:54:54,390 - [124773] - 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-07-20 09:54:54,727 - [124773] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-20 09:54:54,799 - [124773] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder, BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:54:55,140 - [124773] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 09:54:55,219 - [124773] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 2 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 133 AND EnitityNumberType = 'WorkOrder'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:54:55,567 - [124773] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 09:54:55,636 - [124773] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 2 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 133 AND EnitityNumberType = 'Invoice'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:54:55,986 - [124773] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 09:54:56,068 - [124773] - 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 = 150694... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:54:56,399 - [124773] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 09:54:56,473 - [124773] - src.utils.log - INFO - πŸ” Fetching data: SELECT x.CompanyId FROM CRM.CompanyMaster x WHERE CompanyKey = 'abcdallas';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:54:56,810 - [124773] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 09:54:56,879 - [124773] - src.utils.log - INFO - πŸ” Fetching data: SELECT CollectionStatus,IsHold,AccountNo FROM CRM.Account a WHERE a.AccountNo = '15020' and a.CompanyId = 121;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:54:57,208 - [124773] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 09:54:57,283 - [124773] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderNo FROM ServiceCore.WorkOrder WHERE WorkOrderNo IN ('1428765', '1428766') AND CompanyId = 133 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:54:57,624 - [124773] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 09:54:57,691 - [124773] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrder (skip triggers): 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:54:58,187 - [124773] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrder (triggers skipped) - __SPLIT__ 2026-07-20 09:54:59,212 - [124773] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrder in 1 batches (triggers skipped) - __SPLIT__ 2026-07-20 09:54:59,455 - [124773] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-07-20 09:54:59,527 - [124773] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.ServiceSetup SET IsInitialWoGenerated = 1 WHERE CompanyId = 133 AND ServiceSetupId = 150694;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:54:59,857 - [124773] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-20 09:54:59,925 - [124773] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkorderId, WorkOrderNo FROM ServiceCore.WorkOrder wo WHERE wo.WorkOrderNo IN ('1428765', '1428766') AND wo.AccountNumber = '15020' AND wo.CompanyId = 133 ... (Thread: ThreadPoolExecutor-37_0) - __SPLIT__ 2026-07-20 09:55:00,255 - [124773] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-20 09:55:00,326 - [124773] - src.utils.log - INFO - Sequential fetching temp table records - __SPLIT__ 2026-07-20 09:55:00,393 - [124773] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationServices woag WHERE woag.WorkOrderAutoGenerationId in (3683304, 3683313)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:55:00,755 - [124773] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-20 09:55:00,822 - [124773] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SubWorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (3683304, 3683313)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:55:01,162 - [124773] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 09:55:01,230 - [124773] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationCrews woag WHERE woag.WorkOrderAutoGenerationId in (3683304, 3683313)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:55:01,585 - [124773] - src.utils.log - INFO - βœ… Fetched 9 rows - __SPLIT__ 2026-07-20 09:55:01,657 - [124773] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationSalesPersonCommission woag WHERE woag.WorkOrderAutoGenerationId in (3683304, 3683313)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:55:01,987 - [124773] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 09:55:02,056 - [124773] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupAutoGenerationSourceMapping woag WHERE woag.WorkOrderAutoGenerationId in (3683304, 3683313)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:55:02,392 - [124773] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 09:55:02,452 - [124773] - 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 (3683304, 3683313)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:55:02,801 - [124773] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 09:55:02,862 - [124773] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from CRM.LeadNote woag WHERE woag.RefId in (3683304, 3683313) and woag.RefType = 'TempWorkorder';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:55:03,193 - [124773] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 09:55:03,310 - [124773] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment woagca WHERE woagca.WorkOrderAutoGenerationId in (3683304, 3683313);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:55:03,645 - [124773] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 09:55:03,715 - [124773] - src.utils.log - INFO - Updating temp tables - __SPLIT__ 2026-07-20 09:55:03,806 - [124773] - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyKey FROM Common.CompanyMaster cm WHERE CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:55:04,147 - [124773] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 09:55:04,235 - [124773] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 133 AND EnitityNumberType in ('SubWorkOrder'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:55:04,577 - [124773] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 09:55:04,646 - [124773] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 09:55:04,730 - [124773] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishHistory: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:55:05,102 - [124773] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationPublishHistory - __SPLIT__ 2026-07-20 09:55:06,112 - [124773] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishHistory in 1 batches - __SPLIT__ 2026-07-20 09:55:06,191 - [124773] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationPublishHistoryId, WorkOrderNo, ServiceSetupId FROM ServiceCore.WorkOrderAutoGenerationPublishHistory WHERE ServiceSetupId = 150694 AND WorkOrderNo IN ('465612', '3536701') AND GenerateWorkOrderHistoryId = 124773;... (Thread: ThreadPoolExecutor-38_0) - __SPLIT__ 2026-07-20 09:55:06,695 - [124773] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-20 09:55:06,771 - [124773] - src.utils.log - INFO - 🏁 Final merged rows: 2 - __SPLIT__ 2026-07-20 09:55:06,863 - [124773] - src.utils.log - INFO - Sequential Insertion in work order tables begin - __SPLIT__ 2026-07-20 09:55:06,940 - [124773] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 09:55:07,044 - [124773] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderServices: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:55:07,397 - [124773] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderServices - __SPLIT__ 2026-07-20 09:55:08,410 - [124773] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderServices in 1 batches - __SPLIT__ 2026-07-20 09:55:08,477 - [124773] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderAppliedDiscount: - __SPLIT__ 2026-07-20 09:55:08,592 - [124773] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderSalesPersonCommission: - __SPLIT__ 2026-07-20 09:55:08,661 - [124773] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderCommissionAdjustment: - __SPLIT__ 2026-07-20 09:55:08,729 - [124773] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 09:55:08,799 - [124773] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderCrew: 9 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:55:09,130 - [124773] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 9) into ServiceCore.WorkOrderCrew - __SPLIT__ 2026-07-20 09:55:10,127 - [124773] - src.utils.log - INFO - βœ… All 9 rows inserted successfully into ServiceCore.WorkOrderCrew in 1 batches - __SPLIT__ 2026-07-20 09:55:10,199 - [124773] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkorderSourceMapping: - __SPLIT__ 2026-07-20 09:55:10,271 - [124773] - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-07-20 09:55:10,345 - [124773] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 09:55:10,418 - [124773] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishServices: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:55:10,760 - [124773] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationPublishServices - __SPLIT__ 2026-07-20 09:55:11,763 - [124773] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishServices in 1 batches - __SPLIT__ 2026-07-20 09:55:11,834 - [124773] - 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 = 150694... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:55:12,167 - [124773] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 09:55:12,256 - [124773] - src.utils.log - INFO - Size of Transaction: 2 - __SPLIT__ 2026-07-20 09:55:12,336 - [124773] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:55:12,804 - [124773] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-07-20 09:55:13,799 - [124773] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-07-20 09:55:13,995 - [124773] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-07-20 09:55:14,067 - [124773] - 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 = 133 AND t.TransactionType ='Invoice' AND t.CreatedDate = '2026-07-20 05:55:12.251';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:55:14,566 - [124773] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-20 09:55:14,633 - [124773] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150694;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:55:14,963 - [124773] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 09:55:15,038 - [124773] - src.utils.log - INFO - πŸ“ Executing: UPDATE Billing.[Transaction] SET ModifiedBy = NULL WHERE ModifiedBy IN (12345678910,12345678911) AND CreatedDate = '2026-07-20 05:55:12.251'; ... (Thread: ThreadPoolExecutor-39_0) - __SPLIT__ 2026-07-20 09:55:15,471 - [124773] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-20 09:55:15,534 - [124773] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 09:55:15,613 - [124773] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:55:15,945 - [124773] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.Invoice - __SPLIT__ 2026-07-20 09:55:16,943 - [124773] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-07-20 09:55:17,005 - [124773] - src.utils.log - INFO - πŸ” Fetching data: SELECT InvoiceId, WorkOrderNo FROM Billing.Invoice i WHERE i.WorkOrderNo in ('1428765', '1428766')... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:55:18,024 - [124773] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-20 09:55:18,100 - [124773] - 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 = 150694 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:55:18,434 - [124773] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 09:55:18,501 - [124773] - 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 = 150694 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:55:18,831 - [124773] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 09:55:18,900 - [124773] - 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 = 150694 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:55:19,234 - [124773] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 09:55:19,304 - [124773] - 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 = 150694 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:55:19,635 - [124773] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 09:55:19,714 - [124773] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150694;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:55:20,096 - [124773] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 09:55:20,170 - [124773] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId, AppliedDiscountAmt as AppliedDiscountAmount,IsActive ,ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 150694;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:55:20,505 - [124773] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 09:55:20,581 - [124773] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId,IsActive,DiscountAmount, IsDiscountPercent,DiscountPercent,DiscountDescription , ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 150694;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:55:20,912 - [124773] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 09:55:20,982 - [124773] - src.utils.log - INFO - Sequential Insertion in invoice tables begin - __SPLIT__ 2026-07-20 09:55:21,048 - [124773] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.AccountDiscountSetup: - __SPLIT__ 2026-07-20 09:55:21,119 - [124773] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 09:55:21,190 - [124773] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceCharges: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:55:21,535 - [124773] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.InvoiceCharges - __SPLIT__ 2026-07-20 09:55:22,541 - [124773] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.InvoiceCharges in 1 batches - __SPLIT__ 2026-07-20 09:55:22,614 - [124773] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.DiscountApplied: - __SPLIT__ 2026-07-20 09:55:22,686 - [124773] - src.utils.log - INFO - Invoice Publish Done - __SPLIT__ 2026-07-20 09:55:22,762 - [124773] - src.utils.log - INFO - Updating Next GenerationDate - __SPLIT__ 2026-07-20 09:55:22,839 - [124773] - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, MAX(NextWorkOrderGenerationDate) AS MaxNextWorkOrderGeneration FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 124773 GROUP BY ServiceSetupId; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:55:23,178 - [124773] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 09:55:23,252 - [124773] - src.utils.log - INFO - πŸ”„ Updating next gen date sequentially: inside update_next_workorder_generation - __SPLIT__ 2026-07-20 09:55:23,478 - [124773] - src.utils.log - INFO - πŸ›  Creating temp table #tbl_76cf7b6727 - __SPLIT__ 2026-07-20 09:55:23,807 - [124773] - src.utils.log - INFO - πŸ“Œ Bulk inserting 1 rows into #tbl_76cf7b6727 - __SPLIT__ 2026-07-20 09:55:24,138 - [124773] - src.utils.log - INFO - πŸ” Running MERGE update to apply changes - __SPLIT__ 2026-07-20 09:55:24,388 - [124773] - src.utils.log - INFO - βœ” SQL reported affected rows: 1 - __SPLIT__ 2026-07-20 09:55:24,592 - [124773] - src.utils.log - INFO - πŸ” Verified successfully updated 1 rows via #tbl_76cf7b6727 - __SPLIT__ 2026-07-20 09:55:24,656 - [124773] - src.utils.log - INFO - πŸŽ‰ Successfully updated NextGenerationDate using temp table #tbl_76cf7b6727 - __SPLIT__ 2026-07-20 09:55:24,726 - [124773] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 124773 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:55:25,060 - [124773] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 09:55:25,126 - [124773] - src.utils.log - INFO - Sequential deletion from temp tables begin - __SPLIT__ 2026-07-20 09:55:25,190 - [124773] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId in (3683304, 3683313) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:55:25,651 - [124773] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 09:55:25,746 - [124773] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId in (3683304, 3683313) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:55:26,154 - [124773] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 09:55:26,226 - [124773] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId in (3683304, 3683313) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:55:26,558 - [124773] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 09:55:26,623 - [124773] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId in (3683304, 3683313) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:55:27,033 - [124773] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 09:55:27,096 - [124773] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId in (3683304, 3683313) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:55:27,429 - [124773] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 09:55:27,498 - [124773] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (3683304, 3683313) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:55:27,830 - [124773] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 09:55:27,895 - [124773] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId in (3683304, 3683313) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:55:28,222 - [124773] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 09:55:28,343 - [124773] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (3683304, 3683313) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:55:28,758 - [124773] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 09:55:28,821 - [124773] - src.utils.log - INFO - Work order published ids: (3683304, 3683313) - __SPLIT__ 2026-07-20 09:55:28,896 - [124773] - src.utils.log - INFO - Time took to perform operation in publishing [124773]: 41.16 - __SPLIT__ 2026-07-20 09:55:28,992 - [124773] - src.utils.log - INFO - Publish Completed for GenerateWorkOrderHistoryId: [124773] - __SPLIT__ 2026-07-20 09:55:29,062 - [124773] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-07-20 05:55:28.821' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124773;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 09:55:29,391 - [124773] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-20 10:16:06,905 - 124775 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=124775 - __SPLIT__ 2026-07-20 10:16:07,031 - 124775 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 124775 - __SPLIT__ 2026-07-20 10:16:07,096 - 124775 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-20 10:16:07,160 - 124775 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:16:09,295 - 124775 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 10:16:09,364 - 124775 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-07-20 10:16:09,434 - 124775 - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-07-20 10:16:09,502 - 124775 - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-07-20 10:16:09,565 - 124775 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 124775;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:16:11,474 - 124775 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-20 10:16:11,537 - 124775 - 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 = 124775), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 124775), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 124775 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-07-20 10:16:11,910 - 124775 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 10:16:11,976 - 124775 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 124775;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:16:12,305 - 124775 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 10:16:12,372 - 124775 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-07-20 10:16:12,437 - 124775 - 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 = 14626... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:16:12,770 - 124775 - src.utils.log - INFO - βœ… Fetched 60 rows - __SPLIT__ 2026-07-20 10:16:12,829 - 124775 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-07-20 10:16:12,894 - 124775 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-07-20 10:16:12,952 - 124775 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150695;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:16:13,290 - 124775 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 10:16:13,402 - 124775 - 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-07-20 00:00:00' and ServiceDate <= '2026-07-31 00:00:00' and ServiceSetupId = 150695 and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:16:13,731 - 124775 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 10:16:14,358 - 124775 - src.utils.log - INFO - Generating work orders for setup: 150695 - __SPLIT__ 2026-07-20 10:16:14,485 - 124775 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 11437;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:16:14,816 - 124775 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 10:16:14,897 - 124775 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 11439;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:16:15,223 - 124775 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 10:16:15,336 - 124775 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-07-20 10:16:15,408 - 124775 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=133 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:16:15,735 - 124775 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 10:16:15,811 - 124775 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-07-20 10:16:15,880 - 124775 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-07-20 10:16:15,946 - 124775 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150695 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:16:16,353 - 124775 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 10:16:16,446 - 124775 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150695 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:16:16,843 - 124775 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 10:16:16,908 - 124775 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150695 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:16:17,247 - 124775 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 10:16:17,317 - 124775 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150695 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:16:17,712 - 124775 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 10:16:17,827 - 124775 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150695 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:16:18,211 - 124775 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 10:16:18,281 - 124775 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150695 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:16:18,626 - 124775 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 10:16:18,698 - 124775 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150695 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:16:19,047 - 124775 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 10:16:19,118 - 124775 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150695 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:16:19,964 - 124775 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 10:16:20,034 - 124775 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 10:16:20,101 - 124775 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 10 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:16:20,475 - 124775 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 10) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-07-20 10:16:21,905 - 124775 - src.utils.log - INFO - βœ… All 10 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-07-20 10:16:21,974 - 124775 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 10 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-07-16 14:51:40.585' and ServiceSetupId = 150695... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:16:22,355 - 124775 - src.utils.log - INFO - βœ… Fetched 10 rows - __SPLIT__ 2026-07-20 10:16:22,428 - 124775 - src.utils.log - INFO - Id's of work order inserted to DB: [3683324 3683325 3683326 3683327 3683328 3683329 3683330 3683331 3683332 3683333] - __SPLIT__ 2026-07-20 10:16:22,498 - 124775 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150695;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:16:22,834 - 124775 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 10:16:22,903 - 124775 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-07-20 10:16:22,976 - 124775 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId = 150695... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:16:23,316 - 124775 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-20 10:16:23,446 - 124775 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId = 150695... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:16:23,783 - 124775 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-20 10:16:23,861 - 124775 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId = 150695... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:16:24,204 - 124775 - src.utils.log - INFO - βœ… Fetched 9 rows - __SPLIT__ 2026-07-20 10:16:24,275 - 124775 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId = 150695... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:16:24,610 - 124775 - src.utils.log - INFO - βœ… Fetched 8 rows - __SPLIT__ 2026-07-20 10:16:24,684 - 124775 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId = 150695... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:16:25,054 - 124775 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 10:16:25,125 - 124775 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId = 150695;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:16:25,465 - 124775 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 10:16:25,532 - 124775 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId = 150695;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:16:25,873 - 124775 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 10:16:25,946 - 124775 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId = 150695;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:16:26,374 - 124775 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 10:16:26,443 - 124775 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId = 150695;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:16:26,778 - 124775 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 10:16:26,863 - 124775 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-07-20 10:16:26,932 - 124775 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-07-20 10:16:27,001 - 124775 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-07-20 10:16:27,069 - 124775 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.CommunicationPreferencesServiceReportNotification: - __SPLIT__ 2026-07-20 10:16:27,191 - 124775 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-07-20 10:16:27,263 - 124775 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SetupAutoGenerationSourceMapping: - __SPLIT__ 2026-07-20 10:16:27,331 - 124775 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-07-20 10:16:27,404 - 124775 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationAppliedDiscount: - __SPLIT__ 2026-07-20 10:16:27,479 - 124775 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-07-20 10:16:27,546 - 124775 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SubWorkOrderAutoGeneration: - __SPLIT__ 2026-07-20 10:16:27,616 - 124775 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-07-20 10:16:27,685 - 124775 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: - __SPLIT__ 2026-07-20 10:16:27,755 - 124775 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-07-20 10:16:27,829 - 124775 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 10:16:27,906 - 124775 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3683328, 3683329, 3683330, 3683331, 3683332, 3683333, 3683324, 3683325, 3683326, 3683327) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:16:28,247 - 124775 - src.utils.log - INFO - βœ… Fetched 10 rows - __SPLIT__ 2026-07-20 10:16:28,320 - 124775 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: 40 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:16:28,662 - 124775 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 40) into ServiceCore.WorkOrderAutoGenerationSalesPersonCommission - __SPLIT__ 2026-07-20 10:16:29,804 - 124775 - src.utils.log - INFO - βœ… All 40 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationSalesPersonCommission in 1 batches - __SPLIT__ 2026-07-20 10:16:29,873 - 124775 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-07-20 10:16:29,944 - 124775 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 10:16:30,012 - 124775 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3683328, 3683329, 3683330, 3683331, 3683332, 3683333, 3683324, 3683325, 3683326, 3683327) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:16:30,353 - 124775 - src.utils.log - INFO - βœ… Fetched 10 rows - __SPLIT__ 2026-07-20 10:16:30,447 - 124775 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationCrews: 49 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:16:30,835 - 124775 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 49) into ServiceCore.WorkOrderAutoGenerationCrews - __SPLIT__ 2026-07-20 10:16:31,981 - 124775 - src.utils.log - INFO - βœ… All 49 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationCrews in 1 batches - __SPLIT__ 2026-07-20 10:16:32,048 - 124775 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-07-20 10:16:32,120 - 124775 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 10:16:32,196 - 124775 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 3683324 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:16:32,535 - 124775 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 10:16:32,604 - 124775 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:16:32,944 - 124775 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-07-20 10:16:33,951 - 124775 - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-07-20 10:16:34,016 - 124775 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-07-20 10:16:34,082 - 124775 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 10:16:34,152 - 124775 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3683328, 3683329, 3683330, 3683331, 3683332, 3683333, 3683325, 3683326, 3683327) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:16:34,485 - 124775 - src.utils.log - INFO - βœ… Fetched 9 rows - __SPLIT__ 2026-07-20 10:16:34,560 - 124775 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 18 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:16:34,899 - 124775 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 18) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-07-20 10:16:36,036 - 124775 - src.utils.log - INFO - βœ… All 18 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-07-20 10:16:36,108 - 124775 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-07-20 10:16:36,177 - 124775 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 124775;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:16:36,507 - 124775 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-20 10:16:36,573 - 124775 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-07-20 10:16:36,690 - 124775 - src.utils.log - INFO - Time took to perform operation: 29.48 - __SPLIT__ 2026-07-20 10:17:22,033 - [124775] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[3683324, 3683333] user_id=43135 company_id=133 project_id=[124775] publish_all=False - __SPLIT__ 2026-07-20 10:17:22,157 - [124775] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[3683324, 3683333] user_id=43135 company_id=133 project_id=[124775] publish_all=False - __SPLIT__ 2026-07-20 10:17:22,223 - [124775] - src.utils.log - INFO - Sequential Work order publish in progress for GenerateWorkOrderHistoryId: [124775] - __SPLIT__ 2026-07-20 10:17:22,291 - [124775] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-20 10:17:22,355 - [124775] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:17:24,402 - [124775] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 10:17:24,467 - [124775] - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-07-20 10:17:24,527 - [124775] - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-07-20 10:17:24,599 - [124775] - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-07-20 10:17:24,667 - [124775] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'InProgress' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124775;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:17:26,587 - [124775] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-20 10:17:26,652 - [124775] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (3683324, 3683333)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:17:26,977 - [124775] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-20 10:17:27,040 - [124775] - src.utils.log - INFO - Inside get_work_order_table - __SPLIT__ 2026-07-20 10:17:27,109 - [124775] - 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 = 150695 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:17:27,446 - [124775] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 10:17:27,513 - [124775] - 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 = 150695 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:17:27,848 - [124775] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 10:17:27,912 - [124775] - 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 = 150695 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:17:28,245 - [124775] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 10:17:28,320 - [124775] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder,BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:17:28,694 - [124775] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 10:17:28,758 - [124775] - 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-07-20 10:17:29,087 - [124775] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-20 10:17:29,148 - [124775] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder, BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:17:29,478 - [124775] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 10:17:29,546 - [124775] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 2 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 133 AND EnitityNumberType = 'WorkOrder'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:17:29,878 - [124775] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 10:17:29,940 - [124775] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 2 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 133 AND EnitityNumberType = 'Invoice'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:17:30,266 - [124775] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 10:17:30,335 - [124775] - 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 = 150695... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:17:30,675 - [124775] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 10:17:30,738 - [124775] - src.utils.log - INFO - πŸ” Fetching data: SELECT x.CompanyId FROM CRM.CompanyMaster x WHERE CompanyKey = 'abcdallas';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:17:31,064 - [124775] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 10:17:31,132 - [124775] - src.utils.log - INFO - πŸ” Fetching data: SELECT CollectionStatus,IsHold,AccountNo FROM CRM.Account a WHERE a.AccountNo = '15020' and a.CompanyId = 121;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:17:31,461 - [124775] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 10:17:31,526 - [124775] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderNo FROM ServiceCore.WorkOrder WHERE WorkOrderNo IN ('1428768', '1428769') AND CompanyId = 133 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:17:31,860 - [124775] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 10:17:31,932 - [124775] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrder (skip triggers): 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:17:32,436 - [124775] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrder (triggers skipped) - __SPLIT__ 2026-07-20 10:17:33,438 - [124775] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrder in 1 batches (triggers skipped) - __SPLIT__ 2026-07-20 10:17:33,682 - [124775] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-07-20 10:17:33,749 - [124775] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.ServiceSetup SET IsInitialWoGenerated = 1 WHERE CompanyId = 133 AND ServiceSetupId = 150695;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:17:34,081 - [124775] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-20 10:17:34,150 - [124775] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkorderId, WorkOrderNo FROM ServiceCore.WorkOrder wo WHERE wo.WorkOrderNo IN ('1428768', '1428769') AND wo.AccountNumber = '15020' AND wo.CompanyId = 133 ... (Thread: ThreadPoolExecutor-5_0) - __SPLIT__ 2026-07-20 10:17:34,490 - [124775] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-20 10:17:34,554 - [124775] - src.utils.log - INFO - Sequential fetching temp table records - __SPLIT__ 2026-07-20 10:17:34,617 - [124775] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationServices woag WHERE woag.WorkOrderAutoGenerationId in (3683324, 3683333)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:17:34,987 - [124775] - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-07-20 10:17:35,054 - [124775] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SubWorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (3683324, 3683333)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:17:35,379 - [124775] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 10:17:35,448 - [124775] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationCrews woag WHERE woag.WorkOrderAutoGenerationId in (3683324, 3683333)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:17:35,795 - [124775] - src.utils.log - INFO - βœ… Fetched 9 rows - __SPLIT__ 2026-07-20 10:17:35,855 - [124775] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationSalesPersonCommission woag WHERE woag.WorkOrderAutoGenerationId in (3683324, 3683333)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:17:36,186 - [124775] - src.utils.log - INFO - βœ… Fetched 8 rows - __SPLIT__ 2026-07-20 10:17:36,256 - [124775] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupAutoGenerationSourceMapping woag WHERE woag.WorkOrderAutoGenerationId in (3683324, 3683333)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:17:36,589 - [124775] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 10:17:36,651 - [124775] - 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 (3683324, 3683333)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:17:37,010 - [124775] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 10:17:37,069 - [124775] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from CRM.LeadNote woag WHERE woag.RefId in (3683324, 3683333) and woag.RefType = 'TempWorkorder';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:17:37,397 - [124775] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 10:17:37,506 - [124775] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment woagca WHERE woagca.WorkOrderAutoGenerationId in (3683324, 3683333);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:17:37,829 - [124775] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 10:17:37,892 - [124775] - src.utils.log - INFO - Updating temp tables - __SPLIT__ 2026-07-20 10:17:37,976 - [124775] - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyKey FROM Common.CompanyMaster cm WHERE CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:17:38,303 - [124775] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 10:17:38,370 - [124775] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 133 AND EnitityNumberType in ('SubWorkOrder'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:17:38,699 - [124775] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 10:17:38,775 - [124775] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 10:17:38,842 - [124775] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishHistory: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:17:39,198 - [124775] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationPublishHistory - __SPLIT__ 2026-07-20 10:17:40,233 - [124775] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishHistory in 1 batches - __SPLIT__ 2026-07-20 10:17:40,306 - [124775] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationPublishHistoryId, WorkOrderNo, ServiceSetupId FROM ServiceCore.WorkOrderAutoGenerationPublishHistory WHERE ServiceSetupId = 150695 AND WorkOrderNo IN ('457091', '6359317') AND GenerateWorkOrderHistoryId = 124775;... (Thread: ThreadPoolExecutor-6_0) - __SPLIT__ 2026-07-20 10:17:40,814 - [124775] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-20 10:17:40,878 - [124775] - src.utils.log - INFO - 🏁 Final merged rows: 2 - __SPLIT__ 2026-07-20 10:17:40,950 - [124775] - src.utils.log - INFO - Sequential Insertion in work order tables begin - __SPLIT__ 2026-07-20 10:17:41,011 - [124775] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 10:17:41,081 - [124775] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderServices: 4 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:17:41,411 - [124775] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 4) into ServiceCore.WorkOrderServices - __SPLIT__ 2026-07-20 10:17:42,406 - [124775] - src.utils.log - INFO - βœ… All 4 rows inserted successfully into ServiceCore.WorkOrderServices in 1 batches - __SPLIT__ 2026-07-20 10:17:42,470 - [124775] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderAppliedDiscount: - __SPLIT__ 2026-07-20 10:17:42,583 - [124775] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 10:17:42,649 - [124775] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderSalesPersonCommission: 8 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:17:42,976 - [124775] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 8) into ServiceCore.WorkOrderSalesPersonCommission - __SPLIT__ 2026-07-20 10:17:43,964 - [124775] - src.utils.log - INFO - βœ… All 8 rows inserted successfully into ServiceCore.WorkOrderSalesPersonCommission in 1 batches - __SPLIT__ 2026-07-20 10:17:44,028 - [124775] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderCommissionAdjustment: - __SPLIT__ 2026-07-20 10:17:44,086 - [124775] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 10:17:44,146 - [124775] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderCrew: 9 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:17:44,475 - [124775] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 9) into ServiceCore.WorkOrderCrew - __SPLIT__ 2026-07-20 10:17:45,458 - [124775] - src.utils.log - INFO - βœ… All 9 rows inserted successfully into ServiceCore.WorkOrderCrew in 1 batches - __SPLIT__ 2026-07-20 10:17:45,520 - [124775] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkorderSourceMapping: - __SPLIT__ 2026-07-20 10:17:45,580 - [124775] - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-07-20 10:17:45,638 - [124775] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 10:17:45,695 - [124775] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishServices: 4 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:17:46,018 - [124775] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 4) into ServiceCore.WorkOrderAutoGenerationPublishServices - __SPLIT__ 2026-07-20 10:17:47,014 - [124775] - src.utils.log - INFO - βœ… All 4 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishServices in 1 batches - __SPLIT__ 2026-07-20 10:17:47,067 - [124775] - 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 = 150695... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:17:47,394 - [124775] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 10:17:47,456 - [124775] - src.utils.log - INFO - Size of Transaction: 2 - __SPLIT__ 2026-07-20 10:17:47,511 - [124775] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:17:47,964 - [124775] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-07-20 10:17:49,012 - [124775] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-07-20 10:17:49,219 - [124775] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-07-20 10:17:49,292 - [124775] - 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 = 133 AND t.TransactionType ='Invoice' AND t.CreatedDate = '2026-07-20 06:17:47.451';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:17:49,757 - [124775] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-20 10:17:49,828 - [124775] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150695;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:17:50,163 - [124775] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 10:17:50,235 - [124775] - src.utils.log - INFO - πŸ“ Executing: UPDATE Billing.[Transaction] SET ModifiedBy = NULL WHERE ModifiedBy IN (12345678910,12345678911) AND CreatedDate = '2026-07-20 06:17:47.451'; ... (Thread: ThreadPoolExecutor-7_0) - __SPLIT__ 2026-07-20 10:17:50,670 - [124775] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-20 10:17:50,745 - [124775] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 10:17:50,817 - [124775] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:17:51,155 - [124775] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.Invoice - __SPLIT__ 2026-07-20 10:17:52,152 - [124775] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-07-20 10:17:52,217 - [124775] - src.utils.log - INFO - πŸ” Fetching data: SELECT InvoiceId, WorkOrderNo FROM Billing.Invoice i WHERE i.WorkOrderNo in ('1428768', '1428769')... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:17:53,221 - [124775] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-20 10:17:53,297 - [124775] - 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 = 150695 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:17:53,625 - [124775] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-20 10:17:53,694 - [124775] - 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 = 150695 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:17:54,031 - [124775] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-20 10:17:54,096 - [124775] - 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 = 150695 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:17:54,430 - [124775] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 10:17:54,547 - [124775] - 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 = 150695 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:17:54,913 - [124775] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 10:17:54,990 - [124775] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150695;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:17:55,322 - [124775] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 10:17:55,396 - [124775] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId, AppliedDiscountAmt as AppliedDiscountAmount,IsActive ,ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 150695;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:17:55,731 - [124775] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 10:17:55,802 - [124775] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId,IsActive,DiscountAmount, IsDiscountPercent,DiscountPercent,DiscountDescription , ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 150695;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:17:56,127 - [124775] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 10:17:56,191 - [124775] - src.utils.log - INFO - Sequential Insertion in invoice tables begin - __SPLIT__ 2026-07-20 10:17:56,252 - [124775] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.AccountDiscountSetup: - __SPLIT__ 2026-07-20 10:17:56,320 - [124775] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 10:17:56,388 - [124775] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceCharges: 4 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:17:56,721 - [124775] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 4) into Billing.InvoiceCharges - __SPLIT__ 2026-07-20 10:17:57,722 - [124775] - src.utils.log - INFO - βœ… All 4 rows inserted successfully into Billing.InvoiceCharges in 1 batches - __SPLIT__ 2026-07-20 10:17:57,783 - [124775] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.DiscountApplied: - __SPLIT__ 2026-07-20 10:17:57,844 - [124775] - src.utils.log - INFO - Invoice Publish Done - __SPLIT__ 2026-07-20 10:17:57,915 - [124775] - src.utils.log - INFO - Updating Next GenerationDate - __SPLIT__ 2026-07-20 10:17:57,976 - [124775] - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, MAX(NextWorkOrderGenerationDate) AS MaxNextWorkOrderGeneration FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 124775 GROUP BY ServiceSetupId; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:17:58,307 - [124775] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 10:17:58,376 - [124775] - src.utils.log - INFO - πŸ”„ Updating next gen date sequentially: inside update_next_workorder_generation - __SPLIT__ 2026-07-20 10:17:58,621 - [124775] - src.utils.log - INFO - πŸ›  Creating temp table #tbl_b41b000d5b - __SPLIT__ 2026-07-20 10:17:58,961 - [124775] - src.utils.log - INFO - πŸ“Œ Bulk inserting 1 rows into #tbl_b41b000d5b - __SPLIT__ 2026-07-20 10:17:59,289 - [124775] - src.utils.log - INFO - πŸ” Running MERGE update to apply changes - __SPLIT__ 2026-07-20 10:17:59,489 - [124775] - src.utils.log - INFO - βœ” SQL reported affected rows: 1 - __SPLIT__ 2026-07-20 10:17:59,698 - [124775] - src.utils.log - INFO - πŸ” Verified successfully updated 1 rows via #tbl_b41b000d5b - __SPLIT__ 2026-07-20 10:17:59,758 - [124775] - src.utils.log - INFO - πŸŽ‰ Successfully updated NextGenerationDate using temp table #tbl_b41b000d5b - __SPLIT__ 2026-07-20 10:17:59,827 - [124775] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 124775 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:18:00,163 - [124775] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 10:18:00,231 - [124775] - src.utils.log - INFO - Sequential deletion from temp tables begin - __SPLIT__ 2026-07-20 10:18:00,294 - [124775] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId in (3683324, 3683333) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:18:00,754 - [124775] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 10:18:00,820 - [124775] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId in (3683324, 3683333) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:18:01,231 - [124775] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 10:18:01,328 - [124775] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId in (3683324, 3683333) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:18:01,665 - [124775] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 10:18:01,737 - [124775] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId in (3683324, 3683333) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:18:02,141 - [124775] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 10:18:02,205 - [124775] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId in (3683324, 3683333) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:18:02,542 - [124775] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 10:18:02,606 - [124775] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (3683324, 3683333) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:18:02,985 - [124775] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 10:18:03,081 - [124775] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId in (3683324, 3683333) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:18:03,417 - [124775] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 10:18:03,485 - [124775] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (3683324, 3683333) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:18:03,908 - [124775] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 10:18:03,967 - [124775] - src.utils.log - INFO - Work order published ids: (3683324, 3683333) - __SPLIT__ 2026-07-20 10:18:04,033 - [124775] - src.utils.log - INFO - Time took to perform operation in publishing [124775]: 41.74 - __SPLIT__ 2026-07-20 10:18:04,097 - [124775] - src.utils.log - INFO - Publish Completed for GenerateWorkOrderHistoryId: [124775] - __SPLIT__ 2026-07-20 10:18:04,162 - [124775] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-07-20 06:18:03.967' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124775;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:18:04,496 - [124775] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-20 10:21:36,442 - 124776 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=124776 - __SPLIT__ 2026-07-20 10:21:36,564 - 124776 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 124776 - __SPLIT__ 2026-07-20 10:21:36,634 - 124776 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-20 10:21:36,705 - 124776 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:21:38,760 - 124776 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 10:21:38,828 - 124776 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-07-20 10:21:38,897 - 124776 - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-07-20 10:21:38,964 - 124776 - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-07-20 10:21:39,037 - 124776 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 124776;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:21:40,926 - 124776 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-20 10:21:40,999 - 124776 - 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 = 124776), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 124776), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 124776 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-07-20 10:21:41,374 - 124776 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 10:21:41,443 - 124776 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 124776;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:21:41,772 - 124776 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 10:21:41,846 - 124776 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-07-20 10:21:41,916 - 124776 - 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 = 14842... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:21:42,250 - 124776 - src.utils.log - INFO - βœ… Fetched 60 rows - __SPLIT__ 2026-07-20 10:21:42,320 - 124776 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-07-20 10:21:42,390 - 124776 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-07-20 10:21:42,459 - 124776 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150696;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:21:42,786 - 124776 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 10:21:42,896 - 124776 - 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-07-20 00:00:00' and ServiceDate <= '2026-12-31 00:00:00' and ServiceSetupId = 150696 and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:21:43,230 - 124776 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 10:21:43,842 - 124776 - src.utils.log - INFO - Generating work orders for setup: 150696 - __SPLIT__ 2026-07-20 10:21:44,129 - 124776 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 1132;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:21:44,453 - 124776 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 10:21:44,556 - 124776 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-07-20 10:21:44,624 - 124776 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=133 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:21:44,950 - 124776 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 10:21:45,017 - 124776 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-07-20 10:21:45,082 - 124776 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-07-20 10:21:45,146 - 124776 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150696 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:21:45,521 - 124776 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 10:21:45,582 - 124776 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150696 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:21:45,957 - 124776 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 10:21:46,024 - 124776 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150696 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:21:46,369 - 124776 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 10:21:46,438 - 124776 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150696 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:21:46,860 - 124776 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 10:21:46,919 - 124776 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150696 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:21:47,332 - 124776 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 10:21:47,444 - 124776 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150696 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:21:47,784 - 124776 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 10:21:47,852 - 124776 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150696 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:21:48,179 - 124776 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 10:21:48,245 - 124776 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150696 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:21:48,719 - 124776 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 10:21:48,779 - 124776 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 10:21:48,840 - 124776 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 22 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:21:49,205 - 124776 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 22) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-07-20 10:21:51,157 - 124776 - src.utils.log - INFO - βœ… All 22 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-07-20 10:21:51,233 - 124776 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 22 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-07-16 14:51:40.778' and ServiceSetupId = 150696... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:21:51,601 - 124776 - src.utils.log - INFO - βœ… Fetched 22 rows - __SPLIT__ 2026-07-20 10:21:51,664 - 124776 - src.utils.log - INFO - Id's of work order inserted to DB: [3683334 3683335 3683336 3683337 3683338 3683339 3683340 3683341 3683342 3683343 3683344 3683345 3683346 3683347 3683348 3683349 3683350 3683351 3683352 3683353 3683354 3683355] - __SPLIT__ 2026-07-20 10:21:51,730 - 124776 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150696;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:21:52,058 - 124776 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 10:21:52,137 - 124776 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-07-20 10:21:52,197 - 124776 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId = 150696... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:21:52,543 - 124776 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 10:21:52,612 - 124776 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId = 150696... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:21:52,939 - 124776 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 10:21:53,063 - 124776 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId = 150696... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:21:53,399 - 124776 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-20 10:21:53,471 - 124776 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId = 150696... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:21:53,802 - 124776 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 10:21:53,879 - 124776 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId = 150696... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:21:54,209 - 124776 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 10:21:54,284 - 124776 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId = 150696;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:21:54,622 - 124776 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 10:21:54,692 - 124776 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId = 150696;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:21:55,032 - 124776 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 10:21:55,107 - 124776 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId = 150696;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:21:55,528 - 124776 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 10:21:55,602 - 124776 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId = 150696;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:21:55,937 - 124776 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 10:21:56,023 - 124776 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-07-20 10:21:56,095 - 124776 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-07-20 10:21:56,168 - 124776 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-07-20 10:21:56,250 - 124776 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.CommunicationPreferencesServiceReportNotification: - __SPLIT__ 2026-07-20 10:21:56,320 - 124776 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-07-20 10:21:56,394 - 124776 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SetupAutoGenerationSourceMapping: - __SPLIT__ 2026-07-20 10:21:56,516 - 124776 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-07-20 10:21:56,586 - 124776 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationAppliedDiscount: - __SPLIT__ 2026-07-20 10:21:56,659 - 124776 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-07-20 10:21:56,728 - 124776 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SubWorkOrderAutoGeneration: - __SPLIT__ 2026-07-20 10:21:56,800 - 124776 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-07-20 10:21:56,869 - 124776 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: - __SPLIT__ 2026-07-20 10:21:56,938 - 124776 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-07-20 10:21:57,012 - 124776 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: - __SPLIT__ 2026-07-20 10:21:57,082 - 124776 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-07-20 10:21:57,152 - 124776 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 10:21:57,226 - 124776 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3683334, 3683335, 3683336, 3683337, 3683338, 3683339, 3683340, 3683341, 3683342, 3683343, 3683344, 3683345, 3683346, 3683347, 3683348, 3683349, 3683350, 3683351, 3683352, 3683353, 3683354, 3683355) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:21:57,565 - 124776 - src.utils.log - INFO - βœ… Fetched 22 rows - __SPLIT__ 2026-07-20 10:21:57,640 - 124776 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationCrews: 22 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:21:57,981 - 124776 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 22) into ServiceCore.WorkOrderAutoGenerationCrews - __SPLIT__ 2026-07-20 10:21:59,110 - 124776 - src.utils.log - INFO - βœ… All 22 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationCrews in 1 batches - __SPLIT__ 2026-07-20 10:21:59,187 - 124776 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-07-20 10:21:59,257 - 124776 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 10:21:59,329 - 124776 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 3683334 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:21:59,656 - 124776 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 10:21:59,728 - 124776 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:22:00,110 - 124776 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-07-20 10:22:01,090 - 124776 - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-07-20 10:22:01,157 - 124776 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-07-20 10:22:01,222 - 124776 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 10:22:01,291 - 124776 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3683335, 3683336, 3683337, 3683338, 3683339, 3683340, 3683341, 3683342, 3683343, 3683344, 3683345, 3683346, 3683347, 3683348, 3683349, 3683350, 3683351, 3683352, 3683353, 3683354, 3683355) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:22:01,621 - 124776 - src.utils.log - INFO - βœ… Fetched 21 rows - __SPLIT__ 2026-07-20 10:22:01,689 - 124776 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 21 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:22:02,023 - 124776 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 21) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-07-20 10:22:03,148 - 124776 - src.utils.log - INFO - βœ… All 21 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-07-20 10:22:03,208 - 124776 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-07-20 10:22:03,268 - 124776 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 124776;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:22:03,600 - 124776 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-20 10:22:03,658 - 124776 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-07-20 10:22:03,714 - 124776 - src.utils.log - INFO - Time took to perform operation: 27.03 - __SPLIT__ 2026-07-20 10:23:08,233 - [124776] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[] user_id=43135 company_id=133 project_id=[124776] publish_all=True - __SPLIT__ 2026-07-20 10:23:08,359 - [124776] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[] user_id=43135 company_id=133 project_id=[124776] publish_all=True - __SPLIT__ 2026-07-20 10:23:08,424 - [124776] - src.utils.log - INFO - Sequential Work order publish in progress for GenerateWorkOrderHistoryId: [124776] - __SPLIT__ 2026-07-20 10:23:08,486 - [124776] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-20 10:23:08,550 - [124776] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:23:10,582 - [124776] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 10:23:10,653 - [124776] - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-07-20 10:23:10,720 - [124776] - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-07-20 10:23:10,796 - [124776] - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-07-20 10:23:10,870 - [124776] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'InProgress' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124776;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:23:12,797 - [124776] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-20 10:23:12,876 - [124776] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGeneration woag WHERE woag.GenerateWorkOrderHistoryId = 124776... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:23:13,257 - [124776] - src.utils.log - INFO - βœ… Fetched 22 rows - __SPLIT__ 2026-07-20 10:23:13,330 - [124776] - src.utils.log - INFO - Inside get_work_order_table - __SPLIT__ 2026-07-20 10:23:13,409 - [124776] - 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 = 150696 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:23:13,764 - [124776] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 10:23:13,833 - [124776] - 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 = 150696 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:23:14,173 - [124776] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 10:23:14,242 - [124776] - 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 = 150696 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:23:14,645 - [124776] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 10:23:14,720 - [124776] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder,BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:23:15,111 - [124776] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 10:23:15,184 - [124776] - 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-07-20 10:23:15,515 - [124776] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-20 10:23:15,592 - [124776] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder, BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:23:15,935 - [124776] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 10:23:16,042 - [124776] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 22 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 133 AND EnitityNumberType = 'WorkOrder'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:23:16,382 - [124776] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 10:23:16,454 - [124776] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 22 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 133 AND EnitityNumberType = 'Invoice'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:23:16,801 - [124776] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 10:23:16,881 - [124776] - 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 = 150696... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:23:17,220 - [124776] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 10:23:17,301 - [124776] - src.utils.log - INFO - πŸ” Fetching data: SELECT x.CompanyId FROM CRM.CompanyMaster x WHERE CompanyKey = 'abcdallas';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:23:17,632 - [124776] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 10:23:17,700 - [124776] - src.utils.log - INFO - πŸ” Fetching data: SELECT CollectionStatus,IsHold,AccountNo FROM CRM.Account a WHERE a.AccountNo = 'stag' and a.CompanyId = 121;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:23:18,039 - [124776] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 10:23:18,115 - [124776] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderNo FROM ServiceCore.WorkOrder WHERE WorkOrderNo IN ('1428770', '1428771', '1428772', '1428773', '1428774', '1428775', '1428776', '1428777', '1428778', '1428779', '1428780', '1428781', '1428782', '1428783', '1428784', '1428785', '1428786', '1428787', '1428788', '1428789', '1428790', '1428791') AND CompanyId = 133 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:23:18,452 - [124776] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 10:23:18,524 - [124776] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrder (skip triggers): 22 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:23:19,034 - [124776] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 22) into ServiceCore.WorkOrder (triggers skipped) - __SPLIT__ 2026-07-20 10:23:21,020 - [124776] - src.utils.log - INFO - βœ… All 22 rows inserted successfully into ServiceCore.WorkOrder in 1 batches (triggers skipped) - __SPLIT__ 2026-07-20 10:23:21,266 - [124776] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-07-20 10:23:21,330 - [124776] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.ServiceSetup SET IsInitialWoGenerated = 1 WHERE CompanyId = 133 AND ServiceSetupId = 150696;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:23:21,659 - [124776] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-20 10:23:21,726 - [124776] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkorderId, WorkOrderNo FROM ServiceCore.WorkOrder wo WHERE wo.WorkOrderNo IN ('1428770', '1428771', '1428772', '1428773', '1428774', '1428775', '1428776', '1428777', '1428778', '1428779', '1428780', '1428781', '1428782', '1428783', '1428784', '1428785', '1428786', '1428787', '1428788', '1428789', '1428790', '1428791') AND wo.AccountNumber = 'stag' AND wo.CompanyId = 133 ... (Thread: ThreadPoolExecutor-8_0) - __SPLIT__ 2026-07-20 10:23:22,061 - [124776] - src.utils.log - INFO - βœ… Fetched 22 rows - __SPLIT__ 2026-07-20 10:23:22,127 - [124776] - src.utils.log - INFO - Sequential fetching temp table records - __SPLIT__ 2026-07-20 10:23:22,189 - [124776] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationServices woag WHERE woag.WorkOrderAutoGenerationId in (3683334, 3683335, 3683336, 3683337, 3683338, 3683339, 3683340, 3683341, 3683342, 3683343, 3683344, 3683345, 3683346, 3683347, 3683348, 3683349, 3683350, 3683351, 3683352, 3683353, 3683354, 3683355)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:23:22,604 - [124776] - src.utils.log - INFO - βœ… Fetched 22 rows - __SPLIT__ 2026-07-20 10:23:22,674 - [124776] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SubWorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (3683334, 3683335, 3683336, 3683337, 3683338, 3683339, 3683340, 3683341, 3683342, 3683343, 3683344, 3683345, 3683346, 3683347, 3683348, 3683349, 3683350, 3683351, 3683352, 3683353, 3683354, 3683355)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:23:23,015 - [124776] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 10:23:23,088 - [124776] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationCrews woag WHERE woag.WorkOrderAutoGenerationId in (3683334, 3683335, 3683336, 3683337, 3683338, 3683339, 3683340, 3683341, 3683342, 3683343, 3683344, 3683345, 3683346, 3683347, 3683348, 3683349, 3683350, 3683351, 3683352, 3683353, 3683354, 3683355)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:23:23,470 - [124776] - src.utils.log - INFO - βœ… Fetched 22 rows - __SPLIT__ 2026-07-20 10:23:23,543 - [124776] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationSalesPersonCommission woag WHERE woag.WorkOrderAutoGenerationId in (3683334, 3683335, 3683336, 3683337, 3683338, 3683339, 3683340, 3683341, 3683342, 3683343, 3683344, 3683345, 3683346, 3683347, 3683348, 3683349, 3683350, 3683351, 3683352, 3683353, 3683354, 3683355)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:23:23,872 - [124776] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 10:23:23,935 - [124776] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupAutoGenerationSourceMapping woag WHERE woag.WorkOrderAutoGenerationId in (3683334, 3683335, 3683336, 3683337, 3683338, 3683339, 3683340, 3683341, 3683342, 3683343, 3683344, 3683345, 3683346, 3683347, 3683348, 3683349, 3683350, 3683351, 3683352, 3683353, 3683354, 3683355)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:23:24,272 - [124776] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 10:23:24,339 - [124776] - 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 (3683334, 3683335, 3683336, 3683337, 3683338, 3683339, 3683340, 3683341, 3683342, 3683343, 3683344, 3683345, 3683346, 3683347, 3683348, 3683349, 3683350, 3683351, 3683352, 3683353, 3683354, 3683355)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:23:24,714 - [124776] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 10:23:24,774 - [124776] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from CRM.LeadNote woag WHERE woag.RefId in (3683334, 3683335, 3683336, 3683337, 3683338, 3683339, 3683340, 3683341, 3683342, 3683343, 3683344, 3683345, 3683346, 3683347, 3683348, 3683349, 3683350, 3683351, 3683352, 3683353, 3683354, 3683355) and woag.RefType = 'TempWorkorder';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:23:25,109 - [124776] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 10:23:25,222 - [124776] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment woagca WHERE woagca.WorkOrderAutoGenerationId in (3683334, 3683335, 3683336, 3683337, 3683338, 3683339, 3683340, 3683341, 3683342, 3683343, 3683344, 3683345, 3683346, 3683347, 3683348, 3683349, 3683350, 3683351, 3683352, 3683353, 3683354, 3683355);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:23:25,550 - [124776] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 10:23:25,630 - [124776] - src.utils.log - INFO - Updating temp tables - __SPLIT__ 2026-07-20 10:23:25,710 - [124776] - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyKey FROM Common.CompanyMaster cm WHERE CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:23:26,039 - [124776] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 10:23:26,107 - [124776] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 133 AND EnitityNumberType in ('SubWorkOrder'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:23:26,435 - [124776] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 10:23:26,503 - [124776] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 10:23:26,566 - [124776] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishHistory: 22 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:23:26,929 - [124776] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 22) into ServiceCore.WorkOrderAutoGenerationPublishHistory - __SPLIT__ 2026-07-20 10:23:28,420 - [124776] - src.utils.log - INFO - βœ… All 22 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishHistory in 1 batches - __SPLIT__ 2026-07-20 10:23:28,483 - [124776] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationPublishHistoryId, WorkOrderNo, ServiceSetupId FROM ServiceCore.WorkOrderAutoGenerationPublishHistory WHERE ServiceSetupId = 150696 AND WorkOrderNo IN ('419632', '2651038', '3936574', '5005859', '5383481', '6459258', '5201329', '7745029', '4511282', '5410006', '7682619', '5750853', '4606409', '1565891', '5016946', '6899710', '3631940', '7311184', '7987787', '6849371', '9299014', '9739868') AND GenerateWorkOrderHistoryId = 124776;... (Thread: ThreadPoolExecutor-9_0) - __SPLIT__ 2026-07-20 10:23:28,972 - [124776] - src.utils.log - INFO - βœ… Fetched 22 rows - __SPLIT__ 2026-07-20 10:23:29,039 - [124776] - src.utils.log - INFO - 🏁 Final merged rows: 22 - __SPLIT__ 2026-07-20 10:23:29,103 - [124776] - src.utils.log - INFO - Sequential Insertion in work order tables begin - __SPLIT__ 2026-07-20 10:23:29,170 - [124776] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 10:23:29,240 - [124776] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderServices: 22 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:23:29,582 - [124776] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 22) into ServiceCore.WorkOrderServices - __SPLIT__ 2026-07-20 10:23:30,603 - [124776] - src.utils.log - INFO - βœ… All 22 rows inserted successfully into ServiceCore.WorkOrderServices in 1 batches - __SPLIT__ 2026-07-20 10:23:30,675 - [124776] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderAppliedDiscount: - __SPLIT__ 2026-07-20 10:23:30,800 - [124776] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderSalesPersonCommission: - __SPLIT__ 2026-07-20 10:23:30,873 - [124776] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderCommissionAdjustment: - __SPLIT__ 2026-07-20 10:23:30,946 - [124776] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 10:23:31,011 - [124776] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderCrew: 22 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:23:31,348 - [124776] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 22) into ServiceCore.WorkOrderCrew - __SPLIT__ 2026-07-20 10:23:32,368 - [124776] - src.utils.log - INFO - βœ… All 22 rows inserted successfully into ServiceCore.WorkOrderCrew in 1 batches - __SPLIT__ 2026-07-20 10:23:32,442 - [124776] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkorderSourceMapping: - __SPLIT__ 2026-07-20 10:23:32,520 - [124776] - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-07-20 10:23:32,590 - [124776] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 10:23:32,660 - [124776] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishServices: 22 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:23:33,006 - [124776] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 22) into ServiceCore.WorkOrderAutoGenerationPublishServices - __SPLIT__ 2026-07-20 10:23:34,165 - [124776] - src.utils.log - INFO - βœ… All 22 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishServices in 1 batches - __SPLIT__ 2026-07-20 10:23:34,236 - [124776] - 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 = 150696... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:23:34,567 - [124776] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 10:23:34,643 - [124776] - src.utils.log - INFO - Size of Transaction: 22 - __SPLIT__ 2026-07-20 10:23:34,711 - [124776] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 22 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:23:35,185 - [124776] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 22) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-07-20 10:23:36,218 - [124776] - src.utils.log - INFO - βœ… All 22 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-07-20 10:23:36,425 - [124776] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-07-20 10:23:36,495 - [124776] - 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) and t.CompanyId = 133 AND t.TransactionType ='Invoice' AND t.CreatedDate = '2026-07-20 06:23:34.638';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:23:36,998 - [124776] - src.utils.log - INFO - βœ… Fetched 22 rows - __SPLIT__ 2026-07-20 10:23:37,075 - [124776] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150696;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:23:37,412 - [124776] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 10:23:37,491 - [124776] - 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) AND CreatedDate = '2026-07-20 06:23:34.638'; ... (Thread: ThreadPoolExecutor-10_0) - __SPLIT__ 2026-07-20 10:23:37,924 - [124776] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-20 10:23:38,001 - [124776] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 10:23:38,073 - [124776] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 22 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:23:38,427 - [124776] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 22) into Billing.Invoice - __SPLIT__ 2026-07-20 10:23:39,587 - [124776] - src.utils.log - INFO - βœ… All 22 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-07-20 10:23:39,656 - [124776] - src.utils.log - INFO - πŸ” Fetching data: SELECT InvoiceId, WorkOrderNo FROM Billing.Invoice i WHERE i.WorkOrderNo in ('1428770', '1428791', '1428790', '1428789', '1428788', '1428786', '1428787', '1428785', '1428784', '1428782', '1428781', '1428780', '1428783', '1428778', '1428779', '1428777', '1428776', '1428774', '1428773', '1428772', '1428775', '1428771')... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:23:41,631 - [124776] - src.utils.log - INFO - βœ… Fetched 22 rows - __SPLIT__ 2026-07-20 10:23:41,709 - [124776] - 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 = 150696 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:23:42,053 - [124776] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 10:23:42,133 - [124776] - 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 = 150696 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:23:42,477 - [124776] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 10:23:42,550 - [124776] - 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 = 150696 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:23:42,892 - [124776] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 10:23:42,965 - [124776] - 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 = 150696 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:23:43,303 - [124776] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 10:23:43,396 - [124776] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150696;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:23:43,787 - [124776] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 10:23:43,865 - [124776] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId, AppliedDiscountAmt as AppliedDiscountAmount,IsActive ,ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 150696;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:23:44,209 - [124776] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 10:23:44,286 - [124776] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId,IsActive,DiscountAmount, IsDiscountPercent,DiscountPercent,DiscountDescription , ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 150696;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:23:44,625 - [124776] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 10:23:44,701 - [124776] - src.utils.log - INFO - Sequential Insertion in invoice tables begin - __SPLIT__ 2026-07-20 10:23:44,770 - [124776] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.AccountDiscountSetup: - __SPLIT__ 2026-07-20 10:23:44,845 - [124776] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 10:23:44,920 - [124776] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceCharges: 22 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:23:45,264 - [124776] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 22) into Billing.InvoiceCharges - __SPLIT__ 2026-07-20 10:23:46,420 - [124776] - src.utils.log - INFO - βœ… All 22 rows inserted successfully into Billing.InvoiceCharges in 1 batches - __SPLIT__ 2026-07-20 10:23:46,494 - [124776] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.DiscountApplied: - __SPLIT__ 2026-07-20 10:23:46,561 - [124776] - src.utils.log - INFO - Invoice Publish Done - __SPLIT__ 2026-07-20 10:23:46,635 - [124776] - src.utils.log - INFO - Updating Next GenerationDate - __SPLIT__ 2026-07-20 10:23:46,712 - [124776] - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, MAX(NextWorkOrderGenerationDate) AS MaxNextWorkOrderGeneration FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 124776 GROUP BY ServiceSetupId; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:23:47,053 - [124776] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 10:23:47,134 - [124776] - src.utils.log - INFO - πŸ”„ Updating next gen date sequentially: inside update_next_workorder_generation - __SPLIT__ 2026-07-20 10:23:47,342 - [124776] - src.utils.log - INFO - πŸ›  Creating temp table #tbl_d46f99e207 - __SPLIT__ 2026-07-20 10:23:47,681 - [124776] - src.utils.log - INFO - πŸ“Œ Bulk inserting 1 rows into #tbl_d46f99e207 - __SPLIT__ 2026-07-20 10:23:48,022 - [124776] - src.utils.log - INFO - πŸ” Running MERGE update to apply changes - __SPLIT__ 2026-07-20 10:23:48,276 - [124776] - src.utils.log - INFO - βœ” SQL reported affected rows: 1 - __SPLIT__ 2026-07-20 10:23:48,478 - [124776] - src.utils.log - INFO - πŸ” Verified successfully updated 1 rows via #tbl_d46f99e207 - __SPLIT__ 2026-07-20 10:23:48,553 - [124776] - src.utils.log - INFO - πŸŽ‰ Successfully updated NextGenerationDate using temp table #tbl_d46f99e207 - __SPLIT__ 2026-07-20 10:23:48,621 - [124776] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 124776 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:23:48,954 - [124776] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 10:23:49,027 - [124776] - src.utils.log - INFO - Sequential deletion from temp tables begin - __SPLIT__ 2026-07-20 10:23:49,092 - [124776] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId in (3683334, 3683335, 3683336, 3683337, 3683338, 3683339, 3683340, 3683341, 3683342, 3683343, 3683344, 3683345, 3683346, 3683347, 3683348, 3683349, 3683350, 3683351, 3683352, 3683353, 3683354, 3683355) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:23:49,607 - [124776] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 10:23:49,675 - [124776] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId in (3683334, 3683335, 3683336, 3683337, 3683338, 3683339, 3683340, 3683341, 3683342, 3683343, 3683344, 3683345, 3683346, 3683347, 3683348, 3683349, 3683350, 3683351, 3683352, 3683353, 3683354, 3683355) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:23:50,130 - [124776] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 10:23:50,191 - [124776] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId in (3683334, 3683335, 3683336, 3683337, 3683338, 3683339, 3683340, 3683341, 3683342, 3683343, 3683344, 3683345, 3683346, 3683347, 3683348, 3683349, 3683350, 3683351, 3683352, 3683353, 3683354, 3683355) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:23:50,525 - [124776] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 10:23:50,601 - [124776] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId in (3683334, 3683335, 3683336, 3683337, 3683338, 3683339, 3683340, 3683341, 3683342, 3683343, 3683344, 3683345, 3683346, 3683347, 3683348, 3683349, 3683350, 3683351, 3683352, 3683353, 3683354, 3683355) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:23:51,038 - [124776] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 10:23:51,098 - [124776] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId in (3683334, 3683335, 3683336, 3683337, 3683338, 3683339, 3683340, 3683341, 3683342, 3683343, 3683344, 3683345, 3683346, 3683347, 3683348, 3683349, 3683350, 3683351, 3683352, 3683353, 3683354, 3683355) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:23:51,440 - [124776] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 10:23:51,508 - [124776] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (3683334, 3683335, 3683336, 3683337, 3683338, 3683339, 3683340, 3683341, 3683342, 3683343, 3683344, 3683345, 3683346, 3683347, 3683348, 3683349, 3683350, 3683351, 3683352, 3683353, 3683354, 3683355) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:23:51,840 - [124776] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 10:23:51,906 - [124776] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId in (3683334, 3683335, 3683336, 3683337, 3683338, 3683339, 3683340, 3683341, 3683342, 3683343, 3683344, 3683345, 3683346, 3683347, 3683348, 3683349, 3683350, 3683351, 3683352, 3683353, 3683354, 3683355) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:23:52,245 - [124776] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 10:23:52,369 - [124776] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (3683334, 3683335, 3683336, 3683337, 3683338, 3683339, 3683340, 3683341, 3683342, 3683343, 3683344, 3683345, 3683346, 3683347, 3683348, 3683349, 3683350, 3683351, 3683352, 3683353, 3683354, 3683355) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:23:53,641 - [124776] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 10:23:53,715 - [124776] - src.utils.log - INFO - Work order published ids: (3683334, 3683335, 3683336, 3683337, 3683338, 3683339, 3683340, 3683341, 3683342, 3683343, 3683344, 3683345, 3683346, 3683347, 3683348, 3683349, 3683350, 3683351, 3683352, 3683353, 3683354, 3683355) - __SPLIT__ 2026-07-20 10:23:53,788 - [124776] - src.utils.log - INFO - Time took to perform operation in publishing [124776]: 45.3 - __SPLIT__ 2026-07-20 10:23:53,861 - [124776] - src.utils.log - INFO - Publish Completed for GenerateWorkOrderHistoryId: [124776] - __SPLIT__ 2026-07-20 10:23:53,930 - [124776] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-07-20 06:23:53.715' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124776;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:23:54,272 - [124776] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-20 10:30:07,190 - 124778 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=124778 - __SPLIT__ 2026-07-20 10:30:07,313 - 124778 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 124778 - __SPLIT__ 2026-07-20 10:30:07,376 - 124778 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-20 10:30:07,442 - 124778 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:30:09,486 - 124778 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 10:30:09,547 - 124778 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-07-20 10:30:09,613 - 124778 - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-07-20 10:30:09,679 - 124778 - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-07-20 10:30:09,743 - 124778 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 124778;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:30:11,632 - 124778 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-20 10:30:11,699 - 124778 - 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 = 124778), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 124778), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 124778 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-07-20 10:30:12,058 - 124778 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 10:30:12,117 - 124778 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 124778;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:30:12,443 - 124778 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 10:30:12,512 - 124778 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-07-20 10:30:12,581 - 124778 - 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 = 14842... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:30:12,914 - 124778 - src.utils.log - INFO - βœ… Fetched 60 rows - __SPLIT__ 2026-07-20 10:30:12,982 - 124778 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-07-20 10:30:13,048 - 124778 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-07-20 10:30:13,116 - 124778 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150697;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:30:13,442 - 124778 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 10:30:13,556 - 124778 - 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-07-20 00:00:00' and ServiceDate <= '2026-12-31 00:00:00' and ServiceSetupId = 150697 and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:30:13,882 - 124778 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 10:30:14,502 - 124778 - src.utils.log - INFO - Generating work orders for setup: 150697 - __SPLIT__ 2026-07-20 10:30:14,714 - 124778 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 1132;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:30:15,043 - 124778 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 10:30:15,153 - 124778 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-07-20 10:30:15,226 - 124778 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=133 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:30:15,552 - 124778 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 10:30:15,620 - 124778 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-07-20 10:30:15,686 - 124778 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-07-20 10:30:15,749 - 124778 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150697 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:30:16,118 - 124778 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 10:30:16,181 - 124778 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150697 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:30:16,553 - 124778 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 10:30:16,620 - 124778 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150697 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:30:16,952 - 124778 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 10:30:17,014 - 124778 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150697 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:30:17,383 - 124778 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 10:30:17,446 - 124778 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150697 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:30:17,818 - 124778 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 10:30:17,935 - 124778 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150697 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:30:18,271 - 124778 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 10:30:18,333 - 124778 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150697 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:30:18,663 - 124778 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 10:30:18,729 - 124778 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150697 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:30:19,176 - 124778 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 10:30:19,243 - 124778 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 10:30:19,314 - 124778 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 22 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:30:19,692 - 124778 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 22) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-07-20 10:30:21,674 - 124778 - src.utils.log - INFO - βœ… All 22 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-07-20 10:30:21,736 - 124778 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 22 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-07-16 14:51:40.585' and ServiceSetupId = 150697... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:30:22,101 - 124778 - src.utils.log - INFO - βœ… Fetched 22 rows - __SPLIT__ 2026-07-20 10:30:22,164 - 124778 - src.utils.log - INFO - Id's of work order inserted to DB: [3683359 3683360 3683361 3683362 3683363 3683364 3683365 3683366 3683367 3683368 3683369 3683370 3683371 3683372 3683373 3683374 3683375 3683376 3683377 3683378 3683379 3683380] - __SPLIT__ 2026-07-20 10:30:22,232 - 124778 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150697;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:30:22,551 - 124778 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 10:30:22,618 - 124778 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-07-20 10:30:22,677 - 124778 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId = 150697... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:30:23,000 - 124778 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 10:30:23,066 - 124778 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId = 150697... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:30:23,410 - 124778 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 10:30:23,544 - 124778 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId = 150697... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:30:23,888 - 124778 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 10:30:23,957 - 124778 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId = 150697... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:30:24,290 - 124778 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 10:30:24,362 - 124778 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId = 150697... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:30:24,691 - 124778 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 10:30:24,766 - 124778 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId = 150697;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:30:25,111 - 124778 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 10:30:25,182 - 124778 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId = 150697;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:30:25,513 - 124778 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 10:30:25,583 - 124778 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId = 150697;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:30:26,003 - 124778 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 10:30:26,076 - 124778 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId = 150697;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:30:26,409 - 124778 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 10:30:26,490 - 124778 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-07-20 10:30:26,564 - 124778 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-07-20 10:30:26,635 - 124778 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-07-20 10:30:26,706 - 124778 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.CommunicationPreferencesServiceReportNotification: - __SPLIT__ 2026-07-20 10:30:26,780 - 124778 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-07-20 10:30:26,858 - 124778 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SetupAutoGenerationSourceMapping: - __SPLIT__ 2026-07-20 10:30:26,974 - 124778 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-07-20 10:30:27,041 - 124778 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationAppliedDiscount: - __SPLIT__ 2026-07-20 10:30:27,108 - 124778 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-07-20 10:30:27,169 - 124778 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SubWorkOrderAutoGeneration: - __SPLIT__ 2026-07-20 10:30:27,230 - 124778 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-07-20 10:30:27,294 - 124778 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: - __SPLIT__ 2026-07-20 10:30:27,361 - 124778 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-07-20 10:30:27,424 - 124778 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: - __SPLIT__ 2026-07-20 10:30:27,488 - 124778 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-07-20 10:30:27,546 - 124778 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 10:30:27,616 - 124778 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 3683359 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:30:27,935 - 124778 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 10:30:28,016 - 124778 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationCrews: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:30:28,351 - 124778 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderAutoGenerationCrews - __SPLIT__ 2026-07-20 10:30:29,341 - 124778 - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationCrews in 1 batches - __SPLIT__ 2026-07-20 10:30:29,399 - 124778 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-07-20 10:30:29,464 - 124778 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 10:30:29,533 - 124778 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 3683359 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:30:29,857 - 124778 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 10:30:29,914 - 124778 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:30:30,294 - 124778 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-07-20 10:30:31,279 - 124778 - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-07-20 10:30:31,337 - 124778 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-07-20 10:30:31,401 - 124778 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 10:30:31,468 - 124778 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3683360, 3683361, 3683362, 3683363, 3683364, 3683365, 3683366, 3683367, 3683368, 3683369, 3683370, 3683371, 3683372, 3683373, 3683374, 3683375, 3683376, 3683377, 3683378, 3683379, 3683380) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:30:31,791 - 124778 - src.utils.log - INFO - βœ… Fetched 21 rows - __SPLIT__ 2026-07-20 10:30:31,854 - 124778 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 21 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:30:32,183 - 124778 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 21) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-07-20 10:30:33,297 - 124778 - src.utils.log - INFO - βœ… All 21 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-07-20 10:30:33,367 - 124778 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-07-20 10:30:33,433 - 124778 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 124778;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:30:33,751 - 124778 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-20 10:30:33,811 - 124778 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-07-20 10:30:33,878 - 124778 - src.utils.log - INFO - Time took to perform operation: 26.44 - __SPLIT__ 2026-07-20 10:35:42,799 - 124779 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=124779 - __SPLIT__ 2026-07-20 10:35:42,910 - 124779 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 124779 - __SPLIT__ 2026-07-20 10:35:42,982 - 124779 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-20 10:35:43,043 - 124779 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:35:45,184 - 124779 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 10:35:45,259 - 124779 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-07-20 10:35:45,317 - 124779 - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-07-20 10:35:45,386 - 124779 - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-07-20 10:35:45,450 - 124779 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 124779;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:35:47,363 - 124779 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-20 10:35:47,462 - 124779 - 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 = 124779), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 124779), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 124779 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-07-20 10:35:47,834 - 124779 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 10:35:47,905 - 124779 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 124779;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:35:48,239 - 124779 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 10:35:48,305 - 124779 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-07-20 10:35:48,375 - 124779 - 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 = 14842... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:35:48,709 - 124779 - src.utils.log - INFO - βœ… Fetched 60 rows - __SPLIT__ 2026-07-20 10:35:48,766 - 124779 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-07-20 10:35:48,833 - 124779 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-07-20 10:35:48,902 - 124779 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150697;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:35:49,244 - 124779 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 10:35:49,371 - 124779 - 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-07-20 00:00:00' and ServiceDate <= '2027-12-31 00:00:00' and ServiceSetupId = 150697 and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:35:49,713 - 124779 - src.utils.log - INFO - βœ… Fetched 22 rows - __SPLIT__ 2026-07-20 10:35:50,348 - 124779 - src.utils.log - INFO - Generating work orders for setup: 150697 - __SPLIT__ 2026-07-20 10:35:50,903 - 124779 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 1132;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:35:51,235 - 124779 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 10:35:51,363 - 124779 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-07-20 10:35:51,447 - 124779 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=133 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:35:51,776 - 124779 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 10:35:51,851 - 124779 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-07-20 10:35:51,921 - 124779 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-07-20 10:35:51,991 - 124779 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150697 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:35:52,367 - 124779 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 10:35:52,441 - 124779 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150697 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:35:52,819 - 124779 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 10:35:52,891 - 124779 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150697 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:35:53,234 - 124779 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 10:35:53,303 - 124779 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150697 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:35:53,681 - 124779 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 10:35:53,755 - 124779 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150697 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:35:54,130 - 124779 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 10:35:54,253 - 124779 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150697 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:35:54,599 - 124779 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 10:35:54,673 - 124779 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150697 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:35:55,013 - 124779 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 10:35:55,091 - 124779 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150697 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:35:55,544 - 124779 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 10:35:55,620 - 124779 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 10:35:55,698 - 124779 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 48 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:35:56,069 - 124779 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 48) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-07-20 10:35:58,672 - 124779 - src.utils.log - INFO - βœ… All 48 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-07-20 10:35:58,752 - 124779 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 48 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-07-16 14:51:40.585' and ServiceSetupId = 150697... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:35:59,131 - 124779 - src.utils.log - INFO - βœ… Fetched 48 rows - __SPLIT__ 2026-07-20 10:35:59,200 - 124779 - src.utils.log - INFO - Id's of work order inserted to DB: [3683381 3683382 3683383 3683384 3683385 3683386 3683387 3683388 3683389 3683390 3683391 3683392 3683393 3683394 3683395 3683396 3683397 3683398 3683399 3683400 3683401 3683402 3683403 3683404 3683405 3683406 3683407 3683408 3683409 3683410 3683411 3683412 3683413 3683414 3683415 3683416 3683417 3683418 3683419 3683420 3683421 3683422 3683423 3683424 3683425 3683426 3683427 3683428] - __SPLIT__ 2026-07-20 10:35:59,273 - 124779 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150697;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:35:59,606 - 124779 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 10:35:59,676 - 124779 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-07-20 10:35:59,748 - 124779 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId = 150697... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:36:00,086 - 124779 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 10:36:00,164 - 124779 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId = 150697... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:36:00,503 - 124779 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 10:36:00,631 - 124779 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId = 150697... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:36:00,971 - 124779 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 10:36:01,046 - 124779 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId = 150697... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:36:01,383 - 124779 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 10:36:01,455 - 124779 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId = 150697... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:36:01,794 - 124779 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 10:36:01,877 - 124779 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId = 150697;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:36:02,220 - 124779 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 10:36:02,294 - 124779 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId = 150697;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:36:02,634 - 124779 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 10:36:02,708 - 124779 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId = 150697;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:36:03,130 - 124779 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 10:36:03,233 - 124779 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId = 150697;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:36:03,570 - 124779 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 10:36:03,653 - 124779 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-07-20 10:36:03,725 - 124779 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-07-20 10:36:03,795 - 124779 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-07-20 10:36:03,869 - 124779 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.CommunicationPreferencesServiceReportNotification: - __SPLIT__ 2026-07-20 10:36:03,938 - 124779 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-07-20 10:36:04,015 - 124779 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SetupAutoGenerationSourceMapping: - __SPLIT__ 2026-07-20 10:36:04,134 - 124779 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-07-20 10:36:04,198 - 124779 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationAppliedDiscount: - __SPLIT__ 2026-07-20 10:36:04,267 - 124779 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-07-20 10:36:04,335 - 124779 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SubWorkOrderAutoGeneration: - __SPLIT__ 2026-07-20 10:36:04,397 - 124779 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-07-20 10:36:04,464 - 124779 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: - __SPLIT__ 2026-07-20 10:36:04,537 - 124779 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-07-20 10:36:04,599 - 124779 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: - __SPLIT__ 2026-07-20 10:36:04,671 - 124779 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-07-20 10:36:04,732 - 124779 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCrews: - __SPLIT__ 2026-07-20 10:36:04,791 - 124779 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-07-20 10:36:04,856 - 124779 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationServices: - __SPLIT__ 2026-07-20 10:36:04,927 - 124779 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-07-20 10:36:04,991 - 124779 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 10:36:05,054 - 124779 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3683381, 3683382, 3683383, 3683384, 3683385, 3683386, 3683387, 3683388, 3683389, 3683390, 3683391, 3683392, 3683393, 3683394, 3683395, 3683396, 3683397, 3683398, 3683399, 3683400, 3683401, 3683402, 3683403, 3683404, 3683405, 3683406, 3683407, 3683408, 3683409, 3683410, 3683411, 3683412, 3683413, 3683414, 3683415, 3683416, 3683417, 3683418, 3683419, 3683420, 3683421, 3683422, 3683423, 3683424, 3683425, 3683426, 3683427, 3683428) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:36:05,379 - 124779 - src.utils.log - INFO - βœ… Fetched 48 rows - __SPLIT__ 2026-07-20 10:36:05,444 - 124779 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 48 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:36:05,783 - 124779 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 48) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-07-20 10:36:06,959 - 124779 - src.utils.log - INFO - βœ… All 48 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-07-20 10:36:07,029 - 124779 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-07-20 10:36:07,158 - 124779 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 124779;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 10:36:07,494 - 124779 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-20 10:36:07,565 - 124779 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-07-20 10:36:07,643 - 124779 - src.utils.log - INFO - Time took to perform operation: 24.58 - __SPLIT__ 2026-07-20 11:07:40,743 - [124780] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[3683429, 3683440] user_id=43135 company_id=133 project_id=[124780] publish_all=False - __SPLIT__ 2026-07-20 11:07:40,865 - [124780] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[3683429, 3683440] user_id=43135 company_id=133 project_id=[124780] publish_all=False - __SPLIT__ 2026-07-20 11:07:40,929 - [124780] - src.utils.log - INFO - Sequential Work order publish in progress for GenerateWorkOrderHistoryId: [124780] - __SPLIT__ 2026-07-20 11:07:41,009 - [124780] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-20 11:07:41,075 - [124780] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 11:07:43,220 - [124780] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 11:07:43,295 - [124780] - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-07-20 11:07:43,361 - [124780] - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-07-20 11:07:43,428 - [124780] - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-07-20 11:07:43,502 - [124780] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'InProgress' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124780;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 11:07:45,387 - [124780] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-20 11:07:45,456 - [124780] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (3683429, 3683440)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 11:07:45,790 - [124780] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-20 11:07:45,862 - [124780] - src.utils.log - INFO - Inside get_work_order_table - __SPLIT__ 2026-07-20 11:07:45,928 - [124780] - 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 = 150698 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 11:07:46,266 - [124780] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 11:07:46,339 - [124780] - 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 = 150698 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 11:07:46,670 - [124780] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 11:07:46,739 - [124780] - 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 = 150698 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 11:07:47,078 - [124780] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 11:07:47,159 - [124780] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder,BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 11:07:47,544 - [124780] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 11:07:47,628 - [124780] - 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-07-20 11:07:47,956 - [124780] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-20 11:07:48,031 - [124780] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder, BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 11:07:48,362 - [124780] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 11:07:48,436 - [124780] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 2 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 133 AND EnitityNumberType = 'WorkOrder'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 11:07:48,771 - [124780] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 11:07:48,848 - [124780] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 2 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 133 AND EnitityNumberType = 'Invoice'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 11:07:49,184 - [124780] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 11:07:49,262 - [124780] - 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 = 150698... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 11:07:49,601 - [124780] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 11:07:49,675 - [124780] - src.utils.log - INFO - πŸ” Fetching data: SELECT x.CompanyId FROM CRM.CompanyMaster x WHERE CompanyKey = 'abcdallas';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 11:07:50,008 - [124780] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 11:07:50,085 - [124780] - src.utils.log - INFO - πŸ” Fetching data: SELECT CollectionStatus,IsHold,AccountNo FROM CRM.Account a WHERE a.AccountNo = '15000' and a.CompanyId = 121;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 11:07:50,422 - [124780] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 11:07:50,496 - [124780] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderNo FROM ServiceCore.WorkOrder WHERE WorkOrderNo IN ('1428817', '1428818') AND CompanyId = 133 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 11:07:50,836 - [124780] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 11:07:50,914 - [124780] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrder (skip triggers): 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 11:07:51,413 - [124780] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrder (triggers skipped) - __SPLIT__ 2026-07-20 11:07:52,436 - [124780] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrder in 1 batches (triggers skipped) - __SPLIT__ 2026-07-20 11:07:52,699 - [124780] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-07-20 11:07:52,773 - [124780] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.ServiceSetup SET IsInitialWoGenerated = 1 WHERE CompanyId = 133 AND ServiceSetupId = 150698;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 11:07:53,103 - [124780] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-20 11:07:53,176 - [124780] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkorderId, WorkOrderNo FROM ServiceCore.WorkOrder wo WHERE wo.WorkOrderNo IN ('1428817', '1428818') AND wo.AccountNumber = '15000' AND wo.CompanyId = 133 ... (Thread: ThreadPoolExecutor-11_0) - __SPLIT__ 2026-07-20 11:07:53,510 - [124780] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-20 11:07:53,584 - [124780] - src.utils.log - INFO - Sequential fetching temp table records - __SPLIT__ 2026-07-20 11:07:53,664 - [124780] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationServices woag WHERE woag.WorkOrderAutoGenerationId in (3683429, 3683440)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 11:07:54,035 - [124780] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-20 11:07:54,107 - [124780] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SubWorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (3683429, 3683440)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 11:07:54,447 - [124780] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 11:07:54,520 - [124780] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationCrews woag WHERE woag.WorkOrderAutoGenerationId in (3683429, 3683440)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 11:07:54,874 - [124780] - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-07-20 11:07:54,944 - [124780] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationSalesPersonCommission woag WHERE woag.WorkOrderAutoGenerationId in (3683429, 3683440)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 11:07:55,286 - [124780] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 11:07:55,363 - [124780] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupAutoGenerationSourceMapping woag WHERE woag.WorkOrderAutoGenerationId in (3683429, 3683440)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 11:07:55,698 - [124780] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 11:07:55,770 - [124780] - 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 (3683429, 3683440)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 11:07:56,129 - [124780] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 11:07:56,201 - [124780] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from CRM.LeadNote woag WHERE woag.RefId in (3683429, 3683440) and woag.RefType = 'TempWorkorder';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 11:07:56,536 - [124780] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 11:07:56,653 - [124780] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment woagca WHERE woagca.WorkOrderAutoGenerationId in (3683429, 3683440);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 11:07:56,982 - [124780] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 11:07:57,056 - [124780] - src.utils.log - INFO - Updating temp tables - __SPLIT__ 2026-07-20 11:07:57,142 - [124780] - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyKey FROM Common.CompanyMaster cm WHERE CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 11:07:57,473 - [124780] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 11:07:57,557 - [124780] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 133 AND EnitityNumberType in ('SubWorkOrder'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 11:07:57,893 - [124780] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 11:07:57,977 - [124780] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 11:07:58,056 - [124780] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishHistory: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 11:07:58,420 - [124780] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationPublishHistory - __SPLIT__ 2026-07-20 11:07:59,426 - [124780] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishHistory in 1 batches - __SPLIT__ 2026-07-20 11:07:59,503 - [124780] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationPublishHistoryId, WorkOrderNo, ServiceSetupId FROM ServiceCore.WorkOrderAutoGenerationPublishHistory WHERE ServiceSetupId = 150698 AND WorkOrderNo IN ('734554', '4238820') AND GenerateWorkOrderHistoryId = 124780;... (Thread: ThreadPoolExecutor-12_0) - __SPLIT__ 2026-07-20 11:08:00,020 - [124780] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-20 11:08:00,117 - [124780] - src.utils.log - INFO - 🏁 Final merged rows: 2 - __SPLIT__ 2026-07-20 11:08:00,193 - [124780] - src.utils.log - INFO - Sequential Insertion in work order tables begin - __SPLIT__ 2026-07-20 11:08:00,269 - [124780] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 11:08:00,340 - [124780] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderServices: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 11:08:00,680 - [124780] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderServices - __SPLIT__ 2026-07-20 11:08:01,675 - [124780] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderServices in 1 batches - __SPLIT__ 2026-07-20 11:08:01,747 - [124780] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderAppliedDiscount: - __SPLIT__ 2026-07-20 11:08:01,865 - [124780] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderSalesPersonCommission: - __SPLIT__ 2026-07-20 11:08:01,938 - [124780] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderCommissionAdjustment: - __SPLIT__ 2026-07-20 11:08:02,006 - [124780] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 11:08:02,079 - [124780] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderCrew: 4 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 11:08:02,415 - [124780] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 4) into ServiceCore.WorkOrderCrew - __SPLIT__ 2026-07-20 11:08:03,410 - [124780] - src.utils.log - INFO - βœ… All 4 rows inserted successfully into ServiceCore.WorkOrderCrew in 1 batches - __SPLIT__ 2026-07-20 11:08:03,478 - [124780] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkorderSourceMapping: - __SPLIT__ 2026-07-20 11:08:03,561 - [124780] - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-07-20 11:08:03,630 - [124780] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 11:08:03,700 - [124780] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishServices: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 11:08:04,036 - [124780] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationPublishServices - __SPLIT__ 2026-07-20 11:08:05,019 - [124780] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishServices in 1 batches - __SPLIT__ 2026-07-20 11:08:05,096 - [124780] - 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 = 150698... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 11:08:05,426 - [124780] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 11:08:05,500 - [124780] - src.utils.log - INFO - Size of Transaction: 2 - __SPLIT__ 2026-07-20 11:08:05,574 - [124780] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 11:08:06,040 - [124780] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-07-20 11:08:07,028 - [124780] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-07-20 11:08:07,231 - [124780] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-07-20 11:08:07,305 - [124780] - 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 = 133 AND t.TransactionType ='Invoice' AND t.CreatedDate = '2026-07-20 07:08:05.495';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 11:08:07,806 - [124780] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-20 11:08:07,882 - [124780] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150698;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 11:08:08,207 - [124780] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 11:08:08,290 - [124780] - src.utils.log - INFO - πŸ“ Executing: UPDATE Billing.[Transaction] SET ModifiedBy = NULL WHERE ModifiedBy IN (12345678910,12345678911) AND CreatedDate = '2026-07-20 07:08:05.495'; ... (Thread: ThreadPoolExecutor-13_0) - __SPLIT__ 2026-07-20 11:08:08,719 - [124780] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-20 11:08:08,792 - [124780] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 11:08:08,852 - [124780] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 11:08:09,196 - [124780] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.Invoice - __SPLIT__ 2026-07-20 11:08:10,191 - [124780] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-07-20 11:08:10,261 - [124780] - src.utils.log - INFO - πŸ” Fetching data: SELECT InvoiceId, WorkOrderNo FROM Billing.Invoice i WHERE i.WorkOrderNo in ('1428817', '1428818')... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 11:08:11,228 - [124780] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-20 11:08:11,305 - [124780] - 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 = 150698 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 11:08:11,635 - [124780] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 11:08:11,704 - [124780] - 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 = 150698 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 11:08:12,034 - [124780] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 11:08:12,106 - [124780] - 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 = 150698 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 11:08:12,444 - [124780] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 11:08:12,513 - [124780] - 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 = 150698 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 11:08:12,842 - [124780] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 11:08:12,924 - [124780] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150698;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 11:08:13,310 - [124780] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 11:08:13,382 - [124780] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId, AppliedDiscountAmt as AppliedDiscountAmount,IsActive ,ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 150698;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 11:08:13,726 - [124780] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 11:08:13,807 - [124780] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId,IsActive,DiscountAmount, IsDiscountPercent,DiscountPercent,DiscountDescription , ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 150698;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 11:08:14,149 - [124780] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 11:08:14,232 - [124780] - src.utils.log - INFO - Sequential Insertion in invoice tables begin - __SPLIT__ 2026-07-20 11:08:14,305 - [124780] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.AccountDiscountSetup: - __SPLIT__ 2026-07-20 11:08:14,374 - [124780] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 11:08:14,446 - [124780] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceCharges: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 11:08:14,803 - [124780] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.InvoiceCharges - __SPLIT__ 2026-07-20 11:08:15,792 - [124780] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.InvoiceCharges in 1 batches - __SPLIT__ 2026-07-20 11:08:15,865 - [124780] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.DiscountApplied: - __SPLIT__ 2026-07-20 11:08:15,944 - [124780] - src.utils.log - INFO - Invoice Publish Done - __SPLIT__ 2026-07-20 11:08:16,021 - [124780] - src.utils.log - INFO - Updating Next GenerationDate - __SPLIT__ 2026-07-20 11:08:16,091 - [124780] - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, MAX(NextWorkOrderGenerationDate) AS MaxNextWorkOrderGeneration FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 124780 GROUP BY ServiceSetupId; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 11:08:16,425 - [124780] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 11:08:16,507 - [124780] - src.utils.log - INFO - πŸ”„ Updating next gen date sequentially: inside update_next_workorder_generation - __SPLIT__ 2026-07-20 11:08:16,709 - [124780] - src.utils.log - INFO - πŸ›  Creating temp table #tbl_cd8ccda080 - __SPLIT__ 2026-07-20 11:08:17,046 - [124780] - src.utils.log - INFO - πŸ“Œ Bulk inserting 1 rows into #tbl_cd8ccda080 - __SPLIT__ 2026-07-20 11:08:17,381 - [124780] - src.utils.log - INFO - πŸ” Running MERGE update to apply changes - __SPLIT__ 2026-07-20 11:08:17,623 - [124780] - src.utils.log - INFO - βœ” SQL reported affected rows: 1 - __SPLIT__ 2026-07-20 11:08:17,822 - [124780] - src.utils.log - INFO - πŸ” Verified successfully updated 1 rows via #tbl_cd8ccda080 - __SPLIT__ 2026-07-20 11:08:17,894 - [124780] - src.utils.log - INFO - πŸŽ‰ Successfully updated NextGenerationDate using temp table #tbl_cd8ccda080 - __SPLIT__ 2026-07-20 11:08:17,961 - [124780] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 124780 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 11:08:18,295 - [124780] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 11:08:18,358 - [124780] - src.utils.log - INFO - Sequential deletion from temp tables begin - __SPLIT__ 2026-07-20 11:08:18,421 - [124780] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId in (3683429, 3683440) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 11:08:18,884 - [124780] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 11:08:18,945 - [124780] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId in (3683429, 3683440) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 11:08:19,358 - [124780] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 11:08:19,425 - [124780] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId in (3683429, 3683440) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 11:08:19,761 - [124780] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 11:08:19,871 - [124780] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId in (3683429, 3683440) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 11:08:20,277 - [124780] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 11:08:20,350 - [124780] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId in (3683429, 3683440) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 11:08:20,684 - [124780] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 11:08:20,761 - [124780] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (3683429, 3683440) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 11:08:21,090 - [124780] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 11:08:21,164 - [124780] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId in (3683429, 3683440) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 11:08:21,496 - [124780] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 11:08:21,614 - [124780] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (3683429, 3683440) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 11:08:22,024 - [124780] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 11:08:22,096 - [124780] - src.utils.log - INFO - Work order published ids: (3683429, 3683440) - __SPLIT__ 2026-07-20 11:08:22,163 - [124780] - src.utils.log - INFO - Time took to perform operation in publishing [124780]: 41.15 - __SPLIT__ 2026-07-20 11:08:22,222 - [124780] - src.utils.log - INFO - Publish Completed for GenerateWorkOrderHistoryId: [124780] - __SPLIT__ 2026-07-20 11:08:22,285 - [124780] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-07-20 07:08:22.096' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124780;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 11:08:22,614 - [124780] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-20 12:24:55,011 - 124782 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=124782 - __SPLIT__ 2026-07-20 12:24:55,135 - 124782 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 124782 - __SPLIT__ 2026-07-20 12:24:55,197 - 124782 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-20 12:24:55,253 - 124782 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:24:57,289 - 124782 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 12:24:57,358 - 124782 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-07-20 12:24:57,425 - 124782 - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-07-20 12:24:57,492 - 124782 - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-07-20 12:24:57,560 - 124782 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 124782;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:24:59,464 - 124782 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-20 12:24:59,530 - 124782 - 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 = 124782), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 124782), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 124782 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-07-20 12:24:59,898 - 124782 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 12:24:59,957 - 124782 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 124782;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:25:00,315 - 124782 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 12:25:00,384 - 124782 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-07-20 12:25:00,450 - 124782 - 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 = 14626... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:25:00,788 - 124782 - src.utils.log - INFO - βœ… Fetched 60 rows - __SPLIT__ 2026-07-20 12:25:00,857 - 124782 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-07-20 12:25:00,925 - 124782 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-07-20 12:25:00,989 - 124782 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150700;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:25:01,319 - 124782 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 12:25:01,444 - 124782 - 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-07-20 00:00:00' and ServiceDate <= '2026-07-31 00:00:00' and ServiceSetupId = 150700 and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:25:01,788 - 124782 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 12:25:02,441 - 124782 - src.utils.log - INFO - Generating work orders for setup: 150700 - __SPLIT__ 2026-07-20 12:25:02,574 - 124782 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 11428;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:25:02,900 - 124782 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 12:25:02,972 - 124782 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 1132;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:25:03,306 - 124782 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 12:25:03,416 - 124782 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-07-20 12:25:03,532 - 124782 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=133 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:25:03,863 - 124782 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 12:25:03,936 - 124782 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-07-20 12:25:04,006 - 124782 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-07-20 12:25:04,072 - 124782 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150700 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:25:04,459 - 124782 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 12:25:04,528 - 124782 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150700 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:25:04,913 - 124782 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 12:25:04,979 - 124782 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150700 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:25:05,317 - 124782 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 12:25:05,391 - 124782 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150700 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:25:05,769 - 124782 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 12:25:05,878 - 124782 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150700 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:25:06,340 - 124782 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 12:25:06,415 - 124782 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150700 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:25:06,791 - 124782 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 12:25:06,857 - 124782 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150700 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:25:07,190 - 124782 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 12:25:07,259 - 124782 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150700 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:25:07,706 - 124782 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 12:25:07,773 - 124782 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 12:25:07,880 - 124782 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 10 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:25:08,248 - 124782 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 10) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-07-20 12:25:09,670 - 124782 - src.utils.log - INFO - βœ… All 10 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-07-20 12:25:09,745 - 124782 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 10 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-07-16 14:51:40.778' and ServiceSetupId = 150700... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:25:10,126 - 124782 - src.utils.log - INFO - βœ… Fetched 10 rows - __SPLIT__ 2026-07-20 12:25:10,199 - 124782 - src.utils.log - INFO - Id's of work order inserted to DB: [3683446 3683447 3683448 3683449 3683450 3683451 3683452 3683453 3683454 3683455] - __SPLIT__ 2026-07-20 12:25:10,266 - 124782 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150700;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:25:10,598 - 124782 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 12:25:10,668 - 124782 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-07-20 12:25:10,738 - 124782 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId = 150700... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:25:11,069 - 124782 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 12:25:11,178 - 124782 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId = 150700... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:25:11,512 - 124782 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 12:25:11,589 - 124782 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId = 150700... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:25:11,917 - 124782 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-20 12:25:11,995 - 124782 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId = 150700... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:25:12,327 - 124782 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 12:25:12,393 - 124782 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId = 150700... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:25:12,714 - 124782 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 12:25:12,780 - 124782 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId = 150700;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:25:13,114 - 124782 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 12:25:13,181 - 124782 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId = 150700;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:25:13,508 - 124782 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 12:25:13,574 - 124782 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId = 150700;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:25:14,005 - 124782 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 12:25:14,070 - 124782 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId = 150700;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:25:14,401 - 124782 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 12:25:14,477 - 124782 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-07-20 12:25:14,543 - 124782 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-07-20 12:25:14,610 - 124782 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-07-20 12:25:14,678 - 124782 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.CommunicationPreferencesServiceReportNotification: - __SPLIT__ 2026-07-20 12:25:14,786 - 124782 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-07-20 12:25:14,850 - 124782 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SetupAutoGenerationSourceMapping: - __SPLIT__ 2026-07-20 12:25:14,918 - 124782 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-07-20 12:25:14,991 - 124782 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationAppliedDiscount: - __SPLIT__ 2026-07-20 12:25:15,061 - 124782 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-07-20 12:25:15,134 - 124782 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SubWorkOrderAutoGeneration: - __SPLIT__ 2026-07-20 12:25:15,204 - 124782 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-07-20 12:25:15,280 - 124782 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: - __SPLIT__ 2026-07-20 12:25:15,353 - 124782 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-07-20 12:25:15,421 - 124782 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: - __SPLIT__ 2026-07-20 12:25:15,492 - 124782 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-07-20 12:25:15,559 - 124782 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 12:25:15,629 - 124782 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3683446, 3683447, 3683448, 3683449, 3683450, 3683451, 3683452, 3683453, 3683454, 3683455) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:25:15,964 - 124782 - src.utils.log - INFO - βœ… Fetched 10 rows - __SPLIT__ 2026-07-20 12:25:16,033 - 124782 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationCrews: 10 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:25:16,374 - 124782 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 10) into ServiceCore.WorkOrderAutoGenerationCrews - __SPLIT__ 2026-07-20 12:25:17,374 - 124782 - src.utils.log - INFO - βœ… All 10 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationCrews in 1 batches - __SPLIT__ 2026-07-20 12:25:17,445 - 124782 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-07-20 12:25:17,510 - 124782 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 12:25:17,576 - 124782 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 3683446 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:25:17,956 - 124782 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 12:25:18,051 - 124782 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:25:18,389 - 124782 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-07-20 12:25:19,380 - 124782 - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-07-20 12:25:19,446 - 124782 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-07-20 12:25:19,519 - 124782 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 12:25:19,583 - 124782 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3683447, 3683448, 3683449, 3683450, 3683451, 3683452, 3683453, 3683454, 3683455) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:25:19,916 - 124782 - src.utils.log - INFO - βœ… Fetched 9 rows - __SPLIT__ 2026-07-20 12:25:19,988 - 124782 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 9 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:25:20,322 - 124782 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 9) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-07-20 12:25:21,316 - 124782 - src.utils.log - INFO - βœ… All 9 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-07-20 12:25:21,387 - 124782 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-07-20 12:25:21,459 - 124782 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 124782;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:25:21,786 - 124782 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-20 12:25:21,850 - 124782 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-07-20 12:25:21,921 - 124782 - src.utils.log - INFO - Time took to perform operation: 26.65 - __SPLIT__ 2026-07-20 12:27:00,190 - [124782] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[3683446, 3683455] user_id=43135 company_id=133 project_id=[124782] publish_all=False - __SPLIT__ 2026-07-20 12:27:00,310 - [124782] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[3683446, 3683455] user_id=43135 company_id=133 project_id=[124782] publish_all=False - __SPLIT__ 2026-07-20 12:27:00,379 - [124782] - src.utils.log - INFO - Sequential Work order publish in progress for GenerateWorkOrderHistoryId: [124782] - __SPLIT__ 2026-07-20 12:27:00,449 - [124782] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-20 12:27:00,517 - [124782] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:27:02,658 - [124782] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 12:27:02,727 - [124782] - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-07-20 12:27:02,799 - [124782] - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-07-20 12:27:02,872 - [124782] - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-07-20 12:27:02,939 - [124782] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'InProgress' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124782;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:27:04,858 - [124782] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-20 12:27:04,926 - [124782] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (3683446, 3683455)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:27:05,257 - [124782] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-20 12:27:05,326 - [124782] - src.utils.log - INFO - Inside get_work_order_table - __SPLIT__ 2026-07-20 12:27:05,395 - [124782] - 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 = 150700 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:27:05,740 - [124782] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 12:27:05,806 - [124782] - 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 = 150700 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:27:06,148 - [124782] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 12:27:06,222 - [124782] - 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 = 150700 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:27:06,569 - [124782] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 12:27:06,647 - [124782] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder,BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:27:07,031 - [124782] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 12:27:07,093 - [124782] - 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-07-20 12:27:07,426 - [124782] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-20 12:27:07,489 - [124782] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder, BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:27:07,824 - [124782] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 12:27:07,882 - [124782] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 2 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 133 AND EnitityNumberType = 'WorkOrder'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:27:08,221 - [124782] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 12:27:08,280 - [124782] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 2 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 133 AND EnitityNumberType = 'Invoice'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:27:08,657 - [124782] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 12:27:08,726 - [124782] - 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 = 150700... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:27:09,063 - [124782] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 12:27:09,131 - [124782] - src.utils.log - INFO - πŸ” Fetching data: SELECT x.CompanyId FROM CRM.CompanyMaster x WHERE CompanyKey = 'abcdallas';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:27:09,463 - [124782] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 12:27:09,526 - [124782] - src.utils.log - INFO - πŸ” Fetching data: SELECT CollectionStatus,IsHold,AccountNo FROM CRM.Account a WHERE a.AccountNo = '15020' and a.CompanyId = 121;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:27:09,856 - [124782] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 12:27:09,913 - [124782] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderNo FROM ServiceCore.WorkOrder WHERE WorkOrderNo IN ('1428824', '1428825') AND CompanyId = 133 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:27:10,246 - [124782] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 12:27:10,308 - [124782] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrder (skip triggers): 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:27:10,801 - [124782] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrder (triggers skipped) - __SPLIT__ 2026-07-20 12:27:11,817 - [124782] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrder in 1 batches (triggers skipped) - __SPLIT__ 2026-07-20 12:27:12,071 - [124782] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-07-20 12:27:12,148 - [124782] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.ServiceSetup SET IsInitialWoGenerated = 1 WHERE CompanyId = 133 AND ServiceSetupId = 150700;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:27:12,479 - [124782] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-20 12:27:12,548 - [124782] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkorderId, WorkOrderNo FROM ServiceCore.WorkOrder wo WHERE wo.WorkOrderNo IN ('1428824', '1428825') AND wo.AccountNumber = '15020' AND wo.CompanyId = 133 ... (Thread: ThreadPoolExecutor-40_0) - __SPLIT__ 2026-07-20 12:27:12,887 - [124782] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-20 12:27:12,963 - [124782] - src.utils.log - INFO - Sequential fetching temp table records - __SPLIT__ 2026-07-20 12:27:13,033 - [124782] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationServices woag WHERE woag.WorkOrderAutoGenerationId in (3683446, 3683455)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:27:13,427 - [124782] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-20 12:27:13,495 - [124782] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SubWorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (3683446, 3683455)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:27:13,832 - [124782] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 12:27:13,901 - [124782] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationCrews woag WHERE woag.WorkOrderAutoGenerationId in (3683446, 3683455)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:27:14,259 - [124782] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-20 12:27:14,333 - [124782] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationSalesPersonCommission woag WHERE woag.WorkOrderAutoGenerationId in (3683446, 3683455)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:27:14,668 - [124782] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 12:27:14,739 - [124782] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupAutoGenerationSourceMapping woag WHERE woag.WorkOrderAutoGenerationId in (3683446, 3683455)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:27:15,086 - [124782] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 12:27:15,159 - [124782] - 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 (3683446, 3683455)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:27:15,527 - [124782] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 12:27:15,601 - [124782] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from CRM.LeadNote woag WHERE woag.RefId in (3683446, 3683455) and woag.RefType = 'TempWorkorder';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:27:15,941 - [124782] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 12:27:16,058 - [124782] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment woagca WHERE woagca.WorkOrderAutoGenerationId in (3683446, 3683455);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:27:16,390 - [124782] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 12:27:16,453 - [124782] - src.utils.log - INFO - Updating temp tables - __SPLIT__ 2026-07-20 12:27:16,533 - [124782] - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyKey FROM Common.CompanyMaster cm WHERE CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:27:16,856 - [124782] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 12:27:16,925 - [124782] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 133 AND EnitityNumberType in ('SubWorkOrder'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:27:17,260 - [124782] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 12:27:17,331 - [124782] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 12:27:17,397 - [124782] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishHistory: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:27:17,746 - [124782] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationPublishHistory - __SPLIT__ 2026-07-20 12:27:18,753 - [124782] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishHistory in 1 batches - __SPLIT__ 2026-07-20 12:27:18,817 - [124782] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationPublishHistoryId, WorkOrderNo, ServiceSetupId FROM ServiceCore.WorkOrderAutoGenerationPublishHistory WHERE ServiceSetupId = 150700 AND WorkOrderNo IN ('982037', '7598597') AND GenerateWorkOrderHistoryId = 124782;... (Thread: ThreadPoolExecutor-41_0) - __SPLIT__ 2026-07-20 12:27:19,345 - [124782] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-20 12:27:19,412 - [124782] - src.utils.log - INFO - 🏁 Final merged rows: 2 - __SPLIT__ 2026-07-20 12:27:19,487 - [124782] - src.utils.log - INFO - Sequential Insertion in work order tables begin - __SPLIT__ 2026-07-20 12:27:19,555 - [124782] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 12:27:19,627 - [124782] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderServices: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:27:19,963 - [124782] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderServices - __SPLIT__ 2026-07-20 12:27:20,953 - [124782] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderServices in 1 batches - __SPLIT__ 2026-07-20 12:27:21,026 - [124782] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderAppliedDiscount: - __SPLIT__ 2026-07-20 12:27:21,157 - [124782] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderSalesPersonCommission: - __SPLIT__ 2026-07-20 12:27:21,230 - [124782] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderCommissionAdjustment: - __SPLIT__ 2026-07-20 12:27:21,310 - [124782] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 12:27:21,383 - [124782] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderCrew: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:27:21,731 - [124782] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderCrew - __SPLIT__ 2026-07-20 12:27:22,733 - [124782] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderCrew in 1 batches - __SPLIT__ 2026-07-20 12:27:22,807 - [124782] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkorderSourceMapping: - __SPLIT__ 2026-07-20 12:27:22,878 - [124782] - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-07-20 12:27:22,952 - [124782] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 12:27:23,023 - [124782] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishServices: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:27:23,367 - [124782] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationPublishServices - __SPLIT__ 2026-07-20 12:27:24,373 - [124782] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishServices in 1 batches - __SPLIT__ 2026-07-20 12:27:24,440 - [124782] - 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 = 150700... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:27:24,778 - [124782] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 12:27:24,853 - [124782] - src.utils.log - INFO - Size of Transaction: 2 - __SPLIT__ 2026-07-20 12:27:24,930 - [124782] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:27:25,408 - [124782] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-07-20 12:27:26,404 - [124782] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-07-20 12:27:26,614 - [124782] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-07-20 12:27:26,685 - [124782] - 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 = 133 AND t.TransactionType ='Invoice' AND t.CreatedDate = '2026-07-20 08:27:24.848';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:27:27,197 - [124782] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-20 12:27:27,270 - [124782] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150700;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:27:27,603 - [124782] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 12:27:27,683 - [124782] - src.utils.log - INFO - πŸ“ Executing: UPDATE Billing.[Transaction] SET ModifiedBy = NULL WHERE ModifiedBy IN (12345678910,12345678911) AND CreatedDate = '2026-07-20 08:27:24.848'; ... (Thread: ThreadPoolExecutor-42_0) - __SPLIT__ 2026-07-20 12:27:28,125 - [124782] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-20 12:27:28,205 - [124782] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 12:27:28,277 - [124782] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:27:28,625 - [124782] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.Invoice - __SPLIT__ 2026-07-20 12:27:29,629 - [124782] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-07-20 12:27:29,703 - [124782] - src.utils.log - INFO - πŸ” Fetching data: SELECT InvoiceId, WorkOrderNo FROM Billing.Invoice i WHERE i.WorkOrderNo in ('1428824', '1428825')... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:27:30,699 - [124782] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-20 12:27:30,778 - [124782] - 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 = 150700 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:27:31,122 - [124782] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 12:27:31,195 - [124782] - 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 = 150700 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:27:31,528 - [124782] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 12:27:31,595 - [124782] - 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 = 150700 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:27:31,929 - [124782] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 12:27:31,997 - [124782] - 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 = 150700 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:27:32,335 - [124782] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 12:27:32,418 - [124782] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150700;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:27:32,802 - [124782] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 12:27:32,878 - [124782] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId, AppliedDiscountAmt as AppliedDiscountAmount,IsActive ,ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 150700;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:27:33,213 - [124782] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 12:27:33,286 - [124782] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId,IsActive,DiscountAmount, IsDiscountPercent,DiscountPercent,DiscountDescription , ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 150700;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:27:33,630 - [124782] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 12:27:33,705 - [124782] - src.utils.log - INFO - Sequential Insertion in invoice tables begin - __SPLIT__ 2026-07-20 12:27:33,776 - [124782] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.AccountDiscountSetup: - __SPLIT__ 2026-07-20 12:27:33,848 - [124782] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 12:27:33,915 - [124782] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceCharges: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:27:34,253 - [124782] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.InvoiceCharges - __SPLIT__ 2026-07-20 12:27:35,260 - [124782] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.InvoiceCharges in 1 batches - __SPLIT__ 2026-07-20 12:27:35,327 - [124782] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.DiscountApplied: - __SPLIT__ 2026-07-20 12:27:35,395 - [124782] - src.utils.log - INFO - Invoice Publish Done - __SPLIT__ 2026-07-20 12:27:35,472 - [124782] - src.utils.log - INFO - Updating Next GenerationDate - __SPLIT__ 2026-07-20 12:27:35,547 - [124782] - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, MAX(NextWorkOrderGenerationDate) AS MaxNextWorkOrderGeneration FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 124782 GROUP BY ServiceSetupId; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:27:35,886 - [124782] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 12:27:35,964 - [124782] - src.utils.log - INFO - πŸ”„ Updating next gen date sequentially: inside update_next_workorder_generation - __SPLIT__ 2026-07-20 12:27:36,172 - [124782] - src.utils.log - INFO - πŸ›  Creating temp table #tbl_2c45d4e1b0 - __SPLIT__ 2026-07-20 12:27:36,507 - [124782] - src.utils.log - INFO - πŸ“Œ Bulk inserting 1 rows into #tbl_2c45d4e1b0 - __SPLIT__ 2026-07-20 12:27:36,844 - [124782] - src.utils.log - INFO - πŸ” Running MERGE update to apply changes - __SPLIT__ 2026-07-20 12:27:37,101 - [124782] - src.utils.log - INFO - βœ” SQL reported affected rows: 1 - __SPLIT__ 2026-07-20 12:27:37,302 - [124782] - src.utils.log - INFO - πŸ” Verified successfully updated 1 rows via #tbl_2c45d4e1b0 - __SPLIT__ 2026-07-20 12:27:37,363 - [124782] - src.utils.log - INFO - πŸŽ‰ Successfully updated NextGenerationDate using temp table #tbl_2c45d4e1b0 - __SPLIT__ 2026-07-20 12:27:37,423 - [124782] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 124782 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:27:37,746 - [124782] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 12:27:37,814 - [124782] - src.utils.log - INFO - Sequential deletion from temp tables begin - __SPLIT__ 2026-07-20 12:27:37,883 - [124782] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId in (3683446, 3683455) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:27:38,344 - [124782] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 12:27:38,428 - [124782] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId in (3683446, 3683455) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:27:38,844 - [124782] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 12:27:38,915 - [124782] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId in (3683446, 3683455) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:27:39,238 - [124782] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 12:27:39,305 - [124782] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId in (3683446, 3683455) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:27:39,712 - [124782] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 12:27:39,780 - [124782] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId in (3683446, 3683455) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:27:40,117 - [124782] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 12:27:40,186 - [124782] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (3683446, 3683455) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:27:40,519 - [124782] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 12:27:40,590 - [124782] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId in (3683446, 3683455) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:27:40,922 - [124782] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 12:27:41,045 - [124782] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (3683446, 3683455) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:27:41,464 - [124782] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 12:27:41,534 - [124782] - src.utils.log - INFO - Work order published ids: (3683446, 3683455) - __SPLIT__ 2026-07-20 12:27:41,607 - [124782] - src.utils.log - INFO - Time took to perform operation in publishing [124782]: 41.16 - __SPLIT__ 2026-07-20 12:27:41,675 - [124782] - src.utils.log - INFO - Publish Completed for GenerateWorkOrderHistoryId: [124782] - __SPLIT__ 2026-07-20 12:27:41,745 - [124782] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-07-20 08:27:41.534' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124782;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:27:42,082 - [124782] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-20 12:40:33,870 - 12686 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=12686 - __SPLIT__ 2026-07-20 12:40:33,985 - 12686 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 12686 - __SPLIT__ 2026-07-20 12:40:34,058 - 12686 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-20 12:40:34,130 - 12686 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:40:36,164 - 12686 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 12:40:36,229 - 12686 - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-07-20 12:40:36,300 - 12686 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 12686;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:40:36,646 - 12686 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-20 12:40:36,715 - 12686 - 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 = 12686), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 12686), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 12686 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-07-20 12:40:37,098 - 12686 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 12:40:37,168 - 12686 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 12686;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:40:37,536 - 12686 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 12:40:37,605 - 12686 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-07-20 12:40:37,696 - 12686 - 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 = 13074... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:40:38,054 - 12686 - src.utils.log - INFO - βœ… Fetched 60 rows - __SPLIT__ 2026-07-20 12:40:38,124 - 12686 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-07-20 12:40:38,202 - 12686 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-07-20 12:40:38,280 - 12686 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 34430;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:40:38,633 - 12686 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 12:40:38,708 - 12686 - 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-07-20 00:00:00' and ServiceDate <= '2026-12-31 00:00:00' and ServiceSetupId = 34430 and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:40:39,062 - 12686 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 12:40:39,766 - 12686 - src.utils.log - INFO - Generating work orders for setup: 34430 - __SPLIT__ 2026-07-20 12:40:40,020 - 12686 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 1379;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:40:40,375 - 12686 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 12:40:40,480 - 12686 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-07-20 12:40:40,557 - 12686 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=135 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:40:40,897 - 12686 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 12:40:40,966 - 12686 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-07-20 12:40:41,027 - 12686 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-07-20 12:40:41,099 - 12686 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34430 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:40:41,457 - 12686 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 12:40:41,520 - 12686 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34430 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:40:41,869 - 12686 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 12:40:41,939 - 12686 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34430 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:40:42,285 - 12686 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 12:40:42,354 - 12686 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34430 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:40:42,706 - 12686 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 12:40:42,772 - 12686 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34430 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:40:43,123 - 12686 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 12:40:43,178 - 12686 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34430 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:40:43,527 - 12686 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 12:40:43,646 - 12686 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34430 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:40:43,999 - 12686 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 12:40:44,064 - 12686 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34430 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:40:44,427 - 12686 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 12:40:44,494 - 12686 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 12:40:44,569 - 12686 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 15 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:40:44,950 - 12686 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 15) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-07-20 12:40:46,554 - 12686 - src.utils.log - INFO - βœ… All 15 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-07-20 12:40:46,618 - 12686 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 15 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-07-16 14:51:40.778' and ServiceSetupId = 34430... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:40:46,976 - 12686 - src.utils.log - INFO - βœ… Fetched 15 rows - __SPLIT__ 2026-07-20 12:40:47,049 - 12686 - src.utils.log - INFO - Id's of work order inserted to DB: [2737624 2737625 2737626 2737627 2737628 2737629 2737630 2737631 2737632 2737633 2737634 2737635 2737636 2737637 2737638] - __SPLIT__ 2026-07-20 12:40:47,121 - 12686 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 34430;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:40:47,473 - 12686 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 12:40:47,544 - 12686 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-07-20 12:40:47,615 - 12686 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId = 34430... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:40:47,967 - 12686 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 12:40:48,037 - 12686 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId = 34430... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:40:48,388 - 12686 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 12:40:48,459 - 12686 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId = 34430... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:40:48,809 - 12686 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 12:40:48,915 - 12686 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId = 34430... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:40:49,259 - 12686 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 12:40:49,316 - 12686 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId = 34430... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:40:49,663 - 12686 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 12:40:49,726 - 12686 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId = 34430;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:40:50,074 - 12686 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 12:40:50,134 - 12686 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId = 34430;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:40:50,479 - 12686 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 12:40:50,544 - 12686 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId = 34430;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:40:50,908 - 12686 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 12:40:50,976 - 12686 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId = 34430;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:40:51,325 - 12686 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 12:40:51,390 - 12686 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-07-20 12:40:51,463 - 12686 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-07-20 12:40:51,532 - 12686 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-07-20 12:40:51,599 - 12686 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.CommunicationPreferencesServiceReportNotification: - __SPLIT__ 2026-07-20 12:40:51,665 - 12686 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-07-20 12:40:51,733 - 12686 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SetupAutoGenerationSourceMapping: - __SPLIT__ 2026-07-20 12:40:51,802 - 12686 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-07-20 12:40:51,877 - 12686 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationAppliedDiscount: - __SPLIT__ 2026-07-20 12:40:51,993 - 12686 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-07-20 12:40:52,061 - 12686 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SubWorkOrderAutoGeneration: - __SPLIT__ 2026-07-20 12:40:52,131 - 12686 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-07-20 12:40:52,201 - 12686 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: - __SPLIT__ 2026-07-20 12:40:52,269 - 12686 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-07-20 12:40:52,339 - 12686 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: - __SPLIT__ 2026-07-20 12:40:52,409 - 12686 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-07-20 12:40:52,475 - 12686 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCrews: - __SPLIT__ 2026-07-20 12:40:52,537 - 12686 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-07-20 12:40:52,598 - 12686 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationServices: - __SPLIT__ 2026-07-20 12:40:52,659 - 12686 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-07-20 12:40:52,714 - 12686 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 12:40:52,779 - 12686 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (2737632, 2737633, 2737634, 2737635, 2737636, 2737637, 2737638, 2737624, 2737625, 2737626, 2737627, 2737628, 2737629, 2737630, 2737631) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:40:53,127 - 12686 - src.utils.log - INFO - βœ… Fetched 15 rows - __SPLIT__ 2026-07-20 12:40:53,194 - 12686 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 15 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:40:53,547 - 12686 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 15) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-07-20 12:40:54,776 - 12686 - src.utils.log - INFO - βœ… All 15 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-07-20 12:40:54,844 - 12686 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-07-20 12:40:54,902 - 12686 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 12686;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:40:55,248 - 12686 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-20 12:40:55,369 - 12686 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-07-20 12:40:55,431 - 12686 - src.utils.log - INFO - Time took to perform operation: 21.31 - __SPLIT__ 2026-07-20 12:41:59,204 - 124783 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=124783 - __SPLIT__ 2026-07-20 12:41:59,336 - 124783 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 124783 - __SPLIT__ 2026-07-20 12:41:59,410 - 124783 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-20 12:41:59,484 - 124783 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:42:01,665 - 124783 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 12:42:01,749 - 124783 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-07-20 12:42:01,834 - 124783 - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-07-20 12:42:01,919 - 124783 - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-07-20 12:42:02,007 - 124783 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 124783;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:42:04,003 - 124783 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-20 12:42:04,071 - 124783 - 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 = 124783), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 124783), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 124783 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-07-20 12:42:04,462 - 124783 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 12:42:04,534 - 124783 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 124783;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:42:04,881 - 124783 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 12:42:04,957 - 124783 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-07-20 12:42:05,033 - 124783 - 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 = 14626... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:42:05,395 - 124783 - src.utils.log - INFO - βœ… Fetched 60 rows - __SPLIT__ 2026-07-20 12:42:05,469 - 124783 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-07-20 12:42:05,547 - 124783 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-07-20 12:42:05,618 - 124783 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150701;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:42:05,967 - 124783 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 12:42:06,080 - 124783 - 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-07-20 00:00:00' and ServiceDate <= '2026-08-31 00:00:00' and ServiceSetupId = 150701 and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:42:06,421 - 124783 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 12:42:07,052 - 124783 - src.utils.log - INFO - Generating work orders for setup: 150701 - __SPLIT__ 2026-07-20 12:42:07,316 - 124783 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 11436;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:42:07,652 - 124783 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 12:42:07,719 - 124783 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 11427;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:42:08,049 - 124783 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 12:42:08,143 - 124783 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-07-20 12:42:08,206 - 124783 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=133 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:42:08,541 - 124783 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 12:42:08,603 - 124783 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-07-20 12:42:08,662 - 124783 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-07-20 12:42:08,716 - 124783 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150701 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:42:09,148 - 124783 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 12:42:09,199 - 124783 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150701 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:42:09,630 - 124783 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 12:42:09,688 - 124783 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150701 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:42:10,037 - 124783 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 12:42:10,100 - 124783 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150701 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:42:10,471 - 124783 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 12:42:10,585 - 124783 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150701 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:42:10,961 - 124783 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 12:42:11,027 - 124783 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150701 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:42:11,379 - 124783 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 12:42:11,451 - 124783 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150701 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:42:11,790 - 124783 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 12:42:11,854 - 124783 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150701 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:42:12,310 - 124783 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 12:42:12,372 - 124783 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 12:42:12,432 - 124783 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 31 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:42:12,810 - 124783 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 31) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-07-20 12:42:15,046 - 124783 - src.utils.log - INFO - βœ… All 31 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-07-20 12:42:15,113 - 124783 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 31 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-07-16 14:51:40.585' and ServiceSetupId = 150701... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:42:15,489 - 124783 - src.utils.log - INFO - βœ… Fetched 31 rows - __SPLIT__ 2026-07-20 12:42:15,551 - 124783 - src.utils.log - INFO - Id's of work order inserted to DB: [3683456 3683457 3683458 3683459 3683460 3683461 3683462 3683463 3683464 3683465 3683466 3683467 3683468 3683469 3683470 3683471 3683472 3683473 3683474 3683475 3683476 3683477 3683478 3683479 3683480 3683481 3683482 3683483 3683484 3683485 3683486] - __SPLIT__ 2026-07-20 12:42:15,616 - 124783 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150701;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:42:15,945 - 124783 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 12:42:16,017 - 124783 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-07-20 12:42:16,086 - 124783 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId = 150701... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:42:16,435 - 124783 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 12:42:16,552 - 124783 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId = 150701... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:42:16,893 - 124783 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 12:42:16,965 - 124783 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId = 150701... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:42:17,308 - 124783 - src.utils.log - INFO - βœ… Fetched 6 rows - __SPLIT__ 2026-07-20 12:42:17,379 - 124783 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId = 150701... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:42:17,726 - 124783 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 12:42:17,791 - 124783 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId = 150701... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:42:18,126 - 124783 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 12:42:18,190 - 124783 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId = 150701;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:42:18,528 - 124783 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 12:42:18,594 - 124783 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId = 150701;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:42:18,935 - 124783 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 12:42:19,002 - 124783 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId = 150701;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:42:19,429 - 124783 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 12:42:19,493 - 124783 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId = 150701;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:42:19,834 - 124783 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 12:42:19,915 - 124783 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-07-20 12:42:19,990 - 124783 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-07-20 12:42:20,055 - 124783 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-07-20 12:42:20,125 - 124783 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.CommunicationPreferencesServiceReportNotification: - __SPLIT__ 2026-07-20 12:42:20,242 - 124783 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-07-20 12:42:20,312 - 124783 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SetupAutoGenerationSourceMapping: - __SPLIT__ 2026-07-20 12:42:20,379 - 124783 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-07-20 12:42:20,449 - 124783 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationAppliedDiscount: - __SPLIT__ 2026-07-20 12:42:20,514 - 124783 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-07-20 12:42:20,586 - 124783 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SubWorkOrderAutoGeneration: - __SPLIT__ 2026-07-20 12:42:20,653 - 124783 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-07-20 12:42:20,721 - 124783 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: - __SPLIT__ 2026-07-20 12:42:20,793 - 124783 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-07-20 12:42:20,864 - 124783 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: - __SPLIT__ 2026-07-20 12:42:20,932 - 124783 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-07-20 12:42:21,005 - 124783 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 12:42:21,083 - 124783 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3683456, 3683457, 3683458, 3683459, 3683460, 3683461, 3683462, 3683463, 3683464, 3683465, 3683466, 3683467, 3683468, 3683469, 3683470, 3683471, 3683472, 3683473, 3683474, 3683475, 3683476, 3683477, 3683478, 3683479, 3683480, 3683481, 3683482, 3683483, 3683484, 3683485, 3683486) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:42:21,423 - 124783 - src.utils.log - INFO - βœ… Fetched 31 rows - __SPLIT__ 2026-07-20 12:42:21,500 - 124783 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationCrews: 93 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:42:21,846 - 124783 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 93) into ServiceCore.WorkOrderAutoGenerationCrews - __SPLIT__ 2026-07-20 12:42:23,340 - 124783 - src.utils.log - INFO - βœ… All 93 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationCrews in 1 batches - __SPLIT__ 2026-07-20 12:42:23,406 - 124783 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-07-20 12:42:23,470 - 124783 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 12:42:23,549 - 124783 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 3683456 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:42:23,936 - 124783 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 12:42:24,006 - 124783 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:42:24,346 - 124783 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-07-20 12:42:25,372 - 124783 - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-07-20 12:42:25,442 - 124783 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-07-20 12:42:25,513 - 124783 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 12:42:25,583 - 124783 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3683457, 3683458, 3683459, 3683460, 3683461, 3683462, 3683463, 3683464, 3683465, 3683466, 3683467, 3683468, 3683469, 3683470, 3683471, 3683472, 3683473, 3683474, 3683475, 3683476, 3683477, 3683478, 3683479, 3683480, 3683481, 3683482, 3683483, 3683484, 3683485, 3683486) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:42:25,920 - 124783 - src.utils.log - INFO - βœ… Fetched 30 rows - __SPLIT__ 2026-07-20 12:42:25,988 - 124783 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 30 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:42:26,344 - 124783 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 30) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-07-20 12:42:27,552 - 124783 - src.utils.log - INFO - βœ… All 30 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-07-20 12:42:27,616 - 124783 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-07-20 12:42:27,689 - 124783 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 124783;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:42:28,032 - 124783 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-20 12:42:28,101 - 124783 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-07-20 12:42:28,171 - 124783 - src.utils.log - INFO - Time took to perform operation: 28.69 - __SPLIT__ 2026-07-20 12:42:50,196 - [124783] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[3683456, 3683486] user_id=43135 company_id=133 project_id=[124783] publish_all=False - __SPLIT__ 2026-07-20 12:42:50,300 - [124783] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[3683456, 3683486] user_id=43135 company_id=133 project_id=[124783] publish_all=False - __SPLIT__ 2026-07-20 12:42:50,365 - [124783] - src.utils.log - INFO - Sequential Work order publish in progress for GenerateWorkOrderHistoryId: [124783] - __SPLIT__ 2026-07-20 12:42:50,435 - [124783] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-20 12:42:50,500 - [124783] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:42:52,540 - [124783] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 12:42:52,597 - [124783] - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-07-20 12:42:52,655 - [124783] - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-07-20 12:42:52,718 - [124783] - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-07-20 12:42:52,778 - [124783] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'InProgress' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124783;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:42:54,687 - [124783] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-20 12:42:54,747 - [124783] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (3683456, 3683486)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:42:55,076 - [124783] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-20 12:42:55,139 - [124783] - src.utils.log - INFO - Inside get_work_order_table - __SPLIT__ 2026-07-20 12:42:55,209 - [124783] - 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 = 150701 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:42:55,538 - [124783] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 12:42:55,606 - [124783] - 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 = 150701 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:42:55,941 - [124783] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 12:42:55,994 - [124783] - 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 = 150701 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:42:56,330 - [124783] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 12:42:56,392 - [124783] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder,BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:42:56,799 - [124783] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 12:42:56,868 - [124783] - 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-07-20 12:42:57,202 - [124783] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-20 12:42:57,273 - [124783] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder, BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:42:57,613 - [124783] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 12:42:57,689 - [124783] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 2 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 133 AND EnitityNumberType = 'WorkOrder'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:42:58,028 - [124783] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 12:42:58,097 - [124783] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 2 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 133 AND EnitityNumberType = 'Invoice'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:42:58,430 - [124783] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 12:42:58,499 - [124783] - 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 = 150701... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:42:58,838 - [124783] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 12:42:58,913 - [124783] - src.utils.log - INFO - πŸ” Fetching data: SELECT x.CompanyId FROM CRM.CompanyMaster x WHERE CompanyKey = 'abcdallas';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:42:59,250 - [124783] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 12:42:59,317 - [124783] - src.utils.log - INFO - πŸ” Fetching data: SELECT CollectionStatus,IsHold,AccountNo FROM CRM.Account a WHERE a.AccountNo = '15020' and a.CompanyId = 121;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:42:59,650 - [124783] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 12:42:59,716 - [124783] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderNo FROM ServiceCore.WorkOrder WHERE WorkOrderNo IN ('1428827', '1428828') AND CompanyId = 133 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:43:00,053 - [124783] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 12:43:00,128 - [124783] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrder (skip triggers): 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:43:00,628 - [124783] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrder (triggers skipped) - __SPLIT__ 2026-07-20 12:43:01,648 - [124783] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrder in 1 batches (triggers skipped) - __SPLIT__ 2026-07-20 12:43:01,895 - [124783] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-07-20 12:43:01,973 - [124783] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.ServiceSetup SET IsInitialWoGenerated = 1 WHERE CompanyId = 133 AND ServiceSetupId = 150701;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:43:02,310 - [124783] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-20 12:43:02,379 - [124783] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkorderId, WorkOrderNo FROM ServiceCore.WorkOrder wo WHERE wo.WorkOrderNo IN ('1428827', '1428828') AND wo.AccountNumber = '15020' AND wo.CompanyId = 133 ... (Thread: ThreadPoolExecutor-14_0) - __SPLIT__ 2026-07-20 12:43:02,712 - [124783] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-20 12:43:02,786 - [124783] - src.utils.log - INFO - Sequential fetching temp table records - __SPLIT__ 2026-07-20 12:43:02,854 - [124783] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationServices woag WHERE woag.WorkOrderAutoGenerationId in (3683456, 3683486)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:43:03,222 - [124783] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-20 12:43:03,293 - [124783] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SubWorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (3683456, 3683486)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:43:03,627 - [124783] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 12:43:03,696 - [124783] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationCrews woag WHERE woag.WorkOrderAutoGenerationId in (3683456, 3683486)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:43:04,047 - [124783] - src.utils.log - INFO - βœ… Fetched 6 rows - __SPLIT__ 2026-07-20 12:43:04,114 - [124783] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationSalesPersonCommission woag WHERE woag.WorkOrderAutoGenerationId in (3683456, 3683486)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:43:04,443 - [124783] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 12:43:04,509 - [124783] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupAutoGenerationSourceMapping woag WHERE woag.WorkOrderAutoGenerationId in (3683456, 3683486)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:43:04,841 - [124783] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 12:43:04,903 - [124783] - 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 (3683456, 3683486)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:43:05,254 - [124783] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 12:43:05,365 - [124783] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from CRM.LeadNote woag WHERE woag.RefId in (3683456, 3683486) and woag.RefType = 'TempWorkorder';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:43:05,701 - [124783] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 12:43:05,811 - [124783] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment woagca WHERE woagca.WorkOrderAutoGenerationId in (3683456, 3683486);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:43:06,136 - [124783] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 12:43:06,203 - [124783] - src.utils.log - INFO - Updating temp tables - __SPLIT__ 2026-07-20 12:43:06,314 - [124783] - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyKey FROM Common.CompanyMaster cm WHERE CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:43:06,649 - [124783] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 12:43:06,714 - [124783] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 133 AND EnitityNumberType in ('SubWorkOrder'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:43:07,045 - [124783] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 12:43:07,114 - [124783] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 12:43:07,182 - [124783] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishHistory: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:43:07,546 - [124783] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationPublishHistory - __SPLIT__ 2026-07-20 12:43:08,564 - [124783] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishHistory in 1 batches - __SPLIT__ 2026-07-20 12:43:08,631 - [124783] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationPublishHistoryId, WorkOrderNo, ServiceSetupId FROM ServiceCore.WorkOrderAutoGenerationPublishHistory WHERE ServiceSetupId = 150701 AND WorkOrderNo IN ('166468', '3181330') AND GenerateWorkOrderHistoryId = 124783;... (Thread: ThreadPoolExecutor-15_0) - __SPLIT__ 2026-07-20 12:43:09,137 - [124783] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-20 12:43:09,205 - [124783] - src.utils.log - INFO - 🏁 Final merged rows: 2 - __SPLIT__ 2026-07-20 12:43:09,275 - [124783] - src.utils.log - INFO - Sequential Insertion in work order tables begin - __SPLIT__ 2026-07-20 12:43:09,340 - [124783] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 12:43:09,420 - [124783] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderServices: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:43:09,750 - [124783] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderServices - __SPLIT__ 2026-07-20 12:43:10,754 - [124783] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderServices in 1 batches - __SPLIT__ 2026-07-20 12:43:10,825 - [124783] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderAppliedDiscount: - __SPLIT__ 2026-07-20 12:43:10,946 - [124783] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderSalesPersonCommission: - __SPLIT__ 2026-07-20 12:43:11,022 - [124783] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderCommissionAdjustment: - __SPLIT__ 2026-07-20 12:43:11,092 - [124783] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 12:43:11,160 - [124783] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderCrew: 6 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:43:11,495 - [124783] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 6) into ServiceCore.WorkOrderCrew - __SPLIT__ 2026-07-20 12:43:12,498 - [124783] - src.utils.log - INFO - βœ… All 6 rows inserted successfully into ServiceCore.WorkOrderCrew in 1 batches - __SPLIT__ 2026-07-20 12:43:12,578 - [124783] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkorderSourceMapping: - __SPLIT__ 2026-07-20 12:43:12,655 - [124783] - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-07-20 12:43:12,728 - [124783] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 12:43:12,796 - [124783] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishServices: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:43:13,136 - [124783] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationPublishServices - __SPLIT__ 2026-07-20 12:43:14,142 - [124783] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishServices in 1 batches - __SPLIT__ 2026-07-20 12:43:14,211 - [124783] - 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 = 150701... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:43:14,547 - [124783] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 12:43:14,623 - [124783] - src.utils.log - INFO - Size of Transaction: 2 - __SPLIT__ 2026-07-20 12:43:14,693 - [124783] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:43:15,155 - [124783] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-07-20 12:43:16,152 - [124783] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-07-20 12:43:16,364 - [124783] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-07-20 12:43:16,434 - [124783] - 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 = 133 AND t.TransactionType ='Invoice' AND t.CreatedDate = '2026-07-20 08:43:14.618';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:43:16,951 - [124783] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-20 12:43:17,021 - [124783] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150701;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:43:17,359 - [124783] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 12:43:17,439 - [124783] - src.utils.log - INFO - πŸ“ Executing: UPDATE Billing.[Transaction] SET ModifiedBy = NULL WHERE ModifiedBy IN (12345678910,12345678911) AND CreatedDate = '2026-07-20 08:43:14.618'; ... (Thread: ThreadPoolExecutor-16_0) - __SPLIT__ 2026-07-20 12:43:17,880 - [124783] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-20 12:43:17,953 - [124783] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 12:43:18,024 - [124783] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:43:18,366 - [124783] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.Invoice - __SPLIT__ 2026-07-20 12:43:19,371 - [124783] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-07-20 12:43:19,441 - [124783] - src.utils.log - INFO - πŸ” Fetching data: SELECT InvoiceId, WorkOrderNo FROM Billing.Invoice i WHERE i.WorkOrderNo in ('1428827', '1428828')... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:43:20,435 - [124783] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-20 12:43:20,517 - [124783] - 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 = 150701 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:43:20,858 - [124783] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 12:43:20,929 - [124783] - 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 = 150701 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:43:21,271 - [124783] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 12:43:21,352 - [124783] - 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 = 150701 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:43:21,697 - [124783] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 12:43:21,771 - [124783] - 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 = 150701 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:43:22,116 - [124783] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 12:43:22,201 - [124783] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150701;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:43:22,585 - [124783] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 12:43:22,656 - [124783] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId, AppliedDiscountAmt as AppliedDiscountAmount,IsActive ,ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 150701;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:43:22,986 - [124783] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 12:43:23,053 - [124783] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId,IsActive,DiscountAmount, IsDiscountPercent,DiscountPercent,DiscountDescription , ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 150701;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:43:23,393 - [124783] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 12:43:23,464 - [124783] - src.utils.log - INFO - Sequential Insertion in invoice tables begin - __SPLIT__ 2026-07-20 12:43:23,532 - [124783] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.AccountDiscountSetup: - __SPLIT__ 2026-07-20 12:43:23,606 - [124783] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 12:43:23,681 - [124783] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceCharges: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:43:24,020 - [124783] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.InvoiceCharges - __SPLIT__ 2026-07-20 12:43:25,013 - [124783] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.InvoiceCharges in 1 batches - __SPLIT__ 2026-07-20 12:43:25,078 - [124783] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.DiscountApplied: - __SPLIT__ 2026-07-20 12:43:25,150 - [124783] - src.utils.log - INFO - Invoice Publish Done - __SPLIT__ 2026-07-20 12:43:25,221 - [124783] - src.utils.log - INFO - Updating Next GenerationDate - __SPLIT__ 2026-07-20 12:43:25,287 - [124783] - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, MAX(NextWorkOrderGenerationDate) AS MaxNextWorkOrderGeneration FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 124783 GROUP BY ServiceSetupId; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:43:25,621 - [124783] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 12:43:25,693 - [124783] - src.utils.log - INFO - πŸ”„ Updating next gen date sequentially: inside update_next_workorder_generation - __SPLIT__ 2026-07-20 12:43:25,891 - [124783] - src.utils.log - INFO - πŸ›  Creating temp table #tbl_71a3f7d569 - __SPLIT__ 2026-07-20 12:43:26,224 - [124783] - src.utils.log - INFO - πŸ“Œ Bulk inserting 1 rows into #tbl_71a3f7d569 - __SPLIT__ 2026-07-20 12:43:26,552 - [124783] - src.utils.log - INFO - πŸ” Running MERGE update to apply changes - __SPLIT__ 2026-07-20 12:43:26,812 - [124783] - src.utils.log - INFO - βœ” SQL reported affected rows: 1 - __SPLIT__ 2026-07-20 12:43:27,020 - [124783] - src.utils.log - INFO - πŸ” Verified successfully updated 1 rows via #tbl_71a3f7d569 - __SPLIT__ 2026-07-20 12:43:27,089 - [124783] - src.utils.log - INFO - πŸŽ‰ Successfully updated NextGenerationDate using temp table #tbl_71a3f7d569 - __SPLIT__ 2026-07-20 12:43:27,163 - [124783] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 124783 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:43:27,495 - [124783] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 12:43:27,553 - [124783] - src.utils.log - INFO - Sequential deletion from temp tables begin - __SPLIT__ 2026-07-20 12:43:27,626 - [124783] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId in (3683456, 3683486) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:43:28,084 - [124783] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 12:43:28,157 - [124783] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId in (3683456, 3683486) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:43:28,573 - [124783] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 12:43:28,648 - [124783] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId in (3683456, 3683486) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:43:28,982 - [124783] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 12:43:29,050 - [124783] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId in (3683456, 3683486) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:43:29,460 - [124783] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 12:43:29,536 - [124783] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId in (3683456, 3683486) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:43:29,871 - [124783] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 12:43:29,987 - [124783] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (3683456, 3683486) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:43:30,320 - [124783] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 12:43:30,391 - [124783] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId in (3683456, 3683486) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:43:30,729 - [124783] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 12:43:30,835 - [124783] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (3683456, 3683486) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:43:31,253 - [124783] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 12:43:31,314 - [124783] - src.utils.log - INFO - Work order published ids: (3683456, 3683486) - __SPLIT__ 2026-07-20 12:43:31,375 - [124783] - src.utils.log - INFO - Time took to perform operation in publishing [124783]: 40.94 - __SPLIT__ 2026-07-20 12:43:31,446 - [124783] - src.utils.log - INFO - Publish Completed for GenerateWorkOrderHistoryId: [124783] - __SPLIT__ 2026-07-20 12:43:31,512 - [124783] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-07-20 08:43:31.314' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124783;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 12:43:31,849 - [124783] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-20 14:02:09,990 - 124784 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=124784 - __SPLIT__ 2026-07-20 14:02:10,145 - 124784 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 124784 - __SPLIT__ 2026-07-20 14:02:10,215 - 124784 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-20 14:02:10,293 - 124784 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 14:02:12,430 - 124784 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 14:02:12,493 - 124784 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-07-20 14:02:12,570 - 124784 - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-07-20 14:02:12,629 - 124784 - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-07-20 14:02:12,692 - 124784 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 124784;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 14:02:14,614 - 124784 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-20 14:02:14,679 - 124784 - 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 = 124784), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 124784), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 124784 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-07-20 14:02:15,057 - 124784 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 14:02:15,123 - 124784 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 124784;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 14:02:15,460 - 124784 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 14:02:15,527 - 124784 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-07-20 14:02:15,594 - 124784 - 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 = 14638... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 14:02:15,937 - 124784 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 14:02:16,005 - 124784 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-07-20 14:02:16,070 - 124784 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-07-20 14:02:16,133 - 124784 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150702;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 14:02:16,466 - 124784 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 14:02:16,567 - 124784 - 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-07-20 00:00:00' and ServiceDate <= '2026-12-31 00:00:00' and ServiceSetupId = 150702 and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 14:02:16,886 - 124784 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 14:02:17,509 - 124784 - src.utils.log - INFO - Generating work orders for setup: 150702 - __SPLIT__ 2026-07-20 14:02:17,605 - 124784 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 11428;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 14:02:17,932 - 124784 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 14:02:17,992 - 124784 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 11428;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 14:02:18,311 - 124784 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 14:02:18,412 - 124784 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-07-20 14:02:18,473 - 124784 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=133 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 14:02:18,785 - 124784 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 14:02:18,850 - 124784 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-07-20 14:02:18,905 - 124784 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-07-20 14:02:18,970 - 124784 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150702 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 14:02:19,329 - 124784 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 14:02:19,388 - 124784 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150702 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 14:02:19,752 - 124784 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 14:02:19,807 - 124784 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150702 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 14:02:20,135 - 124784 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 14:02:20,187 - 124784 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150702 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 14:02:20,560 - 124784 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 14:02:20,668 - 124784 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150702 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 14:02:21,047 - 124784 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 14:02:21,104 - 124784 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150702 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 14:02:21,444 - 124784 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 14:02:21,512 - 124784 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150702 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 14:02:21,844 - 124784 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 14:02:21,908 - 124784 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150702 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 14:02:22,356 - 124784 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 14:02:22,419 - 124784 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 14:02:22,471 - 124784 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 5 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 14:02:22,831 - 124784 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 5) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-07-20 14:02:23,992 - 124784 - src.utils.log - INFO - βœ… All 5 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-07-20 14:02:24,055 - 124784 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 5 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-07-16 14:51:40.585' and ServiceSetupId = 150702... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 14:02:24,431 - 124784 - src.utils.log - INFO - βœ… Fetched 5 rows - __SPLIT__ 2026-07-20 14:02:24,495 - 124784 - src.utils.log - INFO - Id's of work order inserted to DB: [3683487 3683488 3683489 3683490 3683491] - __SPLIT__ 2026-07-20 14:02:24,561 - 124784 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150702;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 14:02:24,893 - 124784 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 14:02:24,960 - 124784 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-07-20 14:02:25,019 - 124784 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId = 150702... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 14:02:25,348 - 124784 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 14:02:25,466 - 124784 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId = 150702... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 14:02:25,802 - 124784 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 14:02:25,875 - 124784 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId = 150702... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 14:02:26,217 - 124784 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 14:02:26,287 - 124784 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId = 150702... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 14:02:26,624 - 124784 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 14:02:26,694 - 124784 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId = 150702... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 14:02:27,027 - 124784 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 14:02:27,102 - 124784 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId = 150702;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 14:02:27,440 - 124784 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 14:02:27,514 - 124784 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId = 150702;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 14:02:27,850 - 124784 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 14:02:27,923 - 124784 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId = 150702;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 14:02:28,359 - 124784 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 14:02:28,431 - 124784 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId = 150702;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 14:02:28,769 - 124784 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 14:02:28,850 - 124784 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-07-20 14:02:28,927 - 124784 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-07-20 14:02:29,003 - 124784 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-07-20 14:02:29,074 - 124784 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.CommunicationPreferencesServiceReportNotification: - __SPLIT__ 2026-07-20 14:02:29,190 - 124784 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-07-20 14:02:29,249 - 124784 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 14:02:29,316 - 124784 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ('3683487', '3683488', '3683491', '3683490', '3683489') ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 14:02:29,644 - 124784 - src.utils.log - INFO - βœ… Fetched 5 rows - __SPLIT__ 2026-07-20 14:02:29,707 - 124784 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.SetupAutoGenerationSourceMapping: 0 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 14:02:30,036 - 124784 - src.utils.log - INFO - βœ… All 0 rows inserted successfully into ServiceCore.SetupAutoGenerationSourceMapping in 0 batches - __SPLIT__ 2026-07-20 14:02:30,117 - 124784 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-07-20 14:02:30,173 - 124784 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationAppliedDiscount: - __SPLIT__ 2026-07-20 14:02:30,242 - 124784 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-07-20 14:02:30,311 - 124784 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 14:02:30,373 - 124784 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3683488, 3683489, 3683490, 3683491, 3683487) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 14:02:30,704 - 124784 - src.utils.log - INFO - βœ… Fetched 5 rows - __SPLIT__ 2026-07-20 14:02:30,767 - 124784 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.SubWorkOrderAutoGeneration: 5 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 14:02:31,108 - 124784 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 5) into ServiceCore.SubWorkOrderAutoGeneration - __SPLIT__ 2026-07-20 14:02:32,248 - 124784 - src.utils.log - INFO - βœ… All 5 rows inserted successfully into ServiceCore.SubWorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-07-20 14:02:32,316 - 124784 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-07-20 14:02:32,384 - 124784 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: - __SPLIT__ 2026-07-20 14:02:32,446 - 124784 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-07-20 14:02:32,517 - 124784 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: - __SPLIT__ 2026-07-20 14:02:32,586 - 124784 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-07-20 14:02:32,701 - 124784 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCrews: - __SPLIT__ 2026-07-20 14:02:32,766 - 124784 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-07-20 14:02:32,835 - 124784 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationServices: - __SPLIT__ 2026-07-20 14:02:32,906 - 124784 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-07-20 14:02:32,979 - 124784 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 14:02:33,046 - 124784 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3683488, 3683489, 3683490, 3683491, 3683487) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 14:02:33,376 - 124784 - src.utils.log - INFO - βœ… Fetched 5 rows - __SPLIT__ 2026-07-20 14:02:33,443 - 124784 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 5 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 14:02:33,778 - 124784 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 5) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-07-20 14:02:34,866 - 124784 - src.utils.log - INFO - βœ… All 5 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-07-20 14:02:34,922 - 124784 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-07-20 14:02:34,987 - 124784 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 124784;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 14:02:35,307 - 124784 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-20 14:02:35,377 - 124784 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-07-20 14:02:35,433 - 124784 - src.utils.log - INFO - Time took to perform operation: 25.16 - __SPLIT__ 2026-07-20 14:03:39,153 - [124784] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[3683487, 3683488, 3683489, 3683490, 3683491] user_id=43135 company_id=133 project_id=[124784] publish_all=False - __SPLIT__ 2026-07-20 14:03:39,275 - [124784] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[3683487, 3683488, 3683489, 3683490, 3683491] user_id=43135 company_id=133 project_id=[124784] publish_all=False - __SPLIT__ 2026-07-20 14:03:39,347 - [124784] - src.utils.log - INFO - Sequential Work order publish in progress for GenerateWorkOrderHistoryId: [124784] - __SPLIT__ 2026-07-20 14:03:39,422 - [124784] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-20 14:03:39,514 - [124784] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 14:03:41,659 - [124784] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 14:03:41,730 - [124784] - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-07-20 14:03:41,806 - [124784] - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-07-20 14:03:41,875 - [124784] - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-07-20 14:03:41,947 - [124784] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'InProgress' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124784;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 14:03:43,883 - [124784] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-20 14:03:43,951 - [124784] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (3683487, 3683488, 3683489, 3683490, 3683491)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 14:03:44,301 - [124784] - src.utils.log - INFO - βœ… Fetched 5 rows - __SPLIT__ 2026-07-20 14:03:44,368 - [124784] - src.utils.log - INFO - Inside get_work_order_table - __SPLIT__ 2026-07-20 14:03:44,441 - [124784] - 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 = 150702 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 14:03:44,809 - [124784] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 14:03:44,878 - [124784] - 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 = 150702 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 14:03:45,223 - [124784] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 14:03:45,295 - [124784] - 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 = 150702 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 14:03:45,643 - [124784] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 14:03:45,720 - [124784] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder,BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 14:03:46,112 - [124784] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 14:03:46,212 - [124784] - 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-07-20 14:03:46,563 - [124784] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-20 14:03:46,630 - [124784] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder, BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 14:03:46,982 - [124784] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 14:03:47,050 - [124784] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 5 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 133 AND EnitityNumberType = 'WorkOrder'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 14:03:47,399 - [124784] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 14:03:47,470 - [124784] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 5 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 133 AND EnitityNumberType = 'Invoice'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 14:03:47,808 - [124784] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 14:03:47,885 - [124784] - 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 = 150702... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 14:03:48,234 - [124784] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 14:03:48,312 - [124784] - src.utils.log - INFO - πŸ” Fetching data: SELECT x.CompanyId FROM CRM.CompanyMaster x WHERE CompanyKey = 'abcdallas';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 14:03:48,658 - [124784] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 14:03:48,730 - [124784] - src.utils.log - INFO - πŸ” Fetching data: SELECT CollectionStatus,IsHold,AccountNo FROM CRM.Account a WHERE a.AccountNo = '15021' and a.CompanyId = 121;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 14:03:49,063 - [124784] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 14:03:49,142 - [124784] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderNo FROM ServiceCore.WorkOrder WHERE WorkOrderNo IN ('1428829', '1428830', '1428831', '1428832', '1428833') AND CompanyId = 133 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 14:03:49,484 - [124784] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 14:03:49,553 - [124784] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrder (skip triggers): 5 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 14:03:50,063 - [124784] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 5) into ServiceCore.WorkOrder (triggers skipped) - __SPLIT__ 2026-07-20 14:03:51,251 - [124784] - src.utils.log - INFO - βœ… All 5 rows inserted successfully into ServiceCore.WorkOrder in 1 batches (triggers skipped) - __SPLIT__ 2026-07-20 14:03:51,490 - [124784] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-07-20 14:03:51,563 - [124784] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.ServiceSetup SET IsInitialWoGenerated = 1 WHERE CompanyId = 133 AND ServiceSetupId = 150702;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 14:03:51,942 - [124784] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-20 14:03:52,011 - [124784] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkorderId, WorkOrderNo FROM ServiceCore.WorkOrder wo WHERE wo.WorkOrderNo IN ('1428829', '1428830', '1428831', '1428832', '1428833') AND wo.AccountNumber = '15021' AND wo.CompanyId = 133 ... (Thread: ThreadPoolExecutor-43_0) - __SPLIT__ 2026-07-20 14:03:52,346 - [124784] - src.utils.log - INFO - βœ… Fetched 5 rows - __SPLIT__ 2026-07-20 14:03:52,415 - [124784] - src.utils.log - INFO - Sequential fetching temp table records - __SPLIT__ 2026-07-20 14:03:52,474 - [124784] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationServices woag WHERE woag.WorkOrderAutoGenerationId in (3683487, 3683488, 3683489, 3683490, 3683491)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 14:03:52,859 - [124784] - src.utils.log - INFO - βœ… Fetched 5 rows - __SPLIT__ 2026-07-20 14:03:52,948 - [124784] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SubWorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (3683487, 3683488, 3683489, 3683490, 3683491)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 14:03:53,289 - [124784] - src.utils.log - INFO - βœ… Fetched 5 rows - __SPLIT__ 2026-07-20 14:03:53,360 - [124784] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationCrews woag WHERE woag.WorkOrderAutoGenerationId in (3683487, 3683488, 3683489, 3683490, 3683491)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 14:03:53,707 - [124784] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 14:03:53,770 - [124784] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationSalesPersonCommission woag WHERE woag.WorkOrderAutoGenerationId in (3683487, 3683488, 3683489, 3683490, 3683491)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 14:03:54,106 - [124784] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 14:03:54,172 - [124784] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupAutoGenerationSourceMapping woag WHERE woag.WorkOrderAutoGenerationId in (3683487, 3683488, 3683489, 3683490, 3683491)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 14:03:54,511 - [124784] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 14:03:54,577 - [124784] - 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 (3683487, 3683488, 3683489, 3683490, 3683491)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 14:03:54,939 - [124784] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 14:03:54,998 - [124784] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from CRM.LeadNote woag WHERE woag.RefId in (3683487, 3683488, 3683489, 3683490, 3683491) and woag.RefType = 'TempWorkorder';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 14:03:55,327 - [124784] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 14:03:55,438 - [124784] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment woagca WHERE woagca.WorkOrderAutoGenerationId in (3683487, 3683488, 3683489, 3683490, 3683491);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 14:03:55,772 - [124784] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 14:03:55,839 - [124784] - src.utils.log - INFO - Updating temp tables - __SPLIT__ 2026-07-20 14:03:55,923 - [124784] - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyKey FROM Common.CompanyMaster cm WHERE CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 14:03:56,252 - [124784] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 14:03:56,313 - [124784] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 133 AND EnitityNumberType in ('SubWorkOrder'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 14:03:56,649 - [124784] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 14:03:56,712 - [124784] - src.utils.log - INFO - πŸ“ Executing: UPDATE Common.GenerateNumberConfig SET NextNumber = '22887' WHERE CompanyId = 133 AND EnitityNumberType in ('SubWorkOrder');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 14:03:57,052 - [124784] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-20 14:03:57,119 - [124784] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 14:03:57,188 - [124784] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishHistory: 5 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 14:03:57,549 - [124784] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 5) into ServiceCore.WorkOrderAutoGenerationPublishHistory - __SPLIT__ 2026-07-20 14:03:58,780 - [124784] - src.utils.log - INFO - βœ… All 5 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishHistory in 1 batches - __SPLIT__ 2026-07-20 14:03:58,849 - [124784] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationPublishHistoryId, WorkOrderNo, ServiceSetupId FROM ServiceCore.WorkOrderAutoGenerationPublishHistory WHERE ServiceSetupId = 150702 AND WorkOrderNo IN ('8770201', '4153114', '1794385', '4841237', '9406866') AND GenerateWorkOrderHistoryId = 124784;... (Thread: ThreadPoolExecutor-44_0) - __SPLIT__ 2026-07-20 14:03:59,347 - [124784] - src.utils.log - INFO - βœ… Fetched 5 rows - __SPLIT__ 2026-07-20 14:03:59,410 - [124784] - src.utils.log - INFO - 🏁 Final merged rows: 5 - __SPLIT__ 2026-07-20 14:03:59,483 - [124784] - src.utils.log - INFO - Sequential Insertion in work order tables begin - __SPLIT__ 2026-07-20 14:03:59,544 - [124784] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 14:03:59,608 - [124784] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderServices: 5 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 14:03:59,948 - [124784] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 5) into ServiceCore.WorkOrderServices - __SPLIT__ 2026-07-20 14:04:01,025 - [124784] - src.utils.log - INFO - βœ… All 5 rows inserted successfully into ServiceCore.WorkOrderServices in 1 batches - __SPLIT__ 2026-07-20 14:04:01,096 - [124784] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderAppliedDiscount: - __SPLIT__ 2026-07-20 14:04:01,163 - [124784] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderSalesPersonCommission: - __SPLIT__ 2026-07-20 14:04:01,233 - [124784] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderCommissionAdjustment: - __SPLIT__ 2026-07-20 14:04:01,302 - [124784] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderCrew: - __SPLIT__ 2026-07-20 14:04:01,363 - [124784] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkorderSourceMapping: - __SPLIT__ 2026-07-20 14:04:01,433 - [124784] - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-07-20 14:04:01,496 - [124784] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 14:04:01,551 - [124784] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishServices: 5 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 14:04:01,881 - [124784] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 5) into ServiceCore.WorkOrderAutoGenerationPublishServices - __SPLIT__ 2026-07-20 14:04:02,909 - [124784] - src.utils.log - INFO - βœ… All 5 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishServices in 1 batches - __SPLIT__ 2026-07-20 14:04:02,976 - [124784] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 14:04:03,046 - [124784] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.SubWorkOrder: 5 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 14:04:03,389 - [124784] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 5) into ServiceCore.SubWorkOrder - __SPLIT__ 2026-07-20 14:04:04,535 - [124784] - src.utils.log - INFO - βœ… All 5 rows inserted successfully into ServiceCore.SubWorkOrder in 1 batches - __SPLIT__ 2026-07-20 14:04:04,590 - [124784] - src.utils.log - INFO - πŸ” Fetching data: Select * From ServiceCore.SubWorkOrder where WorkOrderId in (2159116, 2159117, 2159118, 2159119, 2159120)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 14:04:04,937 - [124784] - src.utils.log - INFO - βœ… Fetched 5 rows - __SPLIT__ 2026-07-20 14:04:05,009 - [124784] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 14:04:05,076 - [124784] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.subWorkOrderIssue: 5 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 14:04:05,404 - [124784] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 5) into ServiceAuto.subWorkOrderIssue - __SPLIT__ 2026-07-20 14:04:06,325 - [124784] - src.utils.log - INFO - βœ… All 5 rows inserted successfully into ServiceAuto.subWorkOrderIssue in 1 batches - __SPLIT__ 2026-07-20 14:04:06,405 - [124784] - src.utils.log - INFO - πŸ” Fetching data: Select SubWorkOrderIssueId, SubWorkOrderId, ModifiedBy From ServiceAuto.subWorkOrderIssue where SubWorkOrderId in (230482, 230486, 230485, 230484, 230483) and ModifiedBy in ('999999999', '1000000000', '1000000001', '1000000002', '1000000003')... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 14:04:06,736 - [124784] - src.utils.log - INFO - βœ… Fetched 5 rows - __SPLIT__ 2026-07-20 14:04:06,799 - [124784] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceAuto.subWorkOrderIssue SET ModifiedBy = 'abcdallas' WHERE ModifiedBy IN ('999999999', '1000000000', '1000000001', '1000000002', '1000000003'); ... (Thread: ThreadPoolExecutor-45_0) - __SPLIT__ 2026-07-20 14:04:07,167 - [124784] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-20 14:04:07,243 - [124784] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 14:04:07,311 - [124784] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.subWOIssueRepair: 5 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 14:04:07,652 - [124784] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 5) into ServiceAuto.subWOIssueRepair - __SPLIT__ 2026-07-20 14:04:08,526 - [124784] - src.utils.log - INFO - βœ… All 5 rows inserted successfully into ServiceAuto.subWOIssueRepair in 1 batches - __SPLIT__ 2026-07-20 14:04:08,598 - [124784] - src.utils.log - INFO - πŸ” Fetching data: Select IssueRepairId, ModifiedBy From ServiceAuto.subWOIssueRepair where SubWorkOrderIssueId in (192665, 192666, 192667, 192668, 192669)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 14:04:08,949 - [124784] - src.utils.log - INFO - βœ… Fetched 5 rows - __SPLIT__ 2026-07-20 14:04:09,015 - [124784] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceAuto.subWOIssueRepair SET ModifiedBy = 'abcdallas' WHERE ModifiedBy IN ('0___TMP___192665', '0___TMP___192666', '0___TMP___192667', '0___TMP___192668', '0___TMP___192669') AND CreatedDate = '2026-07-20 10:04:05.007'; ... (Thread: ThreadPoolExecutor-46_0) - __SPLIT__ 2026-07-20 14:04:09,361 - [124784] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-20 14:04:09,434 - [124784] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 14:04:09,506 - [124784] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.SubWOIssueRepairLabor: 10 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 14:04:09,848 - [124784] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 10) into ServiceAuto.SubWOIssueRepairLabor - __SPLIT__ 2026-07-20 14:04:10,867 - [124784] - src.utils.log - INFO - βœ… All 10 rows inserted successfully into ServiceAuto.SubWOIssueRepairLabor in 1 batches - __SPLIT__ 2026-07-20 14:04:10,940 - [124784] - 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 = 150702... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 14:04:11,275 - [124784] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 14:04:11,342 - [124784] - src.utils.log - INFO - Size of Transaction: 5 - __SPLIT__ 2026-07-20 14:04:11,463 - [124784] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 5 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 14:04:11,939 - [124784] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 5) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-07-20 14:04:12,979 - [124784] - src.utils.log - INFO - βœ… All 5 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-07-20 14:04:13,178 - [124784] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-07-20 14:04:13,246 - [124784] - 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-07-20 10:04:11.337';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 14:04:13,711 - [124784] - src.utils.log - INFO - βœ… Fetched 5 rows - __SPLIT__ 2026-07-20 14:04:13,781 - [124784] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150702;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 14:04:14,116 - [124784] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 14:04:14,197 - [124784] - src.utils.log - INFO - πŸ“ Executing: UPDATE Billing.[Transaction] SET ModifiedBy = NULL WHERE ModifiedBy IN (12345678910,12345678911,12345678912,12345678913,12345678914) AND CreatedDate = '2026-07-20 10:04:11.337'; ... (Thread: ThreadPoolExecutor-47_0) - __SPLIT__ 2026-07-20 14:04:14,626 - [124784] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-20 14:04:14,698 - [124784] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 14:04:14,769 - [124784] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 5 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 14:04:15,118 - [124784] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 5) into Billing.Invoice - __SPLIT__ 2026-07-20 14:04:16,124 - [124784] - src.utils.log - INFO - βœ… All 5 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-07-20 14:04:16,197 - [124784] - src.utils.log - INFO - πŸ” Fetching data: SELECT InvoiceId, WorkOrderNo FROM Billing.Invoice i WHERE i.WorkOrderNo in ('1428829', '1428833', '1428832', '1428831', '1428830')... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 14:04:17,290 - [124784] - src.utils.log - INFO - βœ… Fetched 5 rows - __SPLIT__ 2026-07-20 14:04:17,368 - [124784] - 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 = 150702 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 14:04:17,712 - [124784] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 14:04:17,775 - [124784] - 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 = 150702 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 14:04:18,114 - [124784] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 14:04:18,228 - [124784] - 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 = 150702 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 14:04:18,562 - [124784] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 14:04:18,620 - [124784] - 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 = 150702 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 14:04:18,949 - [124784] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 14:04:19,020 - [124784] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150702;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 14:04:19,353 - [124784] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 14:04:19,418 - [124784] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId, AppliedDiscountAmt as AppliedDiscountAmount,IsActive ,ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 150702;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 14:04:19,744 - [124784] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 14:04:19,809 - [124784] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId,IsActive,DiscountAmount, IsDiscountPercent,DiscountPercent,DiscountDescription , ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 150702;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 14:04:20,132 - [124784] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 14:04:20,201 - [124784] - src.utils.log - INFO - Sequential Insertion in invoice tables begin - __SPLIT__ 2026-07-20 14:04:20,269 - [124784] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.AccountDiscountSetup: - __SPLIT__ 2026-07-20 14:04:20,329 - [124784] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 14:04:20,399 - [124784] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceCharges: 5 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 14:04:20,736 - [124784] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 5) into Billing.InvoiceCharges - __SPLIT__ 2026-07-20 14:04:21,739 - [124784] - src.utils.log - INFO - βœ… All 5 rows inserted successfully into Billing.InvoiceCharges in 1 batches - __SPLIT__ 2026-07-20 14:04:21,802 - [124784] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.DiscountApplied: - __SPLIT__ 2026-07-20 14:04:21,865 - [124784] - src.utils.log - INFO - Invoice Publish Done - __SPLIT__ 2026-07-20 14:04:21,921 - [124784] - src.utils.log - INFO - Updating Next GenerationDate - __SPLIT__ 2026-07-20 14:04:21,976 - [124784] - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, MAX(NextWorkOrderGenerationDate) AS MaxNextWorkOrderGeneration FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 124784 GROUP BY ServiceSetupId; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 14:04:22,358 - [124784] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 14:04:22,431 - [124784] - src.utils.log - INFO - πŸ”„ Updating next gen date sequentially: inside update_next_workorder_generation - __SPLIT__ 2026-07-20 14:04:22,632 - [124784] - src.utils.log - INFO - πŸ›  Creating temp table #tbl_fe7cab0d64 - __SPLIT__ 2026-07-20 14:04:22,963 - [124784] - src.utils.log - INFO - πŸ“Œ Bulk inserting 1 rows into #tbl_fe7cab0d64 - __SPLIT__ 2026-07-20 14:04:23,301 - [124784] - src.utils.log - INFO - πŸ” Running MERGE update to apply changes - __SPLIT__ 2026-07-20 14:04:23,507 - [124784] - src.utils.log - INFO - βœ” SQL reported affected rows: 1 - __SPLIT__ 2026-07-20 14:04:23,706 - [124784] - src.utils.log - INFO - πŸ” Verified successfully updated 1 rows via #tbl_fe7cab0d64 - __SPLIT__ 2026-07-20 14:04:23,771 - [124784] - src.utils.log - INFO - πŸŽ‰ Successfully updated NextGenerationDate using temp table #tbl_fe7cab0d64 - __SPLIT__ 2026-07-20 14:04:23,836 - [124784] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 124784 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 14:04:24,165 - [124784] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 14:04:24,230 - [124784] - src.utils.log - INFO - Sequential deletion from temp tables begin - __SPLIT__ 2026-07-20 14:04:24,298 - [124784] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId in (3683487, 3683488, 3683489, 3683490, 3683491) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 14:04:24,770 - [124784] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 14:04:24,836 - [124784] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId in (3683487, 3683488, 3683489, 3683490, 3683491) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 14:04:25,276 - [124784] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 14:04:25,338 - [124784] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId in (3683487, 3683488, 3683489, 3683490, 3683491) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 14:04:25,668 - [124784] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 14:04:25,738 - [124784] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId in (3683487, 3683488, 3683489, 3683490, 3683491) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 14:04:26,146 - [124784] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 14:04:26,220 - [124784] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId in (3683487, 3683488, 3683489, 3683490, 3683491) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 14:04:26,620 - [124784] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 14:04:26,688 - [124784] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (3683487, 3683488, 3683489, 3683490, 3683491) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 14:04:27,032 - [124784] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 14:04:27,107 - [124784] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId in (3683487, 3683488, 3683489, 3683490, 3683491) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 14:04:27,466 - [124784] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 14:04:27,541 - [124784] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (3683487, 3683488, 3683489, 3683490, 3683491) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 14:04:28,101 - [124784] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 14:04:28,167 - [124784] - src.utils.log - INFO - Work order published ids: (3683487, 3683488, 3683489, 3683490, 3683491) - __SPLIT__ 2026-07-20 14:04:28,240 - [124784] - src.utils.log - INFO - Time took to perform operation in publishing [124784]: 48.82 - __SPLIT__ 2026-07-20 14:04:28,304 - [124784] - src.utils.log - INFO - Publish Completed for GenerateWorkOrderHistoryId: [124784] - __SPLIT__ 2026-07-20 14:04:28,373 - [124784] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-07-20 10:04:28.166' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124784;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 14:04:28,712 - [124784] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-20 15:03:11,485 - [12689] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[] user_id=122885 company_id=135 project_id=[12689] publish_all=True - __SPLIT__ 2026-07-20 15:03:11,607 - [12689] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[] user_id=122885 company_id=135 project_id=[12689] publish_all=True - __SPLIT__ 2026-07-20 15:03:11,677 - [12689] - src.utils.log - INFO - Sequential Work order publish in progress for GenerateWorkOrderHistoryId: [12689] - __SPLIT__ 2026-07-20 15:03:11,755 - [12689] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-20 15:03:11,815 - [12689] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:03:13,849 - [12689] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 15:03:13,911 - [12689] - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-07-20 15:03:13,973 - [12689] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'InProgress' WHERE CompanyId = 135 AND GenerateWorkOrderHistoryId = 12689;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:03:14,323 - [12689] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-20 15:03:14,390 - [12689] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGeneration woag WHERE woag.GenerateWorkOrderHistoryId = 12689... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:03:14,746 - [12689] - src.utils.log - INFO - βœ… Fetched 26 rows - __SPLIT__ 2026-07-20 15:03:14,810 - [12689] - src.utils.log - INFO - Inside get_work_order_table - __SPLIT__ 2026-07-20 15:03:14,890 - [12689] - 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 = 135 AND d2.CompanyId = bm.CompanyId AND sss.ServiceSetupId in (34434, 34436, 34435) AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:03:15,248 - [12689] - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-07-20 15:03:15,309 - [12689] - 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 = 135 AND d2.CompanyId = bm.CompanyId AND sss.ServiceSetupId in (34434, 34436, 34435) AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:03:15,660 - [12689] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 15:03:15,726 - [12689] - 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 = 135 AND d2.CompanyId = bm.CompanyId AND sss.ServiceSetupId in (34434, 34436, 34435) AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:03:16,079 - [12689] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 15:03:16,151 - [12689] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder,BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 135;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:03:16,497 - [12689] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 15:03:16,558 - [12689] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 135 AND EnitityNumberType in ('WorkOrder','Invoice'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:03:16,954 - [12689] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-20 15:03:17,029 - [12689] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder, BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 135; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:03:17,378 - [12689] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 15:03:17,446 - [12689] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig SET NextNumber = NextNumber + 26 OUTPUT INSERTED.NextNumber - 26 AS StartNumber WHERE CompanyId = 135 AND EnitityNumberType IN ('WorkOrder','Invoice'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:03:17,795 - [12689] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-20 15:03:17,868 - [12689] - 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 (34434, 34436, 34435)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:03:18,254 - [12689] - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-07-20 15:03:18,334 - [12689] - src.utils.log - INFO - πŸ” Fetching data: SELECT x.CompanyId FROM CRM.CompanyMaster x WHERE CompanyKey = 'Fortive';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:03:18,677 - [12689] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 15:03:18,750 - [12689] - src.utils.log - INFO - πŸ” Fetching data: SELECT CollectionStatus,IsHold,AccountNo FROM CRM.Account a WHERE a.AccountNo = '8848' and a.CompanyId = 124;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:03:19,097 - [12689] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 15:03:19,168 - [12689] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderNo FROM ServiceCore.WorkOrder WHERE WorkOrderNo IN ('169388R', '169389R', '169390R', '169391R', '169392R', '169393R', '169394R', '169395R', '169396R', '169397R', '169398R', '169399R', '169400R', '169401R', '169402R', '169403R', '169404R', '169405R', '169406R', '169407R', '169408R', '169409R', '169410R', '169411R', '169412R', '169413R') AND CompanyId = 135 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:03:19,529 - [12689] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 15:03:19,599 - [12689] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrder (skip triggers): 26 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:03:20,139 - [12689] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 26) into ServiceCore.WorkOrder (triggers skipped) - __SPLIT__ 2026-07-20 15:03:22,092 - [12689] - src.utils.log - INFO - βœ… All 26 rows inserted successfully into ServiceCore.WorkOrder in 1 batches (triggers skipped) - __SPLIT__ 2026-07-20 15:03:22,302 - [12689] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-07-20 15:03:22,376 - [12689] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.ServiceSetup SET IsInitialWoGenerated = 1 WHERE CompanyId = 135 AND ServiceSetupId in (34434, 34436, 34435);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:03:22,728 - [12689] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-20 15:03:22,793 - [12689] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkorderId, WorkOrderNo FROM ServiceCore.WorkOrder wo WHERE wo.WorkOrderNo IN ('169388R', '169389R', '169390R', '169391R', '169392R', '169393R', '169394R', '169395R', '169396R', '169397R', '169398R', '169399R', '169400R', '169401R', '169402R', '169403R', '169404R', '169405R', '169406R', '169407R', '169408R', '169409R', '169410R', '169411R', '169412R', '169413R') AND wo.AccountNumber = '8848' AND wo.CompanyId = 135 ... (Thread: ThreadPoolExecutor-48_0) - __SPLIT__ 2026-07-20 15:03:23,201 - [12689] - src.utils.log - INFO - βœ… Fetched 26 rows - __SPLIT__ 2026-07-20 15:03:23,267 - [12689] - src.utils.log - INFO - Sequential fetching temp table records - __SPLIT__ 2026-07-20 15:03:23,367 - [12689] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationServices woag WHERE woag.WorkOrderAutoGenerationId in (2737659, 2737660, 2737661, 2737662, 2737663, 2737664, 2737665, 2737666, 2737667, 2737668, 2737669, 2737670, 2737671, 2737672, 2737673, 2737674, 2737675, 2737676, 2737677, 2737678, 2737679, 2737680, 2737681, 2737682, 2737683, 2737684)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:03:23,730 - [12689] - src.utils.log - INFO - βœ… Fetched 26 rows - __SPLIT__ 2026-07-20 15:03:23,801 - [12689] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SubWorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (2737659, 2737660, 2737661, 2737662, 2737663, 2737664, 2737665, 2737666, 2737667, 2737668, 2737669, 2737670, 2737671, 2737672, 2737673, 2737674, 2737675, 2737676, 2737677, 2737678, 2737679, 2737680, 2737681, 2737682, 2737683, 2737684)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:03:24,158 - [12689] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 15:03:24,230 - [12689] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationCrews woag WHERE woag.WorkOrderAutoGenerationId in (2737659, 2737660, 2737661, 2737662, 2737663, 2737664, 2737665, 2737666, 2737667, 2737668, 2737669, 2737670, 2737671, 2737672, 2737673, 2737674, 2737675, 2737676, 2737677, 2737678, 2737679, 2737680, 2737681, 2737682, 2737683, 2737684)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:03:24,598 - [12689] - src.utils.log - INFO - βœ… Fetched 26 rows - __SPLIT__ 2026-07-20 15:03:24,662 - [12689] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationSalesPersonCommission woag WHERE woag.WorkOrderAutoGenerationId in (2737659, 2737660, 2737661, 2737662, 2737663, 2737664, 2737665, 2737666, 2737667, 2737668, 2737669, 2737670, 2737671, 2737672, 2737673, 2737674, 2737675, 2737676, 2737677, 2737678, 2737679, 2737680, 2737681, 2737682, 2737683, 2737684)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:03:25,024 - [12689] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 15:03:25,097 - [12689] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupAutoGenerationSourceMapping woag WHERE woag.WorkOrderAutoGenerationId in (2737659, 2737660, 2737661, 2737662, 2737663, 2737664, 2737665, 2737666, 2737667, 2737668, 2737669, 2737670, 2737671, 2737672, 2737673, 2737674, 2737675, 2737676, 2737677, 2737678, 2737679, 2737680, 2737681, 2737682, 2737683, 2737684)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:03:25,470 - [12689] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 15:03:25,538 - [12689] - 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 (2737659, 2737660, 2737661, 2737662, 2737663, 2737664, 2737665, 2737666, 2737667, 2737668, 2737669, 2737670, 2737671, 2737672, 2737673, 2737674, 2737675, 2737676, 2737677, 2737678, 2737679, 2737680, 2737681, 2737682, 2737683, 2737684)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:03:25,920 - [12689] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 15:03:25,991 - [12689] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from CRM.LeadNote woag WHERE woag.RefId in (2737659, 2737660, 2737661, 2737662, 2737663, 2737664, 2737665, 2737666, 2737667, 2737668, 2737669, 2737670, 2737671, 2737672, 2737673, 2737674, 2737675, 2737676, 2737677, 2737678, 2737679, 2737680, 2737681, 2737682, 2737683, 2737684) and woag.RefType = 'TempWorkorder';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:03:26,350 - [12689] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 15:03:26,414 - [12689] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment woagca WHERE woagca.WorkOrderAutoGenerationId in (2737659, 2737660, 2737661, 2737662, 2737663, 2737664, 2737665, 2737666, 2737667, 2737668, 2737669, 2737670, 2737671, 2737672, 2737673, 2737674, 2737675, 2737676, 2737677, 2737678, 2737679, 2737680, 2737681, 2737682, 2737683, 2737684);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:03:26,767 - [12689] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 15:03:26,835 - [12689] - src.utils.log - INFO - Updating temp tables - __SPLIT__ 2026-07-20 15:03:26,918 - [12689] - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyKey FROM Common.CompanyMaster cm WHERE CompanyId = 135;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:03:27,320 - [12689] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 15:03:27,395 - [12689] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 135 AND EnitityNumberType in ('SubWorkOrder'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:03:27,750 - [12689] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 15:03:27,825 - [12689] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 15:03:27,897 - [12689] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishHistory: 26 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:03:28,294 - [12689] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 26) into ServiceCore.WorkOrderAutoGenerationPublishHistory - __SPLIT__ 2026-07-20 15:03:29,774 - [12689] - src.utils.log - INFO - βœ… All 26 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishHistory in 1 batches - __SPLIT__ 2026-07-20 15:03:29,842 - [12689] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationPublishHistoryId, WorkOrderNo, ServiceSetupId FROM ServiceCore.WorkOrderAutoGenerationPublishHistory WHERE ServiceSetupId IN (34434, 34436, 34435) AND WorkOrderNo IN ('133221', '637857', '694262', '6150157', '8114171', '1395677', '1267684', '2284642', '1635075', '8368242', '6864884', '2202246', '6445623', '6274195', '5174461', '8474712', '4399854', '5822377', '9921547', '3045039', '9193030', '9047600', '4460896', '8276060', '4357564', '1918017') AND GenerateWorkOrderHistoryId = 12689;... (Thread: ThreadPoolExecutor-49_0) - __SPLIT__ 2026-07-20 15:03:30,213 - [12689] - src.utils.log - INFO - βœ… Fetched 26 rows - __SPLIT__ 2026-07-20 15:03:30,283 - [12689] - src.utils.log - INFO - 🏁 Final merged rows: 26 - __SPLIT__ 2026-07-20 15:03:30,355 - [12689] - src.utils.log - INFO - Sequential Insertion in work order tables begin - __SPLIT__ 2026-07-20 15:03:30,431 - [12689] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 15:03:30,501 - [12689] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderServices: 26 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:03:30,877 - [12689] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 26) into ServiceCore.WorkOrderServices - __SPLIT__ 2026-07-20 15:03:31,969 - [12689] - src.utils.log - INFO - βœ… All 26 rows inserted successfully into ServiceCore.WorkOrderServices in 1 batches - __SPLIT__ 2026-07-20 15:03:32,040 - [12689] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderAppliedDiscount: - __SPLIT__ 2026-07-20 15:03:32,109 - [12689] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderSalesPersonCommission: - __SPLIT__ 2026-07-20 15:03:32,178 - [12689] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderCommissionAdjustment: - __SPLIT__ 2026-07-20 15:03:32,248 - [12689] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 15:03:32,314 - [12689] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderCrew: 26 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:03:32,732 - [12689] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 26) into ServiceCore.WorkOrderCrew - __SPLIT__ 2026-07-20 15:03:33,811 - [12689] - src.utils.log - INFO - βœ… All 26 rows inserted successfully into ServiceCore.WorkOrderCrew in 1 batches - __SPLIT__ 2026-07-20 15:03:33,884 - [12689] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkorderSourceMapping: - __SPLIT__ 2026-07-20 15:03:33,951 - [12689] - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-07-20 15:03:34,018 - [12689] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 15:03:34,087 - [12689] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishServices: 26 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:03:34,458 - [12689] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 26) into ServiceCore.WorkOrderAutoGenerationPublishServices - __SPLIT__ 2026-07-20 15:03:35,700 - [12689] - src.utils.log - INFO - βœ… All 26 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishServices in 1 batches - __SPLIT__ 2026-07-20 15:03:35,765 - [12689] - 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 (34434, 34436, 34435)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:03:36,111 - [12689] - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-07-20 15:03:36,191 - [12689] - src.utils.log - INFO - Size of Transaction: 26 - __SPLIT__ 2026-07-20 15:03:36,258 - [12689] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 26 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:03:36,765 - [12689] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 26) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-07-20 15:03:38,029 - [12689] - src.utils.log - INFO - βœ… All 26 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-07-20 15:03:38,236 - [12689] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-07-20 15:03:38,292 - [12689] - 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) and t.CompanyId = 135 AND t.TransactionType ='Invoice' AND t.CreatedDate = '2026-07-20 11:03:36.186';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:03:38,687 - [12689] - src.utils.log - INFO - βœ… Fetched 26 rows - __SPLIT__ 2026-07-20 15:03:38,755 - [12689] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId in (34434, 34435, 34436);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:03:39,101 - [12689] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 15:03:39,174 - [12689] - 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) AND CreatedDate = '2026-07-20 11:03:36.186'; ... (Thread: ThreadPoolExecutor-50_0) - __SPLIT__ 2026-07-20 15:03:39,595 - [12689] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-20 15:03:39,667 - [12689] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 15:03:39,733 - [12689] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 26 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:03:40,109 - [12689] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 26) into Billing.Invoice - __SPLIT__ 2026-07-20 15:03:41,338 - [12689] - src.utils.log - INFO - βœ… All 26 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-07-20 15:03:41,403 - [12689] - src.utils.log - INFO - πŸ” Fetching data: SELECT InvoiceId, WorkOrderNo FROM Billing.Invoice i WHERE i.WorkOrderNo in ('169388R', '169402R', '169390R', '169397R', '169389R', '169413R', '169410R', '169411R', '169412R', '169409R', '169406R', '169407R', '169408R', '169405R', '169404R', '169403R', '169401R', '169398R', '169399R', '169400R', '169394R', '169393R', '169392R', '169395R', '169391R', '169396R')... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:03:41,850 - [12689] - src.utils.log - INFO - βœ… Fetched 26 rows - __SPLIT__ 2026-07-20 15:03:41,921 - [12689] - 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 (34434, 34436, 34435) and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:03:42,272 - [12689] - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-07-20 15:03:42,343 - [12689] - 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 (34434, 34436, 34435) and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:03:42,698 - [12689] - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-07-20 15:03:42,763 - [12689] - 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 (34434, 34436, 34435) and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:03:43,118 - [12689] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 15:03:43,181 - [12689] - 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 (34434, 34436, 34435) and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:03:43,531 - [12689] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 15:03:43,610 - [12689] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId in (34434, 34436, 34435);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:03:43,955 - [12689] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 15:03:44,027 - [12689] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId, AppliedDiscountAmt as AppliedDiscountAmount,IsActive ,ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId in (34434, 34436, 34435);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:03:44,379 - [12689] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 15:03:44,443 - [12689] - 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 (34434, 34436, 34435);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:03:44,846 - [12689] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 15:03:44,912 - [12689] - src.utils.log - INFO - Sequential Insertion in invoice tables begin - __SPLIT__ 2026-07-20 15:03:44,981 - [12689] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.AccountDiscountSetup: - __SPLIT__ 2026-07-20 15:03:45,057 - [12689] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 15:03:45,127 - [12689] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceCharges: 26 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:03:45,511 - [12689] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 26) into Billing.InvoiceCharges - __SPLIT__ 2026-07-20 15:03:46,743 - [12689] - src.utils.log - INFO - βœ… All 26 rows inserted successfully into Billing.InvoiceCharges in 1 batches - __SPLIT__ 2026-07-20 15:03:46,814 - [12689] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.DiscountApplied: - __SPLIT__ 2026-07-20 15:03:46,884 - [12689] - src.utils.log - INFO - Invoice Publish Done - __SPLIT__ 2026-07-20 15:03:46,959 - [12689] - src.utils.log - INFO - Updating Next GenerationDate - __SPLIT__ 2026-07-20 15:03:47,031 - [12689] - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, MAX(NextWorkOrderGenerationDate) AS MaxNextWorkOrderGeneration FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 12689 GROUP BY ServiceSetupId; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:03:47,381 - [12689] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 15:03:47,458 - [12689] - src.utils.log - INFO - πŸ”„ Updating next gen date sequentially: inside update_next_workorder_generation - __SPLIT__ 2026-07-20 15:03:47,674 - [12689] - src.utils.log - INFO - πŸ›  Creating temp table #tbl_c4c920a2a9 - __SPLIT__ 2026-07-20 15:03:48,029 - [12689] - src.utils.log - INFO - πŸ“Œ Bulk inserting 3 rows into #tbl_c4c920a2a9 - __SPLIT__ 2026-07-20 15:03:48,661 - [12689] - src.utils.log - INFO - πŸ” Running MERGE update to apply changes - __SPLIT__ 2026-07-20 15:03:48,895 - [12689] - src.utils.log - INFO - βœ” SQL reported affected rows: 3 - __SPLIT__ 2026-07-20 15:03:49,114 - [12689] - src.utils.log - INFO - πŸ” Verified successfully updated 3 rows via #tbl_c4c920a2a9 - __SPLIT__ 2026-07-20 15:03:49,186 - [12689] - src.utils.log - INFO - πŸŽ‰ Successfully updated NextGenerationDate using temp table #tbl_c4c920a2a9 - __SPLIT__ 2026-07-20 15:03:49,260 - [12689] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 12689 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:03:49,657 - [12689] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 15:03:49,725 - [12689] - src.utils.log - INFO - Sequential deletion from temp tables begin - __SPLIT__ 2026-07-20 15:03:49,798 - [12689] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId in (2737659, 2737660, 2737661, 2737662, 2737663, 2737664, 2737665, 2737666, 2737667, 2737668, 2737669, 2737670, 2737671, 2737672, 2737673, 2737674, 2737675, 2737676, 2737677, 2737678, 2737679, 2737680, 2737681, 2737682, 2737683, 2737684) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:03:50,167 - [12689] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 15:03:50,239 - [12689] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId in (2737659, 2737660, 2737661, 2737662, 2737663, 2737664, 2737665, 2737666, 2737667, 2737668, 2737669, 2737670, 2737671, 2737672, 2737673, 2737674, 2737675, 2737676, 2737677, 2737678, 2737679, 2737680, 2737681, 2737682, 2737683, 2737684) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:03:50,608 - [12689] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 15:03:50,678 - [12689] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId in (2737659, 2737660, 2737661, 2737662, 2737663, 2737664, 2737665, 2737666, 2737667, 2737668, 2737669, 2737670, 2737671, 2737672, 2737673, 2737674, 2737675, 2737676, 2737677, 2737678, 2737679, 2737680, 2737681, 2737682, 2737683, 2737684) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:03:51,031 - [12689] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 15:03:51,101 - [12689] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId in (2737659, 2737660, 2737661, 2737662, 2737663, 2737664, 2737665, 2737666, 2737667, 2737668, 2737669, 2737670, 2737671, 2737672, 2737673, 2737674, 2737675, 2737676, 2737677, 2737678, 2737679, 2737680, 2737681, 2737682, 2737683, 2737684) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:03:51,502 - [12689] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 15:03:51,575 - [12689] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId in (2737659, 2737660, 2737661, 2737662, 2737663, 2737664, 2737665, 2737666, 2737667, 2737668, 2737669, 2737670, 2737671, 2737672, 2737673, 2737674, 2737675, 2737676, 2737677, 2737678, 2737679, 2737680, 2737681, 2737682, 2737683, 2737684) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:03:51,955 - [12689] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 15:03:52,024 - [12689] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (2737659, 2737660, 2737661, 2737662, 2737663, 2737664, 2737665, 2737666, 2737667, 2737668, 2737669, 2737670, 2737671, 2737672, 2737673, 2737674, 2737675, 2737676, 2737677, 2737678, 2737679, 2737680, 2737681, 2737682, 2737683, 2737684) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:03:52,374 - [12689] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 15:03:52,448 - [12689] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId in (2737659, 2737660, 2737661, 2737662, 2737663, 2737664, 2737665, 2737666, 2737667, 2737668, 2737669, 2737670, 2737671, 2737672, 2737673, 2737674, 2737675, 2737676, 2737677, 2737678, 2737679, 2737680, 2737681, 2737682, 2737683, 2737684) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:03:52,801 - [12689] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 15:03:52,872 - [12689] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (2737659, 2737660, 2737661, 2737662, 2737663, 2737664, 2737665, 2737666, 2737667, 2737668, 2737669, 2737670, 2737671, 2737672, 2737673, 2737674, 2737675, 2737676, 2737677, 2737678, 2737679, 2737680, 2737681, 2737682, 2737683, 2737684) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:03:53,344 - [12689] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 15:03:53,417 - [12689] - src.utils.log - INFO - Work order published ids: (2737659, 2737660, 2737661, 2737662, 2737663, 2737664, 2737665, 2737666, 2737667, 2737668, 2737669, 2737670, 2737671, 2737672, 2737673, 2737674, 2737675, 2737676, 2737677, 2737678, 2737679, 2737680, 2737681, 2737682, 2737683, 2737684) - __SPLIT__ 2026-07-20 15:03:53,497 - [12689] - src.utils.log - INFO - Time took to perform operation in publishing [12689]: 41.74 - __SPLIT__ 2026-07-20 15:03:53,607 - [12689] - src.utils.log - INFO - Publish Completed for GenerateWorkOrderHistoryId: [12689] - __SPLIT__ 2026-07-20 15:03:53,675 - [12689] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-07-20 11:03:53.417' WHERE CompanyId = 135 AND GenerateWorkOrderHistoryId = 12689;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:03:54,026 - [12689] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-20 15:07:05,287 - 124785 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=124785 - __SPLIT__ 2026-07-20 15:07:05,413 - 124785 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 124785 - __SPLIT__ 2026-07-20 15:07:05,490 - 124785 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-20 15:07:05,563 - 124785 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:07:07,612 - 124785 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 15:07:07,685 - 124785 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-07-20 15:07:07,756 - 124785 - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-07-20 15:07:07,828 - 124785 - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-07-20 15:07:07,894 - 124785 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 124785;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:07:09,813 - 124785 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-20 15:07:09,882 - 124785 - 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 = 124785), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 124785), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 124785 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-07-20 15:07:10,258 - 124785 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 15:07:10,328 - 124785 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 124785;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:07:10,668 - 124785 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 15:07:10,741 - 124785 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-07-20 15:07:10,810 - 124785 - 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 = 14638... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:07:11,154 - 124785 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 15:07:11,233 - 124785 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-07-20 15:07:11,310 - 124785 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-07-20 15:07:11,380 - 124785 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150702;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:07:11,716 - 124785 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 15:07:11,835 - 124785 - 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-07-20 00:00:00' and ServiceDate <= '2027-12-31 00:00:00' and ServiceSetupId = 150702 and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:07:12,174 - 124785 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-20 15:07:12,794 - 124785 - src.utils.log - INFO - Generating work orders for setup: 150702 - __SPLIT__ 2026-07-20 15:07:12,954 - 124785 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 11428;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:07:13,293 - 124785 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 15:07:13,368 - 124785 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 11428;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:07:13,699 - 124785 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 15:07:13,805 - 124785 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-07-20 15:07:13,884 - 124785 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=133 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:07:14,212 - 124785 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 15:07:14,282 - 124785 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-07-20 15:07:14,349 - 124785 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-07-20 15:07:14,417 - 124785 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150702 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:07:14,794 - 124785 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 15:07:14,866 - 124785 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150702 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:07:15,246 - 124785 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 15:07:15,316 - 124785 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150702 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:07:15,648 - 124785 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 15:07:15,721 - 124785 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150702 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:07:16,100 - 124785 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 15:07:16,219 - 124785 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150702 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:07:16,593 - 124785 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 15:07:16,656 - 124785 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150702 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:07:17,000 - 124785 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 15:07:17,071 - 124785 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150702 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:07:17,404 - 124785 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 15:07:17,478 - 124785 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150702 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:07:17,927 - 124785 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 15:07:17,991 - 124785 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 15:07:18,061 - 124785 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 11 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:07:18,436 - 124785 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 11) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-07-20 15:07:19,910 - 124785 - src.utils.log - INFO - βœ… All 11 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-07-20 15:07:19,977 - 124785 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 11 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-07-16 14:51:40.778' and ServiceSetupId = 150702... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:07:20,353 - 124785 - src.utils.log - INFO - βœ… Fetched 11 rows - __SPLIT__ 2026-07-20 15:07:20,423 - 124785 - src.utils.log - INFO - Id's of work order inserted to DB: [3683492 3683493 3683494 3683495 3683496 3683497 3683498 3683499 3683500 3683501 3683502] - __SPLIT__ 2026-07-20 15:07:20,483 - 124785 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150702;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:07:20,809 - 124785 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 15:07:20,876 - 124785 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-07-20 15:07:20,949 - 124785 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId = 150702... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:07:21,284 - 124785 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 15:07:21,406 - 124785 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId = 150702... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:07:21,743 - 124785 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 15:07:21,820 - 124785 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId = 150702... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:07:22,168 - 124785 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 15:07:22,240 - 124785 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId = 150702... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:07:22,576 - 124785 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 15:07:22,651 - 124785 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId = 150702... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:07:22,986 - 124785 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 15:07:23,058 - 124785 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId = 150702;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:07:23,391 - 124785 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 15:07:23,463 - 124785 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId = 150702;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:07:23,797 - 124785 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-20 15:07:23,866 - 124785 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId = 150702;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:07:24,311 - 124785 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 15:07:24,384 - 124785 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId = 150702;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:07:24,719 - 124785 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 15:07:24,799 - 124785 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-07-20 15:07:24,868 - 124785 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-07-20 15:07:24,944 - 124785 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-07-20 15:07:25,013 - 124785 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.CommunicationPreferencesServiceReportNotification: - __SPLIT__ 2026-07-20 15:07:25,126 - 124785 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-07-20 15:07:25,197 - 124785 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 15:07:25,267 - 124785 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ('3683498', '3683497', '3683493', '3683494', '3683499', '3683501', '3683492', '3683496', '3683502', '3683495', '3683500') ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:07:25,600 - 124785 - src.utils.log - INFO - βœ… Fetched 11 rows - __SPLIT__ 2026-07-20 15:07:25,668 - 124785 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.SetupAutoGenerationSourceMapping: 0 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:07:26,005 - 124785 - src.utils.log - INFO - βœ… All 0 rows inserted successfully into ServiceCore.SetupAutoGenerationSourceMapping in 0 batches - __SPLIT__ 2026-07-20 15:07:26,075 - 124785 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-07-20 15:07:26,151 - 124785 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationAppliedDiscount: - __SPLIT__ 2026-07-20 15:07:26,225 - 124785 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-07-20 15:07:26,297 - 124785 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 15:07:26,376 - 124785 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3683492, 3683493, 3683494, 3683495, 3683496, 3683497, 3683498, 3683499, 3683500, 3683501, 3683502) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:07:26,710 - 124785 - src.utils.log - INFO - βœ… Fetched 11 rows - __SPLIT__ 2026-07-20 15:07:26,780 - 124785 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.SubWorkOrderAutoGeneration: 11 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:07:27,132 - 124785 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 11) into ServiceCore.SubWorkOrderAutoGeneration - __SPLIT__ 2026-07-20 15:07:28,434 - 124785 - src.utils.log - INFO - βœ… All 11 rows inserted successfully into ServiceCore.SubWorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-07-20 15:07:28,506 - 124785 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-07-20 15:07:28,583 - 124785 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: - __SPLIT__ 2026-07-20 15:07:28,656 - 124785 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-07-20 15:07:28,729 - 124785 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: - __SPLIT__ 2026-07-20 15:07:28,804 - 124785 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-07-20 15:07:28,930 - 124785 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCrews: - __SPLIT__ 2026-07-20 15:07:29,010 - 124785 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-07-20 15:07:29,095 - 124785 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationServices: - __SPLIT__ 2026-07-20 15:07:29,174 - 124785 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-07-20 15:07:29,257 - 124785 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 15:07:29,380 - 124785 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3683492, 3683493, 3683494, 3683495, 3683496, 3683497, 3683498, 3683499, 3683500, 3683501, 3683502) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:07:29,720 - 124785 - src.utils.log - INFO - βœ… Fetched 11 rows - __SPLIT__ 2026-07-20 15:07:29,801 - 124785 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 11 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:07:30,146 - 124785 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 11) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-07-20 15:07:31,156 - 124785 - src.utils.log - INFO - βœ… All 11 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-07-20 15:07:31,239 - 124785 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-07-20 15:07:31,362 - 124785 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 124785;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:07:31,708 - 124785 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-20 15:07:31,790 - 124785 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-07-20 15:07:31,868 - 124785 - src.utils.log - INFO - Time took to perform operation: 26.3 - __SPLIT__ 2026-07-20 15:07:46,753 - [124785] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[3683502] user_id=43135 company_id=133 project_id=[124785] publish_all=False - __SPLIT__ 2026-07-20 15:07:46,881 - [124785] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[3683502] user_id=43135 company_id=133 project_id=[124785] publish_all=False - __SPLIT__ 2026-07-20 15:07:46,958 - [124785] - src.utils.log - INFO - Sequential Work order publish in progress for GenerateWorkOrderHistoryId: [124785] - __SPLIT__ 2026-07-20 15:07:47,024 - [124785] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-20 15:07:47,096 - [124785] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:07:49,138 - [124785] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 15:07:49,212 - [124785] - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-07-20 15:07:49,284 - [124785] - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-07-20 15:07:49,353 - [124785] - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-07-20 15:07:49,422 - [124785] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'InProgress' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124785;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:07:51,345 - [124785] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-20 15:07:51,416 - [124785] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId = 3683502... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:07:51,756 - [124785] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 15:07:51,830 - [124785] - src.utils.log - INFO - Inside get_work_order_table - __SPLIT__ 2026-07-20 15:07:51,898 - [124785] - 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 = 150702 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:07:52,233 - [124785] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 15:07:52,299 - [124785] - 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 = 150702 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:07:52,634 - [124785] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 15:07:52,705 - [124785] - 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 = 150702 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:07:53,045 - [124785] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 15:07:53,120 - [124785] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder,BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:07:53,515 - [124785] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 15:07:53,596 - [124785] - 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-07-20 15:07:53,934 - [124785] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-20 15:07:54,005 - [124785] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder, BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:07:54,342 - [124785] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 15:07:54,426 - [124785] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 1 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 133 AND EnitityNumberType = 'WorkOrder'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:07:54,771 - [124785] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 15:07:54,841 - [124785] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 1 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 133 AND EnitityNumberType = 'Invoice'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:07:55,179 - [124785] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 15:07:55,294 - [124785] - 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 = 150702... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:07:55,636 - [124785] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 15:07:55,711 - [124785] - src.utils.log - INFO - πŸ” Fetching data: SELECT x.CompanyId FROM CRM.CompanyMaster x WHERE CompanyKey = 'abcdallas';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:07:56,050 - [124785] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 15:07:56,129 - [124785] - src.utils.log - INFO - πŸ” Fetching data: SELECT CollectionStatus,IsHold,AccountNo FROM CRM.Account a WHERE a.AccountNo = '15021' and a.CompanyId = 121;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:07:56,462 - [124785] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 15:07:56,538 - [124785] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderNo FROM ServiceCore.WorkOrder WHERE WorkOrderNo = '1428834' AND CompanyId = 133 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:07:56,886 - [124785] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 15:07:56,968 - [124785] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrder (skip triggers): 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:07:57,508 - [124785] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrder (triggers skipped) - __SPLIT__ 2026-07-20 15:07:58,537 - [124785] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrder in 1 batches (triggers skipped) - __SPLIT__ 2026-07-20 15:07:58,780 - [124785] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-07-20 15:07:58,854 - [124785] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkorderId, WorkOrderNo FROM ServiceCore.WorkOrder wo WHERE wo.WorkOrderNo = '1428834' AND wo.AccountNumber = '15021' AND wo.CompanyId = 133 ... (Thread: ThreadPoolExecutor-3_0) - __SPLIT__ 2026-07-20 15:07:59,186 - [124785] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 15:07:59,252 - [124785] - src.utils.log - INFO - Sequential fetching temp table records - __SPLIT__ 2026-07-20 15:07:59,329 - [124785] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationServices woag WHERE woag.WorkOrderAutoGenerationId = 3683502... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:07:59,687 - [124785] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 15:07:59,755 - [124785] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SubWorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId = 3683502... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:08:00,082 - [124785] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 15:08:00,159 - [124785] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationCrews woag WHERE woag.WorkOrderAutoGenerationId = 3683502... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:08:00,506 - [124785] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 15:08:00,570 - [124785] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationSalesPersonCommission woag WHERE woag.WorkOrderAutoGenerationId = 3683502... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:08:00,904 - [124785] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 15:08:01,006 - [124785] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupAutoGenerationSourceMapping woag WHERE woag.WorkOrderAutoGenerationId = 3683502... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:08:01,339 - [124785] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 15:08:01,409 - [124785] - 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 = 3683502... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:08:01,761 - [124785] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 15:08:01,822 - [124785] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from CRM.LeadNote woag WHERE woag.RefId = 3683502 and woag.RefType = 'TempWorkorder';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:08:02,150 - [124785] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 15:08:02,214 - [124785] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment woagca WHERE woagca.WorkOrderAutoGenerationId = 3683502;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:08:02,544 - [124785] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 15:08:02,663 - [124785] - src.utils.log - INFO - Updating temp tables - __SPLIT__ 2026-07-20 15:08:02,747 - [124785] - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyKey FROM Common.CompanyMaster cm WHERE CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:08:03,077 - [124785] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 15:08:03,141 - [124785] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 133 AND EnitityNumberType in ('SubWorkOrder'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:08:03,475 - [124785] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 15:08:03,542 - [124785] - src.utils.log - INFO - πŸ“ Executing: UPDATE Common.GenerateNumberConfig SET NextNumber = '22888' WHERE CompanyId = 133 AND EnitityNumberType in ('SubWorkOrder');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:08:03,888 - [124785] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-20 15:08:03,959 - [124785] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 15:08:04,024 - [124785] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishHistory: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:08:04,392 - [124785] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderAutoGenerationPublishHistory - __SPLIT__ 2026-07-20 15:08:05,414 - [124785] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishHistory in 1 batches - __SPLIT__ 2026-07-20 15:08:05,484 - [124785] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationPublishHistoryId, WorkOrderNo, ServiceSetupId FROM ServiceCore.WorkOrderAutoGenerationPublishHistory WHERE ServiceSetupId = 150702 AND WorkOrderNo = '1560336' AND GenerateWorkOrderHistoryId = 124785; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:08:06,136 - [124785] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 15:08:06,204 - [124785] - src.utils.log - INFO - Sequential Insertion in work order tables begin - __SPLIT__ 2026-07-20 15:08:06,273 - [124785] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 15:08:06,333 - [124785] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderServices: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:08:06,669 - [124785] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderServices - __SPLIT__ 2026-07-20 15:08:07,688 - [124785] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderServices in 1 batches - __SPLIT__ 2026-07-20 15:08:07,751 - [124785] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderAppliedDiscount: - __SPLIT__ 2026-07-20 15:08:07,817 - [124785] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderSalesPersonCommission: - __SPLIT__ 2026-07-20 15:08:07,939 - [124785] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderCommissionAdjustment: - __SPLIT__ 2026-07-20 15:08:08,008 - [124785] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderCrew: - __SPLIT__ 2026-07-20 15:08:08,077 - [124785] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkorderSourceMapping: - __SPLIT__ 2026-07-20 15:08:08,144 - [124785] - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-07-20 15:08:08,216 - [124785] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 15:08:08,286 - [124785] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishServices: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:08:08,627 - [124785] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderAutoGenerationPublishServices - __SPLIT__ 2026-07-20 15:08:09,628 - [124785] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishServices in 1 batches - __SPLIT__ 2026-07-20 15:08:09,700 - [124785] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 15:08:09,767 - [124785] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.SubWorkOrder: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:08:10,118 - [124785] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.SubWorkOrder - __SPLIT__ 2026-07-20 15:08:11,263 - [124785] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.SubWorkOrder in 1 batches - __SPLIT__ 2026-07-20 15:08:11,332 - [124785] - src.utils.log - INFO - πŸ” Fetching data: Select * From ServiceCore.SubWorkOrder where WorkOrderId = 2159121... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:08:11,679 - [124785] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 15:08:11,755 - [124785] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 15:08:11,821 - [124785] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.subWorkOrderIssue: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:08:12,161 - [124785] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceAuto.subWorkOrderIssue - __SPLIT__ 2026-07-20 15:08:13,035 - [124785] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceAuto.subWorkOrderIssue in 1 batches - __SPLIT__ 2026-07-20 15:08:13,106 - [124785] - src.utils.log - INFO - πŸ” Fetching data: Select SubWorkOrderIssueId, SubWorkOrderId, ModifiedBy From ServiceAuto.subWorkOrderIssue where SubWorkOrderId = 230487 and ModifiedBy = 999999999 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:08:13,448 - [124785] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 15:08:13,566 - [124785] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceAuto.subWorkOrderIssue SET ModifiedBy = 'abcdallas' WHERE ModifiedBy = '999999999'; ... (Thread: ThreadPoolExecutor-4_0) - __SPLIT__ 2026-07-20 15:08:13,930 - [124785] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-20 15:08:13,999 - [124785] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 15:08:14,063 - [124785] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.subWOIssueRepair: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:08:14,396 - [124785] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceAuto.subWOIssueRepair - __SPLIT__ 2026-07-20 15:08:15,267 - [124785] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceAuto.subWOIssueRepair in 1 batches - __SPLIT__ 2026-07-20 15:08:15,328 - [124785] - src.utils.log - INFO - πŸ” Fetching data: Select IssueRepairId, ModifiedBy From ServiceAuto.subWOIssueRepair where SubWorkOrderIssueId = 192673... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:08:15,661 - [124785] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 15:08:15,729 - [124785] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceAuto.subWOIssueRepair SET ModifiedBy = 'abcdallas' WHERE ModifiedBy = '0___TMP___192673' AND CreatedDate = '2026-07-20 11:08:11.753'; ... (Thread: ThreadPoolExecutor-5_0) - __SPLIT__ 2026-07-20 15:08:16,075 - [124785] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-20 15:08:16,148 - [124785] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 15:08:16,215 - [124785] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.SubWOIssueRepairLabor: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:08:16,558 - [124785] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceAuto.SubWOIssueRepairLabor - __SPLIT__ 2026-07-20 15:08:17,554 - [124785] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceAuto.SubWOIssueRepairLabor in 1 batches - __SPLIT__ 2026-07-20 15:08:17,626 - [124785] - 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 = 150702... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:08:17,965 - [124785] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 15:08:18,039 - [124785] - src.utils.log - INFO - Size of Transaction: 1 - __SPLIT__ 2026-07-20 15:08:18,106 - [124785] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:08:18,568 - [124785] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-07-20 15:08:19,563 - [124785] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-07-20 15:08:19,818 - [124785] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-07-20 15:08:19,881 - [124785] - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionId, ModifiedBy, TransactionDate as InvoiceDate from Billing.[Transaction] t WHERE t.ModifiedBy = 12345678910 and t.CompanyId = 133 AND t.TransactionType ='Invoice' AND t.CreatedDate = '2026-07-20 11:08:18.034';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:08:20,318 - [124785] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 15:08:20,390 - [124785] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150702;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:08:20,721 - [124785] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 15:08:20,796 - [124785] - src.utils.log - INFO - πŸ“ Executing: UPDATE Billing.[Transaction] SET ModifiedBy = NULL WHERE ModifiedBy = 12345678910 AND CreatedDate = '2026-07-20 11:08:18.034'; ... (Thread: ThreadPoolExecutor-6_0) - __SPLIT__ 2026-07-20 15:08:21,696 - [124785] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-20 15:08:21,803 - [124785] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 15:08:21,866 - [124785] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:08:22,199 - [124785] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into Billing.Invoice - __SPLIT__ 2026-07-20 15:08:23,213 - [124785] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-07-20 15:08:23,285 - [124785] - src.utils.log - INFO - πŸ” Fetching data: SELECT InvoiceId, WorkOrderNo FROM Billing.Invoice i WHERE i.WorkOrderNo = '1428834'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:08:24,170 - [124785] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 15:08:24,263 - [124785] - 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 = 150702 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:08:24,631 - [124785] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 15:08:24,702 - [124785] - 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 = 150702 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:08:25,033 - [124785] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 15:08:25,097 - [124785] - 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 = 150702 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:08:25,431 - [124785] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 15:08:25,495 - [124785] - 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 = 150702 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:08:25,862 - [124785] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 15:08:25,948 - [124785] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150702;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:08:26,277 - [124785] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 15:08:26,355 - [124785] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId, AppliedDiscountAmt as AppliedDiscountAmount,IsActive ,ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 150702;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:08:26,688 - [124785] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 15:08:26,754 - [124785] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId,IsActive,DiscountAmount, IsDiscountPercent,DiscountPercent,DiscountDescription , ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 150702;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:08:27,080 - [124785] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 15:08:27,153 - [124785] - src.utils.log - INFO - Sequential Insertion in invoice tables begin - __SPLIT__ 2026-07-20 15:08:27,217 - [124785] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.AccountDiscountSetup: - __SPLIT__ 2026-07-20 15:08:27,278 - [124785] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 15:08:27,345 - [124785] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceCharges: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:08:27,685 - [124785] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into Billing.InvoiceCharges - __SPLIT__ 2026-07-20 15:08:28,678 - [124785] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into Billing.InvoiceCharges in 1 batches - __SPLIT__ 2026-07-20 15:08:28,744 - [124785] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.DiscountApplied: - __SPLIT__ 2026-07-20 15:08:28,809 - [124785] - src.utils.log - INFO - Invoice Publish Done - __SPLIT__ 2026-07-20 15:08:28,873 - [124785] - src.utils.log - INFO - Updating Next GenerationDate - __SPLIT__ 2026-07-20 15:08:28,935 - [124785] - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, MAX(NextWorkOrderGenerationDate) AS MaxNextWorkOrderGeneration FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 124785 GROUP BY ServiceSetupId; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:08:29,261 - [124785] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 15:08:29,333 - [124785] - src.utils.log - INFO - πŸ”„ Updating next gen date sequentially: inside update_next_workorder_generation - __SPLIT__ 2026-07-20 15:08:29,534 - [124785] - src.utils.log - INFO - πŸ›  Creating temp table #tbl_ff5aac4314 - __SPLIT__ 2026-07-20 15:08:29,903 - [124785] - src.utils.log - INFO - πŸ“Œ Bulk inserting 1 rows into #tbl_ff5aac4314 - __SPLIT__ 2026-07-20 15:08:30,233 - [124785] - src.utils.log - INFO - πŸ” Running MERGE update to apply changes - __SPLIT__ 2026-07-20 15:08:30,447 - [124785] - src.utils.log - INFO - βœ” SQL reported affected rows: 1 - __SPLIT__ 2026-07-20 15:08:30,652 - [124785] - src.utils.log - INFO - πŸ” Verified successfully updated 1 rows via #tbl_ff5aac4314 - __SPLIT__ 2026-07-20 15:08:30,714 - [124785] - src.utils.log - INFO - πŸŽ‰ Successfully updated NextGenerationDate using temp table #tbl_ff5aac4314 - __SPLIT__ 2026-07-20 15:08:30,777 - [124785] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 124785 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:08:31,109 - [124785] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 15:08:31,174 - [124785] - src.utils.log - INFO - Sequential deletion from temp tables begin - __SPLIT__ 2026-07-20 15:08:31,232 - [124785] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId = 3683502 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:08:31,689 - [124785] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 15:08:31,755 - [124785] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId = 3683502 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:08:32,168 - [124785] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 15:08:32,232 - [124785] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId = 3683502 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:08:32,554 - [124785] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 15:08:32,624 - [124785] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId = 3683502 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:08:33,030 - [124785] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 15:08:33,095 - [124785] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId = 3683502 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:08:33,434 - [124785] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 15:08:33,491 - [124785] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 3683502 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:08:33,824 - [124785] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 15:08:33,944 - [124785] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId = 3683502 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:08:34,277 - [124785] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 15:08:34,351 - [124785] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 3683502 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:08:34,732 - [124785] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 15:08:34,807 - [124785] - src.utils.log - INFO - Work order published ids: (3683502,) - __SPLIT__ 2026-07-20 15:08:34,875 - [124785] - src.utils.log - INFO - Time took to perform operation in publishing [124785]: 47.85 - __SPLIT__ 2026-07-20 15:08:34,942 - [124785] - src.utils.log - INFO - Publish Completed for GenerateWorkOrderHistoryId: [124785] - __SPLIT__ 2026-07-20 15:08:35,012 - [124785] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-07-20 11:08:34.807' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124785;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:08:35,351 - [124785] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-20 15:15:55,595 - 124786 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=124786 - __SPLIT__ 2026-07-20 15:15:55,712 - 124786 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 124786 - __SPLIT__ 2026-07-20 15:15:55,773 - 124786 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-20 15:15:55,846 - 124786 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:15:57,878 - 124786 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 15:15:57,936 - 124786 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-07-20 15:15:58,003 - 124786 - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-07-20 15:15:58,064 - 124786 - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-07-20 15:15:58,125 - 124786 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 124786;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:16:00,046 - 124786 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-20 15:16:00,117 - 124786 - 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 = 124786), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 124786), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 124786 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-07-20 15:16:00,486 - 124786 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 15:16:00,551 - 124786 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 124786;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:16:00,879 - 124786 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 15:16:00,945 - 124786 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-07-20 15:16:01,007 - 124786 - 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 = 14448... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:16:01,340 - 124786 - src.utils.log - INFO - βœ… Fetched 6 rows - __SPLIT__ 2026-07-20 15:16:01,405 - 124786 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-07-20 15:16:01,475 - 124786 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-07-20 15:16:01,539 - 124786 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150703;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:16:01,871 - 124786 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 15:16:01,989 - 124786 - 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-07-20 00:00:00' and ServiceDate <= '2027-04-30 00:00:00' and ServiceSetupId = 150703 and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:16:02,328 - 124786 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 15:16:02,951 - 124786 - src.utils.log - INFO - Generating work orders for setup: 150703 - __SPLIT__ 2026-07-20 15:16:03,051 - 124786 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 11439;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:16:03,374 - 124786 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 15:16:03,445 - 124786 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 11439;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:16:03,771 - 124786 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 15:16:03,863 - 124786 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-07-20 15:16:03,935 - 124786 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=133 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:16:04,266 - 124786 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 15:16:04,329 - 124786 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-07-20 15:16:04,392 - 124786 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-07-20 15:16:04,460 - 124786 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150703 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:16:04,839 - 124786 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 15:16:04,910 - 124786 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150703 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:16:05,289 - 124786 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 15:16:05,355 - 124786 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150703 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:16:05,691 - 124786 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 15:16:05,752 - 124786 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150703 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:16:06,132 - 124786 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 15:16:06,249 - 124786 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150703 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:16:06,625 - 124786 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 15:16:06,699 - 124786 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150703 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:16:07,039 - 124786 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 15:16:07,109 - 124786 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150703 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:16:07,447 - 124786 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 15:16:07,512 - 124786 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150703 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:16:07,961 - 124786 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 15:16:08,029 - 124786 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 15:16:08,091 - 124786 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 5 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:16:08,467 - 124786 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 5) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-07-20 15:16:09,610 - 124786 - src.utils.log - INFO - βœ… All 5 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-07-20 15:16:09,672 - 124786 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 5 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-07-16 14:51:40.778' and ServiceSetupId = 150703... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:16:10,046 - 124786 - src.utils.log - INFO - βœ… Fetched 5 rows - __SPLIT__ 2026-07-20 15:16:10,117 - 124786 - src.utils.log - INFO - Id's of work order inserted to DB: [3683503 3683504 3683505 3683506 3683507] - __SPLIT__ 2026-07-20 15:16:10,192 - 124786 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150703;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:16:10,527 - 124786 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 15:16:10,585 - 124786 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-07-20 15:16:10,650 - 124786 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId = 150703... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:16:10,982 - 124786 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 15:16:11,096 - 124786 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId = 150703... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:16:11,425 - 124786 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 15:16:11,490 - 124786 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId = 150703... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:16:11,824 - 124786 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 15:16:11,889 - 124786 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId = 150703... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:16:12,215 - 124786 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 15:16:12,280 - 124786 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId = 150703... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:16:12,599 - 124786 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 15:16:12,670 - 124786 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId = 150703;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:16:13,003 - 124786 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 15:16:13,069 - 124786 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId = 150703;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:16:13,398 - 124786 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-20 15:16:13,464 - 124786 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId = 150703;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:16:13,878 - 124786 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 15:16:13,938 - 124786 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId = 150703;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:16:14,271 - 124786 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 15:16:14,341 - 124786 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-07-20 15:16:14,399 - 124786 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-07-20 15:16:14,462 - 124786 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-07-20 15:16:14,522 - 124786 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.CommunicationPreferencesServiceReportNotification: - __SPLIT__ 2026-07-20 15:16:14,632 - 124786 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-07-20 15:16:14,698 - 124786 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 15:16:14,770 - 124786 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ('3683504', '3683505', '3683506', '3683503', '3683507') ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:16:15,097 - 124786 - src.utils.log - INFO - βœ… Fetched 5 rows - __SPLIT__ 2026-07-20 15:16:15,162 - 124786 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.SetupAutoGenerationSourceMapping: 0 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:16:15,491 - 124786 - src.utils.log - INFO - βœ… All 0 rows inserted successfully into ServiceCore.SetupAutoGenerationSourceMapping in 0 batches - __SPLIT__ 2026-07-20 15:16:15,555 - 124786 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-07-20 15:16:15,622 - 124786 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationAppliedDiscount: - __SPLIT__ 2026-07-20 15:16:15,687 - 124786 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-07-20 15:16:15,749 - 124786 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 15:16:15,815 - 124786 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3683503, 3683504, 3683505, 3683506, 3683507) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:16:16,142 - 124786 - src.utils.log - INFO - βœ… Fetched 5 rows - __SPLIT__ 2026-07-20 15:16:16,197 - 124786 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.SubWorkOrderAutoGeneration: 5 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:16:16,539 - 124786 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 5) into ServiceCore.SubWorkOrderAutoGeneration - __SPLIT__ 2026-07-20 15:16:17,671 - 124786 - src.utils.log - INFO - βœ… All 5 rows inserted successfully into ServiceCore.SubWorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-07-20 15:16:17,738 - 124786 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-07-20 15:16:17,797 - 124786 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: - __SPLIT__ 2026-07-20 15:16:17,863 - 124786 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-07-20 15:16:17,930 - 124786 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: - __SPLIT__ 2026-07-20 15:16:17,990 - 124786 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-07-20 15:16:18,102 - 124786 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCrews: - __SPLIT__ 2026-07-20 15:16:18,175 - 124786 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-07-20 15:16:18,242 - 124786 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationServices: - __SPLIT__ 2026-07-20 15:16:18,310 - 124786 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-07-20 15:16:18,373 - 124786 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 15:16:18,440 - 124786 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3683503, 3683504, 3683505, 3683506, 3683507) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:16:18,795 - 124786 - src.utils.log - INFO - βœ… Fetched 5 rows - __SPLIT__ 2026-07-20 15:16:18,865 - 124786 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 5 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:16:19,203 - 124786 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 5) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-07-20 15:16:20,202 - 124786 - src.utils.log - INFO - βœ… All 5 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-07-20 15:16:20,270 - 124786 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-07-20 15:16:20,341 - 124786 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 124786;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:16:20,671 - 124786 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-20 15:16:20,733 - 124786 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-07-20 15:16:20,798 - 124786 - src.utils.log - INFO - Time took to perform operation: 24.96 - __SPLIT__ 2026-07-20 15:17:31,874 - [124786] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[3683503, 3683504, 3683505, 3683506, 3683507] user_id=43135 company_id=133 project_id=[124786] publish_all=False - __SPLIT__ 2026-07-20 15:17:31,999 - [124786] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[3683503, 3683504, 3683505, 3683506, 3683507] user_id=43135 company_id=133 project_id=[124786] publish_all=False - __SPLIT__ 2026-07-20 15:17:32,070 - [124786] - src.utils.log - INFO - Sequential Work order publish in progress for GenerateWorkOrderHistoryId: [124786] - __SPLIT__ 2026-07-20 15:17:32,145 - [124786] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-20 15:17:32,213 - [124786] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:17:34,268 - [124786] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 15:17:34,344 - [124786] - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-07-20 15:17:34,448 - [124786] - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-07-20 15:17:34,519 - [124786] - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-07-20 15:17:34,587 - [124786] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'InProgress' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124786;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:17:36,490 - [124786] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-20 15:17:36,558 - [124786] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (3683503, 3683504, 3683505, 3683506, 3683507)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:17:36,896 - [124786] - src.utils.log - INFO - βœ… Fetched 5 rows - __SPLIT__ 2026-07-20 15:17:36,970 - [124786] - src.utils.log - INFO - Inside get_work_order_table - __SPLIT__ 2026-07-20 15:17:37,042 - [124786] - 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 = 150703 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:17:37,394 - [124786] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 15:17:37,465 - [124786] - 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 = 150703 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:17:37,800 - [124786] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 15:17:37,865 - [124786] - 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 = 150703 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:17:38,205 - [124786] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 15:17:38,312 - [124786] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder,BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:17:38,676 - [124786] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 15:17:38,730 - [124786] - 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-07-20 15:17:39,057 - [124786] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-20 15:17:39,113 - [124786] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder, BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:17:39,438 - [124786] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 15:17:39,498 - [124786] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 5 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 133 AND EnitityNumberType = 'WorkOrder'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:17:39,823 - [124786] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 15:17:39,877 - [124786] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 5 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 133 AND EnitityNumberType = 'Invoice'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:17:40,205 - [124786] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 15:17:40,265 - [124786] - 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 = 150703... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:17:40,582 - [124786] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 15:17:40,642 - [124786] - src.utils.log - INFO - πŸ” Fetching data: SELECT x.CompanyId FROM CRM.CompanyMaster x WHERE CompanyKey = 'abcdallas';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:17:40,962 - [124786] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 15:17:41,022 - [124786] - src.utils.log - INFO - πŸ” Fetching data: SELECT CollectionStatus,IsHold,AccountNo FROM CRM.Account a WHERE a.AccountNo = '15021' and a.CompanyId = 121;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:17:41,345 - [124786] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 15:17:41,401 - [124786] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderNo FROM ServiceCore.WorkOrder WHERE WorkOrderNo IN ('1428835', '1428836', '1428837', '1428838', '1428839') AND CompanyId = 133 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:17:41,720 - [124786] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 15:17:41,780 - [124786] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrder (skip triggers): 5 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:17:42,265 - [124786] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 5) into ServiceCore.WorkOrder (triggers skipped) - __SPLIT__ 2026-07-20 15:17:43,398 - [124786] - src.utils.log - INFO - βœ… All 5 rows inserted successfully into ServiceCore.WorkOrder in 1 batches (triggers skipped) - __SPLIT__ 2026-07-20 15:17:43,633 - [124786] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-07-20 15:17:43,700 - [124786] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.ServiceSetup SET IsInitialWoGenerated = 1 WHERE CompanyId = 133 AND ServiceSetupId = 150703;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:17:44,022 - [124786] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-20 15:17:44,081 - [124786] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkorderId, WorkOrderNo FROM ServiceCore.WorkOrder wo WHERE wo.WorkOrderNo IN ('1428835', '1428836', '1428837', '1428838', '1428839') AND wo.AccountNumber = '15021' AND wo.CompanyId = 133 ... (Thread: ThreadPoolExecutor-51_0) - __SPLIT__ 2026-07-20 15:17:44,402 - [124786] - src.utils.log - INFO - βœ… Fetched 5 rows - __SPLIT__ 2026-07-20 15:17:44,462 - [124786] - src.utils.log - INFO - Sequential fetching temp table records - __SPLIT__ 2026-07-20 15:17:44,519 - [124786] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationServices woag WHERE woag.WorkOrderAutoGenerationId in (3683503, 3683504, 3683505, 3683506, 3683507)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:17:44,873 - [124786] - src.utils.log - INFO - βœ… Fetched 5 rows - __SPLIT__ 2026-07-20 15:17:44,934 - [124786] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SubWorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (3683503, 3683504, 3683505, 3683506, 3683507)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:17:45,260 - [124786] - src.utils.log - INFO - βœ… Fetched 5 rows - __SPLIT__ 2026-07-20 15:17:45,316 - [124786] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationCrews woag WHERE woag.WorkOrderAutoGenerationId in (3683503, 3683504, 3683505, 3683506, 3683507)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:17:45,661 - [124786] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 15:17:45,718 - [124786] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationSalesPersonCommission woag WHERE woag.WorkOrderAutoGenerationId in (3683503, 3683504, 3683505, 3683506, 3683507)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:17:46,044 - [124786] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 15:17:46,099 - [124786] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupAutoGenerationSourceMapping woag WHERE woag.WorkOrderAutoGenerationId in (3683503, 3683504, 3683505, 3683506, 3683507)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:17:46,424 - [124786] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 15:17:46,481 - [124786] - 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 (3683503, 3683504, 3683505, 3683506, 3683507)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:17:46,834 - [124786] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 15:17:46,884 - [124786] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from CRM.LeadNote woag WHERE woag.RefId in (3683503, 3683504, 3683505, 3683506, 3683507) and woag.RefType = 'TempWorkorder';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:17:47,200 - [124786] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 15:17:47,305 - [124786] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment woagca WHERE woagca.WorkOrderAutoGenerationId in (3683503, 3683504, 3683505, 3683506, 3683507);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:17:47,632 - [124786] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 15:17:47,707 - [124786] - src.utils.log - INFO - Updating temp tables - __SPLIT__ 2026-07-20 15:17:47,790 - [124786] - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyKey FROM Common.CompanyMaster cm WHERE CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:17:48,121 - [124786] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 15:17:48,211 - [124786] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 133 AND EnitityNumberType in ('SubWorkOrder'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:17:48,539 - [124786] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 15:17:48,608 - [124786] - src.utils.log - INFO - πŸ“ Executing: UPDATE Common.GenerateNumberConfig SET NextNumber = '22893' WHERE CompanyId = 133 AND EnitityNumberType in ('SubWorkOrder');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:17:48,941 - [124786] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-20 15:17:49,007 - [124786] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 15:17:49,074 - [124786] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishHistory: 5 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:17:49,445 - [124786] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 5) into ServiceCore.WorkOrderAutoGenerationPublishHistory - __SPLIT__ 2026-07-20 15:17:50,580 - [124786] - src.utils.log - INFO - βœ… All 5 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishHistory in 1 batches - __SPLIT__ 2026-07-20 15:17:50,655 - [124786] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationPublishHistoryId, WorkOrderNo, ServiceSetupId FROM ServiceCore.WorkOrderAutoGenerationPublishHistory WHERE ServiceSetupId = 150703 AND WorkOrderNo IN ('2550576', '8801829', '8400621', '8990431', '7248003') AND GenerateWorkOrderHistoryId = 124786;... (Thread: ThreadPoolExecutor-52_0) - __SPLIT__ 2026-07-20 15:17:51,158 - [124786] - src.utils.log - INFO - βœ… Fetched 5 rows - __SPLIT__ 2026-07-20 15:17:51,231 - [124786] - src.utils.log - INFO - 🏁 Final merged rows: 5 - __SPLIT__ 2026-07-20 15:17:51,307 - [124786] - src.utils.log - INFO - Sequential Insertion in work order tables begin - __SPLIT__ 2026-07-20 15:17:51,376 - [124786] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 15:17:51,461 - [124786] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderServices: 5 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:17:51,800 - [124786] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 5) into ServiceCore.WorkOrderServices - __SPLIT__ 2026-07-20 15:17:52,847 - [124786] - src.utils.log - INFO - βœ… All 5 rows inserted successfully into ServiceCore.WorkOrderServices in 1 batches - __SPLIT__ 2026-07-20 15:17:52,916 - [124786] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderAppliedDiscount: - __SPLIT__ 2026-07-20 15:17:52,985 - [124786] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderSalesPersonCommission: - __SPLIT__ 2026-07-20 15:17:53,059 - [124786] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderCommissionAdjustment: - __SPLIT__ 2026-07-20 15:17:53,131 - [124786] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderCrew: - __SPLIT__ 2026-07-20 15:17:53,239 - [124786] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkorderSourceMapping: - __SPLIT__ 2026-07-20 15:17:53,317 - [124786] - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-07-20 15:17:53,409 - [124786] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 15:17:53,497 - [124786] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishServices: 5 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:17:53,842 - [124786] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 5) into ServiceCore.WorkOrderAutoGenerationPublishServices - __SPLIT__ 2026-07-20 15:17:54,851 - [124786] - src.utils.log - INFO - βœ… All 5 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishServices in 1 batches - __SPLIT__ 2026-07-20 15:17:54,923 - [124786] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 15:17:54,995 - [124786] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.SubWorkOrder: 5 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:17:55,353 - [124786] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 5) into ServiceCore.SubWorkOrder - __SPLIT__ 2026-07-20 15:17:56,488 - [124786] - src.utils.log - INFO - βœ… All 5 rows inserted successfully into ServiceCore.SubWorkOrder in 1 batches - __SPLIT__ 2026-07-20 15:17:56,562 - [124786] - src.utils.log - INFO - πŸ” Fetching data: Select * From ServiceCore.SubWorkOrder where WorkOrderId in (2159122, 2159123, 2159124, 2159125, 2159126)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:17:56,916 - [124786] - src.utils.log - INFO - βœ… Fetched 5 rows - __SPLIT__ 2026-07-20 15:17:57,010 - [124786] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 15:17:57,080 - [124786] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.subWorkOrderIssue: 5 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:17:57,428 - [124786] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 5) into ServiceAuto.subWorkOrderIssue - __SPLIT__ 2026-07-20 15:17:58,316 - [124786] - src.utils.log - INFO - βœ… All 5 rows inserted successfully into ServiceAuto.subWorkOrderIssue in 1 batches - __SPLIT__ 2026-07-20 15:17:58,376 - [124786] - src.utils.log - INFO - πŸ” Fetching data: Select SubWorkOrderIssueId, SubWorkOrderId, ModifiedBy From ServiceAuto.subWorkOrderIssue where SubWorkOrderId in (230488, 230492, 230491, 230490, 230489) and ModifiedBy in ('999999999', '1000000000', '1000000001', '1000000002', '1000000003')... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:17:58,696 - [124786] - src.utils.log - INFO - βœ… Fetched 5 rows - __SPLIT__ 2026-07-20 15:17:58,758 - [124786] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceAuto.subWorkOrderIssue SET ModifiedBy = 'abcdallas' WHERE ModifiedBy IN ('999999999', '1000000000', '1000000001', '1000000002', '1000000003'); ... (Thread: ThreadPoolExecutor-53_0) - __SPLIT__ 2026-07-20 15:17:59,115 - [124786] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-20 15:17:59,184 - [124786] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 15:17:59,242 - [124786] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.subWOIssueRepair: 5 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:17:59,571 - [124786] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 5) into ServiceAuto.subWOIssueRepair - __SPLIT__ 2026-07-20 15:18:00,425 - [124786] - src.utils.log - INFO - βœ… All 5 rows inserted successfully into ServiceAuto.subWOIssueRepair in 1 batches - __SPLIT__ 2026-07-20 15:18:00,483 - [124786] - src.utils.log - INFO - πŸ” Fetching data: Select IssueRepairId, ModifiedBy From ServiceAuto.subWOIssueRepair where SubWorkOrderIssueId in (192674, 192675, 192676, 192677, 192678)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:18:00,799 - [124786] - src.utils.log - INFO - βœ… Fetched 5 rows - __SPLIT__ 2026-07-20 15:18:00,853 - [124786] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceAuto.subWOIssueRepair SET ModifiedBy = 'abcdallas' WHERE ModifiedBy IN ('0___TMP___192674', '0___TMP___192675', '0___TMP___192676', '0___TMP___192677', '0___TMP___192678') AND CreatedDate = '2026-07-20 11:17:57.007'; ... (Thread: ThreadPoolExecutor-54_0) - __SPLIT__ 2026-07-20 15:18:01,190 - [124786] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-20 15:18:01,252 - [124786] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 15:18:01,301 - [124786] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.SubWOIssueRepairLabor: 10 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:18:01,625 - [124786] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 10) into ServiceAuto.SubWOIssueRepairLabor - __SPLIT__ 2026-07-20 15:18:02,639 - [124786] - src.utils.log - INFO - βœ… All 10 rows inserted successfully into ServiceAuto.SubWOIssueRepairLabor in 1 batches - __SPLIT__ 2026-07-20 15:18:02,695 - [124786] - 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 = 150703... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:18:03,013 - [124786] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 15:18:03,080 - [124786] - src.utils.log - INFO - Size of Transaction: 5 - __SPLIT__ 2026-07-20 15:18:03,199 - [124786] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 5 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:18:03,666 - [124786] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 5) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-07-20 15:18:04,653 - [124786] - src.utils.log - INFO - βœ… All 5 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-07-20 15:18:04,856 - [124786] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-07-20 15:18:04,921 - [124786] - 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-07-20 11:18:03.075';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:18:05,371 - [124786] - src.utils.log - INFO - βœ… Fetched 5 rows - __SPLIT__ 2026-07-20 15:18:05,442 - [124786] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150703;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:18:05,775 - [124786] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 15:18:05,858 - [124786] - src.utils.log - INFO - πŸ“ Executing: UPDATE Billing.[Transaction] SET ModifiedBy = NULL WHERE ModifiedBy IN (12345678910,12345678911,12345678912,12345678913,12345678914) AND CreatedDate = '2026-07-20 11:18:03.075'; ... (Thread: ThreadPoolExecutor-55_0) - __SPLIT__ 2026-07-20 15:18:06,296 - [124786] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-20 15:18:06,398 - [124786] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 15:18:06,469 - [124786] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 5 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:18:06,817 - [124786] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 5) into Billing.Invoice - __SPLIT__ 2026-07-20 15:18:07,816 - [124786] - src.utils.log - INFO - βœ… All 5 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-07-20 15:18:07,889 - [124786] - src.utils.log - INFO - πŸ” Fetching data: SELECT InvoiceId, WorkOrderNo FROM Billing.Invoice i WHERE i.WorkOrderNo in ('1428835', '1428839', '1428838', '1428837', '1428836')... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:18:09,022 - [124786] - src.utils.log - INFO - βœ… Fetched 5 rows - __SPLIT__ 2026-07-20 15:18:09,100 - [124786] - 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 = 150703 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:18:09,438 - [124786] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 15:18:09,510 - [124786] - 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 = 150703 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:18:09,842 - [124786] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 15:18:09,960 - [124786] - 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 = 150703 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:18:10,298 - [124786] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 15:18:10,371 - [124786] - 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 = 150703 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:18:10,710 - [124786] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 15:18:10,806 - [124786] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150703;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:18:11,146 - [124786] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 15:18:11,221 - [124786] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId, AppliedDiscountAmt as AppliedDiscountAmount,IsActive ,ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 150703;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:18:11,561 - [124786] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 15:18:11,638 - [124786] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId,IsActive,DiscountAmount, IsDiscountPercent,DiscountPercent,DiscountDescription , ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 150703;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:18:11,979 - [124786] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 15:18:12,058 - [124786] - src.utils.log - INFO - Sequential Insertion in invoice tables begin - __SPLIT__ 2026-07-20 15:18:12,128 - [124786] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.AccountDiscountSetup: - __SPLIT__ 2026-07-20 15:18:12,197 - [124786] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 15:18:12,272 - [124786] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceCharges: 5 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:18:12,617 - [124786] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 5) into Billing.InvoiceCharges - __SPLIT__ 2026-07-20 15:18:13,616 - [124786] - src.utils.log - INFO - βœ… All 5 rows inserted successfully into Billing.InvoiceCharges in 1 batches - __SPLIT__ 2026-07-20 15:18:13,690 - [124786] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.DiscountApplied: - __SPLIT__ 2026-07-20 15:18:13,761 - [124786] - src.utils.log - INFO - Invoice Publish Done - __SPLIT__ 2026-07-20 15:18:13,837 - [124786] - src.utils.log - INFO - Updating Next GenerationDate - __SPLIT__ 2026-07-20 15:18:13,912 - [124786] - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, MAX(NextWorkOrderGenerationDate) AS MaxNextWorkOrderGeneration FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 124786 GROUP BY ServiceSetupId; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:18:14,296 - [124786] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 15:18:14,368 - [124786] - src.utils.log - INFO - πŸ”„ Updating next gen date sequentially: inside update_next_workorder_generation - __SPLIT__ 2026-07-20 15:18:14,562 - [124786] - src.utils.log - INFO - πŸ›  Creating temp table #tbl_5e5f6e9b81 - __SPLIT__ 2026-07-20 15:18:14,895 - [124786] - src.utils.log - INFO - πŸ“Œ Bulk inserting 1 rows into #tbl_5e5f6e9b81 - __SPLIT__ 2026-07-20 15:18:15,218 - [124786] - src.utils.log - INFO - πŸ” Running MERGE update to apply changes - __SPLIT__ 2026-07-20 15:18:15,425 - [124786] - src.utils.log - INFO - βœ” SQL reported affected rows: 1 - __SPLIT__ 2026-07-20 15:18:15,628 - [124786] - src.utils.log - INFO - πŸ” Verified successfully updated 1 rows via #tbl_5e5f6e9b81 - __SPLIT__ 2026-07-20 15:18:15,701 - [124786] - src.utils.log - INFO - πŸŽ‰ Successfully updated NextGenerationDate using temp table #tbl_5e5f6e9b81 - __SPLIT__ 2026-07-20 15:18:15,772 - [124786] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 124786 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:18:16,099 - [124786] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 15:18:16,169 - [124786] - src.utils.log - INFO - Sequential deletion from temp tables begin - __SPLIT__ 2026-07-20 15:18:16,246 - [124786] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId in (3683503, 3683504, 3683505, 3683506, 3683507) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:18:16,714 - [124786] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 15:18:16,791 - [124786] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId in (3683503, 3683504, 3683505, 3683506, 3683507) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:18:17,208 - [124786] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 15:18:17,275 - [124786] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId in (3683503, 3683504, 3683505, 3683506, 3683507) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:18:17,609 - [124786] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 15:18:17,677 - [124786] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId in (3683503, 3683504, 3683505, 3683506, 3683507) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:18:18,090 - [124786] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 15:18:18,157 - [124786] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId in (3683503, 3683504, 3683505, 3683506, 3683507) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:18:18,531 - [124786] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 15:18:18,596 - [124786] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (3683503, 3683504, 3683505, 3683506, 3683507) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:18:18,927 - [124786] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 15:18:18,995 - [124786] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId in (3683503, 3683504, 3683505, 3683506, 3683507) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:18:19,328 - [124786] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 15:18:19,380 - [124786] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (3683503, 3683504, 3683505, 3683506, 3683507) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:18:19,908 - [124786] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 15:18:19,973 - [124786] - src.utils.log - INFO - Work order published ids: (3683503, 3683504, 3683505, 3683506, 3683507) - __SPLIT__ 2026-07-20 15:18:20,042 - [124786] - src.utils.log - INFO - Time took to perform operation in publishing [124786]: 47.9 - __SPLIT__ 2026-07-20 15:18:20,104 - [124786] - src.utils.log - INFO - Publish Completed for GenerateWorkOrderHistoryId: [124786] - __SPLIT__ 2026-07-20 15:18:20,173 - [124786] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-07-20 11:18:19.973' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124786;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:18:20,502 - [124786] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-20 15:27:28,259 - 124788 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=124788 - __SPLIT__ 2026-07-20 15:27:28,365 - 124788 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 124788 - __SPLIT__ 2026-07-20 15:27:28,432 - 124788 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-20 15:27:28,490 - 124788 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:27:30,609 - 124788 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 15:27:30,667 - 124788 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-07-20 15:27:30,724 - 124788 - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-07-20 15:27:30,780 - 124788 - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-07-20 15:27:30,836 - 124788 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 124788;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:27:32,822 - 124788 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-20 15:27:32,882 - 124788 - 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 = 124788), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 124788), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 124788 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-07-20 15:27:33,257 - 124788 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 15:27:33,313 - 124788 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 124788;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:27:33,647 - 124788 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 15:27:33,706 - 124788 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-07-20 15:27:33,759 - 124788 - 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 = 14448... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:27:34,100 - 124788 - src.utils.log - INFO - βœ… Fetched 6 rows - __SPLIT__ 2026-07-20 15:27:34,156 - 124788 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-07-20 15:27:34,208 - 124788 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-07-20 15:27:34,269 - 124788 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150703;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:27:34,606 - 124788 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 15:27:34,720 - 124788 - 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-07-20 00:00:00' and ServiceDate <= '2027-12-31 00:00:00' and ServiceSetupId = 150703 and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:27:35,062 - 124788 - src.utils.log - INFO - βœ… Fetched 5 rows - __SPLIT__ 2026-07-20 15:27:35,704 - 124788 - src.utils.log - INFO - Generating work orders for setup: 150703 - __SPLIT__ 2026-07-20 15:27:35,791 - 124788 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 11439;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:27:36,130 - 124788 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 15:27:36,201 - 124788 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 11439;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:27:36,537 - 124788 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 15:27:36,647 - 124788 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-07-20 15:27:36,718 - 124788 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=133 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:27:37,053 - 124788 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 15:27:37,118 - 124788 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-07-20 15:27:37,190 - 124788 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-07-20 15:27:37,283 - 124788 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150703 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:27:37,674 - 124788 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 15:27:37,739 - 124788 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150703 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:27:38,118 - 124788 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 15:27:38,190 - 124788 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150703 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:27:38,537 - 124788 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 15:27:38,603 - 124788 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150703 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:27:38,987 - 124788 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 15:27:39,100 - 124788 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150703 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:27:39,482 - 124788 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 15:27:39,550 - 124788 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150703 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:27:39,905 - 124788 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 15:27:39,975 - 124788 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150703 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:27:40,321 - 124788 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 15:27:40,389 - 124788 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150703 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:27:40,844 - 124788 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 15:27:40,913 - 124788 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 15:27:40,979 - 124788 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 3 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:27:41,349 - 124788 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-07-20 15:27:42,559 - 124788 - src.utils.log - INFO - βœ… All 3 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-07-20 15:27:42,623 - 124788 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 3 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-07-16 14:51:40.585' and ServiceSetupId = 150703... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:27:43,010 - 124788 - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-07-20 15:27:43,081 - 124788 - src.utils.log - INFO - Id's of work order inserted to DB: [3683516 3683517 3683518] - __SPLIT__ 2026-07-20 15:27:43,147 - 124788 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150703;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:27:43,489 - 124788 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 15:27:43,560 - 124788 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-07-20 15:27:43,626 - 124788 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId = 150703... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:27:43,968 - 124788 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 15:27:44,085 - 124788 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId = 150703... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:27:44,430 - 124788 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 15:27:44,503 - 124788 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId = 150703... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:27:44,856 - 124788 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 15:27:44,918 - 124788 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId = 150703... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:27:45,260 - 124788 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 15:27:45,319 - 124788 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId = 150703... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:27:45,659 - 124788 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 15:27:45,734 - 124788 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId = 150703;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:27:46,079 - 124788 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 15:27:46,151 - 124788 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId = 150703;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:27:46,504 - 124788 - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-07-20 15:27:46,578 - 124788 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId = 150703;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:27:47,010 - 124788 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 15:27:47,081 - 124788 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId = 150703;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:27:47,426 - 124788 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 15:27:47,505 - 124788 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-07-20 15:27:47,573 - 124788 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-07-20 15:27:47,642 - 124788 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-07-20 15:27:47,713 - 124788 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.CommunicationPreferencesServiceReportNotification: - __SPLIT__ 2026-07-20 15:27:47,831 - 124788 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-07-20 15:27:47,895 - 124788 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 15:27:47,973 - 124788 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ('3683516', '3683517', '3683518') ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:27:48,313 - 124788 - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-07-20 15:27:48,378 - 124788 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.SetupAutoGenerationSourceMapping: 0 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:27:48,721 - 124788 - src.utils.log - INFO - βœ… All 0 rows inserted successfully into ServiceCore.SetupAutoGenerationSourceMapping in 0 batches - __SPLIT__ 2026-07-20 15:27:48,788 - 124788 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-07-20 15:27:48,853 - 124788 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationAppliedDiscount: - __SPLIT__ 2026-07-20 15:27:48,925 - 124788 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-07-20 15:27:49,000 - 124788 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 15:27:49,072 - 124788 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3683516, 3683517, 3683518) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:27:49,417 - 124788 - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-07-20 15:27:49,488 - 124788 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.SubWorkOrderAutoGeneration: 3 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:27:49,847 - 124788 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into ServiceCore.SubWorkOrderAutoGeneration - __SPLIT__ 2026-07-20 15:27:51,043 - 124788 - src.utils.log - INFO - βœ… All 3 rows inserted successfully into ServiceCore.SubWorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-07-20 15:27:51,118 - 124788 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-07-20 15:27:51,188 - 124788 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: - __SPLIT__ 2026-07-20 15:27:51,252 - 124788 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-07-20 15:27:51,324 - 124788 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: - __SPLIT__ 2026-07-20 15:27:51,391 - 124788 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-07-20 15:27:51,508 - 124788 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCrews: - __SPLIT__ 2026-07-20 15:27:51,574 - 124788 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-07-20 15:27:51,635 - 124788 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationServices: - __SPLIT__ 2026-07-20 15:27:51,703 - 124788 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-07-20 15:27:51,772 - 124788 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 15:27:51,835 - 124788 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3683516, 3683517, 3683518) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:27:52,211 - 124788 - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-07-20 15:27:52,284 - 124788 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 3 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:27:52,630 - 124788 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-07-20 15:27:53,674 - 124788 - src.utils.log - INFO - βœ… All 3 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-07-20 15:27:53,746 - 124788 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-07-20 15:27:53,814 - 124788 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 124788;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:27:54,164 - 124788 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-20 15:27:54,233 - 124788 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-07-20 15:27:54,302 - 124788 - src.utils.log - INFO - Time took to perform operation: 25.8 - __SPLIT__ 2026-07-20 15:28:36,703 - [124788] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[3683518] user_id=43135 company_id=133 project_id=[124788] publish_all=False - __SPLIT__ 2026-07-20 15:28:36,813 - [124788] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[3683518] user_id=43135 company_id=133 project_id=[124788] publish_all=False - __SPLIT__ 2026-07-20 15:28:36,876 - [124788] - src.utils.log - INFO - Sequential Work order publish in progress for GenerateWorkOrderHistoryId: [124788] - __SPLIT__ 2026-07-20 15:28:36,936 - [124788] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-20 15:28:37,002 - [124788] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:28:39,056 - [124788] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 15:28:39,128 - [124788] - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-07-20 15:28:39,193 - [124788] - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-07-20 15:28:39,264 - [124788] - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-07-20 15:28:39,327 - [124788] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'InProgress' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124788;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:28:41,305 - [124788] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-20 15:28:41,379 - [124788] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId = 3683518... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:28:41,720 - [124788] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 15:28:41,787 - [124788] - src.utils.log - INFO - Inside get_work_order_table - __SPLIT__ 2026-07-20 15:28:41,854 - [124788] - 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 = 150703 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:28:42,196 - [124788] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 15:28:42,268 - [124788] - 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 = 150703 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:28:42,607 - [124788] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 15:28:42,679 - [124788] - 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 = 150703 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:28:43,013 - [124788] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 15:28:43,087 - [124788] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder,BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:28:43,471 - [124788] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 15:28:43,540 - [124788] - 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-07-20 15:28:43,883 - [124788] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-20 15:28:43,943 - [124788] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder, BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:28:44,280 - [124788] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 15:28:44,336 - [124788] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 1 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 133 AND EnitityNumberType = 'WorkOrder'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:28:44,678 - [124788] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 15:28:44,746 - [124788] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 1 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 133 AND EnitityNumberType = 'Invoice'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:28:45,081 - [124788] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 15:28:45,151 - [124788] - 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 = 150703... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:28:45,491 - [124788] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 15:28:45,558 - [124788] - src.utils.log - INFO - πŸ” Fetching data: SELECT x.CompanyId FROM CRM.CompanyMaster x WHERE CompanyKey = 'abcdallas';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:28:45,892 - [124788] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 15:28:45,960 - [124788] - src.utils.log - INFO - πŸ” Fetching data: SELECT CollectionStatus,IsHold,AccountNo FROM CRM.Account a WHERE a.AccountNo = '15021' and a.CompanyId = 121;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:28:46,294 - [124788] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 15:28:46,365 - [124788] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderNo FROM ServiceCore.WorkOrder WHERE WorkOrderNo = '1428848' AND CompanyId = 133 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:28:46,703 - [124788] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 15:28:46,759 - [124788] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrder (skip triggers): 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:28:47,272 - [124788] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrder (triggers skipped) - __SPLIT__ 2026-07-20 15:28:48,426 - [124788] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrder in 1 batches (triggers skipped) - __SPLIT__ 2026-07-20 15:28:48,676 - [124788] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-07-20 15:28:48,745 - [124788] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkorderId, WorkOrderNo FROM ServiceCore.WorkOrder wo WHERE wo.WorkOrderNo = '1428848' AND wo.AccountNumber = '15021' AND wo.CompanyId = 133 ... (Thread: ThreadPoolExecutor-56_0) - __SPLIT__ 2026-07-20 15:28:49,088 - [124788] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 15:28:49,155 - [124788] - src.utils.log - INFO - Sequential fetching temp table records - __SPLIT__ 2026-07-20 15:28:49,222 - [124788] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationServices woag WHERE woag.WorkOrderAutoGenerationId = 3683518... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:28:49,590 - [124788] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 15:28:49,653 - [124788] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SubWorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId = 3683518... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:28:49,992 - [124788] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 15:28:50,069 - [124788] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationCrews woag WHERE woag.WorkOrderAutoGenerationId = 3683518... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:28:50,431 - [124788] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 15:28:50,505 - [124788] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationSalesPersonCommission woag WHERE woag.WorkOrderAutoGenerationId = 3683518... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:28:50,846 - [124788] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 15:28:50,909 - [124788] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupAutoGenerationSourceMapping woag WHERE woag.WorkOrderAutoGenerationId = 3683518... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:28:51,255 - [124788] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 15:28:51,315 - [124788] - 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 = 3683518... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:28:51,682 - [124788] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 15:28:51,743 - [124788] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from CRM.LeadNote woag WHERE woag.RefId = 3683518 and woag.RefType = 'TempWorkorder';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:28:52,088 - [124788] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 15:28:52,162 - [124788] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment woagca WHERE woagca.WorkOrderAutoGenerationId = 3683518;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:28:52,499 - [124788] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 15:28:52,604 - [124788] - src.utils.log - INFO - Updating temp tables - __SPLIT__ 2026-07-20 15:28:52,685 - [124788] - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyKey FROM Common.CompanyMaster cm WHERE CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:28:53,016 - [124788] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 15:28:53,084 - [124788] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 133 AND EnitityNumberType in ('SubWorkOrder'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:28:53,424 - [124788] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 15:28:53,491 - [124788] - src.utils.log - INFO - πŸ“ Executing: UPDATE Common.GenerateNumberConfig SET NextNumber = '22894' WHERE CompanyId = 133 AND EnitityNumberType in ('SubWorkOrder');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:28:53,829 - [124788] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-20 15:28:53,898 - [124788] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 15:28:53,973 - [124788] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishHistory: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:28:54,337 - [124788] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderAutoGenerationPublishHistory - __SPLIT__ 2026-07-20 15:28:55,362 - [124788] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishHistory in 1 batches - __SPLIT__ 2026-07-20 15:28:55,433 - [124788] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationPublishHistoryId, WorkOrderNo, ServiceSetupId FROM ServiceCore.WorkOrderAutoGenerationPublishHistory WHERE ServiceSetupId = 150703 AND WorkOrderNo = '7850066' AND GenerateWorkOrderHistoryId = 124788; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:28:55,933 - [124788] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 15:28:56,012 - [124788] - src.utils.log - INFO - Sequential Insertion in work order tables begin - __SPLIT__ 2026-07-20 15:28:56,077 - [124788] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 15:28:56,143 - [124788] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderServices: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:28:56,480 - [124788] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderServices - __SPLIT__ 2026-07-20 15:28:57,507 - [124788] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderServices in 1 batches - __SPLIT__ 2026-07-20 15:28:57,570 - [124788] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderAppliedDiscount: - __SPLIT__ 2026-07-20 15:28:57,634 - [124788] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderSalesPersonCommission: - __SPLIT__ 2026-07-20 15:28:57,754 - [124788] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderCommissionAdjustment: - __SPLIT__ 2026-07-20 15:28:57,828 - [124788] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderCrew: - __SPLIT__ 2026-07-20 15:28:57,899 - [124788] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkorderSourceMapping: - __SPLIT__ 2026-07-20 15:28:57,975 - [124788] - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-07-20 15:28:58,048 - [124788] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 15:28:58,113 - [124788] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishServices: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:28:58,462 - [124788] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderAutoGenerationPublishServices - __SPLIT__ 2026-07-20 15:28:59,494 - [124788] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishServices in 1 batches - __SPLIT__ 2026-07-20 15:28:59,564 - [124788] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 15:28:59,638 - [124788] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.SubWorkOrder: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:29:00,001 - [124788] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.SubWorkOrder - __SPLIT__ 2026-07-20 15:29:01,208 - [124788] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.SubWorkOrder in 1 batches - __SPLIT__ 2026-07-20 15:29:01,281 - [124788] - src.utils.log - INFO - πŸ” Fetching data: Select * From ServiceCore.SubWorkOrder where WorkOrderId = 2159135... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:29:01,641 - [124788] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 15:29:01,725 - [124788] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 15:29:01,799 - [124788] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.subWorkOrderIssue: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:29:02,172 - [124788] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceAuto.subWorkOrderIssue - __SPLIT__ 2026-07-20 15:29:03,073 - [124788] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceAuto.subWorkOrderIssue in 1 batches - __SPLIT__ 2026-07-20 15:29:03,140 - [124788] - src.utils.log - INFO - πŸ” Fetching data: Select SubWorkOrderIssueId, SubWorkOrderId, ModifiedBy From ServiceAuto.subWorkOrderIssue where SubWorkOrderId = 230493 and ModifiedBy = 999999999 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:29:03,484 - [124788] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 15:29:03,602 - [124788] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceAuto.subWorkOrderIssue SET ModifiedBy = 'abcdallas' WHERE ModifiedBy = '999999999'; ... (Thread: ThreadPoolExecutor-57_0) - __SPLIT__ 2026-07-20 15:29:03,977 - [124788] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-20 15:29:04,060 - [124788] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 15:29:04,130 - [124788] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.subWOIssueRepair: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:29:04,485 - [124788] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceAuto.subWOIssueRepair - __SPLIT__ 2026-07-20 15:29:05,379 - [124788] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceAuto.subWOIssueRepair in 1 batches - __SPLIT__ 2026-07-20 15:29:05,450 - [124788] - src.utils.log - INFO - πŸ” Fetching data: Select IssueRepairId, ModifiedBy From ServiceAuto.subWOIssueRepair where SubWorkOrderIssueId = 192679... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:29:05,786 - [124788] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 15:29:05,858 - [124788] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceAuto.subWOIssueRepair SET ModifiedBy = 'abcdallas' WHERE ModifiedBy = '0___TMP___192679' AND CreatedDate = '2026-07-20 11:29:01.723'; ... (Thread: ThreadPoolExecutor-58_0) - __SPLIT__ 2026-07-20 15:29:06,212 - [124788] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-20 15:29:06,291 - [124788] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 15:29:06,361 - [124788] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.SubWOIssueRepairLabor: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:29:06,713 - [124788] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceAuto.SubWOIssueRepairLabor - __SPLIT__ 2026-07-20 15:29:07,769 - [124788] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceAuto.SubWOIssueRepairLabor in 1 batches - __SPLIT__ 2026-07-20 15:29:07,845 - [124788] - 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 = 150703... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:29:08,195 - [124788] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 15:29:08,271 - [124788] - src.utils.log - INFO - Size of Transaction: 1 - __SPLIT__ 2026-07-20 15:29:08,338 - [124788] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:29:08,810 - [124788] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-07-20 15:29:09,843 - [124788] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-07-20 15:29:10,088 - [124788] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-07-20 15:29:10,156 - [124788] - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionId, ModifiedBy, TransactionDate as InvoiceDate from Billing.[Transaction] t WHERE t.ModifiedBy = 12345678910 and t.CompanyId = 133 AND t.TransactionType ='Invoice' AND t.CreatedDate = '2026-07-20 11:29:08.266';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:29:10,587 - [124788] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 15:29:10,651 - [124788] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150703;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:29:10,983 - [124788] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 15:29:11,059 - [124788] - src.utils.log - INFO - πŸ“ Executing: UPDATE Billing.[Transaction] SET ModifiedBy = NULL WHERE ModifiedBy = 12345678910 AND CreatedDate = '2026-07-20 11:29:08.266'; ... (Thread: ThreadPoolExecutor-59_0) - __SPLIT__ 2026-07-20 15:29:11,964 - [124788] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-20 15:29:12,030 - [124788] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 15:29:12,089 - [124788] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:29:12,442 - [124788] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into Billing.Invoice - __SPLIT__ 2026-07-20 15:29:13,477 - [124788] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-07-20 15:29:13,543 - [124788] - src.utils.log - INFO - πŸ” Fetching data: SELECT InvoiceId, WorkOrderNo FROM Billing.Invoice i WHERE i.WorkOrderNo = '1428848'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:29:14,479 - [124788] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 15:29:14,558 - [124788] - 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 = 150703 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:29:14,891 - [124788] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 15:29:14,957 - [124788] - 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 = 150703 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:29:15,292 - [124788] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 15:29:15,354 - [124788] - 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 = 150703 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:29:15,686 - [124788] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 15:29:15,756 - [124788] - 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 = 150703 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:29:16,143 - [124788] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 15:29:16,221 - [124788] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150703;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:29:16,557 - [124788] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 15:29:16,627 - [124788] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId, AppliedDiscountAmt as AppliedDiscountAmount,IsActive ,ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 150703;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:29:16,957 - [124788] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 15:29:17,024 - [124788] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId,IsActive,DiscountAmount, IsDiscountPercent,DiscountPercent,DiscountDescription , ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 150703;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:29:17,368 - [124788] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 15:29:17,435 - [124788] - src.utils.log - INFO - Sequential Insertion in invoice tables begin - __SPLIT__ 2026-07-20 15:29:17,501 - [124788] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.AccountDiscountSetup: - __SPLIT__ 2026-07-20 15:29:17,565 - [124788] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 15:29:17,632 - [124788] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceCharges: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:29:17,977 - [124788] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into Billing.InvoiceCharges - __SPLIT__ 2026-07-20 15:29:19,005 - [124788] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into Billing.InvoiceCharges in 1 batches - __SPLIT__ 2026-07-20 15:29:19,070 - [124788] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.DiscountApplied: - __SPLIT__ 2026-07-20 15:29:19,135 - [124788] - src.utils.log - INFO - Invoice Publish Done - __SPLIT__ 2026-07-20 15:29:19,204 - [124788] - src.utils.log - INFO - Updating Next GenerationDate - __SPLIT__ 2026-07-20 15:29:19,267 - [124788] - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, MAX(NextWorkOrderGenerationDate) AS MaxNextWorkOrderGeneration FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 124788 GROUP BY ServiceSetupId; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:29:19,605 - [124788] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 15:29:19,678 - [124788] - src.utils.log - INFO - πŸ”„ Updating next gen date sequentially: inside update_next_workorder_generation - __SPLIT__ 2026-07-20 15:29:19,891 - [124788] - src.utils.log - INFO - πŸ›  Creating temp table #tbl_90be001708 - __SPLIT__ 2026-07-20 15:29:20,271 - [124788] - src.utils.log - INFO - πŸ“Œ Bulk inserting 1 rows into #tbl_90be001708 - __SPLIT__ 2026-07-20 15:29:20,613 - [124788] - src.utils.log - INFO - πŸ” Running MERGE update to apply changes - __SPLIT__ 2026-07-20 15:29:20,821 - [124788] - src.utils.log - INFO - βœ” SQL reported affected rows: 1 - __SPLIT__ 2026-07-20 15:29:21,030 - [124788] - src.utils.log - INFO - πŸ” Verified successfully updated 1 rows via #tbl_90be001708 - __SPLIT__ 2026-07-20 15:29:21,099 - [124788] - src.utils.log - INFO - πŸŽ‰ Successfully updated NextGenerationDate using temp table #tbl_90be001708 - __SPLIT__ 2026-07-20 15:29:21,168 - [124788] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 124788 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:29:21,505 - [124788] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 15:29:21,574 - [124788] - src.utils.log - INFO - Sequential deletion from temp tables begin - __SPLIT__ 2026-07-20 15:29:21,640 - [124788] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId = 3683518 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:29:22,104 - [124788] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 15:29:22,171 - [124788] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId = 3683518 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:29:22,586 - [124788] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 15:29:22,659 - [124788] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId = 3683518 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:29:22,994 - [124788] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 15:29:23,065 - [124788] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId = 3683518 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:29:23,487 - [124788] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 15:29:23,552 - [124788] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId = 3683518 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:29:23,900 - [124788] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 15:29:23,975 - [124788] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 3683518 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:29:24,311 - [124788] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 15:29:24,432 - [124788] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId = 3683518 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:29:24,771 - [124788] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 15:29:24,842 - [124788] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 3683518 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:29:25,227 - [124788] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 15:29:25,299 - [124788] - src.utils.log - INFO - Work order published ids: (3683518,) - __SPLIT__ 2026-07-20 15:29:25,361 - [124788] - src.utils.log - INFO - Time took to perform operation in publishing [124788]: 48.42 - __SPLIT__ 2026-07-20 15:29:25,439 - [124788] - src.utils.log - INFO - Publish Completed for GenerateWorkOrderHistoryId: [124788] - __SPLIT__ 2026-07-20 15:29:25,505 - [124788] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-07-20 11:29:25.299' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124788;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:29:25,875 - [124788] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-20 15:36:26,024 - [124789] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[3683527] user_id=43135 company_id=133 project_id=[124789] publish_all=False - __SPLIT__ 2026-07-20 15:36:26,143 - [124789] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[3683527] user_id=43135 company_id=133 project_id=[124789] publish_all=False - __SPLIT__ 2026-07-20 15:36:26,213 - [124789] - src.utils.log - INFO - Sequential Work order publish in progress for GenerateWorkOrderHistoryId: [124789] - __SPLIT__ 2026-07-20 15:36:26,285 - [124789] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-20 15:36:26,357 - [124789] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:36:28,406 - [124789] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 15:36:28,477 - [124789] - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-07-20 15:36:28,543 - [124789] - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-07-20 15:36:28,613 - [124789] - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-07-20 15:36:28,680 - [124789] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'InProgress' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124789;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:36:30,590 - [124789] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-20 15:36:30,661 - [124789] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId = 3683527... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:36:30,997 - [124789] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 15:36:31,069 - [124789] - src.utils.log - INFO - Inside get_work_order_table - __SPLIT__ 2026-07-20 15:36:31,148 - [124789] - 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 = 150702 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:36:31,485 - [124789] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 15:36:31,551 - [124789] - 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 = 150702 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:36:31,883 - [124789] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 15:36:31,955 - [124789] - 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 = 150702 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:36:32,291 - [124789] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 15:36:32,365 - [124789] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder,BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:36:32,753 - [124789] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 15:36:32,826 - [124789] - 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-07-20 15:36:33,161 - [124789] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-20 15:36:33,231 - [124789] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder, BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:36:33,566 - [124789] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 15:36:33,639 - [124789] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 1 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 133 AND EnitityNumberType = 'WorkOrder'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:36:33,973 - [124789] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 15:36:34,044 - [124789] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 1 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 133 AND EnitityNumberType = 'Invoice'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:36:34,381 - [124789] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 15:36:34,460 - [124789] - 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 = 150702... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:36:34,800 - [124789] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 15:36:34,874 - [124789] - src.utils.log - INFO - πŸ” Fetching data: SELECT x.CompanyId FROM CRM.CompanyMaster x WHERE CompanyKey = 'abcdallas';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:36:35,216 - [124789] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 15:36:35,288 - [124789] - src.utils.log - INFO - πŸ” Fetching data: SELECT CollectionStatus,IsHold,AccountNo FROM CRM.Account a WHERE a.AccountNo = '15021' and a.CompanyId = 121;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:36:35,623 - [124789] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 15:36:35,693 - [124789] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderNo FROM ServiceCore.WorkOrder WHERE WorkOrderNo = '1428849' AND CompanyId = 133 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:36:36,029 - [124789] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 15:36:36,098 - [124789] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrder (skip triggers): 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:36:36,598 - [124789] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrder (triggers skipped) - __SPLIT__ 2026-07-20 15:36:37,609 - [124789] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrder in 1 batches (triggers skipped) - __SPLIT__ 2026-07-20 15:36:37,855 - [124789] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-07-20 15:36:37,937 - [124789] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkorderId, WorkOrderNo FROM ServiceCore.WorkOrder wo WHERE wo.WorkOrderNo = '1428849' AND wo.AccountNumber = '15021' AND wo.CompanyId = 133 ... (Thread: ThreadPoolExecutor-60_0) - __SPLIT__ 2026-07-20 15:36:38,280 - [124789] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 15:36:38,353 - [124789] - src.utils.log - INFO - Sequential fetching temp table records - __SPLIT__ 2026-07-20 15:36:38,417 - [124789] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationServices woag WHERE woag.WorkOrderAutoGenerationId = 3683527... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:36:38,779 - [124789] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 15:36:38,843 - [124789] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SubWorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId = 3683527... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:36:39,172 - [124789] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 15:36:39,231 - [124789] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationCrews woag WHERE woag.WorkOrderAutoGenerationId = 3683527... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:36:39,579 - [124789] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 15:36:39,643 - [124789] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationSalesPersonCommission woag WHERE woag.WorkOrderAutoGenerationId = 3683527... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:36:39,965 - [124789] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 15:36:40,036 - [124789] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupAutoGenerationSourceMapping woag WHERE woag.WorkOrderAutoGenerationId = 3683527... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:36:40,362 - [124789] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 15:36:40,429 - [124789] - 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 = 3683527... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:36:40,783 - [124789] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 15:36:40,856 - [124789] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from CRM.LeadNote woag WHERE woag.RefId = 3683527 and woag.RefType = 'TempWorkorder';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:36:41,184 - [124789] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 15:36:41,253 - [124789] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment woagca WHERE woagca.WorkOrderAutoGenerationId = 3683527;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:36:41,585 - [124789] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 15:36:41,706 - [124789] - src.utils.log - INFO - Updating temp tables - __SPLIT__ 2026-07-20 15:36:41,788 - [124789] - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyKey FROM Common.CompanyMaster cm WHERE CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:36:42,118 - [124789] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 15:36:42,181 - [124789] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 133 AND EnitityNumberType in ('SubWorkOrder'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:36:42,518 - [124789] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 15:36:42,586 - [124789] - src.utils.log - INFO - πŸ“ Executing: UPDATE Common.GenerateNumberConfig SET NextNumber = '22895' WHERE CompanyId = 133 AND EnitityNumberType in ('SubWorkOrder');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:36:42,922 - [124789] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-20 15:36:42,997 - [124789] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 15:36:43,071 - [124789] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishHistory: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:36:43,436 - [124789] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderAutoGenerationPublishHistory - __SPLIT__ 2026-07-20 15:36:44,439 - [124789] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishHistory in 1 batches - __SPLIT__ 2026-07-20 15:36:44,509 - [124789] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationPublishHistoryId, WorkOrderNo, ServiceSetupId FROM ServiceCore.WorkOrderAutoGenerationPublishHistory WHERE ServiceSetupId = 150702 AND WorkOrderNo = '6388054' AND GenerateWorkOrderHistoryId = 124789; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:36:44,990 - [124789] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 15:36:45,063 - [124789] - src.utils.log - INFO - Sequential Insertion in work order tables begin - __SPLIT__ 2026-07-20 15:36:45,134 - [124789] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 15:36:45,220 - [124789] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderServices: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:36:45,555 - [124789] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderServices - __SPLIT__ 2026-07-20 15:36:46,548 - [124789] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderServices in 1 batches - __SPLIT__ 2026-07-20 15:36:46,620 - [124789] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderAppliedDiscount: - __SPLIT__ 2026-07-20 15:36:46,683 - [124789] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderSalesPersonCommission: - __SPLIT__ 2026-07-20 15:36:46,795 - [124789] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderCommissionAdjustment: - __SPLIT__ 2026-07-20 15:36:46,860 - [124789] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderCrew: - __SPLIT__ 2026-07-20 15:36:46,931 - [124789] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkorderSourceMapping: - __SPLIT__ 2026-07-20 15:36:46,999 - [124789] - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-07-20 15:36:47,070 - [124789] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 15:36:47,139 - [124789] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishServices: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:36:47,476 - [124789] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderAutoGenerationPublishServices - __SPLIT__ 2026-07-20 15:36:48,476 - [124789] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishServices in 1 batches - __SPLIT__ 2026-07-20 15:36:48,546 - [124789] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 15:36:48,615 - [124789] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.SubWorkOrder: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:36:48,959 - [124789] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.SubWorkOrder - __SPLIT__ 2026-07-20 15:36:50,090 - [124789] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.SubWorkOrder in 1 batches - __SPLIT__ 2026-07-20 15:36:50,166 - [124789] - src.utils.log - INFO - πŸ” Fetching data: Select * From ServiceCore.SubWorkOrder where WorkOrderId = 2159136... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:36:50,513 - [124789] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 15:36:50,592 - [124789] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 15:36:50,660 - [124789] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.subWorkOrderIssue: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:36:50,993 - [124789] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceAuto.subWorkOrderIssue - __SPLIT__ 2026-07-20 15:36:51,861 - [124789] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceAuto.subWorkOrderIssue in 1 batches - __SPLIT__ 2026-07-20 15:36:51,921 - [124789] - src.utils.log - INFO - πŸ” Fetching data: Select SubWorkOrderIssueId, SubWorkOrderId, ModifiedBy From ServiceAuto.subWorkOrderIssue where SubWorkOrderId = 230494 and ModifiedBy = 999999999 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:36:52,255 - [124789] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 15:36:52,368 - [124789] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceAuto.subWorkOrderIssue SET ModifiedBy = 'abcdallas' WHERE ModifiedBy = '999999999'; ... (Thread: ThreadPoolExecutor-61_0) - __SPLIT__ 2026-07-20 15:36:52,734 - [124789] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-20 15:36:52,807 - [124789] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 15:36:52,874 - [124789] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.subWOIssueRepair: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:36:53,213 - [124789] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceAuto.subWOIssueRepair - __SPLIT__ 2026-07-20 15:36:54,078 - [124789] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceAuto.subWOIssueRepair in 1 batches - __SPLIT__ 2026-07-20 15:36:54,152 - [124789] - src.utils.log - INFO - πŸ” Fetching data: Select IssueRepairId, ModifiedBy From ServiceAuto.subWOIssueRepair where SubWorkOrderIssueId = 192680... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:36:54,488 - [124789] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 15:36:54,564 - [124789] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceAuto.subWOIssueRepair SET ModifiedBy = 'abcdallas' WHERE ModifiedBy = '0___TMP___192680' AND CreatedDate = '2026-07-20 11:36:50.589'; ... (Thread: ThreadPoolExecutor-62_0) - __SPLIT__ 2026-07-20 15:36:54,910 - [124789] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-20 15:36:54,985 - [124789] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 15:36:55,059 - [124789] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.SubWOIssueRepairLabor: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:36:55,396 - [124789] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceAuto.SubWOIssueRepairLabor - __SPLIT__ 2026-07-20 15:36:56,399 - [124789] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceAuto.SubWOIssueRepairLabor in 1 batches - __SPLIT__ 2026-07-20 15:36:56,463 - [124789] - 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 = 150702... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:36:56,788 - [124789] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 15:36:56,865 - [124789] - src.utils.log - INFO - Size of Transaction: 1 - __SPLIT__ 2026-07-20 15:36:56,940 - [124789] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:36:57,406 - [124789] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-07-20 15:36:58,397 - [124789] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-07-20 15:36:58,628 - [124789] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-07-20 15:36:58,683 - [124789] - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionId, ModifiedBy, TransactionDate as InvoiceDate from Billing.[Transaction] t WHERE t.ModifiedBy = 12345678910 and t.CompanyId = 133 AND t.TransactionType ='Invoice' AND t.CreatedDate = '2026-07-20 11:36:56.860';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:36:59,099 - [124789] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 15:36:59,172 - [124789] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150702;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:36:59,499 - [124789] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 15:36:59,562 - [124789] - src.utils.log - INFO - πŸ“ Executing: UPDATE Billing.[Transaction] SET ModifiedBy = NULL WHERE ModifiedBy = 12345678910 AND CreatedDate = '2026-07-20 11:36:56.860'; ... (Thread: ThreadPoolExecutor-63_0) - __SPLIT__ 2026-07-20 15:37:00,454 - [124789] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-20 15:37:00,520 - [124789] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 15:37:00,582 - [124789] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:37:00,916 - [124789] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into Billing.Invoice - __SPLIT__ 2026-07-20 15:37:01,898 - [124789] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-07-20 15:37:01,957 - [124789] - src.utils.log - INFO - πŸ” Fetching data: SELECT InvoiceId, WorkOrderNo FROM Billing.Invoice i WHERE i.WorkOrderNo = '1428849'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:37:02,841 - [124789] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 15:37:02,905 - [124789] - 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 = 150702 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:37:03,232 - [124789] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 15:37:03,289 - [124789] - 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 = 150702 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:37:03,615 - [124789] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 15:37:03,668 - [124789] - 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 = 150702 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:37:03,982 - [124789] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 15:37:04,036 - [124789] - 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 = 150702 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:37:04,406 - [124789] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 15:37:04,489 - [124789] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150702;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:37:04,819 - [124789] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 15:37:04,889 - [124789] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId, AppliedDiscountAmt as AppliedDiscountAmount,IsActive ,ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 150702;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:37:05,218 - [124789] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 15:37:05,291 - [124789] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId,IsActive,DiscountAmount, IsDiscountPercent,DiscountPercent,DiscountDescription , ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 150702;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:37:05,624 - [124789] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 15:37:05,689 - [124789] - src.utils.log - INFO - Sequential Insertion in invoice tables begin - __SPLIT__ 2026-07-20 15:37:05,768 - [124789] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.AccountDiscountSetup: - __SPLIT__ 2026-07-20 15:37:05,834 - [124789] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 15:37:05,911 - [124789] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceCharges: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:37:06,247 - [124789] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into Billing.InvoiceCharges - __SPLIT__ 2026-07-20 15:37:07,238 - [124789] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into Billing.InvoiceCharges in 1 batches - __SPLIT__ 2026-07-20 15:37:07,312 - [124789] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.DiscountApplied: - __SPLIT__ 2026-07-20 15:37:07,376 - [124789] - src.utils.log - INFO - Invoice Publish Done - __SPLIT__ 2026-07-20 15:37:07,437 - [124789] - src.utils.log - INFO - Updating Next GenerationDate - __SPLIT__ 2026-07-20 15:37:07,500 - [124789] - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, MAX(NextWorkOrderGenerationDate) AS MaxNextWorkOrderGeneration FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 124789 GROUP BY ServiceSetupId; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:37:07,840 - [124789] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 15:37:07,911 - [124789] - src.utils.log - INFO - πŸ”„ Updating next gen date sequentially: inside update_next_workorder_generation - __SPLIT__ 2026-07-20 15:37:08,103 - [124789] - src.utils.log - INFO - πŸ›  Creating temp table #tbl_93fcf27b73 - __SPLIT__ 2026-07-20 15:37:08,491 - [124789] - src.utils.log - INFO - πŸ“Œ Bulk inserting 1 rows into #tbl_93fcf27b73 - __SPLIT__ 2026-07-20 15:37:08,829 - [124789] - src.utils.log - INFO - πŸ” Running MERGE update to apply changes - __SPLIT__ 2026-07-20 15:37:09,052 - [124789] - src.utils.log - INFO - βœ” SQL reported affected rows: 1 - __SPLIT__ 2026-07-20 15:37:09,269 - [124789] - src.utils.log - INFO - πŸ” Verified successfully updated 1 rows via #tbl_93fcf27b73 - __SPLIT__ 2026-07-20 15:37:09,338 - [124789] - src.utils.log - INFO - πŸŽ‰ Successfully updated NextGenerationDate using temp table #tbl_93fcf27b73 - __SPLIT__ 2026-07-20 15:37:09,404 - [124789] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 124789 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:37:09,741 - [124789] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 15:37:09,811 - [124789] - src.utils.log - INFO - Sequential deletion from temp tables begin - __SPLIT__ 2026-07-20 15:37:09,879 - [124789] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId = 3683527 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:37:10,332 - [124789] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 15:37:10,398 - [124789] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId = 3683527 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:37:10,801 - [124789] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 15:37:10,873 - [124789] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId = 3683527 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:37:11,214 - [124789] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 15:37:11,280 - [124789] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId = 3683527 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:37:11,682 - [124789] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 15:37:11,750 - [124789] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId = 3683527 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:37:12,089 - [124789] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 15:37:12,164 - [124789] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 3683527 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:37:12,502 - [124789] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 15:37:12,621 - [124789] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId = 3683527 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:37:12,961 - [124789] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 15:37:13,030 - [124789] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 3683527 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:37:13,405 - [124789] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 15:37:13,472 - [124789] - src.utils.log - INFO - Work order published ids: (3683527,) - __SPLIT__ 2026-07-20 15:37:13,544 - [124789] - src.utils.log - INFO - Time took to perform operation in publishing [124789]: 47.26 - __SPLIT__ 2026-07-20 15:37:13,621 - [124789] - src.utils.log - INFO - Publish Completed for GenerateWorkOrderHistoryId: [124789] - __SPLIT__ 2026-07-20 15:37:13,692 - [124789] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-07-20 11:37:13.472' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124789;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:37:14,032 - [124789] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-20 15:42:12,964 - 124791 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=124791 - __SPLIT__ 2026-07-20 15:42:13,091 - 124791 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 124791 - __SPLIT__ 2026-07-20 15:42:13,150 - 124791 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-20 15:42:13,215 - 124791 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:42:15,354 - 124791 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 15:42:15,421 - 124791 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-07-20 15:42:15,487 - 124791 - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-07-20 15:42:15,559 - 124791 - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-07-20 15:42:15,620 - 124791 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 124791;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:42:17,612 - 124791 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-20 15:42:17,683 - 124791 - 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 = 124791), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 124791), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 124791 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-07-20 15:42:18,065 - 124791 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 15:42:18,122 - 124791 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 124791;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:42:18,459 - 124791 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 15:42:18,527 - 124791 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-07-20 15:42:18,599 - 124791 - 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 = 14638... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:42:18,945 - 124791 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 15:42:19,012 - 124791 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-07-20 15:42:19,082 - 124791 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-07-20 15:42:19,146 - 124791 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150702;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:42:19,485 - 124791 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 15:42:19,599 - 124791 - 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-07-20 00:00:00' and ServiceDate <= '2028-12-31 00:00:00' and ServiceSetupId = 150702 and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:42:19,953 - 124791 - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-07-20 15:42:20,594 - 124791 - src.utils.log - INFO - Generating work orders for setup: 150702 - __SPLIT__ 2026-07-20 15:42:20,887 - 124791 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 11428;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:42:21,234 - 124791 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 15:42:21,308 - 124791 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 11428;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:42:21,652 - 124791 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 15:42:21,770 - 124791 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-07-20 15:42:21,851 - 124791 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=133 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:42:22,219 - 124791 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 15:42:22,288 - 124791 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-07-20 15:42:22,359 - 124791 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-07-20 15:42:22,430 - 124791 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150702 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:42:22,847 - 124791 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 15:42:22,916 - 124791 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150702 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:42:23,320 - 124791 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 15:42:23,385 - 124791 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150702 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:42:23,732 - 124791 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 15:42:23,798 - 124791 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150702 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:42:24,204 - 124791 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 15:42:24,318 - 124791 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150702 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:42:24,708 - 124791 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 15:42:24,780 - 124791 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150702 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:42:25,133 - 124791 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 15:42:25,198 - 124791 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150702 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:42:25,540 - 124791 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 15:42:25,611 - 124791 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150702 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:42:27,317 - 124791 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 15:42:27,386 - 124791 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 15:42:27,456 - 124791 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 19 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:42:27,841 - 124791 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 19) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-07-20 15:42:29,571 - 124791 - src.utils.log - INFO - βœ… All 19 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-07-20 15:42:29,642 - 124791 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 19 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-07-16 14:51:40.778' and ServiceSetupId = 150702... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:42:30,032 - 124791 - src.utils.log - INFO - βœ… Fetched 19 rows - __SPLIT__ 2026-07-20 15:42:30,105 - 124791 - src.utils.log - INFO - Id's of work order inserted to DB: [3683559 3683560 3683561 3683562 3683563 3683564 3683565 3683566 3683567 3683568 3683569 3683570 3683571 3683572 3683573 3683574 3683575 3683576 3683577] - __SPLIT__ 2026-07-20 15:42:30,177 - 124791 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150702;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:42:30,515 - 124791 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 15:42:30,586 - 124791 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-07-20 15:42:30,652 - 124791 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId = 150702... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:42:30,992 - 124791 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 15:42:31,113 - 124791 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId = 150702... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:42:31,456 - 124791 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 15:42:31,527 - 124791 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId = 150702... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:42:31,881 - 124791 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 15:42:31,955 - 124791 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId = 150702... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:42:32,303 - 124791 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 15:42:32,372 - 124791 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId = 150702... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:42:32,714 - 124791 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 15:42:32,783 - 124791 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId = 150702;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:42:33,125 - 124791 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 15:42:33,195 - 124791 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId = 150702;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:42:33,539 - 124791 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-20 15:42:33,611 - 124791 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId = 150702;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:42:34,042 - 124791 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 15:42:34,111 - 124791 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId = 150702;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:42:34,455 - 124791 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 15:42:34,531 - 124791 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-07-20 15:42:34,599 - 124791 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-07-20 15:42:34,669 - 124791 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-07-20 15:42:34,738 - 124791 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.CommunicationPreferencesServiceReportNotification: - __SPLIT__ 2026-07-20 15:42:34,853 - 124791 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-07-20 15:42:34,930 - 124791 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 15:42:35,001 - 124791 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ('3683576', '3683574', '3683569', '3683570', '3683572', '3683575', '3683567', '3683563', '3683571', '3683560', '3683566', '3683568', '3683573', '3683562', '3683577', '3683565', '3683564', '3683561', '3683559') ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:42:35,341 - 124791 - src.utils.log - INFO - βœ… Fetched 19 rows - __SPLIT__ 2026-07-20 15:42:35,439 - 124791 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.SetupAutoGenerationSourceMapping: 0 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:42:35,786 - 124791 - src.utils.log - INFO - βœ… All 0 rows inserted successfully into ServiceCore.SetupAutoGenerationSourceMapping in 0 batches - __SPLIT__ 2026-07-20 15:42:35,860 - 124791 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-07-20 15:42:35,934 - 124791 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationAppliedDiscount: - __SPLIT__ 2026-07-20 15:42:36,005 - 124791 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-07-20 15:42:36,074 - 124791 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 15:42:36,148 - 124791 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3683559, 3683560, 3683561, 3683562, 3683563, 3683564, 3683565, 3683566, 3683567, 3683568, 3683569, 3683570, 3683571, 3683572, 3683573, 3683574, 3683575, 3683576, 3683577) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:42:36,491 - 124791 - src.utils.log - INFO - βœ… Fetched 19 rows - __SPLIT__ 2026-07-20 15:42:36,557 - 124791 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.SubWorkOrderAutoGeneration: 19 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:42:36,923 - 124791 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 19) into ServiceCore.SubWorkOrderAutoGeneration - __SPLIT__ 2026-07-20 15:42:38,417 - 124791 - src.utils.log - INFO - βœ… All 19 rows inserted successfully into ServiceCore.SubWorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-07-20 15:42:38,488 - 124791 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-07-20 15:42:38,564 - 124791 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: - __SPLIT__ 2026-07-20 15:42:38,635 - 124791 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-07-20 15:42:38,704 - 124791 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: - __SPLIT__ 2026-07-20 15:42:38,776 - 124791 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-07-20 15:42:38,900 - 124791 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCrews: - __SPLIT__ 2026-07-20 15:42:38,973 - 124791 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-07-20 15:42:39,039 - 124791 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationServices: - __SPLIT__ 2026-07-20 15:42:39,105 - 124791 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-07-20 15:42:39,176 - 124791 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 15:42:39,246 - 124791 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3683559, 3683560, 3683561, 3683562, 3683563, 3683564, 3683565, 3683566, 3683567, 3683568, 3683569, 3683570, 3683571, 3683572, 3683573, 3683574, 3683575, 3683576, 3683577) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:42:39,591 - 124791 - src.utils.log - INFO - βœ… Fetched 19 rows - __SPLIT__ 2026-07-20 15:42:39,663 - 124791 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 19 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:42:40,017 - 124791 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 19) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-07-20 15:42:41,215 - 124791 - src.utils.log - INFO - βœ… All 19 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-07-20 15:42:41,288 - 124791 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-07-20 15:42:41,359 - 124791 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 124791;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:42:41,706 - 124791 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-20 15:42:41,776 - 124791 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-07-20 15:42:41,846 - 124791 - src.utils.log - INFO - Time took to perform operation: 28.63 - __SPLIT__ 2026-07-20 15:59:18,157 - [124794] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[3683604] user_id=43135 company_id=133 project_id=[124794] publish_all=False - __SPLIT__ 2026-07-20 15:59:18,283 - [124794] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[3683604] user_id=43135 company_id=133 project_id=[124794] publish_all=False - __SPLIT__ 2026-07-20 15:59:18,359 - [124794] - src.utils.log - INFO - Sequential Work order publish in progress for GenerateWorkOrderHistoryId: [124794] - __SPLIT__ 2026-07-20 15:59:18,431 - [124794] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-20 15:59:18,502 - [124794] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:59:20,652 - [124794] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 15:59:20,721 - [124794] - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-07-20 15:59:20,792 - [124794] - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-07-20 15:59:20,866 - [124794] - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-07-20 15:59:20,932 - [124794] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'InProgress' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124794;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:59:22,845 - [124794] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-20 15:59:22,922 - [124794] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId = 3683604... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:59:23,292 - [124794] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 15:59:23,366 - [124794] - src.utils.log - INFO - Inside get_work_order_table - __SPLIT__ 2026-07-20 15:59:23,443 - [124794] - 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 = 150702 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:59:23,778 - [124794] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 15:59:23,843 - [124794] - 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 = 150702 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:59:24,178 - [124794] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 15:59:24,247 - [124794] - 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 = 150702 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:59:24,589 - [124794] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 15:59:24,665 - [124794] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder,BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:59:25,036 - [124794] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 15:59:25,095 - [124794] - 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-07-20 15:59:25,425 - [124794] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-20 15:59:25,492 - [124794] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder, BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:59:25,824 - [124794] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 15:59:25,888 - [124794] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 1 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 133 AND EnitityNumberType = 'WorkOrder'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:59:26,214 - [124794] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 15:59:26,272 - [124794] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 1 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 133 AND EnitityNumberType = 'Invoice'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:59:26,626 - [124794] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 15:59:26,691 - [124794] - 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 = 150702... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:59:27,019 - [124794] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 15:59:27,075 - [124794] - src.utils.log - INFO - πŸ” Fetching data: SELECT x.CompanyId FROM CRM.CompanyMaster x WHERE CompanyKey = 'abcdallas';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:59:27,403 - [124794] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 15:59:27,477 - [124794] - src.utils.log - INFO - πŸ” Fetching data: SELECT CollectionStatus,IsHold,AccountNo FROM CRM.Account a WHERE a.AccountNo = '15021' and a.CompanyId = 121;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:59:27,806 - [124794] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 15:59:27,875 - [124794] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderNo FROM ServiceCore.WorkOrder WHERE WorkOrderNo = '1428851' AND CompanyId = 133 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:59:28,196 - [124794] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 15:59:28,263 - [124794] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrder (skip triggers): 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:59:28,757 - [124794] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrder (triggers skipped) - __SPLIT__ 2026-07-20 15:59:29,773 - [124794] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrder in 1 batches (triggers skipped) - __SPLIT__ 2026-07-20 15:59:30,024 - [124794] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-07-20 15:59:30,096 - [124794] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkorderId, WorkOrderNo FROM ServiceCore.WorkOrder wo WHERE wo.WorkOrderNo = '1428851' AND wo.AccountNumber = '15021' AND wo.CompanyId = 133 ... (Thread: ThreadPoolExecutor-64_0) - __SPLIT__ 2026-07-20 15:59:30,429 - [124794] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 15:59:30,502 - [124794] - src.utils.log - INFO - Sequential fetching temp table records - __SPLIT__ 2026-07-20 15:59:30,576 - [124794] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationServices woag WHERE woag.WorkOrderAutoGenerationId = 3683604... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:59:30,932 - [124794] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 15:59:31,005 - [124794] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SubWorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId = 3683604... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:59:31,345 - [124794] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 15:59:31,417 - [124794] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationCrews woag WHERE woag.WorkOrderAutoGenerationId = 3683604... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:59:31,764 - [124794] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 15:59:31,841 - [124794] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationSalesPersonCommission woag WHERE woag.WorkOrderAutoGenerationId = 3683604... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:59:32,173 - [124794] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 15:59:32,240 - [124794] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupAutoGenerationSourceMapping woag WHERE woag.WorkOrderAutoGenerationId = 3683604... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:59:32,569 - [124794] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 15:59:32,636 - [124794] - 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 = 3683604... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:59:32,996 - [124794] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 15:59:33,071 - [124794] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from CRM.LeadNote woag WHERE woag.RefId = 3683604 and woag.RefType = 'TempWorkorder';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:59:33,402 - [124794] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 15:59:33,478 - [124794] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment woagca WHERE woagca.WorkOrderAutoGenerationId = 3683604;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:59:33,815 - [124794] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 15:59:33,949 - [124794] - src.utils.log - INFO - Updating temp tables - __SPLIT__ 2026-07-20 15:59:34,030 - [124794] - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyKey FROM Common.CompanyMaster cm WHERE CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:59:34,361 - [124794] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 15:59:34,435 - [124794] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 133 AND EnitityNumberType in ('SubWorkOrder'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:59:34,777 - [124794] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 15:59:34,851 - [124794] - src.utils.log - INFO - πŸ“ Executing: UPDATE Common.GenerateNumberConfig SET NextNumber = '22897' WHERE CompanyId = 133 AND EnitityNumberType in ('SubWorkOrder');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:59:35,188 - [124794] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-20 15:59:35,262 - [124794] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 15:59:35,334 - [124794] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishHistory: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:59:35,687 - [124794] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderAutoGenerationPublishHistory - __SPLIT__ 2026-07-20 15:59:36,695 - [124794] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishHistory in 1 batches - __SPLIT__ 2026-07-20 15:59:36,769 - [124794] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationPublishHistoryId, WorkOrderNo, ServiceSetupId FROM ServiceCore.WorkOrderAutoGenerationPublishHistory WHERE ServiceSetupId = 150702 AND WorkOrderNo = '9036647' AND GenerateWorkOrderHistoryId = 124794; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:59:37,257 - [124794] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 15:59:37,330 - [124794] - src.utils.log - INFO - Sequential Insertion in work order tables begin - __SPLIT__ 2026-07-20 15:59:37,399 - [124794] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 15:59:37,463 - [124794] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderServices: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:59:37,803 - [124794] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderServices - __SPLIT__ 2026-07-20 15:59:38,805 - [124794] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderServices in 1 batches - __SPLIT__ 2026-07-20 15:59:38,877 - [124794] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderAppliedDiscount: - __SPLIT__ 2026-07-20 15:59:38,946 - [124794] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderSalesPersonCommission: - __SPLIT__ 2026-07-20 15:59:39,070 - [124794] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderCommissionAdjustment: - __SPLIT__ 2026-07-20 15:59:39,149 - [124794] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderCrew: - __SPLIT__ 2026-07-20 15:59:39,223 - [124794] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkorderSourceMapping: - __SPLIT__ 2026-07-20 15:59:39,298 - [124794] - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-07-20 15:59:39,368 - [124794] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 15:59:39,438 - [124794] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishServices: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:59:39,781 - [124794] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderAutoGenerationPublishServices - __SPLIT__ 2026-07-20 15:59:40,782 - [124794] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishServices in 1 batches - __SPLIT__ 2026-07-20 15:59:40,855 - [124794] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 15:59:40,926 - [124794] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.SubWorkOrder: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:59:41,278 - [124794] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.SubWorkOrder - __SPLIT__ 2026-07-20 15:59:42,415 - [124794] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.SubWorkOrder in 1 batches - __SPLIT__ 2026-07-20 15:59:42,486 - [124794] - src.utils.log - INFO - πŸ” Fetching data: Select * From ServiceCore.SubWorkOrder where WorkOrderId = 2159138... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:59:42,840 - [124794] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 15:59:42,917 - [124794] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 15:59:42,990 - [124794] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.subWorkOrderIssue: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:59:43,329 - [124794] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceAuto.subWorkOrderIssue - __SPLIT__ 2026-07-20 15:59:44,207 - [124794] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceAuto.subWorkOrderIssue in 1 batches - __SPLIT__ 2026-07-20 15:59:44,276 - [124794] - src.utils.log - INFO - πŸ” Fetching data: Select SubWorkOrderIssueId, SubWorkOrderId, ModifiedBy From ServiceAuto.subWorkOrderIssue where SubWorkOrderId = 230496 and ModifiedBy = 999999999 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:59:44,616 - [124794] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 15:59:44,734 - [124794] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceAuto.subWorkOrderIssue SET ModifiedBy = 'abcdallas' WHERE ModifiedBy = '999999999'; ... (Thread: ThreadPoolExecutor-65_0) - __SPLIT__ 2026-07-20 15:59:45,092 - [124794] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-20 15:59:45,171 - [124794] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 15:59:45,240 - [124794] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.subWOIssueRepair: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:59:45,604 - [124794] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceAuto.subWOIssueRepair - __SPLIT__ 2026-07-20 15:59:46,477 - [124794] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceAuto.subWOIssueRepair in 1 batches - __SPLIT__ 2026-07-20 15:59:46,545 - [124794] - src.utils.log - INFO - πŸ” Fetching data: Select IssueRepairId, ModifiedBy From ServiceAuto.subWOIssueRepair where SubWorkOrderIssueId = 192682... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:59:46,887 - [124794] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 15:59:46,958 - [124794] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceAuto.subWOIssueRepair SET ModifiedBy = 'abcdallas' WHERE ModifiedBy = '0___TMP___192682' AND CreatedDate = '2026-07-20 11:59:42.914'; ... (Thread: ThreadPoolExecutor-66_0) - __SPLIT__ 2026-07-20 15:59:47,302 - [124794] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-20 15:59:47,371 - [124794] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 15:59:47,442 - [124794] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.SubWOIssueRepairLabor: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:59:47,769 - [124794] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceAuto.SubWOIssueRepairLabor - __SPLIT__ 2026-07-20 15:59:48,759 - [124794] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceAuto.SubWOIssueRepairLabor in 1 batches - __SPLIT__ 2026-07-20 15:59:48,826 - [124794] - 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 = 150702... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:59:49,158 - [124794] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 15:59:49,233 - [124794] - src.utils.log - INFO - Size of Transaction: 1 - __SPLIT__ 2026-07-20 15:59:49,304 - [124794] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:59:49,769 - [124794] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-07-20 15:59:50,763 - [124794] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-07-20 15:59:51,005 - [124794] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-07-20 15:59:51,070 - [124794] - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionId, ModifiedBy, TransactionDate as InvoiceDate from Billing.[Transaction] t WHERE t.ModifiedBy = 12345678910 and t.CompanyId = 133 AND t.TransactionType ='Invoice' AND t.CreatedDate = '2026-07-20 11:59:49.228';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:59:51,497 - [124794] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 15:59:51,562 - [124794] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150702;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:59:51,893 - [124794] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 15:59:51,967 - [124794] - src.utils.log - INFO - πŸ“ Executing: UPDATE Billing.[Transaction] SET ModifiedBy = NULL WHERE ModifiedBy = 12345678910 AND CreatedDate = '2026-07-20 11:59:49.228'; ... (Thread: ThreadPoolExecutor-67_0) - __SPLIT__ 2026-07-20 15:59:52,862 - [124794] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-20 15:59:52,938 - [124794] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 15:59:53,009 - [124794] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:59:53,349 - [124794] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into Billing.Invoice - __SPLIT__ 2026-07-20 15:59:54,343 - [124794] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-07-20 15:59:54,405 - [124794] - src.utils.log - INFO - πŸ” Fetching data: SELECT InvoiceId, WorkOrderNo FROM Billing.Invoice i WHERE i.WorkOrderNo = '1428851'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:59:55,306 - [124794] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 15:59:55,378 - [124794] - 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 = 150702 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:59:55,707 - [124794] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 15:59:55,770 - [124794] - 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 = 150702 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:59:56,102 - [124794] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 15:59:56,164 - [124794] - 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 = 150702 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:59:56,517 - [124794] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 15:59:56,577 - [124794] - 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 = 150702 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:59:56,948 - [124794] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 15:59:57,030 - [124794] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150702;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:59:57,358 - [124794] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 15:59:57,432 - [124794] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId, AppliedDiscountAmt as AppliedDiscountAmount,IsActive ,ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 150702;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:59:57,759 - [124794] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 15:59:57,820 - [124794] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId,IsActive,DiscountAmount, IsDiscountPercent,DiscountPercent,DiscountDescription , ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 150702;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:59:58,150 - [124794] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 15:59:58,223 - [124794] - src.utils.log - INFO - Sequential Insertion in invoice tables begin - __SPLIT__ 2026-07-20 15:59:58,285 - [124794] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.AccountDiscountSetup: - __SPLIT__ 2026-07-20 15:59:58,351 - [124794] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 15:59:58,417 - [124794] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceCharges: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 15:59:58,750 - [124794] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into Billing.InvoiceCharges - __SPLIT__ 2026-07-20 15:59:59,741 - [124794] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into Billing.InvoiceCharges in 1 batches - __SPLIT__ 2026-07-20 15:59:59,798 - [124794] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.DiscountApplied: - __SPLIT__ 2026-07-20 15:59:59,853 - [124794] - src.utils.log - INFO - Invoice Publish Done - __SPLIT__ 2026-07-20 15:59:59,915 - [124794] - src.utils.log - INFO - Updating Next GenerationDate - __SPLIT__ 2026-07-20 15:59:59,982 - [124794] - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, MAX(NextWorkOrderGenerationDate) AS MaxNextWorkOrderGeneration FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 124794 GROUP BY ServiceSetupId; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:00:00,360 - [124794] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 16:00:00,431 - [124794] - src.utils.log - INFO - πŸ”„ Updating next gen date sequentially: inside update_next_workorder_generation - __SPLIT__ 2026-07-20 16:00:00,626 - [124794] - src.utils.log - INFO - πŸ›  Creating temp table #tbl_932a12040a - __SPLIT__ 2026-07-20 16:00:01,011 - [124794] - src.utils.log - INFO - πŸ“Œ Bulk inserting 1 rows into #tbl_932a12040a - __SPLIT__ 2026-07-20 16:00:01,346 - [124794] - src.utils.log - INFO - πŸ” Running MERGE update to apply changes - __SPLIT__ 2026-07-20 16:00:01,582 - [124794] - src.utils.log - INFO - βœ” SQL reported affected rows: 1 - __SPLIT__ 2026-07-20 16:00:01,806 - [124794] - src.utils.log - INFO - πŸ” Verified successfully updated 1 rows via #tbl_932a12040a - __SPLIT__ 2026-07-20 16:00:01,895 - [124794] - src.utils.log - INFO - πŸŽ‰ Successfully updated NextGenerationDate using temp table #tbl_932a12040a - __SPLIT__ 2026-07-20 16:00:01,973 - [124794] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 124794 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:00:02,308 - [124794] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 16:00:02,375 - [124794] - src.utils.log - INFO - Sequential deletion from temp tables begin - __SPLIT__ 2026-07-20 16:00:02,440 - [124794] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId = 3683604 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:00:02,905 - [124794] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 16:00:02,980 - [124794] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId = 3683604 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:00:03,388 - [124794] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 16:00:03,457 - [124794] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId = 3683604 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:00:03,793 - [124794] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 16:00:03,861 - [124794] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId = 3683604 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:00:04,268 - [124794] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 16:00:04,341 - [124794] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId = 3683604 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:00:04,682 - [124794] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 16:00:04,748 - [124794] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 3683604 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:00:05,083 - [124794] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 16:00:05,205 - [124794] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId = 3683604 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:00:05,536 - [124794] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 16:00:05,597 - [124794] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 3683604 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:00:05,974 - [124794] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 16:00:06,043 - [124794] - src.utils.log - INFO - Work order published ids: (3683604,) - __SPLIT__ 2026-07-20 16:00:06,111 - [124794] - src.utils.log - INFO - Time took to perform operation in publishing [124794]: 47.68 - __SPLIT__ 2026-07-20 16:00:06,176 - [124794] - src.utils.log - INFO - Publish Completed for GenerateWorkOrderHistoryId: [124794] - __SPLIT__ 2026-07-20 16:00:06,233 - [124794] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-07-20 12:00:06.043' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124794;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:00:06,566 - [124794] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-20 16:23:15,747 - 124795 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=124795 - __SPLIT__ 2026-07-20 16:23:15,898 - 124795 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 124795 - __SPLIT__ 2026-07-20 16:23:15,968 - 124795 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-20 16:23:16,036 - 124795 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:23:18,194 - 124795 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 16:23:18,268 - 124795 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-07-20 16:23:18,344 - 124795 - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-07-20 16:23:18,417 - 124795 - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-07-20 16:23:18,494 - 124795 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 124795;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:23:20,471 - 124795 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-20 16:23:20,549 - 124795 - 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 = 124795), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 124795), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 124795 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-07-20 16:23:20,950 - 124795 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 16:23:21,024 - 124795 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 124795;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:23:21,376 - 124795 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 16:23:21,450 - 124795 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-07-20 16:23:21,532 - 124795 - src.utils.log - INFO - πŸ” Fetching data: SELECT fsd.IntervalDays, fs.CreatedDate ,f.FrequencyId , fs.FrequencyScheduleId, f.[SysName], f.FrequencyValue, f.YearlyOccurrence , fs.ScheduleFormat,fsd.Days, fsd.Weeks, fsd.Months,fsc.[Month] as sch_months, fsd.StartMonth , fsd.DateDay,fsd.DateMonth FROM [ServiceCore].[FrequencyMaster] f inner join [ServiceCore].[FrequencySchedule] fs on fs.FrequencyId = f.FrequencyId left join ServiceCore.FrequencyScheduleCycle fsc on fsc.FrequencyScheduleId = fs.FrequencyScheduleId left join [ServiceCore].[FrequencyScheduleDetail] fsd on fsd.FrequencyScheduleId = fs.FrequencyScheduleId WHERE fsd.FrequencyScheduleId = 14825... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:23:21,891 - 124795 - src.utils.log - INFO - βœ… Fetched 60 rows - __SPLIT__ 2026-07-20 16:23:21,968 - 124795 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-07-20 16:23:22,039 - 124795 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-07-20 16:23:22,113 - 124795 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150705;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:23:22,464 - 124795 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 16:23:22,573 - 124795 - 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-07-20 00:00:00' and ServiceDate <= '2026-08-31 00:00:00' and ServiceSetupId = 150705 and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:23:22,914 - 124795 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 16:23:23,553 - 124795 - src.utils.log - INFO - Generating work orders for setup: 150705 - __SPLIT__ 2026-07-20 16:23:23,639 - 124795 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 11437;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:23:23,982 - 124795 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 16:23:24,063 - 124795 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 11437;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:23:24,405 - 124795 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 16:23:24,506 - 124795 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-07-20 16:23:24,574 - 124795 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=133 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:23:24,909 - 124795 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 16:23:24,983 - 124795 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-07-20 16:23:25,046 - 124795 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-07-20 16:23:25,111 - 124795 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150705 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:23:25,485 - 124795 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 16:23:25,559 - 124795 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150705 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:23:25,947 - 124795 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 16:23:26,005 - 124795 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150705 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:23:26,354 - 124795 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 16:23:26,420 - 124795 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150705 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:23:26,804 - 124795 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 16:23:26,913 - 124795 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150705 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:23:27,292 - 124795 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 16:23:27,363 - 124795 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150705 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:23:27,716 - 124795 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 16:23:27,782 - 124795 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150705 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:23:28,129 - 124795 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 16:23:28,200 - 124795 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150705 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:23:28,658 - 124795 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 16:23:28,729 - 124795 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 16:23:28,802 - 124795 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:23:29,179 - 124795 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-07-20 16:23:30,230 - 124795 - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-07-20 16:23:30,300 - 124795 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 2 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-07-16 14:51:40.406' and ServiceSetupId = 150705... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:23:30,680 - 124795 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-20 16:23:30,749 - 124795 - src.utils.log - INFO - Id's of work order inserted to DB: [3683623 3683624] - __SPLIT__ 2026-07-20 16:23:30,816 - 124795 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150705;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:23:31,161 - 124795 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 16:23:31,228 - 124795 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-07-20 16:23:31,297 - 124795 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId = 150705... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:23:31,639 - 124795 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 16:23:31,754 - 124795 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId = 150705... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:23:32,095 - 124795 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 16:23:32,158 - 124795 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId = 150705... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:23:32,501 - 124795 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 16:23:32,564 - 124795 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId = 150705... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:23:32,898 - 124795 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 16:23:32,965 - 124795 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId = 150705... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:23:33,303 - 124795 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 16:23:33,365 - 124795 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId = 150705;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:23:33,695 - 124795 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 16:23:33,752 - 124795 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId = 150705;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:23:34,089 - 124795 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 16:23:34,144 - 124795 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId = 150705;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:23:34,563 - 124795 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 16:23:34,622 - 124795 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId = 150705;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:23:34,956 - 124795 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 16:23:35,023 - 124795 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-07-20 16:23:35,083 - 124795 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-07-20 16:23:35,160 - 124795 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-07-20 16:23:35,216 - 124795 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.CommunicationPreferencesServiceReportNotification: - __SPLIT__ 2026-07-20 16:23:35,320 - 124795 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-07-20 16:23:35,377 - 124795 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 16:23:35,437 - 124795 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ('3683623', '3683624') ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:23:35,777 - 124795 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-20 16:23:35,841 - 124795 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.SetupAutoGenerationSourceMapping: 0 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:23:36,179 - 124795 - src.utils.log - INFO - βœ… All 0 rows inserted successfully into ServiceCore.SetupAutoGenerationSourceMapping in 0 batches - __SPLIT__ 2026-07-20 16:23:36,240 - 124795 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-07-20 16:23:36,304 - 124795 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationAppliedDiscount: - __SPLIT__ 2026-07-20 16:23:36,366 - 124795 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-07-20 16:23:36,427 - 124795 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 16:23:36,487 - 124795 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3683624, 3683623) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:23:36,822 - 124795 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-20 16:23:36,886 - 124795 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.SubWorkOrderAutoGeneration: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:23:37,233 - 124795 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.SubWorkOrderAutoGeneration - __SPLIT__ 2026-07-20 16:23:38,406 - 124795 - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.SubWorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-07-20 16:23:38,471 - 124795 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-07-20 16:23:38,533 - 124795 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: - __SPLIT__ 2026-07-20 16:23:38,592 - 124795 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-07-20 16:23:38,648 - 124795 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: - __SPLIT__ 2026-07-20 16:23:38,705 - 124795 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-07-20 16:23:38,824 - 124795 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCrews: - __SPLIT__ 2026-07-20 16:23:38,893 - 124795 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-07-20 16:23:38,995 - 124795 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationServices: - __SPLIT__ 2026-07-20 16:23:39,062 - 124795 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-07-20 16:23:39,136 - 124795 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 16:23:39,212 - 124795 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3683624, 3683623) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:23:39,552 - 124795 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-20 16:23:39,627 - 124795 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:23:39,979 - 124795 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-07-20 16:23:41,016 - 124795 - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-07-20 16:23:41,090 - 124795 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-07-20 16:23:41,156 - 124795 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 124795;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:23:41,496 - 124795 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-20 16:23:41,571 - 124795 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-07-20 16:23:41,646 - 124795 - src.utils.log - INFO - Time took to perform operation: 25.6 - __SPLIT__ 2026-07-20 16:23:55,304 - [124795] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[3683623] user_id=43135 company_id=133 project_id=[124795] publish_all=False - __SPLIT__ 2026-07-20 16:23:55,431 - [124795] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[3683623] user_id=43135 company_id=133 project_id=[124795] publish_all=False - __SPLIT__ 2026-07-20 16:23:55,502 - [124795] - src.utils.log - INFO - Sequential Work order publish in progress for GenerateWorkOrderHistoryId: [124795] - __SPLIT__ 2026-07-20 16:23:55,573 - [124795] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-20 16:23:55,647 - [124795] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:23:57,893 - [124795] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 16:23:57,962 - [124795] - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-07-20 16:23:58,031 - [124795] - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-07-20 16:23:58,106 - [124795] - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-07-20 16:23:58,183 - [124795] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'InProgress' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124795;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:24:00,074 - [124795] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-20 16:24:00,159 - [124795] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId = 3683623... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:24:00,489 - [124795] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 16:24:00,560 - [124795] - src.utils.log - INFO - Inside get_work_order_table - __SPLIT__ 2026-07-20 16:24:00,631 - [124795] - 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 = 150705 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:24:00,972 - [124795] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 16:24:01,043 - [124795] - 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 = 150705 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:24:01,383 - [124795] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 16:24:01,461 - [124795] - 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 = 150705 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:24:01,805 - [124795] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 16:24:01,898 - [124795] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder,BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:24:02,339 - [124795] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 16:24:02,411 - [124795] - 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-07-20 16:24:02,739 - [124795] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-20 16:24:02,800 - [124795] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder, BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:24:03,118 - [124795] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 16:24:03,179 - [124795] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 1 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 133 AND EnitityNumberType = 'WorkOrder'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:24:03,504 - [124795] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 16:24:03,562 - [124795] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 1 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 133 AND EnitityNumberType = 'Invoice'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:24:03,880 - [124795] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 16:24:03,942 - [124795] - 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 = 150705... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:24:04,277 - [124795] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 16:24:04,340 - [124795] - src.utils.log - INFO - πŸ” Fetching data: SELECT x.CompanyId FROM CRM.CompanyMaster x WHERE CompanyKey = 'abcdallas';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:24:04,670 - [124795] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 16:24:04,743 - [124795] - src.utils.log - INFO - πŸ” Fetching data: SELECT CollectionStatus,IsHold,AccountNo FROM CRM.Account a WHERE a.AccountNo = '15022' and a.CompanyId = 121;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:24:05,067 - [124795] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 16:24:05,135 - [124795] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderNo FROM ServiceCore.WorkOrder WHERE WorkOrderNo = '1428852' AND CompanyId = 133 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:24:05,456 - [124795] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 16:24:05,524 - [124795] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrder (skip triggers): 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:24:06,011 - [124795] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrder (triggers skipped) - __SPLIT__ 2026-07-20 16:24:07,008 - [124795] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrder in 1 batches (triggers skipped) - __SPLIT__ 2026-07-20 16:24:07,256 - [124795] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-07-20 16:24:07,324 - [124795] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.ServiceSetup SET IsInitialWoGenerated = 1 WHERE CompanyId = 133 AND ServiceSetupId = 150705;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:24:07,671 - [124795] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-20 16:24:07,734 - [124795] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkorderId, WorkOrderNo FROM ServiceCore.WorkOrder wo WHERE wo.WorkOrderNo = '1428852' AND wo.AccountNumber = '15022' AND wo.CompanyId = 133 ... (Thread: ThreadPoolExecutor-17_0) - __SPLIT__ 2026-07-20 16:24:08,067 - [124795] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 16:24:08,137 - [124795] - src.utils.log - INFO - Sequential fetching temp table records - __SPLIT__ 2026-07-20 16:24:08,204 - [124795] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationServices woag WHERE woag.WorkOrderAutoGenerationId = 3683623... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:24:08,562 - [124795] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 16:24:08,629 - [124795] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SubWorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId = 3683623... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:24:08,964 - [124795] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 16:24:09,032 - [124795] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationCrews woag WHERE woag.WorkOrderAutoGenerationId = 3683623... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:24:09,382 - [124795] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 16:24:09,452 - [124795] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationSalesPersonCommission woag WHERE woag.WorkOrderAutoGenerationId = 3683623... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:24:09,778 - [124795] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 16:24:09,845 - [124795] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupAutoGenerationSourceMapping woag WHERE woag.WorkOrderAutoGenerationId = 3683623... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:24:10,179 - [124795] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 16:24:10,248 - [124795] - 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 = 3683623... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:24:10,593 - [124795] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 16:24:10,656 - [124795] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from CRM.LeadNote woag WHERE woag.RefId = 3683623 and woag.RefType = 'TempWorkorder';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:24:10,982 - [124795] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 16:24:11,097 - [124795] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment woagca WHERE woagca.WorkOrderAutoGenerationId = 3683623;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:24:11,452 - [124795] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 16:24:11,523 - [124795] - src.utils.log - INFO - Updating temp tables - __SPLIT__ 2026-07-20 16:24:11,608 - [124795] - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyKey FROM Common.CompanyMaster cm WHERE CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:24:11,933 - [124795] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 16:24:11,997 - [124795] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 133 AND EnitityNumberType in ('SubWorkOrder'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:24:12,328 - [124795] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 16:24:12,398 - [124795] - src.utils.log - INFO - πŸ“ Executing: UPDATE Common.GenerateNumberConfig SET NextNumber = '22898' WHERE CompanyId = 133 AND EnitityNumberType in ('SubWorkOrder');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:24:12,735 - [124795] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-20 16:24:12,808 - [124795] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 16:24:12,875 - [124795] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishHistory: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:24:13,224 - [124795] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderAutoGenerationPublishHistory - __SPLIT__ 2026-07-20 16:24:14,213 - [124795] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishHistory in 1 batches - __SPLIT__ 2026-07-20 16:24:14,286 - [124795] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationPublishHistoryId, WorkOrderNo, ServiceSetupId FROM ServiceCore.WorkOrderAutoGenerationPublishHistory WHERE ServiceSetupId = 150705 AND WorkOrderNo = '4422464' AND GenerateWorkOrderHistoryId = 124795; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:24:14,777 - [124795] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 16:24:14,851 - [124795] - src.utils.log - INFO - Sequential Insertion in work order tables begin - __SPLIT__ 2026-07-20 16:24:14,926 - [124795] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 16:24:14,991 - [124795] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderServices: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:24:15,326 - [124795] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderServices - __SPLIT__ 2026-07-20 16:24:16,307 - [124795] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderServices in 1 batches - __SPLIT__ 2026-07-20 16:24:16,418 - [124795] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderAppliedDiscount: - __SPLIT__ 2026-07-20 16:24:16,478 - [124795] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderSalesPersonCommission: - __SPLIT__ 2026-07-20 16:24:16,545 - [124795] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderCommissionAdjustment: - __SPLIT__ 2026-07-20 16:24:16,606 - [124795] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderCrew: - __SPLIT__ 2026-07-20 16:24:16,668 - [124795] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkorderSourceMapping: - __SPLIT__ 2026-07-20 16:24:16,732 - [124795] - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-07-20 16:24:16,801 - [124795] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 16:24:16,864 - [124795] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishServices: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:24:17,192 - [124795] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderAutoGenerationPublishServices - __SPLIT__ 2026-07-20 16:24:18,166 - [124795] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishServices in 1 batches - __SPLIT__ 2026-07-20 16:24:18,235 - [124795] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 16:24:18,304 - [124795] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.SubWorkOrder: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:24:18,641 - [124795] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.SubWorkOrder - __SPLIT__ 2026-07-20 16:24:19,754 - [124795] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.SubWorkOrder in 1 batches - __SPLIT__ 2026-07-20 16:24:19,831 - [124795] - src.utils.log - INFO - πŸ” Fetching data: Select * From ServiceCore.SubWorkOrder where WorkOrderId = 2159139... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:24:20,180 - [124795] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 16:24:20,258 - [124795] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 16:24:20,325 - [124795] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.subWorkOrderIssue: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:24:20,655 - [124795] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceAuto.subWorkOrderIssue - __SPLIT__ 2026-07-20 16:24:21,497 - [124795] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceAuto.subWorkOrderIssue in 1 batches - __SPLIT__ 2026-07-20 16:24:21,614 - [124795] - src.utils.log - INFO - πŸ” Fetching data: Select SubWorkOrderIssueId, SubWorkOrderId, ModifiedBy From ServiceAuto.subWorkOrderIssue where SubWorkOrderId = 230497 and ModifiedBy = 999999999 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:24:21,940 - [124795] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 16:24:22,006 - [124795] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceAuto.subWorkOrderIssue SET ModifiedBy = 'abcdallas' WHERE ModifiedBy = '999999999'; ... (Thread: ThreadPoolExecutor-18_0) - __SPLIT__ 2026-07-20 16:24:22,370 - [124795] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-20 16:24:22,445 - [124795] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 16:24:22,514 - [124795] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.subWOIssueRepair: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:24:22,842 - [124795] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceAuto.subWOIssueRepair - __SPLIT__ 2026-07-20 16:24:23,701 - [124795] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceAuto.subWOIssueRepair in 1 batches - __SPLIT__ 2026-07-20 16:24:23,768 - [124795] - src.utils.log - INFO - πŸ” Fetching data: Select IssueRepairId, ModifiedBy From ServiceAuto.subWOIssueRepair where SubWorkOrderIssueId = 192688... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:24:24,093 - [124795] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 16:24:24,155 - [124795] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceAuto.subWOIssueRepair SET ModifiedBy = 'abcdallas' WHERE ModifiedBy = '0___TMP___192688' AND CreatedDate = '2026-07-20 12:24:20.256'; ... (Thread: ThreadPoolExecutor-19_0) - __SPLIT__ 2026-07-20 16:24:24,495 - [124795] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-20 16:24:24,568 - [124795] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 16:24:24,636 - [124795] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.SubWOIssueRepairLabor: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:24:24,967 - [124795] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceAuto.SubWOIssueRepairLabor - __SPLIT__ 2026-07-20 16:24:25,955 - [124795] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceAuto.SubWOIssueRepairLabor in 1 batches - __SPLIT__ 2026-07-20 16:24:26,021 - [124795] - 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 = 150705... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:24:26,352 - [124795] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 16:24:26,423 - [124795] - src.utils.log - INFO - Size of Transaction: 1 - __SPLIT__ 2026-07-20 16:24:26,492 - [124795] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:24:27,005 - [124795] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-07-20 16:24:27,987 - [124795] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-07-20 16:24:28,177 - [124795] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-07-20 16:24:28,244 - [124795] - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionId, ModifiedBy, TransactionDate as InvoiceDate from Billing.[Transaction] t WHERE t.ModifiedBy = 12345678910 and t.CompanyId = 133 AND t.TransactionType ='Invoice' AND t.CreatedDate = '2026-07-20 12:24:26.418';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:24:28,667 - [124795] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 16:24:28,731 - [124795] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150705;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:24:29,063 - [124795] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 16:24:29,143 - [124795] - src.utils.log - INFO - πŸ“ Executing: UPDATE Billing.[Transaction] SET ModifiedBy = NULL WHERE ModifiedBy = 12345678910 AND CreatedDate = '2026-07-20 12:24:26.418'; ... (Thread: ThreadPoolExecutor-20_0) - __SPLIT__ 2026-07-20 16:24:30,032 - [124795] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-20 16:24:30,101 - [124795] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 16:24:30,169 - [124795] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:24:30,503 - [124795] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into Billing.Invoice - __SPLIT__ 2026-07-20 16:24:31,487 - [124795] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-07-20 16:24:31,553 - [124795] - src.utils.log - INFO - πŸ” Fetching data: SELECT InvoiceId, WorkOrderNo FROM Billing.Invoice i WHERE i.WorkOrderNo = '1428852'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:24:32,491 - [124795] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 16:24:32,568 - [124795] - 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 = 150705 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:24:32,892 - [124795] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 16:24:32,955 - [124795] - 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 = 150705 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:24:33,283 - [124795] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 16:24:33,348 - [124795] - 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 = 150705 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:24:33,728 - [124795] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 16:24:33,794 - [124795] - 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 = 150705 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:24:34,133 - [124795] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 16:24:34,220 - [124795] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId, AppliedDiscountAmt as AppliedDiscountAmount,IsActive ,ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 150705;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:24:34,549 - [124795] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 16:24:34,622 - [124795] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId,IsActive,DiscountAmount, IsDiscountPercent,DiscountPercent,DiscountDescription , ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 150705;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:24:34,953 - [124795] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 16:24:35,026 - [124795] - src.utils.log - INFO - Sequential Insertion in invoice tables begin - __SPLIT__ 2026-07-20 16:24:35,101 - [124795] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.AccountDiscountSetup: - __SPLIT__ 2026-07-20 16:24:35,166 - [124795] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.InvoiceCharges: - __SPLIT__ 2026-07-20 16:24:35,230 - [124795] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.DiscountApplied: - __SPLIT__ 2026-07-20 16:24:35,298 - [124795] - src.utils.log - INFO - Invoice Publish Done - __SPLIT__ 2026-07-20 16:24:35,367 - [124795] - src.utils.log - INFO - Updating Next GenerationDate - __SPLIT__ 2026-07-20 16:24:35,439 - [124795] - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, MAX(NextWorkOrderGenerationDate) AS MaxNextWorkOrderGeneration FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 124795 GROUP BY ServiceSetupId; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:24:35,768 - [124795] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 16:24:35,844 - [124795] - src.utils.log - INFO - πŸ”„ Updating next gen date sequentially: inside update_next_workorder_generation - __SPLIT__ 2026-07-20 16:24:36,052 - [124795] - src.utils.log - INFO - πŸ›  Creating temp table #tbl_f488518ec8 - __SPLIT__ 2026-07-20 16:24:36,385 - [124795] - src.utils.log - INFO - πŸ“Œ Bulk inserting 1 rows into #tbl_f488518ec8 - __SPLIT__ 2026-07-20 16:24:36,715 - [124795] - src.utils.log - INFO - πŸ” Running MERGE update to apply changes - __SPLIT__ 2026-07-20 16:24:36,919 - [124795] - src.utils.log - INFO - βœ” SQL reported affected rows: 1 - __SPLIT__ 2026-07-20 16:24:37,167 - [124795] - src.utils.log - INFO - πŸ” Verified successfully updated 1 rows via #tbl_f488518ec8 - __SPLIT__ 2026-07-20 16:24:37,227 - [124795] - src.utils.log - INFO - πŸŽ‰ Successfully updated NextGenerationDate using temp table #tbl_f488518ec8 - __SPLIT__ 2026-07-20 16:24:37,287 - [124795] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 124795 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:24:37,607 - [124795] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 16:24:37,670 - [124795] - src.utils.log - INFO - Sequential deletion from temp tables begin - __SPLIT__ 2026-07-20 16:24:37,723 - [124795] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId = 3683623 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:24:38,173 - [124795] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 16:24:38,233 - [124795] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId = 3683623 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:24:38,623 - [124795] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 16:24:38,676 - [124795] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId = 3683623 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:24:38,994 - [124795] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 16:24:39,051 - [124795] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId = 3683623 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:24:39,434 - [124795] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 16:24:39,489 - [124795] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId = 3683623 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:24:39,801 - [124795] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 16:24:39,864 - [124795] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 3683623 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:24:40,187 - [124795] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 16:24:40,243 - [124795] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId = 3683623 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:24:40,556 - [124795] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 16:24:40,606 - [124795] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 3683623 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:24:41,030 - [124795] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 16:24:41,101 - [124795] - src.utils.log - INFO - Work order published ids: (3683623,) - __SPLIT__ 2026-07-20 16:24:41,177 - [124795] - src.utils.log - INFO - Time took to perform operation in publishing [124795]: 45.6 - __SPLIT__ 2026-07-20 16:24:41,247 - [124795] - src.utils.log - INFO - Publish Completed for GenerateWorkOrderHistoryId: [124795] - __SPLIT__ 2026-07-20 16:24:41,319 - [124795] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-07-20 12:24:41.101' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124795;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:24:41,649 - [124795] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-20 16:36:47,858 - 124796 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=124796 - __SPLIT__ 2026-07-20 16:36:47,969 - 124796 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 124796 - __SPLIT__ 2026-07-20 16:36:48,031 - 124796 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-20 16:36:48,104 - 124796 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:36:50,353 - 124796 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 16:36:50,422 - 124796 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-07-20 16:36:50,489 - 124796 - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-07-20 16:36:50,559 - 124796 - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-07-20 16:36:50,622 - 124796 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 124796;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:36:52,538 - 124796 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-20 16:36:52,614 - 124796 - 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 = 124796), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 124796), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 124796 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-07-20 16:36:52,981 - 124796 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 16:36:53,039 - 124796 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 124796;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:36:53,361 - 124796 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 16:36:53,431 - 124796 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-07-20 16:36:53,502 - 124796 - 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 = 14632... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:36:53,844 - 124796 - src.utils.log - INFO - βœ… Fetched 60 rows - __SPLIT__ 2026-07-20 16:36:53,908 - 124796 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-07-20 16:36:53,978 - 124796 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-07-20 16:36:54,038 - 124796 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150706;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:36:54,370 - 124796 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 16:36:54,502 - 124796 - 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-07-20 00:00:00' and ServiceDate <= '2026-08-31 00:00:00' and ServiceSetupId = 150706 and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:36:54,844 - 124796 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 16:36:55,466 - 124796 - src.utils.log - INFO - Generating work orders for setup: 150706 - __SPLIT__ 2026-07-20 16:36:55,552 - 124796 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 1132;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:36:55,884 - 124796 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 16:36:55,964 - 124796 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 1132;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:36:56,302 - 124796 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 16:36:56,415 - 124796 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-07-20 16:36:56,498 - 124796 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=133 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:36:56,833 - 124796 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 16:36:56,903 - 124796 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-07-20 16:36:56,970 - 124796 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-07-20 16:36:57,046 - 124796 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150706 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:36:57,429 - 124796 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 16:36:57,502 - 124796 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150706 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:36:57,890 - 124796 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 16:36:57,964 - 124796 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150706 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:36:58,311 - 124796 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 16:36:58,383 - 124796 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150706 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:36:58,767 - 124796 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 16:36:58,879 - 124796 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150706 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:36:59,259 - 124796 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 16:36:59,320 - 124796 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150706 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:36:59,658 - 124796 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 16:36:59,721 - 124796 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150706 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:37:00,066 - 124796 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 16:37:00,137 - 124796 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150706 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:37:00,601 - 124796 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 16:37:00,672 - 124796 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 16:37:00,736 - 124796 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:37:01,097 - 124796 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-07-20 16:37:02,119 - 124796 - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-07-20 16:37:02,187 - 124796 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 2 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-07-16 14:51:40.778' and ServiceSetupId = 150706... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:37:02,558 - 124796 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-20 16:37:02,623 - 124796 - src.utils.log - INFO - Id's of work order inserted to DB: [3683625 3683626] - __SPLIT__ 2026-07-20 16:37:02,687 - 124796 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150706;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:37:03,020 - 124796 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 16:37:03,083 - 124796 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-07-20 16:37:03,147 - 124796 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId = 150706... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:37:03,483 - 124796 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 16:37:03,713 - 124796 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId = 150706... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:37:04,057 - 124796 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 16:37:04,132 - 124796 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId = 150706... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:37:04,475 - 124796 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 16:37:04,563 - 124796 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId = 150706... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:37:04,902 - 124796 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 16:37:04,976 - 124796 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId = 150706... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:37:05,312 - 124796 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 16:37:05,385 - 124796 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId = 150706;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:37:05,719 - 124796 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 16:37:05,799 - 124796 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId = 150706;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:37:06,128 - 124796 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 16:37:06,201 - 124796 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId = 150706;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:37:06,621 - 124796 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 16:37:06,693 - 124796 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId = 150706;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:37:07,038 - 124796 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 16:37:07,134 - 124796 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-07-20 16:37:07,228 - 124796 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-07-20 16:37:07,300 - 124796 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-07-20 16:37:07,381 - 124796 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.CommunicationPreferencesServiceReportNotification: - __SPLIT__ 2026-07-20 16:37:07,504 - 124796 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-07-20 16:37:07,573 - 124796 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 16:37:07,643 - 124796 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ('3683626', '3683625') ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:37:07,978 - 124796 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-20 16:37:08,052 - 124796 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.SetupAutoGenerationSourceMapping: 0 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:37:08,390 - 124796 - src.utils.log - INFO - βœ… All 0 rows inserted successfully into ServiceCore.SetupAutoGenerationSourceMapping in 0 batches - __SPLIT__ 2026-07-20 16:37:08,465 - 124796 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-07-20 16:37:08,540 - 124796 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationAppliedDiscount: - __SPLIT__ 2026-07-20 16:37:08,613 - 124796 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-07-20 16:37:08,685 - 124796 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 16:37:08,762 - 124796 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3683625, 3683626) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:37:09,118 - 124796 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-20 16:37:09,195 - 124796 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.SubWorkOrderAutoGeneration: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:37:09,544 - 124796 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.SubWorkOrderAutoGeneration - __SPLIT__ 2026-07-20 16:37:10,720 - 124796 - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.SubWorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-07-20 16:37:10,791 - 124796 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-07-20 16:37:10,865 - 124796 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: - __SPLIT__ 2026-07-20 16:37:10,955 - 124796 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-07-20 16:37:11,031 - 124796 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: - __SPLIT__ 2026-07-20 16:37:11,110 - 124796 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-07-20 16:37:11,223 - 124796 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCrews: - __SPLIT__ 2026-07-20 16:37:11,292 - 124796 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-07-20 16:37:11,361 - 124796 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationServices: - __SPLIT__ 2026-07-20 16:37:11,423 - 124796 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-07-20 16:37:11,492 - 124796 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 16:37:11,563 - 124796 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3683625, 3683626) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:37:11,894 - 124796 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-20 16:37:11,958 - 124796 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:37:12,299 - 124796 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-07-20 16:37:13,297 - 124796 - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-07-20 16:37:13,366 - 124796 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-07-20 16:37:13,422 - 124796 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 124796;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:37:13,742 - 124796 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-20 16:37:13,813 - 124796 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-07-20 16:37:13,879 - 124796 - src.utils.log - INFO - Time took to perform operation: 25.78 - __SPLIT__ 2026-07-20 16:37:26,017 - [124796] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[3683625, 3683626] user_id=43135 company_id=133 project_id=[124796] publish_all=False - __SPLIT__ 2026-07-20 16:37:26,127 - [124796] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[3683625, 3683626] user_id=43135 company_id=133 project_id=[124796] publish_all=False - __SPLIT__ 2026-07-20 16:37:26,184 - [124796] - src.utils.log - INFO - Sequential Work order publish in progress for GenerateWorkOrderHistoryId: [124796] - __SPLIT__ 2026-07-20 16:37:26,248 - [124796] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-20 16:37:26,313 - [124796] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:37:28,431 - [124796] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 16:37:28,486 - [124796] - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-07-20 16:37:28,538 - [124796] - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-07-20 16:37:28,593 - [124796] - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-07-20 16:37:28,645 - [124796] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'InProgress' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124796;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:37:30,530 - [124796] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-20 16:37:30,581 - [124796] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (3683625, 3683626)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:37:30,910 - [124796] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-20 16:37:30,969 - [124796] - src.utils.log - INFO - Inside get_work_order_table - __SPLIT__ 2026-07-20 16:37:31,032 - [124796] - 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 = 150706 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:37:31,362 - [124796] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 16:37:31,425 - [124796] - 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 = 150706 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:37:31,753 - [124796] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 16:37:31,815 - [124796] - 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 = 150706 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:37:32,136 - [124796] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 16:37:32,195 - [124796] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder,BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:37:32,580 - [124796] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 16:37:32,646 - [124796] - 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-07-20 16:37:32,978 - [124796] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-20 16:37:33,047 - [124796] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder, BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:37:33,376 - [124796] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 16:37:33,447 - [124796] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 2 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 133 AND EnitityNumberType = 'WorkOrder'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:37:33,774 - [124796] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 16:37:33,846 - [124796] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 2 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 133 AND EnitityNumberType = 'Invoice'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:37:34,184 - [124796] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 16:37:34,257 - [124796] - 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 = 150706... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:37:34,595 - [124796] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 16:37:34,671 - [124796] - src.utils.log - INFO - πŸ” Fetching data: SELECT x.CompanyId FROM CRM.CompanyMaster x WHERE CompanyKey = 'abcdallas';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:37:35,003 - [124796] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 16:37:35,077 - [124796] - src.utils.log - INFO - πŸ” Fetching data: SELECT CollectionStatus,IsHold,AccountNo FROM CRM.Account a WHERE a.AccountNo = '14999' and a.CompanyId = 121;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:37:35,406 - [124796] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 16:37:35,481 - [124796] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderNo FROM ServiceCore.WorkOrder WHERE WorkOrderNo IN ('1428853', '1428854') AND CompanyId = 133 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:37:35,821 - [124796] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 16:37:35,888 - [124796] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrder (skip triggers): 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:37:36,390 - [124796] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrder (triggers skipped) - __SPLIT__ 2026-07-20 16:37:37,420 - [124796] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrder in 1 batches (triggers skipped) - __SPLIT__ 2026-07-20 16:37:37,664 - [124796] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-07-20 16:37:37,730 - [124796] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.ServiceSetup SET IsInitialWoGenerated = 1 WHERE CompanyId = 133 AND ServiceSetupId = 150706;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:37:38,060 - [124796] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-20 16:37:38,131 - [124796] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkorderId, WorkOrderNo FROM ServiceCore.WorkOrder wo WHERE wo.WorkOrderNo IN ('1428853', '1428854') AND wo.AccountNumber = '14999' AND wo.CompanyId = 133 ... (Thread: ThreadPoolExecutor-7_0) - __SPLIT__ 2026-07-20 16:37:38,468 - [124796] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-20 16:37:38,539 - [124796] - src.utils.log - INFO - Sequential fetching temp table records - __SPLIT__ 2026-07-20 16:37:38,614 - [124796] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationServices woag WHERE woag.WorkOrderAutoGenerationId in (3683625, 3683626)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:37:38,985 - [124796] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-20 16:37:39,052 - [124796] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SubWorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (3683625, 3683626)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:37:39,387 - [124796] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-20 16:37:39,455 - [124796] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationCrews woag WHERE woag.WorkOrderAutoGenerationId in (3683625, 3683626)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:37:39,808 - [124796] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 16:37:39,906 - [124796] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationSalesPersonCommission woag WHERE woag.WorkOrderAutoGenerationId in (3683625, 3683626)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:37:40,240 - [124796] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 16:37:40,308 - [124796] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupAutoGenerationSourceMapping woag WHERE woag.WorkOrderAutoGenerationId in (3683625, 3683626)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:37:40,641 - [124796] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 16:37:40,713 - [124796] - 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 (3683625, 3683626)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:37:41,072 - [124796] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 16:37:41,143 - [124796] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from CRM.LeadNote woag WHERE woag.RefId in (3683625, 3683626) and woag.RefType = 'TempWorkorder';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:37:41,481 - [124796] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 16:37:41,607 - [124796] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment woagca WHERE woagca.WorkOrderAutoGenerationId in (3683625, 3683626);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:37:41,937 - [124796] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 16:37:41,997 - [124796] - src.utils.log - INFO - Updating temp tables - __SPLIT__ 2026-07-20 16:37:42,083 - [124796] - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyKey FROM Common.CompanyMaster cm WHERE CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:37:42,419 - [124796] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 16:37:42,487 - [124796] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 133 AND EnitityNumberType in ('SubWorkOrder'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:37:42,813 - [124796] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 16:37:42,879 - [124796] - src.utils.log - INFO - πŸ“ Executing: UPDATE Common.GenerateNumberConfig SET NextNumber = '22900' WHERE CompanyId = 133 AND EnitityNumberType in ('SubWorkOrder');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:37:43,214 - [124796] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-20 16:37:43,298 - [124796] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 16:37:43,363 - [124796] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishHistory: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:37:43,718 - [124796] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationPublishHistory - __SPLIT__ 2026-07-20 16:37:44,724 - [124796] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishHistory in 1 batches - __SPLIT__ 2026-07-20 16:37:44,793 - [124796] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationPublishHistoryId, WorkOrderNo, ServiceSetupId FROM ServiceCore.WorkOrderAutoGenerationPublishHistory WHERE ServiceSetupId = 150706 AND WorkOrderNo IN ('6484668', '4529570') AND GenerateWorkOrderHistoryId = 124796;... (Thread: ThreadPoolExecutor-8_0) - __SPLIT__ 2026-07-20 16:37:45,301 - [124796] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-20 16:37:45,371 - [124796] - src.utils.log - INFO - 🏁 Final merged rows: 2 - __SPLIT__ 2026-07-20 16:37:45,443 - [124796] - src.utils.log - INFO - Sequential Insertion in work order tables begin - __SPLIT__ 2026-07-20 16:37:45,518 - [124796] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 16:37:45,585 - [124796] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderServices: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:37:45,923 - [124796] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderServices - __SPLIT__ 2026-07-20 16:37:46,974 - [124796] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderServices in 1 batches - __SPLIT__ 2026-07-20 16:37:47,043 - [124796] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderAppliedDiscount: - __SPLIT__ 2026-07-20 16:37:47,118 - [124796] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderSalesPersonCommission: - __SPLIT__ 2026-07-20 16:37:47,185 - [124796] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderCommissionAdjustment: - __SPLIT__ 2026-07-20 16:37:47,245 - [124796] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderCrew: - __SPLIT__ 2026-07-20 16:37:47,319 - [124796] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkorderSourceMapping: - __SPLIT__ 2026-07-20 16:37:47,385 - [124796] - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-07-20 16:37:47,463 - [124796] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 16:37:47,536 - [124796] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishServices: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:37:47,876 - [124796] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationPublishServices - __SPLIT__ 2026-07-20 16:37:48,872 - [124796] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishServices in 1 batches - __SPLIT__ 2026-07-20 16:37:48,942 - [124796] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 16:37:49,012 - [124796] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.SubWorkOrder: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:37:49,364 - [124796] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.SubWorkOrder - __SPLIT__ 2026-07-20 16:37:50,506 - [124796] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.SubWorkOrder in 1 batches - __SPLIT__ 2026-07-20 16:37:50,578 - [124796] - src.utils.log - INFO - πŸ” Fetching data: Select * From ServiceCore.SubWorkOrder where WorkOrderId in (2159140, 2159141)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:37:50,923 - [124796] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-20 16:37:51,000 - [124796] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 16:37:51,064 - [124796] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.subWorkOrderIssue: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:37:51,401 - [124796] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceAuto.subWorkOrderIssue - __SPLIT__ 2026-07-20 16:37:52,313 - [124796] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceAuto.subWorkOrderIssue in 1 batches - __SPLIT__ 2026-07-20 16:37:52,404 - [124796] - src.utils.log - INFO - πŸ” Fetching data: Select SubWorkOrderIssueId, SubWorkOrderId, ModifiedBy From ServiceAuto.subWorkOrderIssue where SubWorkOrderId in (230498, 230499) and ModifiedBy in ('999999999', '1000000000')... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:37:52,735 - [124796] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-20 16:37:52,798 - [124796] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceAuto.subWorkOrderIssue SET ModifiedBy = 'abcdallas' WHERE ModifiedBy IN ('999999999', '1000000000'); ... (Thread: ThreadPoolExecutor-9_0) - __SPLIT__ 2026-07-20 16:37:53,158 - [124796] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-20 16:37:53,234 - [124796] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 16:37:53,299 - [124796] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.subWOIssueRepair: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:37:53,637 - [124796] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceAuto.subWOIssueRepair - __SPLIT__ 2026-07-20 16:37:54,502 - [124796] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceAuto.subWOIssueRepair in 1 batches - __SPLIT__ 2026-07-20 16:37:54,566 - [124796] - src.utils.log - INFO - πŸ” Fetching data: Select IssueRepairId, ModifiedBy From ServiceAuto.subWOIssueRepair where SubWorkOrderIssueId in (192690, 192691)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:37:54,887 - [124796] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-20 16:37:54,958 - [124796] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceAuto.subWOIssueRepair SET ModifiedBy = 'abcdallas' WHERE ModifiedBy IN ('0___TMP___192690', '0___TMP___192691') AND CreatedDate = '2026-07-20 12:37:50.998'; ... (Thread: ThreadPoolExecutor-10_0) - __SPLIT__ 2026-07-20 16:37:55,300 - [124796] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-20 16:37:55,378 - [124796] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 16:37:55,449 - [124796] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.SubWOIssueRepairLabor: 4 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:37:55,781 - [124796] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 4) into ServiceAuto.SubWOIssueRepairLabor - __SPLIT__ 2026-07-20 16:37:56,774 - [124796] - src.utils.log - INFO - βœ… All 4 rows inserted successfully into ServiceAuto.SubWOIssueRepairLabor in 1 batches - __SPLIT__ 2026-07-20 16:37:56,850 - [124796] - 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 = 150706... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:37:57,185 - [124796] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 16:37:57,260 - [124796] - src.utils.log - INFO - Size of Transaction: 2 - __SPLIT__ 2026-07-20 16:37:57,393 - [124796] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:37:57,880 - [124796] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-07-20 16:37:58,871 - [124796] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-07-20 16:37:59,076 - [124796] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-07-20 16:37:59,151 - [124796] - 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 = 133 AND t.TransactionType ='Invoice' AND t.CreatedDate = '2026-07-20 12:37:57.255';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:37:59,601 - [124796] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-20 16:37:59,677 - [124796] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150706;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:38:00,019 - [124796] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 16:38:00,113 - [124796] - src.utils.log - INFO - πŸ“ Executing: UPDATE Billing.[Transaction] SET ModifiedBy = NULL WHERE ModifiedBy IN (12345678910,12345678911) AND CreatedDate = '2026-07-20 12:37:57.255'; ... (Thread: ThreadPoolExecutor-11_0) - __SPLIT__ 2026-07-20 16:38:00,550 - [124796] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-20 16:38:00,641 - [124796] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 16:38:00,727 - [124796] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:38:01,078 - [124796] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.Invoice - __SPLIT__ 2026-07-20 16:38:02,082 - [124796] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-07-20 16:38:02,225 - [124796] - src.utils.log - INFO - πŸ” Fetching data: SELECT InvoiceId, WorkOrderNo FROM Billing.Invoice i WHERE i.WorkOrderNo in ('1428853', '1428854')... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:38:03,222 - [124796] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-20 16:38:03,312 - [124796] - 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 = 150706 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:38:03,667 - [124796] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 16:38:03,745 - [124796] - 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 = 150706 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:38:04,085 - [124796] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 16:38:04,201 - [124796] - 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 = 150706 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:38:04,527 - [124796] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 16:38:04,585 - [124796] - 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 = 150706 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:38:04,912 - [124796] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 16:38:04,989 - [124796] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150706;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:38:05,312 - [124796] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 16:38:05,422 - [124796] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId, AppliedDiscountAmt as AppliedDiscountAmount,IsActive ,ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 150706;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:38:05,745 - [124796] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 16:38:05,826 - [124796] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId,IsActive,DiscountAmount, IsDiscountPercent,DiscountPercent,DiscountDescription , ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 150706;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:38:06,154 - [124796] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 16:38:06,222 - [124796] - src.utils.log - INFO - Sequential Insertion in invoice tables begin - __SPLIT__ 2026-07-20 16:38:06,294 - [124796] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.AccountDiscountSetup: - __SPLIT__ 2026-07-20 16:38:06,357 - [124796] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 16:38:06,427 - [124796] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceCharges: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:38:06,765 - [124796] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.InvoiceCharges - __SPLIT__ 2026-07-20 16:38:07,753 - [124796] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.InvoiceCharges in 1 batches - __SPLIT__ 2026-07-20 16:38:07,823 - [124796] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.DiscountApplied: - __SPLIT__ 2026-07-20 16:38:07,885 - [124796] - src.utils.log - INFO - Invoice Publish Done - __SPLIT__ 2026-07-20 16:38:07,947 - [124796] - src.utils.log - INFO - Updating Next GenerationDate - __SPLIT__ 2026-07-20 16:38:08,014 - [124796] - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, MAX(NextWorkOrderGenerationDate) AS MaxNextWorkOrderGeneration FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 124796 GROUP BY ServiceSetupId; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:38:08,391 - [124796] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 16:38:08,460 - [124796] - src.utils.log - INFO - πŸ”„ Updating next gen date sequentially: inside update_next_workorder_generation - __SPLIT__ 2026-07-20 16:38:08,661 - [124796] - src.utils.log - INFO - πŸ›  Creating temp table #tbl_7de734ccac - __SPLIT__ 2026-07-20 16:38:08,992 - [124796] - src.utils.log - INFO - πŸ“Œ Bulk inserting 1 rows into #tbl_7de734ccac - __SPLIT__ 2026-07-20 16:38:09,319 - [124796] - src.utils.log - INFO - πŸ” Running MERGE update to apply changes - __SPLIT__ 2026-07-20 16:38:09,531 - [124796] - src.utils.log - INFO - βœ” SQL reported affected rows: 1 - __SPLIT__ 2026-07-20 16:38:09,737 - [124796] - src.utils.log - INFO - πŸ” Verified successfully updated 1 rows via #tbl_7de734ccac - __SPLIT__ 2026-07-20 16:38:09,807 - [124796] - src.utils.log - INFO - πŸŽ‰ Successfully updated NextGenerationDate using temp table #tbl_7de734ccac - __SPLIT__ 2026-07-20 16:38:09,870 - [124796] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 124796 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:38:10,195 - [124796] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 16:38:10,267 - [124796] - src.utils.log - INFO - Sequential deletion from temp tables begin - __SPLIT__ 2026-07-20 16:38:10,332 - [124796] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId in (3683625, 3683626) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:38:10,806 - [124796] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 16:38:10,865 - [124796] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId in (3683625, 3683626) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:38:11,280 - [124796] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 16:38:11,351 - [124796] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId in (3683625, 3683626) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:38:11,677 - [124796] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 16:38:11,739 - [124796] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId in (3683625, 3683626) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:38:12,152 - [124796] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 16:38:12,222 - [124796] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId in (3683625, 3683626) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:38:12,615 - [124796] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 16:38:12,688 - [124796] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (3683625, 3683626) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:38:13,020 - [124796] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 16:38:13,092 - [124796] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId in (3683625, 3683626) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:38:13,424 - [124796] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 16:38:13,491 - [124796] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (3683625, 3683626) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:38:13,906 - [124796] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 16:38:13,978 - [124796] - src.utils.log - INFO - Work order published ids: (3683625, 3683626) - __SPLIT__ 2026-07-20 16:38:14,043 - [124796] - src.utils.log - INFO - Time took to perform operation in publishing [124796]: 47.8 - __SPLIT__ 2026-07-20 16:38:14,117 - [124796] - src.utils.log - INFO - Publish Completed for GenerateWorkOrderHistoryId: [124796] - __SPLIT__ 2026-07-20 16:38:14,187 - [124796] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-07-20 12:38:13.978' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124796;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 16:38:14,521 - [124796] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-20 18:28:06,513 - [124799] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[3683634] user_id=43135 company_id=133 project_id=[124799] publish_all=False - __SPLIT__ 2026-07-20 18:28:06,661 - [124799] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[3683634] user_id=43135 company_id=133 project_id=[124799] publish_all=False - __SPLIT__ 2026-07-20 18:28:06,750 - [124799] - src.utils.log - INFO - Sequential Work order publish in progress for GenerateWorkOrderHistoryId: [124799] - __SPLIT__ 2026-07-20 18:28:06,828 - [124799] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-20 18:28:06,908 - [124799] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 18:28:09,128 - [124799] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 18:28:09,235 - [124799] - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-07-20 18:28:09,319 - [124799] - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-07-20 18:28:09,405 - [124799] - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-07-20 18:28:09,490 - [124799] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'InProgress' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124799;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 18:28:11,509 - [124799] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-20 18:28:11,583 - [124799] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId = 3683634... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 18:28:11,953 - [124799] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 18:28:12,038 - [124799] - src.utils.log - INFO - Inside get_work_order_table - __SPLIT__ 2026-07-20 18:28:12,121 - [124799] - 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 = 150707 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 18:28:12,510 - [124799] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 18:28:12,590 - [124799] - 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 = 150707 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 18:28:12,945 - [124799] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 18:28:13,027 - [124799] - 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 = 150707 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 18:28:13,391 - [124799] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 18:28:13,490 - [124799] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder,BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 18:28:13,886 - [124799] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 18:28:13,949 - [124799] - 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-07-20 18:28:13,931 - 124800 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=124800 - __SPLIT__ 2026-07-20 18:28:14,069 - 124800 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 124800 - __SPLIT__ 2026-07-20 18:28:14,156 - 124800 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-20 18:28:14,230 - 124800 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 18:28:14,306 - [124799] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-20 18:28:14,374 - [124799] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder, BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 18:28:14,723 - [124799] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 18:28:14,783 - [124799] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 1 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 133 AND EnitityNumberType = 'WorkOrder'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 18:28:15,128 - [124799] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 18:28:15,193 - [124799] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 1 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 133 AND EnitityNumberType = 'Invoice'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 18:28:15,536 - [124799] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 18:28:15,608 - [124799] - 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 = 150707... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 18:28:15,955 - [124799] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 18:28:16,024 - [124799] - src.utils.log - INFO - πŸ” Fetching data: SELECT x.CompanyId FROM CRM.CompanyMaster x WHERE CompanyKey = 'abcdallas';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 18:28:16,366 - [124799] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 18:28:16,430 - [124799] - src.utils.log - INFO - πŸ” Fetching data: SELECT CollectionStatus,IsHold,AccountNo FROM CRM.Account a WHERE a.AccountNo = '14999' and a.CompanyId = 121;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 18:28:16,489 - 124800 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 18:28:16,570 - 124800 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-07-20 18:28:16,650 - 124800 - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-07-20 18:28:16,738 - 124800 - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-07-20 18:28:16,773 - [124799] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 18:28:16,811 - 124800 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 124800;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 18:28:16,842 - [124799] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderNo FROM ServiceCore.WorkOrder WHERE WorkOrderNo = '1428857' AND CompanyId = 133 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 18:28:17,186 - [124799] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 18:28:17,250 - [124799] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrder (skip triggers): 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 18:28:17,786 - [124799] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrder (triggers skipped) - __SPLIT__ 2026-07-20 18:28:18,734 - 124800 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-20 18:28:18,807 - 124800 - 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 = 124800), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 124800), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 124800 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-07-20 18:28:18,990 - [124799] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrder in 1 batches (triggers skipped) - __SPLIT__ 2026-07-20 18:28:19,194 - 124800 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 18:28:19,261 - [124799] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-07-20 18:28:19,275 - 124800 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 124800;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 18:28:19,343 - [124799] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkorderId, WorkOrderNo FROM ServiceCore.WorkOrder wo WHERE wo.WorkOrderNo = '1428857' AND wo.AccountNumber = '14999' AND wo.CompanyId = 133 ... (Thread: ThreadPoolExecutor-68_0) - __SPLIT__ 2026-07-20 18:28:19,621 - 124800 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 18:28:19,693 - [124799] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 18:28:19,713 - 124800 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-07-20 18:28:19,767 - [124799] - src.utils.log - INFO - Sequential fetching temp table records - __SPLIT__ 2026-07-20 18:28:19,792 - 124800 - 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 = 14448... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 18:28:19,839 - [124799] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationServices woag WHERE woag.WorkOrderAutoGenerationId = 3683634... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 18:28:20,143 - 124800 - src.utils.log - INFO - βœ… Fetched 6 rows - __SPLIT__ 2026-07-20 18:28:20,226 - 124800 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-07-20 18:28:20,324 - 124800 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-07-20 18:28:20,408 - 124800 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150708;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 18:28:20,702 - [124799] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 18:28:20,777 - [124799] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SubWorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId = 3683634... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 18:28:20,749 - 124800 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 18:28:20,867 - 124800 - 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-07-20 00:00:00' and ServiceDate <= '2026-10-31 00:00:00' and ServiceSetupId = 150708 and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 18:28:21,126 - [124799] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 18:28:21,198 - [124799] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationCrews woag WHERE woag.WorkOrderAutoGenerationId = 3683634... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 18:28:21,201 - 124800 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 18:28:21,699 - [124799] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 18:28:21,771 - [124799] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationSalesPersonCommission woag WHERE woag.WorkOrderAutoGenerationId = 3683634... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 18:28:21,822 - 124800 - src.utils.log - INFO - Generating work orders for setup: 150708 - __SPLIT__ 2026-07-20 18:28:21,923 - 124800 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-07-20 18:28:21,995 - 124800 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-07-20 18:28:22,063 - 124800 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150708 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 18:28:22,122 - [124799] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 18:28:22,193 - [124799] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupAutoGenerationSourceMapping woag WHERE woag.WorkOrderAutoGenerationId = 3683634... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 18:28:22,468 - 124800 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 18:28:22,538 - 124800 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150708 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 18:28:22,560 - [124799] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 18:28:22,631 - [124799] - 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 = 3683634... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 18:28:22,928 - 124800 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 18:28:23,006 - 124800 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150708 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 18:28:23,318 - [124799] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 18:28:23,342 - 124800 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 18:28:23,391 - [124799] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from CRM.LeadNote woag WHERE woag.RefId = 3683634 and woag.RefType = 'TempWorkorder';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 18:28:23,416 - 124800 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150708 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 18:28:23,739 - [124799] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 18:28:23,808 - 124800 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 18:28:23,805 - [124799] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment woagca WHERE woagca.WorkOrderAutoGenerationId = 3683634;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 18:28:23,877 - 124800 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150708 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 18:28:24,155 - [124799] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 18:28:24,287 - [124799] - src.utils.log - INFO - Updating temp tables - __SPLIT__ 2026-07-20 18:28:24,330 - 124800 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 18:28:24,369 - [124799] - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyKey FROM Common.CompanyMaster cm WHERE CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 18:28:24,407 - 124800 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150708 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 18:28:24,732 - [124799] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 18:28:24,755 - 124800 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 18:28:24,820 - 124800 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150708 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 18:28:24,810 - [124799] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 133 AND EnitityNumberType in ('SubWorkOrder'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 18:28:25,157 - 124800 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 18:28:25,173 - [124799] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 18:28:25,257 - [124799] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 18:28:25,233 - 124800 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150708 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 18:28:25,327 - [124799] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishHistory: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 18:28:25,715 - [124799] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderAutoGenerationPublishHistory - __SPLIT__ 2026-07-20 18:28:25,825 - 124800 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 18:28:25,895 - 124800 - src.utils.log - INFO - No work order found in given range - __SPLIT__ 2026-07-20 18:28:25,971 - 124800 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Failed', WoGenErrorInfo ='No work orders generated with selected filters', WorkOrderStatusDateTime = '2026-07-20 14:28:25.971' WHERE GenerateWorkOrderHistoryId = 124800;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 18:28:26,311 - 124800 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-20 18:28:26,381 - 124800 - src.utils.log - INFO - Time took to perform operation: 12.23 - __SPLIT__ 2026-07-20 18:28:26,764 - [124799] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishHistory in 1 batches - __SPLIT__ 2026-07-20 18:28:26,837 - [124799] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationPublishHistoryId, WorkOrderNo, ServiceSetupId FROM ServiceCore.WorkOrderAutoGenerationPublishHistory WHERE ServiceSetupId = 150707 AND WorkOrderNo = '4463625' AND GenerateWorkOrderHistoryId = 124799; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 18:28:27,350 - [124799] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 18:28:27,436 - [124799] - src.utils.log - INFO - Sequential Insertion in work order tables begin - __SPLIT__ 2026-07-20 18:28:27,511 - [124799] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 18:28:27,577 - [124799] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderServices: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 18:28:27,956 - [124799] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderServices - __SPLIT__ 2026-07-20 18:28:29,078 - [124799] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderServices in 1 batches - __SPLIT__ 2026-07-20 18:28:29,156 - [124799] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderAppliedDiscount: - __SPLIT__ 2026-07-20 18:28:29,223 - [124799] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderSalesPersonCommission: - __SPLIT__ 2026-07-20 18:28:29,297 - [124799] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderCommissionAdjustment: - __SPLIT__ 2026-07-20 18:28:29,369 - [124799] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 18:28:29,493 - [124799] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderCrew: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 18:28:29,864 - [124799] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderCrew - __SPLIT__ 2026-07-20 18:28:30,911 - [124799] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderCrew in 1 batches - __SPLIT__ 2026-07-20 18:28:30,982 - [124799] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkorderSourceMapping: - __SPLIT__ 2026-07-20 18:28:31,047 - [124799] - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-07-20 18:28:31,117 - [124799] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 18:28:31,193 - [124799] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishServices: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 18:28:31,569 - [124799] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderAutoGenerationPublishServices - __SPLIT__ 2026-07-20 18:28:32,624 - [124799] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishServices in 1 batches - __SPLIT__ 2026-07-20 18:28:32,685 - [124799] - 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 = 150707... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 18:28:33,024 - [124799] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 18:28:33,100 - [124799] - src.utils.log - INFO - Size of Transaction: 1 - __SPLIT__ 2026-07-20 18:28:33,168 - [124799] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 18:28:33,674 - [124799] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-07-20 18:28:34,782 - [124799] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-07-20 18:28:34,992 - [124799] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-07-20 18:28:35,062 - [124799] - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionId, ModifiedBy, TransactionDate as InvoiceDate from Billing.[Transaction] t WHERE t.ModifiedBy = 12345678910 and t.CompanyId = 133 AND t.TransactionType ='Invoice' AND t.CreatedDate = '2026-07-20 14:28:33.096';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 18:28:37,178 - [124799] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[3683634] user_id=43135 company_id=133 project_id=[124799] publish_all=False - __SPLIT__ 2026-07-20 18:28:42,244 - [124799] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 18:28:42,316 - [124799] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150707;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 18:28:42,698 - [124799] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 18:28:42,811 - [124799] - src.utils.log - INFO - πŸ“ Executing: UPDATE Billing.[Transaction] SET ModifiedBy = NULL WHERE ModifiedBy = 12345678910 AND CreatedDate = '2026-07-20 14:28:33.096'; ... (Thread: ThreadPoolExecutor-69_0) - __SPLIT__ 2026-07-20 18:28:43,725 - [124799] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-20 18:28:43,794 - [124799] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 18:28:43,860 - [124799] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 18:28:44,234 - [124799] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into Billing.Invoice - __SPLIT__ 2026-07-20 18:28:45,316 - [124799] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-07-20 18:28:45,387 - [124799] - src.utils.log - INFO - πŸ” Fetching data: SELECT InvoiceId, WorkOrderNo FROM Billing.Invoice i WHERE i.WorkOrderNo = '1428857'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 18:28:46,302 - [124799] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 18:28:46,371 - [124799] - 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 = 150707 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 18:28:46,721 - [124799] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 18:28:46,786 - [124799] - 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 = 150707 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 18:28:47,132 - [124799] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 18:28:47,196 - [124799] - 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 = 150707 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 18:28:47,545 - [124799] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 18:28:47,610 - [124799] - 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 = 150707 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 18:28:47,952 - [124799] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 18:28:48,033 - [124799] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150707;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 18:28:48,378 - [124799] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 18:28:48,446 - [124799] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId, AppliedDiscountAmt as AppliedDiscountAmount,IsActive ,ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 150707;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 18:28:48,842 - [124799] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 18:28:48,921 - [124799] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId,IsActive,DiscountAmount, IsDiscountPercent,DiscountPercent,DiscountDescription , ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 150707;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 18:28:49,271 - [124799] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 18:28:49,349 - [124799] - src.utils.log - INFO - Sequential Insertion in invoice tables begin - __SPLIT__ 2026-07-20 18:28:49,422 - [124799] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.AccountDiscountSetup: - __SPLIT__ 2026-07-20 18:28:49,493 - [124799] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 18:28:49,570 - [124799] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceCharges: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 18:28:49,946 - [124799] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into Billing.InvoiceCharges - __SPLIT__ 2026-07-20 18:28:51,031 - [124799] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into Billing.InvoiceCharges in 1 batches - __SPLIT__ 2026-07-20 18:28:51,102 - [124799] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.DiscountApplied: - __SPLIT__ 2026-07-20 18:28:51,176 - [124799] - src.utils.log - INFO - Invoice Publish Done - __SPLIT__ 2026-07-20 18:28:51,249 - [124799] - src.utils.log - INFO - Updating Next GenerationDate - __SPLIT__ 2026-07-20 18:28:51,323 - [124799] - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, MAX(NextWorkOrderGenerationDate) AS MaxNextWorkOrderGeneration FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 124799 GROUP BY ServiceSetupId; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 18:28:51,678 - [124799] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 18:28:51,761 - [124799] - src.utils.log - INFO - πŸ”„ Updating next gen date sequentially: inside update_next_workorder_generation - __SPLIT__ 2026-07-20 18:28:51,972 - [124799] - src.utils.log - INFO - πŸ›  Creating temp table #tbl_7558fa1d36 - __SPLIT__ 2026-07-20 18:28:52,318 - [124799] - src.utils.log - INFO - πŸ“Œ Bulk inserting 1 rows into #tbl_7558fa1d36 - __SPLIT__ 2026-07-20 18:28:52,669 - [124799] - src.utils.log - INFO - πŸ” Running MERGE update to apply changes - __SPLIT__ 2026-07-20 18:28:52,879 - [124799] - src.utils.log - INFO - βœ” SQL reported affected rows: 1 - __SPLIT__ 2026-07-20 18:28:53,097 - [124799] - src.utils.log - INFO - πŸ” Verified successfully updated 1 rows via #tbl_7558fa1d36 - __SPLIT__ 2026-07-20 18:28:53,210 - [124799] - src.utils.log - INFO - πŸŽ‰ Successfully updated NextGenerationDate using temp table #tbl_7558fa1d36 - __SPLIT__ 2026-07-20 18:28:53,282 - [124799] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 124799 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 18:28:53,628 - [124799] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 18:28:53,695 - [124799] - src.utils.log - INFO - Sequential deletion from temp tables begin - __SPLIT__ 2026-07-20 18:28:53,769 - [124799] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId = 3683634 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 18:28:54,246 - [124799] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 18:28:54,318 - [124799] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId = 3683634 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 18:28:54,750 - [124799] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 18:28:54,819 - [124799] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId = 3683634 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 18:28:55,172 - [124799] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 18:28:55,240 - [124799] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId = 3683634 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 18:28:55,657 - [124799] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 18:28:55,727 - [124799] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId = 3683634 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 18:28:56,078 - [124799] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 18:28:56,150 - [124799] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 3683634 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 18:28:56,498 - [124799] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 18:28:56,568 - [124799] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId = 3683634 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 18:28:56,920 - [124799] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 18:28:56,991 - [124799] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 3683634 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 18:28:57,386 - [124799] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 18:28:57,505 - [124799] - src.utils.log - INFO - Work order published ids: (3683634,) - __SPLIT__ 2026-07-20 18:28:57,580 - [124799] - src.utils.log - INFO - Time took to perform operation in publishing [124799]: 50.75 - __SPLIT__ 2026-07-20 18:28:57,645 - [124799] - src.utils.log - INFO - Publish Completed for GenerateWorkOrderHistoryId: [124799] - __SPLIT__ 2026-07-20 18:28:57,717 - [124799] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-07-20 14:28:57.505' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124799;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 18:28:58,067 - [124799] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-20 18:28:58,133 - [124799] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[3683634] user_id=43135 company_id=133 project_id=[124799] publish_all=False - __SPLIT__ 2026-07-20 18:28:58,202 - [124799] - src.utils.log - INFO - Sequential Work order publish in progress for GenerateWorkOrderHistoryId: [124799] - __SPLIT__ 2026-07-20 18:28:58,272 - [124799] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-20 18:28:58,344 - [124799] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 18:29:00,469 - [124799] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 18:29:00,540 - [124799] - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-07-20 18:29:00,636 - [124799] - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-07-20 18:29:00,707 - [124799] - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-07-20 18:29:00,780 - [124799] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'InProgress' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124799;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 18:29:02,773 - [124799] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-20 18:29:02,842 - [124799] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId = 3683634... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 18:29:03,190 - [124799] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 18:29:03,260 - [124799] - src.utils.log - INFO - Time took to perform operation in publishing [124799]: 4.99 - __SPLIT__ 2026-07-20 18:29:03,330 - [124799] - src.utils.log - INFO - Publish Completed for GenerateWorkOrderHistoryId: [124799] - __SPLIT__ 2026-07-20 18:29:03,400 - [124799] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-07-20 14:29:00.780' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124799;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 18:29:03,794 - [124799] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-20 18:29:03,861 - [124799] - src.utils.log - INFO - Work orders either already published or deleted from temp tables - __SPLIT__ 2026-07-20 18:32:23,363 - 124801 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=124801 - __SPLIT__ 2026-07-20 18:32:23,485 - 124801 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 124801 - __SPLIT__ 2026-07-20 18:32:23,555 - 124801 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-20 18:32:23,620 - 124801 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 18:32:26,937 - 124801 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 18:32:26,999 - 124801 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-07-20 18:32:27,073 - 124801 - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-07-20 18:32:27,146 - 124801 - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-07-20 18:32:27,244 - 124801 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 124801;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 18:32:29,247 - 124801 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-20 18:32:29,318 - 124801 - 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 = 124801), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 124801), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 124801 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-07-20 18:32:29,701 - 124801 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 18:32:29,769 - 124801 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 124801;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 18:32:30,116 - 124801 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 18:32:30,188 - 124801 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-07-20 18:32:30,253 - 124801 - 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 = 14448... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 18:32:30,598 - 124801 - src.utils.log - INFO - βœ… Fetched 6 rows - __SPLIT__ 2026-07-20 18:32:30,669 - 124801 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-07-20 18:32:30,738 - 124801 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-07-20 18:32:30,803 - 124801 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150708;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 18:32:31,148 - 124801 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 18:32:31,261 - 124801 - 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-07-21 00:00:00' and ServiceDate <= '2026-12-31 00:00:00' and ServiceSetupId = 150708 and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 18:32:31,612 - 124801 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 18:32:32,251 - 124801 - src.utils.log - INFO - Generating work orders for setup: 150708 - __SPLIT__ 2026-07-20 18:32:32,381 - 124801 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-07-20 18:32:32,459 - 124801 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=133 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 18:32:32,795 - 124801 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 18:32:32,860 - 124801 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-07-20 18:32:32,931 - 124801 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-07-20 18:32:33,004 - 124801 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150708 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 18:32:33,384 - 124801 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 18:32:33,448 - 124801 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150708 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 18:32:33,835 - 124801 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 18:32:33,905 - 124801 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150708 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 18:32:34,249 - 124801 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 18:32:34,319 - 124801 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150708 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 18:32:34,695 - 124801 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 18:32:34,762 - 124801 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150708 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 18:32:35,144 - 124801 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 18:32:35,212 - 124801 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150708 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 18:32:35,559 - 124801 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 18:32:35,672 - 124801 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150708 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 18:32:36,007 - 124801 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 18:32:36,065 - 124801 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150708 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 18:32:36,529 - 124801 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 18:32:36,596 - 124801 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 18:32:36,661 - 124801 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 18:32:37,035 - 124801 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-07-20 18:32:38,085 - 124801 - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-07-20 18:32:38,155 - 124801 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 1 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-07-16 14:51:40.585' and ServiceSetupId = 150708... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 18:32:38,539 - 124801 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 18:32:38,607 - 124801 - src.utils.log - INFO - Id's of work order inserted to DB: [3683635] - __SPLIT__ 2026-07-20 18:32:38,709 - 124801 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150708;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 18:32:39,055 - 124801 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 18:32:39,127 - 124801 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-07-20 18:32:39,191 - 124801 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId = 150708... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 18:32:39,540 - 124801 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 18:32:39,604 - 124801 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId = 150708... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 18:32:39,940 - 124801 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 18:32:40,012 - 124801 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId = 150708... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 18:32:40,364 - 124801 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 18:32:40,478 - 124801 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId = 150708... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 18:32:40,814 - 124801 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 18:32:40,991 - 124801 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId = 150708... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 18:32:41,329 - 124801 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 18:32:41,401 - 124801 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId = 150708;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 18:32:41,748 - 124801 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 18:32:41,810 - 124801 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId = 150708;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 18:32:42,150 - 124801 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-20 18:32:42,215 - 124801 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId = 150708;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 18:32:42,661 - 124801 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 18:32:42,726 - 124801 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId = 150708;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 18:32:43,071 - 124801 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 18:32:43,143 - 124801 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-07-20 18:32:43,203 - 124801 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-07-20 18:32:43,264 - 124801 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-07-20 18:32:43,323 - 124801 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.CommunicationPreferencesServiceReportNotification: - __SPLIT__ 2026-07-20 18:32:43,387 - 124801 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-07-20 18:32:43,448 - 124801 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 18:32:43,513 - 124801 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 3683635 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 18:32:43,857 - 124801 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 18:32:43,962 - 124801 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.SetupAutoGenerationSourceMapping: 0 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 18:32:44,320 - 124801 - src.utils.log - INFO - βœ… All 0 rows inserted successfully into ServiceCore.SetupAutoGenerationSourceMapping in 0 batches - __SPLIT__ 2026-07-20 18:32:44,384 - 124801 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-07-20 18:32:44,450 - 124801 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationAppliedDiscount: - __SPLIT__ 2026-07-20 18:32:44,514 - 124801 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-07-20 18:32:44,588 - 124801 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 18:32:44,654 - 124801 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 3683635 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 18:32:44,998 - 124801 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 18:32:45,070 - 124801 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.SubWorkOrderAutoGeneration: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 18:32:45,448 - 124801 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.SubWorkOrderAutoGeneration - __SPLIT__ 2026-07-20 18:32:46,626 - 124801 - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.SubWorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-07-20 18:32:46,698 - 124801 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-07-20 18:32:46,764 - 124801 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: - __SPLIT__ 2026-07-20 18:32:46,829 - 124801 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-07-20 18:32:46,898 - 124801 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: - __SPLIT__ 2026-07-20 18:32:46,961 - 124801 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-07-20 18:32:47,025 - 124801 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCrews: - __SPLIT__ 2026-07-20 18:32:47,089 - 124801 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-07-20 18:32:47,150 - 124801 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationServices: - __SPLIT__ 2026-07-20 18:32:47,210 - 124801 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-07-20 18:32:47,323 - 124801 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 18:32:47,392 - 124801 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 3683635 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 18:32:47,738 - 124801 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 18:32:47,817 - 124801 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 18:32:48,174 - 124801 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-07-20 18:32:49,221 - 124801 - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-07-20 18:32:49,289 - 124801 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-07-20 18:32:49,360 - 124801 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 124801;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 18:32:49,705 - 124801 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-20 18:32:49,777 - 124801 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-07-20 18:32:49,849 - 124801 - src.utils.log - INFO - Time took to perform operation: 26.22 - __SPLIT__ 2026-07-20 18:33:35,400 - [124801] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[3683635] user_id=43135 company_id=133 project_id=[124801] publish_all=False - __SPLIT__ 2026-07-20 18:33:35,550 - [124801] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[3683635] user_id=43135 company_id=133 project_id=[124801] publish_all=False - __SPLIT__ 2026-07-20 18:33:35,620 - [124801] - src.utils.log - INFO - Sequential Work order publish in progress for GenerateWorkOrderHistoryId: [124801] - __SPLIT__ 2026-07-20 18:33:35,694 - [124801] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-20 18:33:35,770 - [124801] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 18:33:37,998 - [124801] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 18:33:38,074 - [124801] - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-07-20 18:33:38,141 - [124801] - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-07-20 18:33:38,217 - [124801] - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-07-20 18:33:38,287 - [124801] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'InProgress' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124801;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 18:33:40,201 - [124801] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-20 18:33:40,275 - [124801] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId = 3683635... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 18:33:40,618 - [124801] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 18:33:40,693 - [124801] - src.utils.log - INFO - Inside get_work_order_table - __SPLIT__ 2026-07-20 18:33:40,759 - [124801] - 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 = 150708 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 18:33:41,097 - [124801] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 18:33:41,169 - [124801] - 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 = 150708 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 18:33:41,514 - [124801] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 18:33:41,591 - [124801] - 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 = 150708 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 18:33:41,932 - [124801] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 18:33:42,006 - [124801] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder,BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 18:33:42,390 - [124801] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 18:33:42,455 - [124801] - 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-07-20 18:33:42,789 - [124801] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-20 18:33:42,856 - [124801] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder, BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 18:33:43,201 - [124801] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 18:33:43,275 - [124801] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 1 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 133 AND EnitityNumberType = 'WorkOrder'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 18:33:43,612 - [124801] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 18:33:43,685 - [124801] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 1 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 133 AND EnitityNumberType = 'Invoice'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 18:33:44,015 - [124801] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 18:33:44,089 - [124801] - 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 = 150708... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 18:33:44,423 - [124801] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 18:33:44,494 - [124801] - src.utils.log - INFO - πŸ” Fetching data: SELECT x.CompanyId FROM CRM.CompanyMaster x WHERE CompanyKey = 'abcdallas';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 18:33:44,827 - [124801] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 18:33:44,894 - [124801] - src.utils.log - INFO - πŸ” Fetching data: SELECT CollectionStatus,IsHold,AccountNo FROM CRM.Account a WHERE a.AccountNo = '14999' and a.CompanyId = 121;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 18:33:45,228 - [124801] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 18:33:45,300 - [124801] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderNo FROM ServiceCore.WorkOrder WHERE WorkOrderNo = '1428858' AND CompanyId = 133 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 18:33:45,630 - [124801] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 18:33:45,697 - [124801] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrder (skip triggers): 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 18:33:46,199 - [124801] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrder (triggers skipped) - __SPLIT__ 2026-07-20 18:33:47,266 - [124801] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrder in 1 batches (triggers skipped) - __SPLIT__ 2026-07-20 18:33:47,520 - [124801] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-07-20 18:33:47,603 - [124801] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkorderId, WorkOrderNo FROM ServiceCore.WorkOrder wo WHERE wo.WorkOrderNo = '1428858' AND wo.AccountNumber = '14999' AND wo.CompanyId = 133 ... (Thread: ThreadPoolExecutor-70_0) - __SPLIT__ 2026-07-20 18:33:47,935 - [124801] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 18:33:48,006 - [124801] - src.utils.log - INFO - Sequential fetching temp table records - __SPLIT__ 2026-07-20 18:33:48,076 - [124801] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationServices woag WHERE woag.WorkOrderAutoGenerationId = 3683635... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 18:33:48,443 - [124801] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 18:33:48,514 - [124801] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SubWorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId = 3683635... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 18:33:48,851 - [124801] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 18:33:48,924 - [124801] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationCrews woag WHERE woag.WorkOrderAutoGenerationId = 3683635... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 18:33:49,273 - [124801] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 18:33:49,345 - [124801] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationSalesPersonCommission woag WHERE woag.WorkOrderAutoGenerationId = 3683635... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 18:33:49,681 - [124801] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 18:33:49,752 - [124801] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupAutoGenerationSourceMapping woag WHERE woag.WorkOrderAutoGenerationId = 3683635... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 18:33:50,082 - [124801] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 18:33:50,156 - [124801] - 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 = 3683635... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 18:33:50,513 - [124801] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 18:33:50,589 - [124801] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from CRM.LeadNote woag WHERE woag.RefId = 3683635 and woag.RefType = 'TempWorkorder';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 18:33:50,919 - [124801] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 18:33:50,995 - [124801] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment woagca WHERE woagca.WorkOrderAutoGenerationId = 3683635;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 18:33:51,331 - [124801] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 18:33:51,433 - [124801] - src.utils.log - INFO - Updating temp tables - __SPLIT__ 2026-07-20 18:33:51,507 - [124801] - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyKey FROM Common.CompanyMaster cm WHERE CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 18:33:51,826 - [124801] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 18:33:51,882 - [124801] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 133 AND EnitityNumberType in ('SubWorkOrder'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 18:33:52,203 - [124801] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 18:33:52,263 - [124801] - src.utils.log - INFO - πŸ“ Executing: UPDATE Common.GenerateNumberConfig SET NextNumber = '22902' WHERE CompanyId = 133 AND EnitityNumberType in ('SubWorkOrder');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 18:33:52,586 - [124801] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-20 18:33:52,651 - [124801] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 18:33:52,711 - [124801] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishHistory: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 18:33:53,061 - [124801] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderAutoGenerationPublishHistory - __SPLIT__ 2026-07-20 18:33:54,054 - [124801] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishHistory in 1 batches - __SPLIT__ 2026-07-20 18:33:54,109 - [124801] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationPublishHistoryId, WorkOrderNo, ServiceSetupId FROM ServiceCore.WorkOrderAutoGenerationPublishHistory WHERE ServiceSetupId = 150708 AND WorkOrderNo = '3272735' AND GenerateWorkOrderHistoryId = 124801; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 18:33:54,577 - [124801] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 18:33:54,635 - [124801] - src.utils.log - INFO - Sequential Insertion in work order tables begin - __SPLIT__ 2026-07-20 18:33:54,690 - [124801] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 18:33:54,748 - [124801] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderServices: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 18:33:55,067 - [124801] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderServices - __SPLIT__ 2026-07-20 18:33:56,051 - [124801] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderServices in 1 batches - __SPLIT__ 2026-07-20 18:33:56,120 - [124801] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderAppliedDiscount: - __SPLIT__ 2026-07-20 18:33:56,178 - [124801] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderSalesPersonCommission: - __SPLIT__ 2026-07-20 18:33:56,295 - [124801] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderCommissionAdjustment: - __SPLIT__ 2026-07-20 18:33:56,368 - [124801] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderCrew: - __SPLIT__ 2026-07-20 18:33:56,440 - [124801] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkorderSourceMapping: - __SPLIT__ 2026-07-20 18:33:56,515 - [124801] - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-07-20 18:33:56,585 - [124801] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 18:33:56,655 - [124801] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishServices: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 18:33:56,995 - [124801] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderAutoGenerationPublishServices - __SPLIT__ 2026-07-20 18:33:57,996 - [124801] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishServices in 1 batches - __SPLIT__ 2026-07-20 18:33:58,066 - [124801] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 18:33:58,135 - [124801] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.SubWorkOrder: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 18:33:58,504 - [124801] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.SubWorkOrder - __SPLIT__ 2026-07-20 18:33:59,807 - [124801] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.SubWorkOrder in 1 batches - __SPLIT__ 2026-07-20 18:33:59,881 - [124801] - src.utils.log - INFO - πŸ” Fetching data: Select * From ServiceCore.SubWorkOrder where WorkOrderId = 2159145... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 18:34:00,222 - [124801] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 18:34:00,302 - [124801] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 18:34:00,367 - [124801] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.subWorkOrderIssue: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 18:34:00,716 - [124801] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceAuto.subWorkOrderIssue - __SPLIT__ 2026-07-20 18:34:01,612 - [124801] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceAuto.subWorkOrderIssue in 1 batches - __SPLIT__ 2026-07-20 18:34:01,680 - [124801] - src.utils.log - INFO - πŸ” Fetching data: Select SubWorkOrderIssueId, SubWorkOrderId, ModifiedBy From ServiceAuto.subWorkOrderIssue where SubWorkOrderId = 230501 and ModifiedBy = 999999999 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 18:34:02,018 - [124801] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 18:34:02,132 - [124801] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceAuto.subWorkOrderIssue SET ModifiedBy = 'abcdallas' WHERE ModifiedBy = '999999999'; ... (Thread: ThreadPoolExecutor-71_0) - __SPLIT__ 2026-07-20 18:34:02,549 - [124801] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-20 18:34:02,620 - [124801] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 18:34:02,689 - [124801] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.subWOIssueRepair: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 18:34:03,051 - [124801] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceAuto.subWOIssueRepair - __SPLIT__ 2026-07-20 18:34:03,931 - [124801] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceAuto.subWOIssueRepair in 1 batches - __SPLIT__ 2026-07-20 18:34:04,006 - [124801] - src.utils.log - INFO - πŸ” Fetching data: Select IssueRepairId, ModifiedBy From ServiceAuto.subWOIssueRepair where SubWorkOrderIssueId = 192695... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 18:34:04,340 - [124801] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 18:34:04,409 - [124801] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceAuto.subWOIssueRepair SET ModifiedBy = 'abcdallas' WHERE ModifiedBy = '0___TMP___192695' AND CreatedDate = '2026-07-20 14:34:00.299'; ... (Thread: ThreadPoolExecutor-72_0) - __SPLIT__ 2026-07-20 18:34:04,786 - [124801] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-20 18:34:04,866 - [124801] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 18:34:04,941 - [124801] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.SubWOIssueRepairLabor: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 18:34:05,301 - [124801] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceAuto.SubWOIssueRepairLabor - __SPLIT__ 2026-07-20 18:34:06,321 - [124801] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceAuto.SubWOIssueRepairLabor in 1 batches - __SPLIT__ 2026-07-20 18:34:06,393 - [124801] - 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 = 150708... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 18:34:06,725 - [124801] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 18:34:06,792 - [124801] - src.utils.log - INFO - Size of Transaction: 1 - __SPLIT__ 2026-07-20 18:34:06,859 - [124801] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 18:34:07,327 - [124801] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-07-20 18:34:08,316 - [124801] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-07-20 18:34:08,558 - [124801] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-07-20 18:34:08,630 - [124801] - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionId, ModifiedBy, TransactionDate as InvoiceDate from Billing.[Transaction] t WHERE t.ModifiedBy = 12345678910 and t.CompanyId = 133 AND t.TransactionType ='Invoice' AND t.CreatedDate = '2026-07-20 14:34:06.788';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 18:34:09,061 - [124801] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 18:34:09,128 - [124801] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150708;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 18:34:09,465 - [124801] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 18:34:09,546 - [124801] - src.utils.log - INFO - πŸ“ Executing: UPDATE Billing.[Transaction] SET ModifiedBy = NULL WHERE ModifiedBy = 12345678910 AND CreatedDate = '2026-07-20 14:34:06.788'; ... (Thread: ThreadPoolExecutor-73_0) - __SPLIT__ 2026-07-20 18:34:10,441 - [124801] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-20 18:34:10,508 - [124801] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 18:34:10,573 - [124801] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 18:34:10,921 - [124801] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into Billing.Invoice - __SPLIT__ 2026-07-20 18:34:11,930 - [124801] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-07-20 18:34:12,007 - [124801] - src.utils.log - INFO - πŸ” Fetching data: SELECT InvoiceId, WorkOrderNo FROM Billing.Invoice i WHERE i.WorkOrderNo = '1428858'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 18:34:12,901 - [124801] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 18:34:12,979 - [124801] - 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 = 150708 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 18:34:13,314 - [124801] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 18:34:13,384 - [124801] - 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 = 150708 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 18:34:13,718 - [124801] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 18:34:13,789 - [124801] - 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 = 150708 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 18:34:14,124 - [124801] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 18:34:14,189 - [124801] - 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 = 150708 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 18:34:14,566 - [124801] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 18:34:14,646 - [124801] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150708;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 18:34:14,975 - [124801] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-20 18:34:15,046 - [124801] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId, AppliedDiscountAmt as AppliedDiscountAmount,IsActive ,ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 150708;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 18:34:15,383 - [124801] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 18:34:15,454 - [124801] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId,IsActive,DiscountAmount, IsDiscountPercent,DiscountPercent,DiscountDescription , ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 150708;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 18:34:15,787 - [124801] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 18:34:15,849 - [124801] - src.utils.log - INFO - Sequential Insertion in invoice tables begin - __SPLIT__ 2026-07-20 18:34:15,918 - [124801] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.AccountDiscountSetup: - __SPLIT__ 2026-07-20 18:34:15,985 - [124801] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-20 18:34:16,065 - [124801] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceCharges: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 18:34:16,405 - [124801] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into Billing.InvoiceCharges - __SPLIT__ 2026-07-20 18:34:17,395 - [124801] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into Billing.InvoiceCharges in 1 batches - __SPLIT__ 2026-07-20 18:34:17,464 - [124801] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.DiscountApplied: - __SPLIT__ 2026-07-20 18:34:17,530 - [124801] - src.utils.log - INFO - Invoice Publish Done - __SPLIT__ 2026-07-20 18:34:17,594 - [124801] - src.utils.log - INFO - Updating Next GenerationDate - __SPLIT__ 2026-07-20 18:34:17,662 - [124801] - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, MAX(NextWorkOrderGenerationDate) AS MaxNextWorkOrderGeneration FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 124801 GROUP BY ServiceSetupId; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 18:34:17,986 - [124801] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-20 18:34:18,062 - [124801] - src.utils.log - INFO - πŸ”„ Updating next gen date sequentially: inside update_next_workorder_generation - __SPLIT__ 2026-07-20 18:34:18,255 - [124801] - src.utils.log - INFO - πŸ›  Creating temp table #tbl_72ea6e5fcf - __SPLIT__ 2026-07-20 18:34:18,660 - [124801] - src.utils.log - INFO - πŸ“Œ Bulk inserting 1 rows into #tbl_72ea6e5fcf - __SPLIT__ 2026-07-20 18:34:19,021 - [124801] - src.utils.log - INFO - πŸ” Running MERGE update to apply changes - __SPLIT__ 2026-07-20 18:34:19,241 - [124801] - src.utils.log - INFO - βœ” SQL reported affected rows: 1 - __SPLIT__ 2026-07-20 18:34:19,461 - [124801] - src.utils.log - INFO - πŸ” Verified successfully updated 1 rows via #tbl_72ea6e5fcf - __SPLIT__ 2026-07-20 18:34:19,559 - [124801] - src.utils.log - INFO - πŸŽ‰ Successfully updated NextGenerationDate using temp table #tbl_72ea6e5fcf - __SPLIT__ 2026-07-20 18:34:19,652 - [124801] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 124801 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 18:34:20,017 - [124801] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 18:34:20,102 - [124801] - src.utils.log - INFO - Sequential deletion from temp tables begin - __SPLIT__ 2026-07-20 18:34:20,191 - [124801] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId = 3683635 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 18:34:20,692 - [124801] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 18:34:20,772 - [124801] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId = 3683635 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 18:34:21,198 - [124801] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 18:34:21,278 - [124801] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId = 3683635 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 18:34:21,621 - [124801] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 18:34:21,701 - [124801] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId = 3683635 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 18:34:22,104 - [124801] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 18:34:22,207 - [124801] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId = 3683635 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 18:34:22,548 - [124801] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 18:34:22,631 - [124801] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 3683635 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 18:34:22,966 - [124801] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 18:34:23,079 - [124801] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId = 3683635 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 18:34:23,402 - [124801] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 18:34:23,474 - [124801] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 3683635 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 18:34:23,839 - [124801] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-20 18:34:23,910 - [124801] - src.utils.log - INFO - Work order published ids: (3683635,) - __SPLIT__ 2026-07-20 18:34:23,977 - [124801] - src.utils.log - INFO - Time took to perform operation in publishing [124801]: 48.28 - __SPLIT__ 2026-07-20 18:34:24,041 - [124801] - src.utils.log - INFO - Publish Completed for GenerateWorkOrderHistoryId: [124801] - __SPLIT__ 2026-07-20 18:34:24,105 - [124801] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-07-20 14:34:23.910' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124801;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-20 18:34:24,437 - [124801] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-21 02:14:35,999 - 124802 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=124802 - __SPLIT__ 2026-07-21 02:14:36,172 - 124802 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 124802 - __SPLIT__ 2026-07-21 02:14:36,256 - 124802 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-21 02:14:36,326 - 124802 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 02:14:38,633 - 124802 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-21 02:14:38,705 - 124802 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-07-21 02:14:38,788 - 124802 - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-07-21 02:14:38,863 - 124802 - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-07-21 02:14:38,928 - 124802 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 124802;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 02:14:40,836 - 124802 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-21 02:14:40,906 - 124802 - 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 = 124802), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 124802), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 124802 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-07-21 02:14:41,283 - 124802 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-21 02:14:41,355 - 124802 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 124802;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 02:14:41,684 - 124802 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-21 02:14:41,759 - 124802 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-07-21 02:14:41,865 - 124802 - 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 = 14448... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 02:14:42,204 - 124802 - src.utils.log - INFO - βœ… Fetched 6 rows - __SPLIT__ 2026-07-21 02:14:42,281 - 124802 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-07-21 02:14:42,350 - 124802 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-07-21 02:14:42,414 - 124802 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150709;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 02:14:42,744 - 124802 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-21 02:14:42,861 - 124802 - 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-07-21 00:00:00' and ServiceDate <= '2027-03-31 00:00:00' and ServiceSetupId = 150709 and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 02:14:43,191 - 124802 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-21 02:14:43,809 - 124802 - src.utils.log - INFO - Generating work orders for setup: 150709 - __SPLIT__ 2026-07-21 02:14:43,899 - 124802 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 11437;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 02:14:44,228 - 124802 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-21 02:14:44,297 - 124802 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 11437;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 02:14:44,625 - 124802 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-21 02:14:44,723 - 124802 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-07-21 02:14:44,796 - 124802 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=133 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 02:14:45,128 - 124802 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-21 02:14:45,200 - 124802 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-07-21 02:14:45,262 - 124802 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-07-21 02:14:45,332 - 124802 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150709 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 02:14:45,712 - 124802 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-21 02:14:45,773 - 124802 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150709 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 02:14:46,140 - 124802 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-21 02:14:46,206 - 124802 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150709 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 02:14:46,543 - 124802 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-21 02:14:46,605 - 124802 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150709 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 02:14:46,970 - 124802 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-21 02:14:47,080 - 124802 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150709 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 02:14:47,447 - 124802 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-21 02:14:47,516 - 124802 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150709 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 02:14:47,855 - 124802 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-21 02:14:47,924 - 124802 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150709 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 02:14:48,257 - 124802 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-21 02:14:48,323 - 124802 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150709 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 02:14:48,782 - 124802 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-21 02:14:48,842 - 124802 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-21 02:14:48,896 - 124802 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 4 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 02:14:49,253 - 124802 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 4) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-07-21 02:14:50,412 - 124802 - src.utils.log - INFO - βœ… All 4 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-07-21 02:14:50,486 - 124802 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 4 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-07-16 14:51:40.585' and ServiceSetupId = 150709... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 02:14:50,852 - 124802 - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-07-21 02:14:50,917 - 124802 - src.utils.log - INFO - Id's of work order inserted to DB: [3683636 3683637 3683638 3683639] - __SPLIT__ 2026-07-21 02:14:50,978 - 124802 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150709;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 02:14:51,313 - 124802 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-21 02:14:51,377 - 124802 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-07-21 02:14:51,442 - 124802 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId = 150709... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 02:14:51,770 - 124802 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-21 02:14:51,888 - 124802 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId = 150709... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 02:14:52,226 - 124802 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-21 02:14:52,308 - 124802 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId = 150709... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 02:14:52,656 - 124802 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-21 02:14:52,737 - 124802 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId = 150709... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 02:14:53,104 - 124802 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-21 02:14:53,173 - 124802 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId = 150709... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 02:14:53,500 - 124802 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-21 02:14:53,572 - 124802 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId = 150709;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 02:14:53,907 - 124802 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-21 02:14:53,979 - 124802 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId = 150709;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 02:14:54,315 - 124802 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-21 02:14:54,388 - 124802 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId = 150709;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 02:14:54,815 - 124802 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-21 02:14:54,884 - 124802 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId = 150709;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 02:14:55,223 - 124802 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-21 02:14:55,298 - 124802 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-07-21 02:14:55,369 - 124802 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-07-21 02:14:55,444 - 124802 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-07-21 02:14:55,511 - 124802 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.CommunicationPreferencesServiceReportNotification: - __SPLIT__ 2026-07-21 02:14:55,635 - 124802 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-07-21 02:14:55,704 - 124802 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-21 02:14:55,779 - 124802 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ('3683637', '3683639', '3683636', '3683638') ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 02:14:56,117 - 124802 - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-07-21 02:14:56,186 - 124802 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.SetupAutoGenerationSourceMapping: 0 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 02:14:56,519 - 124802 - src.utils.log - INFO - βœ… All 0 rows inserted successfully into ServiceCore.SetupAutoGenerationSourceMapping in 0 batches - __SPLIT__ 2026-07-21 02:14:56,588 - 124802 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-07-21 02:14:56,659 - 124802 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationAppliedDiscount: - __SPLIT__ 2026-07-21 02:14:56,730 - 124802 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-07-21 02:14:56,801 - 124802 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-21 02:14:56,872 - 124802 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3683636, 3683637, 3683638, 3683639) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 02:14:57,205 - 124802 - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-07-21 02:14:57,274 - 124802 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.SubWorkOrderAutoGeneration: 4 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 02:14:57,624 - 124802 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 4) into ServiceCore.SubWorkOrderAutoGeneration - __SPLIT__ 2026-07-21 02:14:58,774 - 124802 - src.utils.log - INFO - βœ… All 4 rows inserted successfully into ServiceCore.SubWorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-07-21 02:14:58,842 - 124802 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-07-21 02:14:58,913 - 124802 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: - __SPLIT__ 2026-07-21 02:14:58,985 - 124802 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-07-21 02:14:59,056 - 124802 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: - __SPLIT__ 2026-07-21 02:14:59,128 - 124802 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-07-21 02:14:59,242 - 124802 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCrews: - __SPLIT__ 2026-07-21 02:14:59,303 - 124802 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-07-21 02:14:59,361 - 124802 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationServices: - __SPLIT__ 2026-07-21 02:14:59,429 - 124802 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-07-21 02:14:59,493 - 124802 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-21 02:14:59,550 - 124802 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3683636, 3683637, 3683638, 3683639) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 02:14:59,868 - 124802 - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-07-21 02:14:59,957 - 124802 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 4 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 02:15:00,317 - 124802 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 4) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-07-21 02:15:01,316 - 124802 - src.utils.log - INFO - βœ… All 4 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-07-21 02:15:01,400 - 124802 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-07-21 02:15:01,510 - 124802 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 124802;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 02:15:01,849 - 124802 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-21 02:15:01,914 - 124802 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-07-21 02:15:01,977 - 124802 - src.utils.log - INFO - Time took to perform operation: 25.66 - __SPLIT__ 2026-07-21 02:16:22,953 - 124803 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=124803 - __SPLIT__ 2026-07-21 02:16:23,073 - 124803 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 124803 - __SPLIT__ 2026-07-21 02:16:23,141 - 124803 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-21 02:16:23,204 - 124803 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 02:16:25,614 - 124803 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-21 02:16:25,683 - 124803 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-07-21 02:16:25,746 - 124803 - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-07-21 02:16:25,815 - 124803 - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-07-21 02:16:25,879 - 124803 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 124803;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 02:16:27,773 - 124803 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-21 02:16:27,832 - 124803 - 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 = 124803), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 124803), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 124803 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-07-21 02:16:28,212 - 124803 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-21 02:16:28,277 - 124803 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 124803;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 02:16:28,608 - 124803 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-21 02:16:28,668 - 124803 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-07-21 02:16:28,732 - 124803 - 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 = 14448... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 02:16:29,067 - 124803 - src.utils.log - INFO - βœ… Fetched 6 rows - __SPLIT__ 2026-07-21 02:16:29,135 - 124803 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-07-21 02:16:29,198 - 124803 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-07-21 02:16:29,259 - 124803 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150709;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 02:16:29,581 - 124803 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-21 02:16:29,700 - 124803 - 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-07-21 00:00:00' and ServiceDate <= '2026-12-31 00:00:00' and ServiceSetupId = 150709 and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 02:16:30,033 - 124803 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-21 02:16:30,651 - 124803 - src.utils.log - INFO - Generating work orders for setup: 150709 - __SPLIT__ 2026-07-21 02:16:30,733 - 124803 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 11437;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 02:16:31,061 - 124803 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-21 02:16:31,131 - 124803 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 11437;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 02:16:31,454 - 124803 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-21 02:16:31,557 - 124803 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-07-21 02:16:31,627 - 124803 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=133 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 02:16:31,955 - 124803 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-21 02:16:32,023 - 124803 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-07-21 02:16:32,084 - 124803 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-07-21 02:16:32,150 - 124803 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150709 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 02:16:32,567 - 124803 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-21 02:16:32,631 - 124803 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150709 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 02:16:33,018 - 124803 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-21 02:16:33,080 - 124803 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150709 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 02:16:33,411 - 124803 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-21 02:16:33,479 - 124803 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150709 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 02:16:33,864 - 124803 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-21 02:16:33,982 - 124803 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150709 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 02:16:34,348 - 124803 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-21 02:16:34,412 - 124803 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150709 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 02:16:34,755 - 124803 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-21 02:16:34,821 - 124803 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150709 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 02:16:35,148 - 124803 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-21 02:16:35,216 - 124803 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150709 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 02:16:35,811 - 124803 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-21 02:16:35,880 - 124803 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-21 02:16:35,943 - 124803 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 3 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 02:16:36,298 - 124803 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-07-21 02:16:37,438 - 124803 - src.utils.log - INFO - βœ… All 3 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-07-21 02:16:37,509 - 124803 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 3 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-07-16 14:51:40.585' and ServiceSetupId = 150709... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 02:16:37,880 - 124803 - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-07-21 02:16:37,949 - 124803 - src.utils.log - INFO - Id's of work order inserted to DB: [3683640 3683641 3683642] - __SPLIT__ 2026-07-21 02:16:38,007 - 124803 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150709;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 02:16:38,337 - 124803 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-21 02:16:38,403 - 124803 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-07-21 02:16:38,463 - 124803 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId = 150709... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 02:16:38,788 - 124803 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-21 02:16:38,903 - 124803 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId = 150709... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 02:16:39,222 - 124803 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-21 02:16:39,291 - 124803 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId = 150709... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 02:16:39,620 - 124803 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-21 02:16:39,687 - 124803 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId = 150709... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 02:16:40,019 - 124803 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-21 02:16:40,076 - 124803 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId = 150709... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 02:16:40,401 - 124803 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-21 02:16:40,463 - 124803 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId = 150709;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 02:16:40,782 - 124803 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-21 02:16:40,851 - 124803 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId = 150709;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 02:16:41,178 - 124803 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-21 02:16:41,242 - 124803 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId = 150709;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 02:16:41,662 - 124803 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-21 02:16:41,728 - 124803 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId = 150709;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 02:16:42,054 - 124803 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-21 02:16:42,127 - 124803 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-07-21 02:16:42,189 - 124803 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-07-21 02:16:42,251 - 124803 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-07-21 02:16:42,308 - 124803 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.CommunicationPreferencesServiceReportNotification: - __SPLIT__ 2026-07-21 02:16:42,404 - 124803 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-07-21 02:16:42,471 - 124803 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-21 02:16:42,527 - 124803 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ('3683641', '3683640', '3683642') ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 02:16:42,855 - 124803 - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-07-21 02:16:42,918 - 124803 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.SetupAutoGenerationSourceMapping: 0 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 02:16:43,245 - 124803 - src.utils.log - INFO - βœ… All 0 rows inserted successfully into ServiceCore.SetupAutoGenerationSourceMapping in 0 batches - __SPLIT__ 2026-07-21 02:16:43,296 - 124803 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-07-21 02:16:43,360 - 124803 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationAppliedDiscount: - __SPLIT__ 2026-07-21 02:16:43,423 - 124803 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-07-21 02:16:43,480 - 124803 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-21 02:16:43,542 - 124803 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3683640, 3683641, 3683642) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 02:16:43,870 - 124803 - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-07-21 02:16:43,936 - 124803 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.SubWorkOrderAutoGeneration: 3 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 02:16:44,273 - 124803 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into ServiceCore.SubWorkOrderAutoGeneration - __SPLIT__ 2026-07-21 02:16:45,404 - 124803 - src.utils.log - INFO - βœ… All 3 rows inserted successfully into ServiceCore.SubWorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-07-21 02:16:45,528 - 124803 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-07-21 02:16:45,594 - 124803 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: - __SPLIT__ 2026-07-21 02:16:45,657 - 124803 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-07-21 02:16:45,720 - 124803 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: - __SPLIT__ 2026-07-21 02:16:45,781 - 124803 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-07-21 02:16:45,904 - 124803 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCrews: - __SPLIT__ 2026-07-21 02:16:45,976 - 124803 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-07-21 02:16:46,046 - 124803 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationServices: - __SPLIT__ 2026-07-21 02:16:46,123 - 124803 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-07-21 02:16:46,190 - 124803 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-21 02:16:46,261 - 124803 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3683640, 3683641, 3683642) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 02:16:46,591 - 124803 - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-07-21 02:16:46,660 - 124803 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 3 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 02:16:47,000 - 124803 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-07-21 02:16:47,995 - 124803 - src.utils.log - INFO - βœ… All 3 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-07-21 02:16:48,066 - 124803 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-07-21 02:16:48,168 - 124803 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 124803;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 02:16:48,504 - 124803 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-21 02:16:48,580 - 124803 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-07-21 02:16:48,649 - 124803 - src.utils.log - INFO - Time took to perform operation: 25.44 - __SPLIT__ 2026-07-21 02:17:05,358 - [124803] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[3683640, 3683641, 3683642] user_id=43135 company_id=133 project_id=[124803] publish_all=False - __SPLIT__ 2026-07-21 02:17:05,479 - [124803] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[3683640, 3683641, 3683642] user_id=43135 company_id=133 project_id=[124803] publish_all=False - __SPLIT__ 2026-07-21 02:17:05,546 - [124803] - src.utils.log - INFO - Sequential Work order publish in progress for GenerateWorkOrderHistoryId: [124803] - __SPLIT__ 2026-07-21 02:17:05,617 - [124803] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-21 02:17:05,680 - [124803] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 02:17:07,921 - [124803] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-21 02:17:08,007 - [124803] - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-07-21 02:17:08,075 - [124803] - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-07-21 02:17:08,144 - [124803] - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-07-21 02:17:08,215 - [124803] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'InProgress' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124803;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 02:17:10,131 - [124803] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-21 02:17:10,215 - [124803] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (3683640, 3683641, 3683642)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 02:17:10,561 - [124803] - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-07-21 02:17:10,646 - [124803] - src.utils.log - INFO - Inside get_work_order_table - __SPLIT__ 2026-07-21 02:17:10,717 - [124803] - 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 = 150709 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 02:17:11,069 - [124803] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-21 02:17:11,146 - [124803] - 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 = 150709 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 02:17:11,502 - [124803] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-21 02:17:11,574 - [124803] - 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 = 150709 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 02:17:11,923 - [124803] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-21 02:17:12,004 - [124803] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder,BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 02:17:12,384 - [124803] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-21 02:17:12,461 - [124803] - 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-07-21 02:17:12,793 - [124803] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-21 02:17:12,864 - [124803] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder, BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 02:17:13,198 - [124803] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-21 02:17:13,265 - [124803] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 3 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 133 AND EnitityNumberType = 'WorkOrder'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 02:17:13,596 - [124803] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-21 02:17:13,665 - [124803] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 3 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 133 AND EnitityNumberType = 'Invoice'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 02:17:14,000 - [124803] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-21 02:17:14,079 - [124803] - 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 = 150709... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 02:17:14,421 - [124803] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-21 02:17:14,497 - [124803] - src.utils.log - INFO - πŸ” Fetching data: SELECT x.CompanyId FROM CRM.CompanyMaster x WHERE CompanyKey = 'abcdallas';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 02:17:14,830 - [124803] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-21 02:17:14,909 - [124803] - src.utils.log - INFO - πŸ” Fetching data: SELECT CollectionStatus,IsHold,AccountNo FROM CRM.Account a WHERE a.AccountNo = '15022' and a.CompanyId = 121;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 02:17:15,246 - [124803] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-21 02:17:15,321 - [124803] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderNo FROM ServiceCore.WorkOrder WHERE WorkOrderNo IN ('1428859', '1428860', '1428861') AND CompanyId = 133 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 02:17:15,654 - [124803] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-21 02:17:15,731 - [124803] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrder (skip triggers): 3 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 02:17:16,229 - [124803] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into ServiceCore.WorkOrder (triggers skipped) - __SPLIT__ 2026-07-21 02:17:17,447 - [124803] - src.utils.log - INFO - βœ… All 3 rows inserted successfully into ServiceCore.WorkOrder in 1 batches (triggers skipped) - __SPLIT__ 2026-07-21 02:17:17,702 - [124803] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-07-21 02:17:17,762 - [124803] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.ServiceSetup SET IsInitialWoGenerated = 1 WHERE CompanyId = 133 AND ServiceSetupId = 150709;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 02:17:18,085 - [124803] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-21 02:17:18,147 - [124803] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkorderId, WorkOrderNo FROM ServiceCore.WorkOrder wo WHERE wo.WorkOrderNo IN ('1428859', '1428860', '1428861') AND wo.AccountNumber = '15022' AND wo.CompanyId = 133 ... (Thread: ThreadPoolExecutor-74_0) - __SPLIT__ 2026-07-21 02:17:18,469 - [124803] - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-07-21 02:17:18,540 - [124803] - src.utils.log - INFO - Sequential fetching temp table records - __SPLIT__ 2026-07-21 02:17:18,602 - [124803] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationServices woag WHERE woag.WorkOrderAutoGenerationId in (3683640, 3683641, 3683642)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 02:17:18,964 - [124803] - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-07-21 02:17:19,020 - [124803] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SubWorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (3683640, 3683641, 3683642)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 02:17:19,337 - [124803] - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-07-21 02:17:19,386 - [124803] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationCrews woag WHERE woag.WorkOrderAutoGenerationId in (3683640, 3683641, 3683642)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 02:17:19,726 - [124803] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-21 02:17:19,785 - [124803] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationSalesPersonCommission woag WHERE woag.WorkOrderAutoGenerationId in (3683640, 3683641, 3683642)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 02:17:20,112 - [124803] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-21 02:17:20,170 - [124803] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupAutoGenerationSourceMapping woag WHERE woag.WorkOrderAutoGenerationId in (3683640, 3683641, 3683642)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 02:17:20,491 - [124803] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-21 02:17:20,545 - [124803] - 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 (3683640, 3683641, 3683642)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 02:17:20,890 - [124803] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-21 02:17:20,949 - [124803] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from CRM.LeadNote woag WHERE woag.RefId in (3683640, 3683641, 3683642) and woag.RefType = 'TempWorkorder';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 02:17:21,275 - [124803] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-21 02:17:21,391 - [124803] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment woagca WHERE woagca.WorkOrderAutoGenerationId in (3683640, 3683641, 3683642);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 02:17:21,725 - [124803] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-21 02:17:21,797 - [124803] - src.utils.log - INFO - Updating temp tables - __SPLIT__ 2026-07-21 02:17:21,888 - [124803] - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyKey FROM Common.CompanyMaster cm WHERE CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 02:17:22,217 - [124803] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-21 02:17:22,292 - [124803] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 133 AND EnitityNumberType in ('SubWorkOrder'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 02:17:22,624 - [124803] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-21 02:17:22,691 - [124803] - src.utils.log - INFO - πŸ“ Executing: UPDATE Common.GenerateNumberConfig SET NextNumber = '22905' WHERE CompanyId = 133 AND EnitityNumberType in ('SubWorkOrder');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 02:17:23,022 - [124803] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-21 02:17:23,093 - [124803] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-21 02:17:23,163 - [124803] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishHistory: 3 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 02:17:23,528 - [124803] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into ServiceCore.WorkOrderAutoGenerationPublishHistory - __SPLIT__ 2026-07-21 02:17:24,546 - [124803] - src.utils.log - INFO - βœ… All 3 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishHistory in 1 batches - __SPLIT__ 2026-07-21 02:17:24,617 - [124803] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationPublishHistoryId, WorkOrderNo, ServiceSetupId FROM ServiceCore.WorkOrderAutoGenerationPublishHistory WHERE ServiceSetupId = 150709 AND WorkOrderNo IN ('1855327', '8039838', '4668912') AND GenerateWorkOrderHistoryId = 124803;... (Thread: ThreadPoolExecutor-75_0) - __SPLIT__ 2026-07-21 02:17:25,099 - [124803] - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-07-21 02:17:25,167 - [124803] - src.utils.log - INFO - 🏁 Final merged rows: 3 - __SPLIT__ 2026-07-21 02:17:25,240 - [124803] - src.utils.log - INFO - Sequential Insertion in work order tables begin - __SPLIT__ 2026-07-21 02:17:25,307 - [124803] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-21 02:17:25,375 - [124803] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderServices: 3 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 02:17:25,718 - [124803] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into ServiceCore.WorkOrderServices - __SPLIT__ 2026-07-21 02:17:26,766 - [124803] - src.utils.log - INFO - βœ… All 3 rows inserted successfully into ServiceCore.WorkOrderServices in 1 batches - __SPLIT__ 2026-07-21 02:17:26,833 - [124803] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderAppliedDiscount: - __SPLIT__ 2026-07-21 02:17:26,900 - [124803] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderSalesPersonCommission: - __SPLIT__ 2026-07-21 02:17:26,960 - [124803] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderCommissionAdjustment: - __SPLIT__ 2026-07-21 02:17:27,024 - [124803] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderCrew: - __SPLIT__ 2026-07-21 02:17:27,099 - [124803] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkorderSourceMapping: - __SPLIT__ 2026-07-21 02:17:27,163 - [124803] - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-07-21 02:17:27,225 - [124803] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-21 02:17:27,302 - [124803] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishServices: 3 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 02:17:27,637 - [124803] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into ServiceCore.WorkOrderAutoGenerationPublishServices - __SPLIT__ 2026-07-21 02:17:28,638 - [124803] - src.utils.log - INFO - βœ… All 3 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishServices in 1 batches - __SPLIT__ 2026-07-21 02:17:28,699 - [124803] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-21 02:17:28,763 - [124803] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.SubWorkOrder: 3 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 02:17:29,110 - [124803] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into ServiceCore.SubWorkOrder - __SPLIT__ 2026-07-21 02:17:30,248 - [124803] - src.utils.log - INFO - βœ… All 3 rows inserted successfully into ServiceCore.SubWorkOrder in 1 batches - __SPLIT__ 2026-07-21 02:17:30,314 - [124803] - src.utils.log - INFO - πŸ” Fetching data: Select * From ServiceCore.SubWorkOrder where WorkOrderId in (2159146, 2159147, 2159148)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 02:17:30,654 - [124803] - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-07-21 02:17:30,716 - [124803] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-21 02:17:30,776 - [124803] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.subWorkOrderIssue: 3 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 02:17:31,108 - [124803] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into ServiceAuto.subWorkOrderIssue - __SPLIT__ 2026-07-21 02:17:32,018 - [124803] - src.utils.log - INFO - βœ… All 3 rows inserted successfully into ServiceAuto.subWorkOrderIssue in 1 batches - __SPLIT__ 2026-07-21 02:17:32,093 - [124803] - src.utils.log - INFO - πŸ” Fetching data: Select SubWorkOrderIssueId, SubWorkOrderId, ModifiedBy From ServiceAuto.subWorkOrderIssue where SubWorkOrderId in (230502, 230504, 230503) and ModifiedBy in ('999999999', '1000000000', '1000000001')... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 02:17:32,428 - [124803] - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-07-21 02:17:32,492 - [124803] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceAuto.subWorkOrderIssue SET ModifiedBy = 'abcdallas' WHERE ModifiedBy IN ('999999999', '1000000000', '1000000001'); ... (Thread: ThreadPoolExecutor-76_0) - __SPLIT__ 2026-07-21 02:17:32,851 - [124803] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-21 02:17:32,930 - [124803] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-21 02:17:32,992 - [124803] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.subWOIssueRepair: 3 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 02:17:33,328 - [124803] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into ServiceAuto.subWOIssueRepair - __SPLIT__ 2026-07-21 02:17:34,197 - [124803] - src.utils.log - INFO - βœ… All 3 rows inserted successfully into ServiceAuto.subWOIssueRepair in 1 batches - __SPLIT__ 2026-07-21 02:17:34,266 - [124803] - src.utils.log - INFO - πŸ” Fetching data: Select IssueRepairId, ModifiedBy From ServiceAuto.subWOIssueRepair where SubWorkOrderIssueId in (192700, 192701, 192702)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 02:17:34,591 - [124803] - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-07-21 02:17:34,657 - [124803] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceAuto.subWOIssueRepair SET ModifiedBy = 'abcdallas' WHERE ModifiedBy IN ('0___TMP___192700', '0___TMP___192701', '0___TMP___192702') AND CreatedDate = '2026-07-20 22:17:30.714'; ... (Thread: ThreadPoolExecutor-77_0) - __SPLIT__ 2026-07-21 02:17:34,996 - [124803] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-21 02:17:35,066 - [124803] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-21 02:17:35,127 - [124803] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.SubWOIssueRepairLabor: 6 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 02:17:35,457 - [124803] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 6) into ServiceAuto.SubWOIssueRepairLabor - __SPLIT__ 2026-07-21 02:17:36,458 - [124803] - src.utils.log - INFO - βœ… All 6 rows inserted successfully into ServiceAuto.SubWOIssueRepairLabor in 1 batches - __SPLIT__ 2026-07-21 02:17:36,527 - [124803] - 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 = 150709... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 02:17:36,855 - [124803] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-21 02:17:36,922 - [124803] - src.utils.log - INFO - Size of Transaction: 3 - __SPLIT__ 2026-07-21 02:17:37,043 - [124803] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 3 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 02:17:37,511 - [124803] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-07-21 02:17:38,512 - [124803] - src.utils.log - INFO - βœ… All 3 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-07-21 02:17:38,707 - [124803] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-07-21 02:17:38,781 - [124803] - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionId, ModifiedBy, TransactionDate as InvoiceDate from Billing.[Transaction] t WHERE t.ModifiedBy in (12345678910, 12345678911, 12345678912) and t.CompanyId = 133 AND t.TransactionType ='Invoice' AND t.CreatedDate = '2026-07-20 22:17:36.917';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 02:17:39,217 - [124803] - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-07-21 02:17:39,285 - [124803] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150709;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 02:17:39,616 - [124803] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-21 02:17:39,691 - [124803] - src.utils.log - INFO - πŸ“ Executing: UPDATE Billing.[Transaction] SET ModifiedBy = NULL WHERE ModifiedBy IN (12345678910,12345678911,12345678912) AND CreatedDate = '2026-07-20 22:17:36.917'; ... (Thread: ThreadPoolExecutor-78_0) - __SPLIT__ 2026-07-21 02:17:40,175 - [124803] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-21 02:17:40,249 - [124803] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-21 02:17:40,317 - [124803] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 3 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 02:17:40,663 - [124803] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into Billing.Invoice - __SPLIT__ 2026-07-21 02:17:41,677 - [124803] - src.utils.log - INFO - βœ… All 3 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-07-21 02:17:41,751 - [124803] - src.utils.log - INFO - πŸ” Fetching data: SELECT InvoiceId, WorkOrderNo FROM Billing.Invoice i WHERE i.WorkOrderNo in ('1428859', '1428861', '1428860')... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 02:17:42,770 - [124803] - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-07-21 02:17:42,848 - [124803] - 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 = 150709 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 02:17:43,187 - [124803] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-21 02:17:43,258 - [124803] - 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 = 150709 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 02:17:43,597 - [124803] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-21 02:17:43,708 - [124803] - 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 = 150709 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 02:17:44,031 - [124803] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-21 02:17:44,094 - [124803] - 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 = 150709 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 02:17:44,422 - [124803] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-21 02:17:44,494 - [124803] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150709;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 02:17:44,824 - [124803] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-21 02:17:44,898 - [124803] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId, AppliedDiscountAmt as AppliedDiscountAmount,IsActive ,ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 150709;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 02:17:45,219 - [124803] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-21 02:17:45,289 - [124803] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId,IsActive,DiscountAmount, IsDiscountPercent,DiscountPercent,DiscountDescription , ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 150709;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 02:17:45,621 - [124803] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-21 02:17:45,688 - [124803] - src.utils.log - INFO - Sequential Insertion in invoice tables begin - __SPLIT__ 2026-07-21 02:17:45,743 - [124803] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.AccountDiscountSetup: - __SPLIT__ 2026-07-21 02:17:45,807 - [124803] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-21 02:17:45,873 - [124803] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceCharges: 3 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 02:17:46,209 - [124803] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into Billing.InvoiceCharges - __SPLIT__ 2026-07-21 02:17:47,206 - [124803] - src.utils.log - INFO - βœ… All 3 rows inserted successfully into Billing.InvoiceCharges in 1 batches - __SPLIT__ 2026-07-21 02:17:47,266 - [124803] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.DiscountApplied: - __SPLIT__ 2026-07-21 02:17:47,338 - [124803] - src.utils.log - INFO - Invoice Publish Done - __SPLIT__ 2026-07-21 02:17:47,405 - [124803] - src.utils.log - INFO - Updating Next GenerationDate - __SPLIT__ 2026-07-21 02:17:47,468 - [124803] - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, MAX(NextWorkOrderGenerationDate) AS MaxNextWorkOrderGeneration FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 124803 GROUP BY ServiceSetupId; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 02:17:47,846 - [124803] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-21 02:17:47,924 - [124803] - src.utils.log - INFO - πŸ”„ Updating next gen date sequentially: inside update_next_workorder_generation - __SPLIT__ 2026-07-21 02:17:48,132 - [124803] - src.utils.log - INFO - πŸ›  Creating temp table #tbl_8e02bd9d12 - __SPLIT__ 2026-07-21 02:17:48,464 - [124803] - src.utils.log - INFO - πŸ“Œ Bulk inserting 1 rows into #tbl_8e02bd9d12 - __SPLIT__ 2026-07-21 02:17:48,795 - [124803] - src.utils.log - INFO - πŸ” Running MERGE update to apply changes - __SPLIT__ 2026-07-21 02:17:49,005 - [124803] - src.utils.log - INFO - βœ” SQL reported affected rows: 1 - __SPLIT__ 2026-07-21 02:17:49,211 - [124803] - src.utils.log - INFO - πŸ” Verified successfully updated 1 rows via #tbl_8e02bd9d12 - __SPLIT__ 2026-07-21 02:17:49,295 - [124803] - src.utils.log - INFO - πŸŽ‰ Successfully updated NextGenerationDate using temp table #tbl_8e02bd9d12 - __SPLIT__ 2026-07-21 02:17:49,371 - [124803] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 124803 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 02:17:49,703 - [124803] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-21 02:17:49,773 - [124803] - src.utils.log - INFO - Sequential deletion from temp tables begin - __SPLIT__ 2026-07-21 02:17:49,840 - [124803] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId in (3683640, 3683641, 3683642) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 02:17:50,310 - [124803] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-21 02:17:50,382 - [124803] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId in (3683640, 3683641, 3683642) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 02:17:50,798 - [124803] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-21 02:17:50,866 - [124803] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId in (3683640, 3683641, 3683642) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 02:17:51,200 - [124803] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-21 02:17:51,273 - [124803] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId in (3683640, 3683641, 3683642) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 02:17:51,678 - [124803] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-21 02:17:51,751 - [124803] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId in (3683640, 3683641, 3683642) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 02:17:52,141 - [124803] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-21 02:17:52,204 - [124803] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (3683640, 3683641, 3683642) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 02:17:52,540 - [124803] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-21 02:17:52,609 - [124803] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId in (3683640, 3683641, 3683642) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 02:17:52,940 - [124803] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-21 02:17:53,003 - [124803] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (3683640, 3683641, 3683642) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 02:17:53,461 - [124803] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-21 02:17:53,535 - [124803] - src.utils.log - INFO - Work order published ids: (3683640, 3683641, 3683642) - __SPLIT__ 2026-07-21 02:17:53,597 - [124803] - src.utils.log - INFO - Time took to perform operation in publishing [124803]: 47.98 - __SPLIT__ 2026-07-21 02:17:53,665 - [124803] - src.utils.log - INFO - Publish Completed for GenerateWorkOrderHistoryId: [124803] - __SPLIT__ 2026-07-21 02:17:53,733 - [124803] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-07-20 22:17:53.535' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124803;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 02:17:54,063 - [124803] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-21 05:58:24,160 - 12690 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=12690 - __SPLIT__ 2026-07-21 05:58:24,292 - 12690 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 12690 - __SPLIT__ 2026-07-21 05:58:24,369 - 12690 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-21 05:58:24,435 - 12690 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 05:58:26,634 - 12690 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-21 05:58:26,702 - 12690 - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-07-21 05:58:26,773 - 12690 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 12690;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 05:58:27,143 - 12690 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-21 05:58:27,213 - 12690 - 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 = 12690), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 12690), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 12690 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-07-21 05:58:27,619 - 12690 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-21 05:58:27,689 - 12690 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 12690;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 05:58:28,058 - 12690 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-21 05:58:28,121 - 12690 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Failed', WoGenErrorInfo ='No setups found in given range', WorkOrderStatusDateTime = '2026-07-21 01:58:28.121' WHERE GenerateWorkOrderHistoryId = 12690;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 05:58:28,497 - 12690 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-21 05:58:28,571 - 12690 - src.utils.log - INFO - No Setup Found Error:No setups found for GenerateWorkOrderHistoryid: 12690 - __SPLIT__ 2026-07-21 08:20:45,109 - 124808 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=124808 - __SPLIT__ 2026-07-21 08:20:45,240 - 124808 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 124808 - __SPLIT__ 2026-07-21 08:20:45,314 - 124808 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-21 08:20:45,377 - 124808 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 08:20:47,417 - 124808 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-21 08:20:47,486 - 124808 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-07-21 08:20:47,551 - 124808 - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-07-21 08:20:47,617 - 124808 - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-07-21 08:20:47,683 - 124808 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 124808;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 08:20:49,655 - 124808 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-21 08:20:49,718 - 124808 - 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 = 124808), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 124808), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 124808 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-07-21 08:20:50,106 - 124808 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-21 08:20:50,175 - 124808 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 124808;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 08:20:50,534 - 124808 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-21 08:20:50,603 - 124808 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-07-21 08:20:50,675 - 124808 - 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 = 14637... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 08:20:51,017 - 124808 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-21 08:20:51,083 - 124808 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-07-21 08:20:51,153 - 124808 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-07-21 08:20:51,220 - 124808 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150711;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 08:20:51,548 - 124808 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-21 08:20:51,668 - 124808 - 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-07-21 00:00:00' and ServiceDate <= '2026-12-31 00:00:00' and ServiceSetupId = 150711 and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 08:20:52,010 - 124808 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-21 08:20:52,634 - 124808 - src.utils.log - INFO - Generating work orders for setup: 150711 - __SPLIT__ 2026-07-21 08:20:52,741 - 124808 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 11437;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 08:20:53,080 - 124808 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-21 08:20:53,160 - 124808 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 11437;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 08:20:53,497 - 124808 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-21 08:20:53,605 - 124808 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-07-21 08:20:53,676 - 124808 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=133 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 08:20:54,009 - 124808 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-21 08:20:54,082 - 124808 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-07-21 08:20:54,147 - 124808 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-07-21 08:20:54,225 - 124808 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150711 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 08:20:54,633 - 124808 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-21 08:20:54,708 - 124808 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150711 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 08:20:55,088 - 124808 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-21 08:20:55,161 - 124808 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150711 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 08:20:55,504 - 124808 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-21 08:20:55,572 - 124808 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150711 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 08:20:55,961 - 124808 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-21 08:20:56,083 - 124808 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150711 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 08:20:56,457 - 124808 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-21 08:20:56,530 - 124808 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150711 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 08:20:56,874 - 124808 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-21 08:20:56,940 - 124808 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150711 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 08:20:57,276 - 124808 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-21 08:20:57,343 - 124808 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150711 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 08:20:57,798 - 124808 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-21 08:20:57,870 - 124808 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-21 08:20:57,937 - 124808 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 5 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 08:20:58,312 - 124808 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 5) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-07-21 08:20:59,516 - 124808 - src.utils.log - INFO - βœ… All 5 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-07-21 08:20:59,588 - 124808 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 5 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-07-16 14:51:40.778' and ServiceSetupId = 150711... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 08:20:59,960 - 124808 - src.utils.log - INFO - βœ… Fetched 5 rows - __SPLIT__ 2026-07-21 08:21:00,036 - 124808 - src.utils.log - INFO - Id's of work order inserted to DB: [3683659 3683660 3683661 3683662 3683663] - __SPLIT__ 2026-07-21 08:21:00,117 - 124808 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150711;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 08:21:00,452 - 124808 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-21 08:21:00,526 - 124808 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-07-21 08:21:00,591 - 124808 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId = 150711... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 08:21:00,923 - 124808 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-21 08:21:01,041 - 124808 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId = 150711... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 08:21:01,373 - 124808 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-21 08:21:01,451 - 124808 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId = 150711... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 08:21:01,786 - 124808 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-21 08:21:01,859 - 124808 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId = 150711... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 08:21:02,202 - 124808 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-21 08:21:02,277 - 124808 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId = 150711... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 08:21:02,616 - 124808 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-21 08:21:02,684 - 124808 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId = 150711;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 08:21:03,018 - 124808 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-21 08:21:03,093 - 124808 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId = 150711;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 08:21:03,429 - 124808 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-21 08:21:03,499 - 124808 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId = 150711;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 08:21:04,174 - 124808 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-21 08:21:04,244 - 124808 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId = 150711;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 08:21:04,578 - 124808 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-21 08:21:04,653 - 124808 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-07-21 08:21:04,717 - 124808 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-07-21 08:21:04,788 - 124808 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-07-21 08:21:04,860 - 124808 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.CommunicationPreferencesServiceReportNotification: - __SPLIT__ 2026-07-21 08:21:04,980 - 124808 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-07-21 08:21:05,047 - 124808 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-21 08:21:05,120 - 124808 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ('3683661', '3683663', '3683659', '3683662', '3683660') ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 08:21:05,454 - 124808 - src.utils.log - INFO - βœ… Fetched 5 rows - __SPLIT__ 2026-07-21 08:21:05,519 - 124808 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.SetupAutoGenerationSourceMapping: 0 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 08:21:05,853 - 124808 - src.utils.log - INFO - βœ… All 0 rows inserted successfully into ServiceCore.SetupAutoGenerationSourceMapping in 0 batches - __SPLIT__ 2026-07-21 08:21:05,918 - 124808 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-07-21 08:21:05,983 - 124808 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationAppliedDiscount: - __SPLIT__ 2026-07-21 08:21:06,052 - 124808 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-07-21 08:21:06,122 - 124808 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-21 08:21:06,193 - 124808 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3683659, 3683660, 3683661, 3683662, 3683663) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 08:21:06,532 - 124808 - src.utils.log - INFO - βœ… Fetched 5 rows - __SPLIT__ 2026-07-21 08:21:06,604 - 124808 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.SubWorkOrderAutoGeneration: 5 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 08:21:06,955 - 124808 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 5) into ServiceCore.SubWorkOrderAutoGeneration - __SPLIT__ 2026-07-21 08:21:08,120 - 124808 - src.utils.log - INFO - βœ… All 5 rows inserted successfully into ServiceCore.SubWorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-07-21 08:21:08,190 - 124808 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-07-21 08:21:08,257 - 124808 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: - __SPLIT__ 2026-07-21 08:21:08,325 - 124808 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-07-21 08:21:08,398 - 124808 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: - __SPLIT__ 2026-07-21 08:21:08,468 - 124808 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-07-21 08:21:08,586 - 124808 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCrews: - __SPLIT__ 2026-07-21 08:21:08,643 - 124808 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-07-21 08:21:08,710 - 124808 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationServices: - __SPLIT__ 2026-07-21 08:21:08,778 - 124808 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-07-21 08:21:08,842 - 124808 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-21 08:21:08,900 - 124808 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3683659, 3683660, 3683661, 3683662, 3683663) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 08:21:09,234 - 124808 - src.utils.log - INFO - βœ… Fetched 5 rows - __SPLIT__ 2026-07-21 08:21:09,295 - 124808 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 5 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 08:21:09,637 - 124808 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 5) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-07-21 08:21:10,646 - 124808 - src.utils.log - INFO - βœ… All 5 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-07-21 08:21:10,705 - 124808 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-07-21 08:21:10,773 - 124808 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 124808;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 08:21:11,106 - 124808 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-21 08:21:11,178 - 124808 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-07-21 08:21:11,242 - 124808 - src.utils.log - INFO - Time took to perform operation: 25.86 - __SPLIT__ 2026-07-21 08:21:27,555 - [124808] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[3683659, 3683660] user_id=43135 company_id=133 project_id=[124808] publish_all=False - __SPLIT__ 2026-07-21 08:21:27,672 - [124808] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[3683659, 3683660] user_id=43135 company_id=133 project_id=[124808] publish_all=False - __SPLIT__ 2026-07-21 08:21:27,734 - [124808] - src.utils.log - INFO - Sequential Work order publish in progress for GenerateWorkOrderHistoryId: [124808] - __SPLIT__ 2026-07-21 08:21:27,800 - [124808] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-21 08:21:27,863 - [124808] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 08:21:30,026 - [124808] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-21 08:21:30,090 - [124808] - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-07-21 08:21:30,153 - [124808] - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-07-21 08:21:30,208 - [124808] - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-07-21 08:21:30,272 - [124808] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'InProgress' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124808;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 08:21:32,275 - [124808] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-21 08:21:32,346 - [124808] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (3683659, 3683660)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 08:21:32,689 - [124808] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-21 08:21:32,751 - [124808] - src.utils.log - INFO - Inside get_work_order_table - __SPLIT__ 2026-07-21 08:21:32,814 - [124808] - 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 = 150711 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 08:21:33,159 - [124808] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-21 08:21:33,224 - [124808] - 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 = 150711 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 08:21:33,569 - [124808] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-21 08:21:33,639 - [124808] - 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 = 150711 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 08:21:33,983 - [124808] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-21 08:21:34,046 - [124808] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder,BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 08:21:34,435 - [124808] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-21 08:21:34,503 - [124808] - 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-07-21 08:21:34,845 - [124808] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-21 08:21:34,916 - [124808] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder, BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 08:21:35,262 - [124808] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-21 08:21:35,331 - [124808] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 2 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 133 AND EnitityNumberType = 'WorkOrder'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 08:21:35,677 - [124808] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-21 08:21:35,748 - [124808] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 2 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 133 AND EnitityNumberType = 'Invoice'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 08:21:36,096 - [124808] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-21 08:21:36,170 - [124808] - 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 = 150711... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 08:21:36,523 - [124808] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-21 08:21:36,597 - [124808] - src.utils.log - INFO - πŸ” Fetching data: SELECT x.CompanyId FROM CRM.CompanyMaster x WHERE CompanyKey = 'abcdallas';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 08:21:36,943 - [124808] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-21 08:21:37,010 - [124808] - src.utils.log - INFO - πŸ” Fetching data: SELECT CollectionStatus,IsHold,AccountNo FROM CRM.Account a WHERE a.AccountNo = '15024' and a.CompanyId = 121;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 08:21:37,355 - [124808] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-21 08:21:37,427 - [124808] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderNo FROM ServiceCore.WorkOrder WHERE WorkOrderNo IN ('1428873', '1428874') AND CompanyId = 133 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 08:21:37,772 - [124808] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-21 08:21:37,838 - [124808] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrder (skip triggers): 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 08:21:38,372 - [124808] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrder (triggers skipped) - __SPLIT__ 2026-07-21 08:21:39,548 - [124808] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrder in 1 batches (triggers skipped) - __SPLIT__ 2026-07-21 08:21:39,807 - [124808] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-07-21 08:21:39,865 - [124808] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.ServiceSetup SET IsInitialWoGenerated = 1 WHERE CompanyId = 133 AND ServiceSetupId = 150711;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 08:21:40,210 - [124808] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-21 08:21:40,339 - [124808] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkorderId, WorkOrderNo FROM ServiceCore.WorkOrder wo WHERE wo.WorkOrderNo IN ('1428873', '1428874') AND wo.AccountNumber = '15024' AND wo.CompanyId = 133 ... (Thread: ThreadPoolExecutor-79_0) - __SPLIT__ 2026-07-21 08:21:40,687 - [124808] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-21 08:21:40,760 - [124808] - src.utils.log - INFO - Sequential fetching temp table records - __SPLIT__ 2026-07-21 08:21:40,827 - [124808] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationServices woag WHERE woag.WorkOrderAutoGenerationId in (3683659, 3683660)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 08:21:41,209 - [124808] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-21 08:21:41,273 - [124808] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SubWorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (3683659, 3683660)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 08:21:41,620 - [124808] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-21 08:21:41,694 - [124808] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationCrews woag WHERE woag.WorkOrderAutoGenerationId in (3683659, 3683660)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 08:21:42,064 - [124808] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-21 08:21:42,133 - [124808] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationSalesPersonCommission woag WHERE woag.WorkOrderAutoGenerationId in (3683659, 3683660)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 08:21:42,483 - [124808] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-21 08:21:42,543 - [124808] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupAutoGenerationSourceMapping woag WHERE woag.WorkOrderAutoGenerationId in (3683659, 3683660)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 08:21:42,894 - [124808] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-21 08:21:42,961 - [124808] - 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 (3683659, 3683660)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 08:21:43,326 - [124808] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-21 08:21:43,383 - [124808] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from CRM.LeadNote woag WHERE woag.RefId in (3683659, 3683660) and woag.RefType = 'TempWorkorder';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 08:21:43,724 - [124808] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-21 08:21:43,840 - [124808] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment woagca WHERE woagca.WorkOrderAutoGenerationId in (3683659, 3683660);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 08:21:44,185 - [124808] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-21 08:21:44,255 - [124808] - src.utils.log - INFO - Updating temp tables - __SPLIT__ 2026-07-21 08:21:44,341 - [124808] - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyKey FROM Common.CompanyMaster cm WHERE CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 08:21:44,687 - [124808] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-21 08:21:44,762 - [124808] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 133 AND EnitityNumberType in ('SubWorkOrder'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 08:21:45,111 - [124808] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-21 08:21:45,181 - [124808] - src.utils.log - INFO - πŸ“ Executing: UPDATE Common.GenerateNumberConfig SET NextNumber = '22911' WHERE CompanyId = 133 AND EnitityNumberType in ('SubWorkOrder');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 08:21:45,535 - [124808] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-21 08:21:45,608 - [124808] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-21 08:21:45,678 - [124808] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishHistory: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 08:21:46,063 - [124808] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationPublishHistory - __SPLIT__ 2026-07-21 08:21:47,132 - [124808] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishHistory in 1 batches - __SPLIT__ 2026-07-21 08:21:47,202 - [124808] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationPublishHistoryId, WorkOrderNo, ServiceSetupId FROM ServiceCore.WorkOrderAutoGenerationPublishHistory WHERE ServiceSetupId = 150711 AND WorkOrderNo IN ('4304830', '3789365') AND GenerateWorkOrderHistoryId = 124808;... (Thread: ThreadPoolExecutor-80_0) - __SPLIT__ 2026-07-21 08:21:47,729 - [124808] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-21 08:21:47,802 - [124808] - src.utils.log - INFO - 🏁 Final merged rows: 2 - __SPLIT__ 2026-07-21 08:21:47,881 - [124808] - src.utils.log - INFO - Sequential Insertion in work order tables begin - __SPLIT__ 2026-07-21 08:21:47,954 - [124808] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-21 08:21:48,023 - [124808] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderServices: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 08:21:48,385 - [124808] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderServices - __SPLIT__ 2026-07-21 08:21:49,487 - [124808] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderServices in 1 batches - __SPLIT__ 2026-07-21 08:21:49,557 - [124808] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderAppliedDiscount: - __SPLIT__ 2026-07-21 08:21:49,626 - [124808] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderSalesPersonCommission: - __SPLIT__ 2026-07-21 08:21:49,696 - [124808] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderCommissionAdjustment: - __SPLIT__ 2026-07-21 08:21:49,803 - [124808] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderCrew: - __SPLIT__ 2026-07-21 08:21:49,868 - [124808] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkorderSourceMapping: - __SPLIT__ 2026-07-21 08:21:49,939 - [124808] - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-07-21 08:21:50,013 - [124808] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-21 08:21:50,076 - [124808] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishServices: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 08:21:50,426 - [124808] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationPublishServices - __SPLIT__ 2026-07-21 08:21:51,472 - [124808] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishServices in 1 batches - __SPLIT__ 2026-07-21 08:21:51,538 - [124808] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-21 08:21:51,603 - [124808] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.SubWorkOrder: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 08:21:51,973 - [124808] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.SubWorkOrder - __SPLIT__ 2026-07-21 08:21:53,206 - [124808] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.SubWorkOrder in 1 batches - __SPLIT__ 2026-07-21 08:21:53,269 - [124808] - src.utils.log - INFO - πŸ” Fetching data: Select * From ServiceCore.SubWorkOrder where WorkOrderId in (2159160, 2159161)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 08:21:53,628 - [124808] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-21 08:21:53,700 - [124808] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-21 08:21:53,768 - [124808] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.subWorkOrderIssue: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 08:21:54,128 - [124808] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceAuto.subWorkOrderIssue - __SPLIT__ 2026-07-21 08:21:55,123 - [124808] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceAuto.subWorkOrderIssue in 1 batches - __SPLIT__ 2026-07-21 08:21:55,188 - [124808] - src.utils.log - INFO - πŸ” Fetching data: Select SubWorkOrderIssueId, SubWorkOrderId, ModifiedBy From ServiceAuto.subWorkOrderIssue where SubWorkOrderId in (230509, 230510) and ModifiedBy in ('999999999', '1000000000')... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 08:21:55,539 - [124808] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-21 08:21:55,597 - [124808] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceAuto.subWorkOrderIssue SET ModifiedBy = 'abcdallas' WHERE ModifiedBy IN ('999999999', '1000000000'); ... (Thread: ThreadPoolExecutor-81_0) - __SPLIT__ 2026-07-21 08:21:55,978 - [124808] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-21 08:21:56,044 - [124808] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-21 08:21:56,108 - [124808] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.subWOIssueRepair: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 08:21:56,454 - [124808] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceAuto.subWOIssueRepair - __SPLIT__ 2026-07-21 08:21:57,355 - [124808] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceAuto.subWOIssueRepair in 1 batches - __SPLIT__ 2026-07-21 08:21:57,433 - [124808] - src.utils.log - INFO - πŸ” Fetching data: Select IssueRepairId, ModifiedBy From ServiceAuto.subWOIssueRepair where SubWorkOrderIssueId in (192711, 192712)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 08:21:57,777 - [124808] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-21 08:21:57,837 - [124808] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceAuto.subWOIssueRepair SET ModifiedBy = 'abcdallas' WHERE ModifiedBy IN ('0___TMP___192711', '0___TMP___192712') AND CreatedDate = '2026-07-21 04:21:53.698'; ... (Thread: ThreadPoolExecutor-82_0) - __SPLIT__ 2026-07-21 08:21:58,193 - [124808] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-21 08:21:58,269 - [124808] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-21 08:21:58,333 - [124808] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.SubWOIssueRepairLabor: 4 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 08:21:58,692 - [124808] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 4) into ServiceAuto.SubWOIssueRepairLabor - __SPLIT__ 2026-07-21 08:21:59,734 - [124808] - src.utils.log - INFO - βœ… All 4 rows inserted successfully into ServiceAuto.SubWOIssueRepairLabor in 1 batches - __SPLIT__ 2026-07-21 08:21:59,798 - [124808] - 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 = 150711... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 08:22:00,135 - [124808] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-21 08:22:00,219 - [124808] - src.utils.log - INFO - Size of Transaction: 2 - __SPLIT__ 2026-07-21 08:22:00,330 - [124808] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 08:22:00,817 - [124808] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-07-21 08:22:01,859 - [124808] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-07-21 08:22:02,058 - [124808] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-07-21 08:22:02,121 - [124808] - 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 = 133 AND t.TransactionType ='Invoice' AND t.CreatedDate = '2026-07-21 04:22:00.213';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 08:22:09,731 - [124808] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-21 08:22:09,861 - [124808] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150711;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 08:22:10,211 - [124808] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-21 08:22:10,289 - [124808] - src.utils.log - INFO - πŸ“ Executing: UPDATE Billing.[Transaction] SET ModifiedBy = NULL WHERE ModifiedBy IN (12345678910,12345678911) AND CreatedDate = '2026-07-21 04:22:00.213'; ... (Thread: ThreadPoolExecutor-83_0) - __SPLIT__ 2026-07-21 08:22:10,731 - [124808] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-21 08:22:10,810 - [124808] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-21 08:22:10,883 - [124808] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 08:22:11,244 - [124808] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.Invoice - __SPLIT__ 2026-07-21 08:22:12,320 - [124808] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-07-21 08:22:12,390 - [124808] - src.utils.log - INFO - πŸ” Fetching data: SELECT InvoiceId, WorkOrderNo FROM Billing.Invoice i WHERE i.WorkOrderNo in ('1428873', '1428874')... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 08:22:13,405 - [124808] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-21 08:22:13,482 - [124808] - 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 = 150711 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 08:22:13,831 - [124808] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-21 08:22:13,903 - [124808] - 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 = 150711 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 08:22:14,254 - [124808] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-21 08:22:14,332 - [124808] - 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 = 150711 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 08:22:14,680 - [124808] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-21 08:22:14,752 - [124808] - 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 = 150711 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 08:22:15,107 - [124808] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-21 08:22:15,192 - [124808] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150711;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 08:22:15,544 - [124808] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-21 08:22:15,670 - [124808] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId, AppliedDiscountAmt as AppliedDiscountAmount,IsActive ,ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 150711;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 08:22:16,018 - [124808] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-21 08:22:16,084 - [124808] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId,IsActive,DiscountAmount, IsDiscountPercent,DiscountPercent,DiscountDescription , ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 150711;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 08:22:16,433 - [124808] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-21 08:22:16,499 - [124808] - src.utils.log - INFO - Sequential Insertion in invoice tables begin - __SPLIT__ 2026-07-21 08:22:16,555 - [124808] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.AccountDiscountSetup: - __SPLIT__ 2026-07-21 08:22:16,616 - [124808] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-21 08:22:16,675 - [124808] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceCharges: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 08:22:17,024 - [124808] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.InvoiceCharges - __SPLIT__ 2026-07-21 08:22:18,067 - [124808] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.InvoiceCharges in 1 batches - __SPLIT__ 2026-07-21 08:22:18,139 - [124808] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.DiscountApplied: - __SPLIT__ 2026-07-21 08:22:18,202 - [124808] - src.utils.log - INFO - Invoice Publish Done - __SPLIT__ 2026-07-21 08:22:18,263 - [124808] - src.utils.log - INFO - Updating Next GenerationDate - __SPLIT__ 2026-07-21 08:22:18,326 - [124808] - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, MAX(NextWorkOrderGenerationDate) AS MaxNextWorkOrderGeneration FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 124808 GROUP BY ServiceSetupId; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 08:22:18,670 - [124808] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-21 08:22:18,739 - [124808] - src.utils.log - INFO - πŸ”„ Updating next gen date sequentially: inside update_next_workorder_generation - __SPLIT__ 2026-07-21 08:22:18,938 - [124808] - src.utils.log - INFO - πŸ›  Creating temp table #tbl_87eb33fc9d - __SPLIT__ 2026-07-21 08:22:19,283 - [124808] - src.utils.log - INFO - πŸ“Œ Bulk inserting 1 rows into #tbl_87eb33fc9d - __SPLIT__ 2026-07-21 08:22:19,626 - [124808] - src.utils.log - INFO - πŸ” Running MERGE update to apply changes - __SPLIT__ 2026-07-21 08:22:19,833 - [124808] - src.utils.log - INFO - βœ” SQL reported affected rows: 1 - __SPLIT__ 2026-07-21 08:22:20,094 - [124808] - src.utils.log - INFO - πŸ” Verified successfully updated 1 rows via #tbl_87eb33fc9d - __SPLIT__ 2026-07-21 08:22:20,166 - [124808] - src.utils.log - INFO - πŸŽ‰ Successfully updated NextGenerationDate using temp table #tbl_87eb33fc9d - __SPLIT__ 2026-07-21 08:22:20,259 - [124808] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 124808 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 08:22:20,600 - [124808] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-21 08:22:20,671 - [124808] - src.utils.log - INFO - Sequential deletion from temp tables begin - __SPLIT__ 2026-07-21 08:22:20,749 - [124808] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId in (3683659, 3683660) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 08:22:21,230 - [124808] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-21 08:22:21,301 - [124808] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId in (3683659, 3683660) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 08:22:21,735 - [124808] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-21 08:22:21,806 - [124808] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId in (3683659, 3683660) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 08:22:22,157 - [124808] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-21 08:22:22,231 - [124808] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId in (3683659, 3683660) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 08:22:22,664 - [124808] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-21 08:22:22,738 - [124808] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId in (3683659, 3683660) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 08:22:23,091 - [124808] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-21 08:22:23,161 - [124808] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (3683659, 3683660) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 08:22:23,516 - [124808] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-21 08:22:23,592 - [124808] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId in (3683659, 3683660) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 08:22:23,940 - [124808] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-21 08:22:24,014 - [124808] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (3683659, 3683660) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 08:22:24,496 - [124808] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-21 08:22:24,564 - [124808] - src.utils.log - INFO - Work order published ids: (3683659, 3683660) - __SPLIT__ 2026-07-21 08:22:24,630 - [124808] - src.utils.log - INFO - Time took to perform operation in publishing [124808]: 56.83 - __SPLIT__ 2026-07-21 08:22:24,697 - [124808] - src.utils.log - INFO - Publish Completed for GenerateWorkOrderHistoryId: [124808] - __SPLIT__ 2026-07-21 08:22:24,766 - [124808] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-07-21 04:22:24.564' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124808;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 08:22:25,110 - [124808] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-21 08:46:16,609 - 12703 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=12703 - __SPLIT__ 2026-07-21 08:46:16,725 - 12703 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 12703 - __SPLIT__ 2026-07-21 08:46:16,795 - 12703 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-21 08:46:16,858 - 12703 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 08:46:19,072 - 12703 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-21 08:46:19,139 - 12703 - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-07-21 08:46:19,205 - 12703 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 12703;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 08:46:19,567 - 12703 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-21 08:46:19,630 - 12703 - 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 = 12703), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 12703), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 12703 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-07-21 08:46:20,022 - 12703 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-21 08:46:20,087 - 12703 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 12703;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 08:46:20,447 - 12703 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-21 08:46:20,512 - 12703 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-07-21 08:46:20,573 - 12703 - 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 = 13059... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 08:46:20,937 - 12703 - src.utils.log - INFO - βœ… Fetched 6 rows - __SPLIT__ 2026-07-21 08:46:21,008 - 12703 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-07-21 08:46:21,069 - 12703 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-07-21 08:46:21,131 - 12703 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 34443;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 08:46:21,488 - 12703 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-21 08:46:21,554 - 12703 - 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-07-21 00:00:00' and ServiceDate <= '2026-12-31 00:00:00' and ServiceSetupId = 34443 and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 08:46:21,926 - 12703 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-21 08:46:22,655 - 12703 - src.utils.log - INFO - Generating work orders for setup: 34443 - __SPLIT__ 2026-07-21 08:46:22,835 - 12703 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 1397;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 08:46:23,202 - 12703 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-21 08:46:23,273 - 12703 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 1397;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 08:46:23,640 - 12703 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-21 08:46:23,743 - 12703 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-07-21 08:46:23,807 - 12703 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=135 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 08:46:24,168 - 12703 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-21 08:46:24,234 - 12703 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-07-21 08:46:24,298 - 12703 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-07-21 08:46:24,359 - 12703 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34443 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 08:46:24,725 - 12703 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-21 08:46:24,792 - 12703 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34443 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 08:46:25,162 - 12703 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-21 08:46:25,228 - 12703 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34443 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 08:46:25,594 - 12703 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-21 08:46:25,667 - 12703 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34443 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 08:46:26,038 - 12703 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-21 08:46:26,102 - 12703 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34443 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 08:46:26,473 - 12703 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-21 08:46:26,590 - 12703 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34443 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 08:46:26,967 - 12703 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-21 08:46:27,039 - 12703 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34443 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 08:46:27,398 - 12703 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-21 08:46:27,468 - 12703 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34443 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 08:46:27,850 - 12703 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-21 08:46:27,918 - 12703 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-21 08:46:27,981 - 12703 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 3 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 08:46:28,374 - 12703 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-07-21 08:46:29,663 - 12703 - src.utils.log - INFO - βœ… All 3 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-07-21 08:46:29,733 - 12703 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 3 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-07-16 14:51:40.778' and ServiceSetupId = 34443... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 08:46:30,104 - 12703 - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-07-21 08:46:30,176 - 12703 - src.utils.log - INFO - Id's of work order inserted to DB: [2737894 2737895 2737896] - __SPLIT__ 2026-07-21 08:46:30,243 - 12703 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 34443;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 08:46:30,609 - 12703 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-21 08:46:30,675 - 12703 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-07-21 08:46:30,749 - 12703 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId = 34443... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 08:46:31,118 - 12703 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-21 08:46:31,189 - 12703 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId = 34443... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 08:46:31,556 - 12703 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-21 08:46:31,680 - 12703 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId = 34443... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 08:46:32,042 - 12703 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-21 08:46:32,114 - 12703 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId = 34443... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 08:46:32,480 - 12703 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-21 08:46:32,549 - 12703 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId = 34443... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 08:46:32,917 - 12703 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-21 08:46:32,987 - 12703 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId = 34443;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 08:46:33,353 - 12703 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-21 08:46:33,422 - 12703 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId = 34443;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 08:46:33,788 - 12703 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-21 08:46:33,857 - 12703 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId = 34443;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 08:46:34,241 - 12703 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-21 08:46:34,305 - 12703 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId = 34443;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 08:46:34,670 - 12703 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-21 08:46:34,749 - 12703 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-07-21 08:46:34,823 - 12703 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-07-21 08:46:34,884 - 12703 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-07-21 08:46:34,950 - 12703 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.CommunicationPreferencesServiceReportNotification: - __SPLIT__ 2026-07-21 08:46:35,022 - 12703 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-07-21 08:46:35,095 - 12703 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-21 08:46:35,212 - 12703 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ('2737894', '2737895', '2737896') ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 08:46:35,576 - 12703 - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-07-21 08:46:35,643 - 12703 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.SetupAutoGenerationSourceMapping: 0 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 08:46:36,034 - 12703 - src.utils.log - INFO - βœ… All 0 rows inserted successfully into ServiceCore.SetupAutoGenerationSourceMapping in 0 batches - __SPLIT__ 2026-07-21 08:46:36,104 - 12703 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-07-21 08:46:36,206 - 12703 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationAppliedDiscount: - __SPLIT__ 2026-07-21 08:46:36,271 - 12703 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-07-21 08:46:36,337 - 12703 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-21 08:46:36,405 - 12703 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (2737896, 2737894, 2737895) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 08:46:36,764 - 12703 - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-07-21 08:46:36,835 - 12703 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.SubWorkOrderAutoGeneration: 3 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 08:46:37,231 - 12703 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into ServiceCore.SubWorkOrderAutoGeneration - __SPLIT__ 2026-07-21 08:46:38,503 - 12703 - src.utils.log - INFO - βœ… All 3 rows inserted successfully into ServiceCore.SubWorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-07-21 08:46:38,574 - 12703 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-07-21 08:46:38,638 - 12703 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: - __SPLIT__ 2026-07-21 08:46:38,702 - 12703 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-07-21 08:46:38,771 - 12703 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: - __SPLIT__ 2026-07-21 08:46:38,837 - 12703 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-07-21 08:46:38,909 - 12703 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCrews: - __SPLIT__ 2026-07-21 08:46:39,016 - 12703 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-07-21 08:46:39,132 - 12703 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationServices: - __SPLIT__ 2026-07-21 08:46:39,201 - 12703 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-07-21 08:46:39,267 - 12703 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-21 08:46:39,327 - 12703 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (2737896, 2737894, 2737895) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 08:46:39,691 - 12703 - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-07-21 08:46:39,764 - 12703 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 3 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 08:46:40,137 - 12703 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-07-21 08:46:41,260 - 12703 - src.utils.log - INFO - βœ… All 3 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-07-21 08:46:41,325 - 12703 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-07-21 08:46:41,392 - 12703 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 12703;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 08:46:41,755 - 12703 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-21 08:46:41,817 - 12703 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-07-21 08:46:41,886 - 12703 - src.utils.log - INFO - Time took to perform operation: 25.02 - __SPLIT__ 2026-07-21 08:46:55,880 - [12703] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[2737894, 2737895, 2737896] user_id=122885 company_id=135 project_id=[12703] publish_all=False - __SPLIT__ 2026-07-21 08:46:55,987 - [12703] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[2737894, 2737895, 2737896] user_id=122885 company_id=135 project_id=[12703] publish_all=False - __SPLIT__ 2026-07-21 08:46:56,049 - [12703] - src.utils.log - INFO - Sequential Work order publish in progress for GenerateWorkOrderHistoryId: [12703] - __SPLIT__ 2026-07-21 08:46:56,119 - [12703] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-21 08:46:56,186 - [12703] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 08:46:58,228 - [12703] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-21 08:46:58,295 - [12703] - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-07-21 08:46:58,358 - [12703] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'InProgress' WHERE CompanyId = 135 AND GenerateWorkOrderHistoryId = 12703;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 08:46:58,730 - [12703] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-21 08:46:58,794 - [12703] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (2737894, 2737895, 2737896)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 08:46:59,143 - [12703] - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-07-21 08:46:59,207 - [12703] - src.utils.log - INFO - Inside get_work_order_table - __SPLIT__ 2026-07-21 08:46:59,276 - [12703] - 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 = 135 AND d2.CompanyId = bm.CompanyId AND sss.ServiceSetupId = 34443 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 08:46:59,622 - [12703] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-21 08:46:59,686 - [12703] - 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 = 135 AND d2.CompanyId = bm.CompanyId AND sss.ServiceSetupId = 34443 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 08:47:00,050 - [12703] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-21 08:47:00,113 - [12703] - 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 = 135 AND d2.CompanyId = bm.CompanyId AND sss.ServiceSetupId = 34443 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 08:47:00,469 - [12703] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-21 08:47:00,534 - [12703] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder,BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 135;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 08:47:00,879 - [12703] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-21 08:47:00,938 - [12703] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 135 AND EnitityNumberType in ('WorkOrder','Invoice'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 08:47:01,345 - [12703] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-21 08:47:01,415 - [12703] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder, BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 135; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 08:47:01,775 - [12703] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-21 08:47:01,852 - [12703] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig SET NextNumber = NextNumber + 3 OUTPUT INSERTED.NextNumber - 3 AS StartNumber WHERE CompanyId = 135 AND EnitityNumberType IN ('WorkOrder','Invoice'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 08:47:02,205 - [12703] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-21 08:47:02,282 - [12703] - 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 = 34443... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 08:47:02,640 - [12703] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-21 08:47:02,712 - [12703] - src.utils.log - INFO - πŸ” Fetching data: SELECT x.CompanyId FROM CRM.CompanyMaster x WHERE CompanyKey = 'Fortive';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 08:47:03,063 - [12703] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-21 08:47:03,137 - [12703] - src.utils.log - INFO - πŸ” Fetching data: SELECT CollectionStatus,IsHold,AccountNo FROM CRM.Account a WHERE a.AccountNo = '8850' and a.CompanyId = 124;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 08:47:03,491 - [12703] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-21 08:47:03,567 - [12703] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderNo FROM ServiceCore.WorkOrder WHERE WorkOrderNo IN ('169432R', '169433R', '169434R') AND CompanyId = 135 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 08:47:03,925 - [12703] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-21 08:47:03,996 - [12703] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrder (skip triggers): 3 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 08:47:04,539 - [12703] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into ServiceCore.WorkOrder (triggers skipped) - __SPLIT__ 2026-07-21 08:47:05,770 - [12703] - src.utils.log - INFO - βœ… All 3 rows inserted successfully into ServiceCore.WorkOrder in 1 batches (triggers skipped) - __SPLIT__ 2026-07-21 08:47:05,983 - [12703] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-07-21 08:47:06,052 - [12703] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.ServiceSetup SET IsInitialWoGenerated = 1 WHERE CompanyId = 135 AND ServiceSetupId = 34443;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 08:47:06,406 - [12703] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-21 08:47:06,476 - [12703] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkorderId, WorkOrderNo FROM ServiceCore.WorkOrder wo WHERE wo.WorkOrderNo IN ('169432R', '169433R', '169434R') AND wo.AccountNumber = '8850' AND wo.CompanyId = 135 ... (Thread: ThreadPoolExecutor-84_0) - __SPLIT__ 2026-07-21 08:47:06,881 - [12703] - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-07-21 08:47:06,948 - [12703] - src.utils.log - INFO - Sequential fetching temp table records - __SPLIT__ 2026-07-21 08:47:07,016 - [12703] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationServices woag WHERE woag.WorkOrderAutoGenerationId in (2737894, 2737895, 2737896)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 08:47:07,374 - [12703] - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-07-21 08:47:07,443 - [12703] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SubWorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (2737894, 2737895, 2737896)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 08:47:07,797 - [12703] - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-07-21 08:47:07,867 - [12703] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationCrews woag WHERE woag.WorkOrderAutoGenerationId in (2737894, 2737895, 2737896)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 08:47:08,221 - [12703] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-21 08:47:08,291 - [12703] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationSalesPersonCommission woag WHERE woag.WorkOrderAutoGenerationId in (2737894, 2737895, 2737896)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 08:47:08,641 - [12703] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-21 08:47:08,710 - [12703] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupAutoGenerationSourceMapping woag WHERE woag.WorkOrderAutoGenerationId in (2737894, 2737895, 2737896)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 08:47:09,065 - [12703] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-21 08:47:09,137 - [12703] - 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 (2737894, 2737895, 2737896)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 08:47:09,503 - [12703] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-21 08:47:09,571 - [12703] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from CRM.LeadNote woag WHERE woag.RefId in (2737894, 2737895, 2737896) and woag.RefType = 'TempWorkorder';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 08:47:09,955 - [12703] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-21 08:47:10,025 - [12703] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment woagca WHERE woagca.WorkOrderAutoGenerationId in (2737894, 2737895, 2737896);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 08:47:10,372 - [12703] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-21 08:47:10,442 - [12703] - src.utils.log - INFO - Updating temp tables - __SPLIT__ 2026-07-21 08:47:10,531 - [12703] - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyKey FROM Common.CompanyMaster cm WHERE CompanyId = 135;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 08:47:10,923 - [12703] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-21 08:47:10,992 - [12703] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 135 AND EnitityNumberType in ('SubWorkOrder'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 08:47:11,345 - [12703] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-21 08:47:11,413 - [12703] - src.utils.log - INFO - πŸ“ Executing: UPDATE Common.GenerateNumberConfig SET NextNumber = '18309' WHERE CompanyId = 135 AND EnitityNumberType in ('SubWorkOrder');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 08:47:11,765 - [12703] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-21 08:47:11,836 - [12703] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-21 08:47:11,904 - [12703] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishHistory: 3 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 08:47:12,299 - [12703] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into ServiceCore.WorkOrderAutoGenerationPublishHistory - __SPLIT__ 2026-07-21 08:47:13,382 - [12703] - src.utils.log - INFO - βœ… All 3 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishHistory in 1 batches - __SPLIT__ 2026-07-21 08:47:13,449 - [12703] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationPublishHistoryId, WorkOrderNo, ServiceSetupId FROM ServiceCore.WorkOrderAutoGenerationPublishHistory WHERE ServiceSetupId = 34443 AND WorkOrderNo IN ('5545869', '6701363', '3853344') AND GenerateWorkOrderHistoryId = 12703;... (Thread: ThreadPoolExecutor-85_0) - __SPLIT__ 2026-07-21 08:47:13,820 - [12703] - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-07-21 08:47:13,895 - [12703] - src.utils.log - INFO - 🏁 Final merged rows: 3 - __SPLIT__ 2026-07-21 08:47:13,968 - [12703] - src.utils.log - INFO - Sequential Insertion in work order tables begin - __SPLIT__ 2026-07-21 08:47:14,046 - [12703] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-21 08:47:14,111 - [12703] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderServices: 3 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 08:47:14,484 - [12703] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into ServiceCore.WorkOrderServices - __SPLIT__ 2026-07-21 08:47:15,558 - [12703] - src.utils.log - INFO - βœ… All 3 rows inserted successfully into ServiceCore.WorkOrderServices in 1 batches - __SPLIT__ 2026-07-21 08:47:15,656 - [12703] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderAppliedDiscount: - __SPLIT__ 2026-07-21 08:47:15,722 - [12703] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderSalesPersonCommission: - __SPLIT__ 2026-07-21 08:47:15,798 - [12703] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderCommissionAdjustment: - __SPLIT__ 2026-07-21 08:47:15,901 - [12703] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderCrew: - __SPLIT__ 2026-07-21 08:47:15,962 - [12703] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkorderSourceMapping: - __SPLIT__ 2026-07-21 08:47:16,019 - [12703] - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-07-21 08:47:16,088 - [12703] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-21 08:47:16,156 - [12703] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishServices: 3 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 08:47:16,530 - [12703] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into ServiceCore.WorkOrderAutoGenerationPublishServices - __SPLIT__ 2026-07-21 08:47:17,597 - [12703] - src.utils.log - INFO - βœ… All 3 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishServices in 1 batches - __SPLIT__ 2026-07-21 08:47:17,670 - [12703] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-21 08:47:17,739 - [12703] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.SubWorkOrder: 3 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 08:47:18,116 - [12703] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into ServiceCore.SubWorkOrder - __SPLIT__ 2026-07-21 08:47:19,325 - [12703] - src.utils.log - INFO - βœ… All 3 rows inserted successfully into ServiceCore.SubWorkOrder in 1 batches - __SPLIT__ 2026-07-21 08:47:19,388 - [12703] - src.utils.log - INFO - πŸ” Fetching data: Select * From ServiceCore.SubWorkOrder where WorkOrderId in (811234, 811235, 811236)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 08:47:19,746 - [12703] - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-07-21 08:47:19,821 - [12703] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-21 08:47:19,888 - [12703] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.subWorkOrderIssue: 3 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 08:47:20,265 - [12703] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into ServiceAuto.subWorkOrderIssue - __SPLIT__ 2026-07-21 08:47:21,216 - [12703] - src.utils.log - INFO - βœ… All 3 rows inserted successfully into ServiceAuto.subWorkOrderIssue in 1 batches - __SPLIT__ 2026-07-21 08:47:21,278 - [12703] - src.utils.log - INFO - πŸ” Fetching data: Select SubWorkOrderIssueId, SubWorkOrderId, ModifiedBy From ServiceAuto.subWorkOrderIssue where SubWorkOrderId in (82368, 82370, 82369) and ModifiedBy in ('999999999', '1000000000', '1000000001')... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 08:47:21,622 - [12703] - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-07-21 08:47:21,694 - [12703] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceAuto.subWorkOrderIssue SET ModifiedBy = 'Fortive' WHERE ModifiedBy IN ('999999999', '1000000000', '1000000001'); ... (Thread: ThreadPoolExecutor-86_0) - __SPLIT__ 2026-07-21 08:47:22,421 - [12703] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-21 08:47:22,495 - [12703] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-21 08:47:22,570 - [12703] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.subWOIssueRepair: 3 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 08:47:22,944 - [12703] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into ServiceAuto.subWOIssueRepair - __SPLIT__ 2026-07-21 08:47:23,871 - [12703] - src.utils.log - INFO - βœ… All 3 rows inserted successfully into ServiceAuto.subWOIssueRepair in 1 batches - __SPLIT__ 2026-07-21 08:47:23,941 - [12703] - src.utils.log - INFO - πŸ” Fetching data: Select IssueRepairId, ModifiedBy From ServiceAuto.subWOIssueRepair where SubWorkOrderIssueId in (148161, 148162, 148163)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 08:47:24,289 - [12703] - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-07-21 08:47:24,358 - [12703] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceAuto.subWOIssueRepair SET ModifiedBy = 'Fortive' WHERE ModifiedBy IN ('0___TMP___148161', '0___TMP___148162', '0___TMP___148163') AND CreatedDate = '2026-07-21 04:47:19.819'; ... (Thread: ThreadPoolExecutor-87_0) - __SPLIT__ 2026-07-21 08:47:24,708 - [12703] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-21 08:47:24,785 - [12703] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-21 08:47:24,852 - [12703] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.SubWOIssueRepairLabor: 6 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 08:47:25,220 - [12703] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 6) into ServiceAuto.SubWOIssueRepairLabor - __SPLIT__ 2026-07-21 08:47:26,282 - [12703] - src.utils.log - INFO - βœ… All 6 rows inserted successfully into ServiceAuto.SubWOIssueRepairLabor in 1 batches - __SPLIT__ 2026-07-21 08:47:26,356 - [12703] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-21 08:47:26,422 - [12703] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.SubWOIssueRepairPart: 3 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 08:47:26,801 - [12703] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into ServiceAuto.SubWOIssueRepairPart - __SPLIT__ 2026-07-21 08:47:27,873 - [12703] - src.utils.log - INFO - βœ… All 3 rows inserted successfully into ServiceAuto.SubWOIssueRepairPart in 1 batches - __SPLIT__ 2026-07-21 08:47:27,939 - [12703] - 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 = 34443... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 08:47:28,300 - [12703] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-21 08:47:28,371 - [12703] - src.utils.log - INFO - Size of Transaction: 3 - __SPLIT__ 2026-07-21 08:47:28,481 - [12703] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 3 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 08:47:28,989 - [12703] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-07-21 08:47:30,041 - [12703] - src.utils.log - INFO - βœ… All 3 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-07-21 08:47:30,262 - [12703] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-07-21 08:47:30,336 - [12703] - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionId, ModifiedBy, TransactionDate as InvoiceDate from Billing.[Transaction] t WHERE t.ModifiedBy in (12345678910, 12345678911, 12345678912) and t.CompanyId = 135 AND t.TransactionType ='Invoice' AND t.CreatedDate = '2026-07-21 04:47:28.367';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 08:47:30,707 - [12703] - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-07-21 08:47:30,771 - [12703] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 34443;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 08:47:31,119 - [12703] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-21 08:47:31,194 - [12703] - src.utils.log - INFO - πŸ“ Executing: UPDATE Billing.[Transaction] SET ModifiedBy = NULL WHERE ModifiedBy IN (12345678910,12345678911,12345678912) AND CreatedDate = '2026-07-21 04:47:28.367'; ... (Thread: ThreadPoolExecutor-88_0) - __SPLIT__ 2026-07-21 08:47:31,559 - [12703] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-21 08:47:31,633 - [12703] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-21 08:47:31,701 - [12703] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 3 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 08:47:32,068 - [12703] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into Billing.Invoice - __SPLIT__ 2026-07-21 08:47:33,125 - [12703] - src.utils.log - INFO - βœ… All 3 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-07-21 08:47:33,183 - [12703] - src.utils.log - INFO - πŸ” Fetching data: SELECT InvoiceId, WorkOrderNo FROM Billing.Invoice i WHERE i.WorkOrderNo in ('169432R', '169434R', '169433R')... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 08:47:33,557 - [12703] - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-07-21 08:47:33,638 - [12703] - 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 = 34443 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 08:47:33,985 - [12703] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-21 08:47:34,043 - [12703] - 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 = 34443 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 08:47:34,381 - [12703] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-21 08:47:34,501 - [12703] - 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 = 34443 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 08:47:34,858 - [12703] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-21 08:47:34,929 - [12703] - 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 = 34443 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 08:47:35,278 - [12703] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-21 08:47:35,363 - [12703] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 34443;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 08:47:35,723 - [12703] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-21 08:47:35,793 - [12703] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId, AppliedDiscountAmt as AppliedDiscountAmount,IsActive ,ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 34443;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 08:47:36,138 - [12703] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-21 08:47:36,217 - [12703] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId,IsActive,DiscountAmount, IsDiscountPercent,DiscountPercent,DiscountDescription , ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 34443;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 08:47:36,570 - [12703] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-21 08:47:36,629 - [12703] - src.utils.log - INFO - Sequential Insertion in invoice tables begin - __SPLIT__ 2026-07-21 08:47:36,700 - [12703] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.AccountDiscountSetup: - __SPLIT__ 2026-07-21 08:47:36,767 - [12703] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-21 08:47:36,841 - [12703] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceCharges: 3 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 08:47:37,223 - [12703] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into Billing.InvoiceCharges - __SPLIT__ 2026-07-21 08:47:38,289 - [12703] - src.utils.log - INFO - βœ… All 3 rows inserted successfully into Billing.InvoiceCharges in 1 batches - __SPLIT__ 2026-07-21 08:47:38,356 - [12703] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.DiscountApplied: - __SPLIT__ 2026-07-21 08:47:38,416 - [12703] - src.utils.log - INFO - Invoice Publish Done - __SPLIT__ 2026-07-21 08:47:38,486 - [12703] - src.utils.log - INFO - Updating Next GenerationDate - __SPLIT__ 2026-07-21 08:47:38,557 - [12703] - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, MAX(NextWorkOrderGenerationDate) AS MaxNextWorkOrderGeneration FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 12703 GROUP BY ServiceSetupId; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 08:47:38,965 - [12703] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-21 08:47:39,036 - [12703] - src.utils.log - INFO - πŸ”„ Updating next gen date sequentially: inside update_next_workorder_generation - __SPLIT__ 2026-07-21 08:47:39,237 - [12703] - src.utils.log - INFO - πŸ›  Creating temp table #tbl_c41ffbf1b7 - __SPLIT__ 2026-07-21 08:47:39,586 - [12703] - src.utils.log - INFO - πŸ“Œ Bulk inserting 1 rows into #tbl_c41ffbf1b7 - __SPLIT__ 2026-07-21 08:47:39,940 - [12703] - src.utils.log - INFO - πŸ” Running MERGE update to apply changes - __SPLIT__ 2026-07-21 08:47:40,149 - [12703] - src.utils.log - INFO - βœ” SQL reported affected rows: 1 - __SPLIT__ 2026-07-21 08:47:40,356 - [12703] - src.utils.log - INFO - πŸ” Verified successfully updated 1 rows via #tbl_c41ffbf1b7 - __SPLIT__ 2026-07-21 08:47:40,427 - [12703] - src.utils.log - INFO - πŸŽ‰ Successfully updated NextGenerationDate using temp table #tbl_c41ffbf1b7 - __SPLIT__ 2026-07-21 08:47:40,493 - [12703] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 12703 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 08:47:40,843 - [12703] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-21 08:47:40,907 - [12703] - src.utils.log - INFO - Sequential deletion from temp tables begin - __SPLIT__ 2026-07-21 08:47:40,994 - [12703] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId in (2737894, 2737895, 2737896) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 08:47:41,361 - [12703] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-21 08:47:41,432 - [12703] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId in (2737894, 2737895, 2737896) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 08:47:41,790 - [12703] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-21 08:47:41,851 - [12703] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId in (2737894, 2737895, 2737896) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 08:47:42,201 - [12703] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-21 08:47:42,268 - [12703] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId in (2737894, 2737895, 2737896) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 08:47:42,648 - [12703] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-21 08:47:42,707 - [12703] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId in (2737894, 2737895, 2737896) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 08:47:43,125 - [12703] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-21 08:47:43,222 - [12703] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (2737894, 2737895, 2737896) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 08:47:43,578 - [12703] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-21 08:47:43,651 - [12703] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId in (2737894, 2737895, 2737896) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 08:47:44,002 - [12703] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-21 08:47:44,069 - [12703] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (2737894, 2737895, 2737896) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 08:47:44,445 - [12703] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-21 08:47:44,514 - [12703] - src.utils.log - INFO - Work order published ids: (2737894, 2737895, 2737896) - __SPLIT__ 2026-07-21 08:47:44,583 - [12703] - src.utils.log - INFO - Time took to perform operation in publishing [12703]: 48.46 - __SPLIT__ 2026-07-21 08:47:44,660 - [12703] - src.utils.log - INFO - Publish Completed for GenerateWorkOrderHistoryId: [12703] - __SPLIT__ 2026-07-21 08:47:44,734 - [12703] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-07-21 04:47:44.514' WHERE CompanyId = 135 AND GenerateWorkOrderHistoryId = 12703;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-21 08:47:45,092 - [12703] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__