2026-05-04 09:41:45,422 - 124358 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=124358 - __SPLIT__ 2026-05-04 09:41:45,995 - 124358 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 124358 - __SPLIT__ 2026-05-04 09:41:45,995 - 124358 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-05-04 09:41:45,996 - 124358 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-04 09:41:48,159 - 124358 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-04 09:41:48,159 - 124358 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-05-04 09:41:48,160 - 124358 - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-05-04 09:41:48,160 - 124358 - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-05-04 09:41:48,160 - 124358 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 124358;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-04 09:41:50,107 - 124358 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-04 09:41:50,107 - 124358 - 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 = 124358), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 124358), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 124358 AND ss.FrequencyScheduleId IS NOT NULL AND ss.IsActive = 1 AND ss.IsDeleted = 0 AND ss.Status <> 'Canceled';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-04 09:41:50,891 - 124358 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-04 09:41:50,892 - 124358 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 124358;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-04 09:41:51,167 - 124358 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-04 09:41:51,170 - 124358 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-05-04 09:41:51,171 - 124358 - 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 = 14659... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-04 09:41:51,459 - 124358 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-04 09:41:51,459 - 124358 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-05-04 09:41:51,462 - 124358 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-05-04 09:41:51,462 - 124358 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150220;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-04 09:41:51,736 - 124358 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-04 09:41:51,737 - 124358 - src.utils.log - INFO - πŸ” Fetching data: select ServiceDate, ServiceSetupId, IsInitial from serviceCore.WorkOrder wo inner join ServiceCore.WorkOrderStatus wos on wo.WoStatusId = wos.WoStatusId where ServiceDate >= '2026-05-04 00:00:00' and ServiceDate <= '2026-12-31 00:00:00' and ServiceSetupId = 150220 and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-04 09:41:52,020 - 124358 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-04 09:41:52,594 - 124358 - src.utils.log - INFO - Generating work orders for setup: 150220 - __SPLIT__ 2026-05-04 09:41:52,653 - 124358 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 1127;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-04 09:41:52,924 - 124358 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-04 09:41:52,932 - 124358 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 1130;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-04 09:41:53,204 - 124358 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-04 09:41:53,241 - 124358 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-05-04 09:41:53,246 - 124358 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=133 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-04 09:41:53,514 - 124358 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-04 09:41:53,516 - 124358 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-05-04 09:41:53,517 - 124358 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-05-04 09:41:53,517 - 124358 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150220 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-04 09:41:53,811 - 124358 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-04 09:41:53,811 - 124358 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150220 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-04 09:41:54,104 - 124358 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-04 09:41:54,104 - 124358 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150220 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-04 09:41:54,391 - 124358 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-04 09:41:54,391 - 124358 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150220 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-04 09:41:54,688 - 124358 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-04 09:41:54,688 - 124358 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150220 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-04 09:41:55,134 - 124358 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-04 09:41:55,134 - 124358 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150220 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-04 09:41:55,498 - 124358 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-04 09:41:55,499 - 124358 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150220 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-04 09:41:55,779 - 124358 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-04 09:41:55,779 - 124358 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150220 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-04 09:41:56,088 - 124358 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-04 09:41:56,088 - 124358 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-04 09:41:56,088 - 124358 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 9 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-04 09:41:56,413 - 124358 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 9) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-05-04 09:41:57,740 - 124358 - src.utils.log - INFO - βœ… All 9 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-05-04 09:41:57,741 - 124358 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 9 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-04-28 15:00:01.092' and ServiceSetupId = 150220... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-04 09:41:58,026 - 124358 - src.utils.log - INFO - βœ… Fetched 9 rows - __SPLIT__ 2026-05-04 09:41:58,027 - 124358 - src.utils.log - INFO - Id's of work order inserted to DB: [3672526 3672527 3672528 3672529 3672530 3672531 3672532 3672533 3672534] - __SPLIT__ 2026-05-04 09:41:58,027 - 124358 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150220;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-04 09:41:58,296 - 124358 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-04 09:41:58,296 - 124358 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-05-04 09:41:58,297 - 124358 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId = 150220... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-04 09:41:58,568 - 124358 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-04 09:41:58,568 - 124358 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId = 150220... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-04 09:41:58,837 - 124358 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-04 09:41:58,845 - 124358 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId = 150220... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-04 09:41:59,120 - 124358 - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-05-04 09:41:59,121 - 124358 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId = 150220... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-04 09:41:59,391 - 124358 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-04 09:41:59,391 - 124358 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId = 150220... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-04 09:41:59,664 - 124358 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-04 09:41:59,665 - 124358 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId = 150220;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-04 09:41:59,935 - 124358 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-05-04 09:41:59,936 - 124358 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId = 150220;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-04 09:42:00,208 - 124358 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-04 09:42:00,209 - 124358 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId = 150220;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-04 09:42:01,334 - 124358 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-04 09:42:01,334 - 124358 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId = 150220;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-04 09:42:01,605 - 124358 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-04 09:42:01,622 - 124358 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-05-04 09:42:01,623 - 124358 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-05-04 09:42:01,623 - 124358 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-05-04 09:42:01,623 - 124358 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.CommunicationPreferencesServiceReportNotification: - __SPLIT__ 2026-05-04 09:42:01,623 - 124358 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-05-04 09:42:01,623 - 124358 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SetupAutoGenerationSourceMapping: - __SPLIT__ 2026-05-04 09:42:01,623 - 124358 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-05-04 09:42:01,623 - 124358 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-04 09:42:01,624 - 124358 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3672526, 3672527, 3672528, 3672529, 3672530, 3672531, 3672532, 3672533, 3672534) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-04 09:42:01,892 - 124358 - src.utils.log - INFO - βœ… Fetched 9 rows - __SPLIT__ 2026-05-04 09:42:01,893 - 124358 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationAppliedDiscount: 9 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-04 09:42:02,202 - 124358 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 9) into ServiceCore.WorkOrderAutoGenerationAppliedDiscount - __SPLIT__ 2026-05-04 09:42:03,166 - 124358 - src.utils.log - INFO - βœ… All 9 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationAppliedDiscount in 1 batches - __SPLIT__ 2026-05-04 09:42:03,166 - 124358 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-05-04 09:42:03,167 - 124358 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SubWorkOrderAutoGeneration: - __SPLIT__ 2026-05-04 09:42:03,167 - 124358 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-05-04 09:42:03,167 - 124358 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: - __SPLIT__ 2026-05-04 09:42:03,167 - 124358 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-05-04 09:42:03,167 - 124358 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: - __SPLIT__ 2026-05-04 09:42:03,167 - 124358 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-05-04 09:42:03,167 - 124358 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-04 09:42:03,167 - 124358 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3672526, 3672527, 3672528, 3672529, 3672530, 3672531, 3672532, 3672533, 3672534) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-04 09:42:03,434 - 124358 - src.utils.log - INFO - βœ… Fetched 9 rows - __SPLIT__ 2026-05-04 09:42:03,435 - 124358 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationCrews: 18 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-04 09:42:03,741 - 124358 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 18) into ServiceCore.WorkOrderAutoGenerationCrews - __SPLIT__ 2026-05-04 09:42:04,714 - 124358 - src.utils.log - INFO - βœ… All 18 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationCrews in 1 batches - __SPLIT__ 2026-05-04 09:42:04,714 - 124358 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-05-04 09:42:04,714 - 124358 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-04 09:42:04,715 - 124358 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 3672526 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-04 09:42:04,982 - 124358 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-04 09:42:04,983 - 124358 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-04 09:42:05,283 - 124358 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-05-04 09:42:06,247 - 124358 - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-05-04 09:42:06,248 - 124358 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-05-04 09:42:06,248 - 124358 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-04 09:42:06,248 - 124358 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3672527, 3672528, 3672529, 3672530, 3672531, 3672532, 3672533, 3672534) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-04 09:42:06,516 - 124358 - src.utils.log - INFO - βœ… Fetched 8 rows - __SPLIT__ 2026-05-04 09:42:06,517 - 124358 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 8 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-04 09:42:06,791 - 124358 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 8) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-05-04 09:42:07,748 - 124358 - src.utils.log - INFO - βœ… All 8 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-05-04 09:42:07,748 - 124358 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-05-04 09:42:07,749 - 124358 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 124358;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-04 09:42:08,019 - 124358 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-04 09:42:08,020 - 124358 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-05-04 09:42:08,020 - 124358 - src.utils.log - INFO - Time took to perform operation: 22.02 - __SPLIT__ 2026-05-04 09:42:08,020 - 124358 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 124358;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-04 09:42:08,290 - 124358 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-04 09:42:08,291 - 124358 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET WorkOrderStatusDateTime = '2026-05-04 05:42:08.291' WHERE GenerateWorkOrderHistoryId = 124358;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-04 09:42:08,561 - 124358 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-04 10:13:30,718 - 124359 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=124359 - __SPLIT__ 2026-05-04 10:13:30,720 - 124359 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 124359 - __SPLIT__ 2026-05-04 10:13:30,720 - 124359 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-05-04 10:13:30,720 - 124359 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-04 10:13:32,728 - 124359 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-04 10:13:32,728 - 124359 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-05-04 10:13:32,729 - 124359 - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-05-04 10:13:32,729 - 124359 - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-05-04 10:13:32,729 - 124359 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 124359;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-04 10:13:34,618 - 124359 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-04 10:13:34,618 - 124359 - 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 = 124359), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 124359), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 124359 AND ss.FrequencyScheduleId IS NOT NULL AND ss.IsActive = 1 AND ss.IsDeleted = 0 AND ss.Status <> 'Canceled';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-04 10:13:35,002 - 124359 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-04 10:13:35,003 - 124359 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 124359;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-04 10:13:35,274 - 124359 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-04 10:13:35,277 - 124359 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-05-04 10:13:35,278 - 124359 - 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-05-04 10:13:35,558 - 124359 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-04 10:13:35,559 - 124359 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-05-04 10:13:35,561 - 124359 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-05-04 10:13:35,562 - 124359 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150219;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-04 10:13:35,832 - 124359 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-04 10:13:35,833 - 124359 - src.utils.log - INFO - πŸ” Fetching data: select ServiceDate, ServiceSetupId, IsInitial from serviceCore.WorkOrder wo inner join ServiceCore.WorkOrderStatus wos on wo.WoStatusId = wos.WoStatusId where ServiceDate >= '2026-05-04 00:00:00' and ServiceDate <= '2026-12-31 00:00:00' and ServiceSetupId = 150219 and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-04 10:13:36,120 - 124359 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-04 10:13:36,684 - 124359 - src.utils.log - INFO - Generating work orders for setup: 150219 - __SPLIT__ 2026-05-04 10:13:36,733 - 124359 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 1132;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-04 10:13:37,003 - 124359 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-04 10:13:37,012 - 124359 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 1131;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-04 10:13:37,281 - 124359 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-04 10:13:37,318 - 124359 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-05-04 10:13:37,324 - 124359 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=133 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-04 10:13:37,592 - 124359 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-04 10:13:37,594 - 124359 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-05-04 10:13:37,595 - 124359 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-05-04 10:13:37,595 - 124359 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150219 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-04 10:13:37,932 - 124359 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-04 10:13:37,932 - 124359 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150219 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-04 10:13:38,235 - 124359 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-04 10:13:38,236 - 124359 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150219 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-04 10:13:38,514 - 124359 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-04 10:13:38,515 - 124359 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150219 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-04 10:13:38,807 - 124359 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-04 10:13:38,807 - 124359 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150219 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-04 10:13:39,100 - 124359 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-04 10:13:39,100 - 124359 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150219 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-04 10:13:39,389 - 124359 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-04 10:13:39,389 - 124359 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150219 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-04 10:13:39,667 - 124359 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-04 10:13:39,667 - 124359 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150219 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-04 10:13:39,977 - 124359 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-04 10:13:39,977 - 124359 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-04 10:13:39,977 - 124359 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 8 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-04 10:13:40,282 - 124359 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 8) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-05-04 10:13:41,573 - 124359 - src.utils.log - INFO - βœ… All 8 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-05-04 10:13:41,574 - 124359 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 8 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-04-28 15:00:01.092' and ServiceSetupId = 150219... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-04 10:13:41,887 - 124359 - src.utils.log - INFO - βœ… Fetched 8 rows - __SPLIT__ 2026-05-04 10:13:41,888 - 124359 - src.utils.log - INFO - Id's of work order inserted to DB: [3672535 3672536 3672537 3672538 3672539 3672540 3672541 3672542] - __SPLIT__ 2026-05-04 10:13:41,888 - 124359 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150219;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-04 10:13:42,158 - 124359 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-04 10:13:42,158 - 124359 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-05-04 10:13:42,159 - 124359 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId = 150219... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-04 10:13:42,430 - 124359 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-04 10:13:42,431 - 124359 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId = 150219... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-04 10:13:42,702 - 124359 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-04 10:13:42,709 - 124359 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId = 150219... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-04 10:13:42,985 - 124359 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-05-04 10:13:42,987 - 124359 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId = 150219... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-04 10:13:43,256 - 124359 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-04 10:13:43,256 - 124359 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId = 150219... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-04 10:13:43,526 - 124359 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-04 10:13:43,527 - 124359 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId = 150219;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-04 10:13:43,799 - 124359 - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-05-04 10:13:43,800 - 124359 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId = 150219;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-04 10:13:44,070 - 124359 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-04 10:13:44,070 - 124359 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId = 150219;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-04 10:13:44,357 - 124359 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-04 10:13:44,357 - 124359 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId = 150219;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-04 10:13:44,628 - 124359 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-04 10:13:44,645 - 124359 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-05-04 10:13:44,645 - 124359 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-05-04 10:13:44,645 - 124359 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-05-04 10:13:44,645 - 124359 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.CommunicationPreferencesServiceReportNotification: - __SPLIT__ 2026-05-04 10:13:44,645 - 124359 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-05-04 10:13:44,645 - 124359 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SetupAutoGenerationSourceMapping: - __SPLIT__ 2026-05-04 10:13:44,645 - 124359 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-05-04 10:13:44,645 - 124359 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-04 10:13:44,646 - 124359 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3672535, 3672536, 3672537, 3672538, 3672539, 3672540, 3672541, 3672542) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-04 10:13:44,916 - 124359 - src.utils.log - INFO - βœ… Fetched 8 rows - __SPLIT__ 2026-05-04 10:13:44,917 - 124359 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationAppliedDiscount: 16 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-04 10:13:45,195 - 124359 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 16) into ServiceCore.WorkOrderAutoGenerationAppliedDiscount - __SPLIT__ 2026-05-04 10:13:46,158 - 124359 - src.utils.log - INFO - βœ… All 16 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationAppliedDiscount in 1 batches - __SPLIT__ 2026-05-04 10:13:46,158 - 124359 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-05-04 10:13:46,159 - 124359 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SubWorkOrderAutoGeneration: - __SPLIT__ 2026-05-04 10:13:46,159 - 124359 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-05-04 10:13:46,159 - 124359 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: - __SPLIT__ 2026-05-04 10:13:46,159 - 124359 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-05-04 10:13:46,159 - 124359 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: - __SPLIT__ 2026-05-04 10:13:46,159 - 124359 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-05-04 10:13:46,159 - 124359 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-04 10:13:46,159 - 124359 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3672535, 3672536, 3672537, 3672538, 3672539, 3672540, 3672541, 3672542) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-04 10:13:46,427 - 124359 - src.utils.log - INFO - βœ… Fetched 8 rows - __SPLIT__ 2026-05-04 10:13:46,428 - 124359 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationCrews: 8 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-04 10:13:46,702 - 124359 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 8) into ServiceCore.WorkOrderAutoGenerationCrews - __SPLIT__ 2026-05-04 10:13:47,658 - 124359 - src.utils.log - INFO - βœ… All 8 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationCrews in 1 batches - __SPLIT__ 2026-05-04 10:13:47,658 - 124359 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-05-04 10:13:47,658 - 124359 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-04 10:13:47,659 - 124359 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 3672535 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-04 10:13:47,929 - 124359 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-04 10:13:47,930 - 124359 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-04 10:13:48,207 - 124359 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-05-04 10:13:49,154 - 124359 - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-05-04 10:13:49,155 - 124359 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-05-04 10:13:49,155 - 124359 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-04 10:13:49,155 - 124359 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3672536, 3672537, 3672538, 3672539, 3672540, 3672541, 3672542) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-04 10:13:49,425 - 124359 - src.utils.log - INFO - βœ… Fetched 7 rows - __SPLIT__ 2026-05-04 10:13:49,426 - 124359 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 7 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-04 10:13:49,703 - 124359 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 7) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-05-04 10:13:50,666 - 124359 - src.utils.log - INFO - βœ… All 7 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-05-04 10:13:50,667 - 124359 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-05-04 10:13:50,667 - 124359 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 124359;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-04 10:13:50,937 - 124359 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-04 10:13:50,937 - 124359 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-05-04 10:13:50,937 - 124359 - src.utils.log - INFO - Time took to perform operation: 20.22 - __SPLIT__ 2026-05-04 10:13:50,937 - 124359 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 124359;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-04 10:13:51,207 - 124359 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-04 10:13:51,207 - 124359 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET WorkOrderStatusDateTime = '2026-05-04 06:13:51.207' WHERE GenerateWorkOrderHistoryId = 124359;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-04 10:13:51,477 - 124359 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-05 12:31:19,120 - 124365 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=124365 - __SPLIT__ 2026-05-05 12:31:19,121 - 124365 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 124365 - __SPLIT__ 2026-05-05 12:31:19,135 - 124365 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-05-05 12:31:19,135 - 124365 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-05 12:31:21,736 - 124365 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-05 12:31:21,736 - 124365 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-05-05 12:31:21,737 - 124365 - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-05-05 12:31:21,737 - 124365 - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-05-05 12:31:21,737 - 124365 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 124365;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-05 12:31:24,202 - 124365 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-05 12:31:24,202 - 124365 - 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 = 124365), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 124365), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 124365 AND ss.FrequencyScheduleId IS NOT NULL AND ss.IsActive = 1 AND ss.IsDeleted = 0 AND ss.Status <> 'Canceled' AND ss.OrderType = gw.OrderType;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-05 12:31:24,727 - 124365 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-05 12:31:24,727 - 124365 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 124365;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-05 12:31:24,997 - 124365 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-05 12:31:24,997 - 124365 - src.utils.log - INFO - No Setup Found Error:No setups found for GenerateWorkOrderHistoryid: 124365 - __SPLIT__ 2026-05-05 12:31:24,998 - 124365 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 124365;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-05 12:31:25,265 - 124365 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-05 12:31:25,265 - 124365 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET WorkOrderStatusDateTime = '2026-05-05 08:31:25.265' WHERE GenerateWorkOrderHistoryId = 124365;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-05 12:31:25,535 - 124365 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-05 13:11:01,262 - 12122 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=12122 - __SPLIT__ 2026-05-05 13:11:01,264 - 12122 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 12122 - __SPLIT__ 2026-05-05 13:11:01,278 - 12122 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-05-05 13:11:01,278 - 12122 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-05 13:11:03,868 - 12122 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-05 13:11:03,868 - 12122 - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-05-05 13:11:03,868 - 12122 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 12122;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-05 13:11:04,164 - 12122 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-05 13:11:04,164 - 12122 - 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 = 12122), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 12122), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 12122 AND ss.FrequencyScheduleId IS NOT NULL AND ss.IsActive = 1 AND ss.IsDeleted = 0 AND ss.Status <> 'Canceled' AND ss.OrderType = gw.OrderType;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-05 13:11:04,478 - 12122 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-05 13:11:04,479 - 12122 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 12122;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-05 13:11:04,772 - 12122 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-05 13:11:04,773 - 12122 - src.utils.log - INFO - No Setup Found Error:No setups found for GenerateWorkOrderHistoryid: 12122 - __SPLIT__ 2026-05-05 13:11:04,774 - 12122 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 12122;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-05 13:11:05,062 - 12122 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-05 13:11:05,062 - 12122 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET WorkOrderStatusDateTime = '2026-05-05 09:11:05.062' WHERE GenerateWorkOrderHistoryId = 12122;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-05 13:11:05,348 - 12122 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-05 13:12:03,860 - 12123 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=12123 - __SPLIT__ 2026-05-05 13:12:03,862 - 12123 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 12123 - __SPLIT__ 2026-05-05 13:12:03,876 - 12123 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-05-05 13:12:03,877 - 12123 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-05 13:12:06,525 - 12123 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-05 13:12:06,525 - 12123 - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-05-05 13:12:06,525 - 12123 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 12123;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-05 13:12:06,821 - 12123 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-05 13:12:06,822 - 12123 - 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 = 12123), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 12123), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 12123 AND ss.FrequencyScheduleId IS NOT NULL AND ss.IsActive = 1 AND ss.IsDeleted = 0 AND ss.Status <> 'Canceled' AND ss.OrderType = gw.OrderType;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-05 13:12:07,140 - 12123 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-05 13:12:07,141 - 12123 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 12123;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-05 13:12:07,432 - 12123 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-05 13:12:07,433 - 12123 - src.utils.log - INFO - No Setup Found Error:No setups found for GenerateWorkOrderHistoryid: 12123 - __SPLIT__ 2026-05-05 13:12:07,433 - 12123 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 12123;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-05 13:12:07,729 - 12123 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-05 13:12:07,729 - 12123 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET WorkOrderStatusDateTime = '2026-05-05 09:12:07.729' WHERE GenerateWorkOrderHistoryId = 12123;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-05 13:12:08,021 - 12123 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-05 13:12:51,443 - 12124 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=12124 - __SPLIT__ 2026-05-05 13:12:51,443 - 12124 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 12124 - __SPLIT__ 2026-05-05 13:12:51,444 - 12124 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-05-05 13:12:51,444 - 12124 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-05 13:12:53,462 - 12124 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-05 13:12:53,462 - 12124 - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-05-05 13:12:53,462 - 12124 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 12124;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-05 13:12:53,743 - 12124 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-05 13:12:53,743 - 12124 - 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 = 12124), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 12124), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 12124 AND ss.FrequencyScheduleId IS NOT NULL AND ss.IsActive = 1 AND ss.IsDeleted = 0 AND ss.Status <> 'Canceled' AND ss.OrderType = gw.OrderType;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-05 13:12:54,062 - 12124 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-05 13:12:54,062 - 12124 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 12124;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-05 13:12:54,357 - 12124 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-05 13:12:54,358 - 12124 - src.utils.log - INFO - No Setup Found Error:No setups found for GenerateWorkOrderHistoryid: 12124 - __SPLIT__ 2026-05-05 13:12:54,358 - 12124 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 12124;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-05 13:12:54,646 - 12124 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-05 13:12:54,646 - 12124 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET WorkOrderStatusDateTime = '2026-05-05 09:12:54.646' WHERE GenerateWorkOrderHistoryId = 12124;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-05 13:12:54,950 - 12124 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-05 13:13:55,049 - 12125 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=12125 - __SPLIT__ 2026-05-05 13:13:55,050 - 12125 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 12125 - __SPLIT__ 2026-05-05 13:13:55,050 - 12125 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-05-05 13:13:55,050 - 12125 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-05 13:13:57,088 - 12125 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-05 13:13:57,088 - 12125 - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-05-05 13:13:57,088 - 12125 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 12125;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-05 13:13:57,388 - 12125 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-05 13:13:57,389 - 12125 - 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 = 12125), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 12125), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 12125 AND ss.FrequencyScheduleId IS NOT NULL AND ss.IsActive = 1 AND ss.IsDeleted = 0 AND ss.Status <> 'Canceled' AND ss.OrderType = gw.OrderType;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-05 13:13:57,708 - 12125 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-05 13:13:57,709 - 12125 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 12125;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-05 13:13:58,002 - 12125 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-05 13:13:58,003 - 12125 - src.utils.log - INFO - No Setup Found Error:No setups found for GenerateWorkOrderHistoryid: 12125 - __SPLIT__ 2026-05-05 13:13:58,003 - 12125 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 12125;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-05 13:13:58,311 - 12125 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-05 13:13:58,312 - 12125 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET WorkOrderStatusDateTime = '2026-05-05 09:13:58.312' WHERE GenerateWorkOrderHistoryId = 12125;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-05 13:13:58,598 - 12125 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-05 13:19:56,175 - 12126 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=12126 - __SPLIT__ 2026-05-05 13:19:56,177 - 12126 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 12126 - __SPLIT__ 2026-05-05 13:19:56,191 - 12126 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-05-05 13:19:56,191 - 12126 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-05 13:19:58,819 - 12126 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-05 13:19:58,820 - 12126 - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-05-05 13:19:58,820 - 12126 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 12126;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-05 13:19:59,116 - 12126 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-05 13:19:59,116 - 12126 - 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 = 12126), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 12126), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 12126 AND ss.FrequencyScheduleId IS NOT NULL AND ss.IsActive = 1 AND ss.IsDeleted = 0 AND ss.Status <> 'Canceled' AND ss.OrderType = gw.OrderType;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-05 13:19:59,441 - 12126 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-05 13:19:59,441 - 12126 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 12126;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-05 13:19:59,744 - 12126 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-05 13:19:59,745 - 12126 - src.utils.log - INFO - No Setup Found Error:No setups found for GenerateWorkOrderHistoryid: 12126 - __SPLIT__ 2026-05-05 13:19:59,745 - 12126 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 12126;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-05 13:20:00,044 - 12126 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-05 13:20:00,044 - 12126 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET WorkOrderStatusDateTime = '2026-05-05 09:20:00.044' WHERE GenerateWorkOrderHistoryId = 12126;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-05 13:20:00,335 - 12126 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-05 13:27:29,340 - 124367 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=124367 - __SPLIT__ 2026-05-05 13:27:29,341 - 124367 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 124367 - __SPLIT__ 2026-05-05 13:27:29,341 - 124367 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-05-05 13:27:29,341 - 124367 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-05 13:27:31,410 - 124367 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-05 13:27:31,411 - 124367 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-05-05 13:27:31,411 - 124367 - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-05-05 13:27:31,412 - 124367 - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-05-05 13:27:31,412 - 124367 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 124367;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-05 13:27:33,679 - 124367 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-05 13:27:33,679 - 124367 - 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 = 124367), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 124367), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 124367 AND ss.FrequencyScheduleId IS NOT NULL AND ss.IsActive = 1 AND ss.IsDeleted = 0 AND ss.Status <> 'Canceled' AND ss.OrderType = gw.OrderType;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-05 13:27:34,109 - 124367 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-05 13:27:34,109 - 124367 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 124367;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-05 13:27:34,435 - 124367 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-05 13:27:34,436 - 124367 - src.utils.log - INFO - No Setup Found Error:No setups found for GenerateWorkOrderHistoryid: 124367 - __SPLIT__ 2026-05-05 13:27:34,436 - 124367 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 124367;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-05 13:27:34,762 - 124367 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-05 13:27:34,762 - 124367 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET WorkOrderStatusDateTime = '2026-05-05 09:27:34.762' WHERE GenerateWorkOrderHistoryId = 124367;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-05 13:27:35,089 - 124367 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-06 05:54:24,569 - 42388 - src.utils.log - INFO - ParallelProcessing=False GenerateInvoiceHistoryId=42388 - __SPLIT__ 2026-05-06 05:54:24,571 - 42388 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-05-06 05:54:24,571 - 42388 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 05:54:26,664 - 42388 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-06 05:54:26,665 - 42388 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-05-06 05:54:26,665 - 42388 - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-05-06 05:54:26,666 - 42388 - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-05-06 05:54:26,666 - 42388 - src.utils.log - INFO - Sequential Invoice generation algo started for GenerateInvoiceHistoryId: 42388 - __SPLIT__ 2026-05-06 05:54:26,666 - 42388 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET Status = 'InProgress' WHERE GenerateInvoiceHistoryId = 42388;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 05:54:28,708 - 42388 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-06 05:54:28,708 - 42388 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateInvoiceHistory WHERE GenerateInvoiceHistoryId = 42388;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 05:54:28,995 - 42388 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-06 05:54:28,995 - 42388 - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceId as ServiceMasterId,ss.FrequencyScheduleId as setup_frequency_schedule_id, ssb.*, ss.IsBilling, ss.DepartmentMasterId, ss.AccountNumber, ss.CompanyId, ss.BillingLocationId, ss.ServiceLocationId, ss.TaxSysName, ss.TermId, t.NetDueIn, ss.TaxPercent, ss.PoNumber, ss.DisplayServiceAsSeparateLineItem, ss.SetupEndDate, ss.SetupStartDate from ServiceCore.ServiceSetup ss join ServiceCore.ServiceSetupBilling ssb on ss.ServiceSetupId = ssb.ServiceSetupId join Billing.PaymentTypeMaster ptm on ptm.PaymentTypeMasterId = ssb.PaymentTypeMasterId join Billing.Term t on ss.TermId = t.TermId join ServiceCore.ServiceSetupServices sss on ss.ServiceSetupId = sss.ServiceSetupId where ptm.PaymentType= 'Payment Plan' and ss.IsActive =1 and ss.CompanyId= 133 AND ss.IsDeleted =0 AND ss.Status <> 'Canceled' AND ss.OrderType = gw.OrderType; and ss.AccountNumber = '14822' and ss.ServiceSetupId = 150264;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 05:54:29,278 - 42388 - src.utils.log - ERROR - ❌ Error fetching data: (pyodbc.ProgrammingError) ('42000', "[42000] [Microsoft][ODBC Driver 18 for SQL Server][SQL Server]Incorrect syntax near the keyword 'and'. (156) (SQLExecDirectW)") [SQL: SELECT sss.ServiceId as ServiceMasterId,ss.FrequencyScheduleId as setup_frequency_schedule_id, ssb.*, ss.IsBilling, ss.DepartmentMasterId, ss.AccountNumber, ss.CompanyId, ss.BillingLocationId, ss.ServiceLocationId, ss.TaxSysName, ss.TermId, t.NetDueIn, ss.TaxPercent, ss.PoNumber, ss.DisplayServiceAsSeparateLineItem, ss.SetupEndDate, ss.SetupStartDate from ServiceCore.ServiceSetup ss join ServiceCore.ServiceSetupBilling ssb on ss.ServiceSetupId = ssb.ServiceSetupId join Billing.PaymentTypeMaster ptm on ptm.PaymentTypeMasterId = ssb.PaymentTypeMasterId join Billing.Term t on ss.TermId = t.TermId join ServiceCore.ServiceSetupServices sss on ss.ServiceSetupId = sss.ServiceSetupId where ptm.PaymentType= 'Payment Plan' and ss.IsActive =1 and ss.CompanyId= 133 AND ss.IsDeleted =0 AND ss.Status <> 'Canceled' AND ss.OrderType = gw.OrderType; and ss.AccountNumber = '14822' and ss.ServiceSetupId = 150264;] (Background on this error at: https://sqlalche.me/e/20/f405) - __SPLIT__ 2026-05-06 05:54:29,278 - 42388 - src.utils.log - ERROR - ❌ fetch_data_from_db failed after 1 attempts: (pyodbc.ProgrammingError) ('42000', "[42000] [Microsoft][ODBC Driver 18 for SQL Server][SQL Server]Incorrect syntax near the keyword 'and'. (156) (SQLExecDirectW)") [SQL: SELECT sss.ServiceId as ServiceMasterId,ss.FrequencyScheduleId as setup_frequency_schedule_id, ssb.*, ss.IsBilling, ss.DepartmentMasterId, ss.AccountNumber, ss.CompanyId, ss.BillingLocationId, ss.ServiceLocationId, ss.TaxSysName, ss.TermId, t.NetDueIn, ss.TaxPercent, ss.PoNumber, ss.DisplayServiceAsSeparateLineItem, ss.SetupEndDate, ss.SetupStartDate from ServiceCore.ServiceSetup ss join ServiceCore.ServiceSetupBilling ssb on ss.ServiceSetupId = ssb.ServiceSetupId join Billing.PaymentTypeMaster ptm on ptm.PaymentTypeMasterId = ssb.PaymentTypeMasterId join Billing.Term t on ss.TermId = t.TermId join ServiceCore.ServiceSetupServices sss on ss.ServiceSetupId = sss.ServiceSetupId where ptm.PaymentType= 'Payment Plan' and ss.IsActive =1 and ss.CompanyId= 133 AND ss.IsDeleted =0 AND ss.Status <> 'Canceled' AND ss.OrderType = gw.OrderType; and ss.AccountNumber = '14822' and ss.ServiceSetupId = 150264;] (Background on this error at: https://sqlalche.me/e/20/f405) - __SPLIT__ 2026-05-06 05:54:29,278 - 42388 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET Status = 'Completed' WHERE GenerateInvoiceHistoryId = 42388;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 05:54:29,563 - 42388 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-06 05:54:29,563 - 42388 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET InvoiceStatusDateTime = '2026-05-06 01:54:29.563' WHERE GenerateInvoiceHistoryId = 42388;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 05:54:29,850 - 42388 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-06 05:54:29,850 - 42388 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-05-06 05:54:29,851 - 42388 - src.utils.log - INFO - Error in Sequential Invoice Gen ProjectId:42388 - Time took: 5.28 - Error:(pyodbc.ProgrammingError) ('42000', "[42000] [Microsoft][ODBC Driver 18 for SQL Server][SQL Server]Incorrect syntax near the keyword 'and'. (156) (SQLExecDirectW)") [SQL: SELECT sss.ServiceId as ServiceMasterId,ss.FrequencyScheduleId as setup_frequency_schedule_id, ssb.*, ss.IsBilling, ss.DepartmentMasterId, ss.AccountNumber, ss.CompanyId, ss.BillingLocationId, ss.ServiceLocationId, ss.TaxSysName, ss.TermId, t.NetDueIn, ss.TaxPercent, ss.PoNumber, ss.DisplayServiceAsSeparateLineItem, ss.SetupEndDate, ss.SetupStartDate from ServiceCore.ServiceSetup ss join ServiceCore.ServiceSetupBilling ssb on ss.ServiceSetupId = ssb.ServiceSetupId join Billing.PaymentTypeMaster ptm on ptm.PaymentTypeMasterId = ssb.PaymentTypeMasterId join Billing.Term t on ss.TermId = t.TermId join ServiceCore.ServiceSetupServices sss on ss.ServiceSetupId = sss.ServiceSetupId where ptm.PaymentType= 'Payment Plan' and ss.IsActive =1 and ss.CompanyId= 133 AND ss.IsDeleted =0 AND ss.Status <> 'Canceled' AND ss.OrderType = gw.OrderType; and ss.AccountNumber = '14822' and ss.ServiceSetupId = 150264;] (Background on this error at: https://sqlalche.me/e/20/f405) - __SPLIT__ 2026-05-06 09:44:03,683 - 12136 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=12136 - __SPLIT__ 2026-05-06 09:44:03,684 - 12136 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 12136 - __SPLIT__ 2026-05-06 09:44:03,684 - 12136 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-05-06 09:44:03,684 - 12136 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 09:44:05,706 - 12136 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-06 09:44:05,706 - 12136 - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-05-06 09:44:05,706 - 12136 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 12136;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 09:44:06,017 - 12136 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-06 09:44:06,017 - 12136 - 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 = 12136), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 12136), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 12136 AND ss.FrequencyScheduleId IS NOT NULL AND ss.IsActive = 1 AND ss.IsDeleted = 0 AND ss.Status <> 'Canceled' AND ss.OrderType = gw.OrderType;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 09:44:06,347 - 12136 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-06 09:44:06,347 - 12136 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 12136;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 09:44:06,644 - 12136 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-06 09:44:06,645 - 12136 - src.utils.log - INFO - No Setup Found Error:No setups found for GenerateWorkOrderHistoryid: 12136 - __SPLIT__ 2026-05-06 09:44:06,645 - 12136 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 12136;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 09:44:06,929 - 12136 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-06 09:44:06,929 - 12136 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET WorkOrderStatusDateTime = '2026-05-06 05:44:06.929' WHERE GenerateWorkOrderHistoryId = 12136;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 09:44:07,216 - 12136 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-06 09:47:06,125 - 12137 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=12137 - __SPLIT__ 2026-05-06 09:47:06,126 - 12137 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 12137 - __SPLIT__ 2026-05-06 09:47:06,127 - 12137 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-05-06 09:47:06,127 - 12137 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 09:47:08,205 - 12137 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-06 09:47:08,205 - 12137 - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-05-06 09:47:08,205 - 12137 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 12137;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 09:47:08,496 - 12137 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-06 09:47:08,496 - 12137 - 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 = 12137), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 12137), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 12137 AND ss.FrequencyScheduleId IS NOT NULL AND ss.IsActive = 1 AND ss.IsDeleted = 0 AND ss.Status <> 'Canceled' AND ss.OrderType = gw.OrderType;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 09:47:08,821 - 12137 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-06 09:47:08,821 - 12137 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 12137;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 09:47:09,114 - 12137 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-06 09:47:09,115 - 12137 - src.utils.log - INFO - No Setup Found Error:No setups found for GenerateWorkOrderHistoryid: 12137 - __SPLIT__ 2026-05-06 09:47:09,115 - 12137 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 12137;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 09:47:09,398 - 12137 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-06 09:47:09,398 - 12137 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET WorkOrderStatusDateTime = '2026-05-06 05:47:09.398' WHERE GenerateWorkOrderHistoryId = 12137;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 09:47:09,685 - 12137 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-06 09:47:57,823 - 13533 - src.utils.log - INFO - ParallelProcessing=False GenerateInvoiceHistoryId=13533 - __SPLIT__ 2026-05-06 09:47:57,824 - 13533 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-05-06 09:47:57,824 - 13533 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 09:47:59,896 - 13533 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-06 09:47:59,897 - 13533 - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-05-06 09:47:59,897 - 13533 - src.utils.log - INFO - Sequential Invoice generation algo started for GenerateInvoiceHistoryId: 13533 - __SPLIT__ 2026-05-06 09:47:59,897 - 13533 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET Status = 'InProgress' WHERE GenerateInvoiceHistoryId = 13533;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 09:48:00,214 - 13533 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-06 09:48:00,214 - 13533 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateInvoiceHistory WHERE GenerateInvoiceHistoryId = 13533;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 09:48:00,519 - 13533 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-06 09:48:00,520 - 13533 - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceId as ServiceMasterId,ss.FrequencyScheduleId as setup_frequency_schedule_id, ssb.*, ss.IsBilling, ss.DepartmentMasterId, ss.AccountNumber, ss.CompanyId, ss.BillingLocationId, ss.ServiceLocationId, ss.TaxSysName, ss.TermId, t.NetDueIn, ss.TaxPercent, ss.PoNumber, ss.DisplayServiceAsSeparateLineItem, ss.SetupEndDate, ss.SetupStartDate from ServiceCore.ServiceSetup ss join ServiceCore.ServiceSetupBilling ssb on ss.ServiceSetupId = ssb.ServiceSetupId join Billing.PaymentTypeMaster ptm on ptm.PaymentTypeMasterId = ssb.PaymentTypeMasterId join Billing.Term t on ss.TermId = t.TermId join ServiceCore.ServiceSetupServices sss on ss.ServiceSetupId = sss.ServiceSetupId where ptm.PaymentType= 'Payment Plan' and ss.IsActive =1 and ss.CompanyId= 135 AND ss.IsDeleted =0 AND ss.Status <> 'Canceled' AND ss.OrderType = gw.OrderType; and ss.AccountNumber = '5871' and ss.ServiceSetupId = 23828;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 09:48:00,818 - 13533 - src.utils.log - ERROR - ❌ Error fetching data: (pyodbc.ProgrammingError) ('42000', "[42000] [Microsoft][ODBC Driver 18 for SQL Server][SQL Server]Incorrect syntax near the keyword 'and'. (156) (SQLExecDirectW)") [SQL: SELECT sss.ServiceId as ServiceMasterId,ss.FrequencyScheduleId as setup_frequency_schedule_id, ssb.*, ss.IsBilling, ss.DepartmentMasterId, ss.AccountNumber, ss.CompanyId, ss.BillingLocationId, ss.ServiceLocationId, ss.TaxSysName, ss.TermId, t.NetDueIn, ss.TaxPercent, ss.PoNumber, ss.DisplayServiceAsSeparateLineItem, ss.SetupEndDate, ss.SetupStartDate from ServiceCore.ServiceSetup ss join ServiceCore.ServiceSetupBilling ssb on ss.ServiceSetupId = ssb.ServiceSetupId join Billing.PaymentTypeMaster ptm on ptm.PaymentTypeMasterId = ssb.PaymentTypeMasterId join Billing.Term t on ss.TermId = t.TermId join ServiceCore.ServiceSetupServices sss on ss.ServiceSetupId = sss.ServiceSetupId where ptm.PaymentType= 'Payment Plan' and ss.IsActive =1 and ss.CompanyId= 135 AND ss.IsDeleted =0 AND ss.Status <> 'Canceled' AND ss.OrderType = gw.OrderType; and ss.AccountNumber = '5871' and ss.ServiceSetupId = 23828;] (Background on this error at: https://sqlalche.me/e/20/f405) - __SPLIT__ 2026-05-06 09:48:00,819 - 13533 - src.utils.log - ERROR - ❌ fetch_data_from_db failed after 1 attempts: (pyodbc.ProgrammingError) ('42000', "[42000] [Microsoft][ODBC Driver 18 for SQL Server][SQL Server]Incorrect syntax near the keyword 'and'. (156) (SQLExecDirectW)") [SQL: SELECT sss.ServiceId as ServiceMasterId,ss.FrequencyScheduleId as setup_frequency_schedule_id, ssb.*, ss.IsBilling, ss.DepartmentMasterId, ss.AccountNumber, ss.CompanyId, ss.BillingLocationId, ss.ServiceLocationId, ss.TaxSysName, ss.TermId, t.NetDueIn, ss.TaxPercent, ss.PoNumber, ss.DisplayServiceAsSeparateLineItem, ss.SetupEndDate, ss.SetupStartDate from ServiceCore.ServiceSetup ss join ServiceCore.ServiceSetupBilling ssb on ss.ServiceSetupId = ssb.ServiceSetupId join Billing.PaymentTypeMaster ptm on ptm.PaymentTypeMasterId = ssb.PaymentTypeMasterId join Billing.Term t on ss.TermId = t.TermId join ServiceCore.ServiceSetupServices sss on ss.ServiceSetupId = sss.ServiceSetupId where ptm.PaymentType= 'Payment Plan' and ss.IsActive =1 and ss.CompanyId= 135 AND ss.IsDeleted =0 AND ss.Status <> 'Canceled' AND ss.OrderType = gw.OrderType; and ss.AccountNumber = '5871' and ss.ServiceSetupId = 23828;] (Background on this error at: https://sqlalche.me/e/20/f405) - __SPLIT__ 2026-05-06 09:48:00,819 - 13533 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET Status = 'Completed' WHERE GenerateInvoiceHistoryId = 13533;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 09:48:01,116 - 13533 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-06 09:48:01,116 - 13533 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET InvoiceStatusDateTime = '2026-05-06 05:48:01.116' WHERE GenerateInvoiceHistoryId = 13533;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 09:48:01,408 - 13533 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-06 09:48:01,409 - 13533 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-05-06 09:48:01,409 - 13533 - src.utils.log - INFO - Error in Sequential Invoice Gen ProjectId:13533 - Time took: 3.59 - Error:(pyodbc.ProgrammingError) ('42000', "[42000] [Microsoft][ODBC Driver 18 for SQL Server][SQL Server]Incorrect syntax near the keyword 'and'. (156) (SQLExecDirectW)") [SQL: SELECT sss.ServiceId as ServiceMasterId,ss.FrequencyScheduleId as setup_frequency_schedule_id, ssb.*, ss.IsBilling, ss.DepartmentMasterId, ss.AccountNumber, ss.CompanyId, ss.BillingLocationId, ss.ServiceLocationId, ss.TaxSysName, ss.TermId, t.NetDueIn, ss.TaxPercent, ss.PoNumber, ss.DisplayServiceAsSeparateLineItem, ss.SetupEndDate, ss.SetupStartDate from ServiceCore.ServiceSetup ss join ServiceCore.ServiceSetupBilling ssb on ss.ServiceSetupId = ssb.ServiceSetupId join Billing.PaymentTypeMaster ptm on ptm.PaymentTypeMasterId = ssb.PaymentTypeMasterId join Billing.Term t on ss.TermId = t.TermId join ServiceCore.ServiceSetupServices sss on ss.ServiceSetupId = sss.ServiceSetupId where ptm.PaymentType= 'Payment Plan' and ss.IsActive =1 and ss.CompanyId= 135 AND ss.IsDeleted =0 AND ss.Status <> 'Canceled' AND ss.OrderType = gw.OrderType; and ss.AccountNumber = '5871' and ss.ServiceSetupId = 23828;] (Background on this error at: https://sqlalche.me/e/20/f405) - __SPLIT__ 2026-05-06 09:55:28,603 - 12140 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=12140 - __SPLIT__ 2026-05-06 09:55:28,604 - 12140 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 12140 - __SPLIT__ 2026-05-06 09:55:28,605 - 12140 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-05-06 09:55:28,605 - 12140 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 09:55:30,755 - 12140 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-06 09:55:30,756 - 12140 - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-05-06 09:55:30,756 - 12140 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 12140;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 09:55:31,047 - 12140 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-06 09:55:31,047 - 12140 - 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 = 12140), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 12140), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 12140 AND ss.FrequencyScheduleId IS NOT NULL AND ss.IsActive = 1 AND ss.IsDeleted = 0 AND ss.Status <> 'Canceled' AND ss.OrderType = gw.OrderType;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 09:55:31,387 - 12140 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-06 09:55:31,387 - 12140 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 12140;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 09:55:31,695 - 12140 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-06 09:55:31,696 - 12140 - src.utils.log - INFO - No Setup Found Error:No setups found for GenerateWorkOrderHistoryid: 12140 - __SPLIT__ 2026-05-06 09:55:31,696 - 12140 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 12140;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 09:55:31,995 - 12140 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-06 09:55:31,995 - 12140 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET WorkOrderStatusDateTime = '2026-05-06 05:55:31.995' WHERE GenerateWorkOrderHistoryId = 12140;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 09:55:32,292 - 12140 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-06 09:57:13,483 - 12141 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=12141 - __SPLIT__ 2026-05-06 09:57:13,484 - 12141 - src.utils.log - INFO - Work order Generation/Publish algo started for GenerateWorkOrderHistoryId: 12141 - __SPLIT__ 2026-05-06 09:57:13,484 - 12141 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-05-06 09:57:13,484 - 12141 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 09:57:15,603 - 12141 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-06 09:57:15,603 - 12141 - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-05-06 09:57:15,603 - 12141 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 12141;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 09:57:15,896 - 12141 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-06 09:57:15,896 - 12141 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET WoGenStartDateTime = '2026-05-06 05:57:15.896' WHERE GenerateWorkOrderHistoryId = 12141;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 09:57:16,196 - 12141 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-06 09:57:16,197 - 12141 - src.utils.log - INFO - πŸ” Fetching data: Select CreatedBy, CompanyId from ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryId = 12141;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 09:57:16,499 - 12141 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-06 09:57:16,500 - 12141 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'New', WoPublishStartDateTime = '2026-05-06 05:57:16.500' WHERE CompanyId = 135 AND GenerateWorkOrderHistoryId = 12141;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 09:57:16,806 - 12141 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-06 09:57:16,806 - 12141 - 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 = 12141), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 12141), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 12141 AND ss.FrequencyScheduleId IS NOT NULL AND ss.IsActive = 1 AND ss.IsDeleted = 0 AND ss.Status <> 'Canceled' AND ss.OrderType = gw.OrderType;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 09:57:17,137 - 12141 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-06 09:57:17,137 - 12141 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 12141;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 09:57:17,434 - 12141 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-06 09:57:17,435 - 12141 - src.utils.log - INFO - No Setup Found Error:No setups found for GenerateWorkOrderHistoryid: 12141 - __SPLIT__ 2026-05-06 09:57:17,435 - 12141 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 12141;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 09:57:17,734 - 12141 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-06 09:57:17,734 - 12141 - src.utils.log - INFO - Work order generation failed - Time took: 4.25 - __SPLIT__ 2026-05-06 09:57:17,734 - 12141 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-05-06 05:57:17.734' , WorkOrderStatusDateTime = '2026-05-06 05:57:17.734' WHERE CompanyId = 135 AND GenerateWorkOrderHistoryId = 12141;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 09:57:18,026 - 12141 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-06 10:05:48,020 - 13534 - src.utils.log - INFO - ParallelProcessing=False GenerateInvoiceHistoryId=13534 - __SPLIT__ 2026-05-06 10:05:48,022 - 13534 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-05-06 10:05:48,022 - 13534 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 10:05:50,158 - 13534 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-06 10:05:50,159 - 13534 - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-05-06 10:05:50,159 - 13534 - src.utils.log - INFO - Sequential Invoice generation algo started for GenerateInvoiceHistoryId: 13534 - __SPLIT__ 2026-05-06 10:05:50,159 - 13534 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET Status = 'InProgress' WHERE GenerateInvoiceHistoryId = 13534;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 10:05:50,459 - 13534 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-06 10:05:50,459 - 13534 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateInvoiceHistory WHERE GenerateInvoiceHistoryId = 13534;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 10:05:50,764 - 13534 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-06 10:05:50,765 - 13534 - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceId as ServiceMasterId,ss.FrequencyScheduleId as setup_frequency_schedule_id, ssb.*, ss.IsBilling, ss.DepartmentMasterId, ss.AccountNumber, ss.CompanyId, ss.BillingLocationId, ss.ServiceLocationId, ss.TaxSysName, ss.TermId, t.NetDueIn, ss.TaxPercent, ss.PoNumber, ss.DisplayServiceAsSeparateLineItem, ss.SetupEndDate, ss.SetupStartDate from ServiceCore.ServiceSetup ss join ServiceCore.ServiceSetupBilling ssb on ss.ServiceSetupId = ssb.ServiceSetupId join Billing.PaymentTypeMaster ptm on ptm.PaymentTypeMasterId = ssb.PaymentTypeMasterId join Billing.Term t on ss.TermId = t.TermId join ServiceCore.ServiceSetupServices sss on ss.ServiceSetupId = sss.ServiceSetupId where ptm.PaymentType= 'Payment Plan' and ss.IsActive =1 and ss.CompanyId= 135 AND ss.IsDeleted =0 AND ss.Status <> 'Canceled' AND ss.OrderType = gw.OrderType; and ss.AccountNumber = '5871' and ss.ServiceSetupId = 23642;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 10:05:51,065 - 13534 - src.utils.log - ERROR - ❌ Error fetching data: (pyodbc.ProgrammingError) ('42000', "[42000] [Microsoft][ODBC Driver 18 for SQL Server][SQL Server]Incorrect syntax near the keyword 'and'. (156) (SQLExecDirectW)") [SQL: SELECT sss.ServiceId as ServiceMasterId,ss.FrequencyScheduleId as setup_frequency_schedule_id, ssb.*, ss.IsBilling, ss.DepartmentMasterId, ss.AccountNumber, ss.CompanyId, ss.BillingLocationId, ss.ServiceLocationId, ss.TaxSysName, ss.TermId, t.NetDueIn, ss.TaxPercent, ss.PoNumber, ss.DisplayServiceAsSeparateLineItem, ss.SetupEndDate, ss.SetupStartDate from ServiceCore.ServiceSetup ss join ServiceCore.ServiceSetupBilling ssb on ss.ServiceSetupId = ssb.ServiceSetupId join Billing.PaymentTypeMaster ptm on ptm.PaymentTypeMasterId = ssb.PaymentTypeMasterId join Billing.Term t on ss.TermId = t.TermId join ServiceCore.ServiceSetupServices sss on ss.ServiceSetupId = sss.ServiceSetupId where ptm.PaymentType= 'Payment Plan' and ss.IsActive =1 and ss.CompanyId= 135 AND ss.IsDeleted =0 AND ss.Status <> 'Canceled' AND ss.OrderType = gw.OrderType; and ss.AccountNumber = '5871' and ss.ServiceSetupId = 23642;] (Background on this error at: https://sqlalche.me/e/20/f405) - __SPLIT__ 2026-05-06 10:05:51,065 - 13534 - src.utils.log - ERROR - ❌ fetch_data_from_db failed after 1 attempts: (pyodbc.ProgrammingError) ('42000', "[42000] [Microsoft][ODBC Driver 18 for SQL Server][SQL Server]Incorrect syntax near the keyword 'and'. (156) (SQLExecDirectW)") [SQL: SELECT sss.ServiceId as ServiceMasterId,ss.FrequencyScheduleId as setup_frequency_schedule_id, ssb.*, ss.IsBilling, ss.DepartmentMasterId, ss.AccountNumber, ss.CompanyId, ss.BillingLocationId, ss.ServiceLocationId, ss.TaxSysName, ss.TermId, t.NetDueIn, ss.TaxPercent, ss.PoNumber, ss.DisplayServiceAsSeparateLineItem, ss.SetupEndDate, ss.SetupStartDate from ServiceCore.ServiceSetup ss join ServiceCore.ServiceSetupBilling ssb on ss.ServiceSetupId = ssb.ServiceSetupId join Billing.PaymentTypeMaster ptm on ptm.PaymentTypeMasterId = ssb.PaymentTypeMasterId join Billing.Term t on ss.TermId = t.TermId join ServiceCore.ServiceSetupServices sss on ss.ServiceSetupId = sss.ServiceSetupId where ptm.PaymentType= 'Payment Plan' and ss.IsActive =1 and ss.CompanyId= 135 AND ss.IsDeleted =0 AND ss.Status <> 'Canceled' AND ss.OrderType = gw.OrderType; and ss.AccountNumber = '5871' and ss.ServiceSetupId = 23642;] (Background on this error at: https://sqlalche.me/e/20/f405) - __SPLIT__ 2026-05-06 10:05:51,065 - 13534 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET Status = 'Completed' WHERE GenerateInvoiceHistoryId = 13534;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 10:05:51,366 - 13534 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-06 10:05:51,366 - 13534 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET InvoiceStatusDateTime = '2026-05-06 06:05:51.366' WHERE GenerateInvoiceHistoryId = 13534;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 10:05:51,664 - 13534 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-06 10:05:51,665 - 13534 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-05-06 10:05:51,665 - 13534 - src.utils.log - INFO - Error in Sequential Invoice Gen ProjectId:13534 - Time took: 3.64 - Error:(pyodbc.ProgrammingError) ('42000', "[42000] [Microsoft][ODBC Driver 18 for SQL Server][SQL Server]Incorrect syntax near the keyword 'and'. (156) (SQLExecDirectW)") [SQL: SELECT sss.ServiceId as ServiceMasterId,ss.FrequencyScheduleId as setup_frequency_schedule_id, ssb.*, ss.IsBilling, ss.DepartmentMasterId, ss.AccountNumber, ss.CompanyId, ss.BillingLocationId, ss.ServiceLocationId, ss.TaxSysName, ss.TermId, t.NetDueIn, ss.TaxPercent, ss.PoNumber, ss.DisplayServiceAsSeparateLineItem, ss.SetupEndDate, ss.SetupStartDate from ServiceCore.ServiceSetup ss join ServiceCore.ServiceSetupBilling ssb on ss.ServiceSetupId = ssb.ServiceSetupId join Billing.PaymentTypeMaster ptm on ptm.PaymentTypeMasterId = ssb.PaymentTypeMasterId join Billing.Term t on ss.TermId = t.TermId join ServiceCore.ServiceSetupServices sss on ss.ServiceSetupId = sss.ServiceSetupId where ptm.PaymentType= 'Payment Plan' and ss.IsActive =1 and ss.CompanyId= 135 AND ss.IsDeleted =0 AND ss.Status <> 'Canceled' AND ss.OrderType = gw.OrderType; and ss.AccountNumber = '5871' and ss.ServiceSetupId = 23642;] (Background on this error at: https://sqlalche.me/e/20/f405) - __SPLIT__ 2026-05-06 10:06:20,266 - 13535 - src.utils.log - INFO - ParallelProcessing=False GenerateInvoiceHistoryId=13535 - __SPLIT__ 2026-05-06 10:06:20,267 - 13535 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-05-06 10:06:20,267 - 13535 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 10:06:22,357 - 13535 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-06 10:06:22,357 - 13535 - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-05-06 10:06:22,357 - 13535 - src.utils.log - INFO - Sequential Invoice generation algo started for GenerateInvoiceHistoryId: 13535 - __SPLIT__ 2026-05-06 10:06:22,357 - 13535 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET Status = 'InProgress' WHERE GenerateInvoiceHistoryId = 13535;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 10:06:22,649 - 13535 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-06 10:06:22,650 - 13535 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateInvoiceHistory WHERE GenerateInvoiceHistoryId = 13535;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 10:06:22,958 - 13535 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-06 10:06:22,959 - 13535 - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceId as ServiceMasterId,ss.FrequencyScheduleId as setup_frequency_schedule_id, ssb.*, ss.IsBilling, ss.DepartmentMasterId, ss.AccountNumber, ss.CompanyId, ss.BillingLocationId, ss.ServiceLocationId, ss.TaxSysName, ss.TermId, t.NetDueIn, ss.TaxPercent, ss.PoNumber, ss.DisplayServiceAsSeparateLineItem, ss.SetupEndDate, ss.SetupStartDate from ServiceCore.ServiceSetup ss join ServiceCore.ServiceSetupBilling ssb on ss.ServiceSetupId = ssb.ServiceSetupId join Billing.PaymentTypeMaster ptm on ptm.PaymentTypeMasterId = ssb.PaymentTypeMasterId join Billing.Term t on ss.TermId = t.TermId join ServiceCore.ServiceSetupServices sss on ss.ServiceSetupId = sss.ServiceSetupId where ptm.PaymentType= 'Payment Plan' and ss.IsActive =1 and ss.CompanyId= 135 AND ss.IsDeleted =0 AND ss.Status <> 'Canceled' AND ss.OrderType = gw.OrderType; and ss.AccountNumber = '5871' and ss.ServiceSetupId = 23424;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 10:06:23,254 - 13535 - src.utils.log - ERROR - ❌ Error fetching data: (pyodbc.ProgrammingError) ('42000', "[42000] [Microsoft][ODBC Driver 18 for SQL Server][SQL Server]Incorrect syntax near the keyword 'and'. (156) (SQLExecDirectW)") [SQL: SELECT sss.ServiceId as ServiceMasterId,ss.FrequencyScheduleId as setup_frequency_schedule_id, ssb.*, ss.IsBilling, ss.DepartmentMasterId, ss.AccountNumber, ss.CompanyId, ss.BillingLocationId, ss.ServiceLocationId, ss.TaxSysName, ss.TermId, t.NetDueIn, ss.TaxPercent, ss.PoNumber, ss.DisplayServiceAsSeparateLineItem, ss.SetupEndDate, ss.SetupStartDate from ServiceCore.ServiceSetup ss join ServiceCore.ServiceSetupBilling ssb on ss.ServiceSetupId = ssb.ServiceSetupId join Billing.PaymentTypeMaster ptm on ptm.PaymentTypeMasterId = ssb.PaymentTypeMasterId join Billing.Term t on ss.TermId = t.TermId join ServiceCore.ServiceSetupServices sss on ss.ServiceSetupId = sss.ServiceSetupId where ptm.PaymentType= 'Payment Plan' and ss.IsActive =1 and ss.CompanyId= 135 AND ss.IsDeleted =0 AND ss.Status <> 'Canceled' AND ss.OrderType = gw.OrderType; and ss.AccountNumber = '5871' and ss.ServiceSetupId = 23424;] (Background on this error at: https://sqlalche.me/e/20/f405) - __SPLIT__ 2026-05-06 10:06:23,254 - 13535 - src.utils.log - ERROR - ❌ fetch_data_from_db failed after 1 attempts: (pyodbc.ProgrammingError) ('42000', "[42000] [Microsoft][ODBC Driver 18 for SQL Server][SQL Server]Incorrect syntax near the keyword 'and'. (156) (SQLExecDirectW)") [SQL: SELECT sss.ServiceId as ServiceMasterId,ss.FrequencyScheduleId as setup_frequency_schedule_id, ssb.*, ss.IsBilling, ss.DepartmentMasterId, ss.AccountNumber, ss.CompanyId, ss.BillingLocationId, ss.ServiceLocationId, ss.TaxSysName, ss.TermId, t.NetDueIn, ss.TaxPercent, ss.PoNumber, ss.DisplayServiceAsSeparateLineItem, ss.SetupEndDate, ss.SetupStartDate from ServiceCore.ServiceSetup ss join ServiceCore.ServiceSetupBilling ssb on ss.ServiceSetupId = ssb.ServiceSetupId join Billing.PaymentTypeMaster ptm on ptm.PaymentTypeMasterId = ssb.PaymentTypeMasterId join Billing.Term t on ss.TermId = t.TermId join ServiceCore.ServiceSetupServices sss on ss.ServiceSetupId = sss.ServiceSetupId where ptm.PaymentType= 'Payment Plan' and ss.IsActive =1 and ss.CompanyId= 135 AND ss.IsDeleted =0 AND ss.Status <> 'Canceled' AND ss.OrderType = gw.OrderType; and ss.AccountNumber = '5871' and ss.ServiceSetupId = 23424;] (Background on this error at: https://sqlalche.me/e/20/f405) - __SPLIT__ 2026-05-06 10:06:23,254 - 13535 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET Status = 'Completed' WHERE GenerateInvoiceHistoryId = 13535;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 10:06:23,556 - 13535 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-06 10:06:23,556 - 13535 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET InvoiceStatusDateTime = '2026-05-06 06:06:23.556' WHERE GenerateInvoiceHistoryId = 13535;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 10:06:23,869 - 13535 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-06 10:06:23,869 - 13535 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-05-06 10:06:23,869 - 13535 - src.utils.log - INFO - Error in Sequential Invoice Gen ProjectId:13535 - Time took: 3.6 - Error:(pyodbc.ProgrammingError) ('42000', "[42000] [Microsoft][ODBC Driver 18 for SQL Server][SQL Server]Incorrect syntax near the keyword 'and'. (156) (SQLExecDirectW)") [SQL: SELECT sss.ServiceId as ServiceMasterId,ss.FrequencyScheduleId as setup_frequency_schedule_id, ssb.*, ss.IsBilling, ss.DepartmentMasterId, ss.AccountNumber, ss.CompanyId, ss.BillingLocationId, ss.ServiceLocationId, ss.TaxSysName, ss.TermId, t.NetDueIn, ss.TaxPercent, ss.PoNumber, ss.DisplayServiceAsSeparateLineItem, ss.SetupEndDate, ss.SetupStartDate from ServiceCore.ServiceSetup ss join ServiceCore.ServiceSetupBilling ssb on ss.ServiceSetupId = ssb.ServiceSetupId join Billing.PaymentTypeMaster ptm on ptm.PaymentTypeMasterId = ssb.PaymentTypeMasterId join Billing.Term t on ss.TermId = t.TermId join ServiceCore.ServiceSetupServices sss on ss.ServiceSetupId = sss.ServiceSetupId where ptm.PaymentType= 'Payment Plan' and ss.IsActive =1 and ss.CompanyId= 135 AND ss.IsDeleted =0 AND ss.Status <> 'Canceled' AND ss.OrderType = gw.OrderType; and ss.AccountNumber = '5871' and ss.ServiceSetupId = 23424;] (Background on this error at: https://sqlalche.me/e/20/f405) - __SPLIT__ 2026-05-06 10:11:46,499 - 124373 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=124373 - __SPLIT__ 2026-05-06 10:11:46,500 - 124373 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 124373 - __SPLIT__ 2026-05-06 10:11:46,517 - 124373 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-05-06 10:11:46,517 - 124373 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 10:11:49,247 - 124373 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-06 10:11:49,247 - 124373 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-05-06 10:11:49,248 - 124373 - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-05-06 10:11:49,248 - 124373 - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-05-06 10:11:49,248 - 124373 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 124373;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 10:11:51,730 - 124373 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-06 10:11:51,731 - 124373 - 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 = 124373), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 124373), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 124373 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-05-06 10:11:52,145 - 124373 - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-05-06 10:11:52,146 - 124373 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 124373;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 10:11:52,419 - 124373 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-06 10:11:52,423 - 124373 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-05-06 10:11:52,424 - 124373 - 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 = 14509... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 10:11:52,706 - 124373 - src.utils.log - INFO - βœ… Fetched 12 rows - __SPLIT__ 2026-05-06 10:11:52,706 - 124373 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-05-06 10:11:52,710 - 124373 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-05-06 10:11:52,710 - 124373 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId in (150260, 150261, 150262, 150263);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 10:11:52,982 - 124373 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-06 10:11:52,982 - 124373 - src.utils.log - INFO - πŸ” Fetching data: select ServiceDate, ServiceSetupId,IsInitial from serviceCore.WorkOrder wo inner join ServiceCore.WorkOrderStatus wos on wo.WoStatusId = wos.WoStatusId where ServiceDate >= '2026-05-06 00:00:00' and ServiceDate <= '2026-12-31 00:00:00' and ServiceSetupId in (150260, 150261, 150262, 150263) and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 10:11:53,267 - 124373 - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-05-06 10:11:53,845 - 124373 - src.utils.log - INFO - Generating work orders for setup: 150260 - __SPLIT__ 2026-05-06 10:11:53,894 - 124373 - src.utils.log - INFO - Generating work orders for setup: 150261 - __SPLIT__ 2026-05-06 10:11:53,942 - 124373 - src.utils.log - INFO - Generating work orders for setup: 150262 - __SPLIT__ 2026-05-06 10:11:53,991 - 124373 - src.utils.log - INFO - Generating work orders for setup: 150263 - __SPLIT__ 2026-05-06 10:11:54,044 - 124373 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId in (1131, 11436);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 10:11:54,317 - 124373 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-05-06 10:11:54,369 - 124373 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-05-06 10:11:54,376 - 124373 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=133 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 10:11:54,648 - 124373 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-06 10:11:54,650 - 124373 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-05-06 10:11:54,650 - 124373 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-05-06 10:11:54,651 - 124373 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (150260, 150261, 150262, 150263) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 10:11:55,565 - 124373 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-06 10:11:55,565 - 124373 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (150260, 150261, 150262, 150263) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 10:11:56,042 - 124373 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-06 10:11:56,042 - 124373 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (150260, 150261, 150262, 150263) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 10:11:56,339 - 124373 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-06 10:11:56,339 - 124373 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (150260, 150261, 150262, 150263) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 10:11:56,947 - 124373 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-06 10:11:56,947 - 124373 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (150260, 150261, 150262, 150263) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 10:11:57,277 - 124373 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-06 10:11:57,277 - 124373 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (150260, 150261, 150262, 150263) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 10:11:57,657 - 124373 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-06 10:11:57,657 - 124373 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (150260, 150261, 150262, 150263) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 10:11:57,950 - 124373 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-06 10:11:57,950 - 124373 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (150260, 150261, 150262, 150263) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 10:11:58,713 - 124373 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-06 10:11:58,713 - 124373 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-06 10:11:58,713 - 124373 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 28 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 10:11:59,045 - 124373 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 28) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-05-06 10:12:01,321 - 124373 - src.utils.log - INFO - βœ… All 28 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-05-06 10:12:01,322 - 124373 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 28 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-05-06 15:39:09.403' and ServiceSetupId in (150260, 150261, 150262, 150263)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 10:12:01,614 - 124373 - src.utils.log - INFO - βœ… Fetched 28 rows - __SPLIT__ 2026-05-06 10:12:01,615 - 124373 - src.utils.log - INFO - Id's of work order inserted to DB: [3672847 3672848 3672849 3672850 3672851 3672852 3672853 3672854 3672855 3672856 3672857 3672858 3672859 3672860 3672861 3672862 3672863 3672864 3672865 3672866 3672867 3672868 3672869 3672870 3672871 3672872 3672873 3672874] - __SPLIT__ 2026-05-06 10:12:01,615 - 124373 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId in (150260, 150261, 150262, 150263);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 10:12:01,890 - 124373 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-06 10:12:01,891 - 124373 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-05-06 10:12:01,891 - 124373 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId in (150260, 150261, 150262, 150263)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 10:12:02,168 - 124373 - src.utils.log - INFO - βœ… Fetched 7 rows - __SPLIT__ 2026-05-06 10:12:02,168 - 124373 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId in (150260, 150261, 150262, 150263)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 10:12:02,443 - 124373 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-06 10:12:02,448 - 124373 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId in (150260, 150261, 150262, 150263)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 10:12:02,731 - 124373 - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-05-06 10:12:02,733 - 124373 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId in (150260, 150261, 150262, 150263)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 10:12:03,346 - 124373 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-06 10:12:03,347 - 124373 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId in (150260, 150261, 150262, 150263)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 10:12:03,623 - 124373 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-06 10:12:03,624 - 124373 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId in (150260, 150261, 150262, 150263);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 10:12:03,896 - 124373 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-06 10:12:03,897 - 124373 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId in (150260, 150261, 150262, 150263);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 10:12:04,170 - 124373 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-06 10:12:04,171 - 124373 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId in (150260, 150261, 150262, 150263);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 10:12:05,293 - 124373 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-06 10:12:05,293 - 124373 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId in (150260, 150261, 150262, 150263);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 10:12:05,579 - 124373 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-06 10:12:05,588 - 124373 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-05-06 10:12:05,588 - 124373 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-05-06 10:12:05,588 - 124373 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-05-06 10:12:05,588 - 124373 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.CommunicationPreferencesServiceReportNotification: - __SPLIT__ 2026-05-06 10:12:05,588 - 124373 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-05-06 10:12:05,588 - 124373 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SetupAutoGenerationSourceMapping: - __SPLIT__ 2026-05-06 10:12:05,588 - 124373 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-05-06 10:12:05,588 - 124373 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationAppliedDiscount: - __SPLIT__ 2026-05-06 10:12:05,588 - 124373 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-05-06 10:12:05,589 - 124373 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SubWorkOrderAutoGeneration: - __SPLIT__ 2026-05-06 10:12:05,589 - 124373 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-05-06 10:12:05,589 - 124373 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: - __SPLIT__ 2026-05-06 10:12:05,589 - 124373 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-05-06 10:12:05,589 - 124373 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: - __SPLIT__ 2026-05-06 10:12:05,589 - 124373 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-05-06 10:12:05,589 - 124373 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-06 10:12:05,589 - 124373 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3672847, 3672848, 3672849, 3672850, 3672851, 3672852, 3672853, 3672854, 3672855, 3672856, 3672857, 3672858, 3672859, 3672860, 3672861, 3672862, 3672863, 3672864, 3672865, 3672866, 3672867, 3672868, 3672869, 3672870, 3672871, 3672872, 3672873, 3672874) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 10:12:05,865 - 124373 - src.utils.log - INFO - βœ… Fetched 28 rows - __SPLIT__ 2026-05-06 10:12:05,866 - 124373 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationCrews: 28 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 10:12:06,168 - 124373 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 28) into ServiceCore.WorkOrderAutoGenerationCrews - __SPLIT__ 2026-05-06 10:12:07,143 - 124373 - src.utils.log - INFO - βœ… All 28 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationCrews in 1 batches - __SPLIT__ 2026-05-06 10:12:07,144 - 124373 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-05-06 10:12:07,144 - 124373 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationServices: - __SPLIT__ 2026-05-06 10:12:07,144 - 124373 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-05-06 10:12:07,144 - 124373 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-06 10:12:07,145 - 124373 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3672847, 3672848, 3672849, 3672850, 3672851, 3672852, 3672853, 3672854, 3672855, 3672856, 3672857, 3672858, 3672859, 3672860, 3672861, 3672862, 3672863, 3672864, 3672865, 3672866, 3672867, 3672868, 3672869, 3672870, 3672871, 3672872, 3672873, 3672874) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 10:12:07,413 - 124373 - src.utils.log - INFO - βœ… Fetched 28 rows - __SPLIT__ 2026-05-06 10:12:07,414 - 124373 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 49 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 10:12:07,717 - 124373 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 49) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-05-06 10:12:08,956 - 124373 - src.utils.log - INFO - βœ… All 49 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-05-06 10:12:08,956 - 124373 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-05-06 10:12:08,956 - 124373 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 124373;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 10:12:09,228 - 124373 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-06 10:12:09,229 - 124373 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-05-06 10:12:09,229 - 124373 - src.utils.log - INFO - Time took to perform operation: 22.73 - __SPLIT__ 2026-05-06 10:12:09,229 - 124373 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 124373;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 10:12:09,500 - 124373 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-06 10:12:09,500 - 124373 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET WorkOrderStatusDateTime = '2026-05-06 06:12:09.500' WHERE GenerateWorkOrderHistoryId = 124373;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 10:12:09,774 - 124373 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-06 10:24:17,118 - 12144 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=12144 - __SPLIT__ 2026-05-06 10:24:17,120 - 12144 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 12144 - __SPLIT__ 2026-05-06 10:24:17,134 - 12144 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-05-06 10:24:17,134 - 12144 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 10:24:19,747 - 12144 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-06 10:24:19,747 - 12144 - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-05-06 10:24:19,747 - 12144 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 12144;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 10:24:20,072 - 12144 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-06 10:24:20,073 - 12144 - 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 = 12144), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 12144), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 12144 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-05-06 10:24:20,387 - 12144 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-06 10:24:20,388 - 12144 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 12144;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 10:24:20,680 - 12144 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-06 10:24:20,681 - 12144 - src.utils.log - INFO - No Setup Found Error:No setups found for GenerateWorkOrderHistoryid: 12144 - __SPLIT__ 2026-05-06 10:24:20,681 - 12144 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 12144;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 10:24:20,979 - 12144 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-06 10:24:20,979 - 12144 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET WorkOrderStatusDateTime = '2026-05-06 06:24:20.979' WHERE GenerateWorkOrderHistoryId = 12144;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 10:24:21,277 - 12144 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-06 13:03:19,243 - 124376 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=124376 - __SPLIT__ 2026-05-06 13:03:19,245 - 124376 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 124376 - __SPLIT__ 2026-05-06 13:03:19,259 - 124376 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-05-06 13:03:19,259 - 124376 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 13:03:21,943 - 124376 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-06 13:03:21,943 - 124376 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-05-06 13:03:21,944 - 124376 - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-05-06 13:03:21,944 - 124376 - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-05-06 13:03:21,944 - 124376 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 124376;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 13:03:24,296 - 124376 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-06 13:03:24,297 - 124376 - 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 = 124376), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 124376), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 124376 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-05-06 13:03:24,701 - 124376 - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-05-06 13:03:24,701 - 124376 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 124376;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 13:03:24,965 - 124376 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-06 13:03:24,969 - 124376 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-05-06 13:03:24,970 - 124376 - 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 = 14509... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 13:03:25,245 - 124376 - src.utils.log - INFO - βœ… Fetched 12 rows - __SPLIT__ 2026-05-06 13:03:25,245 - 124376 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-05-06 13:03:25,249 - 124376 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-05-06 13:03:25,249 - 124376 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId in (150260, 150261, 150262, 150263);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 13:03:25,512 - 124376 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-06 13:03:25,512 - 124376 - src.utils.log - INFO - πŸ” Fetching data: select ServiceDate, ServiceSetupId,IsInitial from serviceCore.WorkOrder wo inner join ServiceCore.WorkOrderStatus wos on wo.WoStatusId = wos.WoStatusId where ServiceDate >= '2026-05-06 00:00:00' and ServiceDate <= '2026-12-31 00:00:00' and ServiceSetupId in (150260, 150261, 150262, 150263) and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 13:03:25,787 - 124376 - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-05-06 13:03:26,339 - 124376 - src.utils.log - INFO - Generating work orders for setup: 150260 - __SPLIT__ 2026-05-06 13:03:26,389 - 124376 - src.utils.log - INFO - Generating work orders for setup: 150261 - __SPLIT__ 2026-05-06 13:03:26,437 - 124376 - src.utils.log - INFO - Generating work orders for setup: 150262 - __SPLIT__ 2026-05-06 13:03:26,486 - 124376 - src.utils.log - INFO - Generating work orders for setup: 150263 - __SPLIT__ 2026-05-06 13:03:26,538 - 124376 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId in (1131, 11436);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 13:03:26,800 - 124376 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-05-06 13:03:26,853 - 124376 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-05-06 13:03:26,861 - 124376 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=133 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 13:03:27,122 - 124376 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-06 13:03:27,124 - 124376 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-05-06 13:03:27,124 - 124376 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-05-06 13:03:27,124 - 124376 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (150260, 150261, 150262, 150263) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 13:03:27,424 - 124376 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-06 13:03:27,424 - 124376 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (150260, 150261, 150262, 150263) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 13:03:27,720 - 124376 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-06 13:03:27,720 - 124376 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (150260, 150261, 150262, 150263) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 13:03:27,994 - 124376 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-06 13:03:27,994 - 124376 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (150260, 150261, 150262, 150263) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 13:03:28,292 - 124376 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-06 13:03:28,292 - 124376 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (150260, 150261, 150262, 150263) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 13:03:28,589 - 124376 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-06 13:03:28,589 - 124376 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (150260, 150261, 150262, 150263) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 13:03:28,871 - 124376 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-06 13:03:28,871 - 124376 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (150260, 150261, 150262, 150263) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 13:03:29,137 - 124376 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-06 13:03:29,137 - 124376 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (150260, 150261, 150262, 150263) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 13:03:30,706 - 124376 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-06 13:03:30,707 - 124376 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-06 13:03:30,707 - 124376 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 28 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 13:03:31,030 - 124376 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 28) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-05-06 13:03:32,990 - 124376 - src.utils.log - INFO - βœ… All 28 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-05-06 13:03:32,991 - 124376 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 28 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-05-06 15:39:09.434' and ServiceSetupId in (150260, 150261, 150262, 150263)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 13:03:33,269 - 124376 - src.utils.log - INFO - βœ… Fetched 28 rows - __SPLIT__ 2026-05-06 13:03:33,270 - 124376 - src.utils.log - INFO - Id's of work order inserted to DB: [3672931 3672932 3672933 3672934 3672935 3672936 3672937 3672938 3672939 3672940 3672941 3672942 3672943 3672944 3672945 3672946 3672947 3672948 3672949 3672950 3672951 3672952 3672953 3672954 3672955 3672956 3672957 3672958] - __SPLIT__ 2026-05-06 13:03:33,270 - 124376 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId in (150260, 150261, 150262, 150263);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 13:03:33,532 - 124376 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-06 13:03:33,532 - 124376 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-05-06 13:03:33,533 - 124376 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId in (150260, 150261, 150262, 150263)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 13:03:33,797 - 124376 - src.utils.log - INFO - βœ… Fetched 7 rows - __SPLIT__ 2026-05-06 13:03:33,797 - 124376 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId in (150260, 150261, 150262, 150263)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 13:03:34,061 - 124376 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-06 13:03:34,065 - 124376 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId in (150260, 150261, 150262, 150263)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 13:03:34,342 - 124376 - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-05-06 13:03:34,344 - 124376 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId in (150260, 150261, 150262, 150263)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 13:03:34,608 - 124376 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-06 13:03:34,608 - 124376 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId in (150260, 150261, 150262, 150263)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 13:03:34,872 - 124376 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-06 13:03:34,873 - 124376 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId in (150260, 150261, 150262, 150263);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 13:03:35,136 - 124376 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-06 13:03:35,137 - 124376 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId in (150260, 150261, 150262, 150263);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 13:03:35,400 - 124376 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-06 13:03:35,400 - 124376 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId in (150260, 150261, 150262, 150263);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 13:03:35,699 - 124376 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-06 13:03:35,699 - 124376 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId in (150260, 150261, 150262, 150263);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 13:03:35,963 - 124376 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-06 13:03:35,973 - 124376 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-05-06 13:03:35,973 - 124376 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-05-06 13:03:35,973 - 124376 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-05-06 13:03:35,973 - 124376 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.CommunicationPreferencesServiceReportNotification: - __SPLIT__ 2026-05-06 13:03:35,973 - 124376 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-05-06 13:03:35,973 - 124376 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SetupAutoGenerationSourceMapping: - __SPLIT__ 2026-05-06 13:03:35,973 - 124376 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-05-06 13:03:35,974 - 124376 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationAppliedDiscount: - __SPLIT__ 2026-05-06 13:03:35,974 - 124376 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-05-06 13:03:35,974 - 124376 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SubWorkOrderAutoGeneration: - __SPLIT__ 2026-05-06 13:03:35,974 - 124376 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-05-06 13:03:35,974 - 124376 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: - __SPLIT__ 2026-05-06 13:03:35,974 - 124376 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-05-06 13:03:35,974 - 124376 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: - __SPLIT__ 2026-05-06 13:03:35,974 - 124376 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-05-06 13:03:35,974 - 124376 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-06 13:03:35,974 - 124376 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3672931, 3672932, 3672933, 3672934, 3672935, 3672936, 3672937, 3672938, 3672939, 3672940, 3672941, 3672942, 3672943, 3672944, 3672945, 3672946, 3672947, 3672948, 3672949, 3672950, 3672951, 3672952, 3672953, 3672954, 3672955, 3672956, 3672957, 3672958) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 13:03:36,238 - 124376 - src.utils.log - INFO - βœ… Fetched 28 rows - __SPLIT__ 2026-05-06 13:03:36,239 - 124376 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationCrews: 28 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 13:03:36,532 - 124376 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 28) into ServiceCore.WorkOrderAutoGenerationCrews - __SPLIT__ 2026-05-06 13:03:37,538 - 124376 - src.utils.log - INFO - βœ… All 28 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationCrews in 1 batches - __SPLIT__ 2026-05-06 13:03:37,538 - 124376 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-05-06 13:03:37,538 - 124376 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationServices: - __SPLIT__ 2026-05-06 13:03:37,539 - 124376 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-05-06 13:03:37,539 - 124376 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-06 13:03:37,539 - 124376 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3672931, 3672932, 3672933, 3672934, 3672935, 3672936, 3672937, 3672938, 3672939, 3672940, 3672941, 3672942, 3672943, 3672944, 3672945, 3672946, 3672947, 3672948, 3672949, 3672950, 3672951, 3672952, 3672953, 3672954, 3672955, 3672956, 3672957, 3672958) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 13:03:37,799 - 124376 - src.utils.log - INFO - βœ… Fetched 28 rows - __SPLIT__ 2026-05-06 13:03:37,800 - 124376 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 49 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 13:03:38,094 - 124376 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 49) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-05-06 13:03:39,039 - 124376 - src.utils.log - INFO - βœ… All 49 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-05-06 13:03:39,040 - 124376 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-05-06 13:03:39,040 - 124376 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 124376;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 13:03:39,302 - 124376 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-06 13:03:39,302 - 124376 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-05-06 13:03:39,302 - 124376 - src.utils.log - INFO - Time took to perform operation: 20.06 - __SPLIT__ 2026-05-06 13:03:39,303 - 124376 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 124376;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 13:03:39,568 - 124376 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-06 13:03:39,568 - 124376 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET WorkOrderStatusDateTime = '2026-05-06 09:03:39.568' WHERE GenerateWorkOrderHistoryId = 124376;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 13:03:39,833 - 124376 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-06 14:40:23,548 - 124377 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=124377 - __SPLIT__ 2026-05-06 14:40:23,549 - 124377 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 124377 - __SPLIT__ 2026-05-06 14:40:23,550 - 124377 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-05-06 14:40:23,550 - 124377 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:40:25,578 - 124377 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-06 14:40:25,579 - 124377 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-05-06 14:40:25,579 - 124377 - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-05-06 14:40:25,579 - 124377 - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-05-06 14:40:25,580 - 124377 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 124377;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:40:27,514 - 124377 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-06 14:40:27,514 - 124377 - 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 = 124377), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 124377), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 124377 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-05-06 14:40:27,901 - 124377 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-05-06 14:40:27,902 - 124377 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 124377;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:40:28,179 - 124377 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-06 14:40:28,182 - 124377 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-05-06 14:40:28,183 - 124377 - 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 (13962, 14643)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:40:28,478 - 124377 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-05-06 14:40:28,479 - 124377 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-05-06 14:40:28,481 - 124377 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-05-06 14:40:28,482 - 124377 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId in (150277, 150270);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:40:28,760 - 124377 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-06 14:40:28,760 - 124377 - src.utils.log - INFO - πŸ” Fetching data: select ServiceDate, ServiceSetupId,IsInitial from serviceCore.WorkOrder wo inner join ServiceCore.WorkOrderStatus wos on wo.WoStatusId = wos.WoStatusId where ServiceDate >= '2026-05-06 00:00:00' and ServiceDate <= '2026-12-31 00:00:00' and ServiceSetupId in (150277, 150270) and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:40:29,052 - 124377 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-06 14:40:29,636 - 124377 - src.utils.log - INFO - Generating work orders for setup: 150270 - __SPLIT__ 2026-05-06 14:40:29,687 - 124377 - src.utils.log - INFO - Generating work orders for setup: 150277 - __SPLIT__ 2026-05-06 14:40:29,742 - 124377 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 1132.0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:40:30,018 - 124377 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-06 14:40:30,027 - 124377 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId in (11428, 11436);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:40:30,305 - 124377 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-05-06 14:40:30,345 - 124377 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-05-06 14:40:30,351 - 124377 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=133 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:40:30,626 - 124377 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-06 14:40:30,628 - 124377 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-05-06 14:40:30,629 - 124377 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-05-06 14:40:30,629 - 124377 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (150277, 150270) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:40:30,957 - 124377 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-06 14:40:30,957 - 124377 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (150277, 150270) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:40:31,257 - 124377 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-06 14:40:31,257 - 124377 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (150277, 150270) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:40:31,542 - 124377 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-06 14:40:31,542 - 124377 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (150277, 150270) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:40:31,842 - 124377 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-06 14:40:31,842 - 124377 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (150277, 150270) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:40:32,149 - 124377 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-06 14:40:32,149 - 124377 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (150277, 150270) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:40:32,447 - 124377 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-06 14:40:32,447 - 124377 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (150277, 150270) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:40:32,729 - 124377 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-06 14:40:32,729 - 124377 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (150277, 150270) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:40:33,043 - 124377 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-06 14:40:33,044 - 124377 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-06 14:40:33,044 - 124377 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 16 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:40:33,355 - 124377 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 16) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-05-06 14:40:35,027 - 124377 - src.utils.log - INFO - βœ… All 16 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-05-06 14:40:35,027 - 124377 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 16 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-05-06 15:39:09.403' and ServiceSetupId in (150277, 150270)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:40:35,324 - 124377 - src.utils.log - INFO - βœ… Fetched 16 rows - __SPLIT__ 2026-05-06 14:40:35,324 - 124377 - src.utils.log - INFO - Id's of work order inserted to DB: [3672959 3672960 3672961 3672962 3672963 3672964 3672965 3672966 3672967 3672968 3672969 3672970 3672971 3672972 3672973 3672974] - __SPLIT__ 2026-05-06 14:40:35,325 - 124377 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId in (150277, 150270);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:40:35,602 - 124377 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-06 14:40:35,602 - 124377 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-05-06 14:40:35,603 - 124377 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId in (150277, 150270)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:40:35,882 - 124377 - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-05-06 14:40:35,882 - 124377 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId in (150277, 150270)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:40:36,161 - 124377 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-05-06 14:40:36,168 - 124377 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId in (150277, 150270)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:40:36,454 - 124377 - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-05-06 14:40:36,456 - 124377 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId in (150277, 150270)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:40:36,734 - 124377 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-06 14:40:36,734 - 124377 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId in (150277, 150270)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:40:37,011 - 124377 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-06 14:40:37,012 - 124377 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId in (150277, 150270);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:40:37,289 - 124377 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-06 14:40:37,289 - 124377 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId in (150277, 150270);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:40:37,566 - 124377 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-06 14:40:37,567 - 124377 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId in (150277, 150270);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:40:37,871 - 124377 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-06 14:40:37,871 - 124377 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId in (150277, 150270);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:40:38,149 - 124377 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-06 14:40:38,164 - 124377 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-05-06 14:40:38,164 - 124377 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-05-06 14:40:38,164 - 124377 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-05-06 14:40:38,164 - 124377 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.CommunicationPreferencesServiceReportNotification: - __SPLIT__ 2026-05-06 14:40:38,164 - 124377 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-05-06 14:40:38,165 - 124377 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-06 14:40:38,165 - 124377 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ('3672964', '3672971', '3672973', '3672962', '3672959', '3672966', '3672967', '3672970') ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:40:38,441 - 124377 - src.utils.log - INFO - βœ… Fetched 8 rows - __SPLIT__ 2026-05-06 14:40:38,442 - 124377 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.SetupAutoGenerationSourceMapping: 0 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:40:38,747 - 124377 - src.utils.log - INFO - βœ… All 0 rows inserted successfully into ServiceCore.SetupAutoGenerationSourceMapping in 0 batches - __SPLIT__ 2026-05-06 14:40:38,748 - 124377 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-05-06 14:40:38,748 - 124377 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationAppliedDiscount: - __SPLIT__ 2026-05-06 14:40:38,748 - 124377 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-05-06 14:40:38,748 - 124377 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SubWorkOrderAutoGeneration: - __SPLIT__ 2026-05-06 14:40:38,748 - 124377 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-05-06 14:40:38,748 - 124377 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: - __SPLIT__ 2026-05-06 14:40:38,748 - 124377 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-05-06 14:40:38,748 - 124377 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: - __SPLIT__ 2026-05-06 14:40:38,748 - 124377 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-05-06 14:40:38,748 - 124377 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-06 14:40:38,749 - 124377 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3672960, 3672961, 3672962, 3672963, 3672964, 3672965, 3672966, 3672967, 3672968, 3672969, 3672970, 3672971, 3672972, 3672973, 3672974, 3672959) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:40:39,025 - 124377 - src.utils.log - INFO - βœ… Fetched 16 rows - __SPLIT__ 2026-05-06 14:40:39,026 - 124377 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationCrews: 16 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:40:39,307 - 124377 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 16) into ServiceCore.WorkOrderAutoGenerationCrews - __SPLIT__ 2026-05-06 14:40:40,290 - 124377 - src.utils.log - INFO - βœ… All 16 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationCrews in 1 batches - __SPLIT__ 2026-05-06 14:40:40,290 - 124377 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-05-06 14:40:40,291 - 124377 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-06 14:40:40,291 - 124377 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 3672959 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:40:40,567 - 124377 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-06 14:40:40,568 - 124377 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:40:40,851 - 124377 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-05-06 14:40:41,837 - 124377 - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-05-06 14:40:41,837 - 124377 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-05-06 14:40:41,837 - 124377 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-06 14:40:41,838 - 124377 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3672960, 3672961, 3672962, 3672963, 3672964, 3672965, 3672966, 3672967, 3672968, 3672969, 3672970, 3672971, 3672972, 3672973, 3672974) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:40:42,115 - 124377 - src.utils.log - INFO - βœ… Fetched 15 rows - __SPLIT__ 2026-05-06 14:40:42,116 - 124377 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 22 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:40:42,399 - 124377 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 22) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-05-06 14:40:43,401 - 124377 - src.utils.log - INFO - βœ… All 22 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-05-06 14:40:43,401 - 124377 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-05-06 14:40:43,401 - 124377 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 124377;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:40:43,678 - 124377 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-06 14:40:43,678 - 124377 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-05-06 14:40:43,678 - 124377 - src.utils.log - INFO - Time took to perform operation: 20.13 - __SPLIT__ 2026-05-06 14:40:43,678 - 124377 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 124377;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:40:43,955 - 124377 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-06 14:40:43,955 - 124377 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET WorkOrderStatusDateTime = '2026-05-06 10:40:43.955' WHERE GenerateWorkOrderHistoryId = 124377;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:40:44,231 - 124377 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-06 14:46:35,949 - 124378 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=124378 - __SPLIT__ 2026-05-06 14:46:35,950 - 124378 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 124378 - __SPLIT__ 2026-05-06 14:46:35,950 - 124378 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-05-06 14:46:35,950 - 124378 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:46:38,019 - 124378 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-06 14:46:38,020 - 124378 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-05-06 14:46:38,020 - 124378 - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-05-06 14:46:38,021 - 124378 - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-05-06 14:46:38,021 - 124378 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 124378;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:46:39,951 - 124378 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-06 14:46:39,952 - 124378 - 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 = 124378), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 124378), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 124378 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-05-06 14:46:40,356 - 124378 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-05-06 14:46:40,357 - 124378 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 124378;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:46:40,633 - 124378 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-06 14:46:40,636 - 124378 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-05-06 14:46:40,637 - 124378 - 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 (13962, 14643)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:46:40,922 - 124378 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-05-06 14:46:40,922 - 124378 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-05-06 14:46:40,925 - 124378 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-05-06 14:46:40,926 - 124378 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId in (150277, 150270);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:46:41,202 - 124378 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-06 14:46:41,202 - 124378 - src.utils.log - INFO - πŸ” Fetching data: select ServiceDate, ServiceSetupId,IsInitial from serviceCore.WorkOrder wo inner join ServiceCore.WorkOrderStatus wos on wo.WoStatusId = wos.WoStatusId where ServiceDate >= '2026-05-06 00:00:00' and ServiceDate <= '2026-12-31 00:00:00' and ServiceSetupId in (150277, 150270) and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:46:41,477 - 124378 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-06 14:46:42,054 - 124378 - src.utils.log - INFO - Generating work orders for setup: 150270 - __SPLIT__ 2026-05-06 14:46:42,106 - 124378 - src.utils.log - INFO - Generating work orders for setup: 150277 - __SPLIT__ 2026-05-06 14:46:42,163 - 124378 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 1132.0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:46:42,439 - 124378 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-06 14:46:42,448 - 124378 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId in (11428, 11436);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:46:42,723 - 124378 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-05-06 14:46:42,763 - 124378 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-05-06 14:46:42,768 - 124378 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=133 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:46:43,044 - 124378 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-06 14:46:43,047 - 124378 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-05-06 14:46:43,047 - 124378 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-05-06 14:46:43,047 - 124378 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (150277, 150270) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:46:43,350 - 124378 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-06 14:46:43,351 - 124378 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (150277, 150270) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:46:43,650 - 124378 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-06 14:46:43,651 - 124378 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (150277, 150270) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:46:43,944 - 124378 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-06 14:46:43,944 - 124378 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (150277, 150270) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:46:44,243 - 124378 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-06 14:46:44,244 - 124378 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (150277, 150270) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:46:44,888 - 124378 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-06 14:46:44,889 - 124378 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (150277, 150270) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:46:45,176 - 124378 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-06 14:46:45,177 - 124378 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (150277, 150270) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:46:45,453 - 124378 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-06 14:46:45,453 - 124378 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (150277, 150270) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:46:46,474 - 124378 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-06 14:46:46,474 - 124378 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-06 14:46:46,474 - 124378 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 16 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:46:46,787 - 124378 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 16) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-05-06 14:46:49,050 - 124378 - src.utils.log - INFO - βœ… All 16 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-05-06 14:46:49,050 - 124378 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 16 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-05-06 15:39:09.403' and ServiceSetupId in (150277, 150270)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:46:49,345 - 124378 - src.utils.log - INFO - βœ… Fetched 16 rows - __SPLIT__ 2026-05-06 14:46:49,346 - 124378 - src.utils.log - INFO - Id's of work order inserted to DB: [3672975 3672976 3672977 3672978 3672979 3672980 3672981 3672982 3672983 3672984 3672985 3672986 3672987 3672988 3672989 3672990] - __SPLIT__ 2026-05-06 14:46:49,346 - 124378 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId in (150277, 150270);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:46:49,622 - 124378 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-06 14:46:49,622 - 124378 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-05-06 14:46:49,623 - 124378 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId in (150277, 150270)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:46:49,899 - 124378 - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-05-06 14:46:49,899 - 124378 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId in (150277, 150270)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:46:50,176 - 124378 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-05-06 14:46:50,183 - 124378 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId in (150277, 150270)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:46:50,470 - 124378 - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-05-06 14:46:50,472 - 124378 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId in (150277, 150270)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:46:50,748 - 124378 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-06 14:46:50,748 - 124378 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId in (150277, 150270)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:46:51,023 - 124378 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-06 14:46:51,024 - 124378 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId in (150277, 150270);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:46:51,298 - 124378 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-06 14:46:51,299 - 124378 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId in (150277, 150270);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:46:51,574 - 124378 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-06 14:46:51,575 - 124378 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId in (150277, 150270);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:46:51,877 - 124378 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-06 14:46:51,877 - 124378 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId in (150277, 150270);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:46:52,153 - 124378 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-06 14:46:52,168 - 124378 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-05-06 14:46:52,168 - 124378 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-05-06 14:46:52,168 - 124378 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-05-06 14:46:52,168 - 124378 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.CommunicationPreferencesServiceReportNotification: - __SPLIT__ 2026-05-06 14:46:52,168 - 124378 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-05-06 14:46:52,168 - 124378 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-06 14:46:52,169 - 124378 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ('3672989', '3672986', '3672980', '3672987', '3672983', '3672982', '3672978', '3672975') ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:46:52,448 - 124378 - src.utils.log - INFO - βœ… Fetched 8 rows - __SPLIT__ 2026-05-06 14:46:52,449 - 124378 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.SetupAutoGenerationSourceMapping: 0 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:46:52,727 - 124378 - src.utils.log - INFO - βœ… All 0 rows inserted successfully into ServiceCore.SetupAutoGenerationSourceMapping in 0 batches - __SPLIT__ 2026-05-06 14:46:52,727 - 124378 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-05-06 14:46:52,727 - 124378 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationAppliedDiscount: - __SPLIT__ 2026-05-06 14:46:52,727 - 124378 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-05-06 14:46:52,727 - 124378 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SubWorkOrderAutoGeneration: - __SPLIT__ 2026-05-06 14:46:52,727 - 124378 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-05-06 14:46:52,727 - 124378 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: - __SPLIT__ 2026-05-06 14:46:52,727 - 124378 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-05-06 14:46:52,728 - 124378 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: - __SPLIT__ 2026-05-06 14:46:52,728 - 124378 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-05-06 14:46:52,728 - 124378 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-06 14:46:52,728 - 124378 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3672975, 3672976, 3672977, 3672978, 3672979, 3672980, 3672981, 3672982, 3672983, 3672984, 3672985, 3672986, 3672987, 3672988, 3672989, 3672990) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:46:53,005 - 124378 - src.utils.log - INFO - βœ… Fetched 16 rows - __SPLIT__ 2026-05-06 14:46:53,006 - 124378 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationCrews: 16 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:46:53,287 - 124378 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 16) into ServiceCore.WorkOrderAutoGenerationCrews - __SPLIT__ 2026-05-06 14:46:54,264 - 124378 - src.utils.log - INFO - βœ… All 16 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationCrews in 1 batches - __SPLIT__ 2026-05-06 14:46:54,264 - 124378 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-05-06 14:46:54,264 - 124378 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-06 14:46:54,265 - 124378 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 3672975 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:46:54,540 - 124378 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-06 14:46:54,541 - 124378 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:46:54,825 - 124378 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-05-06 14:46:55,798 - 124378 - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-05-06 14:46:55,799 - 124378 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-05-06 14:46:55,799 - 124378 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-06 14:46:55,799 - 124378 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3672976, 3672977, 3672978, 3672979, 3672980, 3672981, 3672982, 3672983, 3672984, 3672985, 3672986, 3672987, 3672988, 3672989, 3672990) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:46:56,077 - 124378 - src.utils.log - INFO - βœ… Fetched 15 rows - __SPLIT__ 2026-05-06 14:46:56,078 - 124378 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 22 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:46:56,361 - 124378 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 22) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-05-06 14:46:57,481 - 124378 - src.utils.log - INFO - βœ… All 22 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-05-06 14:46:57,481 - 124378 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-05-06 14:46:57,482 - 124378 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 124378;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:46:57,758 - 124378 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-06 14:46:57,758 - 124378 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-05-06 14:46:57,758 - 124378 - src.utils.log - INFO - Time took to perform operation: 21.81 - __SPLIT__ 2026-05-06 14:46:57,758 - 124378 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 124378;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:46:58,035 - 124378 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-06 14:46:58,035 - 124378 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET WorkOrderStatusDateTime = '2026-05-06 10:46:58.035' WHERE GenerateWorkOrderHistoryId = 124378;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:46:58,312 - 124378 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-06 14:51:51,452 - 124379 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=124379 - __SPLIT__ 2026-05-06 14:51:51,453 - 124379 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 124379 - __SPLIT__ 2026-05-06 14:51:51,454 - 124379 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-05-06 14:51:51,454 - 124379 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:51:53,459 - 124379 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-06 14:51:53,460 - 124379 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-05-06 14:51:53,460 - 124379 - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-05-06 14:51:53,460 - 124379 - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-05-06 14:51:53,461 - 124379 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 124379;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:51:56,050 - 124379 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-06 14:51:56,050 - 124379 - 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 = 124379), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 124379), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 124379 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-05-06 14:51:56,451 - 124379 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-05-06 14:51:56,451 - 124379 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 124379;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:51:56,739 - 124379 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-06 14:51:56,743 - 124379 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-05-06 14:51:56,744 - 124379 - 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 (13962, 14643)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:51:57,039 - 124379 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-05-06 14:51:57,040 - 124379 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-05-06 14:51:57,043 - 124379 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-05-06 14:51:57,043 - 124379 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId in (150278, 150271);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:51:57,333 - 124379 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-06 14:51:57,334 - 124379 - src.utils.log - INFO - πŸ” Fetching data: select ServiceDate, ServiceSetupId,IsInitial from serviceCore.WorkOrder wo inner join ServiceCore.WorkOrderStatus wos on wo.WoStatusId = wos.WoStatusId where ServiceDate >= '2026-05-06 00:00:00' and ServiceDate <= '2026-12-31 00:00:00' and ServiceSetupId in (150278, 150271) and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:51:57,639 - 124379 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-06 14:51:58,246 - 124379 - src.utils.log - INFO - Generating work orders for setup: 150271 - __SPLIT__ 2026-05-06 14:51:58,298 - 124379 - src.utils.log - INFO - Generating work orders for setup: 150278 - __SPLIT__ 2026-05-06 14:51:58,353 - 124379 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 1132.0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:51:58,640 - 124379 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-06 14:51:58,649 - 124379 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId in (11428, 11436);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:51:58,936 - 124379 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-05-06 14:51:58,976 - 124379 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-05-06 14:51:58,982 - 124379 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=133 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:51:59,269 - 124379 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-06 14:51:59,272 - 124379 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-05-06 14:51:59,272 - 124379 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-05-06 14:51:59,272 - 124379 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (150278, 150271) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:51:59,588 - 124379 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-06 14:51:59,588 - 124379 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (150278, 150271) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:51:59,902 - 124379 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-06 14:51:59,902 - 124379 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (150278, 150271) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:52:00,200 - 124379 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-06 14:52:00,201 - 124379 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (150278, 150271) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:52:00,519 - 124379 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-06 14:52:00,519 - 124379 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (150278, 150271) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:52:00,833 - 124379 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-06 14:52:00,834 - 124379 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (150278, 150271) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:52:01,145 - 124379 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-06 14:52:01,145 - 124379 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (150278, 150271) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:52:01,437 - 124379 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-06 14:52:01,437 - 124379 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (150278, 150271) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:52:01,759 - 124379 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-06 14:52:01,760 - 124379 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-06 14:52:01,760 - 124379 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 16 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:52:02,083 - 124379 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 16) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-05-06 14:52:03,593 - 124379 - src.utils.log - INFO - βœ… All 16 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-05-06 14:52:03,593 - 124379 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 16 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-05-06 15:39:09.415' and ServiceSetupId in (150278, 150271)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:52:03,899 - 124379 - src.utils.log - INFO - βœ… Fetched 16 rows - __SPLIT__ 2026-05-06 14:52:03,899 - 124379 - src.utils.log - INFO - Id's of work order inserted to DB: [3672991 3672992 3672993 3672994 3672995 3672996 3672997 3672998 3672999 3673000 3673001 3673002 3673003 3673004 3673005 3673006] - __SPLIT__ 2026-05-06 14:52:03,899 - 124379 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId in (150278, 150271);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:52:04,192 - 124379 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-06 14:52:04,193 - 124379 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-05-06 14:52:04,193 - 124379 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId in (150278, 150271)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:52:04,483 - 124379 - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-05-06 14:52:04,484 - 124379 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId in (150278, 150271)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:52:04,774 - 124379 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-05-06 14:52:04,781 - 124379 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId in (150278, 150271)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:52:05,079 - 124379 - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-05-06 14:52:05,081 - 124379 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId in (150278, 150271)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:52:05,370 - 124379 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-06 14:52:05,370 - 124379 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId in (150278, 150271)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:52:05,659 - 124379 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-06 14:52:05,660 - 124379 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId in (150278, 150271);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:52:05,949 - 124379 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-06 14:52:05,950 - 124379 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId in (150278, 150271);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:52:06,238 - 124379 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-06 14:52:06,239 - 124379 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId in (150278, 150271);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:52:06,555 - 124379 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-06 14:52:06,555 - 124379 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId in (150278, 150271);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:52:06,844 - 124379 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-06 14:52:06,857 - 124379 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-05-06 14:52:06,857 - 124379 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-05-06 14:52:06,857 - 124379 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-05-06 14:52:06,857 - 124379 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.CommunicationPreferencesServiceReportNotification: - __SPLIT__ 2026-05-06 14:52:06,858 - 124379 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-05-06 14:52:06,858 - 124379 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SetupAutoGenerationSourceMapping: - __SPLIT__ 2026-05-06 14:52:06,858 - 124379 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-05-06 14:52:06,858 - 124379 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationAppliedDiscount: - __SPLIT__ 2026-05-06 14:52:06,858 - 124379 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-05-06 14:52:06,858 - 124379 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SubWorkOrderAutoGeneration: - __SPLIT__ 2026-05-06 14:52:06,858 - 124379 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-05-06 14:52:06,858 - 124379 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: - __SPLIT__ 2026-05-06 14:52:06,858 - 124379 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-05-06 14:52:06,858 - 124379 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: - __SPLIT__ 2026-05-06 14:52:06,858 - 124379 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-05-06 14:52:06,858 - 124379 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-06 14:52:06,858 - 124379 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3672992, 3672993, 3672994, 3672995, 3672996, 3672997, 3672998, 3672999, 3673000, 3673001, 3673002, 3673003, 3673004, 3673005, 3673006, 3672991) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:52:07,147 - 124379 - src.utils.log - INFO - βœ… Fetched 16 rows - __SPLIT__ 2026-05-06 14:52:07,148 - 124379 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationCrews: 16 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:52:07,440 - 124379 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 16) into ServiceCore.WorkOrderAutoGenerationCrews - __SPLIT__ 2026-05-06 14:52:08,457 - 124379 - src.utils.log - INFO - βœ… All 16 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationCrews in 1 batches - __SPLIT__ 2026-05-06 14:52:08,457 - 124379 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-05-06 14:52:08,457 - 124379 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-06 14:52:08,458 - 124379 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 3672991 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:52:08,745 - 124379 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-06 14:52:08,746 - 124379 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:52:09,041 - 124379 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-05-06 14:52:10,053 - 124379 - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-05-06 14:52:10,054 - 124379 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-05-06 14:52:10,054 - 124379 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-06 14:52:10,054 - 124379 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3672992, 3672993, 3672994, 3672995, 3672996, 3672997, 3672998, 3672999, 3673000, 3673001, 3673002, 3673003, 3673004, 3673005, 3673006) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:52:10,345 - 124379 - src.utils.log - INFO - βœ… Fetched 15 rows - __SPLIT__ 2026-05-06 14:52:10,346 - 124379 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 22 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:52:10,641 - 124379 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 22) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-05-06 14:52:11,669 - 124379 - src.utils.log - INFO - βœ… All 22 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-05-06 14:52:11,669 - 124379 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-05-06 14:52:11,670 - 124379 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 124379;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:52:11,987 - 124379 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-06 14:52:11,987 - 124379 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-05-06 14:52:11,987 - 124379 - src.utils.log - INFO - Time took to perform operation: 20.53 - __SPLIT__ 2026-05-06 14:52:11,987 - 124379 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 124379;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:52:12,275 - 124379 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-06 14:52:12,276 - 124379 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET WorkOrderStatusDateTime = '2026-05-06 10:52:12.276' WHERE GenerateWorkOrderHistoryId = 124379;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:52:12,563 - 124379 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-06 14:53:09,390 - 124380 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=124380 - __SPLIT__ 2026-05-06 14:53:09,391 - 124380 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 124380 - __SPLIT__ 2026-05-06 14:53:09,392 - 124380 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-05-06 14:53:09,392 - 124380 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:53:11,427 - 124380 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-06 14:53:11,428 - 124380 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-05-06 14:53:11,428 - 124380 - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-05-06 14:53:11,428 - 124380 - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-05-06 14:53:11,429 - 124380 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 124380;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:53:13,329 - 124380 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-06 14:53:13,330 - 124380 - 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 = 124380), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 124380), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 124380 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-05-06 14:53:13,725 - 124380 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-05-06 14:53:13,725 - 124380 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 124380;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:53:13,997 - 124380 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-06 14:53:14,000 - 124380 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-05-06 14:53:14,000 - 124380 - 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 (13962, 14643)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:53:14,282 - 124380 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-05-06 14:53:14,282 - 124380 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-05-06 14:53:14,285 - 124380 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-05-06 14:53:14,285 - 124380 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId in (150272, 150279);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:53:14,559 - 124380 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-06 14:53:14,560 - 124380 - src.utils.log - INFO - πŸ” Fetching data: select ServiceDate, ServiceSetupId,IsInitial from serviceCore.WorkOrder wo inner join ServiceCore.WorkOrderStatus wos on wo.WoStatusId = wos.WoStatusId where ServiceDate >= '2026-05-06 00:00:00' and ServiceDate <= '2026-12-31 00:00:00' and ServiceSetupId in (150272, 150279) and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:53:14,846 - 124380 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-06 14:53:15,419 - 124380 - src.utils.log - INFO - Generating work orders for setup: 150272 - __SPLIT__ 2026-05-06 14:53:15,470 - 124380 - src.utils.log - INFO - Generating work orders for setup: 150279 - __SPLIT__ 2026-05-06 14:53:15,525 - 124380 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 1132.0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:53:15,796 - 124380 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-06 14:53:15,805 - 124380 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId in (1130, 1132);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:53:16,077 - 124380 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-05-06 14:53:16,118 - 124380 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-05-06 14:53:16,123 - 124380 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=133 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:53:16,393 - 124380 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-06 14:53:16,396 - 124380 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-05-06 14:53:16,396 - 124380 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-05-06 14:53:16,396 - 124380 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (150272, 150279) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:53:16,717 - 124380 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-06 14:53:16,717 - 124380 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (150272, 150279) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:53:17,029 - 124380 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-06 14:53:17,029 - 124380 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (150272, 150279) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:53:17,311 - 124380 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-06 14:53:17,311 - 124380 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (150272, 150279) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:53:17,610 - 124380 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-06 14:53:17,610 - 124380 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (150272, 150279) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:53:17,903 - 124380 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-06 14:53:17,904 - 124380 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (150272, 150279) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:53:18,192 - 124380 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-06 14:53:18,192 - 124380 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (150272, 150279) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:53:18,469 - 124380 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-06 14:53:18,469 - 124380 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (150272, 150279) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:53:18,788 - 124380 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-06 14:53:18,788 - 124380 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-06 14:53:18,788 - 124380 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 16 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:53:19,096 - 124380 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 16) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-05-06 14:53:20,648 - 124380 - src.utils.log - INFO - βœ… All 16 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-05-06 14:53:20,649 - 124380 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 16 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-05-06 15:39:09.403' and ServiceSetupId in (150272, 150279)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:53:20,940 - 124380 - src.utils.log - INFO - βœ… Fetched 16 rows - __SPLIT__ 2026-05-06 14:53:20,941 - 124380 - src.utils.log - INFO - Id's of work order inserted to DB: [3673007 3673008 3673009 3673010 3673011 3673012 3673013 3673014 3673015 3673016 3673017 3673018 3673019 3673020 3673021 3673022] - __SPLIT__ 2026-05-06 14:53:20,941 - 124380 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId in (150272, 150279);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:53:21,213 - 124380 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-06 14:53:21,213 - 124380 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-05-06 14:53:21,214 - 124380 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId in (150272, 150279)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:53:21,497 - 124380 - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-05-06 14:53:21,497 - 124380 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId in (150272, 150279)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:53:21,771 - 124380 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-05-06 14:53:21,778 - 124380 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId in (150272, 150279)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:53:22,060 - 124380 - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-05-06 14:53:22,062 - 124380 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId in (150272, 150279)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:53:22,334 - 124380 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-06 14:53:22,335 - 124380 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId in (150272, 150279)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:53:22,607 - 124380 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-06 14:53:22,608 - 124380 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId in (150272, 150279);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:53:22,881 - 124380 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-06 14:53:22,881 - 124380 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId in (150272, 150279);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:53:23,153 - 124380 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-06 14:53:23,154 - 124380 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId in (150272, 150279);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:53:23,452 - 124380 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-06 14:53:23,452 - 124380 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId in (150272, 150279);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:53:23,725 - 124380 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-06 14:53:23,738 - 124380 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-05-06 14:53:23,738 - 124380 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-05-06 14:53:23,738 - 124380 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-05-06 14:53:23,738 - 124380 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.CommunicationPreferencesServiceReportNotification: - __SPLIT__ 2026-05-06 14:53:23,738 - 124380 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-05-06 14:53:23,739 - 124380 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SetupAutoGenerationSourceMapping: - __SPLIT__ 2026-05-06 14:53:23,739 - 124380 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-05-06 14:53:23,739 - 124380 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationAppliedDiscount: - __SPLIT__ 2026-05-06 14:53:23,739 - 124380 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-05-06 14:53:23,739 - 124380 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SubWorkOrderAutoGeneration: - __SPLIT__ 2026-05-06 14:53:23,739 - 124380 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-05-06 14:53:23,739 - 124380 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: - __SPLIT__ 2026-05-06 14:53:23,739 - 124380 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-05-06 14:53:23,739 - 124380 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: - __SPLIT__ 2026-05-06 14:53:23,739 - 124380 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-05-06 14:53:23,739 - 124380 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-06 14:53:23,739 - 124380 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3673007, 3673008, 3673009, 3673010, 3673011, 3673012, 3673013, 3673014, 3673015, 3673016, 3673017, 3673018, 3673019, 3673020, 3673021, 3673022) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:53:24,013 - 124380 - src.utils.log - INFO - βœ… Fetched 16 rows - __SPLIT__ 2026-05-06 14:53:24,014 - 124380 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationCrews: 16 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:53:24,291 - 124380 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 16) into ServiceCore.WorkOrderAutoGenerationCrews - __SPLIT__ 2026-05-06 14:53:25,249 - 124380 - src.utils.log - INFO - βœ… All 16 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationCrews in 1 batches - __SPLIT__ 2026-05-06 14:53:25,249 - 124380 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-05-06 14:53:25,250 - 124380 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-06 14:53:25,250 - 124380 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 3673007 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:53:25,522 - 124380 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-06 14:53:25,523 - 124380 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:53:25,802 - 124380 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-05-06 14:53:26,761 - 124380 - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-05-06 14:53:26,761 - 124380 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-05-06 14:53:26,761 - 124380 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-06 14:53:26,762 - 124380 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3673008, 3673009, 3673010, 3673011, 3673012, 3673013, 3673014, 3673015, 3673016, 3673017, 3673018, 3673019, 3673020, 3673021, 3673022) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:53:27,034 - 124380 - src.utils.log - INFO - βœ… Fetched 15 rows - __SPLIT__ 2026-05-06 14:53:27,035 - 124380 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 22 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:53:27,313 - 124380 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 22) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-05-06 14:53:28,280 - 124380 - src.utils.log - INFO - βœ… All 22 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-05-06 14:53:28,281 - 124380 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-05-06 14:53:28,281 - 124380 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 124380;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:53:28,555 - 124380 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-06 14:53:28,555 - 124380 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-05-06 14:53:28,555 - 124380 - src.utils.log - INFO - Time took to perform operation: 19.16 - __SPLIT__ 2026-05-06 14:53:28,555 - 124380 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 124380;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:53:28,836 - 124380 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-06 14:53:28,837 - 124380 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET WorkOrderStatusDateTime = '2026-05-06 10:53:28.836' WHERE GenerateWorkOrderHistoryId = 124380;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:53:29,110 - 124380 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-06 14:54:10,284 - 124381 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=124381 - __SPLIT__ 2026-05-06 14:54:10,284 - 124381 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 124381 - __SPLIT__ 2026-05-06 14:54:10,285 - 124381 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-05-06 14:54:10,285 - 124381 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:54:12,310 - 124381 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-06 14:54:12,310 - 124381 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-05-06 14:54:12,310 - 124381 - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-05-06 14:54:12,311 - 124381 - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-05-06 14:54:12,311 - 124381 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 124381;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:54:14,322 - 124381 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-06 14:54:14,322 - 124381 - 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 = 124381), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 124381), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 124381 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-05-06 14:54:15,122 - 124381 - src.utils.log - INFO - βœ… Fetched 139 rows - __SPLIT__ 2026-05-06 14:54:15,122 - 124381 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 124381;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:54:15,411 - 124381 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-06 14:54:15,414 - 124381 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-05-06 14:54:15,415 - 124381 - 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, 14466, 14338, 14339, 14341, 14725, 14597, 14344, 14346, 13962, 13964, 13965, 14351, 13971, 14615, 14616, 14489, 14505, 14634, 14633, 14637, 14509, 14511, 14640, 14641, 14643, 14518, 14775, 14654, 14532, 14663, 14537, 14795, 14284, 14669, 14667, 14287, 14288, 14031, 14290, 14420, 14294, 14295, 14424, 14425, 14298, 14297, 14300, 14426, 14682, 14431, 14432, 14305, 14430, 14562, 14052, 14053, 14566, 14819, 14312, 14313, 14314, 14059, 14571, 14693, 14318, 14319, 14320, 14321, 14447, 14449, 14578, 14070, 14329, 14330)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:54:16,166 - 124381 - src.utils.log - INFO - βœ… Fetched 3017 rows - __SPLIT__ 2026-05-06 14:54:16,167 - 124381 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-05-06 14:54:16,170 - 124381 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-05-06 14:54:16,171 - 124381 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId in (34818, 33786, 56836, 33799, 150031, 150032, 33809, 49685, 36892, 56864, 56867, 36910, 53806, 35889, 52274, 39481, 119376, 129618, 22612, 34905, 58460, 34910, 56414, 58462, 129633, 58472, 34428, 33410, 24208, 34449, 34450, 34965, 51356, 58012, 150173, 41124, 150192, 150193, 119474, 119476, 54453, 119480, 150202, 150203, 150204, 150205, 32958, 150206, 150207, 150209, 150210, 52419, 150211, 150212, 150213, 58567, 150214, 150215, 150216, 58571, 48334, 150222, 30416, 150223, 150224, 150225, 55510, 23769, 46811, 46813, 33508, 33509, 46820, 37608, 32492, 33516, 46320, 119539, 150260, 33526, 150264, 150265, 150266, 150269, 150274, 150275, 51976, 33549, 31001, 58649, 149787, 119590, 35132, 54612, 54615, 46434, 47462, 149870, 149874, 33659, 53119, 33156, 28037, 39813, 139663, 33681, 33684, 34709, 69019, 33694, 139683, 33700, 33701, 139686, 36264, 33706, 33709, 36270, 36271, 52141, 33716, 33723, 33724, 48573, 33735, 33736, 33746, 33752, 33754, 25052, 55775, 31201, 33763, 33765, 33775, 150003, 34295, 33785, 44538);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:54:16,488 - 124381 - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-05-06 14:54:16,489 - 124381 - src.utils.log - INFO - πŸ” Fetching data: select ServiceDate, ServiceSetupId,IsInitial from serviceCore.WorkOrder wo inner join ServiceCore.WorkOrderStatus wos on wo.WoStatusId = wos.WoStatusId where ServiceDate >= '2026-05-06 00:00:00' and ServiceDate <= '2026-12-31 00:00:00' and ServiceSetupId in (34818, 33786, 56836, 33799, 150031, 150032, 33809, 49685, 36892, 56864, 56867, 36910, 53806, 35889, 52274, 39481, 119376, 129618, 22612, 34905, 58460, 34910, 56414, 58462, 129633, 58472, 34428, 33410, 24208, 34449, 34450, 34965, 51356, 58012, 150173, 41124, 150192, 150193, 119474, 119476, 54453, 119480, 150202, 150203, 150204, 150205, 32958, 150206, 150207, 150209, 150210, 52419, 150211, 150212, 150213, 58567, 150214, 150215, 150216, 58571, 48334, 150222, 30416, 150223, 150224, 150225, 55510, 23769, 46811, 46813, 33508, 33509, 46820, 37608, 32492, 33516, 46320, 119539, 150260, 33526, 150264, 150265, 150266, 150269, 150274, 150275, 51976, 33549, 31001, 58649, 149787, 119590, 35132, 54612, 54615, 46434, 47462, 149870, 149874, 33659, 53119, 33156, 28037, 39813, 139663, 33681, 33684, 34709, 69019, 33694, 139683, 33700, 33701, 139686, 36264, 33706, 33709, 36270, 36271, 52141, 33716, 33723, 33724, 48573, 33735, 33736, 33746, 33752, 33754, 25052, 55775, 31201, 33763, 33765, 33775, 150003, 34295, 33785, 44538) and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:54:16,878 - 124381 - src.utils.log - INFO - βœ… Fetched 110 rows - __SPLIT__ 2026-05-06 14:54:17,902 - 124381 - src.utils.log - INFO - Generating work orders for setup: 23769 - __SPLIT__ 2026-05-06 14:54:17,912 - 124381 - src.utils.log - INFO - Generating work orders for setup: 24208 - __SPLIT__ 2026-05-06 14:54:17,919 - 124381 - src.utils.log - INFO - Generating work orders for setup: 25052 - __SPLIT__ 2026-05-06 14:54:17,926 - 124381 - src.utils.log - INFO - Generating work orders for setup: 28037 - __SPLIT__ 2026-05-06 14:54:17,934 - 124381 - src.utils.log - INFO - Generating work orders for setup: 30416 - __SPLIT__ 2026-05-06 14:54:17,941 - 124381 - src.utils.log - INFO - Generating work orders for setup: 31001 - __SPLIT__ 2026-05-06 14:54:17,948 - 124381 - src.utils.log - INFO - Generating work orders for setup: 31201 - __SPLIT__ 2026-05-06 14:54:17,956 - 124381 - src.utils.log - INFO - Generating work orders for setup: 32492 - __SPLIT__ 2026-05-06 14:54:17,963 - 124381 - src.utils.log - INFO - Generating work orders for setup: 33156 - __SPLIT__ 2026-05-06 14:54:17,971 - 124381 - src.utils.log - INFO - Generating work orders for setup: 33410 - __SPLIT__ 2026-05-06 14:54:17,978 - 124381 - src.utils.log - INFO - Generating work orders for setup: 33508 - __SPLIT__ 2026-05-06 14:54:17,985 - 124381 - src.utils.log - INFO - Generating work orders for setup: 33509 - __SPLIT__ 2026-05-06 14:54:17,992 - 124381 - src.utils.log - INFO - Generating work orders for setup: 33516 - __SPLIT__ 2026-05-06 14:54:17,999 - 124381 - src.utils.log - INFO - Generating work orders for setup: 33526 - __SPLIT__ 2026-05-06 14:54:18,007 - 124381 - src.utils.log - INFO - Generating work orders for setup: 33549 - __SPLIT__ 2026-05-06 14:54:18,014 - 124381 - src.utils.log - INFO - Generating work orders for setup: 33659 - __SPLIT__ 2026-05-06 14:54:18,021 - 124381 - src.utils.log - INFO - Generating work orders for setup: 33681 - __SPLIT__ 2026-05-06 14:54:18,029 - 124381 - src.utils.log - INFO - Generating work orders for setup: 33684 - __SPLIT__ 2026-05-06 14:54:18,036 - 124381 - src.utils.log - INFO - Generating work orders for setup: 33694 - __SPLIT__ 2026-05-06 14:54:18,043 - 124381 - src.utils.log - INFO - Generating work orders for setup: 33700 - __SPLIT__ 2026-05-06 14:54:18,050 - 124381 - src.utils.log - INFO - Generating work orders for setup: 33701 - __SPLIT__ 2026-05-06 14:54:18,057 - 124381 - src.utils.log - INFO - Generating work orders for setup: 33706 - __SPLIT__ 2026-05-06 14:54:18,065 - 124381 - src.utils.log - INFO - Generating work orders for setup: 33709 - __SPLIT__ 2026-05-06 14:54:18,073 - 124381 - src.utils.log - INFO - Generating work orders for setup: 33716 - __SPLIT__ 2026-05-06 14:54:18,080 - 124381 - src.utils.log - INFO - Generating work orders for setup: 33723 - __SPLIT__ 2026-05-06 14:54:18,088 - 124381 - src.utils.log - INFO - Generating work orders for setup: 33724 - __SPLIT__ 2026-05-06 14:54:18,096 - 124381 - src.utils.log - INFO - Generating work orders for setup: 33735 - __SPLIT__ 2026-05-06 14:54:18,104 - 124381 - src.utils.log - INFO - Generating work orders for setup: 33736 - __SPLIT__ 2026-05-06 14:54:18,111 - 124381 - src.utils.log - INFO - Generating work orders for setup: 33746 - __SPLIT__ 2026-05-06 14:54:18,118 - 124381 - src.utils.log - INFO - Generating work orders for setup: 33752 - __SPLIT__ 2026-05-06 14:54:18,126 - 124381 - src.utils.log - INFO - Generating work orders for setup: 33754 - __SPLIT__ 2026-05-06 14:54:18,133 - 124381 - src.utils.log - INFO - Generating work orders for setup: 33763 - __SPLIT__ 2026-05-06 14:54:18,141 - 124381 - src.utils.log - INFO - Generating work orders for setup: 33765 - __SPLIT__ 2026-05-06 14:54:18,148 - 124381 - src.utils.log - INFO - Generating work orders for setup: 33775 - __SPLIT__ 2026-05-06 14:54:18,155 - 124381 - src.utils.log - INFO - Generating work orders for setup: 33785 - __SPLIT__ 2026-05-06 14:54:18,163 - 124381 - src.utils.log - INFO - Generating work orders for setup: 33786 - __SPLIT__ 2026-05-06 14:54:18,170 - 124381 - src.utils.log - INFO - Generating work orders for setup: 33799 - __SPLIT__ 2026-05-06 14:54:18,178 - 124381 - src.utils.log - INFO - Generating work orders for setup: 33809 - __SPLIT__ 2026-05-06 14:54:18,186 - 124381 - src.utils.log - INFO - Generating work orders for setup: 34295 - __SPLIT__ 2026-05-06 14:54:18,193 - 124381 - src.utils.log - INFO - Generating work orders for setup: 34428 - __SPLIT__ 2026-05-06 14:54:18,202 - 124381 - src.utils.log - INFO - Generating work orders for setup: 34449 - __SPLIT__ 2026-05-06 14:54:18,210 - 124381 - src.utils.log - INFO - Generating work orders for setup: 34450 - __SPLIT__ 2026-05-06 14:54:18,218 - 124381 - src.utils.log - INFO - Generating work orders for setup: 34709 - __SPLIT__ 2026-05-06 14:54:18,226 - 124381 - src.utils.log - INFO - Generating work orders for setup: 34818 - __SPLIT__ 2026-05-06 14:54:18,235 - 124381 - src.utils.log - INFO - Generating work orders for setup: 34905 - __SPLIT__ 2026-05-06 14:54:18,244 - 124381 - src.utils.log - INFO - Generating work orders for setup: 34965 - __SPLIT__ 2026-05-06 14:54:18,252 - 124381 - src.utils.log - INFO - Generating work orders for setup: 35132 - __SPLIT__ 2026-05-06 14:54:18,260 - 124381 - src.utils.log - INFO - Generating work orders for setup: 35889 - __SPLIT__ 2026-05-06 14:54:18,267 - 124381 - src.utils.log - INFO - Generating work orders for setup: 36264 - __SPLIT__ 2026-05-06 14:54:18,357 - 124381 - src.utils.log - INFO - Generating work orders for setup: 36270 - __SPLIT__ 2026-05-06 14:54:18,366 - 124381 - src.utils.log - INFO - Generating work orders for setup: 36271 - __SPLIT__ 2026-05-06 14:54:18,374 - 124381 - src.utils.log - INFO - Generating work orders for setup: 36910 - __SPLIT__ 2026-05-06 14:54:18,382 - 124381 - src.utils.log - INFO - Generating work orders for setup: 37608 - __SPLIT__ 2026-05-06 14:54:18,389 - 124381 - src.utils.log - INFO - Generating work orders for setup: 39813 - __SPLIT__ 2026-05-06 14:54:18,397 - 124381 - src.utils.log - INFO - Generating work orders for setup: 41124 - __SPLIT__ 2026-05-06 14:54:18,405 - 124381 - src.utils.log - INFO - Generating work orders for setup: 46811 - __SPLIT__ 2026-05-06 14:54:18,413 - 124381 - src.utils.log - INFO - Generating work orders for setup: 46813 - __SPLIT__ 2026-05-06 14:54:18,420 - 124381 - src.utils.log - INFO - Generating work orders for setup: 46820 - __SPLIT__ 2026-05-06 14:54:18,428 - 124381 - src.utils.log - INFO - Generating work orders for setup: 49685 - __SPLIT__ 2026-05-06 14:54:18,436 - 124381 - src.utils.log - INFO - Generating work orders for setup: 51976 - __SPLIT__ 2026-05-06 14:54:18,443 - 124381 - src.utils.log - INFO - Generating work orders for setup: 52141 - __SPLIT__ 2026-05-06 14:54:18,451 - 124381 - src.utils.log - INFO - Generating work orders for setup: 52274 - __SPLIT__ 2026-05-06 14:54:18,459 - 124381 - src.utils.log - INFO - Generating work orders for setup: 52419 - __SPLIT__ 2026-05-06 14:54:18,467 - 124381 - src.utils.log - INFO - Generating work orders for setup: 53119 - __SPLIT__ 2026-05-06 14:54:18,475 - 124381 - src.utils.log - INFO - Generating work orders for setup: 54612 - __SPLIT__ 2026-05-06 14:54:18,483 - 124381 - src.utils.log - INFO - Generating work orders for setup: 54615 - __SPLIT__ 2026-05-06 14:54:18,491 - 124381 - src.utils.log - INFO - Generating work orders for setup: 55775 - __SPLIT__ 2026-05-06 14:54:18,498 - 124381 - src.utils.log - INFO - Generating work orders for setup: 56414 - __SPLIT__ 2026-05-06 14:54:18,506 - 124381 - src.utils.log - INFO - Generating work orders for setup: 56836 - __SPLIT__ 2026-05-06 14:54:18,513 - 124381 - src.utils.log - INFO - Generating work orders for setup: 56864 - __SPLIT__ 2026-05-06 14:54:18,523 - 124381 - src.utils.log - INFO - Generating work orders for setup: 56867 - __SPLIT__ 2026-05-06 14:54:18,530 - 124381 - src.utils.log - INFO - Generating work orders for setup: 58012 - __SPLIT__ 2026-05-06 14:54:18,538 - 124381 - src.utils.log - INFO - Generating work orders for setup: 119376 - __SPLIT__ 2026-05-06 14:54:18,591 - 124381 - src.utils.log - INFO - Generating work orders for setup: 119539 - __SPLIT__ 2026-05-06 14:54:18,600 - 124381 - src.utils.log - INFO - Generating work orders for setup: 119590 - __SPLIT__ 2026-05-06 14:54:18,610 - 124381 - src.utils.log - INFO - Generating work orders for setup: 139683 - __SPLIT__ 2026-05-06 14:54:18,659 - 124381 - src.utils.log - INFO - Generating work orders for setup: 139686 - __SPLIT__ 2026-05-06 14:54:18,701 - 124381 - src.utils.log - INFO - Generating work orders for setup: 149787 - __SPLIT__ 2026-05-06 14:54:18,753 - 124381 - src.utils.log - INFO - Generating work orders for setup: 149874 - __SPLIT__ 2026-05-06 14:54:19,156 - 124381 - src.utils.log - INFO - Generating work orders for setup: 150192 - __SPLIT__ 2026-05-06 14:54:19,211 - 124381 - src.utils.log - INFO - Generating work orders for setup: 150193 - __SPLIT__ 2026-05-06 14:54:19,267 - 124381 - src.utils.log - INFO - Generating work orders for setup: 150202 - __SPLIT__ 2026-05-06 14:54:19,288 - 124381 - src.utils.log - INFO - Generating work orders for setup: 150203 - __SPLIT__ 2026-05-06 14:54:19,328 - 124381 - src.utils.log - INFO - Generating work orders for setup: 150204 - __SPLIT__ 2026-05-06 14:54:19,379 - 124381 - src.utils.log - INFO - Generating work orders for setup: 150205 - __SPLIT__ 2026-05-06 14:54:19,412 - 124381 - src.utils.log - INFO - Generating work orders for setup: 150206 - __SPLIT__ 2026-05-06 14:54:19,458 - 124381 - src.utils.log - INFO - Generating work orders for setup: 150209 - __SPLIT__ 2026-05-06 14:54:19,510 - 124381 - src.utils.log - INFO - Generating work orders for setup: 150210 - __SPLIT__ 2026-05-06 14:54:19,531 - 124381 - src.utils.log - INFO - Generating work orders for setup: 150211 - __SPLIT__ 2026-05-06 14:54:19,539 - 124381 - src.utils.log - INFO - Generating work orders for setup: 150212 - __SPLIT__ 2026-05-06 14:54:19,547 - 124381 - src.utils.log - INFO - Generating work orders for setup: 150213 - __SPLIT__ 2026-05-06 14:54:19,568 - 124381 - src.utils.log - INFO - Generating work orders for setup: 150214 - __SPLIT__ 2026-05-06 14:54:19,589 - 124381 - src.utils.log - INFO - Generating work orders for setup: 150215 - __SPLIT__ 2026-05-06 14:54:19,628 - 124381 - src.utils.log - INFO - Generating work orders for setup: 150216 - __SPLIT__ 2026-05-06 14:54:19,678 - 124381 - src.utils.log - INFO - Generating work orders for setup: 150222 - __SPLIT__ 2026-05-06 14:54:19,729 - 124381 - src.utils.log - INFO - Generating work orders for setup: 150223 - __SPLIT__ 2026-05-06 14:54:19,783 - 124381 - src.utils.log - INFO - Generating work orders for setup: 150224 - __SPLIT__ 2026-05-06 14:54:19,835 - 124381 - src.utils.log - INFO - Generating work orders for setup: 150225 - __SPLIT__ 2026-05-06 14:54:19,889 - 124381 - src.utils.log - INFO - Generating work orders for setup: 150260 - __SPLIT__ 2026-05-06 14:54:19,941 - 124381 - src.utils.log - INFO - Generating work orders for setup: 150265 - __SPLIT__ 2026-05-06 14:54:19,962 - 124381 - src.utils.log - INFO - Generating work orders for setup: 150266 - __SPLIT__ 2026-05-06 14:54:19,977 - 124381 - src.utils.log - INFO - Generating work orders for setup: 150274 - __SPLIT__ 2026-05-06 14:54:20,033 - 124381 - src.utils.log - INFO - Generating work orders for setup: 150275 - __SPLIT__ 2026-05-06 14:54:20,088 - 124381 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 1131.0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:54:20,376 - 124381 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-06 14:54:20,385 - 124381 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId in (11426.0, 11428.0, 11429.0, 1129.0, 1130.0, 1131.0, 1035.0, 11436.0, 1133.0, 11439.0, 1132.0, -1.0);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:54:20,675 - 124381 - src.utils.log - INFO - βœ… Fetched 11 rows - __SPLIT__ 2026-05-06 14:54:20,767 - 124381 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-05-06 14:54:21,381 - 124381 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=133 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:54:21,668 - 124381 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-06 14:54:21,671 - 124381 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-05-06 14:54:21,671 - 124381 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-05-06 14:54:21,671 - 124381 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (34818, 33786, 56836, 33799, 150031, 150032, 33809, 49685, 36892, 56864, 56867, 36910, 53806, 35889, 52274, 39481, 119376, 129618, 22612, 34905, 58460, 34910, 56414, 58462, 129633, 58472, 34428, 33410, 24208, 34449, 34450, 34965, 51356, 58012, 150173, 41124, 150192, 150193, 119474, 119476, 54453, 119480, 150202, 150203, 150204, 150205, 32958, 150206, 150207, 150209, 150210, 52419, 150211, 150212, 150213, 58567, 150214, 150215, 150216, 58571, 48334, 150222, 30416, 150223, 150224, 150225, 55510, 23769, 46811, 46813, 33508, 33509, 46820, 37608, 32492, 33516, 46320, 119539, 150260, 33526, 150264, 150265, 150266, 150269, 150274, 150275, 51976, 33549, 31001, 58649, 149787, 119590, 35132, 54612, 54615, 46434, 47462, 149870, 149874, 33659, 53119, 33156, 28037, 39813, 139663, 33681, 33684, 34709, 69019, 33694, 139683, 33700, 33701, 139686, 36264, 33706, 33709, 36270, 36271, 52141, 33716, 33723, 33724, 48573, 33735, 33736, 33746, 33752, 33754, 25052, 55775, 31201, 33763, 33765, 33775, 150003, 34295, 33785, 44538) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:54:22,034 - 124381 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-06 14:54:22,034 - 124381 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (34818, 33786, 56836, 33799, 150031, 150032, 33809, 49685, 36892, 56864, 56867, 36910, 53806, 35889, 52274, 39481, 119376, 129618, 22612, 34905, 58460, 34910, 56414, 58462, 129633, 58472, 34428, 33410, 24208, 34449, 34450, 34965, 51356, 58012, 150173, 41124, 150192, 150193, 119474, 119476, 54453, 119480, 150202, 150203, 150204, 150205, 32958, 150206, 150207, 150209, 150210, 52419, 150211, 150212, 150213, 58567, 150214, 150215, 150216, 58571, 48334, 150222, 30416, 150223, 150224, 150225, 55510, 23769, 46811, 46813, 33508, 33509, 46820, 37608, 32492, 33516, 46320, 119539, 150260, 33526, 150264, 150265, 150266, 150269, 150274, 150275, 51976, 33549, 31001, 58649, 149787, 119590, 35132, 54612, 54615, 46434, 47462, 149870, 149874, 33659, 53119, 33156, 28037, 39813, 139663, 33681, 33684, 34709, 69019, 33694, 139683, 33700, 33701, 139686, 36264, 33706, 33709, 36270, 36271, 52141, 33716, 33723, 33724, 48573, 33735, 33736, 33746, 33752, 33754, 25052, 55775, 31201, 33763, 33765, 33775, 150003, 34295, 33785, 44538) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:54:22,392 - 124381 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-06 14:54:22,392 - 124381 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (34818, 33786, 56836, 33799, 150031, 150032, 33809, 49685, 36892, 56864, 56867, 36910, 53806, 35889, 52274, 39481, 119376, 129618, 22612, 34905, 58460, 34910, 56414, 58462, 129633, 58472, 34428, 33410, 24208, 34449, 34450, 34965, 51356, 58012, 150173, 41124, 150192, 150193, 119474, 119476, 54453, 119480, 150202, 150203, 150204, 150205, 32958, 150206, 150207, 150209, 150210, 52419, 150211, 150212, 150213, 58567, 150214, 150215, 150216, 58571, 48334, 150222, 30416, 150223, 150224, 150225, 55510, 23769, 46811, 46813, 33508, 33509, 46820, 37608, 32492, 33516, 46320, 119539, 150260, 33526, 150264, 150265, 150266, 150269, 150274, 150275, 51976, 33549, 31001, 58649, 149787, 119590, 35132, 54612, 54615, 46434, 47462, 149870, 149874, 33659, 53119, 33156, 28037, 39813, 139663, 33681, 33684, 34709, 69019, 33694, 139683, 33700, 33701, 139686, 36264, 33706, 33709, 36270, 36271, 52141, 33716, 33723, 33724, 48573, 33735, 33736, 33746, 33752, 33754, 25052, 55775, 31201, 33763, 33765, 33775, 150003, 34295, 33785, 44538) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:54:22,705 - 124381 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-06 14:54:22,706 - 124381 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (34818, 33786, 56836, 33799, 150031, 150032, 33809, 49685, 36892, 56864, 56867, 36910, 53806, 35889, 52274, 39481, 119376, 129618, 22612, 34905, 58460, 34910, 56414, 58462, 129633, 58472, 34428, 33410, 24208, 34449, 34450, 34965, 51356, 58012, 150173, 41124, 150192, 150193, 119474, 119476, 54453, 119480, 150202, 150203, 150204, 150205, 32958, 150206, 150207, 150209, 150210, 52419, 150211, 150212, 150213, 58567, 150214, 150215, 150216, 58571, 48334, 150222, 30416, 150223, 150224, 150225, 55510, 23769, 46811, 46813, 33508, 33509, 46820, 37608, 32492, 33516, 46320, 119539, 150260, 33526, 150264, 150265, 150266, 150269, 150274, 150275, 51976, 33549, 31001, 58649, 149787, 119590, 35132, 54612, 54615, 46434, 47462, 149870, 149874, 33659, 53119, 33156, 28037, 39813, 139663, 33681, 33684, 34709, 69019, 33694, 139683, 33700, 33701, 139686, 36264, 33706, 33709, 36270, 36271, 52141, 33716, 33723, 33724, 48573, 33735, 33736, 33746, 33752, 33754, 25052, 55775, 31201, 33763, 33765, 33775, 150003, 34295, 33785, 44538) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:54:23,080 - 124381 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-06 14:54:23,080 - 124381 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (34818, 33786, 56836, 33799, 150031, 150032, 33809, 49685, 36892, 56864, 56867, 36910, 53806, 35889, 52274, 39481, 119376, 129618, 22612, 34905, 58460, 34910, 56414, 58462, 129633, 58472, 34428, 33410, 24208, 34449, 34450, 34965, 51356, 58012, 150173, 41124, 150192, 150193, 119474, 119476, 54453, 119480, 150202, 150203, 150204, 150205, 32958, 150206, 150207, 150209, 150210, 52419, 150211, 150212, 150213, 58567, 150214, 150215, 150216, 58571, 48334, 150222, 30416, 150223, 150224, 150225, 55510, 23769, 46811, 46813, 33508, 33509, 46820, 37608, 32492, 33516, 46320, 119539, 150260, 33526, 150264, 150265, 150266, 150269, 150274, 150275, 51976, 33549, 31001, 58649, 149787, 119590, 35132, 54612, 54615, 46434, 47462, 149870, 149874, 33659, 53119, 33156, 28037, 39813, 139663, 33681, 33684, 34709, 69019, 33694, 139683, 33700, 33701, 139686, 36264, 33706, 33709, 36270, 36271, 52141, 33716, 33723, 33724, 48573, 33735, 33736, 33746, 33752, 33754, 25052, 55775, 31201, 33763, 33765, 33775, 150003, 34295, 33785, 44538) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:54:23,430 - 124381 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-06 14:54:23,430 - 124381 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (34818, 33786, 56836, 33799, 150031, 150032, 33809, 49685, 36892, 56864, 56867, 36910, 53806, 35889, 52274, 39481, 119376, 129618, 22612, 34905, 58460, 34910, 56414, 58462, 129633, 58472, 34428, 33410, 24208, 34449, 34450, 34965, 51356, 58012, 150173, 41124, 150192, 150193, 119474, 119476, 54453, 119480, 150202, 150203, 150204, 150205, 32958, 150206, 150207, 150209, 150210, 52419, 150211, 150212, 150213, 58567, 150214, 150215, 150216, 58571, 48334, 150222, 30416, 150223, 150224, 150225, 55510, 23769, 46811, 46813, 33508, 33509, 46820, 37608, 32492, 33516, 46320, 119539, 150260, 33526, 150264, 150265, 150266, 150269, 150274, 150275, 51976, 33549, 31001, 58649, 149787, 119590, 35132, 54612, 54615, 46434, 47462, 149870, 149874, 33659, 53119, 33156, 28037, 39813, 139663, 33681, 33684, 34709, 69019, 33694, 139683, 33700, 33701, 139686, 36264, 33706, 33709, 36270, 36271, 52141, 33716, 33723, 33724, 48573, 33735, 33736, 33746, 33752, 33754, 25052, 55775, 31201, 33763, 33765, 33775, 150003, 34295, 33785, 44538) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:54:23,782 - 124381 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-06 14:54:23,782 - 124381 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (34818, 33786, 56836, 33799, 150031, 150032, 33809, 49685, 36892, 56864, 56867, 36910, 53806, 35889, 52274, 39481, 119376, 129618, 22612, 34905, 58460, 34910, 56414, 58462, 129633, 58472, 34428, 33410, 24208, 34449, 34450, 34965, 51356, 58012, 150173, 41124, 150192, 150193, 119474, 119476, 54453, 119480, 150202, 150203, 150204, 150205, 32958, 150206, 150207, 150209, 150210, 52419, 150211, 150212, 150213, 58567, 150214, 150215, 150216, 58571, 48334, 150222, 30416, 150223, 150224, 150225, 55510, 23769, 46811, 46813, 33508, 33509, 46820, 37608, 32492, 33516, 46320, 119539, 150260, 33526, 150264, 150265, 150266, 150269, 150274, 150275, 51976, 33549, 31001, 58649, 149787, 119590, 35132, 54612, 54615, 46434, 47462, 149870, 149874, 33659, 53119, 33156, 28037, 39813, 139663, 33681, 33684, 34709, 69019, 33694, 139683, 33700, 33701, 139686, 36264, 33706, 33709, 36270, 36271, 52141, 33716, 33723, 33724, 48573, 33735, 33736, 33746, 33752, 33754, 25052, 55775, 31201, 33763, 33765, 33775, 150003, 34295, 33785, 44538) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:54:24,090 - 124381 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-06 14:54:24,090 - 124381 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (34818, 33786, 56836, 33799, 150031, 150032, 33809, 49685, 36892, 56864, 56867, 36910, 53806, 35889, 52274, 39481, 119376, 129618, 22612, 34905, 58460, 34910, 56414, 58462, 129633, 58472, 34428, 33410, 24208, 34449, 34450, 34965, 51356, 58012, 150173, 41124, 150192, 150193, 119474, 119476, 54453, 119480, 150202, 150203, 150204, 150205, 32958, 150206, 150207, 150209, 150210, 52419, 150211, 150212, 150213, 58567, 150214, 150215, 150216, 58571, 48334, 150222, 30416, 150223, 150224, 150225, 55510, 23769, 46811, 46813, 33508, 33509, 46820, 37608, 32492, 33516, 46320, 119539, 150260, 33526, 150264, 150265, 150266, 150269, 150274, 150275, 51976, 33549, 31001, 58649, 149787, 119590, 35132, 54612, 54615, 46434, 47462, 149870, 149874, 33659, 53119, 33156, 28037, 39813, 139663, 33681, 33684, 34709, 69019, 33694, 139683, 33700, 33701, 139686, 36264, 33706, 33709, 36270, 36271, 52141, 33716, 33723, 33724, 48573, 33735, 33736, 33746, 33752, 33754, 25052, 55775, 31201, 33763, 33765, 33775, 150003, 34295, 33785, 44538) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:54:25,411 - 124381 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-06 14:54:25,411 - 124381 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-06 14:54:25,411 - 124381 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 112 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:54:25,735 - 124381 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 112) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-05-06 14:54:29,533 - 124381 - src.utils.log - INFO - βœ… All 112 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-05-06 14:54:29,534 - 124381 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 112 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-05-06 15:39:09.403' and ServiceSetupId in (34818, 33786, 56836, 33799, 150031, 150032, 33809, 49685, 36892, 56864, 56867, 36910, 53806, 35889, 52274, 39481, 119376, 129618, 22612, 34905, 58460, 34910, 56414, 58462, 129633, 58472, 34428, 33410, 24208, 34449, 34450, 34965, 51356, 58012, 150173, 41124, 150192, 150193, 119474, 119476, 54453, 119480, 150202, 150203, 150204, 150205, 32958, 150206, 150207, 150209, 150210, 52419, 150211, 150212, 150213, 58567, 150214, 150215, 150216, 58571, 48334, 150222, 30416, 150223, 150224, 150225, 55510, 23769, 46811, 46813, 33508, 33509, 46820, 37608, 32492, 33516, 46320, 119539, 150260, 33526, 150264, 150265, 150266, 150269, 150274, 150275, 51976, 33549, 31001, 58649, 149787, 119590, 35132, 54612, 54615, 46434, 47462, 149870, 149874, 33659, 53119, 33156, 28037, 39813, 139663, 33681, 33684, 34709, 69019, 33694, 139683, 33700, 33701, 139686, 36264, 33706, 33709, 36270, 36271, 52141, 33716, 33723, 33724, 48573, 33735, 33736, 33746, 33752, 33754, 25052, 55775, 31201, 33763, 33765, 33775, 150003, 34295, 33785, 44538)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:54:29,854 - 124381 - src.utils.log - INFO - βœ… Fetched 112 rows - __SPLIT__ 2026-05-06 14:54:29,855 - 124381 - src.utils.log - INFO - Id's of work order inserted to DB: [3673038 3673050 3673065 3673079 3673096 3673118 3673023 3673060 3673109 3673120 3673128 3673076 3673087 3673103 3673029 3673042 3673057 3673025 3673045 3673093 3673059 3673074 3673032 3673081 3673094 3673115 3673131 3673047 3673134 3673116 3673125 3673097 3673086 3673033 3673046 3673075 3673027 3673066 3673072 3673085 3673090 3673037 3673043 3673061 3673114 3673124 3673044 3673091 3673036 3673084 3673119 3673111 3673071 3673092 3673098 3673049 3673067 3673068 3673063 3673051 3673099 3673105 3673113 3673129 3673132 3673122 3673127 3673108 3673078 3673089 3673058 3673041 3673030 3673034 3673039 3673055 3673082 3673102 3673073 3673077 3673088 3673056 3673040 3673104 3673121 3673133 3673028 3673031 3673048 3673064 3673080 3673095 3673117 3673126 3673070 3673123 3673110 3673101 3673083 3673054 3673035 3673024 3673052 3673106 3673107 3673100 3673069 3673053 3673062 3673026 3673112 3673130] - __SPLIT__ 2026-05-06 14:54:29,856 - 124381 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId in (34818, 33786, 56836, 33799, 150031, 150032, 33809, 49685, 36892, 56864, 56867, 36910, 53806, 35889, 52274, 39481, 119376, 129618, 22612, 34905, 58460, 34910, 56414, 58462, 129633, 58472, 34428, 33410, 24208, 34449, 34450, 34965, 51356, 58012, 150173, 41124, 150192, 150193, 119474, 119476, 54453, 119480, 150202, 150203, 150204, 150205, 32958, 150206, 150207, 150209, 150210, 52419, 150211, 150212, 150213, 58567, 150214, 150215, 150216, 58571, 48334, 150222, 30416, 150223, 150224, 150225, 55510, 23769, 46811, 46813, 33508, 33509, 46820, 37608, 32492, 33516, 46320, 119539, 150260, 33526, 150264, 150265, 150266, 150269, 150274, 150275, 51976, 33549, 31001, 58649, 149787, 119590, 35132, 54612, 54615, 46434, 47462, 149870, 149874, 33659, 53119, 33156, 28037, 39813, 139663, 33681, 33684, 34709, 69019, 33694, 139683, 33700, 33701, 139686, 36264, 33706, 33709, 36270, 36271, 52141, 33716, 33723, 33724, 48573, 33735, 33736, 33746, 33752, 33754, 25052, 55775, 31201, 33763, 33765, 33775, 150003, 34295, 33785, 44538);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:54:30,150 - 124381 - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-05-06 14:54:30,150 - 124381 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-05-06 14:54:30,151 - 124381 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId in (150274, 150275, 150202, 150203, 150204, 150205, 150206, 150210, 150211, 150212, 150213, 150214, 150215, 150216, 150222, 150223, 150224, 150225, 150260, 150265, 150266)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:54:30,443 - 124381 - src.utils.log - INFO - βœ… Fetched 32 rows - __SPLIT__ 2026-05-06 14:54:30,443 - 124381 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId in (150274, 150275, 150202, 150203, 150204, 150205, 150206, 150210, 150211, 150212, 150213, 150214, 150215, 150216, 150222, 150223, 150224, 150225, 150260, 150265, 150266)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:54:30,736 - 124381 - src.utils.log - INFO - βœ… Fetched 18 rows - __SPLIT__ 2026-05-06 14:54:30,744 - 124381 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId in (150274, 150275, 150202, 150203, 150204, 150205, 150206, 150210, 150211, 150212, 150213, 150214, 150215, 150216, 150222, 150223, 150224, 150225, 150260, 150265, 150266)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:54:31,061 - 124381 - src.utils.log - INFO - βœ… Fetched 34 rows - __SPLIT__ 2026-05-06 14:54:31,062 - 124381 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId in (150274, 150275, 150202, 150203, 150204, 150205, 150206, 150210, 150211, 150212, 150213, 150214, 150215, 150216, 150222, 150223, 150224, 150225, 150260, 150265, 150266)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:54:31,356 - 124381 - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-05-06 14:54:31,357 - 124381 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId in (150274, 150275, 150202, 150203, 150204, 150205, 150206, 150210, 150211, 150212, 150213, 150214, 150215, 150216, 150222, 150223, 150224, 150225, 150260, 150265, 150266)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:54:31,648 - 124381 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-06 14:54:31,650 - 124381 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId in (150274, 150275, 150202, 150203, 150204, 150205, 150206, 150210, 150211, 150212, 150213, 150214, 150215, 150216, 150222, 150223, 150224, 150225, 150260, 150265, 150266);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:54:31,951 - 124381 - src.utils.log - INFO - βœ… Fetched 15 rows - __SPLIT__ 2026-05-06 14:54:31,953 - 124381 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId in (150274, 150275, 150202, 150203, 150204, 150205, 150206, 150210, 150211, 150212, 150213, 150214, 150215, 150216, 150222, 150223, 150224, 150225, 150260, 150265, 150266);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:54:32,243 - 124381 - src.utils.log - INFO - βœ… Fetched 13 rows - __SPLIT__ 2026-05-06 14:54:32,244 - 124381 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId in (150274, 150275, 150202, 150203, 150204, 150205, 150206, 150210, 150211, 150212, 150213, 150214, 150215, 150216, 150222, 150223, 150224, 150225, 150260, 150265, 150266);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:54:32,561 - 124381 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-06 14:54:32,561 - 124381 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId in (150274, 150275, 150202, 150203, 150204, 150205, 150206, 150210, 150211, 150212, 150213, 150214, 150215, 150216, 150222, 150223, 150224, 150225, 150260, 150265, 150266);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:54:32,856 - 124381 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-06 14:54:32,887 - 124381 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-05-06 14:54:32,888 - 124381 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-05-06 14:54:32,888 - 124381 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-05-06 14:54:32,888 - 124381 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.CommunicationPreferencesServiceReportNotification: - __SPLIT__ 2026-05-06 14:54:32,888 - 124381 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-05-06 14:54:32,888 - 124381 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-06 14:54:32,888 - 124381 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ('3673038', '3673061', '3673085', '3673024', '3673106', '3673124', '3673072', '3673043', '3673065', '3673096', '3673052', '3673091', '3673044', '3673027', '3673118', '3673066', '3673090', '3673050', '3673114', '3673037', '3673079') ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:54:33,177 - 124381 - src.utils.log - INFO - βœ… Fetched 21 rows - __SPLIT__ 2026-05-06 14:54:33,178 - 124381 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.SetupAutoGenerationSourceMapping: 0 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:54:33,468 - 124381 - src.utils.log - INFO - βœ… All 0 rows inserted successfully into ServiceCore.SetupAutoGenerationSourceMapping in 0 batches - __SPLIT__ 2026-05-06 14:54:33,468 - 124381 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-05-06 14:54:33,468 - 124381 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-06 14:54:33,468 - 124381 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3673090, 3673095, 3673096, 3673101, 3673102, 3673110, 3673114, 3673117, 3673118, 3673123, 3673124, 3673126, 3673031, 3673034, 3673035, 3673037, 3673038, 3673039, 3673043, 3673048, 3673050, 3673054, 3673055, 3673061, 3673064, 3673065, 3673066, 3673070, 3673072, 3673073, 3673079, 3673080, 3673082, 3673083, 3673085) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:54:33,758 - 124381 - src.utils.log - INFO - βœ… Fetched 35 rows - __SPLIT__ 2026-05-06 14:54:33,759 - 124381 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationAppliedDiscount: 48 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:54:34,083 - 124381 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 48) into ServiceCore.WorkOrderAutoGenerationAppliedDiscount - __SPLIT__ 2026-05-06 14:54:35,154 - 124381 - src.utils.log - INFO - βœ… All 48 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationAppliedDiscount in 1 batches - __SPLIT__ 2026-05-06 14:54:35,155 - 124381 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-05-06 14:54:35,155 - 124381 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-06 14:54:35,155 - 124381 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3673072.0, 3673066.0, 3673027.0) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:54:35,443 - 124381 - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-05-06 14:54:35,444 - 124381 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.SubWorkOrderAutoGeneration: 3 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:54:35,770 - 124381 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into ServiceCore.SubWorkOrderAutoGeneration - __SPLIT__ 2026-05-06 14:54:36,948 - 124381 - src.utils.log - INFO - βœ… All 3 rows inserted successfully into ServiceCore.SubWorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-05-06 14:54:36,948 - 124381 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-05-06 14:54:36,948 - 124381 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-06 14:54:36,949 - 124381 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3673072, 3673066, 3673027) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:54:37,237 - 124381 - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-05-06 14:54:37,238 - 124381 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: 3 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:54:37,554 - 124381 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into ServiceCore.WorkOrderAutoGenerationCommissionAdjustment - __SPLIT__ 2026-05-06 14:54:38,428 - 124381 - src.utils.log - INFO - βœ… All 3 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationCommissionAdjustment in 1 batches - __SPLIT__ 2026-05-06 14:54:38,428 - 124381 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-05-06 14:54:38,428 - 124381 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: - __SPLIT__ 2026-05-06 14:54:38,429 - 124381 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-05-06 14:54:38,429 - 124381 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-06 14:54:38,429 - 124381 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3673088, 3673089, 3673090, 3673091, 3673092, 3673094, 3673095, 3673096, 3673097, 3673098, 3673099, 3673100, 3673101, 3673102, 3673103, 3673104, 3673105, 3673106, 3673107, 3673108, 3673109, 3673110, 3673111, 3673112, 3673113, 3673114, 3673115, 3673116, 3673117, 3673118, 3673119, 3673120, 3673121, 3673122, 3673123, 3673124, 3673125, 3673126, 3673127, 3673128, 3673129, 3673130, 3673131, 3673132, 3673133, 3673134, 3673023, 3673024, 3673025, 3673026, 3673028, 3673029, 3673030, 3673031, 3673032, 3673033, 3673034, 3673035, 3673036, 3673037, 3673038, 3673039, 3673040, 3673041, 3673042, 3673043, 3673044, 3673046, 3673047, 3673048, 3673049, 3673050, 3673051, 3673052, 3673053, 3673054, 3673055, 3673056, 3673057, 3673058, 3673059, 3673060, 3673061, 3673062, 3673063, 3673064, 3673065, 3673067, 3673068, 3673069, 3673070, 3673071, 3673073, 3673074, 3673075, 3673076, 3673077, 3673078, 3673079, 3673080, 3673081, 3673082, 3673083, 3673084, 3673085, 3673086, 3673087) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:54:38,727 - 124381 - src.utils.log - INFO - βœ… Fetched 107 rows - __SPLIT__ 2026-05-06 14:54:38,728 - 124381 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationCrews: 108 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:54:39,021 - 124381 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 108) into ServiceCore.WorkOrderAutoGenerationCrews - __SPLIT__ 2026-05-06 14:54:40,142 - 124381 - src.utils.log - INFO - βœ… All 108 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationCrews in 1 batches - __SPLIT__ 2026-05-06 14:54:40,143 - 124381 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-05-06 14:54:40,143 - 124381 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-06 14:54:40,143 - 124381 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3673024, 3673025, 3673026, 3673023) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:54:40,431 - 124381 - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-05-06 14:54:40,432 - 124381 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 5 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:54:40,727 - 124381 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 5) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-05-06 14:54:41,754 - 124381 - src.utils.log - INFO - βœ… All 5 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-05-06 14:54:41,754 - 124381 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-05-06 14:54:41,754 - 124381 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-06 14:54:41,755 - 124381 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3673088, 3673089, 3673090, 3673091, 3673092, 3673093, 3673094, 3673095, 3673096, 3673097, 3673098, 3673099, 3673100, 3673101, 3673102, 3673103, 3673104, 3673105, 3673106, 3673107, 3673108, 3673109, 3673110, 3673111, 3673112, 3673113, 3673114, 3673115, 3673116, 3673117, 3673118, 3673119, 3673120, 3673121, 3673122, 3673123, 3673124, 3673125, 3673126, 3673127, 3673128, 3673129, 3673130, 3673131, 3673132, 3673133, 3673134, 3673027, 3673028, 3673029, 3673030, 3673031, 3673032, 3673033, 3673034, 3673035, 3673036, 3673037, 3673038, 3673039, 3673040, 3673041, 3673042, 3673043, 3673044, 3673045, 3673046, 3673047, 3673048, 3673049, 3673050, 3673051, 3673052, 3673053, 3673054, 3673055, 3673056, 3673057, 3673058, 3673059, 3673060, 3673061, 3673062, 3673063, 3673064, 3673065, 3673066, 3673067, 3673068, 3673069, 3673070, 3673071, 3673072, 3673073, 3673074, 3673075, 3673076, 3673077, 3673078, 3673079, 3673080, 3673081, 3673082, 3673083, 3673084, 3673085, 3673086, 3673087) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:54:42,051 - 124381 - src.utils.log - INFO - βœ… Fetched 108 rows - __SPLIT__ 2026-05-06 14:54:42,052 - 124381 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 161 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:54:42,348 - 124381 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 161) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-05-06 14:54:44,097 - 124381 - src.utils.log - INFO - βœ… All 161 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-05-06 14:54:44,097 - 124381 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-05-06 14:54:44,097 - 124381 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 124381;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:54:44,393 - 124381 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-06 14:54:44,393 - 124381 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-05-06 14:54:44,394 - 124381 - src.utils.log - INFO - Time took to perform operation: 34.11 - __SPLIT__ 2026-05-06 14:54:44,394 - 124381 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 124381;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:54:44,682 - 124381 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-06 14:54:44,683 - 124381 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET WorkOrderStatusDateTime = '2026-05-06 10:54:44.683' WHERE GenerateWorkOrderHistoryId = 124381;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-06 14:54:44,973 - 124381 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-07 09:40:04,354 - 12148 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=12148 - __SPLIT__ 2026-05-07 09:40:04,355 - 12148 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 12148 - __SPLIT__ 2026-05-07 09:40:04,356 - 12148 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-05-07 09:40:04,356 - 12148 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-07 09:40:06,398 - 12148 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-07 09:40:06,398 - 12148 - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-05-07 09:40:06,398 - 12148 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 12148;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-07 09:40:06,683 - 12148 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-07 09:40:06,683 - 12148 - 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 = 12148), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 12148), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 12148 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-05-07 09:40:07,007 - 12148 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-07 09:40:07,008 - 12148 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 12148;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-07 09:40:07,309 - 12148 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-07 09:40:07,311 - 12148 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-05-07 09:40:07,312 - 12148 - 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 = 12805... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-07 09:40:07,607 - 12148 - src.utils.log - INFO - βœ… Fetched 12 rows - __SPLIT__ 2026-05-07 09:40:07,607 - 12148 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-05-07 09:40:07,610 - 12148 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-05-07 09:40:07,611 - 12148 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 23844;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-07 09:40:07,898 - 12148 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-07 09:40:07,899 - 12148 - src.utils.log - INFO - πŸ” Fetching data: select ServiceDate, ServiceSetupId, IsInitial from serviceCore.WorkOrder wo inner join ServiceCore.WorkOrderStatus wos on wo.WoStatusId = wos.WoStatusId where ServiceDate >= '2026-05-07 00:00:00' and ServiceDate <= '2026-06-30 00:00:00' and ServiceSetupId = 23844 and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-07 09:40:08,201 - 12148 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-07 09:40:08,811 - 12148 - src.utils.log - INFO - Generating work orders for setup: 23844 - __SPLIT__ 2026-05-07 09:40:08,834 - 12148 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 1349;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-07 09:40:09,119 - 12148 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-07 09:40:09,161 - 12148 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-05-07 09:40:09,167 - 12148 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=135 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-07 09:40:09,465 - 12148 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-05-07 09:40:09,468 - 12148 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-05-07 09:40:09,468 - 12148 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-05-07 09:40:09,468 - 12148 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 23844 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-07 09:40:09,778 - 12148 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-07 09:40:09,778 - 12148 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 23844 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-07 09:40:10,073 - 12148 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-07 09:40:10,073 - 12148 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 23844 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-07 09:40:10,394 - 12148 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-07 09:40:10,394 - 12148 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 23844 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-07 09:40:10,695 - 12148 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-07 09:40:10,695 - 12148 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 23844 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-07 09:40:11,007 - 12148 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-07 09:40:11,008 - 12148 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 23844 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-07 09:40:11,337 - 12148 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-07 09:40:11,337 - 12148 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 23844 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-07 09:40:11,632 - 12148 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-07 09:40:11,632 - 12148 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 23844 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-07 09:40:11,943 - 12148 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-07 09:40:11,943 - 12148 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-07 09:40:11,943 - 12148 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 3 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-07 09:40:12,294 - 12148 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-05-07 09:40:13,538 - 12148 - src.utils.log - INFO - βœ… All 3 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-05-07 09:40:13,538 - 12148 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 3 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-05-06 15:39:09.434' and ServiceSetupId = 23844... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-07 09:40:13,836 - 12148 - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-05-07 09:40:13,837 - 12148 - src.utils.log - INFO - Id's of work order inserted to DB: [2729547 2729548 2729549] - __SPLIT__ 2026-05-07 09:40:13,837 - 12148 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 23844;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-07 09:40:14,133 - 12148 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-07 09:40:14,133 - 12148 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-05-07 09:40:14,134 - 12148 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId = 23844... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-07 09:40:14,431 - 12148 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-05-07 09:40:14,431 - 12148 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId = 23844... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-07 09:40:14,723 - 12148 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-05-07 09:40:14,730 - 12148 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId = 23844... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-07 09:40:15,026 - 12148 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-05-07 09:40:15,027 - 12148 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId = 23844... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-07 09:40:15,321 - 12148 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-07 09:40:15,322 - 12148 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId = 23844... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-07 09:40:15,609 - 12148 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-07 09:40:15,610 - 12148 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId = 23844;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-07 09:40:15,913 - 12148 - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-05-07 09:40:15,914 - 12148 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId = 23844;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-07 09:40:16,204 - 12148 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-07 09:40:16,204 - 12148 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId = 23844;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-07 09:40:16,527 - 12148 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-07 09:40:16,527 - 12148 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId = 23844;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-07 09:40:16,816 - 12148 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-07 09:40:16,832 - 12148 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-05-07 09:40:16,832 - 12148 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-05-07 09:40:16,832 - 12148 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-05-07 09:40:16,833 - 12148 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.CommunicationPreferencesServiceReportNotification: - __SPLIT__ 2026-05-07 09:40:16,833 - 12148 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-05-07 09:40:16,833 - 12148 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SetupAutoGenerationSourceMapping: - __SPLIT__ 2026-05-07 09:40:16,833 - 12148 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-05-07 09:40:16,833 - 12148 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-07 09:40:16,833 - 12148 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (2729547, 2729548, 2729549) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-07 09:40:17,137 - 12148 - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-05-07 09:40:17,138 - 12148 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationAppliedDiscount: 5 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-07 09:40:17,473 - 12148 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 5) into ServiceCore.WorkOrderAutoGenerationAppliedDiscount - __SPLIT__ 2026-05-07 09:40:18,517 - 12148 - src.utils.log - INFO - βœ… All 5 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationAppliedDiscount in 1 batches - __SPLIT__ 2026-05-07 09:40:18,518 - 12148 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-05-07 09:40:18,518 - 12148 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SubWorkOrderAutoGeneration: - __SPLIT__ 2026-05-07 09:40:18,518 - 12148 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-05-07 09:40:18,518 - 12148 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: - __SPLIT__ 2026-05-07 09:40:18,518 - 12148 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-05-07 09:40:18,518 - 12148 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: - __SPLIT__ 2026-05-07 09:40:18,518 - 12148 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-05-07 09:40:18,518 - 12148 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-07 09:40:18,518 - 12148 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (2729547, 2729548, 2729549) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-07 09:40:18,816 - 12148 - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-05-07 09:40:18,817 - 12148 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationCrews: 3 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-07 09:40:19,143 - 12148 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into ServiceCore.WorkOrderAutoGenerationCrews - __SPLIT__ 2026-05-07 09:40:20,180 - 12148 - src.utils.log - INFO - βœ… All 3 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationCrews in 1 batches - __SPLIT__ 2026-05-07 09:40:20,180 - 12148 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-05-07 09:40:20,181 - 12148 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-07 09:40:20,181 - 12148 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 2729547 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-07 09:40:20,483 - 12148 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-07 09:40:20,484 - 12148 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-07 09:40:20,814 - 12148 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-05-07 09:40:21,860 - 12148 - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-05-07 09:40:21,860 - 12148 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-05-07 09:40:21,860 - 12148 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-07 09:40:21,861 - 12148 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (2729548, 2729549) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-07 09:40:22,142 - 12148 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-05-07 09:40:22,143 - 12148 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 4 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-07 09:40:22,441 - 12148 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 4) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-05-07 09:40:23,492 - 12148 - src.utils.log - INFO - βœ… All 4 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-05-07 09:40:23,492 - 12148 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-05-07 09:40:23,492 - 12148 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 12148;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-07 09:40:23,789 - 12148 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-07 09:40:23,789 - 12148 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-05-07 09:40:23,790 - 12148 - src.utils.log - INFO - Time took to perform operation: 19.43 - __SPLIT__ 2026-05-07 09:40:23,790 - 12148 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 12148;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-07 09:40:24,093 - 12148 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-07 09:40:24,093 - 12148 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET WorkOrderStatusDateTime = '2026-05-07 05:40:24.093' WHERE GenerateWorkOrderHistoryId = 12148;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-07 09:40:24,404 - 12148 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-07 09:40:45,789 - [12148] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[2729547, 2729548, 2729549] user_id=122885 company_id=135 project_id=[12148] publish_all=False - __SPLIT__ 2026-05-07 09:40:45,790 - [12148] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[2729547, 2729548, 2729549] user_id=122885 company_id=135 project_id=[12148] publish_all=False - __SPLIT__ 2026-05-07 09:40:45,790 - [12148] - src.utils.log - INFO - Sequential Work order publish in progress for GenerateWorkOrderHistoryId: [12148] - __SPLIT__ 2026-05-07 09:40:45,791 - [12148] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-05-07 09:40:45,791 - [12148] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-07 09:40:47,813 - [12148] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-07 09:40:47,813 - [12148] - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-05-07 09:40:47,813 - [12148] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'InProgress' WHERE CompanyId = 135 AND GenerateWorkOrderHistoryId = 12148;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-07 09:40:48,100 - [12148] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-07 09:40:48,100 - [12148] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (2729547, 2729548, 2729549)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-07 09:40:48,401 - [12148] - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-05-07 09:40:48,402 - [12148] - src.utils.log - INFO - Inside get_work_order_table - __SPLIT__ 2026-05-07 09:40:48,402 - [12148] - 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 = 23844 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-07 09:40:48,695 - [12148] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-07 09:40:48,695 - [12148] - 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 = 23844 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-07 09:40:48,978 - [12148] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-07 09:40:48,978 - [12148] - 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 = 23844 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-07 09:40:49,271 - [12148] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-07 09:40:49,275 - [12148] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder,BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 135;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-07 09:40:49,582 - [12148] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-07 09:40:49,582 - [12148] - 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-05-07 09:40:49,875 - [12148] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-05-07 09:40:49,875 - [12148] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder, BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 135; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-07 09:40:50,157 - [12148] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-07 09:40:50,157 - [12148] - 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-05-07 09:40:50,449 - [12148] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-05-07 09:40:50,453 - [12148] - 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 = 23844... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-07 09:40:50,743 - [12148] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-07 09:40:50,746 - [12148] - src.utils.log - INFO - πŸ” Fetching data: SELECT x.CompanyId FROM CRM.CompanyMaster x WHERE CompanyKey = 'Fortive';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-07 09:40:51,030 - [12148] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-07 09:40:51,030 - [12148] - src.utils.log - INFO - πŸ” Fetching data: SELECT CollectionStatus,IsHold,AccountNo FROM CRM.Account a WHERE a.AccountNo = '8326' and a.CompanyId = 124;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-07 09:40:51,329 - [12148] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-07 09:40:51,331 - [12148] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderNo FROM ServiceCore.WorkOrder WHERE WorkOrderNo IN ('165986R', '165987R', '165988R') AND CompanyId = 135 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-07 09:40:51,618 - [12148] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-07 09:40:51,618 - [12148] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrder (skip triggers): 3 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-07 09:40:52,096 - [12148] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into ServiceCore.WorkOrder (triggers skipped) - __SPLIT__ 2026-05-07 09:40:53,332 - [12148] - src.utils.log - INFO - βœ… All 3 rows inserted successfully into ServiceCore.WorkOrder in 1 batches (triggers skipped) - __SPLIT__ 2026-05-07 09:40:53,473 - [12148] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-05-07 09:40:53,474 - [12148] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.ServiceSetup SET IsInitialWoGenerated = 1 WHERE CompanyId = 135 AND ServiceSetupId = 23844;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-07 09:40:53,760 - [12148] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-07 09:40:53,761 - [12148] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkorderId, WorkOrderNo FROM ServiceCore.WorkOrder wo WHERE wo.WorkOrderNo IN ('165986R', '165987R', '165988R') AND wo.AccountNumber = '8326' AND wo.CompanyId = 135 ... (Thread: ThreadPoolExecutor-0_0) - __SPLIT__ 2026-05-07 09:40:54,049 - [12148] - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-05-07 09:40:54,050 - [12148] - src.utils.log - INFO - Sequential fetching temp table records - __SPLIT__ 2026-05-07 09:40:54,050 - [12148] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationServices woag WHERE woag.WorkOrderAutoGenerationId in (2729547, 2729548, 2729549)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-07 09:40:54,378 - [12148] - src.utils.log - INFO - βœ… Fetched 6 rows - __SPLIT__ 2026-05-07 09:40:54,379 - [12148] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SubWorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (2729547, 2729548, 2729549)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-07 09:40:54,678 - [12148] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-07 09:40:54,679 - [12148] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationCrews woag WHERE woag.WorkOrderAutoGenerationId in (2729547, 2729548, 2729549)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-07 09:40:54,966 - [12148] - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-05-07 09:40:54,966 - [12148] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationSalesPersonCommission woag WHERE woag.WorkOrderAutoGenerationId in (2729547, 2729548, 2729549)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-07 09:40:55,256 - [12148] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-07 09:40:55,256 - [12148] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupAutoGenerationSourceMapping woag WHERE woag.WorkOrderAutoGenerationId in (2729547, 2729548, 2729549)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-07 09:40:55,544 - [12148] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-07 09:40:55,545 - [12148] - 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 (2729547, 2729548, 2729549)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-07 09:40:55,843 - [12148] - src.utils.log - INFO - βœ… Fetched 5 rows - __SPLIT__ 2026-05-07 09:40:55,843 - [12148] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from CRM.LeadNote woag WHERE woag.RefId in (2729547, 2729548, 2729549) and woag.RefType = 'TempWorkorder';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-07 09:40:56,124 - [12148] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-07 09:40:56,125 - [12148] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment woagca WHERE woagca.WorkOrderAutoGenerationId in (2729547, 2729548, 2729549);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-07 09:40:56,411 - [12148] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-07 09:40:56,414 - [12148] - src.utils.log - INFO - Updating temp tables - __SPLIT__ 2026-05-07 09:40:56,426 - [12148] - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyKey FROM Common.CompanyMaster cm WHERE CompanyId = 135;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-07 09:40:56,714 - [12148] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-07 09:40:56,718 - [12148] - src.utils.log - INFO - πŸ” Fetching data: Select DiscountSetupId, [SysName] as DiscountSysName from Common.DiscountSetupMaster WHERE DiscountSetupId IN (1796, 1982, 1952) AND CompanyId = 135;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-07 09:40:57,006 - [12148] - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-05-07 09:40:57,009 - [12148] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 135 AND EnitityNumberType in ('SubWorkOrder'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-07 09:40:57,297 - [12148] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-07 09:40:57,300 - [12148] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-07 09:40:57,300 - [12148] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishHistory: 3 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-07 09:40:57,631 - [12148] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into ServiceCore.WorkOrderAutoGenerationPublishHistory - __SPLIT__ 2026-05-07 09:40:58,664 - [12148] - src.utils.log - INFO - βœ… All 3 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishHistory in 1 batches - __SPLIT__ 2026-05-07 09:40:58,666 - [12148] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationPublishHistoryId, WorkOrderNo, ServiceSetupId FROM ServiceCore.WorkOrderAutoGenerationPublishHistory WHERE ServiceSetupId = 23844 AND WorkOrderNo IN ('502484', '2755105', '6545454') AND GenerateWorkOrderHistoryId = 12148;... (Thread: ThreadPoolExecutor-1_0) - __SPLIT__ 2026-05-07 09:40:58,977 - [12148] - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-05-07 09:40:58,977 - [12148] - src.utils.log - INFO - 🏁 Final merged rows: 3 - __SPLIT__ 2026-05-07 09:40:58,983 - [12148] - src.utils.log - INFO - Sequential Insertion in work order tables begin - __SPLIT__ 2026-05-07 09:40:58,983 - [12148] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-07 09:40:58,983 - [12148] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderServices: 6 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-07 09:40:59,310 - [12148] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 6) into ServiceCore.WorkOrderServices - __SPLIT__ 2026-05-07 09:41:00,340 - [12148] - src.utils.log - INFO - βœ… All 6 rows inserted successfully into ServiceCore.WorkOrderServices in 1 batches - __SPLIT__ 2026-05-07 09:41:00,340 - [12148] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-07 09:41:00,340 - [12148] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.WorkOrderAppliedDiscount: 5 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-07 09:41:00,657 - [12148] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 5) into ServiceAuto.WorkOrderAppliedDiscount - __SPLIT__ 2026-05-07 09:41:01,673 - [12148] - src.utils.log - INFO - βœ… All 5 rows inserted successfully into ServiceAuto.WorkOrderAppliedDiscount in 1 batches - __SPLIT__ 2026-05-07 09:41:01,673 - [12148] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderSalesPersonCommission: - __SPLIT__ 2026-05-07 09:41:01,673 - [12148] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderCommissionAdjustment: - __SPLIT__ 2026-05-07 09:41:01,673 - [12148] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-07 09:41:01,674 - [12148] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderCrew: 3 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-07 09:41:01,977 - [12148] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into ServiceCore.WorkOrderCrew - __SPLIT__ 2026-05-07 09:41:02,988 - [12148] - src.utils.log - INFO - βœ… All 3 rows inserted successfully into ServiceCore.WorkOrderCrew in 1 batches - __SPLIT__ 2026-05-07 09:41:02,988 - [12148] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkorderSourceMapping: - __SPLIT__ 2026-05-07 09:41:02,988 - [12148] - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-05-07 09:41:02,988 - [12148] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-07 09:41:02,988 - [12148] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishServices: 6 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-07 09:41:03,298 - [12148] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 6) into ServiceCore.WorkOrderAutoGenerationPublishServices - __SPLIT__ 2026-05-07 09:41:04,332 - [12148] - src.utils.log - INFO - βœ… All 6 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishServices in 1 batches - __SPLIT__ 2026-05-07 09:41:04,333 - [12148] - 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 = 23844... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-07 09:41:04,618 - [12148] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-07 09:41:04,625 - [12148] - src.utils.log - INFO - Size of Transaction: 3 - __SPLIT__ 2026-05-07 09:41:04,626 - [12148] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 3 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-07 09:41:05,081 - [12148] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-05-07 09:41:06,088 - [12148] - src.utils.log - INFO - βœ… All 3 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-05-07 09:41:06,229 - [12148] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-05-07 09:41:06,230 - [12148] - 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-05-07 05:41:04.620';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-07 09:41:06,562 - [12148] - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-05-07 09:41:06,565 - [12148] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 23844;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-07 09:41:06,857 - [12148] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-07 09:41:06,866 - [12148] - src.utils.log - INFO - πŸ“ Executing: UPDATE Billing.[Transaction] SET ModifiedBy = NULL WHERE ModifiedBy IN (12345678910,12345678911,12345678912) AND CreatedDate = '2026-05-07 05:41:04.620'; ... (Thread: ThreadPoolExecutor-2_0) - __SPLIT__ 2026-05-07 09:41:07,279 - [12148] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-07 09:41:07,285 - [12148] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-07 09:41:07,285 - [12148] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 3 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-07 09:41:07,594 - [12148] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into Billing.Invoice - __SPLIT__ 2026-05-07 09:41:08,624 - [12148] - src.utils.log - INFO - βœ… All 3 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-05-07 09:41:08,625 - [12148] - src.utils.log - INFO - πŸ” Fetching data: SELECT InvoiceId, WorkOrderNo FROM Billing.Invoice i WHERE i.WorkOrderNo in ('165986R', '165988R', '165987R')... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-07 09:41:08,937 - [12148] - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-05-07 09:41:08,946 - [12148] - 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 = 23844 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-07 09:41:09,239 - [12148] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-05-07 09:41:09,240 - [12148] - 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 = 23844 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-07 09:41:09,551 - [12148] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-05-07 09:41:09,551 - [12148] - 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 = 23844 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-07 09:41:09,834 - [12148] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-07 09:41:09,835 - [12148] - 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 = 23844 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-07 09:41:10,120 - [12148] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-07 09:41:10,134 - [12148] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 23844;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-07 09:41:10,420 - [12148] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-07 09:41:10,426 - [12148] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId, AppliedDiscountAmt as AppliedDiscountAmount,IsActive ,ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 23844;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-07 09:41:10,715 - [12148] - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-05-07 09:41:10,726 - [12148] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId,IsActive,DiscountAmount, IsDiscountPercent,DiscountPercent,DiscountDescription , ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 23844;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-07 09:41:11,008 - [12148] - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-05-07 09:41:11,017 - [12148] - src.utils.log - INFO - Sequential Insertion in invoice tables begin - __SPLIT__ 2026-05-07 09:41:11,017 - [12148] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-07 09:41:11,018 - [12148] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.AccountDiscountSetup: 5 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-07 09:41:11,330 - [12148] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 5) into Billing.AccountDiscountSetup - __SPLIT__ 2026-05-07 09:41:12,340 - [12148] - src.utils.log - INFO - βœ… All 5 rows inserted successfully into Billing.AccountDiscountSetup in 1 batches - __SPLIT__ 2026-05-07 09:41:12,340 - [12148] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-07 09:41:12,341 - [12148] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceCharges: 6 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-07 09:41:12,664 - [12148] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 6) into Billing.InvoiceCharges - __SPLIT__ 2026-05-07 09:41:13,683 - [12148] - src.utils.log - INFO - βœ… All 6 rows inserted successfully into Billing.InvoiceCharges in 1 batches - __SPLIT__ 2026-05-07 09:41:13,684 - [12148] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-07 09:41:13,684 - [12148] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.DiscountApplied: 5 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-07 09:41:13,990 - [12148] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 5) into Billing.DiscountApplied - __SPLIT__ 2026-05-07 09:41:15,025 - [12148] - src.utils.log - INFO - βœ… All 5 rows inserted successfully into Billing.DiscountApplied in 1 batches - __SPLIT__ 2026-05-07 09:41:15,025 - [12148] - src.utils.log - INFO - Invoice Publish Done - __SPLIT__ 2026-05-07 09:41:15,026 - [12148] - src.utils.log - INFO - Updating Next GenerationDate - __SPLIT__ 2026-05-07 09:41:15,026 - [12148] - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, MAX(NextWorkOrderGenerationDate) AS MaxNextWorkOrderGeneration FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 12148 GROUP BY ServiceSetupId; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-07 09:41:15,334 - [12148] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-07 09:41:15,340 - [12148] - src.utils.log - INFO - πŸ”„ Updating next gen date sequentially: inside update_next_workorder_generation - __SPLIT__ 2026-05-07 09:41:15,482 - [12148] - src.utils.log - INFO - πŸ›  Creating temp table #tbl_545319925d - __SPLIT__ 2026-05-07 09:41:15,769 - [12148] - src.utils.log - INFO - πŸ“Œ Bulk inserting 1 rows into #tbl_545319925d - __SPLIT__ 2026-05-07 09:41:16,063 - [12148] - src.utils.log - INFO - πŸ” Running MERGE update to apply changes - __SPLIT__ 2026-05-07 09:41:16,203 - [12148] - src.utils.log - INFO - βœ” SQL reported affected rows: 1 - __SPLIT__ 2026-05-07 09:41:16,377 - [12148] - src.utils.log - INFO - πŸ” Verified successfully updated 1 rows via #tbl_545319925d - __SPLIT__ 2026-05-07 09:41:16,377 - [12148] - src.utils.log - INFO - πŸŽ‰ Successfully updated NextGenerationDate using temp table #tbl_545319925d - __SPLIT__ 2026-05-07 09:41:16,377 - [12148] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 12148 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-07 09:41:16,657 - [12148] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-07 09:41:16,657 - [12148] - src.utils.log - INFO - Sequential deletion from temp tables begin - __SPLIT__ 2026-05-07 09:41:16,657 - [12148] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId in (2729547, 2729548, 2729549) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-07 09:41:16,959 - [12148] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-07 09:41:16,959 - [12148] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId in (2729547, 2729548, 2729549) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-07 09:41:17,263 - [12148] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-07 09:41:17,263 - [12148] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId in (2729547, 2729548, 2729549) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-07 09:41:17,553 - [12148] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-07 09:41:17,554 - [12148] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId in (2729547, 2729548, 2729549) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-07 09:41:17,872 - [12148] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-07 09:41:17,872 - [12148] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId in (2729547, 2729548, 2729549) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-07 09:41:18,173 - [12148] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-07 09:41:18,174 - [12148] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (2729547, 2729548, 2729549) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-07 09:41:18,466 - [12148] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-07 09:41:18,466 - [12148] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId in (2729547, 2729548, 2729549) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-07 09:41:18,749 - [12148] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-07 09:41:18,749 - [12148] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (2729547, 2729548, 2729549) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-07 09:41:19,066 - [12148] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-07 09:41:19,066 - [12148] - src.utils.log - INFO - Work order published ids: (2729547, 2729548, 2729549) - __SPLIT__ 2026-05-07 09:41:19,066 - [12148] - src.utils.log - INFO - Time took to perform operation in publishing [12148]: 33.28 - __SPLIT__ 2026-05-07 09:41:19,066 - [12148] - src.utils.log - INFO - Publish Completed for GenerateWorkOrderHistoryId: [12148] - __SPLIT__ 2026-05-07 09:41:19,066 - [12148] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-05-07 05:41:19.066' WHERE CompanyId = 135 AND GenerateWorkOrderHistoryId = 12148;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-07 09:41:19,368 - [12148] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-07 10:14:16,715 - 12149 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=12149 - __SPLIT__ 2026-05-07 10:14:16,716 - 12149 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 12149 - __SPLIT__ 2026-05-07 10:14:16,730 - 12149 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-05-07 10:14:16,730 - 12149 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-07 10:14:19,394 - 12149 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-07 10:14:19,394 - 12149 - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-05-07 10:14:19,394 - 12149 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 12149;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-07 10:14:19,682 - 12149 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-07 10:14:19,683 - 12149 - 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 = 12149), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 12149), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 12149 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-05-07 10:14:20,016 - 12149 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-07 10:14:20,016 - 12149 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 12149;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-07 10:14:20,304 - 12149 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-07 10:14:20,308 - 12149 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-05-07 10:14:20,309 - 12149 - 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 = 12805... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-07 10:14:20,603 - 12149 - src.utils.log - INFO - βœ… Fetched 12 rows - __SPLIT__ 2026-05-07 10:14:20,603 - 12149 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-05-07 10:14:20,607 - 12149 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-05-07 10:14:20,608 - 12149 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 23845;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-07 10:14:20,901 - 12149 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-07 10:14:20,901 - 12149 - src.utils.log - INFO - πŸ” Fetching data: select ServiceDate, ServiceSetupId, IsInitial from serviceCore.WorkOrder wo inner join ServiceCore.WorkOrderStatus wos on wo.WoStatusId = wos.WoStatusId where ServiceDate >= '2026-05-07 00:00:00' and ServiceDate <= '2026-06-30 00:00:00' and ServiceSetupId = 23845 and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-07 10:14:21,202 - 12149 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-07 10:14:21,815 - 12149 - src.utils.log - INFO - Generating work orders for setup: 23845 - __SPLIT__ 2026-05-07 10:14:21,838 - 12149 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 1388;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-07 10:14:22,134 - 12149 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-07 10:14:22,142 - 12149 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 1398;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-07 10:14:22,441 - 12149 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-07 10:14:22,479 - 12149 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-05-07 10:14:22,484 - 12149 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=135 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-07 10:14:22,777 - 12149 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-07 10:14:22,780 - 12149 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-05-07 10:14:22,780 - 12149 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-05-07 10:14:22,780 - 12149 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 23845 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-07 10:14:23,105 - 12149 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-07 10:14:23,105 - 12149 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 23845 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-07 10:14:23,402 - 12149 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-07 10:14:23,403 - 12149 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 23845 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-07 10:14:23,709 - 12149 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-07 10:14:23,710 - 12149 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 23845 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-07 10:14:24,007 - 12149 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-07 10:14:24,007 - 12149 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 23845 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-07 10:14:24,305 - 12149 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-07 10:14:24,305 - 12149 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 23845 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-07 10:14:24,612 - 12149 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-07 10:14:24,612 - 12149 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 23845 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-07 10:14:24,914 - 12149 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-07 10:14:24,914 - 12149 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 23845 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-07 10:14:25,224 - 12149 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-07 10:14:25,224 - 12149 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-07 10:14:25,224 - 12149 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 3 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-07 10:14:25,567 - 12149 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-05-07 10:14:26,804 - 12149 - src.utils.log - INFO - βœ… All 3 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-05-07 10:14:26,805 - 12149 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 3 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-05-06 15:39:09.408' and ServiceSetupId = 23845... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-07 10:14:27,124 - 12149 - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-05-07 10:14:27,124 - 12149 - src.utils.log - INFO - Id's of work order inserted to DB: [2729550 2729551 2729552] - __SPLIT__ 2026-05-07 10:14:27,124 - 12149 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 23845;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-07 10:14:27,422 - 12149 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-07 10:14:27,423 - 12149 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-05-07 10:14:27,423 - 12149 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId = 23845... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-07 10:14:27,714 - 12149 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-05-07 10:14:27,714 - 12149 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId = 23845... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-07 10:14:28,011 - 12149 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-05-07 10:14:28,019 - 12149 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId = 23845... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-07 10:14:28,315 - 12149 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-05-07 10:14:28,316 - 12149 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId = 23845... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-07 10:14:28,609 - 12149 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-07 10:14:28,610 - 12149 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId = 23845... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-07 10:14:28,902 - 12149 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-07 10:14:28,903 - 12149 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId = 23845;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-07 10:14:29,190 - 12149 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-05-07 10:14:29,192 - 12149 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId = 23845;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-07 10:14:29,496 - 12149 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-07 10:14:29,497 - 12149 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId = 23845;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-07 10:14:29,806 - 12149 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-07 10:14:29,806 - 12149 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId = 23845;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-07 10:14:30,101 - 12149 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-07 10:14:30,118 - 12149 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-05-07 10:14:30,118 - 12149 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-05-07 10:14:30,118 - 12149 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-05-07 10:14:30,118 - 12149 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.CommunicationPreferencesServiceReportNotification: - __SPLIT__ 2026-05-07 10:14:30,119 - 12149 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-05-07 10:14:30,119 - 12149 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SetupAutoGenerationSourceMapping: - __SPLIT__ 2026-05-07 10:14:30,119 - 12149 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-05-07 10:14:30,119 - 12149 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-07 10:14:30,119 - 12149 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (2729552, 2729550, 2729551) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-07 10:14:30,424 - 12149 - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-05-07 10:14:30,425 - 12149 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationAppliedDiscount: 3 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-07 10:14:30,739 - 12149 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into ServiceCore.WorkOrderAutoGenerationAppliedDiscount - __SPLIT__ 2026-05-07 10:14:31,768 - 12149 - src.utils.log - INFO - βœ… All 3 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationAppliedDiscount in 1 batches - __SPLIT__ 2026-05-07 10:14:31,769 - 12149 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-05-07 10:14:31,769 - 12149 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SubWorkOrderAutoGeneration: - __SPLIT__ 2026-05-07 10:14:31,769 - 12149 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-05-07 10:14:31,769 - 12149 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: - __SPLIT__ 2026-05-07 10:14:31,769 - 12149 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-05-07 10:14:31,769 - 12149 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: - __SPLIT__ 2026-05-07 10:14:31,769 - 12149 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-05-07 10:14:31,769 - 12149 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-07 10:14:31,770 - 12149 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (2729552, 2729550, 2729551) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-07 10:14:32,057 - 12149 - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-05-07 10:14:32,057 - 12149 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationCrews: 3 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-07 10:14:32,376 - 12149 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into ServiceCore.WorkOrderAutoGenerationCrews - __SPLIT__ 2026-05-07 10:14:33,397 - 12149 - src.utils.log - INFO - βœ… All 3 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationCrews in 1 batches - __SPLIT__ 2026-05-07 10:14:33,397 - 12149 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-05-07 10:14:33,397 - 12149 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-07 10:14:33,398 - 12149 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 2729550 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-07 10:14:33,689 - 12149 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-07 10:14:33,690 - 12149 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-07 10:14:34,016 - 12149 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-05-07 10:14:35,055 - 12149 - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-05-07 10:14:35,055 - 12149 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-05-07 10:14:35,055 - 12149 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-07 10:14:35,056 - 12149 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (2729552, 2729551) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-07 10:14:35,368 - 12149 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-05-07 10:14:35,369 - 12149 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 4 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-07 10:14:35,669 - 12149 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 4) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-05-07 10:14:36,713 - 12149 - src.utils.log - INFO - βœ… All 4 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-05-07 10:14:36,713 - 12149 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-05-07 10:14:36,714 - 12149 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 12149;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-07 10:14:37,005 - 12149 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-07 10:14:37,006 - 12149 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-05-07 10:14:37,006 - 12149 - src.utils.log - INFO - Time took to perform operation: 20.29 - __SPLIT__ 2026-05-07 10:14:37,006 - 12149 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 12149;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-07 10:14:37,309 - 12149 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-07 10:14:37,310 - 12149 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET WorkOrderStatusDateTime = '2026-05-07 06:14:37.310' WHERE GenerateWorkOrderHistoryId = 12149;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-07 10:14:37,601 - 12149 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-07 10:14:48,199 - [12149] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[] user_id=122885 company_id=135 project_id=[12149] publish_all=True - __SPLIT__ 2026-05-07 10:14:48,200 - [12149] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[] user_id=122885 company_id=135 project_id=[12149] publish_all=True - __SPLIT__ 2026-05-07 10:14:48,200 - [12149] - src.utils.log - INFO - Sequential Work order publish in progress for GenerateWorkOrderHistoryId: [12149] - __SPLIT__ 2026-05-07 10:14:48,201 - [12149] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-05-07 10:14:48,201 - [12149] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-07 10:14:50,328 - [12149] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-07 10:14:50,328 - [12149] - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-05-07 10:14:50,328 - [12149] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'InProgress' WHERE CompanyId = 135 AND GenerateWorkOrderHistoryId = 12149;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-07 10:14:50,619 - [12149] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-07 10:14:50,619 - [12149] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGeneration woag WHERE woag.GenerateWorkOrderHistoryId = 12149... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-07 10:14:50,920 - [12149] - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-05-07 10:14:50,921 - [12149] - src.utils.log - INFO - Inside get_work_order_table - __SPLIT__ 2026-05-07 10:14:50,921 - [12149] - 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 = 23845 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-07 10:14:51,299 - [12149] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-07 10:14:51,299 - [12149] - 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 = 23845 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-07 10:14:51,649 - [12149] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-07 10:14:51,650 - [12149] - 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 = 23845 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-07 10:14:51,980 - [12149] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-07 10:14:51,984 - [12149] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder,BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 135;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-07 10:14:52,273 - [12149] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-07 10:14:52,273 - [12149] - 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-05-07 10:14:52,570 - [12149] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-05-07 10:14:52,570 - [12149] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder, BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 135; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-07 10:14:52,865 - [12149] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-07 10:14:52,866 - [12149] - 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-05-07 10:14:53,154 - [12149] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-05-07 10:14:53,157 - [12149] - 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 = 23845... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-07 10:14:53,467 - [12149] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-07 10:14:53,470 - [12149] - src.utils.log - INFO - πŸ” Fetching data: SELECT x.CompanyId FROM CRM.CompanyMaster x WHERE CompanyKey = 'Fortive';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-07 10:14:53,758 - [12149] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-07 10:14:53,759 - [12149] - src.utils.log - INFO - πŸ” Fetching data: SELECT CollectionStatus,IsHold,AccountNo FROM CRM.Account a WHERE a.AccountNo = '8327' and a.CompanyId = 124;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-07 10:14:54,056 - [12149] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-07 10:14:54,059 - [12149] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderNo FROM ServiceCore.WorkOrder WHERE WorkOrderNo IN ('165991R', '165992R', '165993R') AND CompanyId = 135 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-07 10:14:54,343 - [12149] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-07 10:14:54,343 - [12149] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrder (skip triggers): 3 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-07 10:14:54,845 - [12149] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into ServiceCore.WorkOrder (triggers skipped) - __SPLIT__ 2026-05-07 10:14:56,061 - [12149] - src.utils.log - INFO - βœ… All 3 rows inserted successfully into ServiceCore.WorkOrder in 1 batches (triggers skipped) - __SPLIT__ 2026-05-07 10:14:56,207 - [12149] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-05-07 10:14:56,209 - [12149] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.ServiceSetup SET IsInitialWoGenerated = 1 WHERE CompanyId = 135 AND ServiceSetupId = 23845;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-07 10:14:56,611 - [12149] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-07 10:14:56,612 - [12149] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkorderId, WorkOrderNo FROM ServiceCore.WorkOrder wo WHERE wo.WorkOrderNo IN ('165991R', '165992R', '165993R') AND wo.AccountNumber = '8327' AND wo.CompanyId = 135 ... (Thread: ThreadPoolExecutor-0_0) - __SPLIT__ 2026-05-07 10:14:56,900 - [12149] - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-05-07 10:14:56,901 - [12149] - src.utils.log - INFO - Sequential fetching temp table records - __SPLIT__ 2026-05-07 10:14:56,901 - [12149] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationServices woag WHERE woag.WorkOrderAutoGenerationId in (2729550, 2729551, 2729552)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-07 10:14:57,202 - [12149] - src.utils.log - INFO - βœ… Fetched 6 rows - __SPLIT__ 2026-05-07 10:14:57,202 - [12149] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SubWorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (2729550, 2729551, 2729552)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-07 10:14:57,494 - [12149] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-07 10:14:57,494 - [12149] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationCrews woag WHERE woag.WorkOrderAutoGenerationId in (2729550, 2729551, 2729552)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-07 10:14:57,786 - [12149] - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-05-07 10:14:57,787 - [12149] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationSalesPersonCommission woag WHERE woag.WorkOrderAutoGenerationId in (2729550, 2729551, 2729552)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-07 10:14:58,068 - [12149] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-07 10:14:58,068 - [12149] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupAutoGenerationSourceMapping woag WHERE woag.WorkOrderAutoGenerationId in (2729550, 2729551, 2729552)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-07 10:14:58,365 - [12149] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-07 10:14:58,366 - [12149] - 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 (2729550, 2729551, 2729552)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-07 10:14:58,669 - [12149] - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-05-07 10:14:58,669 - [12149] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from CRM.LeadNote woag WHERE woag.RefId in (2729550, 2729551, 2729552) and woag.RefType = 'TempWorkorder';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-07 10:14:58,950 - [12149] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-07 10:14:58,950 - [12149] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment woagca WHERE woagca.WorkOrderAutoGenerationId in (2729550, 2729551, 2729552);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-07 10:14:59,242 - [12149] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-07 10:14:59,245 - [12149] - src.utils.log - INFO - Updating temp tables - __SPLIT__ 2026-05-07 10:14:59,258 - [12149] - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyKey FROM Common.CompanyMaster cm WHERE CompanyId = 135;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-07 10:14:59,539 - [12149] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-07 10:14:59,543 - [12149] - src.utils.log - INFO - πŸ” Fetching data: Select DiscountSetupId, [SysName] as DiscountSysName from Common.DiscountSetupMaster WHERE DiscountSetupId IN (1757, 1849) AND CompanyId = 135;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-07 10:14:59,827 - [12149] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-05-07 10:14:59,829 - [12149] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 135 AND EnitityNumberType in ('SubWorkOrder'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-07 10:15:00,120 - [12149] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-07 10:15:00,124 - [12149] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-07 10:15:00,125 - [12149] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishHistory: 3 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-07 10:15:00,474 - [12149] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into ServiceCore.WorkOrderAutoGenerationPublishHistory - __SPLIT__ 2026-05-07 10:15:01,514 - [12149] - src.utils.log - INFO - βœ… All 3 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishHistory in 1 batches - __SPLIT__ 2026-05-07 10:15:01,516 - [12149] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationPublishHistoryId, WorkOrderNo, ServiceSetupId FROM ServiceCore.WorkOrderAutoGenerationPublishHistory WHERE ServiceSetupId = 23845 AND WorkOrderNo IN ('905603', '8796277', '3225540') AND GenerateWorkOrderHistoryId = 12149;... (Thread: ThreadPoolExecutor-1_0) - __SPLIT__ 2026-05-07 10:15:01,833 - [12149] - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-05-07 10:15:01,834 - [12149] - src.utils.log - INFO - 🏁 Final merged rows: 3 - __SPLIT__ 2026-05-07 10:15:01,840 - [12149] - src.utils.log - INFO - Sequential Insertion in work order tables begin - __SPLIT__ 2026-05-07 10:15:01,841 - [12149] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-07 10:15:01,841 - [12149] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderServices: 6 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-07 10:15:02,158 - [12149] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 6) into ServiceCore.WorkOrderServices - __SPLIT__ 2026-05-07 10:15:03,193 - [12149] - src.utils.log - INFO - βœ… All 6 rows inserted successfully into ServiceCore.WorkOrderServices in 1 batches - __SPLIT__ 2026-05-07 10:15:03,193 - [12149] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-07 10:15:03,193 - [12149] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.WorkOrderAppliedDiscount: 3 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-07 10:15:03,513 - [12149] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into ServiceAuto.WorkOrderAppliedDiscount - __SPLIT__ 2026-05-07 10:15:04,564 - [12149] - src.utils.log - INFO - βœ… All 3 rows inserted successfully into ServiceAuto.WorkOrderAppliedDiscount in 1 batches - __SPLIT__ 2026-05-07 10:15:04,565 - [12149] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderSalesPersonCommission: - __SPLIT__ 2026-05-07 10:15:04,565 - [12149] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderCommissionAdjustment: - __SPLIT__ 2026-05-07 10:15:04,565 - [12149] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-07 10:15:04,565 - [12149] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderCrew: 3 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-07 10:15:04,892 - [12149] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into ServiceCore.WorkOrderCrew - __SPLIT__ 2026-05-07 10:15:05,955 - [12149] - src.utils.log - INFO - βœ… All 3 rows inserted successfully into ServiceCore.WorkOrderCrew in 1 batches - __SPLIT__ 2026-05-07 10:15:05,956 - [12149] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkorderSourceMapping: - __SPLIT__ 2026-05-07 10:15:05,956 - [12149] - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-05-07 10:15:05,956 - [12149] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-07 10:15:05,956 - [12149] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishServices: 6 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-07 10:15:06,271 - [12149] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 6) into ServiceCore.WorkOrderAutoGenerationPublishServices - __SPLIT__ 2026-05-07 10:15:07,366 - [12149] - src.utils.log - INFO - βœ… All 6 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishServices in 1 batches - __SPLIT__ 2026-05-07 10:15:07,366 - [12149] - 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 = 23845... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-07 10:15:07,655 - [12149] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-07 10:15:07,661 - [12149] - src.utils.log - INFO - Size of Transaction: 3 - __SPLIT__ 2026-05-07 10:15:07,662 - [12149] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 3 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-07 10:15:08,129 - [12149] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-05-07 10:15:09,181 - [12149] - src.utils.log - INFO - βœ… All 3 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-05-07 10:15:09,328 - [12149] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-05-07 10:15:09,328 - [12149] - 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-05-07 06:15:07.657';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-07 10:15:09,675 - [12149] - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-05-07 10:15:09,678 - [12149] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 23845;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-07 10:15:09,973 - [12149] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-07 10:15:09,981 - [12149] - src.utils.log - INFO - πŸ“ Executing: UPDATE Billing.[Transaction] SET ModifiedBy = NULL WHERE ModifiedBy IN (12345678910,12345678911,12345678912) AND CreatedDate = '2026-05-07 06:15:07.657'; ... (Thread: ThreadPoolExecutor-2_0) - __SPLIT__ 2026-05-07 10:15:10,375 - [12149] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-07 10:15:10,381 - [12149] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-07 10:15:10,381 - [12149] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 3 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-07 10:15:10,692 - [12149] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into Billing.Invoice - __SPLIT__ 2026-05-07 10:15:11,710 - [12149] - src.utils.log - INFO - βœ… All 3 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-05-07 10:15:11,711 - [12149] - src.utils.log - INFO - πŸ” Fetching data: SELECT InvoiceId, WorkOrderNo FROM Billing.Invoice i WHERE i.WorkOrderNo in ('165991R', '165993R', '165992R')... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-07 10:15:12,028 - [12149] - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-05-07 10:15:12,038 - [12149] - 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 = 23845 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-07 10:15:12,334 - [12149] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-05-07 10:15:12,334 - [12149] - 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 = 23845 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-07 10:15:12,637 - [12149] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-05-07 10:15:12,637 - [12149] - 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 = 23845 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-07 10:15:12,926 - [12149] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-07 10:15:12,926 - [12149] - 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 = 23845 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-07 10:15:13,243 - [12149] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-07 10:15:13,257 - [12149] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 23845;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-07 10:15:13,541 - [12149] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-07 10:15:13,547 - [12149] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId, AppliedDiscountAmt as AppliedDiscountAmount,IsActive ,ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 23845;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-07 10:15:13,843 - [12149] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-05-07 10:15:13,854 - [12149] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId,IsActive,DiscountAmount, IsDiscountPercent,DiscountPercent,DiscountDescription , ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 23845;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-07 10:15:14,136 - [12149] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-05-07 10:15:14,146 - [12149] - src.utils.log - INFO - Sequential Insertion in invoice tables begin - __SPLIT__ 2026-05-07 10:15:14,146 - [12149] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-07 10:15:14,146 - [12149] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.AccountDiscountSetup: 3 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-07 10:15:14,458 - [12149] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into Billing.AccountDiscountSetup - __SPLIT__ 2026-05-07 10:15:15,485 - [12149] - src.utils.log - INFO - βœ… All 3 rows inserted successfully into Billing.AccountDiscountSetup in 1 batches - __SPLIT__ 2026-05-07 10:15:15,486 - [12149] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-07 10:15:15,486 - [12149] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceCharges: 6 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-07 10:15:15,802 - [12149] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 6) into Billing.InvoiceCharges - __SPLIT__ 2026-05-07 10:15:16,828 - [12149] - src.utils.log - INFO - βœ… All 6 rows inserted successfully into Billing.InvoiceCharges in 1 batches - __SPLIT__ 2026-05-07 10:15:16,829 - [12149] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-07 10:15:16,829 - [12149] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.DiscountApplied: 3 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-07 10:15:17,158 - [12149] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into Billing.DiscountApplied - __SPLIT__ 2026-05-07 10:15:18,213 - [12149] - src.utils.log - INFO - βœ… All 3 rows inserted successfully into Billing.DiscountApplied in 1 batches - __SPLIT__ 2026-05-07 10:15:18,214 - [12149] - src.utils.log - INFO - Invoice Publish Done - __SPLIT__ 2026-05-07 10:15:18,214 - [12149] - src.utils.log - INFO - Updating Next GenerationDate - __SPLIT__ 2026-05-07 10:15:18,214 - [12149] - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, MAX(NextWorkOrderGenerationDate) AS MaxNextWorkOrderGeneration FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 12149 GROUP BY ServiceSetupId; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-07 10:15:18,500 - [12149] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-07 10:15:18,506 - [12149] - src.utils.log - INFO - πŸ”„ Updating next gen date sequentially: inside update_next_workorder_generation - __SPLIT__ 2026-05-07 10:15:18,651 - [12149] - src.utils.log - INFO - πŸ›  Creating temp table #tbl_702c483c26 - __SPLIT__ 2026-05-07 10:15:18,939 - [12149] - src.utils.log - INFO - πŸ“Œ Bulk inserting 1 rows into #tbl_702c483c26 - __SPLIT__ 2026-05-07 10:15:19,225 - [12149] - src.utils.log - INFO - πŸ” Running MERGE update to apply changes - __SPLIT__ 2026-05-07 10:15:19,400 - [12149] - src.utils.log - INFO - βœ” SQL reported affected rows: 1 - __SPLIT__ 2026-05-07 10:15:19,553 - [12149] - src.utils.log - INFO - πŸ” Verified successfully updated 1 rows via #tbl_702c483c26 - __SPLIT__ 2026-05-07 10:15:19,553 - [12149] - src.utils.log - INFO - πŸŽ‰ Successfully updated NextGenerationDate using temp table #tbl_702c483c26 - __SPLIT__ 2026-05-07 10:15:19,553 - [12149] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 12149 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-07 10:15:19,840 - [12149] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-07 10:15:19,840 - [12149] - src.utils.log - INFO - Sequential deletion from temp tables begin - __SPLIT__ 2026-05-07 10:15:19,840 - [12149] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId in (2729550, 2729551, 2729552) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-07 10:15:20,173 - [12149] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-07 10:15:20,174 - [12149] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId in (2729550, 2729551, 2729552) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-07 10:15:20,470 - [12149] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-07 10:15:20,470 - [12149] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId in (2729550, 2729551, 2729552) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-07 10:15:20,762 - [12149] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-07 10:15:20,762 - [12149] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId in (2729550, 2729551, 2729552) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-07 10:15:21,090 - [12149] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-07 10:15:21,090 - [12149] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId in (2729550, 2729551, 2729552) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-07 10:15:21,397 - [12149] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-07 10:15:21,398 - [12149] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (2729550, 2729551, 2729552) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-07 10:15:21,684 - [12149] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-07 10:15:21,685 - [12149] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId in (2729550, 2729551, 2729552) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-07 10:15:21,972 - [12149] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-07 10:15:21,972 - [12149] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (2729550, 2729551, 2729552) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-07 10:15:22,293 - [12149] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-07 10:15:22,293 - [12149] - src.utils.log - INFO - Work order published ids: (2729550, 2729551, 2729552) - __SPLIT__ 2026-05-07 10:15:22,293 - [12149] - src.utils.log - INFO - Time took to perform operation in publishing [12149]: 34.09 - __SPLIT__ 2026-05-07 10:15:22,293 - [12149] - src.utils.log - INFO - Publish Completed for GenerateWorkOrderHistoryId: [12149] - __SPLIT__ 2026-05-07 10:15:22,293 - [12149] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-05-07 06:15:22.293' WHERE CompanyId = 135 AND GenerateWorkOrderHistoryId = 12149;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-07 10:15:22,587 - [12149] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-08 03:43:38,468 - 12152 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=12152 - __SPLIT__ 2026-05-08 03:43:38,469 - 12152 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 12152 - __SPLIT__ 2026-05-08 03:43:38,470 - 12152 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-05-08 03:43:38,470 - 12152 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 03:43:40,488 - 12152 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-08 03:43:40,488 - 12152 - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-05-08 03:43:40,489 - 12152 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 12152;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 03:43:40,795 - 12152 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-08 03:43:40,795 - 12152 - 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 = 12152), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 12152), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 12152 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-05-08 03:43:41,118 - 12152 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-05-08 03:43:41,119 - 12152 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 12152;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 03:43:41,407 - 12152 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-08 03:43:41,410 - 12152 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-05-08 03:43:41,411 - 12152 - 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 = 12805... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 03:43:41,699 - 12152 - src.utils.log - INFO - βœ… Fetched 12 rows - __SPLIT__ 2026-05-08 03:43:41,699 - 12152 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-05-08 03:43:41,702 - 12152 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-05-08 03:43:41,703 - 12152 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId in (23832, 23841);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 03:43:41,996 - 12152 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-08 03:43:41,997 - 12152 - src.utils.log - INFO - πŸ” Fetching data: select ServiceDate, ServiceSetupId,IsInitial from serviceCore.WorkOrder wo inner join ServiceCore.WorkOrderStatus wos on wo.WoStatusId = wos.WoStatusId where ServiceDate >= '2026-05-08 00:00:00' and ServiceDate <= '2026-06-30 00:00:00' and ServiceSetupId in (23832, 23841) and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 03:43:42,298 - 12152 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-08 03:43:42,898 - 12152 - src.utils.log - INFO - Generating work orders for setup: 23832 - __SPLIT__ 2026-05-08 03:43:42,920 - 12152 - src.utils.log - INFO - Generating work orders for setup: 23841 - __SPLIT__ 2026-05-08 03:43:42,934 - 12152 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 1388.0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 03:43:43,226 - 12152 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-08 03:43:43,233 - 12152 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId in (1033, 1427);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 03:43:43,534 - 12152 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-05-08 03:43:43,572 - 12152 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-05-08 03:43:43,577 - 12152 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=135 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 03:43:43,870 - 12152 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-08 03:43:43,873 - 12152 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-05-08 03:43:43,873 - 12152 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-05-08 03:43:43,873 - 12152 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (23832, 23841) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 03:43:44,172 - 12152 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-08 03:43:44,172 - 12152 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (23832, 23841) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 03:43:44,469 - 12152 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-08 03:43:44,469 - 12152 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (23832, 23841) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 03:43:44,767 - 12152 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-08 03:43:44,767 - 12152 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (23832, 23841) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 03:43:45,069 - 12152 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-08 03:43:45,069 - 12152 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (23832, 23841) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 03:43:45,366 - 12152 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-08 03:43:45,367 - 12152 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (23832, 23841) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 03:43:45,664 - 12152 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-08 03:43:45,664 - 12152 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (23832, 23841) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 03:43:45,956 - 12152 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-08 03:43:45,956 - 12152 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (23832, 23841) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 03:43:46,264 - 12152 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-08 03:43:46,264 - 12152 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-08 03:43:46,264 - 12152 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 5 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 03:43:46,616 - 12152 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 5) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-05-08 03:43:47,846 - 12152 - src.utils.log - INFO - βœ… All 5 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-05-08 03:43:47,847 - 12152 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 5 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-05-06 15:39:09.408' and ServiceSetupId in (23832, 23841)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 03:43:48,145 - 12152 - src.utils.log - INFO - βœ… Fetched 5 rows - __SPLIT__ 2026-05-08 03:43:48,146 - 12152 - src.utils.log - INFO - Id's of work order inserted to DB: [2729567 2729568 2729569 2729570 2729571] - __SPLIT__ 2026-05-08 03:43:48,146 - 12152 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId in (23832, 23841);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 03:43:48,436 - 12152 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-08 03:43:48,437 - 12152 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-05-08 03:43:48,437 - 12152 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId in (23832, 23841)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 03:43:48,729 - 12152 - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-05-08 03:43:48,730 - 12152 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId in (23832, 23841)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 03:43:49,022 - 12152 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-05-08 03:43:49,029 - 12152 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId in (23832, 23841)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 03:43:49,325 - 12152 - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-05-08 03:43:49,326 - 12152 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId in (23832, 23841)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 03:43:49,611 - 12152 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-08 03:43:49,611 - 12152 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId in (23832, 23841)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 03:43:49,898 - 12152 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-08 03:43:49,898 - 12152 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId in (23832, 23841);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 03:43:50,185 - 12152 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-08 03:43:50,186 - 12152 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId in (23832, 23841);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 03:43:50,473 - 12152 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-08 03:43:50,473 - 12152 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId in (23832, 23841);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 03:43:50,786 - 12152 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-08 03:43:50,786 - 12152 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId in (23832, 23841);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 03:43:51,073 - 12152 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-08 03:43:51,086 - 12152 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-05-08 03:43:51,086 - 12152 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-05-08 03:43:51,086 - 12152 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-05-08 03:43:51,086 - 12152 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.CommunicationPreferencesServiceReportNotification: - __SPLIT__ 2026-05-08 03:43:51,086 - 12152 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-05-08 03:43:51,086 - 12152 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SetupAutoGenerationSourceMapping: - __SPLIT__ 2026-05-08 03:43:51,086 - 12152 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-05-08 03:43:51,087 - 12152 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationAppliedDiscount: - __SPLIT__ 2026-05-08 03:43:51,087 - 12152 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-05-08 03:43:51,087 - 12152 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SubWorkOrderAutoGeneration: - __SPLIT__ 2026-05-08 03:43:51,087 - 12152 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-05-08 03:43:51,087 - 12152 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: - __SPLIT__ 2026-05-08 03:43:51,087 - 12152 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-05-08 03:43:51,087 - 12152 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: - __SPLIT__ 2026-05-08 03:43:51,087 - 12152 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-05-08 03:43:51,087 - 12152 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-08 03:43:51,087 - 12152 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (2729568, 2729569, 2729570, 2729571, 2729567) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 03:43:51,375 - 12152 - src.utils.log - INFO - βœ… Fetched 5 rows - __SPLIT__ 2026-05-08 03:43:51,376 - 12152 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationCrews: 5 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 03:43:51,697 - 12152 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 5) into ServiceCore.WorkOrderAutoGenerationCrews - __SPLIT__ 2026-05-08 03:43:52,796 - 12152 - src.utils.log - INFO - βœ… All 5 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationCrews in 1 batches - __SPLIT__ 2026-05-08 03:43:52,796 - 12152 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-05-08 03:43:52,796 - 12152 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-08 03:43:52,796 - 12152 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 2729567 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 03:43:53,083 - 12152 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-08 03:43:53,084 - 12152 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 03:43:53,404 - 12152 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-05-08 03:43:54,439 - 12152 - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-05-08 03:43:54,439 - 12152 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-05-08 03:43:54,439 - 12152 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-08 03:43:54,440 - 12152 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (2729568, 2729569, 2729570, 2729571) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 03:43:54,731 - 12152 - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-05-08 03:43:54,732 - 12152 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 8 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 03:43:55,022 - 12152 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 8) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-05-08 03:43:56,046 - 12152 - src.utils.log - INFO - βœ… All 8 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-05-08 03:43:56,047 - 12152 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-05-08 03:43:56,047 - 12152 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 12152;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 03:43:56,338 - 12152 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-08 03:43:56,339 - 12152 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-05-08 03:43:56,339 - 12152 - src.utils.log - INFO - Time took to perform operation: 17.87 - __SPLIT__ 2026-05-08 03:43:56,339 - 12152 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 12152;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 03:43:56,676 - 12152 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-08 03:43:56,676 - 12152 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET WorkOrderStatusDateTime = '2026-05-07 23:43:56.676' WHERE GenerateWorkOrderHistoryId = 12152;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 03:43:56,963 - 12152 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-08 08:47:39,103 - 124383 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=124383 - __SPLIT__ 2026-05-08 08:47:39,104 - 124383 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 124383 - __SPLIT__ 2026-05-08 08:47:39,104 - 124383 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-05-08 08:47:39,104 - 124383 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 08:47:41,168 - 124383 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-08 08:47:41,168 - 124383 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-05-08 08:47:41,169 - 124383 - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-05-08 08:47:41,169 - 124383 - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-05-08 08:47:41,169 - 124383 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 124383;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 08:47:43,153 - 124383 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-08 08:47:43,154 - 124383 - 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 = 124383), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 124383), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 124383 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-05-08 08:47:43,536 - 124383 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-08 08:47:43,536 - 124383 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 124383;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 08:47:43,816 - 124383 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-08 08:47:43,819 - 124383 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-05-08 08:47:43,820 - 124383 - 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 = 14494... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 08:47:44,108 - 124383 - src.utils.log - INFO - βœ… Fetched 6 rows - __SPLIT__ 2026-05-08 08:47:44,108 - 124383 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-05-08 08:47:44,111 - 124383 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-05-08 08:47:44,111 - 124383 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150287;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 08:47:44,391 - 124383 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-08 08:47:44,391 - 124383 - src.utils.log - INFO - πŸ” Fetching data: select ServiceDate, ServiceSetupId, IsInitial from serviceCore.WorkOrder wo inner join ServiceCore.WorkOrderStatus wos on wo.WoStatusId = wos.WoStatusId where ServiceDate >= '2026-05-08 00:00:00' and ServiceDate <= '2028-05-31 00:00:00' and ServiceSetupId = 150287 and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 08:47:44,706 - 124383 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-08 08:47:45,282 - 124383 - src.utils.log - INFO - Generating work orders for setup: 150287 - __SPLIT__ 2026-05-08 08:47:45,309 - 124383 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 11428;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 08:47:45,585 - 124383 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-08 08:47:45,626 - 124383 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-05-08 08:47:45,631 - 124383 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=133 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 08:47:45,908 - 124383 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-08 08:47:45,910 - 124383 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-05-08 08:47:45,910 - 124383 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-05-08 08:47:45,910 - 124383 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150287 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 08:47:48,094 - 124383 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-08 08:47:48,094 - 124383 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150287 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 08:47:48,545 - 124383 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-08 08:47:48,545 - 124383 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150287 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 08:47:48,842 - 124383 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-08 08:47:48,843 - 124383 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150287 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 08:47:49,268 - 124383 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-08 08:47:49,268 - 124383 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150287 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 08:47:49,594 - 124383 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-08 08:47:49,594 - 124383 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150287 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 08:47:49,964 - 124383 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-08 08:47:49,964 - 124383 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150287 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 08:47:50,260 - 124383 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-08 08:47:50,261 - 124383 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150287 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 08:47:50,592 - 124383 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-08 08:47:50,592 - 124383 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-08 08:47:50,592 - 124383 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 4 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 08:47:50,935 - 124383 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 4) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-05-08 08:47:52,214 - 124383 - src.utils.log - INFO - βœ… All 4 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-05-08 08:47:52,215 - 124383 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 4 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-05-06 15:39:09.403' and ServiceSetupId = 150287... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 08:47:52,508 - 124383 - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-05-08 08:47:52,509 - 124383 - src.utils.log - INFO - Id's of work order inserted to DB: [3673137 3673138 3673139 3673140] - __SPLIT__ 2026-05-08 08:47:52,509 - 124383 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150287;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 08:47:52,785 - 124383 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-08 08:47:52,785 - 124383 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-05-08 08:47:52,785 - 124383 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId = 150287... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 08:47:53,064 - 124383 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-08 08:47:53,065 - 124383 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId = 150287... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 08:47:53,343 - 124383 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-08 08:47:53,351 - 124383 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId = 150287... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 08:47:53,636 - 124383 - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-05-08 08:47:53,637 - 124383 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId = 150287... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 08:47:53,914 - 124383 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-08 08:47:53,915 - 124383 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId = 150287... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 08:47:54,195 - 124383 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-08 08:47:54,196 - 124383 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId = 150287;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 08:47:54,474 - 124383 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-08 08:47:54,475 - 124383 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId = 150287;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 08:47:54,751 - 124383 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-08 08:47:54,752 - 124383 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId = 150287;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 08:47:55,864 - 124383 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-08 08:47:55,864 - 124383 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId = 150287;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 08:47:56,143 - 124383 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-08 08:47:56,160 - 124383 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-05-08 08:47:56,160 - 124383 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-05-08 08:47:56,160 - 124383 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-05-08 08:47:56,160 - 124383 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.CommunicationPreferencesServiceReportNotification: - __SPLIT__ 2026-05-08 08:47:56,160 - 124383 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-05-08 08:47:56,160 - 124383 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-08 08:47:56,161 - 124383 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ('3673137', '3673140', '3673139', '3673138') ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 08:47:56,437 - 124383 - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-05-08 08:47:56,438 - 124383 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.SetupAutoGenerationSourceMapping: 0 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 08:47:56,739 - 124383 - src.utils.log - INFO - βœ… All 0 rows inserted successfully into ServiceCore.SetupAutoGenerationSourceMapping in 0 batches - __SPLIT__ 2026-05-08 08:47:56,739 - 124383 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-05-08 08:47:56,739 - 124383 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationAppliedDiscount: - __SPLIT__ 2026-05-08 08:47:56,739 - 124383 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-05-08 08:47:56,739 - 124383 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SubWorkOrderAutoGeneration: - __SPLIT__ 2026-05-08 08:47:56,739 - 124383 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-05-08 08:47:56,739 - 124383 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: - __SPLIT__ 2026-05-08 08:47:56,740 - 124383 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-05-08 08:47:56,740 - 124383 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: - __SPLIT__ 2026-05-08 08:47:56,740 - 124383 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-05-08 08:47:56,740 - 124383 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-08 08:47:56,740 - 124383 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3673137, 3673138, 3673139, 3673140) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 08:47:57,016 - 124383 - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-05-08 08:47:57,017 - 124383 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationCrews: 7 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 08:47:57,319 - 124383 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 7) into ServiceCore.WorkOrderAutoGenerationCrews - __SPLIT__ 2026-05-08 08:47:58,314 - 124383 - src.utils.log - INFO - βœ… All 7 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationCrews in 1 batches - __SPLIT__ 2026-05-08 08:47:58,315 - 124383 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-05-08 08:47:58,315 - 124383 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-08 08:47:58,315 - 124383 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 3673137 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 08:47:58,592 - 124383 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-08 08:47:58,593 - 124383 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 08:47:58,900 - 124383 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-05-08 08:47:59,890 - 124383 - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-05-08 08:47:59,890 - 124383 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-05-08 08:47:59,891 - 124383 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-08 08:47:59,891 - 124383 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3673138, 3673139, 3673140) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 08:48:00,166 - 124383 - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-05-08 08:48:00,167 - 124383 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 3 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 08:48:00,451 - 124383 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-05-08 08:48:01,433 - 124383 - src.utils.log - INFO - βœ… All 3 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-05-08 08:48:01,433 - 124383 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-05-08 08:48:01,433 - 124383 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 124383;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 08:48:01,709 - 124383 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-08 08:48:01,709 - 124383 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-05-08 08:48:01,709 - 124383 - src.utils.log - INFO - Time took to perform operation: 22.61 - __SPLIT__ 2026-05-08 08:48:01,709 - 124383 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 124383;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 08:48:01,985 - 124383 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-08 08:48:01,985 - 124383 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET WorkOrderStatusDateTime = '2026-05-08 04:48:01.985' WHERE GenerateWorkOrderHistoryId = 124383;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 08:48:02,263 - 124383 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-08 08:49:16,566 - [124383] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[3673137, 3673138] user_id=43135 company_id=133 project_id=[124383] publish_all=False - __SPLIT__ 2026-05-08 08:49:16,567 - [124383] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[3673137, 3673138] user_id=43135 company_id=133 project_id=[124383] publish_all=False - __SPLIT__ 2026-05-08 08:49:16,567 - [124383] - src.utils.log - INFO - Sequential Work order publish in progress for GenerateWorkOrderHistoryId: [124383] - __SPLIT__ 2026-05-08 08:49:16,568 - [124383] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-05-08 08:49:16,569 - [124383] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 08:49:18,616 - [124383] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-08 08:49:18,617 - [124383] - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-05-08 08:49:18,617 - [124383] - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-05-08 08:49:18,618 - [124383] - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-05-08 08:49:18,618 - [124383] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'InProgress' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124383;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 08:49:21,176 - [124383] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-08 08:49:21,176 - [124383] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (3673137, 3673138)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 08:49:21,462 - [124383] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-05-08 08:49:21,462 - [124383] - src.utils.log - INFO - Inside get_work_order_table - __SPLIT__ 2026-05-08 08:49:21,462 - [124383] - 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 = 150287 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 08:49:21,755 - [124383] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-08 08:49:21,755 - [124383] - 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 = 150287 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 08:49:22,047 - [124383] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-08 08:49:22,048 - [124383] - 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 = 150287 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 08:49:22,346 - [124383] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-08 08:49:22,350 - [124383] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder,BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 08:49:22,633 - [124383] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-08 08:49:22,633 - [124383] - 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-05-08 08:49:22,917 - [124383] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-05-08 08:49:22,917 - [124383] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder, BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 08:49:23,197 - [124383] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-08 08:49:23,198 - [124383] - 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-05-08 08:49:23,483 - [124383] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-08 08:49:23,483 - [124383] - 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-05-08 08:49:23,769 - [124383] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-08 08:49:23,773 - [124383] - 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 = 150287... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 08:49:24,062 - [124383] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-08 08:49:24,064 - [124383] - src.utils.log - INFO - πŸ” Fetching data: SELECT x.CompanyId FROM CRM.CompanyMaster x WHERE CompanyKey = 'abcdallas';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 08:49:24,346 - [124383] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-08 08:49:24,346 - [124383] - src.utils.log - INFO - πŸ” Fetching data: SELECT CollectionStatus,IsHold,AccountNo FROM CRM.Account a WHERE a.AccountNo = '14831' and a.CompanyId = 121;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 08:49:24,629 - [124383] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-08 08:49:24,631 - [124383] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderNo FROM ServiceCore.WorkOrder WHERE WorkOrderNo IN ('1419346', '1419347') AND CompanyId = 133 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 08:49:24,921 - [124383] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-08 08:49:24,921 - [124383] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrder (skip triggers): 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 08:49:25,401 - [124383] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrder (triggers skipped) - __SPLIT__ 2026-05-08 08:49:26,812 - [124383] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrder in 1 batches (triggers skipped) - __SPLIT__ 2026-05-08 08:49:26,951 - [124383] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-05-08 08:49:26,953 - [124383] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.ServiceSetup SET IsInitialWoGenerated = 1 WHERE CompanyId = 133 AND ServiceSetupId = 150287;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 08:49:27,239 - [124383] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-08 08:49:27,240 - [124383] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkorderId, WorkOrderNo FROM ServiceCore.WorkOrder wo WHERE wo.WorkOrderNo IN ('1419346', '1419347') AND wo.AccountNumber = '14831' AND wo.CompanyId = 133 ... (Thread: ThreadPoolExecutor-0_0) - __SPLIT__ 2026-05-08 08:49:27,535 - [124383] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-05-08 08:49:27,536 - [124383] - src.utils.log - INFO - Sequential fetching temp table records - __SPLIT__ 2026-05-08 08:49:27,536 - [124383] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationServices woag WHERE woag.WorkOrderAutoGenerationId in (3673137, 3673138)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 08:49:28,332 - [124383] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-05-08 08:49:28,333 - [124383] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SubWorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (3673137, 3673138)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 08:49:28,618 - [124383] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-08 08:49:28,619 - [124383] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationCrews woag WHERE woag.WorkOrderAutoGenerationId in (3673137, 3673138)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 08:49:29,068 - [124383] - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-05-08 08:49:29,068 - [124383] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationSalesPersonCommission woag WHERE woag.WorkOrderAutoGenerationId in (3673137, 3673138)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 08:49:29,351 - [124383] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-08 08:49:29,351 - [124383] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupAutoGenerationSourceMapping woag WHERE woag.WorkOrderAutoGenerationId in (3673137, 3673138)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 08:49:29,635 - [124383] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-08 08:49:29,635 - [124383] - 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 (3673137, 3673138)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 08:49:30,257 - [124383] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-08 08:49:30,258 - [124383] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from CRM.LeadNote woag WHERE woag.RefId in (3673137, 3673138) and woag.RefType = 'TempWorkorder';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 08:49:30,546 - [124383] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-08 08:49:30,547 - [124383] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment woagca WHERE woagca.WorkOrderAutoGenerationId in (3673137, 3673138);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 08:49:30,828 - [124383] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-08 08:49:30,831 - [124383] - src.utils.log - INFO - Updating temp tables - __SPLIT__ 2026-05-08 08:49:30,843 - [124383] - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyKey FROM Common.CompanyMaster cm WHERE CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 08:49:31,124 - [124383] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-08 08:49:31,125 - [124383] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 133 AND EnitityNumberType in ('SubWorkOrder'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 08:49:31,406 - [124383] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-08 08:49:31,410 - [124383] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-08 08:49:31,410 - [124383] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishHistory: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 08:49:31,740 - [124383] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationPublishHistory - __SPLIT__ 2026-05-08 08:49:32,835 - [124383] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishHistory in 1 batches - __SPLIT__ 2026-05-08 08:49:32,836 - [124383] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationPublishHistoryId, WorkOrderNo, ServiceSetupId FROM ServiceCore.WorkOrderAutoGenerationPublishHistory WHERE ServiceSetupId = 150287 AND WorkOrderNo IN ('583416', '7514651') AND GenerateWorkOrderHistoryId = 124383;... (Thread: ThreadPoolExecutor-1_0) - __SPLIT__ 2026-05-08 08:49:35,381 - [124383] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-05-08 08:49:35,382 - [124383] - src.utils.log - INFO - 🏁 Final merged rows: 2 - __SPLIT__ 2026-05-08 08:49:35,388 - [124383] - src.utils.log - INFO - Sequential Insertion in work order tables begin - __SPLIT__ 2026-05-08 08:49:35,388 - [124383] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-08 08:49:35,388 - [124383] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderServices: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 08:49:35,702 - [124383] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderServices - __SPLIT__ 2026-05-08 08:49:36,767 - [124383] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderServices in 1 batches - __SPLIT__ 2026-05-08 08:49:36,767 - [124383] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderAppliedDiscount: - __SPLIT__ 2026-05-08 08:49:36,768 - [124383] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderSalesPersonCommission: - __SPLIT__ 2026-05-08 08:49:36,768 - [124383] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderCommissionAdjustment: - __SPLIT__ 2026-05-08 08:49:36,768 - [124383] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-08 08:49:36,768 - [124383] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderCrew: 3 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 08:49:37,079 - [124383] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into ServiceCore.WorkOrderCrew - __SPLIT__ 2026-05-08 08:49:38,101 - [124383] - src.utils.log - INFO - βœ… All 3 rows inserted successfully into ServiceCore.WorkOrderCrew in 1 batches - __SPLIT__ 2026-05-08 08:49:38,101 - [124383] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkorderSourceMapping: - __SPLIT__ 2026-05-08 08:49:38,101 - [124383] - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-05-08 08:49:38,101 - [124383] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-08 08:49:38,101 - [124383] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishServices: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 08:49:38,414 - [124383] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationPublishServices - __SPLIT__ 2026-05-08 08:49:39,425 - [124383] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishServices in 1 batches - __SPLIT__ 2026-05-08 08:49:39,426 - [124383] - 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 = 150287... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 08:49:39,706 - [124383] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-08 08:49:39,713 - [124383] - src.utils.log - INFO - Size of Transaction: 2 - __SPLIT__ 2026-05-08 08:49:39,714 - [124383] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 08:49:40,162 - [124383] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-05-08 08:49:41,228 - [124383] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-05-08 08:49:41,368 - [124383] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-05-08 08:49:41,368 - [124383] - 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-05-08 04:49:39.708';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 08:49:48,329 - [124383] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-05-08 08:49:48,332 - [124383] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150287;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 08:49:48,616 - [124383] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-08 08:49:48,624 - [124383] - src.utils.log - INFO - πŸ“ Executing: UPDATE Billing.[Transaction] SET ModifiedBy = NULL WHERE ModifiedBy IN (12345678910,12345678911) AND CreatedDate = '2026-05-08 04:49:39.708'; ... (Thread: ThreadPoolExecutor-2_0) - __SPLIT__ 2026-05-08 08:49:49,108 - [124383] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-08 08:49:49,113 - [124383] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-08 08:49:49,113 - [124383] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 08:49:49,428 - [124383] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.Invoice - __SPLIT__ 2026-05-08 08:49:50,499 - [124383] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-05-08 08:49:50,500 - [124383] - src.utils.log - INFO - πŸ” Fetching data: SELECT InvoiceId, WorkOrderNo FROM Billing.Invoice i WHERE i.WorkOrderNo in ('1419346', '1419347')... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 08:49:52,073 - [124383] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-05-08 08:49:52,082 - [124383] - 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 = 150287 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 08:49:52,367 - [124383] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-08 08:49:52,367 - [124383] - 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 = 150287 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 08:49:52,654 - [124383] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-08 08:49:52,654 - [124383] - 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 = 150287 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 08:49:52,939 - [124383] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-08 08:49:52,939 - [124383] - 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 = 150287 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 08:49:53,223 - [124383] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-08 08:49:53,237 - [124383] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150287;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 08:49:53,518 - [124383] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-08 08:49:53,523 - [124383] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId, AppliedDiscountAmt as AppliedDiscountAmount,IsActive ,ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 150287;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 08:49:53,806 - [124383] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-08 08:49:53,809 - [124383] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId,IsActive,DiscountAmount, IsDiscountPercent,DiscountPercent,DiscountDescription , ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 150287;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 08:49:54,091 - [124383] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-08 08:49:54,091 - [124383] - src.utils.log - INFO - Sequential Insertion in invoice tables begin - __SPLIT__ 2026-05-08 08:49:54,091 - [124383] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.AccountDiscountSetup: - __SPLIT__ 2026-05-08 08:49:54,091 - [124383] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-08 08:49:54,091 - [124383] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceCharges: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 08:49:54,405 - [124383] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.InvoiceCharges - __SPLIT__ 2026-05-08 08:49:55,410 - [124383] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.InvoiceCharges in 1 batches - __SPLIT__ 2026-05-08 08:49:55,410 - [124383] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.DiscountApplied: - __SPLIT__ 2026-05-08 08:49:55,410 - [124383] - src.utils.log - INFO - Invoice Publish Done - __SPLIT__ 2026-05-08 08:49:55,411 - [124383] - src.utils.log - INFO - Updating Next GenerationDate - __SPLIT__ 2026-05-08 08:49:55,411 - [124383] - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, MAX(NextWorkOrderGenerationDate) AS MaxNextWorkOrderGeneration FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 124383 GROUP BY ServiceSetupId; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 08:49:55,709 - [124383] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-08 08:49:55,715 - [124383] - src.utils.log - INFO - πŸ”„ Updating next gen date sequentially: inside update_next_workorder_generation - __SPLIT__ 2026-05-08 08:49:55,856 - [124383] - src.utils.log - INFO - πŸ›  Creating temp table #tbl_48d81dbe4d - __SPLIT__ 2026-05-08 08:49:56,138 - [124383] - src.utils.log - INFO - πŸ“Œ Bulk inserting 1 rows into #tbl_48d81dbe4d - __SPLIT__ 2026-05-08 08:49:56,417 - [124383] - src.utils.log - INFO - πŸ” Running MERGE update to apply changes - __SPLIT__ 2026-05-08 08:49:56,569 - [124383] - src.utils.log - INFO - βœ” SQL reported affected rows: 1 - __SPLIT__ 2026-05-08 08:49:56,715 - [124383] - src.utils.log - INFO - πŸ” Verified successfully updated 1 rows via #tbl_48d81dbe4d - __SPLIT__ 2026-05-08 08:49:56,715 - [124383] - src.utils.log - INFO - πŸŽ‰ Successfully updated NextGenerationDate using temp table #tbl_48d81dbe4d - __SPLIT__ 2026-05-08 08:49:56,716 - [124383] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 124383 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 08:49:56,996 - [124383] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-08 08:49:56,996 - [124383] - src.utils.log - INFO - Sequential deletion from temp tables begin - __SPLIT__ 2026-05-08 08:49:56,997 - [124383] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId in (3673137, 3673138) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 08:49:57,447 - [124383] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-08 08:49:57,448 - [124383] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId in (3673137, 3673138) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 08:49:57,841 - [124383] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-08 08:49:57,842 - [124383] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId in (3673137, 3673138) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 08:49:58,124 - [124383] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-08 08:49:58,125 - [124383] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId in (3673137, 3673138) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 08:49:58,510 - [124383] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-08 08:49:58,511 - [124383] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId in (3673137, 3673138) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 08:49:58,801 - [124383] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-08 08:49:58,801 - [124383] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (3673137, 3673138) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 08:49:59,086 - [124383] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-08 08:49:59,086 - [124383] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId in (3673137, 3673138) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 08:49:59,368 - [124383] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-08 08:49:59,368 - [124383] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (3673137, 3673138) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 08:49:59,757 - [124383] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-08 08:49:59,757 - [124383] - src.utils.log - INFO - Work order published ids: (3673137, 3673138) - __SPLIT__ 2026-05-08 08:49:59,757 - [124383] - src.utils.log - INFO - Time took to perform operation in publishing [124383]: 43.19 - __SPLIT__ 2026-05-08 08:49:59,757 - [124383] - src.utils.log - INFO - Publish Completed for GenerateWorkOrderHistoryId: [124383] - __SPLIT__ 2026-05-08 08:49:59,757 - [124383] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-05-08 04:49:59.757' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124383;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 08:50:00,041 - [124383] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-08 11:58:46,524 - [124383] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[3673139, 3673140] user_id=43135 company_id=133 project_id=[124383] publish_all=False - __SPLIT__ 2026-05-08 11:58:46,525 - [124383] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[3673139, 3673140] user_id=43135 company_id=133 project_id=[124383] publish_all=False - __SPLIT__ 2026-05-08 11:58:46,525 - [124383] - src.utils.log - INFO - Sequential Work order publish in progress for GenerateWorkOrderHistoryId: [124383] - __SPLIT__ 2026-05-08 11:58:46,526 - [124383] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-05-08 11:58:46,526 - [124383] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 11:58:48,571 - [124383] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-08 11:58:48,571 - [124383] - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-05-08 11:58:48,572 - [124383] - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-05-08 11:58:48,573 - [124383] - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-05-08 11:58:48,573 - [124383] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'InProgress' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124383;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 11:58:50,459 - [124383] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-08 11:58:50,459 - [124383] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (3673139, 3673140)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 11:58:50,734 - [124383] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-05-08 11:58:50,734 - [124383] - src.utils.log - INFO - Inside get_work_order_table - __SPLIT__ 2026-05-08 11:58:50,735 - [124383] - 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 = 150287 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 11:58:51,003 - [124383] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-08 11:58:51,003 - [124383] - 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 = 150287 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 11:58:51,271 - [124383] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-08 11:58:51,272 - [124383] - 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 = 150287 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 11:58:51,540 - [124383] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-08 11:58:51,544 - [124383] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder,BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 11:58:51,813 - [124383] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-08 11:58:51,813 - [124383] - 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-05-08 11:58:52,081 - [124383] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-05-08 11:58:52,082 - [124383] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder, BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 11:58:52,350 - [124383] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-08 11:58:52,351 - [124383] - 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-05-08 11:58:52,623 - [124383] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-08 11:58:52,623 - [124383] - 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-05-08 11:58:52,895 - [124383] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-08 11:58:52,899 - [124383] - 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 = 150287... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 11:58:53,169 - [124383] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-08 11:58:53,171 - [124383] - src.utils.log - INFO - πŸ” Fetching data: SELECT x.CompanyId FROM CRM.CompanyMaster x WHERE CompanyKey = 'abcdallas';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 11:58:53,439 - [124383] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-08 11:58:53,440 - [124383] - src.utils.log - INFO - πŸ” Fetching data: SELECT CollectionStatus,IsHold,AccountNo FROM CRM.Account a WHERE a.AccountNo = '14831' and a.CompanyId = 121;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 11:58:53,708 - [124383] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-08 11:58:53,710 - [124383] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderNo FROM ServiceCore.WorkOrder WHERE WorkOrderNo IN ('1419348', '1419349') AND CompanyId = 133 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 11:58:53,987 - [124383] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-08 11:58:53,987 - [124383] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrder (skip triggers): 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 11:58:54,427 - [124383] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrder (triggers skipped) - __SPLIT__ 2026-05-08 11:58:55,462 - [124383] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrder in 1 batches (triggers skipped) - __SPLIT__ 2026-05-08 11:58:55,597 - [124383] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-05-08 11:58:55,599 - [124383] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkorderId, WorkOrderNo FROM ServiceCore.WorkOrder wo WHERE wo.WorkOrderNo IN ('1419348', '1419349') AND wo.AccountNumber = '14831' AND wo.CompanyId = 133 ... (Thread: ThreadPoolExecutor-3_0) - __SPLIT__ 2026-05-08 11:58:55,883 - [124383] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-05-08 11:58:55,884 - [124383] - src.utils.log - INFO - Sequential fetching temp table records - __SPLIT__ 2026-05-08 11:58:55,884 - [124383] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationServices woag WHERE woag.WorkOrderAutoGenerationId in (3673139, 3673140)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 11:58:56,204 - [124383] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-05-08 11:58:56,204 - [124383] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SubWorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (3673139, 3673140)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 11:58:56,477 - [124383] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-08 11:58:56,477 - [124383] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationCrews woag WHERE woag.WorkOrderAutoGenerationId in (3673139, 3673140)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 11:58:56,780 - [124383] - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-05-08 11:58:56,781 - [124383] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationSalesPersonCommission woag WHERE woag.WorkOrderAutoGenerationId in (3673139, 3673140)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 11:58:57,051 - [124383] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-08 11:58:57,052 - [124383] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupAutoGenerationSourceMapping woag WHERE woag.WorkOrderAutoGenerationId in (3673139, 3673140)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 11:58:57,323 - [124383] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-08 11:58:57,323 - [124383] - 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 (3673139, 3673140)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 11:58:57,626 - [124383] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-08 11:58:57,626 - [124383] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from CRM.LeadNote woag WHERE woag.RefId in (3673139, 3673140) and woag.RefType = 'TempWorkorder';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 11:58:57,899 - [124383] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-08 11:58:57,900 - [124383] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment woagca WHERE woagca.WorkOrderAutoGenerationId in (3673139, 3673140);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 11:58:58,170 - [124383] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-08 11:58:58,172 - [124383] - src.utils.log - INFO - Updating temp tables - __SPLIT__ 2026-05-08 11:58:58,185 - [124383] - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyKey FROM Common.CompanyMaster cm WHERE CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 11:58:58,454 - [124383] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-08 11:58:58,454 - [124383] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 133 AND EnitityNumberType in ('SubWorkOrder'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 11:58:58,724 - [124383] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-08 11:58:58,728 - [124383] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-08 11:58:58,728 - [124383] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishHistory: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 11:58:59,023 - [124383] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationPublishHistory - __SPLIT__ 2026-05-08 11:59:00,017 - [124383] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishHistory in 1 batches - __SPLIT__ 2026-05-08 11:59:00,019 - [124383] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationPublishHistoryId, WorkOrderNo, ServiceSetupId FROM ServiceCore.WorkOrderAutoGenerationPublishHistory WHERE ServiceSetupId = 150287 AND WorkOrderNo IN ('8716343', '5020828') AND GenerateWorkOrderHistoryId = 124383;... (Thread: ThreadPoolExecutor-4_0) - __SPLIT__ 2026-05-08 11:59:00,333 - [124383] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-05-08 11:59:00,333 - [124383] - src.utils.log - INFO - 🏁 Final merged rows: 2 - __SPLIT__ 2026-05-08 11:59:00,339 - [124383] - src.utils.log - INFO - Sequential Insertion in work order tables begin - __SPLIT__ 2026-05-08 11:59:00,339 - [124383] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-08 11:59:00,339 - [124383] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderServices: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 11:59:00,616 - [124383] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderServices - __SPLIT__ 2026-05-08 11:59:01,567 - [124383] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderServices in 1 batches - __SPLIT__ 2026-05-08 11:59:01,567 - [124383] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderAppliedDiscount: - __SPLIT__ 2026-05-08 11:59:01,567 - [124383] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderSalesPersonCommission: - __SPLIT__ 2026-05-08 11:59:01,568 - [124383] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderCommissionAdjustment: - __SPLIT__ 2026-05-08 11:59:01,568 - [124383] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-08 11:59:01,568 - [124383] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderCrew: 4 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 11:59:01,842 - [124383] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 4) into ServiceCore.WorkOrderCrew - __SPLIT__ 2026-05-08 11:59:02,799 - [124383] - src.utils.log - INFO - βœ… All 4 rows inserted successfully into ServiceCore.WorkOrderCrew in 1 batches - __SPLIT__ 2026-05-08 11:59:02,799 - [124383] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkorderSourceMapping: - __SPLIT__ 2026-05-08 11:59:02,799 - [124383] - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-05-08 11:59:02,799 - [124383] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-08 11:59:02,799 - [124383] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishServices: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 11:59:03,076 - [124383] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationPublishServices - __SPLIT__ 2026-05-08 11:59:04,032 - [124383] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishServices in 1 batches - __SPLIT__ 2026-05-08 11:59:04,033 - [124383] - 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 = 150287... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 11:59:04,302 - [124383] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-08 11:59:04,309 - [124383] - src.utils.log - INFO - Size of Transaction: 2 - __SPLIT__ 2026-05-08 11:59:04,310 - [124383] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 11:59:04,720 - [124383] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-05-08 11:59:05,667 - [124383] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-05-08 11:59:05,802 - [124383] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-05-08 11:59:05,802 - [124383] - 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-05-08 07:59:04.304';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 11:59:06,239 - [124383] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-05-08 11:59:06,241 - [124383] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150287;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 11:59:06,512 - [124383] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-08 11:59:06,522 - [124383] - src.utils.log - INFO - πŸ“ Executing: UPDATE Billing.[Transaction] SET ModifiedBy = NULL WHERE ModifiedBy IN (12345678910,12345678911) AND CreatedDate = '2026-05-08 07:59:04.304'; ... (Thread: ThreadPoolExecutor-5_0) - __SPLIT__ 2026-05-08 11:59:06,915 - [124383] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-08 11:59:06,921 - [124383] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-08 11:59:06,921 - [124383] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 11:59:07,200 - [124383] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.Invoice - __SPLIT__ 2026-05-08 11:59:08,184 - [124383] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-05-08 11:59:08,185 - [124383] - src.utils.log - INFO - πŸ” Fetching data: SELECT InvoiceId, WorkOrderNo FROM Billing.Invoice i WHERE i.WorkOrderNo in ('1419349', '1419348')... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 11:59:08,518 - [124383] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-05-08 11:59:08,528 - [124383] - 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 = 150287 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 11:59:08,797 - [124383] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-08 11:59:08,797 - [124383] - 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 = 150287 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 11:59:09,068 - [124383] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-08 11:59:09,069 - [124383] - 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 = 150287 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 11:59:09,337 - [124383] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-08 11:59:09,338 - [124383] - 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 = 150287 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 11:59:09,607 - [124383] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-08 11:59:09,620 - [124383] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150287;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 11:59:09,889 - [124383] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-08 11:59:09,895 - [124383] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId, AppliedDiscountAmt as AppliedDiscountAmount,IsActive ,ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 150287;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 11:59:10,163 - [124383] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-08 11:59:10,167 - [124383] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId,IsActive,DiscountAmount, IsDiscountPercent,DiscountPercent,DiscountDescription , ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 150287;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 11:59:10,435 - [124383] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-08 11:59:10,436 - [124383] - src.utils.log - INFO - Sequential Insertion in invoice tables begin - __SPLIT__ 2026-05-08 11:59:10,436 - [124383] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.AccountDiscountSetup: - __SPLIT__ 2026-05-08 11:59:10,436 - [124383] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-08 11:59:10,437 - [124383] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceCharges: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 11:59:10,714 - [124383] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.InvoiceCharges - __SPLIT__ 2026-05-08 11:59:11,881 - [124383] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.InvoiceCharges in 1 batches - __SPLIT__ 2026-05-08 11:59:11,881 - [124383] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.DiscountApplied: - __SPLIT__ 2026-05-08 11:59:11,881 - [124383] - src.utils.log - INFO - Invoice Publish Done - __SPLIT__ 2026-05-08 11:59:11,882 - [124383] - src.utils.log - INFO - Updating Next GenerationDate - __SPLIT__ 2026-05-08 11:59:11,882 - [124383] - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, MAX(NextWorkOrderGenerationDate) AS MaxNextWorkOrderGeneration FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 124383 GROUP BY ServiceSetupId; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 11:59:12,150 - [124383] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-08 11:59:12,156 - [124383] - src.utils.log - INFO - πŸ”„ Updating next gen date sequentially: inside update_next_workorder_generation - __SPLIT__ 2026-05-08 11:59:12,291 - [124383] - src.utils.log - INFO - πŸ›  Creating temp table #tbl_38518988c5 - __SPLIT__ 2026-05-08 11:59:12,564 - [124383] - src.utils.log - INFO - πŸ“Œ Bulk inserting 1 rows into #tbl_38518988c5 - __SPLIT__ 2026-05-08 11:59:12,833 - [124383] - src.utils.log - INFO - πŸ” Running MERGE update to apply changes - __SPLIT__ 2026-05-08 11:59:12,977 - [124383] - src.utils.log - INFO - βœ” SQL reported affected rows: 1 - __SPLIT__ 2026-05-08 11:59:13,119 - [124383] - src.utils.log - INFO - πŸ” Verified successfully updated 1 rows via #tbl_38518988c5 - __SPLIT__ 2026-05-08 11:59:13,119 - [124383] - src.utils.log - INFO - πŸŽ‰ Successfully updated NextGenerationDate using temp table #tbl_38518988c5 - __SPLIT__ 2026-05-08 11:59:13,119 - [124383] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 124383 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 11:59:13,390 - [124383] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-08 11:59:13,390 - [124383] - src.utils.log - INFO - Sequential deletion from temp tables begin - __SPLIT__ 2026-05-08 11:59:13,390 - [124383] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId in (3673139, 3673140) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 11:59:13,828 - [124383] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-08 11:59:13,829 - [124383] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId in (3673139, 3673140) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 11:59:14,207 - [124383] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-08 11:59:14,207 - [124383] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId in (3673139, 3673140) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 11:59:14,479 - [124383] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-08 11:59:14,480 - [124383] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId in (3673139, 3673140) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 11:59:14,854 - [124383] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-08 11:59:14,854 - [124383] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId in (3673139, 3673140) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 11:59:15,132 - [124383] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-08 11:59:15,133 - [124383] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (3673139, 3673140) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 11:59:15,408 - [124383] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-08 11:59:15,408 - [124383] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId in (3673139, 3673140) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 11:59:15,678 - [124383] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-08 11:59:15,678 - [124383] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (3673139, 3673140) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 11:59:16,064 - [124383] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-08 11:59:16,065 - [124383] - src.utils.log - INFO - Work order published ids: (3673139, 3673140) - __SPLIT__ 2026-05-08 11:59:16,065 - [124383] - src.utils.log - INFO - Time took to perform operation in publishing [124383]: 29.54 - __SPLIT__ 2026-05-08 11:59:16,065 - [124383] - src.utils.log - INFO - Publish Completed for GenerateWorkOrderHistoryId: [124383] - __SPLIT__ 2026-05-08 11:59:16,065 - [124383] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-05-08 07:59:16.065' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124383;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 11:59:16,336 - [124383] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-08 12:52:54,404 - 13537 - src.utils.log - INFO - ParallelProcessing=False GenerateInvoiceHistoryId=13537 - __SPLIT__ 2026-05-08 12:52:54,405 - 13537 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-05-08 12:52:54,406 - 13537 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 12:52:56,452 - 13537 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-08 12:52:56,453 - 13537 - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-05-08 12:52:56,453 - 13537 - src.utils.log - INFO - Sequential Invoice generation algo started for GenerateInvoiceHistoryId: 13537 - __SPLIT__ 2026-05-08 12:52:56,453 - 13537 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET Status = 'InProgress' WHERE GenerateInvoiceHistoryId = 13537;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 12:52:56,744 - 13537 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-08 12:52:56,744 - 13537 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateInvoiceHistory WHERE GenerateInvoiceHistoryId = 13537;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 12:52:57,044 - 13537 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-08 12:52:57,044 - 13537 - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceId as ServiceMasterId,ss.FrequencyScheduleId as setup_frequency_schedule_id, ssb.*, ss.IsBilling, ss.DepartmentMasterId, ss.AccountNumber, ss.CompanyId, ss.BillingLocationId, ss.ServiceLocationId, ss.TaxSysName, ss.TermId, t.NetDueIn, ss.TaxPercent, ss.PoNumber, ss.DisplayServiceAsSeparateLineItem, ss.SetupEndDate, ss.SetupStartDate from ServiceCore.ServiceSetup ss join ServiceCore.ServiceSetupBilling ssb on ss.ServiceSetupId = ssb.ServiceSetupId join Billing.PaymentTypeMaster ptm on ptm.PaymentTypeMasterId = ssb.PaymentTypeMasterId join Billing.Term t on ss.TermId = t.TermId join ServiceCore.ServiceSetupServices sss on ss.ServiceSetupId = sss.ServiceSetupId where ptm.PaymentType= 'Payment Plan' and ss.IsActive =1 and ss.CompanyId= 135 AND ss.IsDeleted =0 AND ss.Status <> 'Canceled' AND ((ss.OrderType = gw.OrderType) OR gw.OrderType IS NULL); and ss.AccountNumber = '8333' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 12:52:57,395 - 13537 - src.utils.log - ERROR - ❌ Error fetching data: (pyodbc.ProgrammingError) ('42000', "[42000] [Microsoft][ODBC Driver 18 for SQL Server][SQL Server]Incorrect syntax near the keyword 'and'. (156) (SQLExecDirectW)") [SQL: SELECT sss.ServiceId as ServiceMasterId,ss.FrequencyScheduleId as setup_frequency_schedule_id, ssb.*, ss.IsBilling, ss.DepartmentMasterId, ss.AccountNumber, ss.CompanyId, ss.BillingLocationId, ss.ServiceLocationId, ss.TaxSysName, ss.TermId, t.NetDueIn, ss.TaxPercent, ss.PoNumber, ss.DisplayServiceAsSeparateLineItem, ss.SetupEndDate, ss.SetupStartDate from ServiceCore.ServiceSetup ss join ServiceCore.ServiceSetupBilling ssb on ss.ServiceSetupId = ssb.ServiceSetupId join Billing.PaymentTypeMaster ptm on ptm.PaymentTypeMasterId = ssb.PaymentTypeMasterId join Billing.Term t on ss.TermId = t.TermId join ServiceCore.ServiceSetupServices sss on ss.ServiceSetupId = sss.ServiceSetupId where ptm.PaymentType= 'Payment Plan' and ss.IsActive =1 and ss.CompanyId= 135 AND ss.IsDeleted =0 AND ss.Status <> 'Canceled' AND ((ss.OrderType = gw.OrderType) OR gw.OrderType IS NULL); and ss.AccountNumber = '8333' ;] (Background on this error at: https://sqlalche.me/e/20/f405) - __SPLIT__ 2026-05-08 12:52:57,395 - 13537 - src.utils.log - ERROR - ❌ fetch_data_from_db failed after 1 attempts: (pyodbc.ProgrammingError) ('42000', "[42000] [Microsoft][ODBC Driver 18 for SQL Server][SQL Server]Incorrect syntax near the keyword 'and'. (156) (SQLExecDirectW)") [SQL: SELECT sss.ServiceId as ServiceMasterId,ss.FrequencyScheduleId as setup_frequency_schedule_id, ssb.*, ss.IsBilling, ss.DepartmentMasterId, ss.AccountNumber, ss.CompanyId, ss.BillingLocationId, ss.ServiceLocationId, ss.TaxSysName, ss.TermId, t.NetDueIn, ss.TaxPercent, ss.PoNumber, ss.DisplayServiceAsSeparateLineItem, ss.SetupEndDate, ss.SetupStartDate from ServiceCore.ServiceSetup ss join ServiceCore.ServiceSetupBilling ssb on ss.ServiceSetupId = ssb.ServiceSetupId join Billing.PaymentTypeMaster ptm on ptm.PaymentTypeMasterId = ssb.PaymentTypeMasterId join Billing.Term t on ss.TermId = t.TermId join ServiceCore.ServiceSetupServices sss on ss.ServiceSetupId = sss.ServiceSetupId where ptm.PaymentType= 'Payment Plan' and ss.IsActive =1 and ss.CompanyId= 135 AND ss.IsDeleted =0 AND ss.Status <> 'Canceled' AND ((ss.OrderType = gw.OrderType) OR gw.OrderType IS NULL); and ss.AccountNumber = '8333' ;] (Background on this error at: https://sqlalche.me/e/20/f405) - __SPLIT__ 2026-05-08 12:52:57,395 - 13537 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET Status = 'Completed' WHERE GenerateInvoiceHistoryId = 13537;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 12:52:57,702 - 13537 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-08 12:52:57,702 - 13537 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET InvoiceStatusDateTime = '2026-05-08 08:52:57.702' WHERE GenerateInvoiceHistoryId = 13537;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 12:52:58,005 - 13537 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-08 12:52:58,005 - 13537 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-05-08 12:52:58,005 - 13537 - src.utils.log - INFO - Error in Sequential Invoice Gen ProjectId:13537 - Time took: 3.6 - Error:(pyodbc.ProgrammingError) ('42000', "[42000] [Microsoft][ODBC Driver 18 for SQL Server][SQL Server]Incorrect syntax near the keyword 'and'. (156) (SQLExecDirectW)") [SQL: SELECT sss.ServiceId as ServiceMasterId,ss.FrequencyScheduleId as setup_frequency_schedule_id, ssb.*, ss.IsBilling, ss.DepartmentMasterId, ss.AccountNumber, ss.CompanyId, ss.BillingLocationId, ss.ServiceLocationId, ss.TaxSysName, ss.TermId, t.NetDueIn, ss.TaxPercent, ss.PoNumber, ss.DisplayServiceAsSeparateLineItem, ss.SetupEndDate, ss.SetupStartDate from ServiceCore.ServiceSetup ss join ServiceCore.ServiceSetupBilling ssb on ss.ServiceSetupId = ssb.ServiceSetupId join Billing.PaymentTypeMaster ptm on ptm.PaymentTypeMasterId = ssb.PaymentTypeMasterId join Billing.Term t on ss.TermId = t.TermId join ServiceCore.ServiceSetupServices sss on ss.ServiceSetupId = sss.ServiceSetupId where ptm.PaymentType= 'Payment Plan' and ss.IsActive =1 and ss.CompanyId= 135 AND ss.IsDeleted =0 AND ss.Status <> 'Canceled' AND ((ss.OrderType = gw.OrderType) OR gw.OrderType IS NULL); and ss.AccountNumber = '8333' ;] (Background on this error at: https://sqlalche.me/e/20/f405) - __SPLIT__ 2026-05-08 12:59:33,194 - 13538 - src.utils.log - INFO - ParallelProcessing=False GenerateInvoiceHistoryId=13538 - __SPLIT__ 2026-05-08 12:59:33,209 - 13538 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-05-08 12:59:33,209 - 13538 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 12:59:35,879 - 13538 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-08 12:59:35,880 - 13538 - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-05-08 12:59:35,880 - 13538 - src.utils.log - INFO - Sequential Invoice generation algo started for GenerateInvoiceHistoryId: 13538 - __SPLIT__ 2026-05-08 12:59:35,880 - 13538 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET Status = 'InProgress' WHERE GenerateInvoiceHistoryId = 13538;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 12:59:36,185 - 13538 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-08 12:59:36,185 - 13538 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateInvoiceHistory WHERE GenerateInvoiceHistoryId = 13538;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 12:59:36,485 - 13538 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-08 12:59:36,486 - 13538 - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceId as ServiceMasterId,ss.FrequencyScheduleId as setup_frequency_schedule_id, ssb.*, ss.IsBilling, ss.DepartmentMasterId, ss.AccountNumber, ss.CompanyId, ss.BillingLocationId, ss.ServiceLocationId, ss.TaxSysName, ss.TermId, t.NetDueIn, ss.TaxPercent, ss.PoNumber, ss.DisplayServiceAsSeparateLineItem, ss.SetupEndDate, ss.SetupStartDate from ServiceCore.ServiceSetup ss join ServiceCore.ServiceSetupBilling ssb on ss.ServiceSetupId = ssb.ServiceSetupId join Billing.PaymentTypeMaster ptm on ptm.PaymentTypeMasterId = ssb.PaymentTypeMasterId join Billing.Term t on ss.TermId = t.TermId join ServiceCore.ServiceSetupServices sss on ss.ServiceSetupId = sss.ServiceSetupId where ptm.PaymentType= 'Payment Plan' and ss.IsActive =1 and ss.CompanyId= 135 AND ss.IsDeleted =0 AND ss.Status <> 'Canceled' AND ((ss.OrderType = gw.OrderType) OR gw.OrderType IS NULL) and ss.AccountNumber = '8333' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 12:59:36,785 - 13538 - src.utils.log - ERROR - ❌ Error fetching data: (pyodbc.ProgrammingError) ('42000', '[42000] [Microsoft][ODBC Driver 18 for SQL Server][SQL Server]The multi-part identifier "gw.OrderType" could not be bound. (4104) (SQLExecDirectW)') [SQL: SELECT sss.ServiceId as ServiceMasterId,ss.FrequencyScheduleId as setup_frequency_schedule_id, ssb.*, ss.IsBilling, ss.DepartmentMasterId, ss.AccountNumber, ss.CompanyId, ss.BillingLocationId, ss.ServiceLocationId, ss.TaxSysName, ss.TermId, t.NetDueIn, ss.TaxPercent, ss.PoNumber, ss.DisplayServiceAsSeparateLineItem, ss.SetupEndDate, ss.SetupStartDate from ServiceCore.ServiceSetup ss join ServiceCore.ServiceSetupBilling ssb on ss.ServiceSetupId = ssb.ServiceSetupId join Billing.PaymentTypeMaster ptm on ptm.PaymentTypeMasterId = ssb.PaymentTypeMasterId join Billing.Term t on ss.TermId = t.TermId join ServiceCore.ServiceSetupServices sss on ss.ServiceSetupId = sss.ServiceSetupId where ptm.PaymentType= 'Payment Plan' and ss.IsActive =1 and ss.CompanyId= 135 AND ss.IsDeleted =0 AND ss.Status <> 'Canceled' AND ((ss.OrderType = gw.OrderType) OR gw.OrderType IS NULL) and ss.AccountNumber = '8333' ;] (Background on this error at: https://sqlalche.me/e/20/f405) - __SPLIT__ 2026-05-08 12:59:36,785 - 13538 - src.utils.log - ERROR - ❌ fetch_data_from_db failed after 1 attempts: (pyodbc.ProgrammingError) ('42000', '[42000] [Microsoft][ODBC Driver 18 for SQL Server][SQL Server]The multi-part identifier "gw.OrderType" could not be bound. (4104) (SQLExecDirectW)') [SQL: SELECT sss.ServiceId as ServiceMasterId,ss.FrequencyScheduleId as setup_frequency_schedule_id, ssb.*, ss.IsBilling, ss.DepartmentMasterId, ss.AccountNumber, ss.CompanyId, ss.BillingLocationId, ss.ServiceLocationId, ss.TaxSysName, ss.TermId, t.NetDueIn, ss.TaxPercent, ss.PoNumber, ss.DisplayServiceAsSeparateLineItem, ss.SetupEndDate, ss.SetupStartDate from ServiceCore.ServiceSetup ss join ServiceCore.ServiceSetupBilling ssb on ss.ServiceSetupId = ssb.ServiceSetupId join Billing.PaymentTypeMaster ptm on ptm.PaymentTypeMasterId = ssb.PaymentTypeMasterId join Billing.Term t on ss.TermId = t.TermId join ServiceCore.ServiceSetupServices sss on ss.ServiceSetupId = sss.ServiceSetupId where ptm.PaymentType= 'Payment Plan' and ss.IsActive =1 and ss.CompanyId= 135 AND ss.IsDeleted =0 AND ss.Status <> 'Canceled' AND ((ss.OrderType = gw.OrderType) OR gw.OrderType IS NULL) and ss.AccountNumber = '8333' ;] (Background on this error at: https://sqlalche.me/e/20/f405) - __SPLIT__ 2026-05-08 12:59:36,785 - 13538 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET Status = 'Completed' WHERE GenerateInvoiceHistoryId = 13538;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 12:59:37,067 - 13538 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-08 12:59:37,068 - 13538 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET InvoiceStatusDateTime = '2026-05-08 08:59:37.068' WHERE GenerateInvoiceHistoryId = 13538;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 12:59:37,365 - 13538 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-08 12:59:37,365 - 13538 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-05-08 12:59:37,365 - 13538 - src.utils.log - INFO - Error in Sequential Invoice Gen ProjectId:13538 - Time took: 4.17 - Error:(pyodbc.ProgrammingError) ('42000', '[42000] [Microsoft][ODBC Driver 18 for SQL Server][SQL Server]The multi-part identifier "gw.OrderType" could not be bound. (4104) (SQLExecDirectW)') [SQL: SELECT sss.ServiceId as ServiceMasterId,ss.FrequencyScheduleId as setup_frequency_schedule_id, ssb.*, ss.IsBilling, ss.DepartmentMasterId, ss.AccountNumber, ss.CompanyId, ss.BillingLocationId, ss.ServiceLocationId, ss.TaxSysName, ss.TermId, t.NetDueIn, ss.TaxPercent, ss.PoNumber, ss.DisplayServiceAsSeparateLineItem, ss.SetupEndDate, ss.SetupStartDate from ServiceCore.ServiceSetup ss join ServiceCore.ServiceSetupBilling ssb on ss.ServiceSetupId = ssb.ServiceSetupId join Billing.PaymentTypeMaster ptm on ptm.PaymentTypeMasterId = ssb.PaymentTypeMasterId join Billing.Term t on ss.TermId = t.TermId join ServiceCore.ServiceSetupServices sss on ss.ServiceSetupId = sss.ServiceSetupId where ptm.PaymentType= 'Payment Plan' and ss.IsActive =1 and ss.CompanyId= 135 AND ss.IsDeleted =0 AND ss.Status <> 'Canceled' AND ((ss.OrderType = gw.OrderType) OR gw.OrderType IS NULL) and ss.AccountNumber = '8333' ;] (Background on this error at: https://sqlalche.me/e/20/f405) - __SPLIT__ 2026-05-08 13:00:09,549 - 13539 - src.utils.log - INFO - ParallelProcessing=False GenerateInvoiceHistoryId=13539 - __SPLIT__ 2026-05-08 13:00:09,551 - 13539 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-05-08 13:00:09,551 - 13539 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 13:00:12,085 - 13539 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-08 13:00:12,085 - 13539 - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-05-08 13:00:12,085 - 13539 - src.utils.log - INFO - Sequential Invoice generation algo started for GenerateInvoiceHistoryId: 13539 - __SPLIT__ 2026-05-08 13:00:12,085 - 13539 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET Status = 'InProgress' WHERE GenerateInvoiceHistoryId = 13539;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 13:00:12,401 - 13539 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-08 13:00:12,402 - 13539 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateInvoiceHistory WHERE GenerateInvoiceHistoryId = 13539;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 13:00:12,749 - 13539 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-08 13:00:12,749 - 13539 - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceId as ServiceMasterId,ss.FrequencyScheduleId as setup_frequency_schedule_id, ssb.*, ss.IsBilling, ss.DepartmentMasterId, ss.AccountNumber, ss.CompanyId, ss.BillingLocationId, ss.ServiceLocationId, ss.TaxSysName, ss.TermId, t.NetDueIn, ss.TaxPercent, ss.PoNumber, ss.DisplayServiceAsSeparateLineItem, ss.SetupEndDate, ss.SetupStartDate from ServiceCore.ServiceSetup ss join ServiceCore.ServiceSetupBilling ssb on ss.ServiceSetupId = ssb.ServiceSetupId join Billing.PaymentTypeMaster ptm on ptm.PaymentTypeMasterId = ssb.PaymentTypeMasterId join Billing.Term t on ss.TermId = t.TermId join ServiceCore.ServiceSetupServices sss on ss.ServiceSetupId = sss.ServiceSetupId where ptm.PaymentType= 'Payment Plan' and ss.IsActive =1 and ss.CompanyId= 135 AND ss.IsDeleted =0 AND ss.Status <> 'Canceled' AND ((ss.OrderType = gw.OrderType) OR gw.OrderType IS NULL) and ss.AccountNumber = '8333' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 13:00:13,035 - 13539 - src.utils.log - ERROR - ❌ Error fetching data: (pyodbc.ProgrammingError) ('42000', '[42000] [Microsoft][ODBC Driver 18 for SQL Server][SQL Server]The multi-part identifier "gw.OrderType" could not be bound. (4104) (SQLExecDirectW)') [SQL: SELECT sss.ServiceId as ServiceMasterId,ss.FrequencyScheduleId as setup_frequency_schedule_id, ssb.*, ss.IsBilling, ss.DepartmentMasterId, ss.AccountNumber, ss.CompanyId, ss.BillingLocationId, ss.ServiceLocationId, ss.TaxSysName, ss.TermId, t.NetDueIn, ss.TaxPercent, ss.PoNumber, ss.DisplayServiceAsSeparateLineItem, ss.SetupEndDate, ss.SetupStartDate from ServiceCore.ServiceSetup ss join ServiceCore.ServiceSetupBilling ssb on ss.ServiceSetupId = ssb.ServiceSetupId join Billing.PaymentTypeMaster ptm on ptm.PaymentTypeMasterId = ssb.PaymentTypeMasterId join Billing.Term t on ss.TermId = t.TermId join ServiceCore.ServiceSetupServices sss on ss.ServiceSetupId = sss.ServiceSetupId where ptm.PaymentType= 'Payment Plan' and ss.IsActive =1 and ss.CompanyId= 135 AND ss.IsDeleted =0 AND ss.Status <> 'Canceled' AND ((ss.OrderType = gw.OrderType) OR gw.OrderType IS NULL) and ss.AccountNumber = '8333' ;] (Background on this error at: https://sqlalche.me/e/20/f405) - __SPLIT__ 2026-05-08 13:00:13,035 - 13539 - src.utils.log - ERROR - ❌ fetch_data_from_db failed after 1 attempts: (pyodbc.ProgrammingError) ('42000', '[42000] [Microsoft][ODBC Driver 18 for SQL Server][SQL Server]The multi-part identifier "gw.OrderType" could not be bound. (4104) (SQLExecDirectW)') [SQL: SELECT sss.ServiceId as ServiceMasterId,ss.FrequencyScheduleId as setup_frequency_schedule_id, ssb.*, ss.IsBilling, ss.DepartmentMasterId, ss.AccountNumber, ss.CompanyId, ss.BillingLocationId, ss.ServiceLocationId, ss.TaxSysName, ss.TermId, t.NetDueIn, ss.TaxPercent, ss.PoNumber, ss.DisplayServiceAsSeparateLineItem, ss.SetupEndDate, ss.SetupStartDate from ServiceCore.ServiceSetup ss join ServiceCore.ServiceSetupBilling ssb on ss.ServiceSetupId = ssb.ServiceSetupId join Billing.PaymentTypeMaster ptm on ptm.PaymentTypeMasterId = ssb.PaymentTypeMasterId join Billing.Term t on ss.TermId = t.TermId join ServiceCore.ServiceSetupServices sss on ss.ServiceSetupId = sss.ServiceSetupId where ptm.PaymentType= 'Payment Plan' and ss.IsActive =1 and ss.CompanyId= 135 AND ss.IsDeleted =0 AND ss.Status <> 'Canceled' AND ((ss.OrderType = gw.OrderType) OR gw.OrderType IS NULL) and ss.AccountNumber = '8333' ;] (Background on this error at: https://sqlalche.me/e/20/f405) - __SPLIT__ 2026-05-08 13:00:13,035 - 13539 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET Status = 'Completed' WHERE GenerateInvoiceHistoryId = 13539;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 13:00:13,343 - 13539 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-08 13:00:13,344 - 13539 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET InvoiceStatusDateTime = '2026-05-08 09:00:13.344' WHERE GenerateInvoiceHistoryId = 13539;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 13:00:13,629 - 13539 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-08 13:00:13,629 - 13539 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-05-08 13:00:13,629 - 13539 - src.utils.log - INFO - Error in Sequential Invoice Gen ProjectId:13539 - Time took: 4.08 - Error:(pyodbc.ProgrammingError) ('42000', '[42000] [Microsoft][ODBC Driver 18 for SQL Server][SQL Server]The multi-part identifier "gw.OrderType" could not be bound. (4104) (SQLExecDirectW)') [SQL: SELECT sss.ServiceId as ServiceMasterId,ss.FrequencyScheduleId as setup_frequency_schedule_id, ssb.*, ss.IsBilling, ss.DepartmentMasterId, ss.AccountNumber, ss.CompanyId, ss.BillingLocationId, ss.ServiceLocationId, ss.TaxSysName, ss.TermId, t.NetDueIn, ss.TaxPercent, ss.PoNumber, ss.DisplayServiceAsSeparateLineItem, ss.SetupEndDate, ss.SetupStartDate from ServiceCore.ServiceSetup ss join ServiceCore.ServiceSetupBilling ssb on ss.ServiceSetupId = ssb.ServiceSetupId join Billing.PaymentTypeMaster ptm on ptm.PaymentTypeMasterId = ssb.PaymentTypeMasterId join Billing.Term t on ss.TermId = t.TermId join ServiceCore.ServiceSetupServices sss on ss.ServiceSetupId = sss.ServiceSetupId where ptm.PaymentType= 'Payment Plan' and ss.IsActive =1 and ss.CompanyId= 135 AND ss.IsDeleted =0 AND ss.Status <> 'Canceled' AND ((ss.OrderType = gw.OrderType) OR gw.OrderType IS NULL) and ss.AccountNumber = '8333' ;] (Background on this error at: https://sqlalche.me/e/20/f405) - __SPLIT__ 2026-05-08 13:03:56,849 - 13540 - src.utils.log - INFO - ParallelProcessing=False GenerateInvoiceHistoryId=13540 - __SPLIT__ 2026-05-08 13:03:56,864 - 13540 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-05-08 13:03:56,864 - 13540 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 13:03:59,501 - 13540 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-08 13:03:59,501 - 13540 - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-05-08 13:03:59,501 - 13540 - src.utils.log - INFO - Sequential Invoice generation algo started for GenerateInvoiceHistoryId: 13540 - __SPLIT__ 2026-05-08 13:03:59,502 - 13540 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET Status = 'InProgress' WHERE GenerateInvoiceHistoryId = 13540;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 13:03:59,793 - 13540 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-08 13:03:59,794 - 13540 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateInvoiceHistory WHERE GenerateInvoiceHistoryId = 13540;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 13:04:00,087 - 13540 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-08 13:04:00,088 - 13540 - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceId as ServiceMasterId,ss.FrequencyScheduleId as setup_frequency_schedule_id, ssb.*, ss.IsBilling, ss.DepartmentMasterId, ss.AccountNumber, ss.CompanyId, ss.BillingLocationId, ss.ServiceLocationId, ss.TaxSysName, ss.TermId, t.NetDueIn, ss.TaxPercent, ss.PoNumber, ss.DisplayServiceAsSeparateLineItem, ss.SetupEndDate, ss.SetupStartDate from ServiceCore.ServiceSetup ss join ServiceCore.ServiceSetupBilling ssb on ss.ServiceSetupId = ssb.ServiceSetupId join Billing.PaymentTypeMaster ptm on ptm.PaymentTypeMasterId = ssb.PaymentTypeMasterId join Billing.Term t on ss.TermId = t.TermId join ServiceCore.ServiceSetupServices sss on ss.ServiceSetupId = sss.ServiceSetupId where ptm.PaymentType= 'Payment Plan' and ss.IsActive =1 and ss.CompanyId= 135 AND ss.IsDeleted =0 AND ss.Status <> 'Canceled' and ss.AccountNumber = '8333' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 13:04:00,389 - 13540 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-05-08 13:04:00,393 - 13540 - src.utils.log - INFO - No filter selected - __SPLIT__ 2026-05-08 13:04:00,394 - 13540 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-05-08 13:04:00,394 - 13540 - 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-05-08 13:04:00,687 - 13540 - src.utils.log - INFO - βœ… Fetched 60 rows - __SPLIT__ 2026-05-08 13:04:00,687 - 13540 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-05-08 13:04:00,703 - 13540 - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionAutoGenerationId FROM Billing.TransactionAutoGeneration WHERE ServiceSetupId IN (23860, 23861) AND TransactionDate BETWEEN '2026-05-08 00:00:00' AND '2026-07-31 00:00:00' AND IsActive = 1 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 13:04:01,008 - 13540 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-08 13:04:01,014 - 13540 - src.utils.log - INFO - πŸ” Fetching data: SELECT Inv.ServiceSetupId, MAX(Inv.InvoiceDate) AS InvoiceDate FROM Billing.Invoice Inv INNER JOIN Billing.[Transaction] T ON Inv.TransactionId = T.TransactionId WHERE Inv.InvoiceDate BETWEEN '2026-05-08 00:00:00' AND '2026-07-31 00:00:00' AND Inv.IsActive = 1 AND Inv.IsDelete = 0 AND T.IsActive = 1 AND T.IsDelete = 0 AND Inv.ServiceSetupId IN (23860, 23861) GROUP BY Inv.ServiceSetupId;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 13:04:01,597 - 13540 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-08 13:04:01,607 - 13540 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-08 13:04:01,607 - 13540 - src.utils.log - INFO - πŸ“₯ Inserting into Billing.TransactionAutoGeneration: 10 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 13:04:01,933 - 13540 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 10) into Billing.TransactionAutoGeneration - __SPLIT__ 2026-05-08 13:04:03,032 - 13540 - src.utils.log - INFO - βœ… All 10 rows inserted successfully into Billing.TransactionAutoGeneration in 1 batches - __SPLIT__ 2026-05-08 13:04:03,033 - 13540 - src.utils.log - INFO - - __SPLIT__ 2026-05-08 13:04:03,033 - 13540 - src.utils.log - INFO - Total invoice generated: 10 - __SPLIT__ 2026-05-08 13:04:03,033 - 13540 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 10 TransactionAutoGenerationId, ServiceSetupId, TransactionDate as InvoiceDate From Billing.TransactionAutoGeneration WHERE CreatedDate = '2026-05-08 13:03:30.535' and ServiceSetupId in (23860, 23861) and GenerateWorkOrderHistoryId = 13540;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 13:04:03,326 - 13540 - src.utils.log - INFO - βœ… Fetched 10 rows - __SPLIT__ 2026-05-08 13:04:03,333 - 13540 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-08 13:04:03,334 - 13540 - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceAutoGeneration: 10 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 13:04:03,656 - 13540 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 10) into Billing.InvoiceAutoGeneration - __SPLIT__ 2026-05-08 13:04:04,721 - 13540 - src.utils.log - INFO - βœ… All 10 rows inserted successfully into Billing.InvoiceAutoGeneration in 1 batches - __SPLIT__ 2026-05-08 13:04:04,722 - 13540 - src.utils.log - INFO - πŸ” Fetching data: SELECT I.InvoiceAutoGenerationId, T.ServiceSetupId FROM Billing.InvoiceAutoGeneration I JOIN Billing.TransactionAutoGeneration T ON I.TransactionAutoGenerationId = T.TransactionAutoGenerationId where T.TransactionAutoGenerationId in (798900, 798901, 798902, 798903, 798904, 798905, 798906, 798907, 798908, 798909);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 13:04:05,009 - 13540 - src.utils.log - INFO - βœ… Fetched 10 rows - __SPLIT__ 2026-05-08 13:04:05,010 - 13540 - 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 (23860, 23861) and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 13:04:05,302 - 13540 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-05-08 13:04:05,309 - 13540 - 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 = 13044;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 13:04:05,604 - 13540 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-08 13:04:05,607 - 13540 - 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 = 13057;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 13:04:05,898 - 13540 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-08 13:04:05,902 - 13540 - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, DiscountSetupId,DiscountType,DiscountCode,DiscountAmount,DiscountDescription,DiscountName, DiscountPercent, IsDiscountPercent,AppliedDiscountAmt,ApplyOnPartPrice,ApplyOnLaborPrice from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE IsInitialSetupDiscount = 0 AND ssad.ServiceSetupId in (23860, 23861);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 13:04:06,204 - 13540 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-08 13:04:06,205 - 13540 - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.InvoiceAutoGenerationAppliedDiscount: - __SPLIT__ 2026-05-08 13:04:06,205 - 13540 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-08 13:04:06,205 - 13540 - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceChargesAutoGeneration: 10 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 13:04:06,519 - 13540 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 10) into Billing.InvoiceChargesAutoGeneration - __SPLIT__ 2026-05-08 13:04:07,593 - 13540 - src.utils.log - INFO - βœ… All 10 rows inserted successfully into Billing.InvoiceChargesAutoGeneration in 1 batches - __SPLIT__ 2026-05-08 13:04:07,594 - 13540 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET Status = 'Completed' WHERE GenerateInvoiceHistoryId = 13540;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 13:04:07,891 - 13540 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-08 13:04:07,891 - 13540 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET InvoiceStatusDateTime = '2026-05-08 09:04:07.891' WHERE GenerateInvoiceHistoryId = 13540;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 13:04:08,179 - 13540 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-08 13:04:08,179 - 13540 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-05-08 13:04:08,180 - 13540 - src.utils.log - INFO - Sequential Invoice Gen Complete Successfully ProjectId:13540 - Time took: 11.33 - __SPLIT__ 2026-05-08 13:07:01,152 - 13541 - src.utils.log - INFO - ParallelProcessing=False GenerateInvoiceHistoryId=13541 - __SPLIT__ 2026-05-08 13:07:01,168 - 13541 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-05-08 13:07:01,168 - 13541 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 13:07:03,829 - 13541 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-08 13:07:03,830 - 13541 - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-05-08 13:07:03,830 - 13541 - src.utils.log - INFO - Sequential Invoice generation algo started for GenerateInvoiceHistoryId: 13541 - __SPLIT__ 2026-05-08 13:07:03,830 - 13541 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET Status = 'InProgress' WHERE GenerateInvoiceHistoryId = 13541;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 13:07:04,120 - 13541 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-08 13:07:04,121 - 13541 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateInvoiceHistory WHERE GenerateInvoiceHistoryId = 13541;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 13:07:04,425 - 13541 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-08 13:07:04,426 - 13541 - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceId as ServiceMasterId,ss.FrequencyScheduleId as setup_frequency_schedule_id, ssb.*, ss.IsBilling, ss.DepartmentMasterId, ss.AccountNumber, ss.CompanyId, ss.BillingLocationId, ss.ServiceLocationId, ss.TaxSysName, ss.TermId, t.NetDueIn, ss.TaxPercent, ss.PoNumber, ss.DisplayServiceAsSeparateLineItem, ss.SetupEndDate, ss.SetupStartDate from ServiceCore.ServiceSetup ss join ServiceCore.ServiceSetupBilling ssb on ss.ServiceSetupId = ssb.ServiceSetupId join Billing.PaymentTypeMaster ptm on ptm.PaymentTypeMasterId = ssb.PaymentTypeMasterId join Billing.Term t on ss.TermId = t.TermId join ServiceCore.ServiceSetupServices sss on ss.ServiceSetupId = sss.ServiceSetupId where ptm.PaymentType= 'Payment Plan' and ss.IsActive =1 and ss.CompanyId= 135 AND ss.IsDeleted =0 AND ss.Status <> 'Canceled' and ss.AccountNumber = '8333' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 13:07:04,732 - 13541 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-05-08 13:07:04,737 - 13541 - src.utils.log - INFO - No filter selected - __SPLIT__ 2026-05-08 13:07:04,737 - 13541 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-05-08 13:07:04,738 - 13541 - 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-05-08 13:07:05,034 - 13541 - src.utils.log - INFO - βœ… Fetched 60 rows - __SPLIT__ 2026-05-08 13:07:05,035 - 13541 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-05-08 13:07:05,051 - 13541 - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionAutoGenerationId FROM Billing.TransactionAutoGeneration WHERE ServiceSetupId IN (23860, 23861) AND TransactionDate BETWEEN '2026-05-08 00:00:00' AND '2026-11-30 00:00:00' AND IsActive = 1 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 13:07:05,345 - 13541 - src.utils.log - INFO - βœ… Fetched 10 rows - __SPLIT__ 2026-05-08 13:07:05,346 - 13541 - src.utils.log - INFO - πŸ” Fetching data: SELECT InvoiceAutoGenerationId FROM Billing.InvoiceAutoGeneration WHERE TransactionAutoGenerationId IN (798900, 798901, 798902, 798903, 798904, 798905, 798906, 798907, 798908, 798909) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 13:07:05,642 - 13541 - src.utils.log - INFO - βœ… Fetched 10 rows - __SPLIT__ 2026-05-08 13:07:05,643 - 13541 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM Billing.InvoiceChargesAutoGeneration WHERE InvoiceAutoGenerationId IN (853801, 853802, 853803, 853804, 853805, 853806, 853807, 853808, 853809, 853810) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 13:07:05,935 - 13541 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-08 13:07:05,935 - 13541 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM Billing.InvoiceAutoGenerationAppliedDiscount WHERE InvoiceAutoGenerationId IN (853801, 853802, 853803, 853804, 853805, 853806, 853807, 853808, 853809, 853810) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 13:07:06,242 - 13541 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-08 13:07:06,242 - 13541 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM Billing.InvoiceAutoGeneration WHERE InvoiceAutoGenerationId IN (853801, 853802, 853803, 853804, 853805, 853806, 853807, 853808, 853809, 853810) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 13:07:06,569 - 13541 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-08 13:07:06,569 - 13541 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM Billing.TransactionAutoGeneration WHERE TransactionAutoGenerationId IN (798900, 798901, 798902, 798903, 798904, 798905, 798906, 798907, 798908, 798909) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 13:07:06,892 - 13541 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-08 13:07:06,899 - 13541 - src.utils.log - INFO - πŸ” Fetching data: SELECT Inv.ServiceSetupId, MAX(Inv.InvoiceDate) AS InvoiceDate FROM Billing.Invoice Inv INNER JOIN Billing.[Transaction] T ON Inv.TransactionId = T.TransactionId WHERE Inv.InvoiceDate BETWEEN '2026-05-08 00:00:00' AND '2026-11-30 00:00:00' AND Inv.IsActive = 1 AND Inv.IsDelete = 0 AND T.IsActive = 1 AND T.IsDelete = 0 AND Inv.ServiceSetupId IN (23860, 23861) GROUP BY Inv.ServiceSetupId;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 13:07:07,200 - 13541 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-08 13:07:07,210 - 13541 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-08 13:07:07,210 - 13541 - src.utils.log - INFO - πŸ“₯ Inserting into Billing.TransactionAutoGeneration: 26 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 13:07:07,521 - 13541 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 26) into Billing.TransactionAutoGeneration - __SPLIT__ 2026-05-08 13:07:08,777 - 13541 - src.utils.log - INFO - βœ… All 26 rows inserted successfully into Billing.TransactionAutoGeneration in 1 batches - __SPLIT__ 2026-05-08 13:07:08,777 - 13541 - src.utils.log - INFO - - __SPLIT__ 2026-05-08 13:07:08,778 - 13541 - src.utils.log - INFO - Total invoice generated: 26 - __SPLIT__ 2026-05-08 13:07:08,778 - 13541 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 26 TransactionAutoGenerationId, ServiceSetupId, TransactionDate as InvoiceDate From Billing.TransactionAutoGeneration WHERE CreatedDate = '2026-05-08 13:03:30.551' and ServiceSetupId in (23860, 23861) and GenerateWorkOrderHistoryId = 13541;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 13:07:09,095 - 13541 - src.utils.log - INFO - βœ… Fetched 26 rows - __SPLIT__ 2026-05-08 13:07:09,104 - 13541 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-08 13:07:09,104 - 13541 - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceAutoGeneration: 26 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 13:07:09,434 - 13541 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 26) into Billing.InvoiceAutoGeneration - __SPLIT__ 2026-05-08 13:07:10,511 - 13541 - src.utils.log - INFO - βœ… All 26 rows inserted successfully into Billing.InvoiceAutoGeneration in 1 batches - __SPLIT__ 2026-05-08 13:07:10,511 - 13541 - src.utils.log - INFO - πŸ” Fetching data: SELECT I.InvoiceAutoGenerationId, T.ServiceSetupId FROM Billing.InvoiceAutoGeneration I JOIN Billing.TransactionAutoGeneration T ON I.TransactionAutoGenerationId = T.TransactionAutoGenerationId where T.TransactionAutoGenerationId in (798910, 798911, 798912, 798913, 798914, 798915, 798916, 798917, 798918, 798919, 798920, 798921, 798922, 798923, 798924, 798925, 798926, 798927, 798928, 798929, 798930, 798931, 798932, 798933, 798934, 798935);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 13:07:10,809 - 13541 - src.utils.log - INFO - βœ… Fetched 26 rows - __SPLIT__ 2026-05-08 13:07:10,810 - 13541 - 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 (23860, 23861) and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 13:07:11,116 - 13541 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-05-08 13:07:11,123 - 13541 - 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 = 13057;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 13:07:11,413 - 13541 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-08 13:07:11,415 - 13541 - 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 = 13057;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 13:07:11,701 - 13541 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-08 13:07:11,706 - 13541 - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, DiscountSetupId,DiscountType,DiscountCode,DiscountAmount,DiscountDescription,DiscountName, DiscountPercent, IsDiscountPercent,AppliedDiscountAmt,ApplyOnPartPrice,ApplyOnLaborPrice from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE IsInitialSetupDiscount = 0 AND ssad.ServiceSetupId in (23860, 23861);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 13:07:11,998 - 13541 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-08 13:07:11,998 - 13541 - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.InvoiceAutoGenerationAppliedDiscount: - __SPLIT__ 2026-05-08 13:07:11,998 - 13541 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-08 13:07:11,998 - 13541 - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceChargesAutoGeneration: 26 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 13:07:12,314 - 13541 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 26) into Billing.InvoiceChargesAutoGeneration - __SPLIT__ 2026-05-08 13:07:13,398 - 13541 - src.utils.log - INFO - βœ… All 26 rows inserted successfully into Billing.InvoiceChargesAutoGeneration in 1 batches - __SPLIT__ 2026-05-08 13:07:13,399 - 13541 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET Status = 'Completed' WHERE GenerateInvoiceHistoryId = 13541;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 13:07:13,690 - 13541 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-08 13:07:13,691 - 13541 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET InvoiceStatusDateTime = '2026-05-08 09:07:13.691' WHERE GenerateInvoiceHistoryId = 13541;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 13:07:13,988 - 13541 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-08 13:07:13,989 - 13541 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-05-08 13:07:13,989 - 13541 - src.utils.log - INFO - Sequential Invoice Gen Complete Successfully ProjectId:13541 - Time took: 12.84 - __SPLIT__ 2026-05-08 16:24:14,278 - 13542 - src.utils.log - INFO - ParallelProcessing=False GenerateInvoiceHistoryId=13542 - __SPLIT__ 2026-05-08 16:24:14,279 - 13542 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-05-08 16:24:14,279 - 13542 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 16:24:16,312 - 13542 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-08 16:24:16,312 - 13542 - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-05-08 16:24:16,312 - 13542 - src.utils.log - INFO - Sequential Invoice generation algo started for GenerateInvoiceHistoryId: 13542 - __SPLIT__ 2026-05-08 16:24:16,312 - 13542 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET Status = 'InProgress' WHERE GenerateInvoiceHistoryId = 13542;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 16:24:16,603 - 13542 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-08 16:24:16,603 - 13542 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateInvoiceHistory WHERE GenerateInvoiceHistoryId = 13542;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 16:24:16,898 - 13542 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-08 16:24:16,899 - 13542 - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceId as ServiceMasterId,ss.FrequencyScheduleId as setup_frequency_schedule_id, ssb.*, ss.IsBilling, ss.DepartmentMasterId, ss.AccountNumber, ss.CompanyId, ss.BillingLocationId, ss.ServiceLocationId, ss.TaxSysName, ss.TermId, t.NetDueIn, ss.TaxPercent, ss.PoNumber, ss.DisplayServiceAsSeparateLineItem, ss.SetupEndDate, ss.SetupStartDate from ServiceCore.ServiceSetup ss join ServiceCore.ServiceSetupBilling ssb on ss.ServiceSetupId = ssb.ServiceSetupId join Billing.PaymentTypeMaster ptm on ptm.PaymentTypeMasterId = ssb.PaymentTypeMasterId join Billing.Term t on ss.TermId = t.TermId join ServiceCore.ServiceSetupServices sss on ss.ServiceSetupId = sss.ServiceSetupId where ptm.PaymentType= 'Payment Plan' and ss.IsActive =1 and ss.CompanyId= 135 AND ss.IsDeleted =0 AND ss.Status <> 'Canceled' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 16:24:18,086 - 13542 - src.utils.log - INFO - βœ… Fetched 3265 rows - __SPLIT__ 2026-05-08 16:24:18,107 - 13542 - src.utils.log - INFO - No filter selected - __SPLIT__ 2026-05-08 16:24:18,108 - 13542 - src.utils.log - INFO - FrequencyScheduleId missing for setups: [15809 16036 16070 16071 16075 16118 16129 16188 21982]: Ignored these setups - __SPLIT__ 2026-05-08 16:24:18,110 - 13542 - 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 (12802.0, 12803.0, 12804.0, 12805.0, 12806.0, 12922.0, 12964.0, 12965.0, 12966.0, 12967.0, 12971.0, 12974.0, 12975.0, 12979.0, 12980.0, 12983.0, 12988.0, 12989.0, 12990.0, 12991.0, 12992.0, 12993.0, 12994.0, 12996.0, 12997.0, 12998.0, 12999.0, 13000.0, 13005.0, 13006.0, 13007.0, 13008.0, 13009.0, 13011.0, 13012.0, 13013.0, 13014.0, 13015.0, 13017.0, 13024.0, 13027.0, 13028.0, 13029.0, 13030.0, 13031.0, 13032.0, 13033.0, 13034.0, 13036.0, 13039.0, 13040.0, 13042.0, 13054.0, 13055.0, 13056.0, 13057.0, 13058.0, 13059.0, 13060.0, 13061.0, 13062.0, 13064.0, 13065.0, 13068.0, 13069.0, 13070.0, 13072.0, 13073.0, 13074.0, 13077.0, 13078.0, 13079.0, 13085.0, 13091.0, 13096.0, 13097.0, 13099.0, 13103.0, 13107.0, 13117.0, 13118.0, 13119.0, 13138.0, 13140.0, 13149.0, 13155.0)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 16:24:18,476 - 13542 - src.utils.log - INFO - βœ… Fetched 2569 rows - __SPLIT__ 2026-05-08 16:24:18,477 - 13542 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-05-08 16:24:32,513 - 13542 - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionAutoGenerationId FROM Billing.TransactionAutoGeneration WHERE ServiceSetupId IN (16385, 16386, 16387, 16390, 16393, 16394, 16397, 16398, 16399, 16400, 16401, 16402, 16403, 16404, 16412, 16413, 16414, 16415, 16417, 16418, 16419, 16423, 16426, 16429, 16434, 16435, 16436, 16437, 16439, 16440, 16443, 16444, 16446, 16452, 16454, 16455, 16456, 16457, 16458, 16459, 16460, 16462, 16463, 16466, 16469, 16472, 16478, 16479, 16480, 16481, 16482, 16485, 16486, 16488, 16490, 16494, 16495, 16496, 16497, 16498, 16502, 16503, 16504, 16505, 16511, 16512, 16513, 16514, 16515, 16516, 16517, 16519, 16524, 16529, 16530, 16531, 16533, 16537, 16541, 16542, 16543, 16544, 16545, 16546, 16547, 16548, 16549, 16550, 16551, 16552, 16553, 16554, 16555, 16558, 16559, 16560, 16561, 16562, 16563, 16566, 16567, 16568, 16569, 16577, 16578, 16579, 16580, 16582, 16584, 16585, 16586, 16587, 16588, 16589, 16594, 16595, 16601, 16602, 16604, 16605, 16617, 16626, 16630, 16633, 16636, 16637, 16638, 16639, 16640, 16646, 16648, 16674, 16684, 16685, 16710, 16712, 16716, 16724, 16725, 16727, 16731, 16732, 16733, 16734, 16737, 16739, 16740, 16741, 16742, 16749, 16751, 16752, 16753, 16754, 16755, 16756, 16757, 16758, 16759, 16761, 16762, 16763, 16764, 16765, 16766, 16767, 16768, 16769, 16770, 16772, 16773, 16774, 16775, 16776, 16777, 16778, 16779, 16784, 16786, 16787, 16788, 16789, 16790, 16791, 16792, 16793, 16794, 16798, 16799, 16803, 16804, 16806, 16811, 16815, 16816, 16817, 16821, 16825, 16827, 16828, 16840, 16846, 16847, 16852, 16854, 16856, 16857, 16882, 16883, 16884, 16885, 16886, 16887, 16889, 16890, 16891, 16892, 16893, 16894, 16897, 16901, 16902, 16904, 16905, 16908, 16910, 16911, 16912, 16913, 16914, 16915, 16916, 16917, 16918, 16920, 16921, 16922, 16923, 16924, 16925, 16926, 16927, 16932, 16934, 16936, 16937, 16938, 16939, 16941, 16942, 16943, 16944, 16946, 16947, 16948, 16949, 16950, 16951, 16952, 16953, 16954, 16955, 16956, 16957, 16958, 16959, 16960, 16961, 16962, 16963, 16965, 16966, 16967, 16968, 16969, 16976, 16985, 16986, 16987, 16989, 16990, 16991, 16992, 16993, 16995, 16996, 16997, 16998, 16999, 17000, 17001, 17003, 17004, 17005, 17006, 17007, 17008, 17009, 17014, 17015, 17016, 17017, 17018, 17019, 17021, 17022, 17025, 17026, 17027, 17028, 17029, 17035, 17037, 17040, 17042, 17049, 17052, 17055, 17057, 17061, 17063, 17064, 17065, 17066, 17067, 17068, 17069, 17070, 17071, 17072, 17073, 17074, 17075, 17076, 17077, 17078, 17079, 17080, 17085, 17088, 17089, 17092, 17093, 17094, 17095, 17097, 17100, 17101, 17102, 17103, 17104, 17105, 17108, 17109, 17113, 17114, 17115, 17116, 17117, 17118, 17127, 17132, 17139, 17145, 17148, 17158, 17162, 17163, 17165, 17168, 17172, 17176, 17178, 17181, 17182, 17183, 17186, 17187, 17188, 17190, 17192, 17194, 17198, 17200, 17202, 17203, 17204, 17206, 17211, 17214, 17215, 17216, 17218, 17220, 17221, 17222, 17223, 17226, 17239, 17240, 17247, 17248, 17251, 17252, 17253, 17256, 17257, 17263, 17265, 17270, 17271, 17275, 17283, 17296, 17298, 17299, 17300, 17301, 17302, 17303, 17304, 17311, 17313, 17314, 17319, 17321, 17324, 17325, 17326, 17328, 17334, 17335, 17336, 17337, 17338, 17339, 17340, 17341, 17342, 17343, 17344, 17345, 17346, 17347, 17349, 17350, 17352, 17358, 17359, 17360, 17361, 17362, 17363, 17367, 17368, 17369, 17371, 17372, 17376, 17377, 17380, 17381, 17383, 17384, 17386, 17388, 17389, 17391, 17392, 17393, 17397, 17399, 17400, 17401, 17402, 17403, 17404, 17406, 17407, 17408, 17409, 17410, 17411, 17412, 17415, 17416, 17419, 17421, 17422, 17425, 17426, 17430, 17431, 17437, 17439, 17446, 17448, 17456, 17457, 17458, 17459, 17461, 17463, 17464, 17466, 17472, 17474, 17475, 17476, 17477, 17478, 17481, 17482, 17483, 17486, 17487, 17488, 17490, 17494, 17496, 17497, 17498, 17499, 17501, 17503, 17504, 17508, 17509, 17511, 17512, 17513, 17514, 17515, 17516, 17517, 17518, 17519, 17524, 17525, 17526, 17527, 17528, 17530, 17532, 17534, 17540, 17543, 17544, 17545, 17546, 17547, 17548, 17549, 17550, 17551, 17552, 17553, 17554, 17555, 17556, 17559, 17561, 17565, 17566, 17567, 17568, 17573, 17574, 17575, 17576, 17578, 17580, 17585, 17586, 17587, 17593, 17594, 17596, 17597, 17599, 17600, 17603, 17604, 17605, 17607, 17608, 17609, 17611, 17612, 17613, 17614, 17615, 17616, 17619, 17620, 17623, 17624, 17625, 17629, 17630, 17632, 17635, 17637, 17639, 17640, 17644, 17647, 17658, 17659, 17661, 17663, 17664, 17665, 17667, 17668, 17669, 17670, 17671, 17673, 17674, 17676, 17677, 17678, 17679, 17683, 17684, 17685, 17686, 17687, 17688, 17692, 17693, 17694, 17695, 17696, 17697, 17698, 17699, 17700, 17701, 17702, 17703, 17705, 17706, 17707, 17710, 17713, 17714, 17715, 17716, 17719, 17720, 17721, 17726, 17727, 17728, 17729, 17730, 17731, 17732, 17733, 17736, 17739, 17740, 17744, 17745, 17746, 17747, 17748, 17751, 17752, 17753, 17754, 17755, 17756, 17757, 17760, 17763, 17764, 17766, 17767, 17768, 17769, 17771, 17772, 17774, 17775, 17780, 17781, 17782, 17783, 17785, 17786, 17787, 17788, 17790, 17792, 17794, 17798, 17800, 17801, 17803, 17805, 17810, 17811, 17812, 17814, 17815, 17816, 17819, 17823, 17824, 17826, 17827, 17828, 17835, 17836, 17837, 17838, 17839, 17841, 17842, 17843, 17844, 17845, 17852, 17853, 17856, 17857, 17858, 17859, 17860, 17877, 17878, 17879, 17883, 17885, 17888, 17889, 17891, 17895, 17897, 17899, 17901, 17902, 17904, 17905, 17907, 17908, 17909, 17910, 17911, 17913, 17914, 17915, 17916, 17918, 17919, 17920, 17924, 17925, 17926, 17927, 17930, 17933, 17935, 17936, 17938, 17940, 17941, 17942, 17945, 17946, 17948, 17949, 17950, 17951, 17952, 17953, 17954, 17955, 17956, 17958, 17960, 17962, 17965, 17966, 17967, 17968, 17969, 17970, 17972, 17973, 17974, 17975, 17976, 17978, 17980, 17984, 17987, 17989, 17991, 17993, 17994, 17995, 17996, 17997, 18000, 18001, 18003, 18004, 18005, 18007, 18009, 18011, 18012, 18014, 18018, 18019, 18020, 18027, 18028, 18030, 18031, 18033, 18034, 18036, 18037, 18038, 18040, 18051, 18052, 18053, 18055, 18056, 18057, 18058, 18060, 18063, 18071, 18072, 18077, 18078, 18079, 18080, 18081, 18083, 18086, 18091, 18095, 18097, 18102, 18113, 18116, 18119, 18133, 18134, 18138, 18143, 18144, 18148, 18153, 18154, 18155, 18163, 18173, 18174, 18175, 18180, 18181, 18182, 18183, 18186, 18188, 18191, 18193, 18195, 18196, 18197, 18203, 18205, 18207, 18209, 18210, 18212, 18216, 18217, 18218, 18219, 18220, 18221, 18222, 18223, 18224, 18227, 18228, 18229, 18230, 18231, 18232, 18237, 18240, 18243, 18244, 18245, 18246, 18247, 18248, 18249, 18250, 18251, 18252, 18256, 18262, 18263, 18264, 18265, 18266, 18267, 18268, 18269, 18270, 18272, 18273, 18274, 18275, 18276, 18284, 18289, 18306, 18307, 18318, 18319, 18326, 18327, 18328, 18330, 18332, 18335, 18337, 18338, 18352, 18353, 18354, 18364, 18365, 18366, 18374, 18380, 18381, 18382, 18383, 18384, 18386, 18397, 18398, 18399, 18400, 18401, 18402, 18405, 18407, 18408, 18411, 18414, 18416, 18417, 18418, 18419, 18421, 18423, 18428, 18429, 18430, 18431, 18432, 18433, 18434, 18435, 18436, 18438, 18440, 18442, 18445, 18446, 18449, 18450, 18451, 18452, 18454, 18457, 18458, 18460, 18462, 18463, 18467, 18469, 18474, 18475, 18476, 18477, 18489, 18490, 18495, 18515, 18518, 18519, 18524, 18525, 18526, 18527, 18532, 18535, 18539, 18547, 18548, 18549, 18550, 18551, 18553, 18567, 18568, 18569, 18570, 18571, 18575, 18576, 18581, 18584, 18610, 18619, 18622, 18627, 18629, 18633, 18634, 18635, 18636, 18637, 18638, 18640, 18641, 18642, 18644, 18645, 18646, 18647, 18650, 18653, 18655, 18662, 18665, 18667, 18670, 18673, 18684, 18685, 18688, 18691, 18693, 18702, 18706, 18707, 18712, 18715, 18716, 18717, 18718, 18729, 18740, 18741, 18742, 18758, 18759, 18764, 18771, 18773, 18774, 18775, 18776, 18782, 18787, 18802, 18805, 18806, 18807, 18808, 18809, 18813, 18815, 18816, 18817, 18824, 18825, 18833, 18834, 18835, 18837, 18838, 18841, 18842, 18843, 18857, 18868, 18882, 18883, 18884, 18891, 18893, 18895, 18898, 18910, 18927, 18928, 18929, 18931, 18933, 18937, 18944, 18947, 18953, 18966, 18970, 18973, 18975, 18991, 19022, 19023, 19024, 19025, 19032, 19034, 19035, 19040, 19041, 19048, 19058, 19059, 19060, 19061, 19062, 19064, 19073, 19127, 19132, 19133, 19134, 19135, 19136, 19139, 19146, 19147, 19153, 19161, 19162, 19165, 19166, 19168, 19169, 19182, 19185, 19199, 19211, 19212, 19227, 19232, 19233, 19234, 19235, 19243, 19244, 19247, 19248, 19249, 19256, 19258, 19259, 19260, 19263, 19264, 19266, 19268, 19273, 19285, 19286, 19296, 19300, 19307, 19309, 19336, 19337, 19340, 19344, 19346, 19349, 19351, 19352, 19355, 19356, 19359, 19364, 19365, 19367, 19410, 19427, 19431, 19432, 19434, 19435, 19447, 19452, 19455, 19458, 19461, 19462, 19465, 19472, 19478, 19479, 19483, 19502, 19514, 19524, 19552, 19555, 19599, 19618, 19626, 19627, 19629, 19636, 19637, 19638, 19639, 19641, 19643, 19647, 19649, 19668, 19720, 19722, 19723, 19749, 19781, 19788, 19795, 19805, 19808, 19809, 19812, 19816, 19824, 19826, 19828, 19830, 19833, 19835, 19846, 19849, 19850, 19852, 19861, 19862, 19863, 19867, 19875, 19878, 19879, 19894, 19901, 19904, 19906, 19907, 19934, 19942, 19944, 19960, 19961, 19962, 19964, 19965, 19966, 19967, 19974, 19983, 19984, 19985, 19986, 19987, 19988, 19990, 20009, 20010, 20014, 20015, 20020, 20022, 20025, 20034, 20035, 20036, 20037, 20038, 20039, 20040, 20041, 20044, 20046, 20049, 20050, 20051, 20052, 20054, 20055, 20056, 20064, 20065, 20066, 20067, 20069, 20070, 20071, 20072, 20074, 20081, 20084, 20085, 20086, 20087, 20088, 20089, 20090, 20091, 20092, 20094, 20095, 20096, 20097, 20098, 20100, 20102, 20106, 20109, 20146, 20147, 20154, 20155, 20163, 20164, 20178, 20189, 20205, 20206, 20208, 20218, 20219, 20220, 3844, 20231, 20246, 20247, 20248, 20250, 3868, 3869, 20253, 20254, 20257, 20259, 20261, 20262, 20267, 20269, 3887, 3888, 3889, 20275, 20277, 20280, 20282, 20283, 20284, 20286, 3903, 20287, 20289, 3907, 3908, 3909, 3910, 20293, 3915, 3916, 20303, 20304, 3921, 3922, 3923, 3924, 20305, 3927, 3928, 3929, 3931, 3935, 20327, 20357, 20372, 20374, 20394, 20398, 20399, 20400, 20402, 20406, 20407, 20408, 20409, 20410, 20411, 20414, 20424, 20427, 20429, 20437, 20452, 20454, 20455, 20456, 20457, 20458, 20461, 20464, 20473, 20474, 20475, 20476, 20477, 20478, 20486, 20490, 20491, 20492, 20493, 20500, 20520, 20533, 20535, 20544, 20545, 20546, 20547, 20551, 20555, 20560, 20579, 20583, 20588, 20589, 20591, 20592, 20595, 20601, 20611, 20614, 20616, 20621, 20630, 20631, 20633, 20635, 20636, 20640, 20642, 20649, 20651, 20655, 20658, 20661, 20673, 20719, 20722, 20730, 20731, 20742, 20750, 20753, 20755, 20758, 20910, 20932, 20977, 20980, 20987, 21093, 21095, 21137, 21160, 21278, 21284, 21305, 21306, 21311, 21312, 21313, 21314, 21325, 21327, 21328, 21329, 21335, 21344, 21347, 21354, 21366, 21379, 21382, 21383, 21416, 21424, 21426, 21427, 21428, 21429, 21430, 21442, 21500, 21508, 21512, 21519, 21545, 21550, 21582, 21583, 21589, 21590, 21613, 21663, 21665, 21668, 21678, 21688, 21709, 21711, 21724, 21725, 21726, 21730, 21736, 21737, 21746, 21751, 22237, 21838, 21840, 21847, 21848, 21850, 21862, 21875, 21876, 21877, 21878, 21879, 21881, 21882, 21883, 21884, 21885, 21886, 21887, 21888, 21889, 21890, 21891, 21904, 21906, 21907, 21915, 21917, 21923, 21930, 21931, 21935, 21937, 21938, 21942, 21946, 21950, 21955, 21958, 21959, 21964, 21966, 21968, 21969, 21970, 21971, 21972, 21973, 21974, 21975, 21976, 21977, 21983, 21984, 21986, 21987, 21989, 21990, 21991, 21992, 21993, 21994, 21995, 21996, 21997, 21999, 22001, 22002, 22004, 22007, 22009, 22026, 22027, 22030, 22031, 22032, 22034, 22035, 22044, 22048, 22053, 22055, 22060, 22061, 22063, 22067, 22073, 22076, 22077, 22080, 22085, 22086, 22087, 22088, 22089, 22097, 22099, 22100, 22101, 22104, 22106, 22107, 22114, 22115, 22116, 22119, 22121, 13931, 22123, 22128, 22134, 22141, 22142, 22143, 22151, 22164, 22168, 22187, 14003, 22198, 14011, 14014, 14015, 14016, 14022, 14023, 14024, 14026, 22220, 14029, 14031, 14032, 14033, 14034, 14035, 14036, 14037, 14038, 14039, 22223, 22230, 14042, 22231, 22233, 22234, 14046, 14047, 22235, 14049, 14050, 14051, 22236, 14053, 14054, 22238, 14058, 14059, 14061, 14063, 14070, 14073, 14074, 14078, 14079, 14080, 14081, 14083, 14089, 14090, 22283, 14096, 22293, 22295, 22296, 22298, 22301, 22302, 22303, 22306, 22308, 14120, 14121, 14122, 14123, 22323, 22324, 22325, 14135, 14136, 14138, 22334, 22335, 22337, 22339, 22340, 22341, 22342, 22343, 22344, 22345, 22346, 22348, 22364, 22365, 22376, 22377, 22382, 22388, 22389, 22391, 22412, 22414, 22415, 22416, 22434, 22437, 22441, 22445, 22458, 22477, 22484, 14306, 14308, 22508, 22512, 22513, 22515, 22517, 22526, 22529, 22531, 22536, 22539, 22543, 22561, 22563, 22582, 22596, 22608, 22610, 22613, 22614, 22617, 22620, 22634, 14445, 22638, 22639, 22640, 14454, 22652, 22661, 22667, 22668, 22671, 22676, 22687, 22696, 14511, 22703, 14519, 22715, 22720, 22722, 22724, 22730, 22762, 22763, 22765, 22768, 22771, 22776, 22777, 22778, 14591, 22785, 14595, 22788, 22789, 22790, 22804, 22805, 22829, 22832, 14646, 14647, 14648, 14650, 14651, 22844, 22847, 22849, 14659, 14662, 14663, 14664, 14666, 14667, 14668, 22859, 14670, 22871, 14681, 22900, 14709, 14722, 14727, 22923, 22924, 22931, 14740, 14742, 14743, 14745, 14746, 14747, 14748, 14749, 22943, 22955, 22966, 22968, 22969, 22970, 22971, 22972, 22976, 22977, 22979, 22982, 22983, 22984, 22985, 22987, 22988, 22994, 22998, 23002, 23003, 23004, 23007, 23008, 23009, 23010, 23016, 23018, 23021, 23025, 23026, 23051, 23052, 23055, 23063, 23064, 23066, 23068, 23069, 14880, 14881, 14892, 23086, 23089, 23090, 23091, 23092, 14901, 23093, 23096, 23097, 23098, 23099, 23100, 23101, 23102, 23104, 23105, 23106, 14915, 23107, 14927, 14928, 14962, 14965, 14966, 23163, 23165, 14974, 14975, 23185, 15010, 15011, 23221, 23222, 23224, 15033, 23226, 23228, 23229, 23249, 23266, 15095, 15124, 15129, 15130, 15133, 15138, 15142, 15143, 15144, 23338, 23342, 15152, 23346, 23348, 23355, 23356, 15167, 15168, 15169, 15171, 15172, 15186, 15201, 15202, 15203, 15204, 23401, 15210, 23402, 15227, 15230, 15231, 15232, 15275, 15281, 15292, 15293, 23493, 23494, 23496, 15310, 15313, 23510, 15323, 23516, 23517, 23518, 23519, 23522, 15331, 23523, 23524, 15336, 23536, 23550, 23555, 23556, 23557, 23558, 15368, 23567, 15386, 23585, 15395, 15403, 23595, 15407, 23602, 15411, 23614, 23615, 23618, 23619, 23622, 23623, 15432, 15434, 23628, 15438, 15439, 23630, 23631, 15442, 23632, 23636, 15446, 23638, 15448, 23639, 15450, 15451, 15452, 23640, 15454, 15455, 23641, 15457, 23642, 23643, 23644, 23645, 23646, 15463, 23647, 23648, 23651, 23653, 23655, 15469, 23658, 23660, 23661, 15473, 23662, 23664, 23666, 23668, 23674, 23675, 23678, 23679, 23680, 23684, 23687, 23692, 23693, 23695, 15510, 15512, 23705, 23706, 23718, 23719, 15530, 15531, 15532, 23725, 15535, 15536, 15537, 15538, 23729, 15540, 15541, 15543, 15546, 23738, 15549, 23744, 15557, 23751, 23752, 23755, 23756, 15565, 15566, 15567, 23757, 23760, 15570, 15571, 15572, 23761, 15577, 23769, 23770, 23772, 15586, 15602, 15604, 15616, 15617, 23812, 23814, 15625, 23818, 23822, 23825, 23835, 15644, 23836, 23837, 23838, 23840, 23841, 23842, 23843, 23851, 15662, 15667, 23860, 23861, 15681, 15682, 15684, 15685, 15686, 15689, 15690, 15691, 15692, 15697, 15698, 15700, 15701, 15702, 15707, 15709, 15710, 15711, 15712, 15714, 15720, 15721, 15722, 15729, 15739, 15741, 15744, 15745, 15746, 15747, 15748, 15749, 15750, 15751, 15763, 15803, 15805, 15806, 15807, 15818, 15819, 15820, 15821, 15826, 15828, 15830, 15832, 15833, 15834, 15835, 15838, 15839, 15841, 15842, 15843, 15848, 15849, 15851, 15853, 15854, 15858, 15859, 15860, 15861, 15864, 15865, 15866, 15867, 15869, 15877, 15879, 15882, 15883, 15884, 15885, 15889, 15890, 15893, 15894, 15897, 15898, 15900, 15901, 15902, 15903, 15904, 15905, 15915, 15916, 15919, 15922, 15923, 15924, 15928, 15930, 15931, 15935, 15936, 15937, 15938, 15940, 15943, 15947, 15957, 15961, 15963, 15964, 15965, 15966, 15967, 15968, 15969, 15970, 15971, 15972, 15973, 15974, 15977, 15980, 15982, 15983, 15984, 15985, 15986, 15987, 15988, 15989, 15992, 15993, 15994, 15996, 15997, 15998, 15999, 16000, 16001, 16008, 16012, 16016, 16017, 16018, 16029, 16032, 16038, 16039, 16044, 16045, 16047, 16048, 16051, 16052, 16053, 16057, 16058, 16059, 16060, 16061, 16063, 16064, 16066, 16068, 16069, 16072, 16073, 16074, 16076, 16077, 16078, 16080, 16081, 16084, 16089, 16091, 16092, 16093, 16096, 16097, 16099, 16100, 16101, 16102, 16103, 16104, 16105, 16106, 16107, 16108, 16109, 16110, 16111, 16112, 16113, 16114, 16115, 16116, 16117, 16119, 16123, 16124, 16125, 16126, 16127, 16128, 16134, 16141, 16142, 16144, 16145, 16146, 16148, 16152, 16153, 16154, 16155, 16157, 16158, 16160, 16161, 16164, 16167, 16168, 16170, 16171, 16173, 16174, 16179, 16180, 16182, 16183, 16184, 16185, 16186, 16190, 16191, 16192, 16193, 16194, 16195, 16196, 16197, 16198, 16199, 16200, 16201, 16202, 16203, 16204, 16206, 16207, 16208, 16210, 16211, 16212, 16213, 16214, 16215, 16217, 16220, 16221, 16229, 16230, 16231, 16233, 16234, 16236, 16238, 16239, 16240, 16241, 16242, 16243, 16244, 16245, 16246, 16247, 16249, 16283, 16284, 16285, 16286, 16287, 16288, 16289, 16290, 16291, 16292, 16293, 16295, 16296, 16297, 16298, 16299, 16300, 16302, 16303, 16304, 16305, 16306, 16307, 16308, 16309, 16310, 16311, 16312, 16316, 16317, 16318, 16320, 16321, 16322, 16324, 16326, 16331, 16332, 16333, 16336, 16337, 16341, 16342, 16343, 16344, 16345, 16347, 16348, 16349, 16350, 16352, 16353, 16356, 16357, 16358, 16359, 16360, 16361, 16362, 16363, 16364, 16365, 16366, 16370, 16371, 16372, 16374, 16375, 16376, 16377, 16378, 16379, 16380, 16381, 16383) AND TransactionDate BETWEEN '2026-05-08 00:00:00' AND '2026-06-30 00:00:00' AND IsActive = 1 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 16:24:33,130 - 13542 - src.utils.log - INFO - βœ… Fetched 6 rows - __SPLIT__ 2026-05-08 16:24:33,131 - 13542 - src.utils.log - INFO - πŸ” Fetching data: SELECT InvoiceAutoGenerationId FROM Billing.InvoiceAutoGeneration WHERE TransactionAutoGenerationId IN (798913, 798924, 798925, 798926, 798910, 798911) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 16:24:33,423 - 13542 - src.utils.log - INFO - βœ… Fetched 6 rows - __SPLIT__ 2026-05-08 16:24:33,423 - 13542 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM Billing.InvoiceChargesAutoGeneration WHERE InvoiceAutoGenerationId IN (853825, 853826, 853827, 853811, 853812, 853814) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 16:24:33,720 - 13542 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-08 16:24:33,720 - 13542 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM Billing.InvoiceAutoGenerationAppliedDiscount WHERE InvoiceAutoGenerationId IN (853825, 853826, 853827, 853811, 853812, 853814) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 16:24:34,022 - 13542 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-08 16:24:34,022 - 13542 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM Billing.InvoiceAutoGeneration WHERE InvoiceAutoGenerationId IN (853825, 853826, 853827, 853811, 853812, 853814) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 16:24:34,325 - 13542 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-08 16:24:34,325 - 13542 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM Billing.TransactionAutoGeneration WHERE TransactionAutoGenerationId IN (798913, 798924, 798925, 798926, 798910, 798911) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 16:24:34,622 - 13542 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-08 16:24:34,715 - 13542 - src.utils.log - INFO - πŸ” Fetching data: SELECT Inv.ServiceSetupId, MAX(Inv.InvoiceDate) AS InvoiceDate FROM Billing.Invoice Inv INNER JOIN Billing.[Transaction] T ON Inv.TransactionId = T.TransactionId WHERE Inv.InvoiceDate BETWEEN '2026-05-08 00:00:00' AND '2026-06-30 00:00:00' AND Inv.IsActive = 1 AND Inv.IsDelete = 0 AND T.IsActive = 1 AND T.IsDelete = 0 AND Inv.ServiceSetupId IN (16385, 16386, 16387, 16390, 16393, 16394, 16397, 16398, 16399, 16400, 16401, 16402, 16403, 16404, 16412, 16413, 16414, 16415, 16417, 16418, 16419, 16423, 16426, 16429, 16434, 16435, 16436, 16437, 16439, 16440, 16443, 16444, 16446, 16452, 16454, 16455, 16456, 16457, 16458, 16459, 16460, 16462, 16463, 16466, 16469, 16472, 16478, 16479, 16480, 16481, 16482, 16485, 16486, 16488, 16490, 16494, 16495, 16496, 16497, 16498, 16502, 16503, 16504, 16505, 16511, 16512, 16513, 16514, 16515, 16516, 16517, 16519, 16524, 16529, 16530, 16531, 16533, 16537, 16541, 16542, 16543, 16544, 16545, 16546, 16547, 16548, 16549, 16550, 16551, 16552, 16553, 16554, 16555, 16558, 16559, 16560, 16561, 16562, 16563, 16566, 16567, 16568, 16569, 16577, 16578, 16579, 16580, 16582, 16584, 16585, 16586, 16587, 16588, 16589, 16594, 16595, 16601, 16602, 16604, 16605, 16617, 16626, 16630, 16633, 16636, 16637, 16638, 16639, 16640, 16646, 16648, 16674, 16684, 16685, 16710, 16712, 16716, 16724, 16725, 16727, 16731, 16732, 16733, 16734, 16737, 16739, 16740, 16741, 16742, 16749, 16751, 16752, 16753, 16754, 16755, 16756, 16757, 16758, 16759, 16761, 16762, 16763, 16764, 16765, 16766, 16767, 16768, 16769, 16770, 16772, 16773, 16774, 16775, 16776, 16777, 16778, 16779, 16784, 16786, 16787, 16788, 16789, 16790, 16791, 16792, 16793, 16794, 16798, 16799, 16803, 16804, 16806, 16811, 16815, 16816, 16817, 16821, 16825, 16827, 16828, 16840, 16846, 16847, 16852, 16854, 16856, 16857, 16882, 16883, 16884, 16885, 16886, 16887, 16889, 16890, 16891, 16892, 16893, 16894, 16897, 16901, 16902, 16904, 16905, 16908, 16910, 16911, 16912, 16913, 16914, 16915, 16916, 16917, 16918, 16920, 16921, 16922, 16923, 16924, 16925, 16926, 16927, 16932, 16934, 16936, 16937, 16938, 16939, 16941, 16942, 16943, 16944, 16946, 16947, 16948, 16949, 16950, 16951, 16952, 16953, 16954, 16955, 16956, 16957, 16958, 16959, 16960, 16961, 16962, 16963, 16965, 16966, 16967, 16968, 16969, 16976, 16985, 16986, 16987, 16989, 16990, 16991, 16992, 16993, 16995, 16996, 16997, 16998, 16999, 17000, 17001, 17003, 17004, 17005, 17006, 17007, 17008, 17009, 17014, 17015, 17016, 17017, 17018, 17019, 17021, 17022, 17025, 17026, 17027, 17028, 17029, 17035, 17037, 17040, 17042, 17049, 17052, 17055, 17057, 17061, 17063, 17064, 17065, 17066, 17067, 17068, 17069, 17070, 17071, 17072, 17073, 17074, 17075, 17076, 17077, 17078, 17079, 17080, 17085, 17088, 17089, 17092, 17093, 17094, 17095, 17097, 17100, 17101, 17102, 17103, 17104, 17105, 17108, 17109, 17113, 17114, 17115, 17116, 17117, 17118, 17127, 17132, 17139, 17145, 17148, 17158, 17162, 17163, 17165, 17168, 17172, 17176, 17178, 17181, 17182, 17183, 17186, 17187, 17188, 17190, 17192, 17194, 17198, 17200, 17202, 17203, 17204, 17206, 17211, 17214, 17215, 17216, 17218, 17220, 17221, 17222, 17223, 17226, 17239, 17240, 17247, 17248, 17251, 17252, 17253, 17256, 17257, 17263, 17265, 17270, 17271, 17275, 17283, 17296, 17298, 17299, 17300, 17301, 17302, 17303, 17304, 17311, 17313, 17314, 17319, 17321, 17324, 17325, 17326, 17328, 17334, 17335, 17336, 17337, 17338, 17339, 17340, 17341, 17342, 17343, 17344, 17345, 17346, 17347, 17349, 17350, 17352, 17358, 17359, 17360, 17361, 17362, 17363, 17367, 17368, 17369, 17371, 17372, 17376, 17377, 17380, 17381, 17383, 17384, 17386, 17388, 17389, 17391, 17392, 17393, 17397, 17399, 17400, 17401, 17402, 17403, 17404, 17406, 17407, 17408, 17409, 17410, 17411, 17412, 17415, 17416, 17419, 17421, 17422, 17425, 17426, 17430, 17431, 17437, 17439, 17446, 17448, 17456, 17457, 17458, 17459, 17461, 17463, 17464, 17466, 17472, 17474, 17475, 17476, 17477, 17478, 17481, 17482, 17483, 17486, 17487, 17488, 17490, 17494, 17496, 17497, 17498, 17499, 17501, 17503, 17504, 17508, 17509, 17511, 17512, 17513, 17514, 17515, 17516, 17517, 17518, 17519, 17524, 17525, 17526, 17527, 17528, 17530, 17532, 17534, 17540, 17543, 17544, 17545, 17546, 17547, 17548, 17549, 17550, 17551, 17552, 17553, 17554, 17555, 17556, 17559, 17561, 17565, 17566, 17567, 17568, 17573, 17574, 17575, 17576, 17578, 17580, 17585, 17586, 17587, 17593, 17594, 17596, 17597, 17599, 17600, 17603, 17604, 17605, 17607, 17608, 17609, 17611, 17612, 17613, 17614, 17615, 17616, 17619, 17620, 17623, 17624, 17625, 17629, 17630, 17632, 17635, 17637, 17639, 17640, 17644, 17647, 17658, 17659, 17661, 17663, 17664, 17665, 17667, 17668, 17669, 17670, 17671, 17673, 17674, 17676, 17677, 17678, 17679, 17683, 17684, 17685, 17686, 17687, 17688, 17692, 17693, 17694, 17695, 17696, 17697, 17698, 17699, 17700, 17701, 17702, 17703, 17705, 17706, 17707, 17710, 17713, 17714, 17715, 17716, 17719, 17720, 17721, 17726, 17727, 17728, 17729, 17730, 17731, 17732, 17733, 17736, 17739, 17740, 17744, 17745, 17746, 17747, 17748, 17751, 17752, 17753, 17754, 17755, 17756, 17757, 17760, 17763, 17764, 17766, 17767, 17768, 17769, 17771, 17772, 17774, 17775, 17780, 17781, 17782, 17783, 17785, 17786, 17787, 17788, 17790, 17792, 17794, 17798, 17800, 17801, 17803, 17805, 17810, 17811, 17812, 17814, 17815, 17816, 17819, 17823, 17824, 17826, 17827, 17828, 17835, 17836, 17837, 17838, 17839, 17841, 17842, 17843, 17844, 17845, 17852, 17853, 17856, 17857, 17858, 17859, 17860, 17877, 17878, 17879, 17883, 17885, 17888, 17889, 17891, 17895, 17897, 17899, 17901, 17902, 17904, 17905, 17907, 17908, 17909, 17910, 17911, 17913, 17914, 17915, 17916, 17918, 17919, 17920, 17924, 17925, 17926, 17927, 17930, 17933, 17935, 17936, 17938, 17940, 17941, 17942, 17945, 17946, 17948, 17949, 17950, 17951, 17952, 17953, 17954, 17955, 17956, 17958, 17960, 17962, 17965, 17966, 17967, 17968, 17969, 17970, 17972, 17973, 17974, 17975, 17976, 17978, 17980, 17984, 17987, 17989, 17991, 17993, 17994, 17995, 17996, 17997, 18000, 18001, 18003, 18004, 18005, 18007, 18009, 18011, 18012, 18014, 18018, 18019, 18020, 18027, 18028, 18030, 18031, 18033, 18034, 18036, 18037, 18038, 18040, 18051, 18052, 18053, 18055, 18056, 18057, 18058, 18060, 18063, 18071, 18072, 18077, 18078, 18079, 18080, 18081, 18083, 18086, 18091, 18095, 18097, 18102, 18113, 18116, 18119, 18133, 18134, 18138, 18143, 18144, 18148, 18153, 18154, 18155, 18163, 18173, 18174, 18175, 18180, 18181, 18182, 18183, 18186, 18188, 18191, 18193, 18195, 18196, 18197, 18203, 18205, 18207, 18209, 18210, 18212, 18216, 18217, 18218, 18219, 18220, 18221, 18222, 18223, 18224, 18227, 18228, 18229, 18230, 18231, 18232, 18237, 18240, 18243, 18244, 18245, 18246, 18247, 18248, 18249, 18250, 18251, 18252, 18256, 18262, 18263, 18264, 18265, 18266, 18267, 18268, 18269, 18270, 18272, 18273, 18274, 18275, 18276, 18284, 18289, 18306, 18307, 18318, 18319, 18326, 18327, 18328, 18330, 18332, 18335, 18337, 18338, 18352, 18353, 18354, 18364, 18365, 18366, 18374, 18380, 18381, 18382, 18383, 18384, 18386, 18397, 18398, 18399, 18400, 18401, 18402, 18405, 18407, 18408, 18411, 18414, 18416, 18417, 18418, 18419, 18421, 18423, 18428, 18429, 18430, 18431, 18432, 18433, 18434, 18435, 18436, 18438, 18440, 18442, 18445, 18446, 18449, 18450, 18451, 18452, 18454, 18457, 18458, 18460, 18462, 18463, 18467, 18469, 18474, 18475, 18476, 18477, 18489, 18490, 18495, 18515, 18518, 18519, 18524, 18525, 18526, 18527, 18532, 18535, 18539, 18547, 18548, 18549, 18550, 18551, 18553, 18567, 18568, 18569, 18570, 18571, 18575, 18576, 18581, 18584, 18610, 18619, 18622, 18627, 18629, 18633, 18634, 18635, 18636, 18637, 18638, 18640, 18641, 18642, 18644, 18645, 18646, 18647, 18650, 18653, 18655, 18662, 18665, 18667, 18670, 18673, 18684, 18685, 18688, 18691, 18693, 18702, 18706, 18707, 18712, 18715, 18716, 18717, 18718, 18729, 18740, 18741, 18742, 18758, 18759, 18764, 18771, 18773, 18774, 18775, 18776, 18782, 18787, 18802, 18805, 18806, 18807, 18808, 18809, 18813, 18815, 18816, 18817, 18824, 18825, 18833, 18834, 18835, 18837, 18838, 18841, 18842, 18843, 18857, 18868, 18882, 18883, 18884, 18891, 18893, 18895, 18898, 18910, 18927, 18928, 18929, 18931, 18933, 18937, 18944, 18947, 18953, 18966, 18970, 18973, 18975, 18991, 19022, 19023, 19024, 19025, 19032, 19034, 19035, 19040, 19041, 19048, 19058, 19059, 19060, 19061, 19062, 19064, 19073, 19127, 19132, 19133, 19134, 19135, 19136, 19139, 19146, 19147, 19153, 19161, 19162, 19165, 19166, 19168, 19169, 19182, 19185, 19199, 19211, 19212, 19227, 19232, 19233, 19234, 19235, 19243, 19244, 19247, 19248, 19249, 19256, 19258, 19259, 19260, 19263, 19264, 19266, 19268, 19273, 19285, 19286, 19296, 19300, 19307, 19309, 19336, 19337, 19340, 19344, 19346, 19349, 19351, 19352, 19355, 19356, 19359, 19364, 19365, 19367, 19410, 19427, 19431, 19432, 19434, 19435, 19447, 19452, 19455, 19458, 19461, 19462, 19465, 19472, 19478, 19479, 19483, 19502, 19514, 19524, 19552, 19555, 19599, 19618, 19626, 19627, 19629, 19636, 19637, 19638, 19639, 19641, 19643, 19647, 19649, 19668, 19720, 19722, 19723, 19749, 19781, 19788, 19795, 19805, 19808, 19809, 19812, 19816, 19824, 19826, 19828, 19830, 19833, 19835, 19846, 19849, 19850, 19852, 19861, 19862, 19863, 19867, 19875, 19878, 19879, 19894, 19901, 19904, 19906, 19907, 19934, 19942, 19944, 19960, 19961, 19962, 19964, 19965, 19966, 19967, 19974, 19983, 19984, 19985, 19986, 19987, 19988, 19990, 20009, 20010, 20014, 20015, 20020, 20022, 20025, 20034, 20035, 20036, 20037, 20038, 20039, 20040, 20041, 20044, 20046, 20049, 20050, 20051, 20052, 20054, 20055, 20056, 20064, 20065, 20066, 20067, 20069, 20070, 20071, 20072, 20074, 20081, 20084, 20085, 20086, 20087, 20088, 20089, 20090, 20091, 20092, 20094, 20095, 20096, 20097, 20098, 20100, 20102, 20106, 20109, 20146, 20147, 20154, 20155, 20163, 20164, 20178, 20189, 20205, 20206, 20208, 20218, 20219, 20220, 3844, 20231, 20246, 20247, 20248, 20250, 3868, 3869, 20253, 20254, 20257, 20259, 20261, 20262, 20267, 20269, 3887, 3888, 3889, 20275, 20277, 20280, 20282, 20283, 20284, 20286, 3903, 20287, 20289, 3907, 3908, 3909, 3910, 20293, 3915, 3916, 20303, 20304, 3921, 3922, 3923, 3924, 20305, 3927, 3928, 3929, 3931, 3935, 20327, 20357, 20372, 20374, 20394, 20398, 20399, 20400, 20402, 20406, 20407, 20408, 20409, 20410, 20411, 20414, 20424, 20427, 20429, 20437, 20452, 20454, 20455, 20456, 20457, 20458, 20461, 20464, 20473, 20474, 20475, 20476, 20477, 20478, 20486, 20490, 20491, 20492, 20493, 20500, 20520, 20533, 20535, 20544, 20545, 20546, 20547, 20551, 20555, 20560, 20579, 20583, 20588, 20589, 20591, 20592, 20595, 20601, 20611, 20614, 20616, 20621, 20630, 20631, 20633, 20635, 20636, 20640, 20642, 20649, 20651, 20655, 20658, 20661, 20673, 20719, 20722, 20730, 20731, 20742, 20750, 20753, 20755, 20758, 20910, 20932, 20977, 20980, 20987, 21093, 21095, 21137, 21160, 21278, 21284, 21305, 21306, 21311, 21312, 21313, 21314, 21325, 21327, 21328, 21329, 21335, 21344, 21347, 21354, 21366, 21379, 21382, 21383, 21416, 21424, 21426, 21427, 21428, 21429, 21430, 21442, 21500, 21508, 21512, 21519, 21545, 21550, 21582, 21583, 21589, 21590, 21613, 21663, 21665, 21668, 21678, 21688, 21709, 21711, 21724, 21725, 21726, 21730, 21736, 21737, 21746, 21751, 22237, 21838, 21840, 21847, 21848, 21850, 21862, 21875, 21876, 21877, 21878, 21879, 21881, 21882, 21883, 21884, 21885, 21886, 21887, 21888, 21889, 21890, 21891, 21904, 21906, 21907, 21915, 21917, 21923, 21930, 21931, 21935, 21937, 21938, 21942, 21946, 21950, 21955, 21958, 21959, 21964, 21966, 21968, 21969, 21970, 21971, 21972, 21973, 21974, 21975, 21976, 21977, 21983, 21984, 21986, 21987, 21989, 21990, 21991, 21992, 21993, 21994, 21995, 21996, 21997, 21999, 22001, 22002, 22004, 22007, 22009, 22026, 22027, 22030, 22031, 22032, 22034, 22035, 22044, 22048, 22053, 22055, 22060, 22061, 22063, 22067, 22073, 22076, 22077, 22080, 22085, 22086, 22087, 22088, 22089, 22097, 22099, 22100, 22101, 22104, 22106, 22107, 22114, 22115, 22116, 22119, 22121, 13931, 22123, 22128, 22134, 22141, 22142, 22143, 22151, 22164, 22168, 22187, 14003, 22198, 14011, 14014, 14015, 14016, 14022, 14023, 14024, 14026, 22220, 14029, 14031, 14032, 14033, 14034, 14035, 14036, 14037, 14038, 14039, 22223, 22230, 14042, 22231, 22233, 22234, 14046, 14047, 22235, 14049, 14050, 14051, 22236, 14053, 14054, 22238, 14058, 14059, 14061, 14063, 14070, 14073, 14074, 14078, 14079, 14080, 14081, 14083, 14089, 14090, 22283, 14096, 22293, 22295, 22296, 22298, 22301, 22302, 22303, 22306, 22308, 14120, 14121, 14122, 14123, 22323, 22324, 22325, 14135, 14136, 14138, 22334, 22335, 22337, 22339, 22340, 22341, 22342, 22343, 22344, 22345, 22346, 22348, 22364, 22365, 22376, 22377, 22382, 22388, 22389, 22391, 22412, 22414, 22415, 22416, 22434, 22437, 22441, 22445, 22458, 22477, 22484, 14306, 14308, 22508, 22512, 22513, 22515, 22517, 22526, 22529, 22531, 22536, 22539, 22543, 22561, 22563, 22582, 22596, 22608, 22610, 22613, 22614, 22617, 22620, 22634, 14445, 22638, 22639, 22640, 14454, 22652, 22661, 22667, 22668, 22671, 22676, 22687, 22696, 14511, 22703, 14519, 22715, 22720, 22722, 22724, 22730, 22762, 22763, 22765, 22768, 22771, 22776, 22777, 22778, 14591, 22785, 14595, 22788, 22789, 22790, 22804, 22805, 22829, 22832, 14646, 14647, 14648, 14650, 14651, 22844, 22847, 22849, 14659, 14662, 14663, 14664, 14666, 14667, 14668, 22859, 14670, 22871, 14681, 22900, 14709, 14722, 14727, 22923, 22924, 22931, 14740, 14742, 14743, 14745, 14746, 14747, 14748, 14749, 22943, 22955, 22966, 22968, 22969, 22970, 22971, 22972, 22976, 22977, 22979, 22982, 22983, 22984, 22985, 22987, 22988, 22994, 22998, 23002, 23003, 23004, 23007, 23008, 23009, 23010, 23016, 23018, 23021, 23025, 23026, 23051, 23052, 23055, 23063, 23064, 23066, 23068, 23069, 14880, 14881, 14892, 23086, 23089, 23090, 23091, 23092, 14901, 23093, 23096, 23097, 23098, 23099, 23100, 23101, 23102, 23104, 23105, 23106, 14915, 23107, 14927, 14928, 14962, 14965, 14966, 23163, 23165, 14974, 14975, 23185, 15010, 15011, 23221, 23222, 23224, 15033, 23226, 23228, 23229, 23249, 23266, 15095, 15124, 15129, 15130, 15133, 15138, 15142, 15143, 15144, 23338, 23342, 15152, 23346, 23348, 23355, 23356, 15167, 15168, 15169, 15171, 15172, 15186, 15201, 15202, 15203, 15204, 23401, 15210, 23402, 15227, 15230, 15231, 15232, 15275, 15281, 15292, 15293, 23493, 23494, 23496, 15310, 15313, 23510, 15323, 23516, 23517, 23518, 23519, 23522, 15331, 23523, 23524, 15336, 23536, 23550, 23555, 23556, 23557, 23558, 15368, 23567, 15386, 23585, 15395, 15403, 23595, 15407, 23602, 15411, 23614, 23615, 23618, 23619, 23622, 23623, 15432, 15434, 23628, 15438, 15439, 23630, 23631, 15442, 23632, 23636, 15446, 23638, 15448, 23639, 15450, 15451, 15452, 23640, 15454, 15455, 23641, 15457, 23642, 23643, 23644, 23645, 23646, 15463, 23647, 23648, 23651, 23653, 23655, 15469, 23658, 23660, 23661, 15473, 23662, 23664, 23666, 23668, 23674, 23675, 23678, 23679, 23680, 23684, 23687, 23692, 23693, 23695, 15510, 15512, 23705, 23706, 23718, 23719, 15530, 15531, 15532, 23725, 15535, 15536, 15537, 15538, 23729, 15540, 15541, 15543, 15546, 23738, 15549, 23744, 15557, 23751, 23752, 23755, 23756, 15565, 15566, 15567, 23757, 23760, 15570, 15571, 15572, 23761, 15577, 23769, 23770, 23772, 15586, 15602, 15604, 15616, 15617, 23812, 23814, 15625, 23818, 23822, 23825, 23835, 15644, 23836, 23837, 23838, 23840, 23841, 23842, 23843, 23851, 15662, 15667, 23860, 23861, 15681, 15682, 15684, 15685, 15686, 15689, 15690, 15691, 15692, 15697, 15698, 15700, 15701, 15702, 15707, 15709, 15710, 15711, 15712, 15714, 15720, 15721, 15722, 15729, 15739, 15741, 15744, 15745, 15746, 15747, 15748, 15749, 15750, 15751, 15763, 15803, 15805, 15806, 15807, 15818, 15819, 15820, 15821, 15826, 15828, 15830, 15832, 15833, 15834, 15835, 15838, 15839, 15841, 15842, 15843, 15848, 15849, 15851, 15853, 15854, 15858, 15859, 15860, 15861, 15864, 15865, 15866, 15867, 15869, 15877, 15879, 15882, 15883, 15884, 15885, 15889, 15890, 15893, 15894, 15897, 15898, 15900, 15901, 15902, 15903, 15904, 15905, 15915, 15916, 15919, 15922, 15923, 15924, 15928, 15930, 15931, 15935, 15936, 15937, 15938, 15940, 15943, 15947, 15957, 15961, 15963, 15964, 15965, 15966, 15967, 15968, 15969, 15970, 15971, 15972, 15973, 15974, 15977, 15980, 15982, 15983, 15984, 15985, 15986, 15987, 15988, 15989, 15992, 15993, 15994, 15996, 15997, 15998, 15999, 16000, 16001, 16008, 16012, 16016, 16017, 16018, 16029, 16032, 16038, 16039, 16044, 16045, 16047, 16048, 16051, 16052, 16053, 16057, 16058, 16059, 16060, 16061, 16063, 16064, 16066, 16068, 16069, 16072, 16073, 16074, 16076, 16077, 16078, 16080, 16081, 16084, 16089, 16091, 16092, 16093, 16096, 16097, 16099, 16100, 16101, 16102, 16103, 16104, 16105, 16106, 16107, 16108, 16109, 16110, 16111, 16112, 16113, 16114, 16115, 16116, 16117, 16119, 16123, 16124, 16125, 16126, 16127, 16128, 16134, 16141, 16142, 16144, 16145, 16146, 16148, 16152, 16153, 16154, 16155, 16157, 16158, 16160, 16161, 16164, 16167, 16168, 16170, 16171, 16173, 16174, 16179, 16180, 16182, 16183, 16184, 16185, 16186, 16190, 16191, 16192, 16193, 16194, 16195, 16196, 16197, 16198, 16199, 16200, 16201, 16202, 16203, 16204, 16206, 16207, 16208, 16210, 16211, 16212, 16213, 16214, 16215, 16217, 16220, 16221, 16229, 16230, 16231, 16233, 16234, 16236, 16238, 16239, 16240, 16241, 16242, 16243, 16244, 16245, 16246, 16247, 16249, 16283, 16284, 16285, 16286, 16287, 16288, 16289, 16290, 16291, 16292, 16293, 16295, 16296, 16297, 16298, 16299, 16300, 16302, 16303, 16304, 16305, 16306, 16307, 16308, 16309, 16310, 16311, 16312, 16316, 16317, 16318, 16320, 16321, 16322, 16324, 16326, 16331, 16332, 16333, 16336, 16337, 16341, 16342, 16343, 16344, 16345, 16347, 16348, 16349, 16350, 16352, 16353, 16356, 16357, 16358, 16359, 16360, 16361, 16362, 16363, 16364, 16365, 16366, 16370, 16371, 16372, 16374, 16375, 16376, 16377, 16378, 16379, 16380, 16381, 16383) GROUP BY Inv.ServiceSetupId;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 16:24:35,269 - 13542 - src.utils.log - INFO - βœ… Fetched 2028 rows - __SPLIT__ 2026-05-08 16:24:35,291 - 13542 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-08 16:24:35,291 - 13542 - src.utils.log - INFO - πŸ“₯ Inserting into Billing.TransactionAutoGeneration: 32 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 16:24:35,609 - 13542 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 32) into Billing.TransactionAutoGeneration - __SPLIT__ 2026-05-08 16:24:36,699 - 13542 - src.utils.log - INFO - βœ… All 32 rows inserted successfully into Billing.TransactionAutoGeneration in 1 batches - __SPLIT__ 2026-05-08 16:24:36,699 - 13542 - src.utils.log - INFO - - __SPLIT__ 2026-05-08 16:24:36,699 - 13542 - src.utils.log - INFO - Total invoice generated: 32 - __SPLIT__ 2026-05-08 16:24:36,700 - 13542 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 32 TransactionAutoGenerationId, ServiceSetupId, TransactionDate as InvoiceDate From Billing.TransactionAutoGeneration WHERE CreatedDate = '2026-05-08 13:03:30.535' and ServiceSetupId in (16385, 16386, 16387, 16390, 16393, 16394, 16397, 16398, 16399, 16400, 16401, 16402, 16403, 16404, 16412, 16413, 16414, 16415, 16417, 16418, 16419, 16423, 16426, 16429, 16434, 16435, 16436, 16437, 16439, 16440, 16443, 16444, 16446, 16452, 16454, 16455, 16456, 16457, 16458, 16459, 16460, 16462, 16463, 16466, 16469, 16472, 16478, 16479, 16480, 16481, 16482, 16485, 16486, 16488, 16490, 16494, 16495, 16496, 16497, 16498, 16502, 16503, 16504, 16505, 16511, 16512, 16513, 16514, 16515, 16516, 16517, 16519, 16524, 16529, 16530, 16531, 16533, 16537, 16541, 16542, 16543, 16544, 16545, 16546, 16547, 16548, 16549, 16550, 16551, 16552, 16553, 16554, 16555, 16558, 16559, 16560, 16561, 16562, 16563, 16566, 16567, 16568, 16569, 16577, 16578, 16579, 16580, 16582, 16584, 16585, 16586, 16587, 16588, 16589, 16594, 16595, 16601, 16602, 16604, 16605, 16617, 16626, 16630, 16633, 16636, 16637, 16638, 16639, 16640, 16646, 16648, 16674, 16684, 16685, 16710, 16712, 16716, 16724, 16725, 16727, 16731, 16732, 16733, 16734, 16737, 16739, 16740, 16741, 16742, 16749, 16751, 16752, 16753, 16754, 16755, 16756, 16757, 16758, 16759, 16761, 16762, 16763, 16764, 16765, 16766, 16767, 16768, 16769, 16770, 16772, 16773, 16774, 16775, 16776, 16777, 16778, 16779, 16784, 16786, 16787, 16788, 16789, 16790, 16791, 16792, 16793, 16794, 16798, 16799, 16803, 16804, 16806, 16811, 16815, 16816, 16817, 16821, 16825, 16827, 16828, 16840, 16846, 16847, 16852, 16854, 16856, 16857, 16882, 16883, 16884, 16885, 16886, 16887, 16889, 16890, 16891, 16892, 16893, 16894, 16897, 16901, 16902, 16904, 16905, 16908, 16910, 16911, 16912, 16913, 16914, 16915, 16916, 16917, 16918, 16920, 16921, 16922, 16923, 16924, 16925, 16926, 16927, 16932, 16934, 16936, 16937, 16938, 16939, 16941, 16942, 16943, 16944, 16946, 16947, 16948, 16949, 16950, 16951, 16952, 16953, 16954, 16955, 16956, 16957, 16958, 16959, 16960, 16961, 16962, 16963, 16965, 16966, 16967, 16968, 16969, 16976, 16985, 16986, 16987, 16989, 16990, 16991, 16992, 16993, 16995, 16996, 16997, 16998, 16999, 17000, 17001, 17003, 17004, 17005, 17006, 17007, 17008, 17009, 17014, 17015, 17016, 17017, 17018, 17019, 17021, 17022, 17025, 17026, 17027, 17028, 17029, 17035, 17037, 17040, 17042, 17049, 17052, 17055, 17057, 17061, 17063, 17064, 17065, 17066, 17067, 17068, 17069, 17070, 17071, 17072, 17073, 17074, 17075, 17076, 17077, 17078, 17079, 17080, 17085, 17088, 17089, 17092, 17093, 17094, 17095, 17097, 17100, 17101, 17102, 17103, 17104, 17105, 17108, 17109, 17113, 17114, 17115, 17116, 17117, 17118, 17127, 17132, 17139, 17145, 17148, 17158, 17162, 17163, 17165, 17168, 17172, 17176, 17178, 17181, 17182, 17183, 17186, 17187, 17188, 17190, 17192, 17194, 17198, 17200, 17202, 17203, 17204, 17206, 17211, 17214, 17215, 17216, 17218, 17220, 17221, 17222, 17223, 17226, 17239, 17240, 17247, 17248, 17251, 17252, 17253, 17256, 17257, 17263, 17265, 17270, 17271, 17275, 17283, 17296, 17298, 17299, 17300, 17301, 17302, 17303, 17304, 17311, 17313, 17314, 17319, 17321, 17324, 17325, 17326, 17328, 17334, 17335, 17336, 17337, 17338, 17339, 17340, 17341, 17342, 17343, 17344, 17345, 17346, 17347, 17349, 17350, 17352, 17358, 17359, 17360, 17361, 17362, 17363, 17367, 17368, 17369, 17371, 17372, 17376, 17377, 17380, 17381, 17383, 17384, 17386, 17388, 17389, 17391, 17392, 17393, 17397, 17399, 17400, 17401, 17402, 17403, 17404, 17406, 17407, 17408, 17409, 17410, 17411, 17412, 17415, 17416, 17419, 17421, 17422, 17425, 17426, 17430, 17431, 17437, 17439, 17446, 17448, 17456, 17457, 17458, 17459, 17461, 17463, 17464, 17466, 17472, 17474, 17475, 17476, 17477, 17478, 17481, 17482, 17483, 17486, 17487, 17488, 17490, 17494, 17496, 17497, 17498, 17499, 17501, 17503, 17504, 17508, 17509, 17511, 17512, 17513, 17514, 17515, 17516, 17517, 17518, 17519, 17524, 17525, 17526, 17527, 17528, 17530, 17532, 17534, 17540, 17543, 17544, 17545, 17546, 17547, 17548, 17549, 17550, 17551, 17552, 17553, 17554, 17555, 17556, 17559, 17561, 17565, 17566, 17567, 17568, 17573, 17574, 17575, 17576, 17578, 17580, 17585, 17586, 17587, 17593, 17594, 17596, 17597, 17599, 17600, 17603, 17604, 17605, 17607, 17608, 17609, 17611, 17612, 17613, 17614, 17615, 17616, 17619, 17620, 17623, 17624, 17625, 17629, 17630, 17632, 17635, 17637, 17639, 17640, 17644, 17647, 17658, 17659, 17661, 17663, 17664, 17665, 17667, 17668, 17669, 17670, 17671, 17673, 17674, 17676, 17677, 17678, 17679, 17683, 17684, 17685, 17686, 17687, 17688, 17692, 17693, 17694, 17695, 17696, 17697, 17698, 17699, 17700, 17701, 17702, 17703, 17705, 17706, 17707, 17710, 17713, 17714, 17715, 17716, 17719, 17720, 17721, 17726, 17727, 17728, 17729, 17730, 17731, 17732, 17733, 17736, 17739, 17740, 17744, 17745, 17746, 17747, 17748, 17751, 17752, 17753, 17754, 17755, 17756, 17757, 17760, 17763, 17764, 17766, 17767, 17768, 17769, 17771, 17772, 17774, 17775, 17780, 17781, 17782, 17783, 17785, 17786, 17787, 17788, 17790, 17792, 17794, 17798, 17800, 17801, 17803, 17805, 17810, 17811, 17812, 17814, 17815, 17816, 17819, 17823, 17824, 17826, 17827, 17828, 17835, 17836, 17837, 17838, 17839, 17841, 17842, 17843, 17844, 17845, 17852, 17853, 17856, 17857, 17858, 17859, 17860, 17877, 17878, 17879, 17883, 17885, 17888, 17889, 17891, 17895, 17897, 17899, 17901, 17902, 17904, 17905, 17907, 17908, 17909, 17910, 17911, 17913, 17914, 17915, 17916, 17918, 17919, 17920, 17924, 17925, 17926, 17927, 17930, 17933, 17935, 17936, 17938, 17940, 17941, 17942, 17945, 17946, 17948, 17949, 17950, 17951, 17952, 17953, 17954, 17955, 17956, 17958, 17960, 17962, 17965, 17966, 17967, 17968, 17969, 17970, 17972, 17973, 17974, 17975, 17976, 17978, 17980, 17984, 17987, 17989, 17991, 17993, 17994, 17995, 17996, 17997, 18000, 18001, 18003, 18004, 18005, 18007, 18009, 18011, 18012, 18014, 18018, 18019, 18020, 18027, 18028, 18030, 18031, 18033, 18034, 18036, 18037, 18038, 18040, 18051, 18052, 18053, 18055, 18056, 18057, 18058, 18060, 18063, 18071, 18072, 18077, 18078, 18079, 18080, 18081, 18083, 18086, 18091, 18095, 18097, 18102, 18113, 18116, 18119, 18133, 18134, 18138, 18143, 18144, 18148, 18153, 18154, 18155, 18163, 18173, 18174, 18175, 18180, 18181, 18182, 18183, 18186, 18188, 18191, 18193, 18195, 18196, 18197, 18203, 18205, 18207, 18209, 18210, 18212, 18216, 18217, 18218, 18219, 18220, 18221, 18222, 18223, 18224, 18227, 18228, 18229, 18230, 18231, 18232, 18237, 18240, 18243, 18244, 18245, 18246, 18247, 18248, 18249, 18250, 18251, 18252, 18256, 18262, 18263, 18264, 18265, 18266, 18267, 18268, 18269, 18270, 18272, 18273, 18274, 18275, 18276, 18284, 18289, 18306, 18307, 18318, 18319, 18326, 18327, 18328, 18330, 18332, 18335, 18337, 18338, 18352, 18353, 18354, 18364, 18365, 18366, 18374, 18380, 18381, 18382, 18383, 18384, 18386, 18397, 18398, 18399, 18400, 18401, 18402, 18405, 18407, 18408, 18411, 18414, 18416, 18417, 18418, 18419, 18421, 18423, 18428, 18429, 18430, 18431, 18432, 18433, 18434, 18435, 18436, 18438, 18440, 18442, 18445, 18446, 18449, 18450, 18451, 18452, 18454, 18457, 18458, 18460, 18462, 18463, 18467, 18469, 18474, 18475, 18476, 18477, 18489, 18490, 18495, 18515, 18518, 18519, 18524, 18525, 18526, 18527, 18532, 18535, 18539, 18547, 18548, 18549, 18550, 18551, 18553, 18567, 18568, 18569, 18570, 18571, 18575, 18576, 18581, 18584, 18610, 18619, 18622, 18627, 18629, 18633, 18634, 18635, 18636, 18637, 18638, 18640, 18641, 18642, 18644, 18645, 18646, 18647, 18650, 18653, 18655, 18662, 18665, 18667, 18670, 18673, 18684, 18685, 18688, 18691, 18693, 18702, 18706, 18707, 18712, 18715, 18716, 18717, 18718, 18729, 18740, 18741, 18742, 18758, 18759, 18764, 18771, 18773, 18774, 18775, 18776, 18782, 18787, 18802, 18805, 18806, 18807, 18808, 18809, 18813, 18815, 18816, 18817, 18824, 18825, 18833, 18834, 18835, 18837, 18838, 18841, 18842, 18843, 18857, 18868, 18882, 18883, 18884, 18891, 18893, 18895, 18898, 18910, 18927, 18928, 18929, 18931, 18933, 18937, 18944, 18947, 18953, 18966, 18970, 18973, 18975, 18991, 19022, 19023, 19024, 19025, 19032, 19034, 19035, 19040, 19041, 19048, 19058, 19059, 19060, 19061, 19062, 19064, 19073, 19127, 19132, 19133, 19134, 19135, 19136, 19139, 19146, 19147, 19153, 19161, 19162, 19165, 19166, 19168, 19169, 19182, 19185, 19199, 19211, 19212, 19227, 19232, 19233, 19234, 19235, 19243, 19244, 19247, 19248, 19249, 19256, 19258, 19259, 19260, 19263, 19264, 19266, 19268, 19273, 19285, 19286, 19296, 19300, 19307, 19309, 19336, 19337, 19340, 19344, 19346, 19349, 19351, 19352, 19355, 19356, 19359, 19364, 19365, 19367, 19410, 19427, 19431, 19432, 19434, 19435, 19447, 19452, 19455, 19458, 19461, 19462, 19465, 19472, 19478, 19479, 19483, 19502, 19514, 19524, 19552, 19555, 19599, 19618, 19626, 19627, 19629, 19636, 19637, 19638, 19639, 19641, 19643, 19647, 19649, 19668, 19720, 19722, 19723, 19749, 19781, 19788, 19795, 19805, 19808, 19809, 19812, 19816, 19824, 19826, 19828, 19830, 19833, 19835, 19846, 19849, 19850, 19852, 19861, 19862, 19863, 19867, 19875, 19878, 19879, 19894, 19901, 19904, 19906, 19907, 19934, 19942, 19944, 19960, 19961, 19962, 19964, 19965, 19966, 19967, 19974, 19983, 19984, 19985, 19986, 19987, 19988, 19990, 20009, 20010, 20014, 20015, 20020, 20022, 20025, 20034, 20035, 20036, 20037, 20038, 20039, 20040, 20041, 20044, 20046, 20049, 20050, 20051, 20052, 20054, 20055, 20056, 20064, 20065, 20066, 20067, 20069, 20070, 20071, 20072, 20074, 20081, 20084, 20085, 20086, 20087, 20088, 20089, 20090, 20091, 20092, 20094, 20095, 20096, 20097, 20098, 20100, 20102, 20106, 20109, 20146, 20147, 20154, 20155, 20163, 20164, 20178, 20189, 20205, 20206, 20208, 20218, 20219, 20220, 3844, 20231, 20246, 20247, 20248, 20250, 3868, 3869, 20253, 20254, 20257, 20259, 20261, 20262, 20267, 20269, 3887, 3888, 3889, 20275, 20277, 20280, 20282, 20283, 20284, 20286, 3903, 20287, 20289, 3907, 3908, 3909, 3910, 20293, 3915, 3916, 20303, 20304, 3921, 3922, 3923, 3924, 20305, 3927, 3928, 3929, 3931, 3935, 20327, 20357, 20372, 20374, 20394, 20398, 20399, 20400, 20402, 20406, 20407, 20408, 20409, 20410, 20411, 20414, 20424, 20427, 20429, 20437, 20452, 20454, 20455, 20456, 20457, 20458, 20461, 20464, 20473, 20474, 20475, 20476, 20477, 20478, 20486, 20490, 20491, 20492, 20493, 20500, 20520, 20533, 20535, 20544, 20545, 20546, 20547, 20551, 20555, 20560, 20579, 20583, 20588, 20589, 20591, 20592, 20595, 20601, 20611, 20614, 20616, 20621, 20630, 20631, 20633, 20635, 20636, 20640, 20642, 20649, 20651, 20655, 20658, 20661, 20673, 20719, 20722, 20730, 20731, 20742, 20750, 20753, 20755, 20758, 20910, 20932, 20977, 20980, 20987, 21093, 21095, 21137, 21160, 21278, 21284, 21305, 21306, 21311, 21312, 21313, 21314, 21325, 21327, 21328, 21329, 21335, 21344, 21347, 21354, 21366, 21379, 21382, 21383, 21416, 21424, 21426, 21427, 21428, 21429, 21430, 21442, 21500, 21508, 21512, 21519, 21545, 21550, 21582, 21583, 21589, 21590, 21613, 21663, 21665, 21668, 21678, 21688, 21709, 21711, 21724, 21725, 21726, 21730, 21736, 21737, 21746, 21751, 22237, 21838, 21840, 21847, 21848, 21850, 21862, 21875, 21876, 21877, 21878, 21879, 21881, 21882, 21883, 21884, 21885, 21886, 21887, 21888, 21889, 21890, 21891, 21904, 21906, 21907, 21915, 21917, 21923, 21930, 21931, 21935, 21937, 21938, 21942, 21946, 21950, 21955, 21958, 21959, 21964, 21966, 21968, 21969, 21970, 21971, 21972, 21973, 21974, 21975, 21976, 21977, 21983, 21984, 21986, 21987, 21989, 21990, 21991, 21992, 21993, 21994, 21995, 21996, 21997, 21999, 22001, 22002, 22004, 22007, 22009, 22026, 22027, 22030, 22031, 22032, 22034, 22035, 22044, 22048, 22053, 22055, 22060, 22061, 22063, 22067, 22073, 22076, 22077, 22080, 22085, 22086, 22087, 22088, 22089, 22097, 22099, 22100, 22101, 22104, 22106, 22107, 22114, 22115, 22116, 22119, 22121, 13931, 22123, 22128, 22134, 22141, 22142, 22143, 22151, 22164, 22168, 22187, 14003, 22198, 14011, 14014, 14015, 14016, 14022, 14023, 14024, 14026, 22220, 14029, 14031, 14032, 14033, 14034, 14035, 14036, 14037, 14038, 14039, 22223, 22230, 14042, 22231, 22233, 22234, 14046, 14047, 22235, 14049, 14050, 14051, 22236, 14053, 14054, 22238, 14058, 14059, 14061, 14063, 14070, 14073, 14074, 14078, 14079, 14080, 14081, 14083, 14089, 14090, 22283, 14096, 22293, 22295, 22296, 22298, 22301, 22302, 22303, 22306, 22308, 14120, 14121, 14122, 14123, 22323, 22324, 22325, 14135, 14136, 14138, 22334, 22335, 22337, 22339, 22340, 22341, 22342, 22343, 22344, 22345, 22346, 22348, 22364, 22365, 22376, 22377, 22382, 22388, 22389, 22391, 22412, 22414, 22415, 22416, 22434, 22437, 22441, 22445, 22458, 22477, 22484, 14306, 14308, 22508, 22512, 22513, 22515, 22517, 22526, 22529, 22531, 22536, 22539, 22543, 22561, 22563, 22582, 22596, 22608, 22610, 22613, 22614, 22617, 22620, 22634, 14445, 22638, 22639, 22640, 14454, 22652, 22661, 22667, 22668, 22671, 22676, 22687, 22696, 14511, 22703, 14519, 22715, 22720, 22722, 22724, 22730, 22762, 22763, 22765, 22768, 22771, 22776, 22777, 22778, 14591, 22785, 14595, 22788, 22789, 22790, 22804, 22805, 22829, 22832, 14646, 14647, 14648, 14650, 14651, 22844, 22847, 22849, 14659, 14662, 14663, 14664, 14666, 14667, 14668, 22859, 14670, 22871, 14681, 22900, 14709, 14722, 14727, 22923, 22924, 22931, 14740, 14742, 14743, 14745, 14746, 14747, 14748, 14749, 22943, 22955, 22966, 22968, 22969, 22970, 22971, 22972, 22976, 22977, 22979, 22982, 22983, 22984, 22985, 22987, 22988, 22994, 22998, 23002, 23003, 23004, 23007, 23008, 23009, 23010, 23016, 23018, 23021, 23025, 23026, 23051, 23052, 23055, 23063, 23064, 23066, 23068, 23069, 14880, 14881, 14892, 23086, 23089, 23090, 23091, 23092, 14901, 23093, 23096, 23097, 23098, 23099, 23100, 23101, 23102, 23104, 23105, 23106, 14915, 23107, 14927, 14928, 14962, 14965, 14966, 23163, 23165, 14974, 14975, 23185, 15010, 15011, 23221, 23222, 23224, 15033, 23226, 23228, 23229, 23249, 23266, 15095, 15124, 15129, 15130, 15133, 15138, 15142, 15143, 15144, 23338, 23342, 15152, 23346, 23348, 23355, 23356, 15167, 15168, 15169, 15171, 15172, 15186, 15201, 15202, 15203, 15204, 23401, 15210, 23402, 15227, 15230, 15231, 15232, 15275, 15281, 15292, 15293, 23493, 23494, 23496, 15310, 15313, 23510, 15323, 23516, 23517, 23518, 23519, 23522, 15331, 23523, 23524, 15336, 23536, 23550, 23555, 23556, 23557, 23558, 15368, 23567, 15386, 23585, 15395, 15403, 23595, 15407, 23602, 15411, 23614, 23615, 23618, 23619, 23622, 23623, 15432, 15434, 23628, 15438, 15439, 23630, 23631, 15442, 23632, 23636, 15446, 23638, 15448, 23639, 15450, 15451, 15452, 23640, 15454, 15455, 23641, 15457, 23642, 23643, 23644, 23645, 23646, 15463, 23647, 23648, 23651, 23653, 23655, 15469, 23658, 23660, 23661, 15473, 23662, 23664, 23666, 23668, 23674, 23675, 23678, 23679, 23680, 23684, 23687, 23692, 23693, 23695, 15510, 15512, 23705, 23706, 23718, 23719, 15530, 15531, 15532, 23725, 15535, 15536, 15537, 15538, 23729, 15540, 15541, 15543, 15546, 23738, 15549, 23744, 15557, 23751, 23752, 23755, 23756, 15565, 15566, 15567, 23757, 23760, 15570, 15571, 15572, 23761, 15577, 23769, 23770, 23772, 15586, 15602, 15604, 15616, 15617, 23812, 23814, 15625, 23818, 23822, 23825, 23835, 15644, 23836, 23837, 23838, 23840, 23841, 23842, 23843, 23851, 15662, 15667, 23860, 23861, 15681, 15682, 15684, 15685, 15686, 15689, 15690, 15691, 15692, 15697, 15698, 15700, 15701, 15702, 15707, 15709, 15710, 15711, 15712, 15714, 15720, 15721, 15722, 15729, 15739, 15741, 15744, 15745, 15746, 15747, 15748, 15749, 15750, 15751, 15763, 15803, 15805, 15806, 15807, 15818, 15819, 15820, 15821, 15826, 15828, 15830, 15832, 15833, 15834, 15835, 15838, 15839, 15841, 15842, 15843, 15848, 15849, 15851, 15853, 15854, 15858, 15859, 15860, 15861, 15864, 15865, 15866, 15867, 15869, 15877, 15879, 15882, 15883, 15884, 15885, 15889, 15890, 15893, 15894, 15897, 15898, 15900, 15901, 15902, 15903, 15904, 15905, 15915, 15916, 15919, 15922, 15923, 15924, 15928, 15930, 15931, 15935, 15936, 15937, 15938, 15940, 15943, 15947, 15957, 15961, 15963, 15964, 15965, 15966, 15967, 15968, 15969, 15970, 15971, 15972, 15973, 15974, 15977, 15980, 15982, 15983, 15984, 15985, 15986, 15987, 15988, 15989, 15992, 15993, 15994, 15996, 15997, 15998, 15999, 16000, 16001, 16008, 16012, 16016, 16017, 16018, 16029, 16032, 16038, 16039, 16044, 16045, 16047, 16048, 16051, 16052, 16053, 16057, 16058, 16059, 16060, 16061, 16063, 16064, 16066, 16068, 16069, 16072, 16073, 16074, 16076, 16077, 16078, 16080, 16081, 16084, 16089, 16091, 16092, 16093, 16096, 16097, 16099, 16100, 16101, 16102, 16103, 16104, 16105, 16106, 16107, 16108, 16109, 16110, 16111, 16112, 16113, 16114, 16115, 16116, 16117, 16119, 16123, 16124, 16125, 16126, 16127, 16128, 16134, 16141, 16142, 16144, 16145, 16146, 16148, 16152, 16153, 16154, 16155, 16157, 16158, 16160, 16161, 16164, 16167, 16168, 16170, 16171, 16173, 16174, 16179, 16180, 16182, 16183, 16184, 16185, 16186, 16190, 16191, 16192, 16193, 16194, 16195, 16196, 16197, 16198, 16199, 16200, 16201, 16202, 16203, 16204, 16206, 16207, 16208, 16210, 16211, 16212, 16213, 16214, 16215, 16217, 16220, 16221, 16229, 16230, 16231, 16233, 16234, 16236, 16238, 16239, 16240, 16241, 16242, 16243, 16244, 16245, 16246, 16247, 16249, 16283, 16284, 16285, 16286, 16287, 16288, 16289, 16290, 16291, 16292, 16293, 16295, 16296, 16297, 16298, 16299, 16300, 16302, 16303, 16304, 16305, 16306, 16307, 16308, 16309, 16310, 16311, 16312, 16316, 16317, 16318, 16320, 16321, 16322, 16324, 16326, 16331, 16332, 16333, 16336, 16337, 16341, 16342, 16343, 16344, 16345, 16347, 16348, 16349, 16350, 16352, 16353, 16356, 16357, 16358, 16359, 16360, 16361, 16362, 16363, 16364, 16365, 16366, 16370, 16371, 16372, 16374, 16375, 16376, 16377, 16378, 16379, 16380, 16381, 16383) and GenerateWorkOrderHistoryId = 13542;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 16:24:37,128 - 13542 - src.utils.log - INFO - βœ… Fetched 32 rows - __SPLIT__ 2026-05-08 16:24:37,137 - 13542 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-08 16:24:37,137 - 13542 - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceAutoGeneration: 32 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 16:24:37,446 - 13542 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 32) into Billing.InvoiceAutoGeneration - __SPLIT__ 2026-05-08 16:24:38,523 - 13542 - src.utils.log - INFO - βœ… All 32 rows inserted successfully into Billing.InvoiceAutoGeneration in 1 batches - __SPLIT__ 2026-05-08 16:24:38,523 - 13542 - src.utils.log - INFO - πŸ” Fetching data: SELECT I.InvoiceAutoGenerationId, T.ServiceSetupId FROM Billing.InvoiceAutoGeneration I JOIN Billing.TransactionAutoGeneration T ON I.TransactionAutoGenerationId = T.TransactionAutoGenerationId where T.TransactionAutoGenerationId in (798936, 798937, 798938, 798939, 798940, 798941, 798942, 798943, 798944, 798945, 798946, 798947, 798948, 798949, 798950, 798951, 798952, 798953, 798954, 798955, 798956, 798957, 798958, 798959, 798960, 798961, 798962, 798963, 798964, 798965, 798966, 798967);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 16:24:38,816 - 13542 - src.utils.log - INFO - βœ… Fetched 32 rows - __SPLIT__ 2026-05-08 16:24:38,817 - 13542 - 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 (16385, 16386, 16387, 16390, 16393, 16394, 16397, 16398, 16399, 16400, 16401, 16402, 16403, 16404, 16412, 16413, 16414, 16415, 16417, 16418, 16419, 16423, 16426, 16429, 16434, 16435, 16436, 16437, 16439, 16440, 16443, 16444, 16446, 16452, 16454, 16455, 16456, 16457, 16458, 16459, 16460, 16462, 16463, 16466, 16469, 16472, 16478, 16479, 16480, 16481, 16482, 16485, 16486, 16488, 16490, 16494, 16495, 16496, 16497, 16498, 16502, 16503, 16504, 16505, 16511, 16512, 16513, 16514, 16515, 16516, 16517, 16519, 16524, 16529, 16530, 16531, 16533, 16537, 16541, 16542, 16543, 16544, 16545, 16546, 16547, 16548, 16549, 16550, 16551, 16552, 16553, 16554, 16555, 16558, 16559, 16560, 16561, 16562, 16563, 16566, 16567, 16568, 16569, 16577, 16578, 16579, 16580, 16582, 16584, 16585, 16586, 16587, 16588, 16589, 16594, 16595, 16601, 16602, 16604, 16605, 16617, 16626, 16630, 16633, 16636, 16637, 16638, 16639, 16640, 16646, 16648, 16674, 16684, 16685, 16710, 16712, 16716, 16724, 16725, 16727, 16731, 16732, 16733, 16734, 16737, 16739, 16740, 16741, 16742, 16749, 16751, 16752, 16753, 16754, 16755, 16756, 16757, 16758, 16759, 16761, 16762, 16763, 16764, 16765, 16766, 16767, 16768, 16769, 16770, 16772, 16773, 16774, 16775, 16776, 16777, 16778, 16779, 16784, 16786, 16787, 16788, 16789, 16790, 16791, 16792, 16793, 16794, 16798, 16799, 16803, 16804, 16806, 16811, 16815, 16816, 16817, 16821, 16825, 16827, 16828, 16840, 16846, 16847, 16852, 16854, 16856, 16857, 16882, 16883, 16884, 16885, 16886, 16887, 16889, 16890, 16891, 16892, 16893, 16894, 16897, 16901, 16902, 16904, 16905, 16908, 16910, 16911, 16912, 16913, 16914, 16915, 16916, 16917, 16918, 16920, 16921, 16922, 16923, 16924, 16925, 16926, 16927, 16932, 16934, 16936, 16937, 16938, 16939, 16941, 16942, 16943, 16944, 16946, 16947, 16948, 16949, 16950, 16951, 16952, 16953, 16954, 16955, 16956, 16957, 16958, 16959, 16960, 16961, 16962, 16963, 16965, 16966, 16967, 16968, 16969, 16976, 16985, 16986, 16987, 16989, 16990, 16991, 16992, 16993, 16995, 16996, 16997, 16998, 16999, 17000, 17001, 17003, 17004, 17005, 17006, 17007, 17008, 17009, 17014, 17015, 17016, 17017, 17018, 17019, 17021, 17022, 17025, 17026, 17027, 17028, 17029, 17035, 17037, 17040, 17042, 17049, 17052, 17055, 17057, 17061, 17063, 17064, 17065, 17066, 17067, 17068, 17069, 17070, 17071, 17072, 17073, 17074, 17075, 17076, 17077, 17078, 17079, 17080, 17085, 17088, 17089, 17092, 17093, 17094, 17095, 17097, 17100, 17101, 17102, 17103, 17104, 17105, 17108, 17109, 17113, 17114, 17115, 17116, 17117, 17118, 17127, 17132, 17139, 17145, 17148, 17158, 17162, 17163, 17165, 17168, 17172, 17176, 17178, 17181, 17182, 17183, 17186, 17187, 17188, 17190, 17192, 17194, 17198, 17200, 17202, 17203, 17204, 17206, 17211, 17214, 17215, 17216, 17218, 17220, 17221, 17222, 17223, 17226, 17239, 17240, 17247, 17248, 17251, 17252, 17253, 17256, 17257, 17263, 17265, 17270, 17271, 17275, 17283, 17296, 17298, 17299, 17300, 17301, 17302, 17303, 17304, 17311, 17313, 17314, 17319, 17321, 17324, 17325, 17326, 17328, 17334, 17335, 17336, 17337, 17338, 17339, 17340, 17341, 17342, 17343, 17344, 17345, 17346, 17347, 17349, 17350, 17352, 17358, 17359, 17360, 17361, 17362, 17363, 17367, 17368, 17369, 17371, 17372, 17376, 17377, 17380, 17381, 17383, 17384, 17386, 17388, 17389, 17391, 17392, 17393, 17397, 17399, 17400, 17401, 17402, 17403, 17404, 17406, 17407, 17408, 17409, 17410, 17411, 17412, 17415, 17416, 17419, 17421, 17422, 17425, 17426, 17430, 17431, 17437, 17439, 17446, 17448, 17456, 17457, 17458, 17459, 17461, 17463, 17464, 17466, 17472, 17474, 17475, 17476, 17477, 17478, 17481, 17482, 17483, 17486, 17487, 17488, 17490, 17494, 17496, 17497, 17498, 17499, 17501, 17503, 17504, 17508, 17509, 17511, 17512, 17513, 17514, 17515, 17516, 17517, 17518, 17519, 17524, 17525, 17526, 17527, 17528, 17530, 17532, 17534, 17540, 17543, 17544, 17545, 17546, 17547, 17548, 17549, 17550, 17551, 17552, 17553, 17554, 17555, 17556, 17559, 17561, 17565, 17566, 17567, 17568, 17573, 17574, 17575, 17576, 17578, 17580, 17585, 17586, 17587, 17593, 17594, 17596, 17597, 17599, 17600, 17603, 17604, 17605, 17607, 17608, 17609, 17611, 17612, 17613, 17614, 17615, 17616, 17619, 17620, 17623, 17624, 17625, 17629, 17630, 17632, 17635, 17637, 17639, 17640, 17644, 17647, 17658, 17659, 17661, 17663, 17664, 17665, 17667, 17668, 17669, 17670, 17671, 17673, 17674, 17676, 17677, 17678, 17679, 17683, 17684, 17685, 17686, 17687, 17688, 17692, 17693, 17694, 17695, 17696, 17697, 17698, 17699, 17700, 17701, 17702, 17703, 17705, 17706, 17707, 17710, 17713, 17714, 17715, 17716, 17719, 17720, 17721, 17726, 17727, 17728, 17729, 17730, 17731, 17732, 17733, 17736, 17739, 17740, 17744, 17745, 17746, 17747, 17748, 17751, 17752, 17753, 17754, 17755, 17756, 17757, 17760, 17763, 17764, 17766, 17767, 17768, 17769, 17771, 17772, 17774, 17775, 17780, 17781, 17782, 17783, 17785, 17786, 17787, 17788, 17790, 17792, 17794, 17798, 17800, 17801, 17803, 17805, 17810, 17811, 17812, 17814, 17815, 17816, 17819, 17823, 17824, 17826, 17827, 17828, 17835, 17836, 17837, 17838, 17839, 17841, 17842, 17843, 17844, 17845, 17852, 17853, 17856, 17857, 17858, 17859, 17860, 17877, 17878, 17879, 17883, 17885, 17888, 17889, 17891, 17895, 17897, 17899, 17901, 17902, 17904, 17905, 17907, 17908, 17909, 17910, 17911, 17913, 17914, 17915, 17916, 17918, 17919, 17920, 17924, 17925, 17926, 17927, 17930, 17933, 17935, 17936, 17938, 17940, 17941, 17942, 17945, 17946, 17948, 17949, 17950, 17951, 17952, 17953, 17954, 17955, 17956, 17958, 17960, 17962, 17965, 17966, 17967, 17968, 17969, 17970, 17972, 17973, 17974, 17975, 17976, 17978, 17980, 17984, 17987, 17989, 17991, 17993, 17994, 17995, 17996, 17997, 18000, 18001, 18003, 18004, 18005, 18007, 18009, 18011, 18012, 18014, 18018, 18019, 18020, 18027, 18028, 18030, 18031, 18033, 18034, 18036, 18037, 18038, 18040, 18051, 18052, 18053, 18055, 18056, 18057, 18058, 18060, 18063, 18071, 18072, 18077, 18078, 18079, 18080, 18081, 18083, 18086, 18091, 18095, 18097, 18102, 18113, 18116, 18119, 18133, 18134, 18138, 18143, 18144, 18148, 18153, 18154, 18155, 18163, 18173, 18174, 18175, 18180, 18181, 18182, 18183, 18186, 18188, 18191, 18193, 18195, 18196, 18197, 18203, 18205, 18207, 18209, 18210, 18212, 18216, 18217, 18218, 18219, 18220, 18221, 18222, 18223, 18224, 18227, 18228, 18229, 18230, 18231, 18232, 18237, 18240, 18243, 18244, 18245, 18246, 18247, 18248, 18249, 18250, 18251, 18252, 18256, 18262, 18263, 18264, 18265, 18266, 18267, 18268, 18269, 18270, 18272, 18273, 18274, 18275, 18276, 18284, 18289, 18306, 18307, 18318, 18319, 18326, 18327, 18328, 18330, 18332, 18335, 18337, 18338, 18352, 18353, 18354, 18364, 18365, 18366, 18374, 18380, 18381, 18382, 18383, 18384, 18386, 18397, 18398, 18399, 18400, 18401, 18402, 18405, 18407, 18408, 18411, 18414, 18416, 18417, 18418, 18419, 18421, 18423, 18428, 18429, 18430, 18431, 18432, 18433, 18434, 18435, 18436, 18438, 18440, 18442, 18445, 18446, 18449, 18450, 18451, 18452, 18454, 18457, 18458, 18460, 18462, 18463, 18467, 18469, 18474, 18475, 18476, 18477, 18489, 18490, 18495, 18515, 18518, 18519, 18524, 18525, 18526, 18527, 18532, 18535, 18539, 18547, 18548, 18549, 18550, 18551, 18553, 18567, 18568, 18569, 18570, 18571, 18575, 18576, 18581, 18584, 18610, 18619, 18622, 18627, 18629, 18633, 18634, 18635, 18636, 18637, 18638, 18640, 18641, 18642, 18644, 18645, 18646, 18647, 18650, 18653, 18655, 18662, 18665, 18667, 18670, 18673, 18684, 18685, 18688, 18691, 18693, 18702, 18706, 18707, 18712, 18715, 18716, 18717, 18718, 18729, 18740, 18741, 18742, 18758, 18759, 18764, 18771, 18773, 18774, 18775, 18776, 18782, 18787, 18802, 18805, 18806, 18807, 18808, 18809, 18813, 18815, 18816, 18817, 18824, 18825, 18833, 18834, 18835, 18837, 18838, 18841, 18842, 18843, 18857, 18868, 18882, 18883, 18884, 18891, 18893, 18895, 18898, 18910, 18927, 18928, 18929, 18931, 18933, 18937, 18944, 18947, 18953, 18966, 18970, 18973, 18975, 18991, 19022, 19023, 19024, 19025, 19032, 19034, 19035, 19040, 19041, 19048, 19058, 19059, 19060, 19061, 19062, 19064, 19073, 19127, 19132, 19133, 19134, 19135, 19136, 19139, 19146, 19147, 19153, 19161, 19162, 19165, 19166, 19168, 19169, 19182, 19185, 19199, 19211, 19212, 19227, 19232, 19233, 19234, 19235, 19243, 19244, 19247, 19248, 19249, 19256, 19258, 19259, 19260, 19263, 19264, 19266, 19268, 19273, 19285, 19286, 19296, 19300, 19307, 19309, 19336, 19337, 19340, 19344, 19346, 19349, 19351, 19352, 19355, 19356, 19359, 19364, 19365, 19367, 19410, 19427, 19431, 19432, 19434, 19435, 19447, 19452, 19455, 19458, 19461, 19462, 19465, 19472, 19478, 19479, 19483, 19502, 19514, 19524, 19552, 19555, 19599, 19618, 19626, 19627, 19629, 19636, 19637, 19638, 19639, 19641, 19643, 19647, 19649, 19668, 19720, 19722, 19723, 19749, 19781, 19788, 19795, 19805, 19808, 19809, 19812, 19816, 19824, 19826, 19828, 19830, 19833, 19835, 19846, 19849, 19850, 19852, 19861, 19862, 19863, 19867, 19875, 19878, 19879, 19894, 19901, 19904, 19906, 19907, 19934, 19942, 19944, 19960, 19961, 19962, 19964, 19965, 19966, 19967, 19974, 19983, 19984, 19985, 19986, 19987, 19988, 19990, 20009, 20010, 20014, 20015, 20020, 20022, 20025, 20034, 20035, 20036, 20037, 20038, 20039, 20040, 20041, 20044, 20046, 20049, 20050, 20051, 20052, 20054, 20055, 20056, 20064, 20065, 20066, 20067, 20069, 20070, 20071, 20072, 20074, 20081, 20084, 20085, 20086, 20087, 20088, 20089, 20090, 20091, 20092, 20094, 20095, 20096, 20097, 20098, 20100, 20102, 20106, 20109, 20146, 20147, 20154, 20155, 20163, 20164, 20178, 20189, 20205, 20206, 20208, 20218, 20219, 20220, 3844, 20231, 20246, 20247, 20248, 20250, 3868, 3869, 20253, 20254, 20257, 20259, 20261, 20262, 20267, 20269, 3887, 3888, 3889, 20275, 20277, 20280, 20282, 20283, 20284, 20286, 3903, 20287, 20289, 3907, 3908, 3909, 3910, 20293, 3915, 3916, 20303, 20304, 3921, 3922, 3923, 3924, 20305, 3927, 3928, 3929, 3931, 3935, 20327, 20357, 20372, 20374, 20394, 20398, 20399, 20400, 20402, 20406, 20407, 20408, 20409, 20410, 20411, 20414, 20424, 20427, 20429, 20437, 20452, 20454, 20455, 20456, 20457, 20458, 20461, 20464, 20473, 20474, 20475, 20476, 20477, 20478, 20486, 20490, 20491, 20492, 20493, 20500, 20520, 20533, 20535, 20544, 20545, 20546, 20547, 20551, 20555, 20560, 20579, 20583, 20588, 20589, 20591, 20592, 20595, 20601, 20611, 20614, 20616, 20621, 20630, 20631, 20633, 20635, 20636, 20640, 20642, 20649, 20651, 20655, 20658, 20661, 20673, 20719, 20722, 20730, 20731, 20742, 20750, 20753, 20755, 20758, 20910, 20932, 20977, 20980, 20987, 21093, 21095, 21137, 21160, 21278, 21284, 21305, 21306, 21311, 21312, 21313, 21314, 21325, 21327, 21328, 21329, 21335, 21344, 21347, 21354, 21366, 21379, 21382, 21383, 21416, 21424, 21426, 21427, 21428, 21429, 21430, 21442, 21500, 21508, 21512, 21519, 21545, 21550, 21582, 21583, 21589, 21590, 21613, 21663, 21665, 21668, 21678, 21688, 21709, 21711, 21724, 21725, 21726, 21730, 21736, 21737, 21746, 21751, 22237, 21838, 21840, 21847, 21848, 21850, 21862, 21875, 21876, 21877, 21878, 21879, 21881, 21882, 21883, 21884, 21885, 21886, 21887, 21888, 21889, 21890, 21891, 21904, 21906, 21907, 21915, 21917, 21923, 21930, 21931, 21935, 21937, 21938, 21942, 21946, 21950, 21955, 21958, 21959, 21964, 21966, 21968, 21969, 21970, 21971, 21972, 21973, 21974, 21975, 21976, 21977, 21983, 21984, 21986, 21987, 21989, 21990, 21991, 21992, 21993, 21994, 21995, 21996, 21997, 21999, 22001, 22002, 22004, 22007, 22009, 22026, 22027, 22030, 22031, 22032, 22034, 22035, 22044, 22048, 22053, 22055, 22060, 22061, 22063, 22067, 22073, 22076, 22077, 22080, 22085, 22086, 22087, 22088, 22089, 22097, 22099, 22100, 22101, 22104, 22106, 22107, 22114, 22115, 22116, 22119, 22121, 13931, 22123, 22128, 22134, 22141, 22142, 22143, 22151, 22164, 22168, 22187, 14003, 22198, 14011, 14014, 14015, 14016, 14022, 14023, 14024, 14026, 22220, 14029, 14031, 14032, 14033, 14034, 14035, 14036, 14037, 14038, 14039, 22223, 22230, 14042, 22231, 22233, 22234, 14046, 14047, 22235, 14049, 14050, 14051, 22236, 14053, 14054, 22238, 14058, 14059, 14061, 14063, 14070, 14073, 14074, 14078, 14079, 14080, 14081, 14083, 14089, 14090, 22283, 14096, 22293, 22295, 22296, 22298, 22301, 22302, 22303, 22306, 22308, 14120, 14121, 14122, 14123, 22323, 22324, 22325, 14135, 14136, 14138, 22334, 22335, 22337, 22339, 22340, 22341, 22342, 22343, 22344, 22345, 22346, 22348, 22364, 22365, 22376, 22377, 22382, 22388, 22389, 22391, 22412, 22414, 22415, 22416, 22434, 22437, 22441, 22445, 22458, 22477, 22484, 14306, 14308, 22508, 22512, 22513, 22515, 22517, 22526, 22529, 22531, 22536, 22539, 22543, 22561, 22563, 22582, 22596, 22608, 22610, 22613, 22614, 22617, 22620, 22634, 14445, 22638, 22639, 22640, 14454, 22652, 22661, 22667, 22668, 22671, 22676, 22687, 22696, 14511, 22703, 14519, 22715, 22720, 22722, 22724, 22730, 22762, 22763, 22765, 22768, 22771, 22776, 22777, 22778, 14591, 22785, 14595, 22788, 22789, 22790, 22804, 22805, 22829, 22832, 14646, 14647, 14648, 14650, 14651, 22844, 22847, 22849, 14659, 14662, 14663, 14664, 14666, 14667, 14668, 22859, 14670, 22871, 14681, 22900, 14709, 14722, 14727, 22923, 22924, 22931, 14740, 14742, 14743, 14745, 14746, 14747, 14748, 14749, 22943, 22955, 22966, 22968, 22969, 22970, 22971, 22972, 22976, 22977, 22979, 22982, 22983, 22984, 22985, 22987, 22988, 22994, 22998, 23002, 23003, 23004, 23007, 23008, 23009, 23010, 23016, 23018, 23021, 23025, 23026, 23051, 23052, 23055, 23063, 23064, 23066, 23068, 23069, 14880, 14881, 14892, 23086, 23089, 23090, 23091, 23092, 14901, 23093, 23096, 23097, 23098, 23099, 23100, 23101, 23102, 23104, 23105, 23106, 14915, 23107, 14927, 14928, 14962, 14965, 14966, 23163, 23165, 14974, 14975, 23185, 15010, 15011, 23221, 23222, 23224, 15033, 23226, 23228, 23229, 23249, 23266, 15095, 15124, 15129, 15130, 15133, 15138, 15142, 15143, 15144, 23338, 23342, 15152, 23346, 23348, 23355, 23356, 15167, 15168, 15169, 15171, 15172, 15186, 15201, 15202, 15203, 15204, 23401, 15210, 23402, 15227, 15230, 15231, 15232, 15275, 15281, 15292, 15293, 23493, 23494, 23496, 15310, 15313, 23510, 15323, 23516, 23517, 23518, 23519, 23522, 15331, 23523, 23524, 15336, 23536, 23550, 23555, 23556, 23557, 23558, 15368, 23567, 15386, 23585, 15395, 15403, 23595, 15407, 23602, 15411, 23614, 23615, 23618, 23619, 23622, 23623, 15432, 15434, 23628, 15438, 15439, 23630, 23631, 15442, 23632, 23636, 15446, 23638, 15448, 23639, 15450, 15451, 15452, 23640, 15454, 15455, 23641, 15457, 23642, 23643, 23644, 23645, 23646, 15463, 23647, 23648, 23651, 23653, 23655, 15469, 23658, 23660, 23661, 15473, 23662, 23664, 23666, 23668, 23674, 23675, 23678, 23679, 23680, 23684, 23687, 23692, 23693, 23695, 15510, 15512, 23705, 23706, 23718, 23719, 15530, 15531, 15532, 23725, 15535, 15536, 15537, 15538, 23729, 15540, 15541, 15543, 15546, 23738, 15549, 23744, 15557, 23751, 23752, 23755, 23756, 15565, 15566, 15567, 23757, 23760, 15570, 15571, 15572, 23761, 15577, 23769, 23770, 23772, 15586, 15602, 15604, 15616, 15617, 23812, 23814, 15625, 23818, 23822, 23825, 23835, 15644, 23836, 23837, 23838, 23840, 23841, 23842, 23843, 23851, 15662, 15667, 23860, 23861, 15681, 15682, 15684, 15685, 15686, 15689, 15690, 15691, 15692, 15697, 15698, 15700, 15701, 15702, 15707, 15709, 15710, 15711, 15712, 15714, 15720, 15721, 15722, 15729, 15739, 15741, 15744, 15745, 15746, 15747, 15748, 15749, 15750, 15751, 15763, 15803, 15805, 15806, 15807, 15818, 15819, 15820, 15821, 15826, 15828, 15830, 15832, 15833, 15834, 15835, 15838, 15839, 15841, 15842, 15843, 15848, 15849, 15851, 15853, 15854, 15858, 15859, 15860, 15861, 15864, 15865, 15866, 15867, 15869, 15877, 15879, 15882, 15883, 15884, 15885, 15889, 15890, 15893, 15894, 15897, 15898, 15900, 15901, 15902, 15903, 15904, 15905, 15915, 15916, 15919, 15922, 15923, 15924, 15928, 15930, 15931, 15935, 15936, 15937, 15938, 15940, 15943, 15947, 15957, 15961, 15963, 15964, 15965, 15966, 15967, 15968, 15969, 15970, 15971, 15972, 15973, 15974, 15977, 15980, 15982, 15983, 15984, 15985, 15986, 15987, 15988, 15989, 15992, 15993, 15994, 15996, 15997, 15998, 15999, 16000, 16001, 16008, 16012, 16016, 16017, 16018, 16029, 16032, 16038, 16039, 16044, 16045, 16047, 16048, 16051, 16052, 16053, 16057, 16058, 16059, 16060, 16061, 16063, 16064, 16066, 16068, 16069, 16072, 16073, 16074, 16076, 16077, 16078, 16080, 16081, 16084, 16089, 16091, 16092, 16093, 16096, 16097, 16099, 16100, 16101, 16102, 16103, 16104, 16105, 16106, 16107, 16108, 16109, 16110, 16111, 16112, 16113, 16114, 16115, 16116, 16117, 16119, 16123, 16124, 16125, 16126, 16127, 16128, 16134, 16141, 16142, 16144, 16145, 16146, 16148, 16152, 16153, 16154, 16155, 16157, 16158, 16160, 16161, 16164, 16167, 16168, 16170, 16171, 16173, 16174, 16179, 16180, 16182, 16183, 16184, 16185, 16186, 16190, 16191, 16192, 16193, 16194, 16195, 16196, 16197, 16198, 16199, 16200, 16201, 16202, 16203, 16204, 16206, 16207, 16208, 16210, 16211, 16212, 16213, 16214, 16215, 16217, 16220, 16221, 16229, 16230, 16231, 16233, 16234, 16236, 16238, 16239, 16240, 16241, 16242, 16243, 16244, 16245, 16246, 16247, 16249, 16283, 16284, 16285, 16286, 16287, 16288, 16289, 16290, 16291, 16292, 16293, 16295, 16296, 16297, 16298, 16299, 16300, 16302, 16303, 16304, 16305, 16306, 16307, 16308, 16309, 16310, 16311, 16312, 16316, 16317, 16318, 16320, 16321, 16322, 16324, 16326, 16331, 16332, 16333, 16336, 16337, 16341, 16342, 16343, 16344, 16345, 16347, 16348, 16349, 16350, 16352, 16353, 16356, 16357, 16358, 16359, 16360, 16361, 16362, 16363, 16364, 16365, 16366, 16370, 16371, 16372, 16374, 16375, 16376, 16377, 16378, 16379, 16380, 16381, 16383) and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 16:24:39,725 - 13542 - src.utils.log - INFO - βœ… Fetched 3152 rows - __SPLIT__ 2026-05-08 16:24:39,735 - 13542 - 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 (13057, 12802, 12803, 12804, 12805, 12806, 13060, 13061, 13059, 13058, 13062, 13064, 13072, 13078, 13079, 13085, 12964, 12965, 12966, 12967, 13096, 12969, 12971, 13099, 12975, 13103, 12979, 13107, 12988, 13117, 12990, 12991, 12992, 12993, 12994, 13119, 12996, 12997, 13118, 13000, 13132, 13006, 13134, 13009, 13011, 13013, 13014, 13142, 13015, 13024, 13027, 13028, 13029, 13030, 13031, 13032, 13033, 13034, 13036, 13038, 13039, 13040, 13042, 13044, 13045, 12921, 12922, 13052, 13054);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 16:24:40,031 - 13542 - src.utils.log - INFO - βœ… Fetched 68 rows - __SPLIT__ 2026-05-08 16:24:40,032 - 13542 - 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 (13057, 12802, 12803, 12804, 12805, 12806, 13060, 13061, 13059, 13062, 13058, 13064, 13072, 13074, 13077, 13078, 13079, 13091, 12964, 12965, 12966, 12967, 13097, 12971, 13099, 12975, 13103, 12979, 12980, 13107, 12988, 12989, 12990, 12991, 12992, 12993, 12996, 12997, 13000, 13006, 13009, 13138, 13013, 13014, 13015, 13024, 13027, 13028, 13029, 13030, 13031, 13032, 13033, 13034, 13155, 13036, 13039, 13040, 13042, 12922, 13054);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 16:24:40,328 - 13542 - src.utils.log - INFO - βœ… Fetched 60 rows - __SPLIT__ 2026-05-08 16:24:40,334 - 13542 - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, DiscountSetupId,DiscountType,DiscountCode,DiscountAmount,DiscountDescription,DiscountName, DiscountPercent, IsDiscountPercent,AppliedDiscountAmt,ApplyOnPartPrice,ApplyOnLaborPrice from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE IsInitialSetupDiscount = 0 AND ssad.ServiceSetupId in (16385, 16386, 16387, 16390, 16393, 16394, 16397, 16398, 16399, 16400, 16401, 16402, 16403, 16404, 16412, 16413, 16414, 16415, 16417, 16418, 16419, 16423, 16426, 16429, 16434, 16435, 16436, 16437, 16439, 16440, 16443, 16444, 16446, 16452, 16454, 16455, 16456, 16457, 16458, 16459, 16460, 16462, 16463, 16466, 16469, 16472, 16478, 16479, 16480, 16481, 16482, 16485, 16486, 16488, 16490, 16494, 16495, 16496, 16497, 16498, 16502, 16503, 16504, 16505, 16511, 16512, 16513, 16514, 16515, 16516, 16517, 16519, 16524, 16529, 16530, 16531, 16533, 16537, 16541, 16542, 16543, 16544, 16545, 16546, 16547, 16548, 16549, 16550, 16551, 16552, 16553, 16554, 16555, 16558, 16559, 16560, 16561, 16562, 16563, 16566, 16567, 16568, 16569, 16577, 16578, 16579, 16580, 16582, 16584, 16585, 16586, 16587, 16588, 16589, 16594, 16595, 16601, 16602, 16604, 16605, 16617, 16626, 16630, 16633, 16636, 16637, 16638, 16639, 16640, 16646, 16648, 16674, 16684, 16685, 16710, 16712, 16716, 16724, 16725, 16727, 16731, 16732, 16733, 16734, 16737, 16739, 16740, 16741, 16742, 16749, 16751, 16752, 16753, 16754, 16755, 16756, 16757, 16758, 16759, 16761, 16762, 16763, 16764, 16765, 16766, 16767, 16768, 16769, 16770, 16772, 16773, 16774, 16775, 16776, 16777, 16778, 16779, 16784, 16786, 16787, 16788, 16789, 16790, 16791, 16792, 16793, 16794, 16798, 16799, 16803, 16804, 16806, 16811, 16815, 16816, 16817, 16821, 16825, 16827, 16828, 16840, 16846, 16847, 16852, 16854, 16856, 16857, 16882, 16883, 16884, 16885, 16886, 16887, 16889, 16890, 16891, 16892, 16893, 16894, 16897, 16901, 16902, 16904, 16905, 16908, 16910, 16911, 16912, 16913, 16914, 16915, 16916, 16917, 16918, 16920, 16921, 16922, 16923, 16924, 16925, 16926, 16927, 16932, 16934, 16936, 16937, 16938, 16939, 16941, 16942, 16943, 16944, 16946, 16947, 16948, 16949, 16950, 16951, 16952, 16953, 16954, 16955, 16956, 16957, 16958, 16959, 16960, 16961, 16962, 16963, 16965, 16966, 16967, 16968, 16969, 16976, 16985, 16986, 16987, 16989, 16990, 16991, 16992, 16993, 16995, 16996, 16997, 16998, 16999, 17000, 17001, 17003, 17004, 17005, 17006, 17007, 17008, 17009, 17014, 17015, 17016, 17017, 17018, 17019, 17021, 17022, 17025, 17026, 17027, 17028, 17029, 17035, 17037, 17040, 17042, 17049, 17052, 17055, 17057, 17061, 17063, 17064, 17065, 17066, 17067, 17068, 17069, 17070, 17071, 17072, 17073, 17074, 17075, 17076, 17077, 17078, 17079, 17080, 17085, 17088, 17089, 17092, 17093, 17094, 17095, 17097, 17100, 17101, 17102, 17103, 17104, 17105, 17108, 17109, 17113, 17114, 17115, 17116, 17117, 17118, 17127, 17132, 17139, 17145, 17148, 17158, 17162, 17163, 17165, 17168, 17172, 17176, 17178, 17181, 17182, 17183, 17186, 17187, 17188, 17190, 17192, 17194, 17198, 17200, 17202, 17203, 17204, 17206, 17211, 17214, 17215, 17216, 17218, 17220, 17221, 17222, 17223, 17226, 17239, 17240, 17247, 17248, 17251, 17252, 17253, 17256, 17257, 17263, 17265, 17270, 17271, 17275, 17283, 17296, 17298, 17299, 17300, 17301, 17302, 17303, 17304, 17311, 17313, 17314, 17319, 17321, 17324, 17325, 17326, 17328, 17334, 17335, 17336, 17337, 17338, 17339, 17340, 17341, 17342, 17343, 17344, 17345, 17346, 17347, 17349, 17350, 17352, 17358, 17359, 17360, 17361, 17362, 17363, 17367, 17368, 17369, 17371, 17372, 17376, 17377, 17380, 17381, 17383, 17384, 17386, 17388, 17389, 17391, 17392, 17393, 17397, 17399, 17400, 17401, 17402, 17403, 17404, 17406, 17407, 17408, 17409, 17410, 17411, 17412, 17415, 17416, 17419, 17421, 17422, 17425, 17426, 17430, 17431, 17437, 17439, 17446, 17448, 17456, 17457, 17458, 17459, 17461, 17463, 17464, 17466, 17472, 17474, 17475, 17476, 17477, 17478, 17481, 17482, 17483, 17486, 17487, 17488, 17490, 17494, 17496, 17497, 17498, 17499, 17501, 17503, 17504, 17508, 17509, 17511, 17512, 17513, 17514, 17515, 17516, 17517, 17518, 17519, 17524, 17525, 17526, 17527, 17528, 17530, 17532, 17534, 17540, 17543, 17544, 17545, 17546, 17547, 17548, 17549, 17550, 17551, 17552, 17553, 17554, 17555, 17556, 17559, 17561, 17565, 17566, 17567, 17568, 17573, 17574, 17575, 17576, 17578, 17580, 17585, 17586, 17587, 17593, 17594, 17596, 17597, 17599, 17600, 17603, 17604, 17605, 17607, 17608, 17609, 17611, 17612, 17613, 17614, 17615, 17616, 17619, 17620, 17623, 17624, 17625, 17629, 17630, 17632, 17635, 17637, 17639, 17640, 17644, 17647, 17658, 17659, 17661, 17663, 17664, 17665, 17667, 17668, 17669, 17670, 17671, 17673, 17674, 17676, 17677, 17678, 17679, 17683, 17684, 17685, 17686, 17687, 17688, 17692, 17693, 17694, 17695, 17696, 17697, 17698, 17699, 17700, 17701, 17702, 17703, 17705, 17706, 17707, 17710, 17713, 17714, 17715, 17716, 17719, 17720, 17721, 17726, 17727, 17728, 17729, 17730, 17731, 17732, 17733, 17736, 17739, 17740, 17744, 17745, 17746, 17747, 17748, 17751, 17752, 17753, 17754, 17755, 17756, 17757, 17760, 17763, 17764, 17766, 17767, 17768, 17769, 17771, 17772, 17774, 17775, 17780, 17781, 17782, 17783, 17785, 17786, 17787, 17788, 17790, 17792, 17794, 17798, 17800, 17801, 17803, 17805, 17810, 17811, 17812, 17814, 17815, 17816, 17819, 17823, 17824, 17826, 17827, 17828, 17835, 17836, 17837, 17838, 17839, 17841, 17842, 17843, 17844, 17845, 17852, 17853, 17856, 17857, 17858, 17859, 17860, 17877, 17878, 17879, 17883, 17885, 17888, 17889, 17891, 17895, 17897, 17899, 17901, 17902, 17904, 17905, 17907, 17908, 17909, 17910, 17911, 17913, 17914, 17915, 17916, 17918, 17919, 17920, 17924, 17925, 17926, 17927, 17930, 17933, 17935, 17936, 17938, 17940, 17941, 17942, 17945, 17946, 17948, 17949, 17950, 17951, 17952, 17953, 17954, 17955, 17956, 17958, 17960, 17962, 17965, 17966, 17967, 17968, 17969, 17970, 17972, 17973, 17974, 17975, 17976, 17978, 17980, 17984, 17987, 17989, 17991, 17993, 17994, 17995, 17996, 17997, 18000, 18001, 18003, 18004, 18005, 18007, 18009, 18011, 18012, 18014, 18018, 18019, 18020, 18027, 18028, 18030, 18031, 18033, 18034, 18036, 18037, 18038, 18040, 18051, 18052, 18053, 18055, 18056, 18057, 18058, 18060, 18063, 18071, 18072, 18077, 18078, 18079, 18080, 18081, 18083, 18086, 18091, 18095, 18097, 18102, 18113, 18116, 18119, 18133, 18134, 18138, 18143, 18144, 18148, 18153, 18154, 18155, 18163, 18173, 18174, 18175, 18180, 18181, 18182, 18183, 18186, 18188, 18191, 18193, 18195, 18196, 18197, 18203, 18205, 18207, 18209, 18210, 18212, 18216, 18217, 18218, 18219, 18220, 18221, 18222, 18223, 18224, 18227, 18228, 18229, 18230, 18231, 18232, 18237, 18240, 18243, 18244, 18245, 18246, 18247, 18248, 18249, 18250, 18251, 18252, 18256, 18262, 18263, 18264, 18265, 18266, 18267, 18268, 18269, 18270, 18272, 18273, 18274, 18275, 18276, 18284, 18289, 18306, 18307, 18318, 18319, 18326, 18327, 18328, 18330, 18332, 18335, 18337, 18338, 18352, 18353, 18354, 18364, 18365, 18366, 18374, 18380, 18381, 18382, 18383, 18384, 18386, 18397, 18398, 18399, 18400, 18401, 18402, 18405, 18407, 18408, 18411, 18414, 18416, 18417, 18418, 18419, 18421, 18423, 18428, 18429, 18430, 18431, 18432, 18433, 18434, 18435, 18436, 18438, 18440, 18442, 18445, 18446, 18449, 18450, 18451, 18452, 18454, 18457, 18458, 18460, 18462, 18463, 18467, 18469, 18474, 18475, 18476, 18477, 18489, 18490, 18495, 18515, 18518, 18519, 18524, 18525, 18526, 18527, 18532, 18535, 18539, 18547, 18548, 18549, 18550, 18551, 18553, 18567, 18568, 18569, 18570, 18571, 18575, 18576, 18581, 18584, 18610, 18619, 18622, 18627, 18629, 18633, 18634, 18635, 18636, 18637, 18638, 18640, 18641, 18642, 18644, 18645, 18646, 18647, 18650, 18653, 18655, 18662, 18665, 18667, 18670, 18673, 18684, 18685, 18688, 18691, 18693, 18702, 18706, 18707, 18712, 18715, 18716, 18717, 18718, 18729, 18740, 18741, 18742, 18758, 18759, 18764, 18771, 18773, 18774, 18775, 18776, 18782, 18787, 18802, 18805, 18806, 18807, 18808, 18809, 18813, 18815, 18816, 18817, 18824, 18825, 18833, 18834, 18835, 18837, 18838, 18841, 18842, 18843, 18857, 18868, 18882, 18883, 18884, 18891, 18893, 18895, 18898, 18910, 18927, 18928, 18929, 18931, 18933, 18937, 18944, 18947, 18953, 18966, 18970, 18973, 18975, 18991, 19022, 19023, 19024, 19025, 19032, 19034, 19035, 19040, 19041, 19048, 19058, 19059, 19060, 19061, 19062, 19064, 19073, 19127, 19132, 19133, 19134, 19135, 19136, 19139, 19146, 19147, 19153, 19161, 19162, 19165, 19166, 19168, 19169, 19182, 19185, 19199, 19211, 19212, 19227, 19232, 19233, 19234, 19235, 19243, 19244, 19247, 19248, 19249, 19256, 19258, 19259, 19260, 19263, 19264, 19266, 19268, 19273, 19285, 19286, 19296, 19300, 19307, 19309, 19336, 19337, 19340, 19344, 19346, 19349, 19351, 19352, 19355, 19356, 19359, 19364, 19365, 19367, 19410, 19427, 19431, 19432, 19434, 19435, 19447, 19452, 19455, 19458, 19461, 19462, 19465, 19472, 19478, 19479, 19483, 19502, 19514, 19524, 19552, 19555, 19599, 19618, 19626, 19627, 19629, 19636, 19637, 19638, 19639, 19641, 19643, 19647, 19649, 19668, 19720, 19722, 19723, 19749, 19781, 19788, 19795, 19805, 19808, 19809, 19812, 19816, 19824, 19826, 19828, 19830, 19833, 19835, 19846, 19849, 19850, 19852, 19861, 19862, 19863, 19867, 19875, 19878, 19879, 19894, 19901, 19904, 19906, 19907, 19934, 19942, 19944, 19960, 19961, 19962, 19964, 19965, 19966, 19967, 19974, 19983, 19984, 19985, 19986, 19987, 19988, 19990, 20009, 20010, 20014, 20015, 20020, 20022, 20025, 20034, 20035, 20036, 20037, 20038, 20039, 20040, 20041, 20044, 20046, 20049, 20050, 20051, 20052, 20054, 20055, 20056, 20064, 20065, 20066, 20067, 20069, 20070, 20071, 20072, 20074, 20081, 20084, 20085, 20086, 20087, 20088, 20089, 20090, 20091, 20092, 20094, 20095, 20096, 20097, 20098, 20100, 20102, 20106, 20109, 20146, 20147, 20154, 20155, 20163, 20164, 20178, 20189, 20205, 20206, 20208, 20218, 20219, 20220, 3844, 20231, 20246, 20247, 20248, 20250, 3868, 3869, 20253, 20254, 20257, 20259, 20261, 20262, 20267, 20269, 3887, 3888, 3889, 20275, 20277, 20280, 20282, 20283, 20284, 20286, 3903, 20287, 20289, 3907, 3908, 3909, 3910, 20293, 3915, 3916, 20303, 20304, 3921, 3922, 3923, 3924, 20305, 3927, 3928, 3929, 3931, 3935, 20327, 20357, 20372, 20374, 20394, 20398, 20399, 20400, 20402, 20406, 20407, 20408, 20409, 20410, 20411, 20414, 20424, 20427, 20429, 20437, 20452, 20454, 20455, 20456, 20457, 20458, 20461, 20464, 20473, 20474, 20475, 20476, 20477, 20478, 20486, 20490, 20491, 20492, 20493, 20500, 20520, 20533, 20535, 20544, 20545, 20546, 20547, 20551, 20555, 20560, 20579, 20583, 20588, 20589, 20591, 20592, 20595, 20601, 20611, 20614, 20616, 20621, 20630, 20631, 20633, 20635, 20636, 20640, 20642, 20649, 20651, 20655, 20658, 20661, 20673, 20719, 20722, 20730, 20731, 20742, 20750, 20753, 20755, 20758, 20910, 20932, 20977, 20980, 20987, 21093, 21095, 21137, 21160, 21278, 21284, 21305, 21306, 21311, 21312, 21313, 21314, 21325, 21327, 21328, 21329, 21335, 21344, 21347, 21354, 21366, 21379, 21382, 21383, 21416, 21424, 21426, 21427, 21428, 21429, 21430, 21442, 21500, 21508, 21512, 21519, 21545, 21550, 21582, 21583, 21589, 21590, 21613, 21663, 21665, 21668, 21678, 21688, 21709, 21711, 21724, 21725, 21726, 21730, 21736, 21737, 21746, 21751, 22237, 21838, 21840, 21847, 21848, 21850, 21862, 21875, 21876, 21877, 21878, 21879, 21881, 21882, 21883, 21884, 21885, 21886, 21887, 21888, 21889, 21890, 21891, 21904, 21906, 21907, 21915, 21917, 21923, 21930, 21931, 21935, 21937, 21938, 21942, 21946, 21950, 21955, 21958, 21959, 21964, 21966, 21968, 21969, 21970, 21971, 21972, 21973, 21974, 21975, 21976, 21977, 21983, 21984, 21986, 21987, 21989, 21990, 21991, 21992, 21993, 21994, 21995, 21996, 21997, 21999, 22001, 22002, 22004, 22007, 22009, 22026, 22027, 22030, 22031, 22032, 22034, 22035, 22044, 22048, 22053, 22055, 22060, 22061, 22063, 22067, 22073, 22076, 22077, 22080, 22085, 22086, 22087, 22088, 22089, 22097, 22099, 22100, 22101, 22104, 22106, 22107, 22114, 22115, 22116, 22119, 22121, 13931, 22123, 22128, 22134, 22141, 22142, 22143, 22151, 22164, 22168, 22187, 14003, 22198, 14011, 14014, 14015, 14016, 14022, 14023, 14024, 14026, 22220, 14029, 14031, 14032, 14033, 14034, 14035, 14036, 14037, 14038, 14039, 22223, 22230, 14042, 22231, 22233, 22234, 14046, 14047, 22235, 14049, 14050, 14051, 22236, 14053, 14054, 22238, 14058, 14059, 14061, 14063, 14070, 14073, 14074, 14078, 14079, 14080, 14081, 14083, 14089, 14090, 22283, 14096, 22293, 22295, 22296, 22298, 22301, 22302, 22303, 22306, 22308, 14120, 14121, 14122, 14123, 22323, 22324, 22325, 14135, 14136, 14138, 22334, 22335, 22337, 22339, 22340, 22341, 22342, 22343, 22344, 22345, 22346, 22348, 22364, 22365, 22376, 22377, 22382, 22388, 22389, 22391, 22412, 22414, 22415, 22416, 22434, 22437, 22441, 22445, 22458, 22477, 22484, 14306, 14308, 22508, 22512, 22513, 22515, 22517, 22526, 22529, 22531, 22536, 22539, 22543, 22561, 22563, 22582, 22596, 22608, 22610, 22613, 22614, 22617, 22620, 22634, 14445, 22638, 22639, 22640, 14454, 22652, 22661, 22667, 22668, 22671, 22676, 22687, 22696, 14511, 22703, 14519, 22715, 22720, 22722, 22724, 22730, 22762, 22763, 22765, 22768, 22771, 22776, 22777, 22778, 14591, 22785, 14595, 22788, 22789, 22790, 22804, 22805, 22829, 22832, 14646, 14647, 14648, 14650, 14651, 22844, 22847, 22849, 14659, 14662, 14663, 14664, 14666, 14667, 14668, 22859, 14670, 22871, 14681, 22900, 14709, 14722, 14727, 22923, 22924, 22931, 14740, 14742, 14743, 14745, 14746, 14747, 14748, 14749, 22943, 22955, 22966, 22968, 22969, 22970, 22971, 22972, 22976, 22977, 22979, 22982, 22983, 22984, 22985, 22987, 22988, 22994, 22998, 23002, 23003, 23004, 23007, 23008, 23009, 23010, 23016, 23018, 23021, 23025, 23026, 23051, 23052, 23055, 23063, 23064, 23066, 23068, 23069, 14880, 14881, 14892, 23086, 23089, 23090, 23091, 23092, 14901, 23093, 23096, 23097, 23098, 23099, 23100, 23101, 23102, 23104, 23105, 23106, 14915, 23107, 14927, 14928, 14962, 14965, 14966, 23163, 23165, 14974, 14975, 23185, 15010, 15011, 23221, 23222, 23224, 15033, 23226, 23228, 23229, 23249, 23266, 15095, 15124, 15129, 15130, 15133, 15138, 15142, 15143, 15144, 23338, 23342, 15152, 23346, 23348, 23355, 23356, 15167, 15168, 15169, 15171, 15172, 15186, 15201, 15202, 15203, 15204, 23401, 15210, 23402, 15227, 15230, 15231, 15232, 15275, 15281, 15292, 15293, 23493, 23494, 23496, 15310, 15313, 23510, 15323, 23516, 23517, 23518, 23519, 23522, 15331, 23523, 23524, 15336, 23536, 23550, 23555, 23556, 23557, 23558, 15368, 23567, 15386, 23585, 15395, 15403, 23595, 15407, 23602, 15411, 23614, 23615, 23618, 23619, 23622, 23623, 15432, 15434, 23628, 15438, 15439, 23630, 23631, 15442, 23632, 23636, 15446, 23638, 15448, 23639, 15450, 15451, 15452, 23640, 15454, 15455, 23641, 15457, 23642, 23643, 23644, 23645, 23646, 15463, 23647, 23648, 23651, 23653, 23655, 15469, 23658, 23660, 23661, 15473, 23662, 23664, 23666, 23668, 23674, 23675, 23678, 23679, 23680, 23684, 23687, 23692, 23693, 23695, 15510, 15512, 23705, 23706, 23718, 23719, 15530, 15531, 15532, 23725, 15535, 15536, 15537, 15538, 23729, 15540, 15541, 15543, 15546, 23738, 15549, 23744, 15557, 23751, 23752, 23755, 23756, 15565, 15566, 15567, 23757, 23760, 15570, 15571, 15572, 23761, 15577, 23769, 23770, 23772, 15586, 15602, 15604, 15616, 15617, 23812, 23814, 15625, 23818, 23822, 23825, 23835, 15644, 23836, 23837, 23838, 23840, 23841, 23842, 23843, 23851, 15662, 15667, 23860, 23861, 15681, 15682, 15684, 15685, 15686, 15689, 15690, 15691, 15692, 15697, 15698, 15700, 15701, 15702, 15707, 15709, 15710, 15711, 15712, 15714, 15720, 15721, 15722, 15729, 15739, 15741, 15744, 15745, 15746, 15747, 15748, 15749, 15750, 15751, 15763, 15803, 15805, 15806, 15807, 15818, 15819, 15820, 15821, 15826, 15828, 15830, 15832, 15833, 15834, 15835, 15838, 15839, 15841, 15842, 15843, 15848, 15849, 15851, 15853, 15854, 15858, 15859, 15860, 15861, 15864, 15865, 15866, 15867, 15869, 15877, 15879, 15882, 15883, 15884, 15885, 15889, 15890, 15893, 15894, 15897, 15898, 15900, 15901, 15902, 15903, 15904, 15905, 15915, 15916, 15919, 15922, 15923, 15924, 15928, 15930, 15931, 15935, 15936, 15937, 15938, 15940, 15943, 15947, 15957, 15961, 15963, 15964, 15965, 15966, 15967, 15968, 15969, 15970, 15971, 15972, 15973, 15974, 15977, 15980, 15982, 15983, 15984, 15985, 15986, 15987, 15988, 15989, 15992, 15993, 15994, 15996, 15997, 15998, 15999, 16000, 16001, 16008, 16012, 16016, 16017, 16018, 16029, 16032, 16038, 16039, 16044, 16045, 16047, 16048, 16051, 16052, 16053, 16057, 16058, 16059, 16060, 16061, 16063, 16064, 16066, 16068, 16069, 16072, 16073, 16074, 16076, 16077, 16078, 16080, 16081, 16084, 16089, 16091, 16092, 16093, 16096, 16097, 16099, 16100, 16101, 16102, 16103, 16104, 16105, 16106, 16107, 16108, 16109, 16110, 16111, 16112, 16113, 16114, 16115, 16116, 16117, 16119, 16123, 16124, 16125, 16126, 16127, 16128, 16134, 16141, 16142, 16144, 16145, 16146, 16148, 16152, 16153, 16154, 16155, 16157, 16158, 16160, 16161, 16164, 16167, 16168, 16170, 16171, 16173, 16174, 16179, 16180, 16182, 16183, 16184, 16185, 16186, 16190, 16191, 16192, 16193, 16194, 16195, 16196, 16197, 16198, 16199, 16200, 16201, 16202, 16203, 16204, 16206, 16207, 16208, 16210, 16211, 16212, 16213, 16214, 16215, 16217, 16220, 16221, 16229, 16230, 16231, 16233, 16234, 16236, 16238, 16239, 16240, 16241, 16242, 16243, 16244, 16245, 16246, 16247, 16249, 16283, 16284, 16285, 16286, 16287, 16288, 16289, 16290, 16291, 16292, 16293, 16295, 16296, 16297, 16298, 16299, 16300, 16302, 16303, 16304, 16305, 16306, 16307, 16308, 16309, 16310, 16311, 16312, 16316, 16317, 16318, 16320, 16321, 16322, 16324, 16326, 16331, 16332, 16333, 16336, 16337, 16341, 16342, 16343, 16344, 16345, 16347, 16348, 16349, 16350, 16352, 16353, 16356, 16357, 16358, 16359, 16360, 16361, 16362, 16363, 16364, 16365, 16366, 16370, 16371, 16372, 16374, 16375, 16376, 16377, 16378, 16379, 16380, 16381, 16383);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 16:24:40,934 - 13542 - src.utils.log - INFO - βœ… Fetched 1226 rows - __SPLIT__ 2026-05-08 16:24:40,942 - 13542 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-08 16:24:40,942 - 13542 - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceAutoGenerationAppliedDiscount: 11 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 16:24:41,259 - 13542 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 11) into Billing.InvoiceAutoGenerationAppliedDiscount - __SPLIT__ 2026-05-08 16:24:42,343 - 13542 - src.utils.log - INFO - βœ… All 11 rows inserted successfully into Billing.InvoiceAutoGenerationAppliedDiscount in 1 batches - __SPLIT__ 2026-05-08 16:24:42,343 - 13542 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-08 16:24:42,344 - 13542 - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceChargesAutoGeneration: 53 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 16:24:42,664 - 13542 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 53) into Billing.InvoiceChargesAutoGeneration - __SPLIT__ 2026-05-08 16:24:43,946 - 13542 - src.utils.log - INFO - βœ… All 53 rows inserted successfully into Billing.InvoiceChargesAutoGeneration in 1 batches - __SPLIT__ 2026-05-08 16:24:43,946 - 13542 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET Status = 'Completed' WHERE GenerateInvoiceHistoryId = 13542;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 16:24:44,243 - 13542 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-08 16:24:44,243 - 13542 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET InvoiceStatusDateTime = '2026-05-08 12:24:44.243' WHERE GenerateInvoiceHistoryId = 13542;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 16:24:44,536 - 13542 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-08 16:24:44,536 - 13542 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-05-08 16:24:44,536 - 13542 - src.utils.log - INFO - Sequential Invoice Gen Complete Successfully ProjectId:13542 - Time took: 30.26 - __SPLIT__ 2026-05-08 17:45:36,337 - 13543 - src.utils.log - INFO - ParallelProcessing=False GenerateInvoiceHistoryId=13543 - __SPLIT__ 2026-05-08 17:45:36,339 - 13543 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-05-08 17:45:36,340 - 13543 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 17:45:38,421 - 13543 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-08 17:45:38,421 - 13543 - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-05-08 17:45:38,421 - 13543 - src.utils.log - INFO - Sequential Invoice generation algo started for GenerateInvoiceHistoryId: 13543 - __SPLIT__ 2026-05-08 17:45:38,421 - 13543 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET Status = 'InProgress' WHERE GenerateInvoiceHistoryId = 13543;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 17:45:38,707 - 13543 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-08 17:45:38,707 - 13543 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateInvoiceHistory WHERE GenerateInvoiceHistoryId = 13543;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 17:45:39,022 - 13543 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-08 17:45:39,023 - 13543 - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceId as ServiceMasterId,ss.FrequencyScheduleId as setup_frequency_schedule_id, ssb.*, ss.IsBilling, ss.DepartmentMasterId, ss.AccountNumber, ss.CompanyId, ss.BillingLocationId, ss.ServiceLocationId, ss.TaxSysName, ss.TermId, t.NetDueIn, ss.TaxPercent, ss.PoNumber, ss.DisplayServiceAsSeparateLineItem, ss.SetupEndDate, ss.SetupStartDate from ServiceCore.ServiceSetup ss join ServiceCore.ServiceSetupBilling ssb on ss.ServiceSetupId = ssb.ServiceSetupId join Billing.PaymentTypeMaster ptm on ptm.PaymentTypeMasterId = ssb.PaymentTypeMasterId join Billing.Term t on ss.TermId = t.TermId join ServiceCore.ServiceSetupServices sss on ss.ServiceSetupId = sss.ServiceSetupId where ptm.PaymentType= 'Payment Plan' and ss.IsActive =1 and ss.CompanyId= 135 AND ss.IsDeleted =0 AND ss.Status <> 'Canceled' and ss.AccountNumber = '8334' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 17:45:39,329 - 13543 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-05-08 17:45:39,333 - 13543 - src.utils.log - INFO - No filter selected - __SPLIT__ 2026-05-08 17:45:39,334 - 13543 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-05-08 17:45:39,334 - 13543 - 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 = 13036... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 17:45:39,630 - 13543 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-08 17:45:39,631 - 13543 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-05-08 17:45:39,642 - 13543 - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionAutoGenerationId FROM Billing.TransactionAutoGeneration WHERE ServiceSetupId IN (23862, 23863) AND TransactionDate BETWEEN '2026-05-08 00:00:00' AND '2026-06-30 00:00:00' AND IsActive = 1 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 17:45:39,953 - 13543 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-08 17:45:39,959 - 13543 - src.utils.log - INFO - πŸ” Fetching data: SELECT Inv.ServiceSetupId, MAX(Inv.InvoiceDate) AS InvoiceDate FROM Billing.Invoice Inv INNER JOIN Billing.[Transaction] T ON Inv.TransactionId = T.TransactionId WHERE Inv.InvoiceDate BETWEEN '2026-05-08 00:00:00' AND '2026-06-30 00:00:00' AND Inv.IsActive = 1 AND Inv.IsDelete = 0 AND T.IsActive = 1 AND T.IsDelete = 0 AND Inv.ServiceSetupId IN (23862, 23863) GROUP BY Inv.ServiceSetupId;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 17:45:40,270 - 13543 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-08 17:45:40,279 - 13543 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-08 17:45:40,280 - 13543 - src.utils.log - INFO - πŸ“₯ Inserting into Billing.TransactionAutoGeneration: 4 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 17:45:40,596 - 13543 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 4) into Billing.TransactionAutoGeneration - __SPLIT__ 2026-05-08 17:45:41,642 - 13543 - src.utils.log - INFO - βœ… All 4 rows inserted successfully into Billing.TransactionAutoGeneration in 1 batches - __SPLIT__ 2026-05-08 17:45:41,642 - 13543 - src.utils.log - INFO - - __SPLIT__ 2026-05-08 17:45:41,642 - 13543 - src.utils.log - INFO - Total invoice generated: 4 - __SPLIT__ 2026-05-08 17:45:41,642 - 13543 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 4 TransactionAutoGenerationId, ServiceSetupId, TransactionDate as InvoiceDate From Billing.TransactionAutoGeneration WHERE CreatedDate = '2026-05-08 13:03:30.551' and ServiceSetupId in (23862, 23863) and GenerateWorkOrderHistoryId = 13543;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 17:45:41,929 - 13543 - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-05-08 17:45:41,936 - 13543 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-08 17:45:41,936 - 13543 - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceAutoGeneration: 4 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 17:45:42,258 - 13543 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 4) into Billing.InvoiceAutoGeneration - __SPLIT__ 2026-05-08 17:45:43,289 - 13543 - src.utils.log - INFO - βœ… All 4 rows inserted successfully into Billing.InvoiceAutoGeneration in 1 batches - __SPLIT__ 2026-05-08 17:45:43,289 - 13543 - src.utils.log - INFO - πŸ” Fetching data: SELECT I.InvoiceAutoGenerationId, T.ServiceSetupId FROM Billing.InvoiceAutoGeneration I JOIN Billing.TransactionAutoGeneration T ON I.TransactionAutoGenerationId = T.TransactionAutoGenerationId where T.TransactionAutoGenerationId in (799000, 799001, 799002, 799003);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 17:45:43,587 - 13543 - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-05-08 17:45:43,588 - 13543 - 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 (23862, 23863) and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 17:45:43,890 - 13543 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-05-08 17:45:43,897 - 13543 - 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 = 13057;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 17:45:44,186 - 13543 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-08 17:45:44,187 - 13543 - 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 = 13036;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 17:45:44,484 - 13543 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-08 17:45:44,488 - 13543 - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, DiscountSetupId,DiscountType,DiscountCode,DiscountAmount,DiscountDescription,DiscountName, DiscountPercent, IsDiscountPercent,AppliedDiscountAmt,ApplyOnPartPrice,ApplyOnLaborPrice from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE IsInitialSetupDiscount = 0 AND ssad.ServiceSetupId in (23862, 23863);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 17:45:44,801 - 13543 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-08 17:45:44,801 - 13543 - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.InvoiceAutoGenerationAppliedDiscount: - __SPLIT__ 2026-05-08 17:45:44,801 - 13543 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-08 17:45:44,802 - 13543 - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceChargesAutoGeneration: 4 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 17:45:45,126 - 13543 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 4) into Billing.InvoiceChargesAutoGeneration - __SPLIT__ 2026-05-08 17:45:46,182 - 13543 - src.utils.log - INFO - βœ… All 4 rows inserted successfully into Billing.InvoiceChargesAutoGeneration in 1 batches - __SPLIT__ 2026-05-08 17:45:46,183 - 13543 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET Status = 'Completed' WHERE GenerateInvoiceHistoryId = 13543;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 17:45:46,479 - 13543 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-08 17:45:46,479 - 13543 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET InvoiceStatusDateTime = '2026-05-08 13:45:46.479' WHERE GenerateInvoiceHistoryId = 13543;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-08 17:45:46,776 - 13543 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-08 17:45:46,777 - 13543 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-05-08 17:45:46,777 - 13543 - src.utils.log - INFO - Sequential Invoice Gen Complete Successfully ProjectId:13543 - Time took: 10.44 - __SPLIT__ 2026-05-11 05:29:31,938 - [13544] - src.utils.log - INFO - ParallelProcessing=False temp_invoice=[799027, 799028] user_id=122885 company_id=135 project_id=[13544] publish_all=False - __SPLIT__ 2026-05-11 05:29:32,160 - [13544] - src.utils.log - INFO - Invoice Published Successfully - __SPLIT__ 2026-05-11 05:29:32,225 - [13544] - src.utils.log - INFO - Sequential invoice publish in progress - __SPLIT__ 2026-05-11 05:29:32,300 - [13544] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-05-11 05:29:32,371 - [13544] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 05:29:34,425 - [13544] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-11 05:29:34,489 - [13544] - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-05-11 05:29:34,549 - [13544] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET PublishStatus = 'InProgress', InvoicePublishStartDateTime = '2026-05-11 01:29:34.549' WHERE CompanyId = 135 AND GenerateInvoiceHistoryId = 13544;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 05:29:34,894 - [13544] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-11 05:29:34,957 - [13544] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Billing.InvoiceAutoGeneration i WHERE TransactionAutoGenerationId in (799027, 799028);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 05:29:35,309 - [13544] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-05-11 05:29:35,375 - [13544] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Billing.TransactionAutoGeneration tag WHERE tag.TransactionAutoGenerationId in (799027, 799028);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 05:29:35,737 - [13544] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-05-11 05:29:35,809 - [13544] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 05:29:36,323 - [13544] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-05-11 05:29:37,404 - [13544] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-05-11 05:29:37,620 - [13544] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-05-11 05:29:37,690 - [13544] - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionId, ModifiedBy from Billing.[Transaction] t WHERE t.ModifiedBy in (12345678910, 12345678911);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 05:29:38,095 - [13544] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-05-11 05:29:38,159 - [13544] - src.utils.log - INFO - πŸ“ Executing: UPDATE Billing.[Transaction] SET ModifiedBy = NULL WHERE ModifiedBy IN (12345678910,12345678911); ... (Thread: ThreadPoolExecutor-0_0) - __SPLIT__ 2026-05-11 05:29:38,714 - [13544] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-11 05:29:38,790 - [13544] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 135 AND EnitityNumberType in ('Invoice'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 05:29:39,168 - [13544] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-11 05:29:39,234 - [13544] - src.utils.log - INFO - 2 Invoice Generated : [166006, 166007] - __SPLIT__ 2026-05-11 05:29:39,305 - [13544] - src.utils.log - INFO - πŸ“ Executing: UPDATE Common.GenerateNumberConfig SET NextNumber = '166008' WHERE CompanyId = 135 AND EnitityNumberType in ('Invoice');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 05:29:39,661 - [13544] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-11 05:29:39,731 - [13544] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-11 05:29:39,801 - [13544] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 05:29:40,180 - [13544] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.Invoice - __SPLIT__ 2026-05-11 05:29:41,275 - [13544] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-05-11 05:29:41,343 - [13544] - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionId, InvoiceId FROM Billing.Invoice WHERE TransactionId in (406569, 406570);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 05:29:41,693 - [13544] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-05-11 05:29:41,763 - [13544] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Billing.InvoiceChargesAutoGeneration icag WHERE InvoiceAutoGenerationId in (853928, 853929);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 05:29:42,113 - [13544] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-05-11 05:29:42,178 - [13544] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Billing.InvoiceAutoGenerationAppliedDiscount iagad WHERE InvoiceAutoGenerationId in (853928, 853929);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 05:29:42,540 - [13544] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-11 05:29:42,611 - [13544] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-11 05:29:42,673 - [13544] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceCharges: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 05:29:43,052 - [13544] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.InvoiceCharges - __SPLIT__ 2026-05-11 05:29:44,132 - [13544] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.InvoiceCharges in 1 batches - __SPLIT__ 2026-05-11 05:29:44,249 - [13544] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.AccountDiscountSetup: - __SPLIT__ 2026-05-11 05:29:44,311 - [13544] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.DiscountApplied: - __SPLIT__ 2026-05-11 05:29:44,373 - [13544] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: delete FROM Billing.InvoiceAutoGenerationAppliedDiscount WHERE InvoiceAutoGenerationId in (853928, 853929) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 05:29:44,712 - [13544] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-11 05:29:44,775 - [13544] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: delete FROM Billing.InvoiceChargesAutoGeneration WHERE InvoiceAutoGenerationId in (853928, 853929) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 05:29:45,120 - [13544] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-11 05:29:45,188 - [13544] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: delete FROM Billing.InvoiceAutoGeneration WHERE InvoiceAutoGenerationId in (853928, 853929) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 05:29:45,548 - [13544] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-11 05:29:45,611 - [13544] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: delete FROM Billing.TransactionAutoGeneration WHERE TransactionAutoGenerationId in (799027, 799028) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 05:29:45,956 - [13544] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-11 05:29:46,018 - [13544] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-05-11 01:29:34.549' WHERE CompanyId = 135 AND GenerateInvoiceHistoryId = 13544;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 05:29:46,375 - [13544] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-11 05:29:46,437 - [13544] - src.utils.log - INFO - Sequential invoice publish completed successfully - Time took: 14.14 - __SPLIT__ 2026-05-11 05:55:58,763 - 12154 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=12154 - __SPLIT__ 2026-05-11 05:55:58,883 - 12154 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 12154 - __SPLIT__ 2026-05-11 05:55:58,946 - 12154 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-05-11 05:55:59,006 - 12154 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 05:56:01,037 - 12154 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-11 05:56:01,097 - 12154 - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-05-11 05:56:01,157 - 12154 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 12154;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 05:56:01,491 - 12154 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-11 05:56:01,547 - 12154 - 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 = 12154), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 12154), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 12154 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-05-11 05:56:01,915 - 12154 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-11 05:56:01,974 - 12154 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 12154;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 05:56:02,325 - 12154 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-11 05:56:02,385 - 12154 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-05-11 05:56:02,441 - 12154 - 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-05-11 05:56:02,792 - 12154 - src.utils.log - INFO - βœ… Fetched 60 rows - __SPLIT__ 2026-05-11 05:56:02,849 - 12154 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-05-11 05:56:02,910 - 12154 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-05-11 05:56:02,963 - 12154 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 23866;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 05:56:03,306 - 12154 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-11 05:56:03,360 - 12154 - src.utils.log - INFO - πŸ” Fetching data: select ServiceDate, ServiceSetupId, IsInitial from serviceCore.WorkOrder wo inner join ServiceCore.WorkOrderStatus wos on wo.WoStatusId = wos.WoStatusId where ServiceDate >= '2026-05-11 00:00:00' and ServiceDate <= '2026-06-30 00:00:00' and ServiceSetupId = 23866 and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 05:56:03,703 - 12154 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-11 05:56:04,414 - 12154 - src.utils.log - INFO - Generating work orders for setup: 23866 - __SPLIT__ 2026-05-11 05:56:04,494 - 12154 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 1414;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 05:56:04,828 - 12154 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-11 05:56:04,921 - 12154 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-05-11 05:56:04,990 - 12154 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=135 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 05:56:05,331 - 12154 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-11 05:56:05,391 - 12154 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-05-11 05:56:05,448 - 12154 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-05-11 05:56:05,509 - 12154 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 23866 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 05:56:05,860 - 12154 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-11 05:56:05,920 - 12154 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 23866 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 05:56:06,268 - 12154 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-11 05:56:06,328 - 12154 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 23866 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 05:56:06,671 - 12154 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-11 05:56:06,724 - 12154 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 23866 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 05:56:07,060 - 12154 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-11 05:56:07,122 - 12154 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 23866 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 05:56:07,473 - 12154 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-11 05:56:07,525 - 12154 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 23866 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 05:56:07,881 - 12154 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-11 05:56:08,003 - 12154 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 23866 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 05:56:08,355 - 12154 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-11 05:56:08,420 - 12154 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 23866 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 05:56:08,809 - 12154 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-11 05:56:08,864 - 12154 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-11 05:56:08,930 - 12154 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 3 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 05:56:09,349 - 12154 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-05-11 05:56:10,643 - 12154 - src.utils.log - INFO - βœ… All 3 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-05-11 05:56:10,702 - 12154 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 3 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-05-08 18:33:30.520' and ServiceSetupId = 23866... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 05:56:11,057 - 12154 - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-05-11 05:56:11,121 - 12154 - src.utils.log - INFO - Id's of work order inserted to DB: [2729573 2729574 2729575] - __SPLIT__ 2026-05-11 05:56:11,186 - 12154 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 23866;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 05:56:11,526 - 12154 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-11 05:56:11,590 - 12154 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-05-11 05:56:11,650 - 12154 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId = 23866... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 05:56:11,995 - 12154 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-11 05:56:12,060 - 12154 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId = 23866... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 05:56:12,409 - 12154 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-11 05:56:12,477 - 12154 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId = 23866... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 05:56:12,832 - 12154 - src.utils.log - INFO - βœ… Fetched 5 rows - __SPLIT__ 2026-05-11 05:56:12,950 - 12154 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId = 23866... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 05:56:13,305 - 12154 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-11 05:56:13,369 - 12154 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId = 23866... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 05:56:13,723 - 12154 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-11 05:56:13,789 - 12154 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId = 23866;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 05:56:14,142 - 12154 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-11 05:56:14,206 - 12154 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId = 23866;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 05:56:14,580 - 12154 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-11 05:56:14,644 - 12154 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId = 23866;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 05:56:15,009 - 12154 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-11 05:56:15,071 - 12154 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId = 23866;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 05:56:15,422 - 12154 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-11 05:56:15,493 - 12154 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-05-11 05:56:15,557 - 12154 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-05-11 05:56:15,615 - 12154 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-05-11 05:56:15,680 - 12154 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.CommunicationPreferencesServiceReportNotification: - __SPLIT__ 2026-05-11 05:56:15,744 - 12154 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-05-11 05:56:15,801 - 12154 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SetupAutoGenerationSourceMapping: - __SPLIT__ 2026-05-11 05:56:15,865 - 12154 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-05-11 05:56:15,926 - 12154 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationAppliedDiscount: - __SPLIT__ 2026-05-11 05:56:16,048 - 12154 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-05-11 05:56:16,117 - 12154 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SubWorkOrderAutoGeneration: - __SPLIT__ 2026-05-11 05:56:16,180 - 12154 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-05-11 05:56:16,239 - 12154 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: - __SPLIT__ 2026-05-11 05:56:16,304 - 12154 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-05-11 05:56:16,366 - 12154 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: - __SPLIT__ 2026-05-11 05:56:16,430 - 12154 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-05-11 05:56:16,499 - 12154 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-11 05:56:16,567 - 12154 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (2729573, 2729574, 2729575) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 05:56:16,929 - 12154 - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-05-11 05:56:16,997 - 12154 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationCrews: 7 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 05:56:17,362 - 12154 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 7) into ServiceCore.WorkOrderAutoGenerationCrews - __SPLIT__ 2026-05-11 05:56:18,440 - 12154 - src.utils.log - INFO - βœ… All 7 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationCrews in 1 batches - __SPLIT__ 2026-05-11 05:56:18,505 - 12154 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-05-11 05:56:18,573 - 12154 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-11 05:56:18,635 - 12154 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 2729573 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 05:56:18,995 - 12154 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-11 05:56:19,057 - 12154 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 05:56:19,436 - 12154 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-05-11 05:56:20,502 - 12154 - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-05-11 05:56:20,617 - 12154 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-05-11 05:56:20,680 - 12154 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-11 05:56:20,748 - 12154 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (2729574, 2729575) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 05:56:21,107 - 12154 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-05-11 05:56:21,178 - 12154 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 05:56:21,543 - 12154 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-05-11 05:56:22,616 - 12154 - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-05-11 05:56:22,681 - 12154 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-05-11 05:56:22,752 - 12154 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 12154;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 05:56:23,112 - 12154 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-11 05:56:23,178 - 12154 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-05-11 05:56:23,242 - 12154 - src.utils.log - INFO - Time took to perform operation: 24.23 - __SPLIT__ 2026-05-11 05:56:23,306 - 12154 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 12154;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 05:56:23,657 - 12154 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-11 05:56:23,729 - 12154 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET WorkOrderStatusDateTime = '2026-05-11 01:56:23.729' WHERE GenerateWorkOrderHistoryId = 12154;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 05:56:24,080 - 12154 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-11 05:58:00,796 - 12155 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=12155 - __SPLIT__ 2026-05-11 05:58:00,933 - 12155 - src.utils.log - INFO - Work order Generation/Publish algo started for GenerateWorkOrderHistoryId: 12155 - __SPLIT__ 2026-05-11 05:58:00,997 - 12155 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-05-11 05:58:01,069 - 12155 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 05:58:03,237 - 12155 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-11 05:58:03,295 - 12155 - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-05-11 05:58:03,360 - 12155 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 12155;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 05:58:03,705 - 12155 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-11 05:58:03,774 - 12155 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET WoGenStartDateTime = '2026-05-11 01:58:03.774' WHERE GenerateWorkOrderHistoryId = 12155;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 05:58:04,134 - 12155 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-11 05:58:04,202 - 12155 - src.utils.log - INFO - πŸ” Fetching data: Select CreatedBy, CompanyId from ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryId = 12155;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 05:58:04,548 - 12155 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-11 05:58:04,607 - 12155 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'New', WoPublishStartDateTime = '2026-05-11 01:58:04.607' WHERE CompanyId = 135 AND GenerateWorkOrderHistoryId = 12155;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 05:58:04,961 - 12155 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-11 05:58:05,028 - 12155 - 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 = 12155), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 12155), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 12155 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-05-11 05:58:05,450 - 12155 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-11 05:58:05,518 - 12155 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 12155;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 05:58:05,875 - 12155 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-11 05:58:05,945 - 12155 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-05-11 05:58:06,016 - 12155 - 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-05-11 05:58:06,373 - 12155 - src.utils.log - INFO - βœ… Fetched 60 rows - __SPLIT__ 2026-05-11 05:58:06,500 - 12155 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-05-11 05:58:06,577 - 12155 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-05-11 05:58:06,657 - 12155 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 23866;... (Thread: ThreadPoolExecutor-1_0) - __SPLIT__ 2026-05-11 05:58:07,013 - 12155 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-11 05:58:07,082 - 12155 - src.utils.log - INFO - πŸ” Fetching data: select ServiceDate, ServiceSetupId, IsInitial from serviceCore.WorkOrder wo inner join ServiceCore.WorkOrderStatus wos on wo.WoStatusId = wos.WoStatusId where ServiceDate >= '2026-05-11 00:00:00' and ServiceDate <= '2026-06-30 00:00:00' and ServiceSetupId = 23866 and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: ThreadPoolExecutor-1_0) - __SPLIT__ 2026-05-11 05:58:07,441 - 12155 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-11 05:58:08,096 - 12155 - src.utils.log - INFO - Generating work orders for setup: 23866 - __SPLIT__ 2026-05-11 05:58:08,191 - 12155 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 1414;... (Thread: ThreadPoolExecutor-1_0) - __SPLIT__ 2026-05-11 05:58:08,541 - 12155 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-11 05:58:08,648 - 12155 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-05-11 05:58:08,721 - 12155 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=135 and [SysName]= 'Incomplete' ;... (Thread: ThreadPoolExecutor-1_0) - __SPLIT__ 2026-05-11 05:58:09,068 - 12155 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-11 05:58:09,145 - 12155 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-05-11 05:58:09,213 - 12155 - src.utils.log - INFO - Running deletes in PARALLEL… - __SPLIT__ 2026-05-11 05:58:09,283 - 12155 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 23866 ) (Thread: ThreadPoolExecutor-2_0) - __SPLIT__ 2026-05-11 05:58:09,283 - 12155 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 23866 ) (Thread: ThreadPoolExecutor-2_1) - __SPLIT__ 2026-05-11 05:58:09,284 - 12155 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 23866 ) (Thread: ThreadPoolExecutor-2_2) - __SPLIT__ 2026-05-11 05:58:09,286 - 12155 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 23866 ) (Thread: ThreadPoolExecutor-2_3) - __SPLIT__ 2026-05-11 05:58:09,286 - 12155 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 23866 ) (Thread: ThreadPoolExecutor-2_4) - __SPLIT__ 2026-05-11 05:58:09,286 - 12155 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 23866 ) (Thread: ThreadPoolExecutor-2_5) - __SPLIT__ 2026-05-11 05:58:09,286 - 12155 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 23866 ) (Thread: ThreadPoolExecutor-2_6) - __SPLIT__ 2026-05-11 05:58:09,668 - 12155 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-11 05:58:10,609 - 12155 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-11 05:58:10,664 - 12155 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-11 05:58:10,739 - 12155 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-11 05:58:10,815 - 12155 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-11 05:58:10,941 - 12155 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-11 05:58:11,012 - 12155 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-11 05:58:11,081 - 12155 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 23866 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 05:58:11,482 - 12155 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-11 05:58:11,546 - 12155 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 23866;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 05:58:11,905 - 12155 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-11 05:58:11,979 - 12155 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-05-11 05:58:12,048 - 12155 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId = 23866... (Thread: ThreadPoolExecutor-3_0) - __SPLIT__ 2026-05-11 05:58:12,048 - 12155 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId = 23866... (Thread: ThreadPoolExecutor-3_1) - __SPLIT__ 2026-05-11 05:58:12,049 - 12155 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId = 23866... (Thread: ThreadPoolExecutor-3_2) - __SPLIT__ 2026-05-11 05:58:12,049 - 12155 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId = 23866... (Thread: ThreadPoolExecutor-3_3) - __SPLIT__ 2026-05-11 05:58:12,052 - 12155 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId = 23866;... (Thread: ThreadPoolExecutor-3_5) - __SPLIT__ 2026-05-11 05:58:12,052 - 12155 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId = 23866;... (Thread: ThreadPoolExecutor-3_4) - __SPLIT__ 2026-05-11 05:58:12,052 - 12155 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId = 23866;... (Thread: ThreadPoolExecutor-3_7) - __SPLIT__ 2026-05-11 05:58:12,052 - 12155 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId = 23866;... (Thread: ThreadPoolExecutor-3_6) - __SPLIT__ 2026-05-11 05:58:12,461 - 12155 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-11 05:58:12,511 - 12155 - src.utils.log - INFO - βœ… Fetched 5 rows - __SPLIT__ 2026-05-11 05:58:12,560 - 12155 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-11 05:58:12,620 - 12155 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-11 05:58:12,698 - 12155 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId = 23866... (Thread: ThreadPoolExecutor-3_0) - __SPLIT__ 2026-05-11 05:58:12,701 - 12155 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-11 05:58:12,753 - 12155 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-11 05:58:12,867 - 12155 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-11 05:58:13,251 - 12155 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-11 05:58:13,858 - 12155 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-11 05:58:13,930 - 12155 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 12155;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 05:58:14,303 - 12155 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-11 05:58:14,368 - 12155 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET WorkOrderStatusDateTime = '2026-05-11 01:58:14.368' WHERE CompanyId = 135 AND GenerateWorkOrderHistoryId = 12155;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 05:58:14,726 - 12155 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-11 05:58:14,789 - 12155 - src.utils.log - INFO - - __SPLIT__ 2026-05-11 05:58:14,853 - 12155 - src.utils.log - INFO - Work order generation successful - Time took: 13.79 - __SPLIT__ 2026-05-11 05:58:14,913 - 12155 - src.utils.log - INFO - Work order publish in progress for GenerateWorkOrderHistoryId: 12155 - __SPLIT__ 2026-05-11 05:58:14,975 - 12155 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'InProgress', WoPublishStartDateTime = '2026-05-11 01:58:14.975' WHERE CompanyId = 135 AND GenerateWorkOrderHistoryId = 12155;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 05:58:15,331 - 12155 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-11 05:58:15,447 - 12155 - src.utils.log - INFO - πŸ” Fetching data: Select CreatedBy from ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryId = 12155;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 05:58:15,810 - 12155 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-11 05:58:15,873 - 12155 - src.utils.log - INFO - Inside get_work_order_table - __SPLIT__ 2026-05-11 05:58:15,938 - 12155 - 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 = 23866 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 05:58:16,306 - 12155 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-11 05:58:16,364 - 12155 - 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 = 23866 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 05:58:16,717 - 12155 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-11 05:58:16,783 - 12155 - 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 = 23866 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 05:58:17,151 - 12155 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-11 05:58:17,218 - 12155 - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder,BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 135;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 05:58:17,567 - 12155 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-11 05:58:17,628 - 12155 - 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-05-11 05:58:17,988 - 12155 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-05-11 05:58:18,056 - 12155 - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder, BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 135; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 05:58:18,406 - 12155 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-11 05:58:18,468 - 12155 - 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-05-11 05:58:18,829 - 12155 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-05-11 05:58:18,900 - 12155 - 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 = 23866... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 05:58:19,259 - 12155 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-11 05:58:19,324 - 12155 - src.utils.log - INFO - πŸ” Fetching data: SELECT x.CompanyId FROM CRM.CompanyMaster x WHERE CompanyKey = 'Fortive';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 05:58:19,743 - 12155 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-11 05:58:19,809 - 12155 - src.utils.log - INFO - πŸ” Fetching data: SELECT CollectionStatus,IsHold,AccountNo FROM CRM.Account a WHERE a.AccountNo = 'Shivi_23' and a.CompanyId = 124;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 05:58:20,160 - 12155 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-11 05:58:20,227 - 12155 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderNo FROM ServiceCore.WorkOrder WHERE WorkOrderNo IN ('166006R', '166007R', '166008R') AND CompanyId = 135 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 05:58:20,583 - 12155 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-11 05:58:20,642 - 12155 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrder (skip triggers): 3 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 05:58:21,212 - 12155 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into ServiceCore.WorkOrder (triggers skipped) - __SPLIT__ 2026-05-11 05:58:22,516 - 12155 - src.utils.log - INFO - βœ… All 3 rows inserted successfully into ServiceCore.WorkOrder in 1 batches (triggers skipped) - __SPLIT__ 2026-05-11 05:58:22,728 - 12155 - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-05-11 05:58:22,794 - 12155 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.ServiceSetup SET IsInitialWoGenerated = 1 WHERE CompanyId = 135 AND ServiceSetupId = 23866;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 05:58:23,153 - 12155 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-11 05:58:23,217 - 12155 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkorderId, WorkOrderNo FROM ServiceCore.WorkOrder wo WHERE wo.WorkOrderNo IN ('166006R', '166007R', '166008R') AND wo.AccountNumber = 'Shivi_23' AND wo.CompanyId = 135 ... (Thread: ThreadPoolExecutor-4_0) - __SPLIT__ 2026-05-11 05:58:23,572 - 12155 - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-05-11 05:58:23,633 - 12155 - src.utils.log - INFO - Updating temp tables - __SPLIT__ 2026-05-11 05:58:23,712 - 12155 - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyKey FROM Common.CompanyMaster cm WHERE CompanyId = 135;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 05:58:24,066 - 12155 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-11 05:58:24,126 - 12155 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 135 AND EnitityNumberType in ('SubWorkOrder'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 05:58:24,489 - 12155 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-11 05:58:24,556 - 12155 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-11 05:58:24,618 - 12155 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishHistory: 3 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 05:58:25,066 - 12155 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into ServiceCore.WorkOrderAutoGenerationPublishHistory - __SPLIT__ 2026-05-11 05:58:26,153 - 12155 - src.utils.log - INFO - βœ… All 3 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishHistory in 1 batches - __SPLIT__ 2026-05-11 05:58:26,241 - 12155 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationPublishHistoryId, WorkOrderNo, ServiceSetupId FROM ServiceCore.WorkOrderAutoGenerationPublishHistory WHERE ServiceSetupId = 23866 AND WorkOrderNo IN (886647, 1575229, 3059271) AND GenerateWorkOrderHistoryId = 12155;... (Thread: ThreadPoolExecutor-5_0) - __SPLIT__ 2026-05-11 05:58:26,617 - 12155 - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-05-11 05:58:26,677 - 12155 - src.utils.log - INFO - 🏁 Final merged rows: 3 - __SPLIT__ 2026-05-11 05:58:26,745 - 12155 - src.utils.log - INFO - Error: insert_all_publish_tables_parallel() takes 11 positional arguments but 12 were given - __SPLIT__ 2026-05-11 05:58:26,808 - 12155 - src.utils.log - INFO - Time took to perform operation in publishing 12155: 25.81 - __SPLIT__ 2026-05-11 05:58:26,874 - 12155 - src.utils.log - INFO - Publish Completed for GenerateWorkOrderHistoryId: 12155 - __SPLIT__ 2026-05-11 05:58:26,946 - 12155 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-05-11 01:58:26.945' WHERE CompanyId = 135 AND GenerateWorkOrderHistoryId = 12155;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 05:58:27,326 - 12155 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-11 06:12:40,710 - 12156 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=12156 - __SPLIT__ 2026-05-11 06:12:40,825 - 12156 - src.utils.log - INFO - Work order Generation/Publish algo started for GenerateWorkOrderHistoryId: 12156 - __SPLIT__ 2026-05-11 06:12:40,887 - 12156 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-05-11 06:12:40,961 - 12156 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 06:12:43,051 - 12156 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-11 06:12:43,112 - 12156 - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-05-11 06:12:43,173 - 12156 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 12156;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 06:12:43,522 - 12156 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-11 06:12:43,589 - 12156 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET WoGenStartDateTime = '2026-05-11 02:12:43.589' WHERE GenerateWorkOrderHistoryId = 12156;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 06:12:43,932 - 12156 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-11 06:12:43,999 - 12156 - src.utils.log - INFO - πŸ” Fetching data: Select CreatedBy, CompanyId from ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryId = 12156;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 06:12:44,351 - 12156 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-11 06:12:44,414 - 12156 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'New', WoPublishStartDateTime = '2026-05-11 02:12:44.414' WHERE CompanyId = 135 AND GenerateWorkOrderHistoryId = 12156;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 06:12:44,774 - 12156 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-11 06:12:44,842 - 12156 - 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 = 12156), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 12156), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 12156 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-05-11 06:12:45,223 - 12156 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-11 06:12:45,289 - 12156 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 12156;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 06:12:45,634 - 12156 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-11 06:12:45,697 - 12156 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-05-11 06:12:45,758 - 12156 - 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-05-11 06:12:46,112 - 12156 - src.utils.log - INFO - βœ… Fetched 60 rows - __SPLIT__ 2026-05-11 06:12:46,230 - 12156 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-05-11 06:12:46,306 - 12156 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-05-11 06:12:46,372 - 12156 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 23866;... (Thread: ThreadPoolExecutor-6_0) - __SPLIT__ 2026-05-11 06:12:46,731 - 12156 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-11 06:12:46,806 - 12156 - src.utils.log - INFO - πŸ” Fetching data: select ServiceDate, ServiceSetupId, IsInitial from serviceCore.WorkOrder wo inner join ServiceCore.WorkOrderStatus wos on wo.WoStatusId = wos.WoStatusId where ServiceDate >= '2026-05-11 00:00:00' and ServiceDate <= '2026-06-30 00:00:00' and ServiceSetupId = 23866 and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: ThreadPoolExecutor-6_0) - __SPLIT__ 2026-05-11 06:12:47,176 - 12156 - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-05-11 06:12:47,829 - 12156 - src.utils.log - INFO - Generating work orders for setup: 23866 - __SPLIT__ 2026-05-11 06:12:47,934 - 12156 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-05-11 06:12:48,008 - 12156 - src.utils.log - INFO - Running deletes in PARALLEL… - __SPLIT__ 2026-05-11 06:12:48,076 - 12156 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 23866 ) (Thread: ThreadPoolExecutor-7_0) - __SPLIT__ 2026-05-11 06:12:48,076 - 12156 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 23866 ) (Thread: ThreadPoolExecutor-7_1) - __SPLIT__ 2026-05-11 06:12:48,077 - 12156 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 23866 ) (Thread: ThreadPoolExecutor-7_2) - __SPLIT__ 2026-05-11 06:12:48,077 - 12156 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 23866 ) (Thread: ThreadPoolExecutor-7_3) - __SPLIT__ 2026-05-11 06:12:48,077 - 12156 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 23866 ) (Thread: ThreadPoolExecutor-7_4) - __SPLIT__ 2026-05-11 06:12:48,080 - 12156 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 23866 ) (Thread: ThreadPoolExecutor-7_5) - __SPLIT__ 2026-05-11 06:12:48,080 - 12156 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 23866 ) (Thread: ThreadPoolExecutor-7_6) - __SPLIT__ 2026-05-11 06:12:48,433 - 12156 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-11 06:12:49,353 - 12156 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-11 06:12:49,424 - 12156 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-11 06:12:49,494 - 12156 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-11 06:12:49,565 - 12156 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-11 06:12:49,635 - 12156 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-11 06:12:49,699 - 12156 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-11 06:12:49,809 - 12156 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 23866 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 06:12:50,191 - 12156 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-11 06:12:50,264 - 12156 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 12156;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 06:12:50,608 - 12156 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-11 06:12:50,671 - 12156 - src.utils.log - INFO - Error in work order generation Error: cannot unpack non-iterable NoneType object - __SPLIT__ 2026-05-11 06:12:50,738 - 12156 - src.utils.log - INFO - Work order generation failed - Time took: 9.78 - __SPLIT__ 2026-05-11 06:12:50,806 - 12156 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'Completed', WorkOrderStatusDateTime = '2026-05-11 02:12:50.806', PublishStatusDateTime = '2026-05-11 02:12:50.806'WHERE CompanyId = 135 AND GenerateWorkOrderHistoryId = 12156;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 06:12:51,173 - 12156 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-11 06:16:44,772 - 12157 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=12157 - __SPLIT__ 2026-05-11 06:16:45,037 - 12157 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 12157 - __SPLIT__ 2026-05-11 06:16:45,107 - 12157 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-05-11 06:16:45,175 - 12157 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 06:16:47,292 - 12157 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-11 06:16:47,365 - 12157 - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-05-11 06:16:47,434 - 12157 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 12157;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 06:16:47,785 - 12157 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-11 06:16:47,851 - 12157 - 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 = 12157), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 12157), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 12157 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-05-11 06:16:48,259 - 12157 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-11 06:16:48,330 - 12157 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 12157;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 06:16:48,685 - 12157 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-11 06:16:48,758 - 12157 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-05-11 06:16:48,829 - 12157 - 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-05-11 06:16:49,203 - 12157 - src.utils.log - INFO - βœ… Fetched 60 rows - __SPLIT__ 2026-05-11 06:16:49,275 - 12157 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-05-11 06:16:49,344 - 12157 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-05-11 06:16:49,413 - 12157 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 23866;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 06:16:49,777 - 12157 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-11 06:16:49,835 - 12157 - src.utils.log - INFO - πŸ” Fetching data: select ServiceDate, ServiceSetupId, IsInitial from serviceCore.WorkOrder wo inner join ServiceCore.WorkOrderStatus wos on wo.WoStatusId = wos.WoStatusId where ServiceDate >= '2026-05-11 00:00:00' and ServiceDate <= '2026-06-30 00:00:00' and ServiceSetupId = 23866 and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 06:16:50,251 - 12157 - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-05-11 06:16:50,916 - 12157 - src.utils.log - INFO - Generating work orders for setup: 23866 - __SPLIT__ 2026-05-11 06:16:51,096 - 12157 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-05-11 06:16:51,162 - 12157 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-05-11 06:16:51,225 - 12157 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 23866 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 06:16:51,586 - 12157 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-11 06:16:51,657 - 12157 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 23866 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 06:16:52,024 - 12157 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-11 06:16:52,090 - 12157 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 23866 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 06:16:52,469 - 12157 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-11 06:16:52,538 - 12157 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 23866 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 06:16:52,906 - 12157 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-11 06:16:52,969 - 12157 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 23866 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 06:16:53,329 - 12157 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-11 06:16:53,397 - 12157 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 23866 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 06:16:53,758 - 12157 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-11 06:16:53,826 - 12157 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 23866 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 06:16:54,186 - 12157 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-11 06:16:54,256 - 12157 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 23866 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 06:16:54,630 - 12157 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-11 06:16:54,747 - 12157 - src.utils.log - INFO - No work order found in given range - __SPLIT__ 2026-05-11 06:16:54,798 - 12157 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 12157;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 06:16:55,149 - 12157 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-11 06:16:55,204 - 12157 - src.utils.log - INFO - Time took to perform operation: 10.1 - __SPLIT__ 2026-05-11 06:16:55,263 - 12157 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 12157;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 06:16:55,668 - 12157 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-11 06:16:55,731 - 12157 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET WorkOrderStatusDateTime = '2026-05-11 02:16:55.731' WHERE GenerateWorkOrderHistoryId = 12157;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 06:16:56,072 - 12157 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-11 06:17:57,626 - [12152] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[] user_id=122885 company_id=135 project_id=[12152] publish_all=True - __SPLIT__ 2026-05-11 06:17:57,741 - [12152] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[] user_id=122885 company_id=135 project_id=[12152] publish_all=True - __SPLIT__ 2026-05-11 06:17:57,806 - [12152] - src.utils.log - INFO - Sequential Work order publish in progress for GenerateWorkOrderHistoryId: [12152] - __SPLIT__ 2026-05-11 06:17:57,869 - [12152] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-05-11 06:17:57,941 - [12152] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 06:17:59,991 - [12152] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-11 06:18:00,059 - [12152] - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-05-11 06:18:00,123 - [12152] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'InProgress' WHERE CompanyId = 135 AND GenerateWorkOrderHistoryId = 12152;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 06:18:00,479 - [12152] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-11 06:18:00,544 - [12152] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGeneration woag WHERE woag.GenerateWorkOrderHistoryId = 12152... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 06:18:00,907 - [12152] - src.utils.log - INFO - βœ… Fetched 5 rows - __SPLIT__ 2026-05-11 06:18:00,977 - [12152] - src.utils.log - INFO - Inside get_work_order_table - __SPLIT__ 2026-05-11 06:18:01,051 - [12152] - 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 (23832, 23841) AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 06:18:01,412 - [12152] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-05-11 06:18:01,482 - [12152] - 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 (23832, 23841) AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 06:18:01,842 - [12152] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-11 06:18:01,919 - [12152] - 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 (23832, 23841) AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 06:18:02,274 - [12152] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-11 06:18:02,353 - [12152] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder,BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 135;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 06:18:02,713 - [12152] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-11 06:18:02,771 - [12152] - 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-05-11 06:18:03,192 - [12152] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-05-11 06:18:03,261 - [12152] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder, BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 135; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 06:18:03,620 - [12152] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-11 06:18:03,689 - [12152] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig SET NextNumber = NextNumber + 5 OUTPUT INSERTED.NextNumber - 5 AS StartNumber WHERE CompanyId = 135 AND EnitityNumberType IN ('WorkOrder','Invoice'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 06:18:04,038 - [12152] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-05-11 06:18:04,112 - [12152] - 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 (23832, 23841)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 06:18:04,478 - [12152] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-05-11 06:18:04,549 - [12152] - src.utils.log - INFO - πŸ” Fetching data: SELECT x.CompanyId FROM CRM.CompanyMaster x WHERE CompanyKey = 'Fortive';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 06:18:04,895 - [12152] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-11 06:18:04,966 - [12152] - src.utils.log - INFO - πŸ” Fetching data: SELECT CollectionStatus,IsHold,AccountNo FROM CRM.Account a WHERE a.AccountNo = '8323' and a.CompanyId = 124;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 06:18:05,313 - [12152] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-11 06:18:05,386 - [12152] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderNo FROM ServiceCore.WorkOrder WHERE WorkOrderNo IN ('166010R', '166011R', '166012R', '166013R', '166014R') AND CompanyId = 135 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 06:18:05,747 - [12152] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-11 06:18:05,814 - [12152] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrder (skip triggers): 5 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 06:18:06,366 - [12152] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 5) into ServiceCore.WorkOrder (triggers skipped) - __SPLIT__ 2026-05-11 06:18:07,626 - [12152] - src.utils.log - INFO - βœ… All 5 rows inserted successfully into ServiceCore.WorkOrder in 1 batches (triggers skipped) - __SPLIT__ 2026-05-11 06:18:07,833 - [12152] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-05-11 06:18:07,903 - [12152] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.ServiceSetup SET IsInitialWoGenerated = 1 WHERE CompanyId = 135 AND ServiceSetupId = 23832;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 06:18:08,266 - [12152] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-11 06:18:08,333 - [12152] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkorderId, WorkOrderNo FROM ServiceCore.WorkOrder wo WHERE wo.WorkOrderNo IN ('166010R', '166011R', '166012R', '166013R', '166014R') AND wo.AccountNumber = '8323' AND wo.CompanyId = 135 ... (Thread: ThreadPoolExecutor-8_0) - __SPLIT__ 2026-05-11 06:18:08,745 - [12152] - src.utils.log - INFO - βœ… Fetched 5 rows - __SPLIT__ 2026-05-11 06:18:08,814 - [12152] - src.utils.log - INFO - Sequential fetching temp table records - __SPLIT__ 2026-05-11 06:18:08,914 - [12152] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationServices woag WHERE woag.WorkOrderAutoGenerationId in (2729567, 2729568, 2729569, 2729570, 2729571)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 06:18:09,276 - [12152] - src.utils.log - INFO - βœ… Fetched 10 rows - __SPLIT__ 2026-05-11 06:18:09,342 - [12152] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SubWorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (2729567, 2729568, 2729569, 2729570, 2729571)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 06:18:09,698 - [12152] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-11 06:18:09,761 - [12152] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationCrews woag WHERE woag.WorkOrderAutoGenerationId in (2729567, 2729568, 2729569, 2729570, 2729571)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 06:18:10,113 - [12152] - src.utils.log - INFO - βœ… Fetched 5 rows - __SPLIT__ 2026-05-11 06:18:10,180 - [12152] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationSalesPersonCommission woag WHERE woag.WorkOrderAutoGenerationId in (2729567, 2729568, 2729569, 2729570, 2729571)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 06:18:10,525 - [12152] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-11 06:18:10,594 - [12152] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupAutoGenerationSourceMapping woag WHERE woag.WorkOrderAutoGenerationId in (2729567, 2729568, 2729569, 2729570, 2729571)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 06:18:10,943 - [12152] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-11 06:18:11,007 - [12152] - 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 (2729567, 2729568, 2729569, 2729570, 2729571)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 06:18:11,377 - [12152] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-11 06:18:11,445 - [12152] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from CRM.LeadNote woag WHERE woag.RefId in (2729567, 2729568, 2729569, 2729570, 2729571) and woag.RefType = 'TempWorkorder';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 06:18:11,795 - [12152] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-11 06:18:11,857 - [12152] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment woagca WHERE woagca.WorkOrderAutoGenerationId in (2729567, 2729568, 2729569, 2729570, 2729571);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 06:18:12,203 - [12152] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-11 06:18:12,302 - [12152] - src.utils.log - INFO - Updating temp tables - __SPLIT__ 2026-05-11 06:18:12,392 - [12152] - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyKey FROM Common.CompanyMaster cm WHERE CompanyId = 135;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 06:18:12,787 - [12152] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-11 06:18:12,855 - [12152] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 135 AND EnitityNumberType in ('SubWorkOrder'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 06:18:13,206 - [12152] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-11 06:18:13,276 - [12152] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-11 06:18:13,346 - [12152] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishHistory: 5 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 06:18:13,738 - [12152] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 5) into ServiceCore.WorkOrderAutoGenerationPublishHistory - __SPLIT__ 2026-05-11 06:18:14,989 - [12152] - src.utils.log - INFO - βœ… All 5 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishHistory in 1 batches - __SPLIT__ 2026-05-11 06:18:15,080 - [12152] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationPublishHistoryId, WorkOrderNo, ServiceSetupId FROM ServiceCore.WorkOrderAutoGenerationPublishHistory WHERE ServiceSetupId IN (23832, 23841) AND WorkOrderNo IN ('968218', '5239498', '8865598', '5016422', '6670024') AND GenerateWorkOrderHistoryId = 12152;... (Thread: ThreadPoolExecutor-9_0) - __SPLIT__ 2026-05-11 06:18:15,454 - [12152] - src.utils.log - INFO - βœ… Fetched 5 rows - __SPLIT__ 2026-05-11 06:18:15,522 - [12152] - src.utils.log - INFO - 🏁 Final merged rows: 5 - __SPLIT__ 2026-05-11 06:18:15,607 - [12152] - src.utils.log - INFO - Sequential Insertion in work order tables begin - __SPLIT__ 2026-05-11 06:18:15,685 - [12152] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-11 06:18:15,758 - [12152] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderServices: 10 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 06:18:16,126 - [12152] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 10) into ServiceCore.WorkOrderServices - __SPLIT__ 2026-05-11 06:18:17,222 - [12152] - src.utils.log - INFO - βœ… All 10 rows inserted successfully into ServiceCore.WorkOrderServices in 1 batches - __SPLIT__ 2026-05-11 06:18:17,291 - [12152] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderAppliedDiscount: - __SPLIT__ 2026-05-11 06:18:17,359 - [12152] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderSalesPersonCommission: - __SPLIT__ 2026-05-11 06:18:17,422 - [12152] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderCommissionAdjustment: - __SPLIT__ 2026-05-11 06:18:17,496 - [12152] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-11 06:18:17,567 - [12152] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderCrew: 5 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 06:18:17,989 - [12152] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 5) into ServiceCore.WorkOrderCrew - __SPLIT__ 2026-05-11 06:18:19,062 - [12152] - src.utils.log - INFO - βœ… All 5 rows inserted successfully into ServiceCore.WorkOrderCrew in 1 batches - __SPLIT__ 2026-05-11 06:18:19,121 - [12152] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkorderSourceMapping: - __SPLIT__ 2026-05-11 06:18:19,185 - [12152] - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-05-11 06:18:19,246 - [12152] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-11 06:18:19,310 - [12152] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishServices: 10 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 06:18:19,685 - [12152] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 10) into ServiceCore.WorkOrderAutoGenerationPublishServices - __SPLIT__ 2026-05-11 06:18:20,776 - [12152] - src.utils.log - INFO - βœ… All 10 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishServices in 1 batches - __SPLIT__ 2026-05-11 06:18:20,842 - [12152] - 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 (23832, 23841)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 06:18:21,201 - [12152] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-05-11 06:18:21,273 - [12152] - src.utils.log - INFO - Size of Transaction: 3 - __SPLIT__ 2026-05-11 06:18:21,354 - [12152] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 3 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 06:18:21,845 - [12152] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-05-11 06:18:22,898 - [12152] - src.utils.log - INFO - βœ… All 3 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-05-11 06:18:23,109 - [12152] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-05-11 06:18:23,175 - [12152] - 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-05-11 02:18:21.267';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 06:18:23,573 - [12152] - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-05-11 06:18:23,647 - [12152] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId in (23832, 23841);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 06:18:24,007 - [12152] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-11 06:18:24,070 - [12152] - src.utils.log - INFO - πŸ“ Executing: UPDATE Billing.[Transaction] SET ModifiedBy = NULL WHERE ModifiedBy IN (12345678910,12345678911,12345678912) AND CreatedDate = '2026-05-11 02:18:21.267'; ... (Thread: ThreadPoolExecutor-10_0) - __SPLIT__ 2026-05-11 06:18:24,591 - [12152] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-11 06:18:24,670 - [12152] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-11 06:18:24,736 - [12152] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 3 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 06:18:25,109 - [12152] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into Billing.Invoice - __SPLIT__ 2026-05-11 06:18:26,184 - [12152] - src.utils.log - INFO - βœ… All 3 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-05-11 06:18:26,251 - [12152] - src.utils.log - INFO - πŸ” Fetching data: SELECT InvoiceId, WorkOrderNo FROM Billing.Invoice i WHERE i.WorkOrderNo in ('166010R', '166013R', '166011R')... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 06:18:26,632 - [12152] - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-05-11 06:18:26,709 - [12152] - 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 = 23832 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 06:18:27,066 - [12152] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-05-11 06:18:27,136 - [12152] - 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 = 23832 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 06:18:27,479 - [12152] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-05-11 06:18:27,542 - [12152] - 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 = 23832 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 06:18:27,892 - [12152] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-11 06:18:27,957 - [12152] - 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 = 23832 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 06:18:28,311 - [12152] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-11 06:18:28,392 - [12152] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 23832;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 06:18:28,749 - [12152] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-11 06:18:28,830 - [12152] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId, AppliedDiscountAmt as AppliedDiscountAmount,IsActive ,ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 23832;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 06:18:29,178 - [12152] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-11 06:18:29,246 - [12152] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId,IsActive,DiscountAmount, IsDiscountPercent,DiscountPercent,DiscountDescription , ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 23832;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 06:18:29,646 - [12152] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-11 06:18:29,719 - [12152] - src.utils.log - INFO - Sequential Insertion in invoice tables begin - __SPLIT__ 2026-05-11 06:18:29,783 - [12152] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.AccountDiscountSetup: - __SPLIT__ 2026-05-11 06:18:29,853 - [12152] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-11 06:18:29,918 - [12152] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceCharges: 6 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 06:18:30,300 - [12152] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 6) into Billing.InvoiceCharges - __SPLIT__ 2026-05-11 06:18:31,374 - [12152] - src.utils.log - INFO - βœ… All 6 rows inserted successfully into Billing.InvoiceCharges in 1 batches - __SPLIT__ 2026-05-11 06:18:31,448 - [12152] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.DiscountApplied: - __SPLIT__ 2026-05-11 06:18:31,517 - [12152] - src.utils.log - INFO - Invoice Publish Done - __SPLIT__ 2026-05-11 06:18:31,587 - [12152] - src.utils.log - INFO - Updating Next GenerationDate - __SPLIT__ 2026-05-11 06:18:31,656 - [12152] - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, MAX(NextWorkOrderGenerationDate) AS MaxNextWorkOrderGeneration FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 12152 GROUP BY ServiceSetupId; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 06:18:32,030 - [12152] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-11 06:18:32,103 - [12152] - src.utils.log - INFO - πŸ”„ Updating next gen date sequentially: inside update_next_workorder_generation - __SPLIT__ 2026-05-11 06:18:32,317 - [12152] - src.utils.log - INFO - πŸ›  Creating temp table #tbl_d23d8e1114 - __SPLIT__ 2026-05-11 06:18:32,680 - [12152] - src.utils.log - INFO - πŸ“Œ Bulk inserting 2 rows into #tbl_d23d8e1114 - __SPLIT__ 2026-05-11 06:18:33,164 - [12152] - src.utils.log - INFO - πŸ” Running MERGE update to apply changes - __SPLIT__ 2026-05-11 06:18:33,370 - [12152] - src.utils.log - INFO - βœ” SQL reported affected rows: 2 - __SPLIT__ 2026-05-11 06:18:33,572 - [12152] - src.utils.log - INFO - πŸ” Verified successfully updated 2 rows via #tbl_d23d8e1114 - __SPLIT__ 2026-05-11 06:18:33,675 - [12152] - src.utils.log - INFO - πŸŽ‰ Successfully updated NextGenerationDate using temp table #tbl_d23d8e1114 - __SPLIT__ 2026-05-11 06:18:33,746 - [12152] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 12152 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 06:18:34,162 - [12152] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-11 06:18:34,233 - [12152] - src.utils.log - INFO - Sequential deletion from temp tables begin - __SPLIT__ 2026-05-11 06:18:34,300 - [12152] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId in (2729567, 2729568, 2729569, 2729570, 2729571) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 06:18:34,676 - [12152] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-11 06:18:34,748 - [12152] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId in (2729567, 2729568, 2729569, 2729570, 2729571) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 06:18:35,115 - [12152] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-11 06:18:35,183 - [12152] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId in (2729567, 2729568, 2729569, 2729570, 2729571) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 06:18:35,543 - [12152] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-11 06:18:35,610 - [12152] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId in (2729567, 2729568, 2729569, 2729570, 2729571) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 06:18:36,027 - [12152] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-11 06:18:36,102 - [12152] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId in (2729567, 2729568, 2729569, 2729570, 2729571) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 06:18:36,465 - [12152] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-11 06:18:36,535 - [12152] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (2729567, 2729568, 2729569, 2729570, 2729571) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 06:18:36,888 - [12152] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-11 06:18:36,962 - [12152] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId in (2729567, 2729568, 2729569, 2729570, 2729571) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 06:18:37,327 - [12152] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-11 06:18:37,400 - [12152] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (2729567, 2729568, 2729569, 2729570, 2729571) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 06:18:37,790 - [12152] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-11 06:18:37,861 - [12152] - src.utils.log - INFO - Work order published ids: (2729567, 2729568, 2729569, 2729570, 2729571) - __SPLIT__ 2026-05-11 06:18:37,933 - [12152] - src.utils.log - INFO - Time took to perform operation in publishing [12152]: 40.06 - __SPLIT__ 2026-05-11 06:18:38,059 - [12152] - src.utils.log - INFO - Publish Completed for GenerateWorkOrderHistoryId: [12152] - __SPLIT__ 2026-05-11 06:18:38,120 - [12152] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-05-11 02:18:37.861' WHERE CompanyId = 135 AND GenerateWorkOrderHistoryId = 12152;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 06:18:38,466 - [12152] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-11 06:43:31,839 - 12158 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=12158 - __SPLIT__ 2026-05-11 06:43:31,957 - 12158 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 12158 - __SPLIT__ 2026-05-11 06:43:32,030 - 12158 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-05-11 06:43:32,102 - 12158 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 06:43:34,221 - 12158 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-11 06:43:34,279 - 12158 - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-05-11 06:43:34,349 - 12158 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 12158;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 06:43:34,705 - 12158 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-11 06:43:34,770 - 12158 - 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 = 12158), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 12158), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 12158 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-05-11 06:43:35,159 - 12158 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-05-11 06:43:35,224 - 12158 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 12158;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 06:43:35,574 - 12158 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-11 06:43:35,640 - 12158 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-05-11 06:43:35,701 - 12158 - 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 (13057, 13039)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 06:43:36,072 - 12158 - src.utils.log - INFO - βœ… Fetched 61 rows - __SPLIT__ 2026-05-11 06:43:36,133 - 12158 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-05-11 06:43:36,195 - 12158 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-05-11 06:43:36,253 - 12158 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId in (23867, 23868);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 06:43:36,610 - 12158 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-11 06:43:36,670 - 12158 - src.utils.log - INFO - πŸ” Fetching data: select ServiceDate, ServiceSetupId,IsInitial from serviceCore.WorkOrder wo inner join ServiceCore.WorkOrderStatus wos on wo.WoStatusId = wos.WoStatusId where ServiceDate >= '2026-05-11 00:00:00' and ServiceDate <= '2026-07-31 00:00:00' and ServiceSetupId in (23867, 23868) and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 06:43:37,028 - 12158 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-11 06:43:37,754 - 12158 - src.utils.log - INFO - Generating work orders for setup: 23867 - __SPLIT__ 2026-05-11 06:43:37,830 - 12158 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 1424;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 06:43:38,178 - 12158 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-11 06:43:38,277 - 12158 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-05-11 06:43:38,339 - 12158 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=135 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 06:43:38,681 - 12158 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-11 06:43:38,745 - 12158 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-05-11 06:43:38,799 - 12158 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-05-11 06:43:38,864 - 12158 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (23867, 23868) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 06:43:39,215 - 12158 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-11 06:43:39,285 - 12158 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (23867, 23868) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 06:43:39,654 - 12158 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-11 06:43:39,716 - 12158 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (23867, 23868) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 06:43:40,103 - 12158 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-11 06:43:40,171 - 12158 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (23867, 23868) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 06:43:40,556 - 12158 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-11 06:43:40,620 - 12158 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (23867, 23868) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 06:43:40,989 - 12158 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-11 06:43:41,049 - 12158 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (23867, 23868) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 06:43:41,423 - 12158 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-11 06:43:41,542 - 12158 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (23867, 23868) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 06:43:41,896 - 12158 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-11 06:43:41,965 - 12158 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (23867, 23868) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 06:43:42,360 - 12158 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-11 06:43:42,430 - 12158 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-11 06:43:42,497 - 12158 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 06:43:42,903 - 12158 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-05-11 06:43:44,038 - 12158 - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-05-11 06:43:44,110 - 12158 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 1 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-05-08 18:33:30.538' and ServiceSetupId in (23867, 23868)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 06:43:44,488 - 12158 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-11 06:43:44,558 - 12158 - src.utils.log - INFO - Id's of work order inserted to DB: [2729576] - __SPLIT__ 2026-05-11 06:43:44,625 - 12158 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId in (23867, 23868);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 06:43:44,987 - 12158 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-11 06:43:45,057 - 12158 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-05-11 06:43:45,126 - 12158 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId = 23867... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 06:43:45,487 - 12158 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-11 06:43:45,557 - 12158 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId = 23867... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 06:43:45,909 - 12158 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-11 06:43:45,984 - 12158 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId = 23867... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 06:43:46,343 - 12158 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-11 06:43:46,459 - 12158 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId = 23867... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 06:43:46,811 - 12158 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-11 06:43:46,881 - 12158 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId = 23867... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 06:43:47,229 - 12158 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-11 06:43:47,288 - 12158 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId = 23867;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 06:43:47,653 - 12158 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-11 06:43:47,717 - 12158 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId = 23867;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 06:43:48,081 - 12158 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-11 06:43:48,159 - 12158 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId = 23867;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 06:43:48,535 - 12158 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-11 06:43:48,606 - 12158 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId = 23867;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 06:43:48,953 - 12158 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-11 06:43:49,028 - 12158 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-05-11 06:43:49,094 - 12158 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-05-11 06:43:49,154 - 12158 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-05-11 06:43:49,217 - 12158 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.CommunicationPreferencesServiceReportNotification: - __SPLIT__ 2026-05-11 06:43:49,277 - 12158 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-05-11 06:43:49,344 - 12158 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SetupAutoGenerationSourceMapping: - __SPLIT__ 2026-05-11 06:43:49,416 - 12158 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-05-11 06:43:49,479 - 12158 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationAppliedDiscount: - __SPLIT__ 2026-05-11 06:43:49,598 - 12158 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-05-11 06:43:49,663 - 12158 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SubWorkOrderAutoGeneration: - __SPLIT__ 2026-05-11 06:43:49,725 - 12158 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-05-11 06:43:49,792 - 12158 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: - __SPLIT__ 2026-05-11 06:43:49,854 - 12158 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-05-11 06:43:49,923 - 12158 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: - __SPLIT__ 2026-05-11 06:43:49,991 - 12158 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-05-11 06:43:50,054 - 12158 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-11 06:43:50,117 - 12158 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 2729576 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 06:43:50,470 - 12158 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-11 06:43:50,535 - 12158 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationCrews: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 06:43:50,914 - 12158 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderAutoGenerationCrews - __SPLIT__ 2026-05-11 06:43:51,987 - 12158 - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationCrews in 1 batches - __SPLIT__ 2026-05-11 06:43:52,044 - 12158 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-05-11 06:43:52,114 - 12158 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationServices: - __SPLIT__ 2026-05-11 06:43:52,177 - 12158 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-05-11 06:43:52,247 - 12158 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-11 06:43:52,308 - 12158 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 2729576 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 06:43:52,658 - 12158 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-11 06:43:52,721 - 12158 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 06:43:53,149 - 12158 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-05-11 06:43:54,244 - 12158 - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-05-11 06:43:54,304 - 12158 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-05-11 06:43:54,370 - 12158 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 12158;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 06:43:54,712 - 12158 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-11 06:43:54,771 - 12158 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-05-11 06:43:54,828 - 12158 - src.utils.log - INFO - Time took to perform operation: 22.74 - __SPLIT__ 2026-05-11 06:43:54,890 - 12158 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 12158;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 06:43:55,242 - 12158 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-11 06:43:55,301 - 12158 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET WorkOrderStatusDateTime = '2026-05-11 02:43:55.301' WHERE GenerateWorkOrderHistoryId = 12158;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 06:43:55,666 - 12158 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-11 06:44:03,484 - 13545 - src.utils.log - INFO - ParallelProcessing=False GenerateInvoiceHistoryId=13545 - __SPLIT__ 2026-05-11 06:44:03,607 - 13545 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-05-11 06:44:03,670 - 13545 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 06:44:05,817 - 13545 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-11 06:44:05,874 - 13545 - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-05-11 06:44:05,936 - 13545 - src.utils.log - INFO - Sequential Invoice generation algo started for GenerateInvoiceHistoryId: 13545 - __SPLIT__ 2026-05-11 06:44:06,003 - 13545 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET Status = 'InProgress' WHERE GenerateInvoiceHistoryId = 13545;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 06:44:06,361 - 13545 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-11 06:44:06,421 - 13545 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateInvoiceHistory WHERE GenerateInvoiceHistoryId = 13545;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 06:44:06,797 - 13545 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-11 06:44:06,864 - 13545 - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceId as ServiceMasterId,ss.FrequencyScheduleId as setup_frequency_schedule_id, ssb.*, ss.IsBilling, ss.DepartmentMasterId, ss.AccountNumber, ss.CompanyId, ss.BillingLocationId, ss.ServiceLocationId, ss.TaxSysName, ss.TermId, t.NetDueIn, ss.TaxPercent, ss.PoNumber, ss.DisplayServiceAsSeparateLineItem, ss.SetupEndDate, ss.SetupStartDate from ServiceCore.ServiceSetup ss join ServiceCore.ServiceSetupBilling ssb on ss.ServiceSetupId = ssb.ServiceSetupId join Billing.PaymentTypeMaster ptm on ptm.PaymentTypeMasterId = ssb.PaymentTypeMasterId join Billing.Term t on ss.TermId = t.TermId join ServiceCore.ServiceSetupServices sss on ss.ServiceSetupId = sss.ServiceSetupId where ptm.PaymentType= 'Payment Plan' and ss.IsActive =1 and ss.CompanyId= 135 AND ss.IsDeleted =0 AND ss.Status <> 'Canceled' and ss.AccountNumber = '8336' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 06:44:07,240 - 13545 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-05-11 06:44:07,305 - 13545 - src.utils.log - INFO - No filter selected - __SPLIT__ 2026-05-11 06:44:07,364 - 13545 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-05-11 06:44:07,428 - 13545 - 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 (13036, 13039)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 06:44:07,798 - 13545 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-05-11 06:44:07,862 - 13545 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-05-11 06:44:07,930 - 13545 - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionAutoGenerationId FROM Billing.TransactionAutoGeneration WHERE ServiceSetupId IN (23867, 23868) AND TransactionDate BETWEEN '2026-05-11 00:00:00' AND '2026-07-31 00:00:00' AND IsActive = 1 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 06:44:08,287 - 13545 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-11 06:44:08,355 - 13545 - src.utils.log - INFO - πŸ” Fetching data: SELECT Inv.ServiceSetupId, MAX(Inv.InvoiceDate) AS InvoiceDate FROM Billing.Invoice Inv INNER JOIN Billing.[Transaction] T ON Inv.TransactionId = T.TransactionId WHERE Inv.InvoiceDate BETWEEN '2026-05-11 00:00:00' AND '2026-07-31 00:00:00' AND Inv.IsActive = 1 AND Inv.IsDelete = 0 AND T.IsActive = 1 AND T.IsDelete = 0 AND Inv.ServiceSetupId IN (23867, 23868) GROUP BY Inv.ServiceSetupId;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 06:44:08,725 - 13545 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-11 06:44:08,842 - 13545 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-11 06:44:08,905 - 13545 - src.utils.log - INFO - πŸ“₯ Inserting into Billing.TransactionAutoGeneration: 5 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 06:44:09,288 - 13545 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 5) into Billing.TransactionAutoGeneration - __SPLIT__ 2026-05-11 06:44:10,398 - 13545 - src.utils.log - INFO - βœ… All 5 rows inserted successfully into Billing.TransactionAutoGeneration in 1 batches - __SPLIT__ 2026-05-11 06:44:10,458 - 13545 - src.utils.log - INFO - - __SPLIT__ 2026-05-11 06:44:10,523 - 13545 - src.utils.log - INFO - Total invoice generated: 5 - __SPLIT__ 2026-05-11 06:44:10,584 - 13545 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 5 TransactionAutoGenerationId, ServiceSetupId, TransactionDate as InvoiceDate From Billing.TransactionAutoGeneration WHERE CreatedDate = '2026-05-08 13:03:30.535' and ServiceSetupId in (23867, 23868) and GenerateWorkOrderHistoryId = 13545;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 06:44:10,953 - 13545 - src.utils.log - INFO - βœ… Fetched 5 rows - __SPLIT__ 2026-05-11 06:44:11,022 - 13545 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-11 06:44:11,085 - 13545 - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceAutoGeneration: 5 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 06:44:11,464 - 13545 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 5) into Billing.InvoiceAutoGeneration - __SPLIT__ 2026-05-11 06:44:12,560 - 13545 - src.utils.log - INFO - βœ… All 5 rows inserted successfully into Billing.InvoiceAutoGeneration in 1 batches - __SPLIT__ 2026-05-11 06:44:12,624 - 13545 - src.utils.log - INFO - πŸ” Fetching data: SELECT I.InvoiceAutoGenerationId, T.ServiceSetupId FROM Billing.InvoiceAutoGeneration I JOIN Billing.TransactionAutoGeneration T ON I.TransactionAutoGenerationId = T.TransactionAutoGenerationId where T.TransactionAutoGenerationId in (799031, 799032, 799033, 799034, 799035);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 06:44:12,979 - 13545 - src.utils.log - INFO - βœ… Fetched 5 rows - __SPLIT__ 2026-05-11 06:44:13,049 - 13545 - 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 (23867, 23868) and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 06:44:13,398 - 13545 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-05-11 06:44:13,465 - 13545 - 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 = 13039;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 06:44:13,821 - 13545 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-11 06:44:13,888 - 13545 - 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 = 13039;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 06:44:14,239 - 13545 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-11 06:44:14,365 - 13545 - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, DiscountSetupId,DiscountType,DiscountCode,DiscountAmount,DiscountDescription,DiscountName, DiscountPercent, IsDiscountPercent,AppliedDiscountAmt,ApplyOnPartPrice,ApplyOnLaborPrice from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE IsInitialSetupDiscount = 0 AND ssad.ServiceSetupId in (23867, 23868);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 06:44:14,733 - 13545 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-11 06:44:14,800 - 13545 - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.InvoiceAutoGenerationAppliedDiscount: - __SPLIT__ 2026-05-11 06:44:14,869 - 13545 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-11 06:44:14,943 - 13545 - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceChargesAutoGeneration: 5 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 06:44:15,331 - 13545 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 5) into Billing.InvoiceChargesAutoGeneration - __SPLIT__ 2026-05-11 06:44:16,451 - 13545 - src.utils.log - INFO - βœ… All 5 rows inserted successfully into Billing.InvoiceChargesAutoGeneration in 1 batches - __SPLIT__ 2026-05-11 06:44:16,517 - 13545 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET Status = 'Completed' WHERE GenerateInvoiceHistoryId = 13545;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 06:44:16,884 - 13545 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-11 06:44:16,944 - 13545 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET InvoiceStatusDateTime = '2026-05-11 02:44:16.944' WHERE GenerateInvoiceHistoryId = 13545;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 06:44:17,323 - 13545 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-11 06:44:17,390 - 13545 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-05-11 06:44:17,457 - 13545 - src.utils.log - INFO - Sequential Invoice Gen Complete Successfully ProjectId:13545 - Time took: 13.85 - __SPLIT__ 2026-05-11 06:44:30,161 - [13545] - src.utils.log - INFO - ParallelProcessing=False temp_invoice=[799032, 799033] user_id=122885 company_id=135 project_id=[13545] publish_all=False - __SPLIT__ 2026-05-11 06:44:30,278 - [13545] - src.utils.log - INFO - Invoice Published Successfully - __SPLIT__ 2026-05-11 06:44:30,342 - [13545] - src.utils.log - INFO - Sequential invoice publish in progress - __SPLIT__ 2026-05-11 06:44:30,403 - [13545] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-05-11 06:44:30,472 - [13545] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 06:44:32,594 - [13545] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-11 06:44:32,665 - [13545] - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-05-11 06:44:32,726 - [13545] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET PublishStatus = 'InProgress', InvoicePublishStartDateTime = '2026-05-11 02:44:32.726' WHERE CompanyId = 135 AND GenerateInvoiceHistoryId = 13545;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 06:44:33,088 - [13545] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-11 06:44:33,149 - [13545] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Billing.InvoiceAutoGeneration i WHERE TransactionAutoGenerationId in (799032, 799033);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 06:44:33,493 - [13545] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-05-11 06:44:33,554 - [13545] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Billing.TransactionAutoGeneration tag WHERE tag.TransactionAutoGenerationId in (799032, 799033);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 06:44:33,926 - [13545] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-05-11 06:44:33,993 - [13545] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 06:44:34,511 - [13545] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-05-11 06:44:35,653 - [13545] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-05-11 06:44:35,860 - [13545] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-05-11 06:44:35,930 - [13545] - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionId, ModifiedBy from Billing.[Transaction] t WHERE t.ModifiedBy in (12345678910, 12345678911);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 06:44:36,390 - [13545] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-05-11 06:44:36,461 - [13545] - src.utils.log - INFO - πŸ“ Executing: UPDATE Billing.[Transaction] SET ModifiedBy = NULL WHERE ModifiedBy IN (12345678910,12345678911); ... (Thread: ThreadPoolExecutor-0_0) - __SPLIT__ 2026-05-11 06:44:36,943 - [13545] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-11 06:44:37,068 - [13545] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 135 AND EnitityNumberType in ('Invoice'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 06:44:37,413 - [13545] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-11 06:44:37,483 - [13545] - src.utils.log - INFO - 2 Invoice Generated : [166015, 166016] - __SPLIT__ 2026-05-11 06:44:37,564 - [13545] - src.utils.log - INFO - πŸ“ Executing: UPDATE Common.GenerateNumberConfig SET NextNumber = '166017' WHERE CompanyId = 135 AND EnitityNumberType in ('Invoice');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 06:44:37,916 - [13545] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-11 06:44:37,985 - [13545] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-11 06:44:38,054 - [13545] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 06:44:38,431 - [13545] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.Invoice - __SPLIT__ 2026-05-11 06:44:39,529 - [13545] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-05-11 06:44:39,584 - [13545] - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionId, InvoiceId FROM Billing.Invoice WHERE TransactionId in (406575, 406576);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 06:44:39,943 - [13545] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-05-11 06:44:40,009 - [13545] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Billing.InvoiceChargesAutoGeneration icag WHERE InvoiceAutoGenerationId in (853933, 853934);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 06:44:40,362 - [13545] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-05-11 06:44:40,431 - [13545] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Billing.InvoiceAutoGenerationAppliedDiscount iagad WHERE InvoiceAutoGenerationId in (853933, 853934);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 06:44:40,789 - [13545] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-11 06:44:40,853 - [13545] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-11 06:44:40,915 - [13545] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceCharges: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 06:44:41,312 - [13545] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.InvoiceCharges - __SPLIT__ 2026-05-11 06:44:42,397 - [13545] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.InvoiceCharges in 1 batches - __SPLIT__ 2026-05-11 06:44:42,461 - [13545] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.AccountDiscountSetup: - __SPLIT__ 2026-05-11 06:44:42,575 - [13545] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.DiscountApplied: - __SPLIT__ 2026-05-11 06:44:42,637 - [13545] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: delete FROM Billing.InvoiceAutoGenerationAppliedDiscount WHERE InvoiceAutoGenerationId in (853933, 853934) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 06:44:42,996 - [13545] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-11 06:44:43,063 - [13545] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: delete FROM Billing.InvoiceChargesAutoGeneration WHERE InvoiceAutoGenerationId in (853933, 853934) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 06:44:43,466 - [13545] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-11 06:44:43,538 - [13545] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: delete FROM Billing.InvoiceAutoGeneration WHERE InvoiceAutoGenerationId in (853933, 853934) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 06:44:43,914 - [13545] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-11 06:44:43,982 - [13545] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: delete FROM Billing.TransactionAutoGeneration WHERE TransactionAutoGenerationId in (799032, 799033) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 06:44:44,347 - [13545] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-11 06:44:44,414 - [13545] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-05-11 02:44:32.726' WHERE CompanyId = 135 AND GenerateInvoiceHistoryId = 13545;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 06:44:44,801 - [13545] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-11 06:44:44,871 - [13545] - src.utils.log - INFO - Sequential invoice publish completed successfully - Time took: 14.47 - __SPLIT__ 2026-05-11 08:38:24,158 - 13546 - src.utils.log - INFO - ParallelProcessing=False GenerateInvoiceHistoryId=13546 - __SPLIT__ 2026-05-11 08:38:24,440 - 13546 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-05-11 08:38:24,519 - 13546 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 08:38:27,236 - 13546 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-11 08:38:27,313 - 13546 - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-05-11 08:38:27,384 - 13546 - src.utils.log - INFO - Sequential Invoice generation algo started for GenerateInvoiceHistoryId: 13546 - __SPLIT__ 2026-05-11 08:38:27,463 - 13546 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET Status = 'InProgress' WHERE GenerateInvoiceHistoryId = 13546;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 08:38:27,830 - 13546 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-11 08:38:27,902 - 13546 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateInvoiceHistory WHERE GenerateInvoiceHistoryId = 13546;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 08:38:28,261 - 13546 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-11 08:38:28,337 - 13546 - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceId as ServiceMasterId,ss.FrequencyScheduleId as setup_frequency_schedule_id, ssb.*, ss.IsBilling, ss.DepartmentMasterId, ss.AccountNumber, ss.CompanyId, ss.BillingLocationId, ss.ServiceLocationId, ss.TaxSysName, ss.TermId, t.NetDueIn, ss.TaxPercent, ss.PoNumber, ss.DisplayServiceAsSeparateLineItem, ss.SetupEndDate, ss.SetupStartDate from ServiceCore.ServiceSetup ss join ServiceCore.ServiceSetupBilling ssb on ss.ServiceSetupId = ssb.ServiceSetupId join Billing.PaymentTypeMaster ptm on ptm.PaymentTypeMasterId = ssb.PaymentTypeMasterId join Billing.Term t on ss.TermId = t.TermId join ServiceCore.ServiceSetupServices sss on ss.ServiceSetupId = sss.ServiceSetupId where ptm.PaymentType= 'Payment Plan' and ss.IsActive =1 and ss.CompanyId= 135 AND ss.IsDeleted =0 AND ss.Status <> 'Canceled' and ss.AccountNumber = '8334' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 08:38:28,714 - 13546 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-05-11 08:38:28,785 - 13546 - src.utils.log - INFO - No filter selected - __SPLIT__ 2026-05-11 08:38:28,852 - 13546 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-05-11 08:38:28,918 - 13546 - 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 = 13036... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 08:38:29,293 - 13546 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-11 08:38:29,369 - 13546 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-05-11 08:38:29,453 - 13546 - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionAutoGenerationId FROM Billing.TransactionAutoGeneration WHERE ServiceSetupId IN (23862, 23863) AND TransactionDate BETWEEN '2026-05-11 00:00:00' AND '2026-07-31 00:00:00' AND IsActive = 1 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 08:38:29,811 - 13546 - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-05-11 08:38:29,882 - 13546 - src.utils.log - INFO - πŸ” Fetching data: SELECT InvoiceAutoGenerationId FROM Billing.InvoiceAutoGeneration WHERE TransactionAutoGenerationId IN (799000, 799001, 799002, 799003) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 08:38:30,301 - 13546 - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-05-11 08:38:30,371 - 13546 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM Billing.InvoiceChargesAutoGeneration WHERE InvoiceAutoGenerationId IN (853904, 853901, 853902, 853903) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 08:38:30,733 - 13546 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-11 08:38:30,796 - 13546 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM Billing.InvoiceAutoGenerationAppliedDiscount WHERE InvoiceAutoGenerationId IN (853904, 853901, 853902, 853903) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 08:38:31,197 - 13546 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-11 08:38:31,270 - 13546 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM Billing.InvoiceAutoGeneration WHERE InvoiceAutoGenerationId IN (853904, 853901, 853902, 853903) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 08:38:31,675 - 13546 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-11 08:38:31,750 - 13546 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM Billing.TransactionAutoGeneration WHERE TransactionAutoGenerationId IN (799000, 799001, 799002, 799003) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 08:38:32,124 - 13546 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-11 08:38:32,191 - 13546 - src.utils.log - INFO - πŸ” Fetching data: SELECT Inv.ServiceSetupId, MAX(Inv.InvoiceDate) AS InvoiceDate FROM Billing.Invoice Inv INNER JOIN Billing.[Transaction] T ON Inv.TransactionId = T.TransactionId WHERE Inv.InvoiceDate BETWEEN '2026-05-11 00:00:00' AND '2026-07-31 00:00:00' AND Inv.IsActive = 1 AND Inv.IsDelete = 0 AND T.IsActive = 1 AND T.IsDelete = 0 AND Inv.ServiceSetupId IN (23862, 23863) GROUP BY Inv.ServiceSetupId;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 08:38:32,548 - 13546 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-11 08:38:32,620 - 13546 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-11 08:38:32,691 - 13546 - src.utils.log - INFO - πŸ“₯ Inserting into Billing.TransactionAutoGeneration: 6 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 08:38:33,090 - 13546 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 6) into Billing.TransactionAutoGeneration - __SPLIT__ 2026-05-11 08:38:34,210 - 13546 - src.utils.log - INFO - βœ… All 6 rows inserted successfully into Billing.TransactionAutoGeneration in 1 batches - __SPLIT__ 2026-05-11 08:38:34,275 - 13546 - src.utils.log - INFO - - __SPLIT__ 2026-05-11 08:38:34,347 - 13546 - src.utils.log - INFO - Total invoice generated: 6 - __SPLIT__ 2026-05-11 08:38:34,414 - 13546 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 6 TransactionAutoGenerationId, ServiceSetupId, TransactionDate as InvoiceDate From Billing.TransactionAutoGeneration WHERE CreatedDate = '2026-05-08 13:03:30.413' and ServiceSetupId in (23862, 23863) and GenerateWorkOrderHistoryId = 13546;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 08:38:34,776 - 13546 - src.utils.log - INFO - βœ… Fetched 6 rows - __SPLIT__ 2026-05-11 08:38:34,852 - 13546 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-11 08:38:34,973 - 13546 - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceAutoGeneration: 6 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 08:38:35,367 - 13546 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 6) into Billing.InvoiceAutoGeneration - __SPLIT__ 2026-05-11 08:38:36,469 - 13546 - src.utils.log - INFO - βœ… All 6 rows inserted successfully into Billing.InvoiceAutoGeneration in 1 batches - __SPLIT__ 2026-05-11 08:38:36,534 - 13546 - src.utils.log - INFO - πŸ” Fetching data: SELECT I.InvoiceAutoGenerationId, T.ServiceSetupId FROM Billing.InvoiceAutoGeneration I JOIN Billing.TransactionAutoGeneration T ON I.TransactionAutoGenerationId = T.TransactionAutoGenerationId where T.TransactionAutoGenerationId in (799040, 799041, 799036, 799037, 799038, 799039);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 08:38:36,887 - 13546 - src.utils.log - INFO - βœ… Fetched 6 rows - __SPLIT__ 2026-05-11 08:38:36,950 - 13546 - 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 (23862, 23863) and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 08:38:37,316 - 13546 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-05-11 08:38:37,385 - 13546 - 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 = 13057;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 08:38:37,754 - 13546 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-11 08:38:37,815 - 13546 - 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 = 13036;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 08:38:38,218 - 13546 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-11 08:38:38,285 - 13546 - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, DiscountSetupId,DiscountType,DiscountCode,DiscountAmount,DiscountDescription,DiscountName, DiscountPercent, IsDiscountPercent,AppliedDiscountAmt,ApplyOnPartPrice,ApplyOnLaborPrice from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE IsInitialSetupDiscount = 0 AND ssad.ServiceSetupId in (23862, 23863);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 08:38:38,656 - 13546 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-11 08:38:38,723 - 13546 - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.InvoiceAutoGenerationAppliedDiscount: - __SPLIT__ 2026-05-11 08:38:38,784 - 13546 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-11 08:38:38,850 - 13546 - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceChargesAutoGeneration: 6 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 08:38:39,234 - 13546 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 6) into Billing.InvoiceChargesAutoGeneration - __SPLIT__ 2026-05-11 08:38:40,399 - 13546 - src.utils.log - INFO - βœ… All 6 rows inserted successfully into Billing.InvoiceChargesAutoGeneration in 1 batches - __SPLIT__ 2026-05-11 08:38:40,465 - 13546 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET Status = 'Completed' WHERE GenerateInvoiceHistoryId = 13546;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 08:38:40,818 - 13546 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-11 08:38:40,936 - 13546 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET InvoiceStatusDateTime = '2026-05-11 04:38:40.936' WHERE GenerateInvoiceHistoryId = 13546;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 08:38:41,282 - 13546 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-11 08:38:41,346 - 13546 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-05-11 08:38:41,406 - 13546 - src.utils.log - INFO - Sequential Invoice Gen Complete Successfully ProjectId:13546 - Time took: 16.98 - __SPLIT__ 2026-05-11 10:31:31,815 - 124384 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=124384 - __SPLIT__ 2026-05-11 10:31:31,971 - 124384 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 124384 - __SPLIT__ 2026-05-11 10:31:32,076 - 124384 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-05-11 10:31:32,150 - 124384 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 10:31:34,339 - 124384 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-11 10:31:34,414 - 124384 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-05-11 10:31:34,501 - 124384 - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-05-11 10:31:34,576 - 124384 - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-05-11 10:31:34,648 - 124384 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 124384;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 10:31:37,219 - 124384 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-11 10:31:37,289 - 124384 - 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 = 124384), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 124384), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 124384 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-05-11 10:31:38,588 - 124384 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-11 10:31:38,655 - 124384 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 124384;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 10:31:38,994 - 124384 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-11 10:31:39,072 - 124384 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-05-11 10:31:39,148 - 124384 - 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 = 14476... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 10:31:39,497 - 124384 - src.utils.log - INFO - βœ… Fetched 6 rows - __SPLIT__ 2026-05-11 10:31:39,565 - 124384 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-05-11 10:31:39,646 - 124384 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-05-11 10:31:39,720 - 124384 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150288;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 10:31:40,054 - 124384 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-11 10:31:40,167 - 124384 - src.utils.log - INFO - πŸ” Fetching data: select ServiceDate, ServiceSetupId, IsInitial from serviceCore.WorkOrder wo inner join ServiceCore.WorkOrderStatus wos on wo.WoStatusId = wos.WoStatusId where ServiceDate >= '2026-05-11 00:00:00' and ServiceDate <= '2026-09-30 00:00:00' and ServiceSetupId = 150288 and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 10:31:40,506 - 124384 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-11 10:31:41,128 - 124384 - src.utils.log - INFO - Generating work orders for setup: 150288 - __SPLIT__ 2026-05-11 10:31:41,237 - 124384 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-05-11 10:31:41,330 - 124384 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=133 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 10:31:41,666 - 124384 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-11 10:31:41,730 - 124384 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-05-11 10:31:41,797 - 124384 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-05-11 10:31:41,854 - 124384 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150288 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 10:31:42,230 - 124384 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-11 10:31:42,297 - 124384 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150288 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 10:31:42,651 - 124384 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-11 10:31:42,716 - 124384 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150288 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 10:31:43,064 - 124384 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-11 10:31:43,131 - 124384 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150288 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 10:31:43,488 - 124384 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-11 10:31:43,552 - 124384 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150288 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 10:31:44,071 - 124384 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-11 10:31:44,135 - 124384 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150288 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 10:31:44,549 - 124384 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-11 10:31:44,661 - 124384 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150288 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 10:31:45,005 - 124384 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-11 10:31:45,067 - 124384 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150288 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 10:31:45,423 - 124384 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-11 10:31:45,482 - 124384 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-11 10:31:45,544 - 124384 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 10:31:45,933 - 124384 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-05-11 10:31:47,078 - 124384 - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-05-11 10:31:47,138 - 124384 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 2 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-05-08 18:33:30.398' and ServiceSetupId = 150288... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 10:31:47,480 - 124384 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-05-11 10:31:47,538 - 124384 - src.utils.log - INFO - Id's of work order inserted to DB: [3673141 3673142] - __SPLIT__ 2026-05-11 10:31:47,598 - 124384 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150288;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 10:31:47,924 - 124384 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-11 10:31:47,990 - 124384 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-05-11 10:31:48,052 - 124384 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId = 150288... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 10:31:48,388 - 124384 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-11 10:31:48,451 - 124384 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId = 150288... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 10:31:48,772 - 124384 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-11 10:31:48,841 - 124384 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId = 150288... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 10:31:49,193 - 124384 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-05-11 10:31:49,318 - 124384 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId = 150288... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 10:31:49,641 - 124384 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-11 10:31:49,708 - 124384 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId = 150288... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 10:31:50,042 - 124384 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-11 10:31:50,101 - 124384 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId = 150288;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 10:31:50,440 - 124384 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-11 10:31:50,504 - 124384 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId = 150288;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 10:31:50,834 - 124384 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-11 10:31:50,899 - 124384 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId = 150288;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 10:31:52,238 - 124384 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-11 10:31:52,302 - 124384 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId = 150288;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 10:31:52,637 - 124384 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-11 10:31:52,721 - 124384 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-05-11 10:31:52,787 - 124384 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-05-11 10:31:52,847 - 124384 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-05-11 10:31:52,902 - 124384 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.CommunicationPreferencesServiceReportNotification: - __SPLIT__ 2026-05-11 10:31:52,965 - 124384 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-05-11 10:31:53,026 - 124384 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-11 10:31:53,094 - 124384 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ('3673142', '3673141') ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 10:31:53,421 - 124384 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-05-11 10:31:53,531 - 124384 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.SetupAutoGenerationSourceMapping: 0 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 10:31:53,886 - 124384 - src.utils.log - INFO - βœ… All 0 rows inserted successfully into ServiceCore.SetupAutoGenerationSourceMapping in 0 batches - __SPLIT__ 2026-05-11 10:31:53,977 - 124384 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-05-11 10:31:54,040 - 124384 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationAppliedDiscount: - __SPLIT__ 2026-05-11 10:31:54,098 - 124384 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-05-11 10:31:54,163 - 124384 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SubWorkOrderAutoGeneration: - __SPLIT__ 2026-05-11 10:31:54,237 - 124384 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-05-11 10:31:54,302 - 124384 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: - __SPLIT__ 2026-05-11 10:31:54,372 - 124384 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-05-11 10:31:54,431 - 124384 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: - __SPLIT__ 2026-05-11 10:31:54,500 - 124384 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-05-11 10:31:54,568 - 124384 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-11 10:31:54,637 - 124384 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 3673141 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 10:31:54,974 - 124384 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-11 10:31:55,038 - 124384 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationCrews: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 10:31:55,407 - 124384 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationCrews - __SPLIT__ 2026-05-11 10:31:56,425 - 124384 - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationCrews in 1 batches - __SPLIT__ 2026-05-11 10:31:56,490 - 124384 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-05-11 10:31:56,552 - 124384 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-11 10:31:56,612 - 124384 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 3673141 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 10:31:57,024 - 124384 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-11 10:31:57,097 - 124384 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 10:31:57,469 - 124384 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-05-11 10:31:58,489 - 124384 - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-05-11 10:31:58,556 - 124384 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-05-11 10:31:58,627 - 124384 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-11 10:31:58,689 - 124384 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 3673142 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 10:31:59,027 - 124384 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-11 10:31:59,094 - 124384 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 10:31:59,431 - 124384 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-05-11 10:32:00,438 - 124384 - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-05-11 10:32:00,498 - 124384 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-05-11 10:32:00,567 - 124384 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 124384;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 10:32:00,896 - 124384 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-11 10:32:00,962 - 124384 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-05-11 10:32:01,030 - 124384 - src.utils.log - INFO - Time took to perform operation: 28.89 - __SPLIT__ 2026-05-11 10:32:01,101 - 124384 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 124384;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 10:32:01,434 - 124384 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-11 10:32:01,501 - 124384 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET WorkOrderStatusDateTime = '2026-05-11 06:32:01.501' WHERE GenerateWorkOrderHistoryId = 124384;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 10:32:01,833 - 124384 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-11 10:32:14,196 - [124384] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[3673141, 3673142] user_id=43135 company_id=133 project_id=[124384] publish_all=False - __SPLIT__ 2026-05-11 10:32:14,322 - [124384] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[3673141, 3673142] user_id=43135 company_id=133 project_id=[124384] publish_all=False - __SPLIT__ 2026-05-11 10:32:14,388 - [124384] - src.utils.log - INFO - Sequential Work order publish in progress for GenerateWorkOrderHistoryId: [124384] - __SPLIT__ 2026-05-11 10:32:14,462 - [124384] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-05-11 10:32:14,530 - [124384] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 10:32:16,696 - [124384] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-11 10:32:16,766 - [124384] - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-05-11 10:32:16,839 - [124384] - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-05-11 10:32:16,914 - [124384] - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-05-11 10:32:16,982 - [124384] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'InProgress' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124384;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 10:32:19,420 - [124384] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-11 10:32:19,488 - [124384] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (3673141, 3673142)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 10:32:19,815 - [124384] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-05-11 10:32:19,878 - [124384] - src.utils.log - INFO - Inside get_work_order_table - __SPLIT__ 2026-05-11 10:32:19,954 - [124384] - 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 = 150288 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 10:32:20,296 - [124384] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-11 10:32:20,356 - [124384] - 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 = 150288 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 10:32:20,700 - [124384] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-11 10:32:20,770 - [124384] - 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 = 150288 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 10:32:21,122 - [124384] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-11 10:32:21,195 - [124384] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder,BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 10:32:21,585 - [124384] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-11 10:32:21,654 - [124384] - 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-05-11 10:32:22,008 - [124384] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-05-11 10:32:22,079 - [124384] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder, BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 10:32:22,414 - [124384] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-11 10:32:22,489 - [124384] - 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-05-11 10:32:22,830 - [124384] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-11 10:32:22,907 - [124384] - 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-05-11 10:32:23,253 - [124384] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-11 10:32:23,330 - [124384] - 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 = 150288... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 10:32:23,669 - [124384] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-11 10:32:23,743 - [124384] - src.utils.log - INFO - πŸ” Fetching data: SELECT x.CompanyId FROM CRM.CompanyMaster x WHERE CompanyKey = 'abcdallas';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 10:32:24,080 - [124384] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-11 10:32:24,152 - [124384] - src.utils.log - INFO - πŸ” Fetching data: SELECT CollectionStatus,IsHold,AccountNo FROM CRM.Account a WHERE a.AccountNo = '14831' and a.CompanyId = 121;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 10:32:24,485 - [124384] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-11 10:32:24,555 - [124384] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderNo FROM ServiceCore.WorkOrder WHERE WorkOrderNo IN ('1419350', '1419351') AND CompanyId = 133 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 10:32:24,903 - [124384] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-11 10:32:24,970 - [124384] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrder (skip triggers): 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 10:32:25,499 - [124384] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrder (triggers skipped) - __SPLIT__ 2026-05-11 10:32:26,650 - [124384] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrder in 1 batches (triggers skipped) - __SPLIT__ 2026-05-11 10:32:26,906 - [124384] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-05-11 10:32:26,975 - [124384] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.ServiceSetup SET IsInitialWoGenerated = 1 WHERE CompanyId = 133 AND ServiceSetupId = 150288;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 10:32:27,315 - [124384] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-11 10:32:27,386 - [124384] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkorderId, WorkOrderNo FROM ServiceCore.WorkOrder wo WHERE wo.WorkOrderNo IN ('1419350', '1419351') AND wo.AccountNumber = '14831' AND wo.CompanyId = 133 ... (Thread: ThreadPoolExecutor-1_0) - __SPLIT__ 2026-05-11 10:32:27,733 - [124384] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-05-11 10:32:27,802 - [124384] - src.utils.log - INFO - Sequential fetching temp table records - __SPLIT__ 2026-05-11 10:32:27,865 - [124384] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationServices woag WHERE woag.WorkOrderAutoGenerationId in (3673141, 3673142)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 10:32:28,703 - [124384] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-05-11 10:32:28,775 - [124384] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SubWorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (3673141, 3673142)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 10:32:29,107 - [124384] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-11 10:32:29,178 - [124384] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationCrews woag WHERE woag.WorkOrderAutoGenerationId in (3673141, 3673142)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 10:32:29,672 - [124384] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-05-11 10:32:29,739 - [124384] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationSalesPersonCommission woag WHERE woag.WorkOrderAutoGenerationId in (3673141, 3673142)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 10:32:30,069 - [124384] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-11 10:32:30,142 - [124384] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupAutoGenerationSourceMapping woag WHERE woag.WorkOrderAutoGenerationId in (3673141, 3673142)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 10:32:30,481 - [124384] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-11 10:32:30,558 - [124384] - 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 (3673141, 3673142)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 10:32:31,237 - [124384] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-11 10:32:31,309 - [124384] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from CRM.LeadNote woag WHERE woag.RefId in (3673141, 3673142) and woag.RefType = 'TempWorkorder';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 10:32:31,656 - [124384] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-11 10:32:31,777 - [124384] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment woagca WHERE woagca.WorkOrderAutoGenerationId in (3673141, 3673142);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 10:32:32,109 - [124384] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-11 10:32:32,178 - [124384] - src.utils.log - INFO - Updating temp tables - __SPLIT__ 2026-05-11 10:32:32,258 - [124384] - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyKey FROM Common.CompanyMaster cm WHERE CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 10:32:32,584 - [124384] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-11 10:32:32,651 - [124384] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 133 AND EnitityNumberType in ('SubWorkOrder'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 10:32:32,985 - [124384] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-11 10:32:33,052 - [124384] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-11 10:32:33,113 - [124384] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishHistory: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 10:32:33,493 - [124384] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationPublishHistory - __SPLIT__ 2026-05-11 10:32:34,574 - [124384] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishHistory in 1 batches - __SPLIT__ 2026-05-11 10:32:34,643 - [124384] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationPublishHistoryId, WorkOrderNo, ServiceSetupId FROM ServiceCore.WorkOrderAutoGenerationPublishHistory WHERE ServiceSetupId = 150288 AND WorkOrderNo IN ('369124', '8429156') AND GenerateWorkOrderHistoryId = 124384;... (Thread: ThreadPoolExecutor-2_0) - __SPLIT__ 2026-05-11 10:32:35,014 - [124384] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-05-11 10:32:35,087 - [124384] - src.utils.log - INFO - 🏁 Final merged rows: 2 - __SPLIT__ 2026-05-11 10:32:35,156 - [124384] - src.utils.log - INFO - Sequential Insertion in work order tables begin - __SPLIT__ 2026-05-11 10:32:35,218 - [124384] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-11 10:32:35,276 - [124384] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderServices: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 10:32:35,637 - [124384] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderServices - __SPLIT__ 2026-05-11 10:32:36,678 - [124384] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderServices in 1 batches - __SPLIT__ 2026-05-11 10:32:36,748 - [124384] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderAppliedDiscount: - __SPLIT__ 2026-05-11 10:32:36,872 - [124384] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderSalesPersonCommission: - __SPLIT__ 2026-05-11 10:32:36,944 - [124384] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderCommissionAdjustment: - __SPLIT__ 2026-05-11 10:32:37,005 - [124384] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-11 10:32:37,075 - [124384] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderCrew: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 10:32:37,431 - [124384] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderCrew - __SPLIT__ 2026-05-11 10:32:38,455 - [124384] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderCrew in 1 batches - __SPLIT__ 2026-05-11 10:32:38,521 - [124384] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkorderSourceMapping: - __SPLIT__ 2026-05-11 10:32:38,586 - [124384] - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-05-11 10:32:38,653 - [124384] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-11 10:32:38,716 - [124384] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishServices: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 10:32:39,079 - [124384] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationPublishServices - __SPLIT__ 2026-05-11 10:32:40,099 - [124384] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishServices in 1 batches - __SPLIT__ 2026-05-11 10:32:40,170 - [124384] - 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 = 150288... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 10:32:40,501 - [124384] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-11 10:32:40,575 - [124384] - src.utils.log - INFO - Size of Transaction: 2 - __SPLIT__ 2026-05-11 10:32:40,641 - [124384] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 10:32:41,134 - [124384] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-05-11 10:32:42,212 - [124384] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-05-11 10:32:42,412 - [124384] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-05-11 10:32:42,476 - [124384] - 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-05-11 06:32:40.570';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 10:32:49,638 - [124384] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-05-11 10:32:49,767 - [124384] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150288;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 10:32:50,094 - [124384] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-11 10:32:50,166 - [124384] - src.utils.log - INFO - πŸ“ Executing: UPDATE Billing.[Transaction] SET ModifiedBy = NULL WHERE ModifiedBy IN (12345678910,12345678911) AND CreatedDate = '2026-05-11 06:32:40.570'; ... (Thread: ThreadPoolExecutor-3_0) - __SPLIT__ 2026-05-11 10:32:50,642 - [124384] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-11 10:32:50,713 - [124384] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-11 10:32:50,783 - [124384] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 10:32:51,153 - [124384] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.Invoice - __SPLIT__ 2026-05-11 10:32:52,257 - [124384] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-05-11 10:32:52,318 - [124384] - src.utils.log - INFO - πŸ” Fetching data: SELECT InvoiceId, WorkOrderNo FROM Billing.Invoice i WHERE i.WorkOrderNo in ('1419350', '1419351')... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 10:32:53,932 - [124384] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-05-11 10:32:54,009 - [124384] - 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 = 150288 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 10:32:54,338 - [124384] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-11 10:32:54,402 - [124384] - 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 = 150288 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 10:32:54,731 - [124384] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-11 10:32:54,795 - [124384] - 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 = 150288 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 10:32:55,129 - [124384] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-11 10:32:55,191 - [124384] - 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 = 150288 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 10:32:55,524 - [124384] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-11 10:32:55,598 - [124384] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150288;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 10:32:55,930 - [124384] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-11 10:32:56,053 - [124384] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId, AppliedDiscountAmt as AppliedDiscountAmount,IsActive ,ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 150288;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 10:32:56,376 - [124384] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-11 10:32:56,450 - [124384] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId,IsActive,DiscountAmount, IsDiscountPercent,DiscountPercent,DiscountDescription , ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 150288;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 10:32:56,788 - [124384] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-11 10:32:56,864 - [124384] - src.utils.log - INFO - Sequential Insertion in invoice tables begin - __SPLIT__ 2026-05-11 10:32:56,931 - [124384] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.AccountDiscountSetup: - __SPLIT__ 2026-05-11 10:32:56,997 - [124384] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-11 10:32:57,060 - [124384] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceCharges: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 10:32:57,427 - [124384] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.InvoiceCharges - __SPLIT__ 2026-05-11 10:32:58,467 - [124384] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.InvoiceCharges in 1 batches - __SPLIT__ 2026-05-11 10:32:58,532 - [124384] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.DiscountApplied: - __SPLIT__ 2026-05-11 10:32:58,603 - [124384] - src.utils.log - INFO - Invoice Publish Done - __SPLIT__ 2026-05-11 10:32:58,665 - [124384] - src.utils.log - INFO - Updating Next GenerationDate - __SPLIT__ 2026-05-11 10:32:58,726 - [124384] - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, MAX(NextWorkOrderGenerationDate) AS MaxNextWorkOrderGeneration FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 124384 GROUP BY ServiceSetupId; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 10:32:59,071 - [124384] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-11 10:32:59,137 - [124384] - src.utils.log - INFO - πŸ”„ Updating next gen date sequentially: inside update_next_workorder_generation - __SPLIT__ 2026-05-11 10:32:59,334 - [124384] - src.utils.log - INFO - πŸ›  Creating temp table #tbl_ea9006a88a - __SPLIT__ 2026-05-11 10:32:59,658 - [124384] - src.utils.log - INFO - πŸ“Œ Bulk inserting 1 rows into #tbl_ea9006a88a - __SPLIT__ 2026-05-11 10:32:59,988 - [124384] - src.utils.log - INFO - πŸ” Running MERGE update to apply changes - __SPLIT__ 2026-05-11 10:33:00,216 - [124384] - src.utils.log - INFO - βœ” SQL reported affected rows: 1 - __SPLIT__ 2026-05-11 10:33:00,465 - [124384] - src.utils.log - INFO - πŸ” Verified successfully updated 1 rows via #tbl_ea9006a88a - __SPLIT__ 2026-05-11 10:33:00,526 - [124384] - src.utils.log - INFO - πŸŽ‰ Successfully updated NextGenerationDate using temp table #tbl_ea9006a88a - __SPLIT__ 2026-05-11 10:33:00,595 - [124384] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 124384 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 10:33:00,927 - [124384] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-11 10:33:00,996 - [124384] - src.utils.log - INFO - Sequential deletion from temp tables begin - __SPLIT__ 2026-05-11 10:33:01,065 - [124384] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId in (3673141, 3673142) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 10:33:01,561 - [124384] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-11 10:33:01,624 - [124384] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId in (3673141, 3673142) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 10:33:02,058 - [124384] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-11 10:33:02,128 - [124384] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId in (3673141, 3673142) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 10:33:02,463 - [124384] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-11 10:33:02,535 - [124384] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId in (3673141, 3673142) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 10:33:02,964 - [124384] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-11 10:33:03,032 - [124384] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId in (3673141, 3673142) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 10:33:03,400 - [124384] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-11 10:33:03,476 - [124384] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (3673141, 3673142) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 10:33:03,811 - [124384] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-11 10:33:03,870 - [124384] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId in (3673141, 3673142) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 10:33:04,200 - [124384] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-11 10:33:04,265 - [124384] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (3673141, 3673142) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 10:33:04,740 - [124384] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-11 10:33:04,810 - [124384] - src.utils.log - INFO - Work order published ids: (3673141, 3673142) - __SPLIT__ 2026-05-11 10:33:04,875 - [124384] - src.utils.log - INFO - Time took to perform operation in publishing [124384]: 50.41 - __SPLIT__ 2026-05-11 10:33:04,941 - [124384] - src.utils.log - INFO - Publish Completed for GenerateWorkOrderHistoryId: [124384] - __SPLIT__ 2026-05-11 10:33:05,003 - [124384] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-05-11 06:33:04.810' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124384;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 10:33:05,335 - [124384] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-11 11:55:38,505 - [124386] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[3673143, 3673151] user_id=43135 company_id=133 project_id=[124386] publish_all=False - __SPLIT__ 2026-05-11 11:55:38,649 - [124386] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[3673143, 3673151] user_id=43135 company_id=133 project_id=[124386] publish_all=False - __SPLIT__ 2026-05-11 11:55:38,725 - [124386] - src.utils.log - INFO - Sequential Work order publish in progress for GenerateWorkOrderHistoryId: [124386] - __SPLIT__ 2026-05-11 11:55:38,794 - [124386] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-05-11 11:55:38,867 - [124386] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 11:55:40,931 - [124386] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-11 11:55:41,001 - [124386] - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-05-11 11:55:41,075 - [124386] - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-05-11 11:55:41,148 - [124386] - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-05-11 11:55:41,216 - [124386] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'InProgress' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124386;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 11:55:43,717 - [124386] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-11 11:55:43,786 - [124386] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (3673143, 3673151)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 11:55:44,128 - [124386] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-05-11 11:55:44,202 - [124386] - src.utils.log - INFO - Inside get_work_order_table - __SPLIT__ 2026-05-11 11:55:44,269 - [124386] - 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 = 150289 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 11:55:44,619 - [124386] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-11 11:55:44,693 - [124386] - 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 = 150289 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 11:55:45,044 - [124386] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-11 11:55:45,116 - [124386] - 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 = 150289 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 11:55:45,471 - [124386] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-11 11:55:45,547 - [124386] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder,BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 11:55:45,937 - [124386] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-11 11:55:46,003 - [124386] - 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-05-11 11:55:46,340 - [124386] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-05-11 11:55:46,407 - [124386] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder, BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 11:55:46,741 - [124386] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-11 11:55:46,813 - [124386] - 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-05-11 11:55:47,158 - [124386] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-11 11:55:47,223 - [124386] - 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-05-11 11:55:47,568 - [124386] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-11 11:55:47,636 - [124386] - 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 = 150289... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 11:55:47,976 - [124386] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-11 11:55:48,048 - [124386] - src.utils.log - INFO - πŸ” Fetching data: SELECT x.CompanyId FROM CRM.CompanyMaster x WHERE CompanyKey = 'abcdallas';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 11:55:48,387 - [124386] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-11 11:55:48,454 - [124386] - src.utils.log - INFO - πŸ” Fetching data: SELECT CollectionStatus,IsHold,AccountNo FROM CRM.Account a WHERE a.AccountNo = '14831' and a.CompanyId = 121;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 11:55:48,787 - [124386] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-11 11:55:48,852 - [124386] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderNo FROM ServiceCore.WorkOrder WHERE WorkOrderNo IN ('1419352', '1419353') AND CompanyId = 133 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 11:55:49,193 - [124386] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-11 11:55:49,277 - [124386] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrder (skip triggers): 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 11:55:49,784 - [124386] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrder (triggers skipped) - __SPLIT__ 2026-05-11 11:55:50,892 - [124386] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrder in 1 batches (triggers skipped) - __SPLIT__ 2026-05-11 11:55:51,124 - [124386] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-05-11 11:55:51,179 - [124386] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.ServiceSetup SET IsInitialWoGenerated = 1 WHERE CompanyId = 133 AND ServiceSetupId = 150289;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 11:55:51,502 - [124386] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-11 11:55:51,555 - [124386] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkorderId, WorkOrderNo FROM ServiceCore.WorkOrder wo WHERE wo.WorkOrderNo IN ('1419352', '1419353') AND wo.AccountNumber = '14831' AND wo.CompanyId = 133 ... (Thread: ThreadPoolExecutor-11_0) - __SPLIT__ 2026-05-11 11:55:51,889 - [124386] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-05-11 11:55:51,942 - [124386] - src.utils.log - INFO - Sequential fetching temp table records - __SPLIT__ 2026-05-11 11:55:52,000 - [124386] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationServices woag WHERE woag.WorkOrderAutoGenerationId in (3673143, 3673151)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 11:55:52,368 - [124386] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-05-11 11:55:52,425 - [124386] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SubWorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (3673143, 3673151)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 11:55:52,758 - [124386] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-11 11:55:52,814 - [124386] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationCrews woag WHERE woag.WorkOrderAutoGenerationId in (3673143, 3673151)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 11:55:53,165 - [124386] - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-05-11 11:55:53,222 - [124386] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationSalesPersonCommission woag WHERE woag.WorkOrderAutoGenerationId in (3673143, 3673151)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 11:55:53,550 - [124386] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-11 11:55:53,601 - [124386] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupAutoGenerationSourceMapping woag WHERE woag.WorkOrderAutoGenerationId in (3673143, 3673151)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 11:55:53,926 - [124386] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-11 11:55:53,987 - [124386] - 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 (3673143, 3673151)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 11:55:54,348 - [124386] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-11 11:55:54,406 - [124386] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from CRM.LeadNote woag WHERE woag.RefId in (3673143, 3673151) and woag.RefType = 'TempWorkorder';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 11:55:54,737 - [124386] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-11 11:55:54,854 - [124386] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment woagca WHERE woagca.WorkOrderAutoGenerationId in (3673143, 3673151);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 11:55:55,200 - [124386] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-11 11:55:55,267 - [124386] - src.utils.log - INFO - Updating temp tables - __SPLIT__ 2026-05-11 11:55:55,350 - [124386] - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyKey FROM Common.CompanyMaster cm WHERE CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 11:55:55,693 - [124386] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-11 11:55:55,754 - [124386] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 133 AND EnitityNumberType in ('SubWorkOrder'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 11:55:56,083 - [124386] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-11 11:55:56,152 - [124386] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-11 11:55:56,213 - [124386] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishHistory: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 11:55:56,573 - [124386] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationPublishHistory - __SPLIT__ 2026-05-11 11:55:57,702 - [124386] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishHistory in 1 batches - __SPLIT__ 2026-05-11 11:55:57,762 - [124386] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationPublishHistoryId, WorkOrderNo, ServiceSetupId FROM ServiceCore.WorkOrderAutoGenerationPublishHistory WHERE ServiceSetupId = 150289 AND WorkOrderNo IN ('153462', '6936672') AND GenerateWorkOrderHistoryId = 124386;... (Thread: ThreadPoolExecutor-12_0) - __SPLIT__ 2026-05-11 11:55:58,132 - [124386] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-05-11 11:55:58,203 - [124386] - src.utils.log - INFO - 🏁 Final merged rows: 2 - __SPLIT__ 2026-05-11 11:55:58,272 - [124386] - src.utils.log - INFO - Sequential Insertion in work order tables begin - __SPLIT__ 2026-05-11 11:55:58,336 - [124386] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-11 11:55:58,402 - [124386] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderServices: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 11:55:58,735 - [124386] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderServices - __SPLIT__ 2026-05-11 11:55:59,750 - [124386] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderServices in 1 batches - __SPLIT__ 2026-05-11 11:55:59,822 - [124386] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderAppliedDiscount: - __SPLIT__ 2026-05-11 11:55:59,929 - [124386] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderSalesPersonCommission: - __SPLIT__ 2026-05-11 11:55:59,989 - [124386] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderCommissionAdjustment: - __SPLIT__ 2026-05-11 11:56:00,066 - [124386] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-11 11:56:00,135 - [124386] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderCrew: 4 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 11:56:00,476 - [124386] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 4) into ServiceCore.WorkOrderCrew - __SPLIT__ 2026-05-11 11:56:01,500 - [124386] - src.utils.log - INFO - βœ… All 4 rows inserted successfully into ServiceCore.WorkOrderCrew in 1 batches - __SPLIT__ 2026-05-11 11:56:01,558 - [124386] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkorderSourceMapping: - __SPLIT__ 2026-05-11 11:56:01,615 - [124386] - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-05-11 11:56:01,679 - [124386] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-11 11:56:01,741 - [124386] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishServices: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 11:56:02,077 - [124386] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationPublishServices - __SPLIT__ 2026-05-11 11:56:03,086 - [124386] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishServices in 1 batches - __SPLIT__ 2026-05-11 11:56:03,155 - [124386] - 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 = 150289... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 11:56:03,493 - [124386] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-11 11:56:03,556 - [124386] - src.utils.log - INFO - Size of Transaction: 2 - __SPLIT__ 2026-05-11 11:56:03,620 - [124386] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 11:56:04,089 - [124386] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-05-11 11:56:05,102 - [124386] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-05-11 11:56:05,298 - [124386] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-05-11 11:56:05,362 - [124386] - 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-05-11 07:56:03.552';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 11:56:05,918 - [124386] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-05-11 11:56:05,981 - [124386] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150289;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 11:56:06,324 - [124386] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-11 11:56:06,405 - [124386] - src.utils.log - INFO - πŸ“ Executing: UPDATE Billing.[Transaction] SET ModifiedBy = NULL WHERE ModifiedBy IN (12345678910,12345678911) AND CreatedDate = '2026-05-11 07:56:03.552'; ... (Thread: ThreadPoolExecutor-13_0) - __SPLIT__ 2026-05-11 11:56:06,861 - [124386] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-11 11:56:06,950 - [124386] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-11 11:56:07,019 - [124386] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 11:56:07,359 - [124386] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.Invoice - __SPLIT__ 2026-05-11 11:56:08,391 - [124386] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-05-11 11:56:08,465 - [124386] - src.utils.log - INFO - πŸ” Fetching data: SELECT InvoiceId, WorkOrderNo FROM Billing.Invoice i WHERE i.WorkOrderNo in ('1419352', '1419353')... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 11:56:08,875 - [124386] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-05-11 11:56:08,949 - [124386] - 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 = 150289 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 11:56:09,291 - [124386] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-11 11:56:09,370 - [124386] - 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 = 150289 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 11:56:09,712 - [124386] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-11 11:56:09,789 - [124386] - 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 = 150289 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 11:56:10,131 - [124386] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-11 11:56:10,197 - [124386] - 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 = 150289 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 11:56:10,536 - [124386] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-11 11:56:10,612 - [124386] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150289;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 11:56:10,998 - [124386] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-11 11:56:11,064 - [124386] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId, AppliedDiscountAmt as AppliedDiscountAmount,IsActive ,ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 150289;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 11:56:11,400 - [124386] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-11 11:56:11,474 - [124386] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId,IsActive,DiscountAmount, IsDiscountPercent,DiscountPercent,DiscountDescription , ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 150289;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 11:56:11,809 - [124386] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-11 11:56:11,876 - [124386] - src.utils.log - INFO - Sequential Insertion in invoice tables begin - __SPLIT__ 2026-05-11 11:56:11,941 - [124386] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.AccountDiscountSetup: - __SPLIT__ 2026-05-11 11:56:12,005 - [124386] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-11 11:56:12,074 - [124386] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceCharges: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 11:56:12,423 - [124386] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.InvoiceCharges - __SPLIT__ 2026-05-11 11:56:13,468 - [124386] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.InvoiceCharges in 1 batches - __SPLIT__ 2026-05-11 11:56:13,542 - [124386] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.DiscountApplied: - __SPLIT__ 2026-05-11 11:56:13,629 - [124386] - src.utils.log - INFO - Invoice Publish Done - __SPLIT__ 2026-05-11 11:56:13,692 - [124386] - src.utils.log - INFO - Updating Next GenerationDate - __SPLIT__ 2026-05-11 11:56:13,754 - [124386] - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, MAX(NextWorkOrderGenerationDate) AS MaxNextWorkOrderGeneration FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 124386 GROUP BY ServiceSetupId; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 11:56:14,086 - [124386] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-11 11:56:14,151 - [124386] - src.utils.log - INFO - πŸ”„ Updating next gen date sequentially: inside update_next_workorder_generation - __SPLIT__ 2026-05-11 11:56:14,353 - [124386] - src.utils.log - INFO - πŸ›  Creating temp table #tbl_faa5451e98 - __SPLIT__ 2026-05-11 11:56:14,692 - [124386] - src.utils.log - INFO - πŸ“Œ Bulk inserting 1 rows into #tbl_faa5451e98 - __SPLIT__ 2026-05-11 11:56:15,030 - [124386] - src.utils.log - INFO - πŸ” Running MERGE update to apply changes - __SPLIT__ 2026-05-11 11:56:15,332 - [124386] - src.utils.log - INFO - βœ” SQL reported affected rows: 1 - __SPLIT__ 2026-05-11 11:56:15,538 - [124386] - src.utils.log - INFO - πŸ” Verified successfully updated 1 rows via #tbl_faa5451e98 - __SPLIT__ 2026-05-11 11:56:15,606 - [124386] - src.utils.log - INFO - πŸŽ‰ Successfully updated NextGenerationDate using temp table #tbl_faa5451e98 - __SPLIT__ 2026-05-11 11:56:15,674 - [124386] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 124386 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 11:56:16,013 - [124386] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-11 11:56:16,087 - [124386] - src.utils.log - INFO - Sequential deletion from temp tables begin - __SPLIT__ 2026-05-11 11:56:16,154 - [124386] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId in (3673143, 3673151) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 11:56:16,648 - [124386] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-11 11:56:16,716 - [124386] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId in (3673143, 3673151) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 11:56:17,161 - [124386] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-11 11:56:17,225 - [124386] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId in (3673143, 3673151) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 11:56:17,562 - [124386] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-11 11:56:17,629 - [124386] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId in (3673143, 3673151) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 11:56:18,068 - [124386] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-11 11:56:18,140 - [124386] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId in (3673143, 3673151) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 11:56:18,488 - [124386] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-11 11:56:18,557 - [124386] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (3673143, 3673151) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 11:56:18,899 - [124386] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-11 11:56:18,974 - [124386] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId in (3673143, 3673151) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 11:56:19,312 - [124386] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-11 11:56:19,434 - [124386] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (3673143, 3673151) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 11:56:19,874 - [124386] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-11 11:56:19,947 - [124386] - src.utils.log - INFO - Work order published ids: (3673143, 3673151) - __SPLIT__ 2026-05-11 11:56:20,017 - [124386] - src.utils.log - INFO - Time took to perform operation in publishing [124386]: 41.22 - __SPLIT__ 2026-05-11 11:56:20,084 - [124386] - src.utils.log - INFO - Publish Completed for GenerateWorkOrderHistoryId: [124386] - __SPLIT__ 2026-05-11 11:56:20,168 - [124386] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-05-11 07:56:19.947' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124386;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 11:56:20,512 - [124386] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-11 12:08:52,951 - 42401 - src.utils.log - INFO - ParallelProcessing=False GenerateInvoiceHistoryId=42401 - __SPLIT__ 2026-05-11 12:08:53,071 - 42401 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-05-11 12:08:53,151 - 42401 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 12:08:55,329 - 42401 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-11 12:08:55,391 - 42401 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-05-11 12:08:55,460 - 42401 - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-05-11 12:08:55,532 - 42401 - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-05-11 12:08:55,593 - 42401 - src.utils.log - INFO - Sequential Invoice generation algo started for GenerateInvoiceHistoryId: 42401 - __SPLIT__ 2026-05-11 12:08:55,655 - 42401 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET Status = 'InProgress' WHERE GenerateInvoiceHistoryId = 42401;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 12:08:57,593 - 42401 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-11 12:08:57,656 - 42401 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateInvoiceHistory WHERE GenerateInvoiceHistoryId = 42401;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 12:08:57,986 - 42401 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-11 12:08:58,054 - 42401 - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceId as ServiceMasterId,ss.FrequencyScheduleId as setup_frequency_schedule_id, ssb.*, ss.IsBilling, ss.DepartmentMasterId, ss.AccountNumber, ss.CompanyId, ss.BillingLocationId, ss.ServiceLocationId, ss.TaxSysName, ss.TermId, t.NetDueIn, ss.TaxPercent, ss.PoNumber, ss.DisplayServiceAsSeparateLineItem, ss.SetupEndDate, ss.SetupStartDate from ServiceCore.ServiceSetup ss join ServiceCore.ServiceSetupBilling ssb on ss.ServiceSetupId = ssb.ServiceSetupId join Billing.PaymentTypeMaster ptm on ptm.PaymentTypeMasterId = ssb.PaymentTypeMasterId join Billing.Term t on ss.TermId = t.TermId join ServiceCore.ServiceSetupServices sss on ss.ServiceSetupId = sss.ServiceSetupId where ptm.PaymentType= 'Payment Plan' and ss.IsActive =1 and ss.CompanyId= 133 AND ss.IsDeleted =0 AND ss.Status <> 'Canceled' and ss.AccountNumber = '14831' and ss.ServiceSetupId = 150289;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 12:08:58,397 - 42401 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-11 12:08:58,468 - 42401 - src.utils.log - INFO - No filter selected - __SPLIT__ 2026-05-11 12:08:58,537 - 42401 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-05-11 12:08:58,606 - 42401 - 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 = 13977... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 12:08:58,947 - 42401 - src.utils.log - INFO - βœ… Fetched 12 rows - __SPLIT__ 2026-05-11 12:08:59,015 - 42401 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-05-11 12:08:59,099 - 42401 - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionAutoGenerationId FROM Billing.TransactionAutoGeneration WHERE ServiceSetupId = 150289 AND TransactionDate BETWEEN '2026-05-11 00:00:00' AND '2026-12-31 00:00:00' AND IsActive = 1 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 12:08:59,435 - 42401 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-11 12:08:59,574 - 42401 - src.utils.log - INFO - πŸ” Fetching data: SELECT Inv.ServiceSetupId, MAX(Inv.InvoiceDate) AS InvoiceDate FROM Billing.Invoice Inv INNER JOIN Billing.[Transaction] T ON Inv.TransactionId = T.TransactionId WHERE Inv.InvoiceDate BETWEEN '2026-05-11 00:00:00' AND '2026-12-31 00:00:00' AND Inv.IsActive = 1 AND Inv.IsDelete = 0 AND T.IsActive = 1 AND T.IsDelete = 0 AND Inv.ServiceSetupId = 150289 GROUP BY Inv.ServiceSetupId;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 12:08:59,953 - 42401 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-11 12:09:00,054 - 42401 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-11 12:09:00,128 - 42401 - src.utils.log - INFO - πŸ“₯ Inserting into Billing.TransactionAutoGeneration: 5 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 12:09:00,496 - 42401 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 5) into Billing.TransactionAutoGeneration - __SPLIT__ 2026-05-11 12:09:01,518 - 42401 - src.utils.log - INFO - βœ… All 5 rows inserted successfully into Billing.TransactionAutoGeneration in 1 batches - __SPLIT__ 2026-05-11 12:09:01,588 - 42401 - src.utils.log - INFO - - __SPLIT__ 2026-05-11 12:09:01,662 - 42401 - src.utils.log - INFO - Total invoice generated: 5 - __SPLIT__ 2026-05-11 12:09:01,728 - 42401 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 5 TransactionAutoGenerationId, ServiceSetupId, TransactionDate as InvoiceDate From Billing.TransactionAutoGeneration WHERE CreatedDate = '2026-05-08 13:03:30.551' and ServiceSetupId = 150289 and GenerateWorkOrderHistoryId= 42401;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 12:09:02,087 - 42401 - src.utils.log - INFO - βœ… Fetched 5 rows - __SPLIT__ 2026-05-11 12:09:02,166 - 42401 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-11 12:09:02,244 - 42401 - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceAutoGeneration: 5 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 12:09:02,607 - 42401 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 5) into Billing.InvoiceAutoGeneration - __SPLIT__ 2026-05-11 12:09:03,642 - 42401 - src.utils.log - INFO - βœ… All 5 rows inserted successfully into Billing.InvoiceAutoGeneration in 1 batches - __SPLIT__ 2026-05-11 12:09:03,708 - 42401 - src.utils.log - INFO - πŸ” Fetching data: SELECT I.InvoiceAutoGenerationId, T.ServiceSetupId FROM Billing.InvoiceAutoGeneration I JOIN Billing.TransactionAutoGeneration T ON I.TransactionAutoGenerationId = T.TransactionAutoGenerationId where T.TransactionAutoGenerationId in (636590, 636591, 636592, 636593, 636594);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 12:09:04,093 - 42401 - src.utils.log - INFO - βœ… Fetched 5 rows - __SPLIT__ 2026-05-11 12:09:04,171 - 42401 - 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 = 150289 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 12:09:04,508 - 42401 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-11 12:09:04,596 - 42401 - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, DiscountSetupId,DiscountType,DiscountCode,DiscountAmount,DiscountDescription,DiscountName, DiscountPercent, IsDiscountPercent,AppliedDiscountAmt,ApplyOnPartPrice,ApplyOnLaborPrice from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE IsInitialSetupDiscount = 0 AND ssad.ServiceSetupId = 150289;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 12:09:04,938 - 42401 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-11 12:09:05,061 - 42401 - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.InvoiceAutoGenerationAppliedDiscount: - __SPLIT__ 2026-05-11 12:09:05,133 - 42401 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-11 12:09:05,206 - 42401 - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceChargesAutoGeneration: 5 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 12:09:05,579 - 42401 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 5) into Billing.InvoiceChargesAutoGeneration - __SPLIT__ 2026-05-11 12:09:06,619 - 42401 - src.utils.log - INFO - βœ… All 5 rows inserted successfully into Billing.InvoiceChargesAutoGeneration in 1 batches - __SPLIT__ 2026-05-11 12:09:06,696 - 42401 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET Status = 'Completed' WHERE GenerateInvoiceHistoryId = 42401;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 12:09:07,034 - 42401 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-11 12:09:07,109 - 42401 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET InvoiceStatusDateTime = '2026-05-11 08:09:07.109' WHERE GenerateInvoiceHistoryId = 42401;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 12:09:07,457 - 42401 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-11 12:09:07,529 - 42401 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-05-11 12:09:07,602 - 42401 - src.utils.log - INFO - Sequential Invoice Gen Complete Successfully ProjectId:42401 - Time took: 14.53 - __SPLIT__ 2026-05-11 12:10:26,786 - [42401] - src.utils.log - INFO - ParallelProcessing=False temp_invoice=[636590] user_id=43135 company_id=133 project_id=[42401] publish_all=False - __SPLIT__ 2026-05-11 12:10:26,910 - [42401] - src.utils.log - INFO - Invoice Published Successfully - __SPLIT__ 2026-05-11 12:10:26,986 - [42401] - src.utils.log - INFO - Sequential invoice publish in progress - __SPLIT__ 2026-05-11 12:10:27,056 - [42401] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-05-11 12:10:27,133 - [42401] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 12:10:29,345 - [42401] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-11 12:10:29,416 - [42401] - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-05-11 12:10:29,489 - [42401] - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-05-11 12:10:29,566 - [42401] - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-05-11 12:10:29,636 - [42401] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET PublishStatus = 'InProgress', InvoicePublishStartDateTime = '2026-05-11 08:10:29.636' WHERE CompanyId = 133 AND GenerateInvoiceHistoryId = 42401;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 12:10:31,594 - [42401] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-11 12:10:31,669 - [42401] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Billing.InvoiceAutoGeneration i WHERE TransactionAutoGenerationId = 636590;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 12:10:32,011 - [42401] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-11 12:10:32,082 - [42401] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Billing.TransactionAutoGeneration tag WHERE tag.TransactionAutoGenerationId = 636590;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 12:10:32,427 - [42401] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-11 12:10:32,503 - [42401] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 12:10:32,982 - [42401] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-05-11 12:10:34,004 - [42401] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-05-11 12:10:34,213 - [42401] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-05-11 12:10:34,282 - [42401] - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionId, ModifiedBy from Billing.[Transaction] t WHERE t.ModifiedBy = 12345678910 ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 12:10:34,729 - [42401] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-11 12:10:34,851 - [42401] - src.utils.log - INFO - πŸ“ Executing: UPDATE Billing.[Transaction] SET ModifiedBy = NULL WHERE ModifiedBy = 12345678910; ... (Thread: ThreadPoolExecutor-14_0) - __SPLIT__ 2026-05-11 12:10:35,297 - [42401] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-11 12:10:35,384 - [42401] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 133 AND EnitityNumberType in ('Invoice'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 12:10:35,718 - [42401] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-11 12:10:35,788 - [42401] - src.utils.log - INFO - 1 Invoice Generated : [1477186] - __SPLIT__ 2026-05-11 12:10:35,849 - [42401] - src.utils.log - INFO - πŸ“ Executing: UPDATE Common.GenerateNumberConfig SET NextNumber = '1477187' WHERE CompanyId = 133 AND EnitityNumberType in ('Invoice');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 12:10:36,185 - [42401] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-11 12:10:36,251 - [42401] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-11 12:10:36,314 - [42401] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 12:10:36,658 - [42401] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into Billing.Invoice - __SPLIT__ 2026-05-11 12:10:37,709 - [42401] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-05-11 12:10:37,775 - [42401] - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionId, InvoiceId FROM Billing.Invoice WHERE TransactionId = 3692491;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 12:10:38,803 - [42401] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-11 12:10:38,872 - [42401] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Billing.InvoiceChargesAutoGeneration icag WHERE InvoiceAutoGenerationId = 444675;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 12:10:39,453 - [42401] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-11 12:10:39,521 - [42401] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Billing.InvoiceAutoGenerationAppliedDiscount iagad WHERE InvoiceAutoGenerationId = 444675;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 12:10:39,872 - [42401] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-11 12:10:39,941 - [42401] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-11 12:10:40,009 - [42401] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceCharges: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 12:10:40,354 - [42401] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into Billing.InvoiceCharges - __SPLIT__ 2026-05-11 12:10:41,446 - [42401] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into Billing.InvoiceCharges in 1 batches - __SPLIT__ 2026-05-11 12:10:41,509 - [42401] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.AccountDiscountSetup: - __SPLIT__ 2026-05-11 12:10:41,569 - [42401] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.DiscountApplied: - __SPLIT__ 2026-05-11 12:10:41,627 - [42401] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: delete FROM Billing.InvoiceAutoGenerationAppliedDiscount WHERE InvoiceAutoGenerationId = 444675 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 12:10:41,973 - [42401] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-11 12:10:42,028 - [42401] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: delete FROM Billing.InvoiceChargesAutoGeneration WHERE InvoiceAutoGenerationId = 444675 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 12:10:42,398 - [42401] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-11 12:10:42,462 - [42401] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: delete FROM Billing.InvoiceAutoGeneration WHERE InvoiceAutoGenerationId = 444675 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 12:10:42,809 - [42401] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-11 12:10:42,869 - [42401] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: delete FROM Billing.TransactionAutoGeneration WHERE TransactionAutoGenerationId = 636590 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 12:10:43,199 - [42401] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-11 12:10:43,262 - [42401] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-05-11 08:10:29.636' WHERE CompanyId = 133 AND GenerateInvoiceHistoryId = 42401;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 12:10:43,598 - [42401] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-11 12:10:43,661 - [42401] - src.utils.log - INFO - Sequential invoice publish completed successfully - Time took: 16.61 - __SPLIT__ 2026-05-12 06:41:55,230 - 42402 - src.utils.log - INFO - ParallelProcessing=False GenerateInvoiceHistoryId=42402 - __SPLIT__ 2026-05-12 06:41:55,375 - 42402 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-05-12 06:41:55,449 - 42402 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 06:41:57,526 - 42402 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-12 06:41:57,596 - 42402 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-05-12 06:41:57,658 - 42402 - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-05-12 06:41:57,718 - 42402 - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-05-12 06:41:57,773 - 42402 - src.utils.log - INFO - Sequential Invoice generation algo started for GenerateInvoiceHistoryId: 42402 - __SPLIT__ 2026-05-12 06:41:57,847 - 42402 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET Status = 'InProgress' WHERE GenerateInvoiceHistoryId = 42402;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 06:41:59,947 - 42402 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-12 06:42:00,013 - 42402 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateInvoiceHistory WHERE GenerateInvoiceHistoryId = 42402;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 06:42:00,362 - 42402 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-12 06:42:00,459 - 42402 - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceId as ServiceMasterId,ss.FrequencyScheduleId as setup_frequency_schedule_id, ssb.*, ss.IsBilling, ss.DepartmentMasterId, ss.AccountNumber, ss.CompanyId, ss.BillingLocationId, ss.ServiceLocationId, ss.TaxSysName, ss.TermId, t.NetDueIn, ss.TaxPercent, ss.PoNumber, ss.DisplayServiceAsSeparateLineItem, ss.SetupEndDate, ss.SetupStartDate from ServiceCore.ServiceSetup ss join ServiceCore.ServiceSetupBilling ssb on ss.ServiceSetupId = ssb.ServiceSetupId join Billing.PaymentTypeMaster ptm on ptm.PaymentTypeMasterId = ssb.PaymentTypeMasterId join Billing.Term t on ss.TermId = t.TermId join ServiceCore.ServiceSetupServices sss on ss.ServiceSetupId = sss.ServiceSetupId where ptm.PaymentType= 'Payment Plan' and ss.IsActive =1 and ss.CompanyId= 133 AND ss.IsDeleted =0 AND ss.Status <> 'Canceled' and ss.AccountNumber = '14831' and ss.ServiceSetupId = 150290;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 06:42:00,816 - 42402 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-12 06:42:00,886 - 42402 - src.utils.log - INFO - No filter selected - __SPLIT__ 2026-05-12 06:42:00,953 - 42402 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-05-12 06:42:01,035 - 42402 - 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 = 14657... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 06:42:01,394 - 42402 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-12 06:42:01,465 - 42402 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-05-12 06:42:01,538 - 42402 - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionAutoGenerationId FROM Billing.TransactionAutoGeneration WHERE ServiceSetupId = 150290 AND TransactionDate BETWEEN '2026-05-12 00:00:00' AND '2026-09-30 00:00:00' AND IsActive = 1 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 06:42:01,891 - 42402 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-12 06:42:02,032 - 42402 - src.utils.log - INFO - πŸ” Fetching data: SELECT Inv.ServiceSetupId, MAX(Inv.InvoiceDate) AS InvoiceDate FROM Billing.Invoice Inv INNER JOIN Billing.[Transaction] T ON Inv.TransactionId = T.TransactionId WHERE Inv.InvoiceDate BETWEEN '2026-05-12 00:00:00' AND '2026-09-30 00:00:00' AND Inv.IsActive = 1 AND Inv.IsDelete = 0 AND T.IsActive = 1 AND T.IsDelete = 0 AND Inv.ServiceSetupId = 150290 GROUP BY Inv.ServiceSetupId;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 06:42:02,482 - 42402 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-12 06:42:02,558 - 42402 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-12 06:42:02,627 - 42402 - src.utils.log - INFO - πŸ“₯ Inserting into Billing.TransactionAutoGeneration: 5 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 06:42:03,012 - 42402 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 5) into Billing.TransactionAutoGeneration - __SPLIT__ 2026-05-12 06:42:04,089 - 42402 - src.utils.log - INFO - βœ… All 5 rows inserted successfully into Billing.TransactionAutoGeneration in 1 batches - __SPLIT__ 2026-05-12 06:42:04,159 - 42402 - src.utils.log - INFO - - __SPLIT__ 2026-05-12 06:42:04,222 - 42402 - src.utils.log - INFO - Total invoice generated: 5 - __SPLIT__ 2026-05-12 06:42:04,292 - 42402 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 5 TransactionAutoGenerationId, ServiceSetupId, TransactionDate as InvoiceDate From Billing.TransactionAutoGeneration WHERE CreatedDate = '2026-05-08 13:03:30.535' and ServiceSetupId = 150290 and GenerateWorkOrderHistoryId= 42402;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 06:42:04,647 - 42402 - src.utils.log - INFO - βœ… Fetched 5 rows - __SPLIT__ 2026-05-12 06:42:04,723 - 42402 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-12 06:42:04,784 - 42402 - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceAutoGeneration: 5 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 06:42:05,168 - 42402 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 5) into Billing.InvoiceAutoGeneration - __SPLIT__ 2026-05-12 06:42:06,213 - 42402 - src.utils.log - INFO - βœ… All 5 rows inserted successfully into Billing.InvoiceAutoGeneration in 1 batches - __SPLIT__ 2026-05-12 06:42:06,282 - 42402 - src.utils.log - INFO - πŸ” Fetching data: SELECT I.InvoiceAutoGenerationId, T.ServiceSetupId FROM Billing.InvoiceAutoGeneration I JOIN Billing.TransactionAutoGeneration T ON I.TransactionAutoGenerationId = T.TransactionAutoGenerationId where T.TransactionAutoGenerationId in (636595, 636596, 636597, 636598, 636599);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 06:42:06,658 - 42402 - src.utils.log - INFO - βœ… Fetched 5 rows - __SPLIT__ 2026-05-12 06:42:06,715 - 42402 - 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 = 150290 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 06:42:07,058 - 42402 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-12 06:42:07,141 - 42402 - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, DiscountSetupId,DiscountType,DiscountCode,DiscountAmount,DiscountDescription,DiscountName, DiscountPercent, IsDiscountPercent,AppliedDiscountAmt,ApplyOnPartPrice,ApplyOnLaborPrice from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE IsInitialSetupDiscount = 0 AND ssad.ServiceSetupId = 150290;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 06:42:07,481 - 42402 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-12 06:42:07,598 - 42402 - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.InvoiceAutoGenerationAppliedDiscount: - __SPLIT__ 2026-05-12 06:42:07,660 - 42402 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-12 06:42:07,720 - 42402 - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceChargesAutoGeneration: 5 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 06:42:08,101 - 42402 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 5) into Billing.InvoiceChargesAutoGeneration - __SPLIT__ 2026-05-12 06:42:09,279 - 42402 - src.utils.log - INFO - βœ… All 5 rows inserted successfully into Billing.InvoiceChargesAutoGeneration in 1 batches - __SPLIT__ 2026-05-12 06:42:09,346 - 42402 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET Status = 'Completed' WHERE GenerateInvoiceHistoryId = 42402;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 06:42:09,676 - 42402 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-12 06:42:09,734 - 42402 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET InvoiceStatusDateTime = '2026-05-12 02:42:09.734' WHERE GenerateInvoiceHistoryId = 42402;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 06:42:10,074 - 42402 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-12 06:42:10,136 - 42402 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-05-12 06:42:10,196 - 42402 - src.utils.log - INFO - Sequential Invoice Gen Complete Successfully ProjectId:42402 - Time took: 14.82 - __SPLIT__ 2026-05-12 06:42:33,632 - [42402] - src.utils.log - INFO - ParallelProcessing=False temp_invoice=[636595, 636596] user_id=43135 company_id=133 project_id=[42402] publish_all=False - __SPLIT__ 2026-05-12 06:42:33,762 - [42402] - src.utils.log - INFO - Invoice Published Successfully - __SPLIT__ 2026-05-12 06:42:33,833 - [42402] - src.utils.log - INFO - Sequential invoice publish in progress - __SPLIT__ 2026-05-12 06:42:33,905 - [42402] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-05-12 06:42:33,981 - [42402] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 06:42:36,062 - [42402] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-12 06:42:36,132 - [42402] - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-05-12 06:42:36,204 - [42402] - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-05-12 06:42:36,274 - [42402] - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-05-12 06:42:36,343 - [42402] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET PublishStatus = 'InProgress', InvoicePublishStartDateTime = '2026-05-12 02:42:36.343' WHERE CompanyId = 133 AND GenerateInvoiceHistoryId = 42402;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 06:42:38,284 - [42402] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-12 06:42:38,354 - [42402] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Billing.InvoiceAutoGeneration i WHERE TransactionAutoGenerationId in (636595, 636596);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 06:42:38,698 - [42402] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-05-12 06:42:38,776 - [42402] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Billing.TransactionAutoGeneration tag WHERE tag.TransactionAutoGenerationId in (636595, 636596);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 06:42:39,121 - [42402] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-05-12 06:42:39,195 - [42402] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 06:42:39,712 - [42402] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-05-12 06:42:40,663 - [42402] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-05-12 06:42:40,863 - [42402] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-05-12 06:42:40,942 - [42402] - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionId, ModifiedBy from Billing.[Transaction] t WHERE t.ModifiedBy in (12345678910, 12345678911);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 06:42:48,061 - [42402] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-05-12 06:42:48,173 - [42402] - src.utils.log - INFO - πŸ“ Executing: UPDATE Billing.[Transaction] SET ModifiedBy = NULL WHERE ModifiedBy IN (12345678910,12345678911); ... (Thread: ThreadPoolExecutor-4_0) - __SPLIT__ 2026-05-12 06:42:48,873 - [42402] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-12 06:42:48,940 - [42402] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 133 AND EnitityNumberType in ('Invoice'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 06:42:49,285 - [42402] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-12 06:42:49,347 - [42402] - src.utils.log - INFO - 2 Invoice Generated : [1477187, 1477188] - __SPLIT__ 2026-05-12 06:42:49,411 - [42402] - src.utils.log - INFO - πŸ“ Executing: UPDATE Common.GenerateNumberConfig SET NextNumber = '1477189' WHERE CompanyId = 133 AND EnitityNumberType in ('Invoice');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 06:42:49,750 - [42402] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-12 06:42:49,812 - [42402] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-12 06:42:49,871 - [42402] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 06:42:50,245 - [42402] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.Invoice - __SPLIT__ 2026-05-12 06:42:51,342 - [42402] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-05-12 06:42:51,404 - [42402] - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionId, InvoiceId FROM Billing.Invoice WHERE TransactionId in (3692492, 3692493);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 06:42:52,414 - [42402] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-05-12 06:42:52,485 - [42402] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Billing.InvoiceChargesAutoGeneration icag WHERE InvoiceAutoGenerationId in (444680, 444681);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 06:42:53,011 - [42402] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-05-12 06:42:53,075 - [42402] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Billing.InvoiceAutoGenerationAppliedDiscount iagad WHERE InvoiceAutoGenerationId in (444680, 444681);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 06:42:53,416 - [42402] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-12 06:42:53,484 - [42402] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-12 06:42:53,545 - [42402] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceCharges: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 06:42:53,909 - [42402] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.InvoiceCharges - __SPLIT__ 2026-05-12 06:42:55,203 - [42402] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.InvoiceCharges in 1 batches - __SPLIT__ 2026-05-12 06:42:55,264 - [42402] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.AccountDiscountSetup: - __SPLIT__ 2026-05-12 06:42:55,335 - [42402] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.DiscountApplied: - __SPLIT__ 2026-05-12 06:42:55,400 - [42402] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: delete FROM Billing.InvoiceAutoGenerationAppliedDiscount WHERE InvoiceAutoGenerationId in (444680, 444681) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 06:42:55,736 - [42402] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-12 06:42:55,806 - [42402] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: delete FROM Billing.InvoiceChargesAutoGeneration WHERE InvoiceAutoGenerationId in (444680, 444681) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 06:42:56,212 - [42402] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-12 06:42:56,279 - [42402] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: delete FROM Billing.InvoiceAutoGeneration WHERE InvoiceAutoGenerationId in (444680, 444681) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 06:42:56,672 - [42402] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-12 06:42:56,744 - [42402] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: delete FROM Billing.TransactionAutoGeneration WHERE TransactionAutoGenerationId in (636595, 636596) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 06:42:57,116 - [42402] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-12 06:42:57,190 - [42402] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-05-12 02:42:36.343' WHERE CompanyId = 133 AND GenerateInvoiceHistoryId = 42402;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 06:42:57,529 - [42402] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-12 06:42:57,602 - [42402] - src.utils.log - INFO - Sequential invoice publish completed successfully - Time took: 23.7 - __SPLIT__