2026-06-29 06:08:33,758 - 12452 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=12452 - __SPLIT__ 2026-06-29 06:08:34,062 - 12452 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 12452 - __SPLIT__ 2026-06-29 06:08:34,063 - 12452 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-06-29 06:08:34,063 - 12452 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-29 06:08:36,142 - 12452 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-29 06:08:36,142 - 12452 - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-06-29 06:08:36,142 - 12452 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 12452;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-29 06:08:36,439 - 12452 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-29 06:08:36,439 - 12452 - 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 = 12452), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 12452), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 12452 AND ss.FrequencyScheduleId IS NOT NULL AND ss.IsActive = 1 AND ss.IsDeleted = 0 AND ss.Status <> 'Canceled' AND ((ss.OrderType = gw.OrderType) OR gw.OrderType IS NULL);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-29 06:08:36,763 - 12452 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-29 06:08:36,763 - 12452 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 12452;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-29 06:08:37,062 - 12452 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-29 06:08:37,065 - 12452 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-06-29 06:08:37,066 - 12452 - 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-06-29 06:08:37,367 - 12452 - src.utils.log - INFO - βœ… Fetched 60 rows - __SPLIT__ 2026-06-29 06:08:37,368 - 12452 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-06-29 06:08:37,371 - 12452 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-06-29 06:08:37,372 - 12452 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 34164;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-29 06:08:37,672 - 12452 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-29 06:08:37,673 - 12452 - src.utils.log - INFO - πŸ” Fetching data: select ServiceDate, ServiceSetupId, IsInitial from serviceCore.WorkOrder wo inner join ServiceCore.WorkOrderStatus wos on wo.WoStatusId = wos.WoStatusId where ServiceDate >= '2026-06-29 00:00:00' and ServiceDate <= '2027-04-30 00:00:00' and ServiceSetupId = 34164 and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-29 06:08:37,974 - 12452 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-29 06:08:38,595 - 12452 - src.utils.log - INFO - Generating work orders for setup: 34164 - __SPLIT__ 2026-06-29 06:08:38,761 - 12452 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-06-29 06:08:38,767 - 12452 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=135 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-29 06:08:39,064 - 12452 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-29 06:08:39,065 - 12452 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-06-29 06:08:39,065 - 12452 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-06-29 06:08:39,066 - 12452 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34164 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-29 06:08:39,370 - 12452 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-29 06:08:39,371 - 12452 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34164 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-29 06:08:39,675 - 12452 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-29 06:08:39,675 - 12452 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34164 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-29 06:08:39,981 - 12452 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-29 06:08:39,982 - 12452 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34164 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-29 06:08:40,290 - 12452 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-29 06:08:40,290 - 12452 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34164 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-29 06:08:40,594 - 12452 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-29 06:08:40,595 - 12452 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34164 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-29 06:08:40,899 - 12452 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-29 06:08:40,899 - 12452 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34164 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-29 06:08:41,199 - 12452 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-29 06:08:41,200 - 12452 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34164 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-29 06:08:41,514 - 12452 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-29 06:08:41,514 - 12452 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-29 06:08:41,514 - 12452 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 20 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-29 06:08:41,864 - 12452 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 20) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-06-29 06:08:43,980 - 12452 - src.utils.log - INFO - βœ… All 20 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-06-29 06:08:43,981 - 12452 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 20 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-06-25 12:40:41.583' and ServiceSetupId = 34164... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-29 06:08:44,284 - 12452 - src.utils.log - INFO - βœ… Fetched 20 rows - __SPLIT__ 2026-06-29 06:08:44,284 - 12452 - src.utils.log - INFO - Id's of work order inserted to DB: [2731784 2731785 2731786 2731787 2731788 2731789 2731790 2731791 2731792 2731793 2731794 2731795 2731796 2731797 2731798 2731799 2731800 2731801 2731802 2731803] - __SPLIT__ 2026-06-29 06:08:44,285 - 12452 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 34164;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-29 06:08:44,581 - 12452 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-29 06:08:44,581 - 12452 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-06-29 06:08:44,582 - 12452 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId = 34164... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-29 06:08:44,878 - 12452 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-29 06:08:44,878 - 12452 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId = 34164... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-29 06:08:45,175 - 12452 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-29 06:08:45,183 - 12452 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId = 34164... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-29 06:08:45,481 - 12452 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-29 06:08:45,483 - 12452 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId = 34164... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-29 06:08:45,779 - 12452 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-29 06:08:45,780 - 12452 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId = 34164... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-29 06:08:46,077 - 12452 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-29 06:08:46,078 - 12452 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId = 34164;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-29 06:08:46,374 - 12452 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-29 06:08:46,375 - 12452 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId = 34164;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-29 06:08:46,671 - 12452 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-29 06:08:46,672 - 12452 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId = 34164;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-29 06:08:46,987 - 12452 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-29 06:08:46,987 - 12452 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId = 34164;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-29 06:08:47,286 - 12452 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-29 06:08:47,299 - 12452 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-06-29 06:08:47,299 - 12452 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-06-29 06:08:47,299 - 12452 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-06-29 06:08:47,299 - 12452 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.CommunicationPreferencesServiceReportNotification: - __SPLIT__ 2026-06-29 06:08:47,299 - 12452 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-06-29 06:08:47,299 - 12452 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SetupAutoGenerationSourceMapping: - __SPLIT__ 2026-06-29 06:08:47,299 - 12452 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-06-29 06:08:47,299 - 12452 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationAppliedDiscount: - __SPLIT__ 2026-06-29 06:08:47,299 - 12452 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-06-29 06:08:47,299 - 12452 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SubWorkOrderAutoGeneration: - __SPLIT__ 2026-06-29 06:08:47,300 - 12452 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-06-29 06:08:47,300 - 12452 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: - __SPLIT__ 2026-06-29 06:08:47,300 - 12452 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-06-29 06:08:47,300 - 12452 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: - __SPLIT__ 2026-06-29 06:08:47,300 - 12452 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-06-29 06:08:47,300 - 12452 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-29 06:08:47,300 - 12452 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (2731784, 2731785, 2731786, 2731787, 2731788, 2731789, 2731790, 2731791, 2731792, 2731793, 2731794, 2731795, 2731796, 2731797, 2731798, 2731799, 2731800, 2731801, 2731802, 2731803) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-29 06:08:47,598 - 12452 - src.utils.log - INFO - βœ… Fetched 20 rows - __SPLIT__ 2026-06-29 06:08:47,599 - 12452 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationCrews: 40 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-29 06:08:47,917 - 12452 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 40) into ServiceCore.WorkOrderAutoGenerationCrews - __SPLIT__ 2026-06-29 06:08:48,981 - 12452 - src.utils.log - INFO - βœ… All 40 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationCrews in 1 batches - __SPLIT__ 2026-06-29 06:08:48,982 - 12452 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-06-29 06:08:48,982 - 12452 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationServices: - __SPLIT__ 2026-06-29 06:08:48,982 - 12452 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-06-29 06:08:48,982 - 12452 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-29 06:08:48,982 - 12452 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (2731784, 2731785, 2731786, 2731787, 2731788, 2731789, 2731790, 2731791, 2731792, 2731793, 2731794, 2731795, 2731796, 2731797, 2731798, 2731799, 2731800, 2731801, 2731802, 2731803) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-29 06:08:49,277 - 12452 - src.utils.log - INFO - βœ… Fetched 20 rows - __SPLIT__ 2026-06-29 06:08:49,278 - 12452 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 20 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-29 06:08:49,598 - 12452 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 20) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-06-29 06:08:50,664 - 12452 - src.utils.log - INFO - βœ… All 20 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-06-29 06:08:50,664 - 12452 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-06-29 06:08:50,664 - 12452 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 12452;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-29 06:08:50,960 - 12452 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-29 06:08:50,960 - 12452 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-06-29 06:08:50,960 - 12452 - src.utils.log - INFO - Time took to perform operation: 16.9 - __SPLIT__ 2026-06-29 16:04:06,693 - [124647] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[3680758] user_id=43135 company_id=133 project_id=[124647] publish_all=False - __SPLIT__ 2026-06-29 16:04:06,694 - [124647] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[3680758] user_id=43135 company_id=133 project_id=[124647] publish_all=False - __SPLIT__ 2026-06-29 16:04:06,694 - [124647] - src.utils.log - INFO - Sequential Work order publish in progress for GenerateWorkOrderHistoryId: [124647] - __SPLIT__ 2026-06-29 16:04:06,695 - [124647] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-06-29 16:04:06,695 - [124647] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-29 16:04:08,773 - [124647] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-29 16:04:08,774 - [124647] - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-06-29 16:04:08,774 - [124647] - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-06-29 16:04:08,775 - [124647] - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-06-29 16:04:08,775 - [124647] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'InProgress' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124647;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-29 16:04:10,598 - [124647] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-29 16:04:10,599 - [124647] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId = 3680758... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-29 16:04:10,863 - [124647] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-29 16:04:10,864 - [124647] - src.utils.log - INFO - Inside get_work_order_table - __SPLIT__ 2026-06-29 16:04:10,864 - [124647] - 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 = 150565 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-29 16:04:11,139 - [124647] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-29 16:04:11,139 - [124647] - 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 = 150565 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-29 16:04:11,410 - [124647] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-29 16:04:11,410 - [124647] - 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 = 150565 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-29 16:04:11,685 - [124647] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-29 16:04:11,689 - [124647] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder,BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-29 16:04:11,949 - [124647] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-29 16:04:11,949 - [124647] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 133 AND EnitityNumberType in ('WorkOrder','Invoice'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-29 16:04:12,209 - [124647] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-29 16:04:12,209 - [124647] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder, BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-29 16:04:12,470 - [124647] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-29 16:04:12,471 - [124647] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 1 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 133 AND EnitityNumberType = 'WorkOrder'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-29 16:04:12,736 - [124647] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-29 16:04:12,737 - [124647] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 1 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 133 AND EnitityNumberType = 'Invoice'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-29 16:04:13,000 - [124647] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-29 16:04:13,005 - [124647] - 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 = 150565... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-29 16:04:13,274 - [124647] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-29 16:04:13,277 - [124647] - src.utils.log - INFO - πŸ” Fetching data: SELECT x.CompanyId FROM CRM.CompanyMaster x WHERE CompanyKey = 'abcdallas';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-29 16:04:13,537 - [124647] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-29 16:04:13,538 - [124647] - src.utils.log - INFO - πŸ” Fetching data: SELECT CollectionStatus,IsHold,AccountNo FROM CRM.Account a WHERE a.AccountNo = '14943' and a.CompanyId = 121;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-29 16:04:13,798 - [124647] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-29 16:04:13,801 - [124647] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderNo FROM ServiceCore.WorkOrder WHERE WorkOrderNo = '1427077' AND CompanyId = 133 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-29 16:04:14,064 - [124647] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-29 16:04:14,064 - [124647] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrder (skip triggers): 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-29 16:04:14,491 - [124647] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrder (triggers skipped) - __SPLIT__ 2026-06-29 16:04:15,441 - [124647] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrder in 1 batches (triggers skipped) - __SPLIT__ 2026-06-29 16:04:15,571 - [124647] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-06-29 16:04:15,573 - [124647] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkorderId, WorkOrderNo FROM ServiceCore.WorkOrder wo WHERE wo.WorkOrderNo = '1427077' AND wo.AccountNumber = '14943' AND wo.CompanyId = 133 ... (Thread: ThreadPoolExecutor-6_0) - __SPLIT__ 2026-06-29 16:04:15,843 - [124647] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-29 16:04:15,844 - [124647] - src.utils.log - INFO - Sequential fetching temp table records - __SPLIT__ 2026-06-29 16:04:15,844 - [124647] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationServices woag WHERE woag.WorkOrderAutoGenerationId = 3680758... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-29 16:04:16,157 - [124647] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-29 16:04:16,158 - [124647] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SubWorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId = 3680758... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-29 16:04:16,426 - [124647] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-29 16:04:16,426 - [124647] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationCrews woag WHERE woag.WorkOrderAutoGenerationId = 3680758... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-29 16:04:16,713 - [124647] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-29 16:04:16,713 - [124647] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationSalesPersonCommission woag WHERE woag.WorkOrderAutoGenerationId = 3680758... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-29 16:04:16,975 - [124647] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-29 16:04:16,976 - [124647] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupAutoGenerationSourceMapping woag WHERE woag.WorkOrderAutoGenerationId = 3680758... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-29 16:04:17,238 - [124647] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-29 16:04:17,238 - [124647] - 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 = 3680758... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-29 16:04:17,528 - [124647] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-29 16:04:17,528 - [124647] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from CRM.LeadNote woag WHERE woag.RefId = 3680758 and woag.RefType = 'TempWorkorder';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-29 16:04:17,791 - [124647] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-29 16:04:17,791 - [124647] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment woagca WHERE woagca.WorkOrderAutoGenerationId = 3680758;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-29 16:04:18,052 - [124647] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-29 16:04:18,055 - [124647] - src.utils.log - INFO - Updating temp tables - __SPLIT__ 2026-06-29 16:04:18,067 - [124647] - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyKey FROM Common.CompanyMaster cm WHERE CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-29 16:04:18,327 - [124647] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-29 16:04:18,327 - [124647] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 133 AND EnitityNumberType in ('SubWorkOrder'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-29 16:04:18,587 - [124647] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-29 16:04:18,591 - [124647] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-29 16:04:18,591 - [124647] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishHistory: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-29 16:04:18,876 - [124647] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderAutoGenerationPublishHistory - __SPLIT__ 2026-06-29 16:04:19,810 - [124647] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishHistory in 1 batches - __SPLIT__ 2026-06-29 16:04:19,811 - [124647] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationPublishHistoryId, WorkOrderNo, ServiceSetupId FROM ServiceCore.WorkOrderAutoGenerationPublishHistory WHERE ServiceSetupId = 150565 AND WorkOrderNo = '7545433' AND GenerateWorkOrderHistoryId = 124647; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-29 16:04:20,394 - [124647] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-29 16:04:20,400 - [124647] - src.utils.log - INFO - Sequential Insertion in work order tables begin - __SPLIT__ 2026-06-29 16:04:20,400 - [124647] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-29 16:04:20,400 - [124647] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderServices: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-29 16:04:20,668 - [124647] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderServices - __SPLIT__ 2026-06-29 16:04:21,593 - [124647] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderServices in 1 batches - __SPLIT__ 2026-06-29 16:04:21,593 - [124647] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderAppliedDiscount: - __SPLIT__ 2026-06-29 16:04:21,593 - [124647] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderSalesPersonCommission: - __SPLIT__ 2026-06-29 16:04:21,593 - [124647] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderCommissionAdjustment: - __SPLIT__ 2026-06-29 16:04:21,593 - [124647] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-29 16:04:21,594 - [124647] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderCrew: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-29 16:04:21,860 - [124647] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderCrew - __SPLIT__ 2026-06-29 16:04:22,781 - [124647] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderCrew in 1 batches - __SPLIT__ 2026-06-29 16:04:22,781 - [124647] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkorderSourceMapping: - __SPLIT__ 2026-06-29 16:04:22,781 - [124647] - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-06-29 16:04:22,782 - [124647] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-29 16:04:22,782 - [124647] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishServices: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-29 16:04:23,051 - [124647] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderAutoGenerationPublishServices - __SPLIT__ 2026-06-29 16:04:23,973 - [124647] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishServices in 1 batches - __SPLIT__ 2026-06-29 16:04:23,973 - [124647] - 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 = 150565... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-29 16:04:24,234 - [124647] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-29 16:04:24,240 - [124647] - src.utils.log - INFO - Size of Transaction: 1 - __SPLIT__ 2026-06-29 16:04:24,241 - [124647] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-29 16:04:24,638 - [124647] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-06-29 16:04:25,557 - [124647] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-06-29 16:04:25,687 - [124647] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-06-29 16:04:25,688 - [124647] - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionId, ModifiedBy, TransactionDate as InvoiceDate from Billing.[Transaction] t WHERE t.ModifiedBy = 12345678910 and t.CompanyId = 133 AND t.TransactionType ='Invoice' AND t.CreatedDate = '2026-06-29 12:04:24.236';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-29 16:04:26,094 - [124647] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-29 16:04:26,097 - [124647] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150565;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-29 16:04:26,358 - [124647] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-29 16:04:26,366 - [124647] - src.utils.log - INFO - πŸ“ Executing: UPDATE Billing.[Transaction] SET ModifiedBy = NULL WHERE ModifiedBy = 12345678910 AND CreatedDate = '2026-06-29 12:04:24.236'; ... (Thread: ThreadPoolExecutor-7_0) - __SPLIT__ 2026-06-29 16:04:27,460 - [124647] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-29 16:04:27,465 - [124647] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-29 16:04:27,466 - [124647] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-29 16:04:27,734 - [124647] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into Billing.Invoice - __SPLIT__ 2026-06-29 16:04:28,657 - [124647] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-06-29 16:04:28,658 - [124647] - src.utils.log - INFO - πŸ” Fetching data: SELECT InvoiceId, WorkOrderNo FROM Billing.Invoice i WHERE i.WorkOrderNo = '1427077'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-29 16:04:29,575 - [124647] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-29 16:04:29,584 - [124647] - 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 = 150565 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-29 16:04:29,849 - [124647] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-29 16:04:29,850 - [124647] - 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 = 150565 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-29 16:04:30,113 - [124647] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-29 16:04:30,114 - [124647] - 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 = 150565 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-29 16:04:30,378 - [124647] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-29 16:04:30,378 - [124647] - 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 = 150565 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-29 16:04:30,642 - [124647] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-29 16:04:30,654 - [124647] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150565;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-29 16:04:30,914 - [124647] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-29 16:04:30,920 - [124647] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId, AppliedDiscountAmt as AppliedDiscountAmount,IsActive ,ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 150565;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-29 16:04:31,183 - [124647] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-29 16:04:31,186 - [124647] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId,IsActive,DiscountAmount, IsDiscountPercent,DiscountPercent,DiscountDescription , ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 150565;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-29 16:04:31,448 - [124647] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-29 16:04:31,449 - [124647] - src.utils.log - INFO - Sequential Insertion in invoice tables begin - __SPLIT__ 2026-06-29 16:04:31,449 - [124647] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.AccountDiscountSetup: - __SPLIT__ 2026-06-29 16:04:31,449 - [124647] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-29 16:04:31,449 - [124647] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceCharges: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-29 16:04:31,718 - [124647] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into Billing.InvoiceCharges - __SPLIT__ 2026-06-29 16:04:32,637 - [124647] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into Billing.InvoiceCharges in 1 batches - __SPLIT__ 2026-06-29 16:04:32,638 - [124647] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.DiscountApplied: - __SPLIT__ 2026-06-29 16:04:32,638 - [124647] - src.utils.log - INFO - Invoice Publish Done - __SPLIT__ 2026-06-29 16:04:32,638 - [124647] - src.utils.log - INFO - Updating Next GenerationDate - __SPLIT__ 2026-06-29 16:04:32,638 - [124647] - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, MAX(NextWorkOrderGenerationDate) AS MaxNextWorkOrderGeneration FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 124647 GROUP BY ServiceSetupId; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-29 16:04:32,905 - [124647] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-29 16:04:32,911 - [124647] - src.utils.log - INFO - πŸ”„ Updating next gen date sequentially: inside update_next_workorder_generation - __SPLIT__ 2026-06-29 16:04:33,042 - [124647] - src.utils.log - INFO - πŸ›  Creating temp table #tbl_af44ddc552 - __SPLIT__ 2026-06-29 16:04:33,305 - [124647] - src.utils.log - INFO - πŸ“Œ Bulk inserting 1 rows into #tbl_af44ddc552 - __SPLIT__ 2026-06-29 16:04:33,565 - [124647] - src.utils.log - INFO - πŸ” Running MERGE update to apply changes - __SPLIT__ 2026-06-29 16:04:33,706 - [124647] - src.utils.log - INFO - βœ” SQL reported affected rows: 1 - __SPLIT__ 2026-06-29 16:04:33,845 - [124647] - src.utils.log - INFO - πŸ” Verified successfully updated 1 rows via #tbl_af44ddc552 - __SPLIT__ 2026-06-29 16:04:33,845 - [124647] - src.utils.log - INFO - πŸŽ‰ Successfully updated NextGenerationDate using temp table #tbl_af44ddc552 - __SPLIT__ 2026-06-29 16:04:33,845 - [124647] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 124647 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-29 16:04:34,105 - [124647] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-29 16:04:34,106 - [124647] - src.utils.log - INFO - Sequential deletion from temp tables begin - __SPLIT__ 2026-06-29 16:04:34,106 - [124647] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId = 3680758 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-29 16:04:34,523 - [124647] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-29 16:04:34,523 - [124647] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId = 3680758 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-29 16:04:34,885 - [124647] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-29 16:04:34,885 - [124647] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId = 3680758 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-29 16:04:35,147 - [124647] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-29 16:04:35,147 - [124647] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId = 3680758 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-29 16:04:35,498 - [124647] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-29 16:04:35,498 - [124647] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId = 3680758 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-29 16:04:35,765 - [124647] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-29 16:04:35,766 - [124647] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 3680758 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-29 16:04:36,030 - [124647] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-29 16:04:36,030 - [124647] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId = 3680758 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-29 16:04:36,291 - [124647] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-29 16:04:36,291 - [124647] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 3680758 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-29 16:04:36,611 - [124647] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-29 16:04:36,612 - [124647] - src.utils.log - INFO - Work order published ids: (3680758,) - __SPLIT__ 2026-06-29 16:04:36,612 - [124647] - src.utils.log - INFO - Time took to perform operation in publishing [124647]: 29.92 - __SPLIT__ 2026-06-29 16:04:36,612 - [124647] - src.utils.log - INFO - Publish Completed for GenerateWorkOrderHistoryId: [124647] - __SPLIT__ 2026-06-29 16:04:36,612 - [124647] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-06-29 12:04:36.612' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124647;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-29 16:04:36,874 - [124647] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-30 11:04:49,407 - [13613] - src.utils.log - INFO - ParallelProcessing=False temp_invoice=[799445, 799446, 799447, 799448] user_id=122885 company_id=135 project_id=[13613] publish_all=False - __SPLIT__ 2026-06-30 11:04:49,407 - [13613] - src.utils.log - INFO - Invoice Published Successfully - __SPLIT__ 2026-06-30 11:04:49,408 - [13613] - src.utils.log - INFO - Sequential invoice publish in progress - __SPLIT__ 2026-06-30 11:04:49,409 - [13613] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-06-30 11:04:49,409 - [13613] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-30 11:04:51,645 - [13613] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-30 11:04:51,646 - [13613] - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-06-30 11:04:51,646 - [13613] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET PublishStatus = 'InProgress', InvoicePublishStartDateTime = '2026-06-30 07:04:51.646' WHERE CompanyId = 135 AND GenerateInvoiceHistoryId = 13613;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-30 11:04:53,006 - [13613] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-30 11:04:53,007 - [13613] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Billing.InvoiceAutoGeneration i WHERE TransactionAutoGenerationId in (799445, 799446, 799447, 799448);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-30 11:04:53,329 - [13613] - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-06-30 11:04:53,330 - [13613] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Billing.TransactionAutoGeneration tag WHERE tag.TransactionAutoGenerationId in (799445, 799446, 799447, 799448);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-30 11:04:53,652 - [13613] - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-06-30 11:04:53,654 - [13613] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 4 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-30 11:04:54,154 - [13613] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 4) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-06-30 11:04:55,283 - [13613] - src.utils.log - INFO - βœ… All 4 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-06-30 11:04:55,444 - [13613] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-06-30 11:04:55,444 - [13613] - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionId, ModifiedBy from Billing.[Transaction] t WHERE t.ModifiedBy in (12345678910, 12345678911, 12345678912, 12345678913);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-30 11:04:55,851 - [13613] - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-06-30 11:04:55,854 - [13613] - src.utils.log - INFO - πŸ“ Executing: UPDATE Billing.[Transaction] SET ModifiedBy = NULL WHERE ModifiedBy IN (12345678910,12345678911,12345678912,12345678913); ... (Thread: ThreadPoolExecutor-8_0) - __SPLIT__ 2026-06-30 11:04:56,371 - [13613] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-30 11:04:56,374 - [13613] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 135 AND EnitityNumberType in ('Invoice'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-30 11:04:56,696 - [13613] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-30 11:04:56,697 - [13613] - src.utils.log - INFO - 4 Invoice Generated : [168770, 168771, 168772, 168773] - __SPLIT__ 2026-06-30 11:04:56,697 - [13613] - src.utils.log - INFO - πŸ“ Executing: UPDATE Common.GenerateNumberConfig SET NextNumber = '168774' WHERE CompanyId = 135 AND EnitityNumberType in ('Invoice');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-30 11:04:57,027 - [13613] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-30 11:04:57,029 - [13613] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-30 11:04:57,029 - [13613] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 4 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-30 11:04:57,374 - [13613] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 4) into Billing.Invoice - __SPLIT__ 2026-06-30 11:04:58,511 - [13613] - src.utils.log - INFO - βœ… All 4 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-06-30 11:04:58,512 - [13613] - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionId, InvoiceId FROM Billing.Invoice WHERE TransactionId in (419667, 419668, 419669, 419670);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-30 11:04:58,832 - [13613] - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-06-30 11:04:58,835 - [13613] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Billing.InvoiceChargesAutoGeneration icag WHERE InvoiceAutoGenerationId in (854346, 854347, 854348, 854349);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-30 11:04:59,601 - [13613] - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-06-30 11:04:59,602 - [13613] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Billing.InvoiceAutoGenerationAppliedDiscount iagad WHERE InvoiceAutoGenerationId in (854346, 854347, 854348, 854349);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-30 11:05:00,009 - [13613] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-30 11:05:00,033 - [13613] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-30 11:05:00,034 - [13613] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceCharges: 4 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-30 11:05:00,377 - [13613] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 4) into Billing.InvoiceCharges - __SPLIT__ 2026-06-30 11:05:01,510 - [13613] - src.utils.log - INFO - βœ… All 4 rows inserted successfully into Billing.InvoiceCharges in 1 batches - __SPLIT__ 2026-06-30 11:05:01,510 - [13613] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.AccountDiscountSetup: - __SPLIT__ 2026-06-30 11:05:01,510 - [13613] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.DiscountApplied: - __SPLIT__ 2026-06-30 11:05:01,510 - [13613] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: delete FROM Billing.InvoiceAutoGenerationAppliedDiscount WHERE InvoiceAutoGenerationId in (854346, 854347, 854348, 854349) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-30 11:05:01,830 - [13613] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-30 11:05:01,830 - [13613] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: delete FROM Billing.InvoiceChargesAutoGeneration WHERE InvoiceAutoGenerationId in (854346, 854347, 854348, 854349) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-30 11:05:02,152 - [13613] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-30 11:05:02,152 - [13613] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: delete FROM Billing.InvoiceAutoGeneration WHERE InvoiceAutoGenerationId in (854346, 854347, 854348, 854349) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-30 11:05:02,482 - [13613] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-30 11:05:02,482 - [13613] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: delete FROM Billing.TransactionAutoGeneration WHERE TransactionAutoGenerationId in (799445, 799446, 799447, 799448) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-30 11:05:02,808 - [13613] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-30 11:05:02,808 - [13613] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-06-30 07:04:51.646' WHERE CompanyId = 135 AND GenerateInvoiceHistoryId = 13613;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-30 11:05:03,128 - [13613] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-30 11:05:03,128 - [13613] - src.utils.log - INFO - Sequential invoice publish completed successfully - Time took: 13.72 - __SPLIT__ 2026-06-30 11:43:40,164 - 124661 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=124661 - __SPLIT__ 2026-06-30 11:43:40,165 - 124661 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 124661 - __SPLIT__ 2026-06-30 11:43:40,166 - 124661 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-06-30 11:43:40,166 - 124661 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-30 11:43:42,235 - 124661 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-30 11:43:42,236 - 124661 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-06-30 11:43:42,236 - 124661 - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-06-30 11:43:42,237 - 124661 - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-06-30 11:43:42,237 - 124661 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 124661;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-30 11:43:44,099 - 124661 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-30 11:43:44,099 - 124661 - 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 = 124661), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 124661), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 124661 AND ss.FrequencyScheduleId IS NOT NULL AND ss.IsActive = 1 AND ss.IsDeleted = 0 AND ss.Status <> 'Canceled' AND ((ss.OrderType = gw.OrderType) OR gw.OrderType IS NULL);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-30 11:43:44,828 - 124661 - src.utils.log - INFO - βœ… Fetched 105 rows - __SPLIT__ 2026-06-30 11:43:44,828 - 124661 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 124661;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-30 11:43:45,095 - 124661 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-30 11:43:45,099 - 124661 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-06-30 11:43:45,100 - 124661 - 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 (14466, 14725, 14853, 13962, 14475, 13965, 13971, 14615, 14616, 14489, 14617, 14626, 14632, 14633, 14637, 14509, 14640, 14641, 14513, 14643, 14644, 14775, 14650, 14653, 14654, 14655, 14657, 14532, 14663, 14795, 14667, 14668, 14671, 14676, 14175, 14177, 14562, 14819, 14693, 14571, 14447, 14578, 14845)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-30 11:43:45,551 - 124661 - src.utils.log - INFO - βœ… Fetched 956 rows - __SPLIT__ 2026-06-30 11:43:45,551 - 124661 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-06-30 11:43:45,555 - 124661 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-06-30 11:43:45,555 - 124661 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId in (150529, 150532, 150533, 150534, 150031, 150032, 150544, 150546, 150551, 150552, 150553, 36892, 150566, 150567, 150568, 150569, 150571, 150574, 53806, 150580, 39481, 129618, 22612, 58460, 58462, 34910, 129633, 58472, 51356, 150173, 119474, 119476, 119480, 150203, 32958, 150207, 150210, 58567, 150215, 58571, 150222, 48334, 55510, 150252, 46320, 150264, 150269, 150289, 150292, 58649, 149787, 150309, 150312, 150313, 150314, 150321, 150322, 150328, 150329, 150334, 150352, 150358, 150363, 46434, 47462, 149870, 149874, 150388, 139663, 150419, 69019, 150436, 150438, 150439, 150441, 150442, 150443, 150444, 150448, 150449, 150451, 150452, 150453, 150454, 48573, 150462, 150464, 150470, 150471, 150489, 150496, 150499, 150500, 150503, 150504, 150508, 150510, 150511, 150514, 150003, 150518, 150519, 150521, 44538, 150525);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-30 11:43:45,835 - 124661 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-30 11:43:45,836 - 124661 - src.utils.log - INFO - πŸ” Fetching data: select ServiceDate, ServiceSetupId,IsInitial from serviceCore.WorkOrder wo inner join ServiceCore.WorkOrderStatus wos on wo.WoStatusId = wos.WoStatusId where ServiceDate >= '2026-06-30 00:00:00' and ServiceDate <= '2026-07-31 00:00:00' and ServiceSetupId in (150529, 150532, 150533, 150534, 150031, 150032, 150544, 150546, 150551, 150552, 150553, 36892, 150566, 150567, 150568, 150569, 150571, 150574, 53806, 150580, 39481, 129618, 22612, 58460, 58462, 34910, 129633, 58472, 51356, 150173, 119474, 119476, 119480, 150203, 32958, 150207, 150210, 58567, 150215, 58571, 150222, 48334, 55510, 150252, 46320, 150264, 150269, 150289, 150292, 58649, 149787, 150309, 150312, 150313, 150314, 150321, 150322, 150328, 150329, 150334, 150352, 150358, 150363, 46434, 47462, 149870, 149874, 150388, 139663, 150419, 69019, 150436, 150438, 150439, 150441, 150442, 150443, 150444, 150448, 150449, 150451, 150452, 150453, 150454, 48573, 150462, 150464, 150470, 150471, 150489, 150496, 150499, 150500, 150503, 150504, 150508, 150510, 150511, 150514, 150003, 150518, 150519, 150521, 44538, 150525) and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-30 11:43:46,139 - 124661 - src.utils.log - INFO - βœ… Fetched 109 rows - __SPLIT__ 2026-06-30 11:43:46,955 - 124661 - src.utils.log - INFO - Generating work orders for setup: 150334 - __SPLIT__ 2026-06-30 11:43:46,957 - 124661 - src.utils.log - INFO - Error processing schedule ID 14626: cannot access local variable 'sorted_service_dates' where it is not associated with a value - __SPLIT__ 2026-06-30 11:43:46,957 - 124661 - src.utils.log - INFO - Generating work orders for setup: 150419 - __SPLIT__ 2026-06-30 11:43:47,024 - 124661 - src.utils.log - INFO - Generating work orders for setup: 149874 - __SPLIT__ 2026-06-30 11:43:47,085 - 124661 - src.utils.log - INFO - Generating work orders for setup: 150533 - __SPLIT__ 2026-06-30 11:43:47,095 - 124661 - src.utils.log - INFO - Generating work orders for setup: 150534 - __SPLIT__ 2026-06-30 11:43:47,105 - 124661 - src.utils.log - INFO - Generating work orders for setup: 150352 - __SPLIT__ 2026-06-30 11:43:47,115 - 124661 - src.utils.log - INFO - Generating work orders for setup: 150363 - __SPLIT__ 2026-06-30 11:43:47,134 - 124661 - src.utils.log - INFO - Generating work orders for setup: 150442 - __SPLIT__ 2026-06-30 11:43:47,144 - 124661 - src.utils.log - INFO - Generating work orders for setup: 149787 - __SPLIT__ 2026-06-30 11:43:47,154 - 124661 - src.utils.log - INFO - Generating work orders for setup: 150203 - __SPLIT__ 2026-06-30 11:43:47,164 - 124661 - src.utils.log - INFO - Generating work orders for setup: 150210 - __SPLIT__ 2026-06-30 11:43:47,172 - 124661 - src.utils.log - INFO - Generating work orders for setup: 150215 - __SPLIT__ 2026-06-30 11:43:47,182 - 124661 - src.utils.log - INFO - Generating work orders for setup: 150222 - __SPLIT__ 2026-06-30 11:43:47,192 - 124661 - src.utils.log - INFO - Generating work orders for setup: 150292 - __SPLIT__ 2026-06-30 11:43:47,202 - 124661 - src.utils.log - INFO - Generating work orders for setup: 150462 - __SPLIT__ 2026-06-30 11:43:47,219 - 124661 - src.utils.log - INFO - Generating work orders for setup: 150329 - __SPLIT__ 2026-06-30 11:43:47,228 - 124661 - src.utils.log - INFO - Generating work orders for setup: 150309 - __SPLIT__ 2026-06-30 11:43:47,238 - 124661 - src.utils.log - INFO - Generating work orders for setup: 150312 - __SPLIT__ 2026-06-30 11:43:47,247 - 124661 - src.utils.log - INFO - Generating work orders for setup: 150313 - __SPLIT__ 2026-06-30 11:43:47,257 - 124661 - src.utils.log - INFO - Generating work orders for setup: 150314 - __SPLIT__ 2026-06-30 11:43:47,267 - 124661 - src.utils.log - INFO - Generating work orders for setup: 150321 - __SPLIT__ 2026-06-30 11:43:47,490 - 124661 - src.utils.log - INFO - Generating work orders for setup: 150322 - __SPLIT__ 2026-06-30 11:43:47,809 - 124661 - src.utils.log - INFO - Generating work orders for setup: 150328 - __SPLIT__ 2026-06-30 11:43:47,820 - 124661 - src.utils.log - INFO - Generating work orders for setup: 150358 - __SPLIT__ 2026-06-30 11:43:47,830 - 124661 - src.utils.log - INFO - Generating work orders for setup: 150388 - __SPLIT__ 2026-06-30 11:43:47,840 - 124661 - src.utils.log - INFO - Generating work orders for setup: 150436 - __SPLIT__ 2026-06-30 11:43:47,859 - 124661 - src.utils.log - INFO - Generating work orders for setup: 150438 - __SPLIT__ 2026-06-30 11:43:47,877 - 124661 - src.utils.log - INFO - Generating work orders for setup: 150439 - __SPLIT__ 2026-06-30 11:43:47,896 - 124661 - src.utils.log - INFO - Generating work orders for setup: 150441 - __SPLIT__ 2026-06-30 11:43:47,915 - 124661 - src.utils.log - INFO - Generating work orders for setup: 150443 - __SPLIT__ 2026-06-30 11:43:47,925 - 124661 - src.utils.log - INFO - Generating work orders for setup: 150444 - __SPLIT__ 2026-06-30 11:43:47,937 - 124661 - src.utils.log - INFO - Generating work orders for setup: 150448 - __SPLIT__ 2026-06-30 11:43:47,947 - 124661 - src.utils.log - INFO - Generating work orders for setup: 150449 - __SPLIT__ 2026-06-30 11:43:47,958 - 124661 - src.utils.log - INFO - Generating work orders for setup: 150451 - __SPLIT__ 2026-06-30 11:43:47,968 - 124661 - src.utils.log - INFO - Generating work orders for setup: 150452 - __SPLIT__ 2026-06-30 11:43:47,979 - 124661 - src.utils.log - INFO - Generating work orders for setup: 150453 - __SPLIT__ 2026-06-30 11:43:47,990 - 124661 - src.utils.log - INFO - Generating work orders for setup: 150454 - __SPLIT__ 2026-06-30 11:43:48,000 - 124661 - src.utils.log - INFO - Generating work orders for setup: 150464 - __SPLIT__ 2026-06-30 11:43:48,023 - 124661 - src.utils.log - INFO - Generating work orders for setup: 150470 - __SPLIT__ 2026-06-30 11:43:48,034 - 124661 - src.utils.log - INFO - Generating work orders for setup: 150499 - __SPLIT__ 2026-06-30 11:43:48,045 - 124661 - src.utils.log - INFO - Generating work orders for setup: 150500 - __SPLIT__ 2026-06-30 11:43:48,056 - 124661 - src.utils.log - INFO - Generating work orders for setup: 150489 - __SPLIT__ 2026-06-30 11:43:48,066 - 124661 - src.utils.log - INFO - Generating work orders for setup: 150496 - __SPLIT__ 2026-06-30 11:43:48,086 - 124661 - src.utils.log - INFO - Generating work orders for setup: 150503 - __SPLIT__ 2026-06-30 11:43:48,105 - 124661 - src.utils.log - INFO - Generating work orders for setup: 150504 - __SPLIT__ 2026-06-30 11:43:48,125 - 124661 - src.utils.log - INFO - Generating work orders for setup: 150508 - __SPLIT__ 2026-06-30 11:43:48,136 - 124661 - src.utils.log - INFO - Generating work orders for setup: 150510 - __SPLIT__ 2026-06-30 11:43:48,156 - 124661 - src.utils.log - INFO - Generating work orders for setup: 150511 - __SPLIT__ 2026-06-30 11:43:48,168 - 124661 - src.utils.log - INFO - Generating work orders for setup: 150514 - __SPLIT__ 2026-06-30 11:43:48,179 - 124661 - src.utils.log - INFO - Generating work orders for setup: 150519 - __SPLIT__ 2026-06-30 11:43:48,189 - 124661 - src.utils.log - INFO - Generating work orders for setup: 150553 - __SPLIT__ 2026-06-30 11:43:48,200 - 124661 - src.utils.log - INFO - Generating work orders for setup: 150521 - __SPLIT__ 2026-06-30 11:43:48,220 - 124661 - src.utils.log - INFO - Generating work orders for setup: 150525 - __SPLIT__ 2026-06-30 11:43:48,239 - 124661 - src.utils.log - INFO - Generating work orders for setup: 150529 - __SPLIT__ 2026-06-30 11:43:48,249 - 124661 - src.utils.log - INFO - Generating work orders for setup: 150532 - __SPLIT__ 2026-06-30 11:43:48,260 - 124661 - src.utils.log - INFO - Generating work orders for setup: 150544 - __SPLIT__ 2026-06-30 11:43:48,281 - 124661 - src.utils.log - INFO - Generating work orders for setup: 150546 - __SPLIT__ 2026-06-30 11:43:48,300 - 124661 - src.utils.log - INFO - Generating work orders for setup: 150551 - __SPLIT__ 2026-06-30 11:43:48,311 - 124661 - src.utils.log - INFO - Generating work orders for setup: 150552 - __SPLIT__ 2026-06-30 11:43:48,322 - 124661 - src.utils.log - INFO - Generating work orders for setup: 150568 - __SPLIT__ 2026-06-30 11:43:48,589 - 124661 - src.utils.log - INFO - Generating work orders for setup: 150569 - __SPLIT__ 2026-06-30 11:43:48,662 - 124661 - src.utils.log - INFO - Generating work orders for setup: 150566 - __SPLIT__ 2026-06-30 11:43:48,674 - 124661 - src.utils.log - INFO - Generating work orders for setup: 150567 - __SPLIT__ 2026-06-30 11:43:48,685 - 124661 - src.utils.log - INFO - Generating work orders for setup: 150571 - __SPLIT__ 2026-06-30 11:43:48,698 - 124661 - src.utils.log - INFO - Generating work orders for setup: 150574 - __SPLIT__ 2026-06-30 11:43:48,719 - 124661 - src.utils.log - INFO - Generating work orders for setup: 150580 - __SPLIT__ 2026-06-30 11:43:48,739 - 124661 - src.utils.log - INFO - Generating work orders for setup: 150518 - __SPLIT__ 2026-06-30 11:43:48,751 - 124661 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId in (11428.0, 1127.0, 1130.0, 1131.0, 1132.0, 1133.0);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-30 11:43:49,018 - 124661 - src.utils.log - INFO - βœ… Fetched 6 rows - __SPLIT__ 2026-06-30 11:43:49,028 - 124661 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId in (11426.0, 11427.0, 11428.0, 11429.0, 1127.0, 1129.0, 1130.0, 1131.0, 1132.0, 11436.0, 11437.0, 11435.0, -1.0);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-30 11:43:49,297 - 124661 - src.utils.log - INFO - βœ… Fetched 12 rows - __SPLIT__ 2026-06-30 11:43:49,369 - 124661 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-06-30 11:43:49,389 - 124661 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=133 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-30 11:43:49,654 - 124661 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-30 11:43:49,657 - 124661 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-06-30 11:43:49,657 - 124661 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-06-30 11:43:49,657 - 124661 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (150529, 150532, 150533, 150534, 150031, 150032, 150544, 150546, 150551, 150552, 150553, 36892, 150566, 150567, 150568, 150569, 150571, 150574, 53806, 150580, 39481, 129618, 22612, 58460, 58462, 34910, 129633, 58472, 51356, 150173, 119474, 119476, 119480, 150203, 32958, 150207, 150210, 58567, 150215, 58571, 150222, 48334, 55510, 150252, 46320, 150264, 150269, 150289, 150292, 58649, 149787, 150309, 150312, 150313, 150314, 150321, 150322, 150328, 150329, 150334, 150352, 150358, 150363, 46434, 47462, 149870, 149874, 150388, 139663, 150419, 69019, 150436, 150438, 150439, 150441, 150442, 150443, 150444, 150448, 150449, 150451, 150452, 150453, 150454, 48573, 150462, 150464, 150470, 150471, 150489, 150496, 150499, 150500, 150503, 150504, 150508, 150510, 150511, 150514, 150003, 150518, 150519, 150521, 44538, 150525) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-30 11:43:50,043 - 124661 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-30 11:43:50,043 - 124661 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (150529, 150532, 150533, 150534, 150031, 150032, 150544, 150546, 150551, 150552, 150553, 36892, 150566, 150567, 150568, 150569, 150571, 150574, 53806, 150580, 39481, 129618, 22612, 58460, 58462, 34910, 129633, 58472, 51356, 150173, 119474, 119476, 119480, 150203, 32958, 150207, 150210, 58567, 150215, 58571, 150222, 48334, 55510, 150252, 46320, 150264, 150269, 150289, 150292, 58649, 149787, 150309, 150312, 150313, 150314, 150321, 150322, 150328, 150329, 150334, 150352, 150358, 150363, 46434, 47462, 149870, 149874, 150388, 139663, 150419, 69019, 150436, 150438, 150439, 150441, 150442, 150443, 150444, 150448, 150449, 150451, 150452, 150453, 150454, 48573, 150462, 150464, 150470, 150471, 150489, 150496, 150499, 150500, 150503, 150504, 150508, 150510, 150511, 150514, 150003, 150518, 150519, 150521, 44538, 150525) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-30 11:43:50,409 - 124661 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-30 11:43:50,410 - 124661 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (150529, 150532, 150533, 150534, 150031, 150032, 150544, 150546, 150551, 150552, 150553, 36892, 150566, 150567, 150568, 150569, 150571, 150574, 53806, 150580, 39481, 129618, 22612, 58460, 58462, 34910, 129633, 58472, 51356, 150173, 119474, 119476, 119480, 150203, 32958, 150207, 150210, 58567, 150215, 58571, 150222, 48334, 55510, 150252, 46320, 150264, 150269, 150289, 150292, 58649, 149787, 150309, 150312, 150313, 150314, 150321, 150322, 150328, 150329, 150334, 150352, 150358, 150363, 46434, 47462, 149870, 149874, 150388, 139663, 150419, 69019, 150436, 150438, 150439, 150441, 150442, 150443, 150444, 150448, 150449, 150451, 150452, 150453, 150454, 48573, 150462, 150464, 150470, 150471, 150489, 150496, 150499, 150500, 150503, 150504, 150508, 150510, 150511, 150514, 150003, 150518, 150519, 150521, 44538, 150525) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-30 11:43:50,696 - 124661 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-30 11:43:50,697 - 124661 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (150529, 150532, 150533, 150534, 150031, 150032, 150544, 150546, 150551, 150552, 150553, 36892, 150566, 150567, 150568, 150569, 150571, 150574, 53806, 150580, 39481, 129618, 22612, 58460, 58462, 34910, 129633, 58472, 51356, 150173, 119474, 119476, 119480, 150203, 32958, 150207, 150210, 58567, 150215, 58571, 150222, 48334, 55510, 150252, 46320, 150264, 150269, 150289, 150292, 58649, 149787, 150309, 150312, 150313, 150314, 150321, 150322, 150328, 150329, 150334, 150352, 150358, 150363, 46434, 47462, 149870, 149874, 150388, 139663, 150419, 69019, 150436, 150438, 150439, 150441, 150442, 150443, 150444, 150448, 150449, 150451, 150452, 150453, 150454, 48573, 150462, 150464, 150470, 150471, 150489, 150496, 150499, 150500, 150503, 150504, 150508, 150510, 150511, 150514, 150003, 150518, 150519, 150521, 44538, 150525) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-30 11:43:51,072 - 124661 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-30 11:43:51,072 - 124661 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (150529, 150532, 150533, 150534, 150031, 150032, 150544, 150546, 150551, 150552, 150553, 36892, 150566, 150567, 150568, 150569, 150571, 150574, 53806, 150580, 39481, 129618, 22612, 58460, 58462, 34910, 129633, 58472, 51356, 150173, 119474, 119476, 119480, 150203, 32958, 150207, 150210, 58567, 150215, 58571, 150222, 48334, 55510, 150252, 46320, 150264, 150269, 150289, 150292, 58649, 149787, 150309, 150312, 150313, 150314, 150321, 150322, 150328, 150329, 150334, 150352, 150358, 150363, 46434, 47462, 149870, 149874, 150388, 139663, 150419, 69019, 150436, 150438, 150439, 150441, 150442, 150443, 150444, 150448, 150449, 150451, 150452, 150453, 150454, 48573, 150462, 150464, 150470, 150471, 150489, 150496, 150499, 150500, 150503, 150504, 150508, 150510, 150511, 150514, 150003, 150518, 150519, 150521, 44538, 150525) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-30 11:43:51,427 - 124661 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-30 11:43:51,428 - 124661 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (150529, 150532, 150533, 150534, 150031, 150032, 150544, 150546, 150551, 150552, 150553, 36892, 150566, 150567, 150568, 150569, 150571, 150574, 53806, 150580, 39481, 129618, 22612, 58460, 58462, 34910, 129633, 58472, 51356, 150173, 119474, 119476, 119480, 150203, 32958, 150207, 150210, 58567, 150215, 58571, 150222, 48334, 55510, 150252, 46320, 150264, 150269, 150289, 150292, 58649, 149787, 150309, 150312, 150313, 150314, 150321, 150322, 150328, 150329, 150334, 150352, 150358, 150363, 46434, 47462, 149870, 149874, 150388, 139663, 150419, 69019, 150436, 150438, 150439, 150441, 150442, 150443, 150444, 150448, 150449, 150451, 150452, 150453, 150454, 48573, 150462, 150464, 150470, 150471, 150489, 150496, 150499, 150500, 150503, 150504, 150508, 150510, 150511, 150514, 150003, 150518, 150519, 150521, 44538, 150525) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-30 11:43:51,723 - 124661 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-30 11:43:51,723 - 124661 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (150529, 150532, 150533, 150534, 150031, 150032, 150544, 150546, 150551, 150552, 150553, 36892, 150566, 150567, 150568, 150569, 150571, 150574, 53806, 150580, 39481, 129618, 22612, 58460, 58462, 34910, 129633, 58472, 51356, 150173, 119474, 119476, 119480, 150203, 32958, 150207, 150210, 58567, 150215, 58571, 150222, 48334, 55510, 150252, 46320, 150264, 150269, 150289, 150292, 58649, 149787, 150309, 150312, 150313, 150314, 150321, 150322, 150328, 150329, 150334, 150352, 150358, 150363, 46434, 47462, 149870, 149874, 150388, 139663, 150419, 69019, 150436, 150438, 150439, 150441, 150442, 150443, 150444, 150448, 150449, 150451, 150452, 150453, 150454, 48573, 150462, 150464, 150470, 150471, 150489, 150496, 150499, 150500, 150503, 150504, 150508, 150510, 150511, 150514, 150003, 150518, 150519, 150521, 44538, 150525) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-30 11:43:52,006 - 124661 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-30 11:43:52,007 - 124661 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (150529, 150532, 150533, 150534, 150031, 150032, 150544, 150546, 150551, 150552, 150553, 36892, 150566, 150567, 150568, 150569, 150571, 150574, 53806, 150580, 39481, 129618, 22612, 58460, 58462, 34910, 129633, 58472, 51356, 150173, 119474, 119476, 119480, 150203, 32958, 150207, 150210, 58567, 150215, 58571, 150222, 48334, 55510, 150252, 46320, 150264, 150269, 150289, 150292, 58649, 149787, 150309, 150312, 150313, 150314, 150321, 150322, 150328, 150329, 150334, 150352, 150358, 150363, 46434, 47462, 149870, 149874, 150388, 139663, 150419, 69019, 150436, 150438, 150439, 150441, 150442, 150443, 150444, 150448, 150449, 150451, 150452, 150453, 150454, 48573, 150462, 150464, 150470, 150471, 150489, 150496, 150499, 150500, 150503, 150504, 150508, 150510, 150511, 150514, 150003, 150518, 150519, 150521, 44538, 150525) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-30 11:43:53,658 - 124661 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-30 11:43:53,659 - 124661 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-30 11:43:53,659 - 124661 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 106 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-30 11:43:53,961 - 124661 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 106) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-06-30 11:43:57,877 - 124661 - src.utils.log - INFO - βœ… All 106 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-06-30 11:43:57,878 - 124661 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 106 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-06-25 12:40:41.583' and ServiceSetupId in (150529, 150532, 150533, 150534, 150031, 150032, 150544, 150546, 150551, 150552, 150553, 36892, 150566, 150567, 150568, 150569, 150571, 150574, 53806, 150580, 39481, 129618, 22612, 58460, 58462, 34910, 129633, 58472, 51356, 150173, 119474, 119476, 119480, 150203, 32958, 150207, 150210, 58567, 150215, 58571, 150222, 48334, 55510, 150252, 46320, 150264, 150269, 150289, 150292, 58649, 149787, 150309, 150312, 150313, 150314, 150321, 150322, 150328, 150329, 150334, 150352, 150358, 150363, 46434, 47462, 149870, 149874, 150388, 139663, 150419, 69019, 150436, 150438, 150439, 150441, 150442, 150443, 150444, 150448, 150449, 150451, 150452, 150453, 150454, 48573, 150462, 150464, 150470, 150471, 150489, 150496, 150499, 150500, 150503, 150504, 150508, 150510, 150511, 150514, 150003, 150518, 150519, 150521, 44538, 150525)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-30 11:43:58,219 - 124661 - src.utils.log - INFO - βœ… Fetched 106 rows - __SPLIT__ 2026-06-30 11:43:58,219 - 124661 - src.utils.log - INFO - Id's of work order inserted to DB: [3680792 3680793 3680794 3680795 3680796 3680797 3680798 3680799 3680800 3680801 3680802 3680803 3680804 3680805 3680806 3680807 3680808 3680809 3680810 3680811 3680812 3680813 3680814 3680815 3680816 3680817 3680818 3680819 3680820 3680821 3680822 3680823 3680824 3680825 3680826 3680827 3680828 3680829 3680830 3680831 3680832 3680833 3680834 3680835 3680836 3680837 3680838 3680839 3680840 3680841 3680842 3680843 3680844 3680845 3680846 3680847 3680848 3680849 3680850 3680851 3680852 3680853 3680854 3680855 3680856 3680857 3680858 3680859 3680860 3680861 3680862 3680863 3680864 3680865 3680866 3680867 3680868 3680869 3680870 3680871 3680872 3680873 3680874 3680875 3680876 3680877 3680878 3680879 3680880 3680881 3680882 3680883 3680884 3680885 3680886 3680887 3680888 3680889 3680890 3680891 3680892 3680893 3680894 3680895 3680896 3680897] - __SPLIT__ 2026-06-30 11:43:58,220 - 124661 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId in (150529, 150532, 150533, 150534, 150031, 150032, 150544, 150546, 150551, 150552, 150553, 36892, 150566, 150567, 150568, 150569, 150571, 150574, 53806, 150580, 39481, 129618, 22612, 58460, 58462, 34910, 129633, 58472, 51356, 150173, 119474, 119476, 119480, 150203, 32958, 150207, 150210, 58567, 150215, 58571, 150222, 48334, 55510, 150252, 46320, 150264, 150269, 150289, 150292, 58649, 149787, 150309, 150312, 150313, 150314, 150321, 150322, 150328, 150329, 150334, 150352, 150358, 150363, 46434, 47462, 149870, 149874, 150388, 139663, 150419, 69019, 150436, 150438, 150439, 150441, 150442, 150443, 150444, 150448, 150449, 150451, 150452, 150453, 150454, 48573, 150462, 150464, 150470, 150471, 150489, 150496, 150499, 150500, 150503, 150504, 150508, 150510, 150511, 150514, 150003, 150518, 150519, 150521, 44538, 150525);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-30 11:43:58,490 - 124661 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-30 11:43:58,490 - 124661 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-06-30 11:43:58,490 - 124661 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId in (150529, 150532, 150533, 150534, 150544, 150546, 150419, 150551, 150552, 150553, 150436, 150567, 150438, 150439, 150568, 150441, 150569, 150571, 150444, 150566, 150574, 150442, 150448, 150449, 150443, 150451, 150580, 150452, 150454, 150453, 150462, 150464, 150470, 150352, 150358, 150489, 150363, 150496, 150499, 150500, 150503, 150504, 150508, 150510, 150511, 150514, 150388, 150518, 150521, 150525)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-30 11:43:58,764 - 124661 - src.utils.log - INFO - βœ… Fetched 84 rows - __SPLIT__ 2026-06-30 11:43:58,765 - 124661 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId in (150529, 150532, 150533, 150534, 150544, 150546, 150419, 150551, 150552, 150553, 150436, 150567, 150438, 150439, 150568, 150441, 150569, 150571, 150444, 150566, 150574, 150442, 150448, 150449, 150443, 150451, 150580, 150452, 150454, 150453, 150462, 150464, 150470, 150352, 150358, 150489, 150363, 150496, 150499, 150500, 150503, 150504, 150508, 150510, 150511, 150514, 150388, 150518, 150521, 150525)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-30 11:43:59,040 - 124661 - src.utils.log - INFO - βœ… Fetched 38 rows - __SPLIT__ 2026-06-30 11:43:59,048 - 124661 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId in (150529, 150532, 150533, 150534, 150544, 150546, 150419, 150551, 150552, 150553, 150436, 150567, 150438, 150439, 150568, 150441, 150569, 150571, 150444, 150566, 150574, 150442, 150448, 150449, 150443, 150451, 150580, 150452, 150454, 150453, 150462, 150464, 150470, 150352, 150358, 150489, 150363, 150496, 150499, 150500, 150503, 150504, 150508, 150510, 150511, 150514, 150388, 150518, 150521, 150525)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-30 11:43:59,366 - 124661 - src.utils.log - INFO - βœ… Fetched 86 rows - __SPLIT__ 2026-06-30 11:43:59,368 - 124661 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId in (150529, 150532, 150533, 150534, 150544, 150546, 150419, 150551, 150552, 150553, 150436, 150567, 150438, 150439, 150568, 150441, 150569, 150571, 150444, 150566, 150574, 150442, 150448, 150449, 150443, 150451, 150580, 150452, 150454, 150453, 150462, 150464, 150470, 150352, 150358, 150489, 150363, 150496, 150499, 150500, 150503, 150504, 150508, 150510, 150511, 150514, 150388, 150518, 150521, 150525)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-30 11:43:59,641 - 124661 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-30 11:43:59,641 - 124661 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId in (150529, 150532, 150533, 150534, 150544, 150546, 150419, 150551, 150552, 150553, 150436, 150567, 150438, 150439, 150568, 150441, 150569, 150571, 150444, 150566, 150574, 150442, 150448, 150449, 150443, 150451, 150580, 150452, 150454, 150453, 150462, 150464, 150470, 150352, 150358, 150489, 150363, 150496, 150499, 150500, 150503, 150504, 150508, 150510, 150511, 150514, 150388, 150518, 150521, 150525)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-30 11:43:59,911 - 124661 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-30 11:43:59,912 - 124661 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId in (150529, 150532, 150533, 150534, 150544, 150546, 150419, 150551, 150552, 150553, 150436, 150567, 150438, 150439, 150568, 150441, 150569, 150571, 150444, 150566, 150574, 150442, 150448, 150449, 150443, 150451, 150580, 150452, 150454, 150453, 150462, 150464, 150470, 150352, 150358, 150489, 150363, 150496, 150499, 150500, 150503, 150504, 150508, 150510, 150511, 150514, 150388, 150518, 150521, 150525);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-30 11:44:00,185 - 124661 - src.utils.log - INFO - βœ… Fetched 50 rows - __SPLIT__ 2026-06-30 11:44:00,186 - 124661 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId in (150529, 150532, 150533, 150534, 150544, 150546, 150419, 150551, 150552, 150553, 150436, 150567, 150438, 150439, 150568, 150441, 150569, 150571, 150444, 150566, 150574, 150442, 150448, 150449, 150443, 150451, 150580, 150452, 150454, 150453, 150462, 150464, 150470, 150352, 150358, 150489, 150363, 150496, 150499, 150500, 150503, 150504, 150508, 150510, 150511, 150514, 150388, 150518, 150521, 150525);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-30 11:44:00,457 - 124661 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-30 11:44:00,458 - 124661 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId in (150529, 150532, 150533, 150534, 150544, 150546, 150419, 150551, 150552, 150553, 150436, 150567, 150438, 150439, 150568, 150441, 150569, 150571, 150444, 150566, 150574, 150442, 150448, 150449, 150443, 150451, 150580, 150452, 150454, 150453, 150462, 150464, 150470, 150352, 150358, 150489, 150363, 150496, 150499, 150500, 150503, 150504, 150508, 150510, 150511, 150514, 150388, 150518, 150521, 150525);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-30 11:44:00,779 - 124661 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-30 11:44:00,779 - 124661 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId in (150529, 150532, 150533, 150534, 150544, 150546, 150419, 150551, 150552, 150553, 150436, 150567, 150438, 150439, 150568, 150441, 150569, 150571, 150444, 150566, 150574, 150442, 150448, 150449, 150443, 150451, 150580, 150452, 150454, 150453, 150462, 150464, 150470, 150352, 150358, 150489, 150363, 150496, 150499, 150500, 150503, 150504, 150508, 150510, 150511, 150514, 150388, 150518, 150521, 150525);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-30 11:44:01,060 - 124661 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-30 11:44:01,085 - 124661 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-06-30 11:44:01,085 - 124661 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-06-30 11:44:01,085 - 124661 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-06-30 11:44:01,085 - 124661 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.CommunicationPreferencesServiceReportNotification: - __SPLIT__ 2026-06-30 11:44:01,085 - 124661 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-06-30 11:44:01,085 - 124661 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-30 11:44:01,085 - 124661 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ('3680866', '3680854', '3680834', '3680798', '3680893', '3680820', '3680827', '3680863', '3680876') ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-30 11:44:01,353 - 124661 - src.utils.log - INFO - βœ… Fetched 9 rows - __SPLIT__ 2026-06-30 11:44:01,354 - 124661 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.SetupAutoGenerationSourceMapping: 0 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-30 11:44:01,646 - 124661 - src.utils.log - INFO - βœ… All 0 rows inserted successfully into ServiceCore.SetupAutoGenerationSourceMapping in 0 batches - __SPLIT__ 2026-06-30 11:44:01,646 - 124661 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-06-30 11:44:01,646 - 124661 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-30 11:44:01,647 - 124661 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3680897, 3680794, 3680795, 3680796, 3680797, 3680808, 3680810, 3680811, 3680812, 3680814, 3680817, 3680822, 3680851, 3680858, 3680859, 3680865, 3680878, 3680882, 3680884, 3680886, 3680891, 3680892) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-30 11:44:01,915 - 124661 - src.utils.log - INFO - βœ… Fetched 22 rows - __SPLIT__ 2026-06-30 11:44:01,916 - 124661 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationAppliedDiscount: 55 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-30 11:44:02,214 - 124661 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 55) into ServiceCore.WorkOrderAutoGenerationAppliedDiscount - __SPLIT__ 2026-06-30 11:44:03,230 - 124661 - src.utils.log - INFO - βœ… All 55 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationAppliedDiscount in 1 batches - __SPLIT__ 2026-06-30 11:44:03,230 - 124661 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-06-30 11:44:03,230 - 124661 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-30 11:44:03,231 - 124661 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3680834.0, 3680866.0, 3680876.0, 3680820.0, 3680854.0, 3680827.0, 3680893.0, 3680798.0, 3680863.0) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-30 11:44:03,498 - 124661 - src.utils.log - INFO - βœ… Fetched 9 rows - __SPLIT__ 2026-06-30 11:44:03,499 - 124661 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.SubWorkOrderAutoGeneration: 9 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-30 11:44:03,806 - 124661 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 9) into ServiceCore.SubWorkOrderAutoGeneration - __SPLIT__ 2026-06-30 11:44:04,784 - 124661 - src.utils.log - INFO - βœ… All 9 rows inserted successfully into ServiceCore.SubWorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-06-30 11:44:04,785 - 124661 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-06-30 11:44:04,785 - 124661 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: - __SPLIT__ 2026-06-30 11:44:04,785 - 124661 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-06-30 11:44:04,785 - 124661 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: - __SPLIT__ 2026-06-30 11:44:04,785 - 124661 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-06-30 11:44:04,785 - 124661 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-30 11:44:04,786 - 124661 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3680896, 3680897, 3680792, 3680793, 3680794, 3680795, 3680796, 3680797, 3680799, 3680800, 3680801, 3680802, 3680803, 3680804, 3680805, 3680806, 3680808, 3680809, 3680810, 3680811, 3680812, 3680813, 3680814, 3680815, 3680817, 3680818, 3680819, 3680821, 3680822, 3680823, 3680828, 3680830, 3680831, 3680832, 3680833, 3680835, 3680838, 3680839, 3680841, 3680846, 3680851, 3680858, 3680859, 3680860, 3680865, 3680867, 3680870, 3680872, 3680878, 3680882, 3680883, 3680884, 3680885, 3680886, 3680887, 3680888, 3680889, 3680890, 3680891, 3680892, 3680894, 3680895) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-30 11:44:05,055 - 124661 - src.utils.log - INFO - βœ… Fetched 62 rows - __SPLIT__ 2026-06-30 11:44:05,056 - 124661 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationCrews: 76 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-30 11:44:05,326 - 124661 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 76) into ServiceCore.WorkOrderAutoGenerationCrews - __SPLIT__ 2026-06-30 11:44:06,329 - 124661 - src.utils.log - INFO - βœ… All 76 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationCrews in 1 batches - __SPLIT__ 2026-06-30 11:44:06,329 - 124661 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-06-30 11:44:06,330 - 124661 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-30 11:44:06,330 - 124661 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3680800, 3680801, 3680802, 3680803, 3680804, 3680792, 3680793, 3680794, 3680795, 3680796, 3680797, 3680799) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-30 11:44:06,596 - 124661 - src.utils.log - INFO - βœ… Fetched 12 rows - __SPLIT__ 2026-06-30 11:44:06,597 - 124661 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 22 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-30 11:44:06,871 - 124661 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 22) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-06-30 11:44:07,843 - 124661 - src.utils.log - INFO - βœ… All 22 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-06-30 11:44:07,843 - 124661 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-06-30 11:44:07,843 - 124661 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-30 11:44:07,844 - 124661 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3680798, 3680805, 3680806, 3680807, 3680808, 3680809, 3680810, 3680811, 3680812, 3680813, 3680814, 3680815, 3680816, 3680817, 3680818, 3680819, 3680820, 3680821, 3680822, 3680823, 3680824, 3680825, 3680826, 3680827, 3680828, 3680829, 3680830, 3680831, 3680832, 3680833, 3680834, 3680835, 3680836, 3680837, 3680838, 3680839, 3680840, 3680841, 3680842, 3680843, 3680844, 3680845, 3680846, 3680847, 3680848, 3680849, 3680850, 3680851, 3680852, 3680853, 3680854, 3680855, 3680856, 3680857, 3680858, 3680859, 3680860, 3680861, 3680862, 3680863, 3680864, 3680865, 3680866, 3680867, 3680868, 3680869, 3680870, 3680871, 3680872, 3680873, 3680874, 3680875, 3680876, 3680877, 3680878, 3680879, 3680880, 3680881, 3680882, 3680883, 3680884, 3680885, 3680886, 3680887, 3680888, 3680889, 3680890, 3680891, 3680892, 3680893, 3680894, 3680895, 3680896, 3680897) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-30 11:44:08,117 - 124661 - src.utils.log - INFO - βœ… Fetched 94 rows - __SPLIT__ 2026-06-30 11:44:08,118 - 124661 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 130 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-30 11:44:08,392 - 124661 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 130) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-06-30 11:44:10,018 - 124661 - src.utils.log - INFO - βœ… All 130 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-06-30 11:44:10,018 - 124661 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-06-30 11:44:10,018 - 124661 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 124661;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-30 11:44:10,286 - 124661 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-30 11:44:10,286 - 124661 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-06-30 11:44:10,286 - 124661 - src.utils.log - INFO - Time took to perform operation: 30.12 - __SPLIT__ 2026-07-01 06:44:09,666 - 12517 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=12517 - __SPLIT__ 2026-07-01 06:44:09,667 - 12517 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 12517 - __SPLIT__ 2026-07-01 06:44:09,684 - 12517 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-01 06:44:09,684 - 12517 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 06:44:12,495 - 12517 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-01 06:44:12,495 - 12517 - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-07-01 06:44:12,495 - 12517 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 12517;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 06:44:12,801 - 12517 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-01 06:44:12,801 - 12517 - 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 = 12517), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 12517), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 12517 AND ss.FrequencyScheduleId IS NOT NULL AND ss.IsActive = 1 AND ss.IsDeleted = 0 AND ss.Status <> 'Canceled' AND ((ss.OrderType = gw.OrderType) OR gw.OrderType IS NULL);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 06:44:13,130 - 12517 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-01 06:44:13,131 - 12517 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 12517;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 06:44:13,459 - 12517 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-01 06:44:13,460 - 12517 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Failed', WoGenErrorInfo ='No setups found in given range', WorkOrderStatusDateTime = '2026-07-01 02:44:13.460' WHERE GenerateWorkOrderHistoryId = 12517;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 06:44:13,767 - 12517 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-01 06:44:13,767 - 12517 - src.utils.log - INFO - No Setup Found Error:No setups found for GenerateWorkOrderHistoryid: 12517 - __SPLIT__ 2026-07-01 06:44:38,113 - 12518 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=12518 - __SPLIT__ 2026-07-01 06:44:38,114 - 12518 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 12518 - __SPLIT__ 2026-07-01 06:44:38,128 - 12518 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-01 06:44:38,128 - 12518 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 06:44:40,804 - 12518 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-01 06:44:40,804 - 12518 - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-07-01 06:44:40,804 - 12518 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 12518;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 06:44:41,102 - 12518 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-01 06:44:41,102 - 12518 - 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 = 12518), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 12518), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 12518 AND ss.FrequencyScheduleId IS NOT NULL AND ss.IsActive = 1 AND ss.IsDeleted = 0 AND ss.Status <> 'Canceled' AND ((ss.OrderType = gw.OrderType) OR gw.OrderType IS NULL);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 06:44:41,423 - 12518 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-01 06:44:41,423 - 12518 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 12518;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 06:44:41,722 - 12518 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-01 06:44:41,723 - 12518 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Failed', WoGenErrorInfo ='No setups found in given range', WorkOrderStatusDateTime = '2026-07-01 02:44:41.723' WHERE GenerateWorkOrderHistoryId = 12518;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 06:44:42,031 - 12518 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-01 06:44:42,031 - 12518 - src.utils.log - INFO - No Setup Found Error:No setups found for GenerateWorkOrderHistoryid: 12518 - __SPLIT__ 2026-07-01 06:52:00,403 - 12519 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=12519 - __SPLIT__ 2026-07-01 06:52:00,404 - 12519 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 12519 - __SPLIT__ 2026-07-01 06:52:00,405 - 12519 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-01 06:52:00,405 - 12519 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 06:52:02,654 - 12519 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-01 06:52:02,655 - 12519 - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-07-01 06:52:02,655 - 12519 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 12519;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 06:52:02,974 - 12519 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-01 06:52:02,974 - 12519 - 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 = 12519), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 12519), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 12519 AND ss.FrequencyScheduleId IS NOT NULL AND ss.IsActive = 1 AND ss.IsDeleted = 0 AND ss.Status <> 'Canceled' AND ((ss.OrderType = gw.OrderType) OR gw.OrderType IS NULL);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 06:52:03,335 - 12519 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-01 06:52:03,336 - 12519 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 12519;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 06:52:03,657 - 12519 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-01 06:52:03,658 - 12519 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Failed', WoGenErrorInfo ='No setups found in given range', WorkOrderStatusDateTime = '2026-07-01 02:52:03.658' WHERE GenerateWorkOrderHistoryId = 12519;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 06:52:03,977 - 12519 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-01 06:52:03,978 - 12519 - src.utils.log - INFO - No Setup Found Error:No setups found for GenerateWorkOrderHistoryid: 12519 - __SPLIT__ 2026-07-01 06:53:50,763 - 12520 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=12520 - __SPLIT__ 2026-07-01 06:53:50,764 - 12520 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 12520 - __SPLIT__ 2026-07-01 06:53:50,765 - 12520 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-01 06:53:50,765 - 12520 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 06:53:53,009 - 12520 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-01 06:53:53,009 - 12520 - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-07-01 06:53:53,009 - 12520 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 12520;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 06:53:53,326 - 12520 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-01 06:53:53,326 - 12520 - 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 = 12520), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 12520), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 12520 AND ss.FrequencyScheduleId IS NOT NULL AND ss.IsActive = 1 AND ss.IsDeleted = 0 AND ss.Status <> 'Canceled' AND ((ss.OrderType = gw.OrderType) OR gw.OrderType IS NULL);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 06:53:53,668 - 12520 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-01 06:53:53,668 - 12520 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 12520;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 06:53:53,988 - 12520 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-01 06:53:53,989 - 12520 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Failed', WoGenErrorInfo ='No setups found in given range', WorkOrderStatusDateTime = '2026-07-01 02:53:53.989' WHERE GenerateWorkOrderHistoryId = 12520;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 06:53:54,355 - 12520 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-01 06:53:54,355 - 12520 - src.utils.log - INFO - No Setup Found Error:No setups found for GenerateWorkOrderHistoryid: 12520 - __SPLIT__ 2026-07-01 07:37:14,010 - 124666 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=124666 - __SPLIT__ 2026-07-01 07:37:14,011 - 124666 - src.utils.log - INFO - Work order Generation/Publish algo started for GenerateWorkOrderHistoryId: 124666 - __SPLIT__ 2026-07-01 07:37:14,012 - 124666 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-01 07:37:14,012 - 124666 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 07:37:16,306 - 124666 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-01 07:37:16,307 - 124666 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-07-01 07:37:16,307 - 124666 - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-07-01 07:37:16,308 - 124666 - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-07-01 07:37:16,308 - 124666 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 124666;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 07:37:18,739 - 124666 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-01 07:37:18,739 - 124666 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET WoGenStartDateTime = '2026-07-01 03:37:18.739' WHERE GenerateWorkOrderHistoryId = 124666;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 07:37:19,004 - 124666 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-01 07:37:19,005 - 124666 - src.utils.log - INFO - πŸ” Fetching data: Select CreatedBy, CompanyId from ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryId = 124666;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 07:37:19,267 - 124666 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-01 07:37:19,268 - 124666 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'New', WoPublishStartDateTime = '2026-07-01 03:37:19.268' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124666;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 07:37:19,535 - 124666 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-01 07:37:19,535 - 124666 - 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 = 124666), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 124666), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 124666 AND ss.FrequencyScheduleId IS NOT NULL AND ss.IsActive = 1 AND ss.IsDeleted = 0 AND ss.Status <> 'Canceled' AND ((ss.OrderType = gw.OrderType) OR gw.OrderType IS NULL);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 07:37:19,849 - 124666 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-01 07:37:19,849 - 124666 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 124666;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 07:37:20,114 - 124666 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-01 07:37:20,117 - 124666 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-07-01 07:37:20,118 - 124666 - 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 = 13962... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 07:37:20,392 - 124666 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-01 07:37:20,393 - 124666 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-07-01 07:37:20,398 - 124666 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-07-01 07:37:20,399 - 124666 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150585;... (Thread: ThreadPoolExecutor-0_0) - __SPLIT__ 2026-07-01 07:37:20,663 - 124666 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-01 07:37:20,664 - 124666 - src.utils.log - INFO - πŸ” Fetching data: select ServiceDate, ServiceSetupId, IsInitial from serviceCore.WorkOrder wo inner join ServiceCore.WorkOrderStatus wos on wo.WoStatusId = wos.WoStatusId where ServiceDate >= '2026-07-01 00:00:00' and ServiceDate <= '2026-12-31 00:00:00' and ServiceSetupId = 150585 and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: ThreadPoolExecutor-0_0) - __SPLIT__ 2026-07-01 07:37:20,935 - 124666 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-01 07:37:21,486 - 124666 - src.utils.log - INFO - Generating work orders for setup: 150585 - __SPLIT__ 2026-07-01 07:37:21,542 - 124666 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-07-01 07:37:21,549 - 124666 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=133 and [SysName]= 'Incomplete' ;... (Thread: ThreadPoolExecutor-0_0) - __SPLIT__ 2026-07-01 07:37:21,812 - 124666 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-01 07:37:21,815 - 124666 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-07-01 07:37:21,815 - 124666 - src.utils.log - INFO - Running deletes in PARALLEL… - __SPLIT__ 2026-07-01 07:37:21,815 - 124666 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150585 ) (Thread: ThreadPoolExecutor-1_0) - __SPLIT__ 2026-07-01 07:37:21,816 - 124666 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150585 ) (Thread: ThreadPoolExecutor-1_1) - __SPLIT__ 2026-07-01 07:37:21,816 - 124666 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150585 ) (Thread: ThreadPoolExecutor-1_2) - __SPLIT__ 2026-07-01 07:37:21,817 - 124666 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150585 ) (Thread: ThreadPoolExecutor-1_3) - __SPLIT__ 2026-07-01 07:37:21,817 - 124666 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150585 ) (Thread: ThreadPoolExecutor-1_4) - __SPLIT__ 2026-07-01 07:37:21,818 - 124666 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150585 ) (Thread: ThreadPoolExecutor-1_5) - __SPLIT__ 2026-07-01 07:37:21,819 - 124666 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150585 ) (Thread: ThreadPoolExecutor-1_6) - __SPLIT__ 2026-07-01 07:37:22,150 - 124666 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-01 07:37:22,879 - 124666 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-01 07:37:22,884 - 124666 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-01 07:37:22,897 - 124666 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-01 07:37:22,939 - 124666 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-01 07:37:22,948 - 124666 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-01 07:37:22,949 - 124666 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-01 07:37:22,950 - 124666 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150585 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 07:37:23,367 - 124666 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-01 07:37:23,369 - 124666 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150585;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 07:37:23,634 - 124666 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-01 07:37:23,634 - 124666 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-07-01 07:37:23,635 - 124666 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId = 150585... (Thread: ThreadPoolExecutor-2_0) - __SPLIT__ 2026-07-01 07:37:23,635 - 124666 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId = 150585... (Thread: ThreadPoolExecutor-2_1) - __SPLIT__ 2026-07-01 07:37:23,635 - 124666 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId = 150585... (Thread: ThreadPoolExecutor-2_2) - __SPLIT__ 2026-07-01 07:37:23,636 - 124666 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId = 150585... (Thread: ThreadPoolExecutor-2_3) - __SPLIT__ 2026-07-01 07:37:23,637 - 124666 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId = 150585;... (Thread: ThreadPoolExecutor-2_4) - __SPLIT__ 2026-07-01 07:37:23,637 - 124666 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId = 150585;... (Thread: ThreadPoolExecutor-2_5) - __SPLIT__ 2026-07-01 07:37:23,638 - 124666 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId = 150585;... (Thread: ThreadPoolExecutor-2_6) - __SPLIT__ 2026-07-01 07:37:23,638 - 124666 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId = 150585;... (Thread: ThreadPoolExecutor-2_7) - __SPLIT__ 2026-07-01 07:37:23,899 - 124666 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-01 07:37:23,901 - 124666 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-01 07:37:23,901 - 124666 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-01 07:37:23,903 - 124666 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-01 07:37:23,903 - 124666 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId = 150585... (Thread: ThreadPoolExecutor-2_0) - __SPLIT__ 2026-07-01 07:37:23,904 - 124666 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-01 07:37:23,913 - 124666 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-01 07:37:24,167 - 124666 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-01 07:37:24,218 - 124666 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-01 07:37:24,690 - 124666 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-01 07:37:24,700 - 124666 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 124666;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 07:37:24,965 - 124666 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-01 07:37:24,965 - 124666 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET WorkOrderStatusDateTime = '2026-07-01 03:37:24.965' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124666;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 07:37:25,230 - 124666 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-01 07:37:25,230 - 124666 - src.utils.log - INFO - - __SPLIT__ 2026-07-01 07:37:25,230 - 124666 - src.utils.log - INFO - Work order generation successful - Time took: 11.22 - __SPLIT__ 2026-07-01 07:37:25,230 - 124666 - src.utils.log - INFO - Work order publish in progress for GenerateWorkOrderHistoryId: 124666 - __SPLIT__ 2026-07-01 07:37:25,230 - 124666 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'InProgress', WoPublishStartDateTime = '2026-07-01 03:37:25.230' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124666;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 07:37:25,493 - 124666 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-01 07:37:25,494 - 124666 - src.utils.log - INFO - πŸ” Fetching data: Select CreatedBy from ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryId = 124666;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 07:37:25,760 - 124666 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-01 07:37:25,760 - 124666 - src.utils.log - INFO - Inside get_work_order_table - __SPLIT__ 2026-07-01 07:37:25,761 - 124666 - 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 = 150585 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 07:37:26,038 - 124666 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-01 07:37:26,038 - 124666 - 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 = 150585 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 07:37:26,311 - 124666 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-01 07:37:26,312 - 124666 - 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 = 150585 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 07:37:26,592 - 124666 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-01 07:37:26,597 - 124666 - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder,BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 07:37:26,864 - 124666 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-01 07:37:26,865 - 124666 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 133 AND EnitityNumberType in ('WorkOrder','Invoice'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 07:37:27,129 - 124666 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-01 07:37:27,129 - 124666 - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder, BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 07:37:27,397 - 124666 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-01 07:37:27,397 - 124666 - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 3 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 133 AND EnitityNumberType = 'WorkOrder'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 07:37:27,662 - 124666 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-01 07:37:27,662 - 124666 - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 3 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 133 AND EnitityNumberType = 'Invoice'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 07:37:27,932 - 124666 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-01 07:37:27,936 - 124666 - 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 = 150585... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 07:37:28,206 - 124666 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-01 07:37:28,209 - 124666 - src.utils.log - INFO - πŸ” Fetching data: SELECT x.CompanyId FROM CRM.CompanyMaster x WHERE CompanyKey = 'abcdallas';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 07:37:28,472 - 124666 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-01 07:37:28,472 - 124666 - src.utils.log - INFO - πŸ” Fetching data: SELECT CollectionStatus,IsHold,AccountNo FROM CRM.Account a WHERE a.AccountNo = '14974' and a.CompanyId = 121;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 07:37:28,737 - 124666 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-01 07:37:28,739 - 124666 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderNo FROM ServiceCore.WorkOrder WHERE WorkOrderNo IN ('1427126', '1427127', '1427128') AND CompanyId = 133 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 07:37:29,007 - 124666 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-01 07:37:29,007 - 124666 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrder (skip triggers): 3 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 07:37:29,465 - 124666 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into ServiceCore.WorkOrder (triggers skipped) - __SPLIT__ 2026-07-01 07:37:30,682 - 124666 - src.utils.log - INFO - βœ… All 3 rows inserted successfully into ServiceCore.WorkOrder in 1 batches (triggers skipped) - __SPLIT__ 2026-07-01 07:37:30,814 - 124666 - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-07-01 07:37:30,816 - 124666 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkorderId, WorkOrderNo FROM ServiceCore.WorkOrder wo WHERE wo.WorkOrderNo IN ('1427126', '1427127', '1427128') AND wo.AccountNumber = '14974' AND wo.CompanyId = 133 ... (Thread: ThreadPoolExecutor-3_0) - __SPLIT__ 2026-07-01 07:37:31,084 - 124666 - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-07-01 07:37:31,087 - 124666 - src.utils.log - INFO - Updating temp tables - __SPLIT__ 2026-07-01 07:37:31,099 - 124666 - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyKey FROM Common.CompanyMaster cm WHERE CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 07:37:31,360 - 124666 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-01 07:37:31,360 - 124666 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 133 AND EnitityNumberType in ('SubWorkOrder'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 07:37:31,627 - 124666 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-01 07:37:31,631 - 124666 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-01 07:37:31,631 - 124666 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishHistory: 3 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 07:37:31,947 - 124666 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into ServiceCore.WorkOrderAutoGenerationPublishHistory - __SPLIT__ 2026-07-01 07:37:32,906 - 124666 - src.utils.log - INFO - βœ… All 3 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishHistory in 1 batches - __SPLIT__ 2026-07-01 07:37:32,908 - 124666 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationPublishHistoryId, WorkOrderNo, ServiceSetupId FROM ServiceCore.WorkOrderAutoGenerationPublishHistory WHERE ServiceSetupId = 150585 AND WorkOrderNo IN (4425902, 3607603, 2005238) AND GenerateWorkOrderHistoryId = 124666;... (Thread: ThreadPoolExecutor-4_0) - __SPLIT__ 2026-07-01 07:37:33,404 - 124666 - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-07-01 07:37:33,404 - 124666 - src.utils.log - INFO - 🏁 Final merged rows: 3 - __SPLIT__ 2026-07-01 07:37:33,411 - 124666 - src.utils.log - INFO - Parallel Insertion in work order tables begin - __SPLIT__ 2026-07-01 07:37:33,411 - 124666 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-07-01 07:37:33,411 - 124666 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderAppliedDiscount: - __SPLIT__ 2026-07-01 07:37:33,411 - 124666 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderSalesPersonCommission: - __SPLIT__ 2026-07-01 07:37:33,412 - 124666 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderCommissionAdjustment: - __SPLIT__ 2026-07-01 07:37:33,412 - 124666 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-01 07:37:33,412 - 124666 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderServices: 3 rows in batches of 25000 (Thread: ThreadPoolExecutor-5_1) - __SPLIT__ 2026-07-01 07:37:33,412 - 124666 - src.utils.log - INFO - [OK] Sales Person Commission completed. - __SPLIT__ 2026-07-01 07:37:33,413 - 124666 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-01 07:37:33,413 - 124666 - src.utils.log - INFO - [OK] Adjustment completed. - __SPLIT__ 2026-07-01 07:37:33,413 - 124666 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkorderSourceMapping: - __SPLIT__ 2026-07-01 07:37:33,413 - 124666 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-01 07:37:33,413 - 124666 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderCrew: 3 rows in batches of 25000 (Thread: ThreadPoolExecutor-5_0) - __SPLIT__ 2026-07-01 07:37:33,413 - 124666 - src.utils.log - INFO - [OK] Discount Applied completed. - __SPLIT__ 2026-07-01 07:37:33,413 - 124666 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishServices: 3 rows in batches of 25000 (Thread: ThreadPoolExecutor-5_2) - __SPLIT__ 2026-07-01 07:37:33,414 - 124666 - src.utils.log - INFO - [OK] Lead Notes completed. - __SPLIT__ 2026-07-01 07:37:33,414 - 124666 - src.utils.log - INFO - [OK] Source Mapping completed. - __SPLIT__ 2026-07-01 07:37:33,707 - 124666 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into ServiceCore.WorkOrderServices - __SPLIT__ 2026-07-01 07:37:33,727 - 124666 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into ServiceCore.WorkOrderCrew - __SPLIT__ 2026-07-01 07:37:33,737 - 124666 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into ServiceCore.WorkOrderAutoGenerationPublishServices - __SPLIT__ 2026-07-01 07:37:34,647 - 124666 - src.utils.log - INFO - βœ… All 3 rows inserted successfully into ServiceCore.WorkOrderServices in 1 batches - __SPLIT__ 2026-07-01 07:37:34,647 - 124666 - src.utils.log - INFO - [OK] Services completed. - __SPLIT__ 2026-07-01 07:37:34,664 - 124666 - src.utils.log - INFO - βœ… All 3 rows inserted successfully into ServiceCore.WorkOrderCrew in 1 batches - __SPLIT__ 2026-07-01 07:37:34,665 - 124666 - src.utils.log - INFO - [OK] Crew completed. - __SPLIT__ 2026-07-01 07:37:34,674 - 124666 - src.utils.log - INFO - βœ… All 3 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishServices in 1 batches - __SPLIT__ 2026-07-01 07:37:34,674 - 124666 - src.utils.log - INFO - [OK] Publish Services completed. - __SPLIT__ 2026-07-01 07:37:34,675 - 124666 - src.utils.log - INFO - All publish tasks completed successfully. - __SPLIT__ 2026-07-01 07:37:34,675 - 124666 - 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 = 150585... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 07:37:34,937 - 124666 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-01 07:37:34,943 - 124666 - src.utils.log - INFO - Size of Transaction: 3 - __SPLIT__ 2026-07-01 07:37:34,944 - 124666 - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 3 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 07:37:35,367 - 124666 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-07-01 07:37:36,300 - 124666 - src.utils.log - INFO - βœ… All 3 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-07-01 07:37:36,430 - 124666 - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-07-01 07:37:36,430 - 124666 - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionId, ModifiedBy, TransactionDate as InvoiceDate from Billing.[Transaction] t WHERE t.ModifiedBy in (12345678910, 12345678911, 12345678912) and t.CompanyId = 133 AND t.TransactionType ='Invoice' AND t.CreatedDate = '2026-07-01 03:37:34.939';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 07:37:43,509 - 124666 - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-07-01 07:37:43,512 - 124666 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150585;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 07:37:43,776 - 124666 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-01 07:37:43,786 - 124666 - src.utils.log - INFO - πŸ“ Executing: UPDATE Billing.[Transaction] SET ModifiedBy = NULL WHERE ModifiedBy IN (12345678910,12345678911,12345678912) AND CreatedDate = '2026-07-01 03:37:34.939'; ... (Thread: ThreadPoolExecutor-6_0) - __SPLIT__ 2026-07-01 07:37:44,248 - 124666 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-01 07:37:44,253 - 124666 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-01 07:37:44,254 - 124666 - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 3 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 07:37:44,553 - 124666 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into Billing.Invoice - __SPLIT__ 2026-07-01 07:37:45,507 - 124666 - src.utils.log - INFO - βœ… All 3 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-07-01 07:37:45,508 - 124666 - src.utils.log - INFO - πŸ” Fetching data: SELECT InvoiceId, WorkOrderNo FROM Billing.Invoice i WHERE i.WorkOrderNo in ('1427128', '1427127', '1427126')... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 07:37:46,594 - 124666 - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-07-01 07:37:46,604 - 124666 - 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 = 150585 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 07:37:46,872 - 124666 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-01 07:37:46,872 - 124666 - 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 = 150585 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 07:37:47,138 - 124666 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-01 07:37:47,138 - 124666 - 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 = 150585 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 07:37:47,405 - 124666 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-01 07:37:47,406 - 124666 - 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 = 150585 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 07:37:47,675 - 124666 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-01 07:37:47,688 - 124666 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150585;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 07:37:47,954 - 124666 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-01 07:37:47,959 - 124666 - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId, AppliedDiscountAmt as AppliedDiscountAmount,IsActive ,ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 150585;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 07:37:48,224 - 124666 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-01 07:37:48,227 - 124666 - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId,IsActive,DiscountAmount, IsDiscountPercent,DiscountPercent,DiscountDescription , ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 150585;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 07:37:48,492 - 124666 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-01 07:37:48,492 - 124666 - src.utils.log - INFO - Parallel Insertion in invoice tables begin - __SPLIT__ 2026-07-01 07:37:48,493 - 124666 - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.AccountDiscountSetup: - __SPLIT__ 2026-07-01 07:37:48,493 - 124666 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-01 07:37:48,493 - 124666 - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceCharges: 3 rows in batches of 25000 (Thread: ThreadPoolExecutor-7_0) - __SPLIT__ 2026-07-01 07:37:48,493 - 124666 - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.DiscountApplied: - __SPLIT__ 2026-07-01 07:37:48,494 - 124666 - src.utils.log - INFO - Insert success for table: Billing.AccountDiscountSetup - __SPLIT__ 2026-07-01 07:37:48,494 - 124666 - src.utils.log - INFO - Insert success for table: Billing.DiscountApplied - __SPLIT__ 2026-07-01 07:37:48,788 - 124666 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into Billing.InvoiceCharges - __SPLIT__ 2026-07-01 07:37:49,718 - 124666 - src.utils.log - INFO - βœ… All 3 rows inserted successfully into Billing.InvoiceCharges in 1 batches - __SPLIT__ 2026-07-01 07:37:49,718 - 124666 - src.utils.log - INFO - Insert success for table: Billing.InvoiceCharges - __SPLIT__ 2026-07-01 07:37:49,718 - 124666 - src.utils.log - INFO - Invoice Publish Done - __SPLIT__ 2026-07-01 07:37:49,719 - 124666 - src.utils.log - INFO - Updating Next GenerationDate - __SPLIT__ 2026-07-01 07:37:49,719 - 124666 - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, MAX(NextWorkOrderGenerationDate) AS MaxNextWorkOrderGeneration FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 124666 GROUP BY ServiceSetupId; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 07:37:49,984 - 124666 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-01 07:37:49,991 - 124666 - src.utils.log - INFO - πŸ”„ Updating next gen date parallely: inside update_next_workorder_generation - __SPLIT__ 2026-07-01 07:37:50,124 - 124666 - src.utils.log - INFO - πŸ›  Creating temp table #tbl_65ef19f5f3 - __SPLIT__ 2026-07-01 07:37:50,255 - 124666 - src.utils.log - INFO - πŸ“Œ Bulk inserting 1 rows into #tbl_65ef19f5f3 - __SPLIT__ 2026-07-01 07:37:50,782 - 124666 - src.utils.log - INFO - πŸ” Running UPDATE to apply changes - __SPLIT__ 2026-07-01 07:37:51,051 - 124666 - src.utils.log - INFO - βœ” SQL reported affected rows: 1 - __SPLIT__ 2026-07-01 07:37:51,051 - 124666 - src.utils.log - INFO - πŸŽ‰ Successfully updated NextGenerationDate using temp table #tbl_65ef19f5f3 - __SPLIT__ 2026-07-01 07:37:51,051 - 124666 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 124666 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 07:37:51,314 - 124666 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-01 07:37:51,314 - 124666 - src.utils.log - INFO - Work order published ids: (0, 1, 2) - __SPLIT__ 2026-07-01 07:37:51,315 - 124666 - src.utils.log - INFO - Time took to perform operation in publishing 124666: 37.3 - __SPLIT__ 2026-07-01 07:37:51,315 - 124666 - src.utils.log - INFO - Publish Completed for GenerateWorkOrderHistoryId: 124666 - __SPLIT__ 2026-07-01 07:37:51,315 - 124666 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-07-01 03:37:51.314' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124666;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 07:37:51,585 - 124666 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-01 07:43:12,381 - 124667 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=124667 - __SPLIT__ 2026-07-01 07:43:12,381 - 124667 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 124667 - __SPLIT__ 2026-07-01 07:43:12,383 - 124667 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-01 07:43:12,384 - 124667 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 07:43:14,625 - 124667 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-01 07:43:14,625 - 124667 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-07-01 07:43:14,626 - 124667 - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-07-01 07:43:14,626 - 124667 - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-07-01 07:43:14,626 - 124667 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 124667;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 07:43:17,061 - 124667 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-01 07:43:17,061 - 124667 - 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 = 124667), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 124667), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 124667 AND ss.FrequencyScheduleId IS NOT NULL AND ss.IsActive = 1 AND ss.IsDeleted = 0 AND ss.Status <> 'Canceled' AND ((ss.OrderType = gw.OrderType) OR gw.OrderType IS NULL);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 07:43:17,383 - 124667 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-01 07:43:17,384 - 124667 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 124667;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 07:43:17,650 - 124667 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-01 07:43:17,653 - 124667 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-07-01 07:43:17,654 - 124667 - 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 = 14643... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 07:43:17,932 - 124667 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-01 07:43:17,932 - 124667 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-07-01 07:43:17,935 - 124667 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-07-01 07:43:17,936 - 124667 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150586;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 07:43:18,202 - 124667 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-01 07:43:18,202 - 124667 - src.utils.log - INFO - πŸ” Fetching data: select ServiceDate, ServiceSetupId, IsInitial from serviceCore.WorkOrder wo inner join ServiceCore.WorkOrderStatus wos on wo.WoStatusId = wos.WoStatusId where ServiceDate >= '2026-07-01 00:00:00' and ServiceDate <= '2026-12-31 00:00:00' and ServiceSetupId = 150586 and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 07:43:18,474 - 124667 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-01 07:43:19,030 - 124667 - src.utils.log - INFO - Generating work orders for setup: 150586 - __SPLIT__ 2026-07-01 07:43:19,071 - 124667 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 1133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 07:43:19,338 - 124667 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-01 07:43:19,347 - 124667 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 1131;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 07:43:19,611 - 124667 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-01 07:43:19,651 - 124667 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-07-01 07:43:19,656 - 124667 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=133 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 07:43:19,919 - 124667 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-01 07:43:19,922 - 124667 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-07-01 07:43:19,922 - 124667 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-07-01 07:43:19,922 - 124667 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150586 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 07:43:20,262 - 124667 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-01 07:43:20,262 - 124667 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150586 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 07:43:20,599 - 124667 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-01 07:43:20,599 - 124667 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150586 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 07:43:20,875 - 124667 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-01 07:43:20,875 - 124667 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150586 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 07:43:21,218 - 124667 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-01 07:43:21,218 - 124667 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150586 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 07:43:21,551 - 124667 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-01 07:43:21,551 - 124667 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150586 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 07:43:21,834 - 124667 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-01 07:43:21,834 - 124667 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150586 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 07:43:22,103 - 124667 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-01 07:43:22,103 - 124667 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150586 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 07:43:22,513 - 124667 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-01 07:43:22,513 - 124667 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-01 07:43:22,513 - 124667 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 6 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 07:43:22,838 - 124667 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 6) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-07-01 07:43:23,968 - 124667 - src.utils.log - INFO - βœ… All 6 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-07-01 07:43:23,968 - 124667 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 6 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-07-01 11:58:39.763' and ServiceSetupId = 150586... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 07:43:24,306 - 124667 - src.utils.log - INFO - βœ… Fetched 6 rows - __SPLIT__ 2026-07-01 07:43:24,307 - 124667 - src.utils.log - INFO - Id's of work order inserted to DB: [3680907 3680908 3680909 3680910 3680911 3680912] - __SPLIT__ 2026-07-01 07:43:24,307 - 124667 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150586;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 07:43:24,573 - 124667 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-01 07:43:24,574 - 124667 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-07-01 07:43:24,574 - 124667 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId = 150586... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 07:43:24,842 - 124667 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-01 07:43:24,842 - 124667 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId = 150586... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 07:43:25,107 - 124667 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-01 07:43:25,114 - 124667 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId = 150586... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 07:43:25,388 - 124667 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-01 07:43:25,390 - 124667 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId = 150586... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 07:43:25,654 - 124667 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-01 07:43:25,655 - 124667 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId = 150586... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 07:43:25,920 - 124667 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-01 07:43:25,920 - 124667 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId = 150586;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 07:43:26,186 - 124667 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-01 07:43:26,187 - 124667 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId = 150586;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 07:43:26,451 - 124667 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-01 07:43:26,451 - 124667 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId = 150586;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 07:43:26,837 - 124667 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-01 07:43:26,838 - 124667 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId = 150586;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 07:43:27,105 - 124667 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-01 07:43:27,120 - 124667 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-07-01 07:43:27,120 - 124667 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-07-01 07:43:27,120 - 124667 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-07-01 07:43:27,120 - 124667 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.CommunicationPreferencesServiceReportNotification: - __SPLIT__ 2026-07-01 07:43:27,120 - 124667 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-07-01 07:43:27,120 - 124667 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SetupAutoGenerationSourceMapping: - __SPLIT__ 2026-07-01 07:43:27,120 - 124667 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-07-01 07:43:27,121 - 124667 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationAppliedDiscount: - __SPLIT__ 2026-07-01 07:43:27,121 - 124667 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-07-01 07:43:27,121 - 124667 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SubWorkOrderAutoGeneration: - __SPLIT__ 2026-07-01 07:43:27,121 - 124667 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-07-01 07:43:27,121 - 124667 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: - __SPLIT__ 2026-07-01 07:43:27,121 - 124667 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-07-01 07:43:27,121 - 124667 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: - __SPLIT__ 2026-07-01 07:43:27,121 - 124667 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-07-01 07:43:27,121 - 124667 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-01 07:43:27,121 - 124667 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3680907, 3680908, 3680909, 3680910, 3680911, 3680912) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 07:43:27,386 - 124667 - src.utils.log - INFO - βœ… Fetched 6 rows - __SPLIT__ 2026-07-01 07:43:27,387 - 124667 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationCrews: 6 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 07:43:27,683 - 124667 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 6) into ServiceCore.WorkOrderAutoGenerationCrews - __SPLIT__ 2026-07-01 07:43:28,624 - 124667 - src.utils.log - INFO - βœ… All 6 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationCrews in 1 batches - __SPLIT__ 2026-07-01 07:43:28,624 - 124667 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-07-01 07:43:28,624 - 124667 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-01 07:43:28,624 - 124667 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 3680907 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 07:43:28,889 - 124667 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-01 07:43:28,890 - 124667 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 07:43:29,189 - 124667 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-07-01 07:43:30,125 - 124667 - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-07-01 07:43:30,125 - 124667 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-07-01 07:43:30,125 - 124667 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-01 07:43:30,125 - 124667 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3680908, 3680909, 3680910, 3680911, 3680912) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 07:43:30,390 - 124667 - src.utils.log - INFO - βœ… Fetched 5 rows - __SPLIT__ 2026-07-01 07:43:30,391 - 124667 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 5 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 07:43:30,663 - 124667 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 5) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-07-01 07:43:31,607 - 124667 - src.utils.log - INFO - βœ… All 5 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-07-01 07:43:31,608 - 124667 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-07-01 07:43:31,608 - 124667 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 124667;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 07:43:31,873 - 124667 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-01 07:43:31,873 - 124667 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-07-01 07:43:31,873 - 124667 - src.utils.log - INFO - Time took to perform operation: 19.49 - __SPLIT__ 2026-07-01 07:44:14,764 - [124667] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[3680907, 3680908, 3680909, 3680910, 3680911, 3680912] user_id=43135 company_id=133 project_id=[124667] publish_all=False - __SPLIT__ 2026-07-01 07:44:14,765 - [124667] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[3680907, 3680908, 3680909, 3680910, 3680911, 3680912] user_id=43135 company_id=133 project_id=[124667] publish_all=False - __SPLIT__ 2026-07-01 07:44:14,765 - [124667] - src.utils.log - INFO - Sequential Work order publish in progress for GenerateWorkOrderHistoryId: [124667] - __SPLIT__ 2026-07-01 07:44:14,766 - [124667] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-01 07:44:14,766 - [124667] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 07:44:16,932 - [124667] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-01 07:44:16,932 - [124667] - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-07-01 07:44:16,933 - [124667] - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-07-01 07:44:16,933 - [124667] - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-07-01 07:44:16,933 - [124667] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'InProgress' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124667;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 07:44:18,783 - [124667] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-01 07:44:18,783 - [124667] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (3680907, 3680908, 3680909, 3680910, 3680911, 3680912)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 07:44:19,052 - [124667] - src.utils.log - INFO - βœ… Fetched 6 rows - __SPLIT__ 2026-07-01 07:44:19,053 - [124667] - src.utils.log - INFO - Inside get_work_order_table - __SPLIT__ 2026-07-01 07:44:19,053 - [124667] - 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 = 150586 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 07:44:19,336 - [124667] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-01 07:44:19,336 - [124667] - 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 = 150586 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 07:44:19,610 - [124667] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-01 07:44:19,611 - [124667] - 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 = 150586 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 07:44:19,891 - [124667] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-01 07:44:19,895 - [124667] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder,BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 07:44:20,159 - [124667] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-01 07:44:20,159 - [124667] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 133 AND EnitityNumberType in ('WorkOrder','Invoice'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 07:44:20,425 - [124667] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-01 07:44:20,425 - [124667] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder, BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 07:44:20,688 - [124667] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-01 07:44:20,689 - [124667] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 6 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 133 AND EnitityNumberType = 'WorkOrder'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 07:44:20,957 - [124667] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-01 07:44:20,957 - [124667] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 6 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 133 AND EnitityNumberType = 'Invoice'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 07:44:21,225 - [124667] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-01 07:44:21,229 - [124667] - 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 = 150586... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 07:44:21,499 - [124667] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-01 07:44:21,503 - [124667] - src.utils.log - INFO - πŸ” Fetching data: SELECT x.CompanyId FROM CRM.CompanyMaster x WHERE CompanyKey = 'abcdallas';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 07:44:21,766 - [124667] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-01 07:44:21,767 - [124667] - src.utils.log - INFO - πŸ” Fetching data: SELECT CollectionStatus,IsHold,AccountNo FROM CRM.Account a WHERE a.AccountNo = '14979' and a.CompanyId = 121;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 07:44:22,030 - [124667] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-01 07:44:22,033 - [124667] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderNo FROM ServiceCore.WorkOrder WHERE WorkOrderNo IN ('1427129', '1427130', '1427131', '1427132', '1427133', '1427134') AND CompanyId = 133 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 07:44:22,303 - [124667] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-01 07:44:22,303 - [124667] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrder (skip triggers): 6 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 07:44:22,737 - [124667] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 6) into ServiceCore.WorkOrder (triggers skipped) - __SPLIT__ 2026-07-01 07:44:23,911 - [124667] - src.utils.log - INFO - βœ… All 6 rows inserted successfully into ServiceCore.WorkOrder in 1 batches (triggers skipped) - __SPLIT__ 2026-07-01 07:44:24,043 - [124667] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-07-01 07:44:24,044 - [124667] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.ServiceSetup SET IsInitialWoGenerated = 1 WHERE CompanyId = 133 AND ServiceSetupId = 150586;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 07:44:24,315 - [124667] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-01 07:44:24,316 - [124667] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkorderId, WorkOrderNo FROM ServiceCore.WorkOrder wo WHERE wo.WorkOrderNo IN ('1427129', '1427130', '1427131', '1427132', '1427133', '1427134') AND wo.AccountNumber = '14979' AND wo.CompanyId = 133 ... (Thread: ThreadPoolExecutor-0_0) - __SPLIT__ 2026-07-01 07:44:24,588 - [124667] - src.utils.log - INFO - βœ… Fetched 6 rows - __SPLIT__ 2026-07-01 07:44:24,589 - [124667] - src.utils.log - INFO - Sequential fetching temp table records - __SPLIT__ 2026-07-01 07:44:24,589 - [124667] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationServices woag WHERE woag.WorkOrderAutoGenerationId in (3680907, 3680908, 3680909, 3680910, 3680911, 3680912)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 07:44:24,913 - [124667] - src.utils.log - INFO - βœ… Fetched 6 rows - __SPLIT__ 2026-07-01 07:44:24,914 - [124667] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SubWorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (3680907, 3680908, 3680909, 3680910, 3680911, 3680912)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 07:44:25,182 - [124667] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-01 07:44:25,183 - [124667] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationCrews woag WHERE woag.WorkOrderAutoGenerationId in (3680907, 3680908, 3680909, 3680910, 3680911, 3680912)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 07:44:25,488 - [124667] - src.utils.log - INFO - βœ… Fetched 6 rows - __SPLIT__ 2026-07-01 07:44:25,488 - [124667] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationSalesPersonCommission woag WHERE woag.WorkOrderAutoGenerationId in (3680907, 3680908, 3680909, 3680910, 3680911, 3680912)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 07:44:25,754 - [124667] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-01 07:44:25,754 - [124667] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupAutoGenerationSourceMapping woag WHERE woag.WorkOrderAutoGenerationId in (3680907, 3680908, 3680909, 3680910, 3680911, 3680912)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 07:44:26,023 - [124667] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-01 07:44:26,023 - [124667] - 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 (3680907, 3680908, 3680909, 3680910, 3680911, 3680912)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 07:44:26,328 - [124667] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-01 07:44:26,328 - [124667] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from CRM.LeadNote woag WHERE woag.RefId in (3680907, 3680908, 3680909, 3680910, 3680911, 3680912) and woag.RefType = 'TempWorkorder';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 07:44:26,595 - [124667] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-01 07:44:26,595 - [124667] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment woagca WHERE woagca.WorkOrderAutoGenerationId in (3680907, 3680908, 3680909, 3680910, 3680911, 3680912);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 07:44:26,861 - [124667] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-01 07:44:26,863 - [124667] - src.utils.log - INFO - Updating temp tables - __SPLIT__ 2026-07-01 07:44:26,876 - [124667] - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyKey FROM Common.CompanyMaster cm WHERE CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 07:44:27,138 - [124667] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-01 07:44:27,139 - [124667] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 133 AND EnitityNumberType in ('SubWorkOrder'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 07:44:27,405 - [124667] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-01 07:44:27,409 - [124667] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-01 07:44:27,409 - [124667] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishHistory: 6 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 07:44:27,698 - [124667] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 6) into ServiceCore.WorkOrderAutoGenerationPublishHistory - __SPLIT__ 2026-07-01 07:44:28,670 - [124667] - src.utils.log - INFO - βœ… All 6 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishHistory in 1 batches - __SPLIT__ 2026-07-01 07:44:28,672 - [124667] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationPublishHistoryId, WorkOrderNo, ServiceSetupId FROM ServiceCore.WorkOrderAutoGenerationPublishHistory WHERE ServiceSetupId = 150586 AND WorkOrderNo IN ('449137', '6638019', '1772060', '8696657', '9637724', '7435415') AND GenerateWorkOrderHistoryId = 124667;... (Thread: ThreadPoolExecutor-1_0) - __SPLIT__ 2026-07-01 07:44:29,168 - [124667] - src.utils.log - INFO - βœ… Fetched 6 rows - __SPLIT__ 2026-07-01 07:44:29,169 - [124667] - src.utils.log - INFO - 🏁 Final merged rows: 6 - __SPLIT__ 2026-07-01 07:44:29,175 - [124667] - src.utils.log - INFO - Sequential Insertion in work order tables begin - __SPLIT__ 2026-07-01 07:44:29,175 - [124667] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-01 07:44:29,175 - [124667] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderServices: 6 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 07:44:29,447 - [124667] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 6) into ServiceCore.WorkOrderServices - __SPLIT__ 2026-07-01 07:44:30,395 - [124667] - src.utils.log - INFO - βœ… All 6 rows inserted successfully into ServiceCore.WorkOrderServices in 1 batches - __SPLIT__ 2026-07-01 07:44:30,395 - [124667] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderAppliedDiscount: - __SPLIT__ 2026-07-01 07:44:30,395 - [124667] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderSalesPersonCommission: - __SPLIT__ 2026-07-01 07:44:30,395 - [124667] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderCommissionAdjustment: - __SPLIT__ 2026-07-01 07:44:30,395 - [124667] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-01 07:44:30,396 - [124667] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderCrew: 6 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 07:44:30,664 - [124667] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 6) into ServiceCore.WorkOrderCrew - __SPLIT__ 2026-07-01 07:44:31,601 - [124667] - src.utils.log - INFO - βœ… All 6 rows inserted successfully into ServiceCore.WorkOrderCrew in 1 batches - __SPLIT__ 2026-07-01 07:44:31,602 - [124667] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkorderSourceMapping: - __SPLIT__ 2026-07-01 07:44:31,602 - [124667] - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-07-01 07:44:31,602 - [124667] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-01 07:44:31,602 - [124667] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishServices: 6 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 07:44:31,873 - [124667] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 6) into ServiceCore.WorkOrderAutoGenerationPublishServices - __SPLIT__ 2026-07-01 07:44:32,818 - [124667] - src.utils.log - INFO - βœ… All 6 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishServices in 1 batches - __SPLIT__ 2026-07-01 07:44:32,818 - [124667] - 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 = 150586... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 07:44:33,084 - [124667] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-01 07:44:33,091 - [124667] - src.utils.log - INFO - Size of Transaction: 6 - __SPLIT__ 2026-07-01 07:44:33,092 - [124667] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 6 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 07:44:33,493 - [124667] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 6) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-07-01 07:44:34,428 - [124667] - src.utils.log - INFO - βœ… All 6 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-07-01 07:44:34,560 - [124667] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-07-01 07:44:34,561 - [124667] - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionId, ModifiedBy, TransactionDate as InvoiceDate from Billing.[Transaction] t WHERE t.ModifiedBy in (12345678910, 12345678911, 12345678912, 12345678913, 12345678914, 12345678915) and t.CompanyId = 133 AND t.TransactionType ='Invoice' AND t.CreatedDate = '2026-07-01 03:44:33.086';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 07:44:35,006 - [124667] - src.utils.log - INFO - βœ… Fetched 6 rows - __SPLIT__ 2026-07-01 07:44:35,009 - [124667] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150586;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 07:44:35,274 - [124667] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-01 07:44:35,282 - [124667] - src.utils.log - INFO - πŸ“ Executing: UPDATE Billing.[Transaction] SET ModifiedBy = NULL WHERE ModifiedBy IN (12345678910,12345678911,12345678912,12345678913,12345678914,12345678915) AND CreatedDate = '2026-07-01 03:44:33.086'; ... (Thread: ThreadPoolExecutor-2_0) - __SPLIT__ 2026-07-01 07:44:35,670 - [124667] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-01 07:44:35,676 - [124667] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-01 07:44:35,676 - [124667] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 6 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 07:44:35,949 - [124667] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 6) into Billing.Invoice - __SPLIT__ 2026-07-01 07:44:36,925 - [124667] - src.utils.log - INFO - βœ… All 6 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-07-01 07:44:36,926 - [124667] - src.utils.log - INFO - πŸ” Fetching data: SELECT InvoiceId, WorkOrderNo FROM Billing.Invoice i WHERE i.WorkOrderNo in ('1427129', '1427134', '1427133', '1427132', '1427131', '1427130')... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 07:44:38,156 - [124667] - src.utils.log - INFO - βœ… Fetched 6 rows - __SPLIT__ 2026-07-01 07:44:38,166 - [124667] - 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 = 150586 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 07:44:38,434 - [124667] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-01 07:44:38,435 - [124667] - 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 = 150586 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 07:44:38,702 - [124667] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-01 07:44:38,703 - [124667] - 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 = 150586 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 07:44:38,974 - [124667] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-01 07:44:38,975 - [124667] - 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 = 150586 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 07:44:39,242 - [124667] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-01 07:44:39,257 - [124667] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150586;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 07:44:39,523 - [124667] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-01 07:44:39,528 - [124667] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId, AppliedDiscountAmt as AppliedDiscountAmount,IsActive ,ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 150586;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 07:44:39,794 - [124667] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-01 07:44:39,798 - [124667] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId,IsActive,DiscountAmount, IsDiscountPercent,DiscountPercent,DiscountDescription , ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 150586;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 07:44:40,064 - [124667] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-01 07:44:40,065 - [124667] - src.utils.log - INFO - Sequential Insertion in invoice tables begin - __SPLIT__ 2026-07-01 07:44:40,065 - [124667] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.AccountDiscountSetup: - __SPLIT__ 2026-07-01 07:44:40,065 - [124667] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-01 07:44:40,065 - [124667] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceCharges: 6 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 07:44:40,336 - [124667] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 6) into Billing.InvoiceCharges - __SPLIT__ 2026-07-01 07:44:41,485 - [124667] - src.utils.log - INFO - βœ… All 6 rows inserted successfully into Billing.InvoiceCharges in 1 batches - __SPLIT__ 2026-07-01 07:44:41,486 - [124667] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.DiscountApplied: - __SPLIT__ 2026-07-01 07:44:41,486 - [124667] - src.utils.log - INFO - Invoice Publish Done - __SPLIT__ 2026-07-01 07:44:41,486 - [124667] - src.utils.log - INFO - Updating Next GenerationDate - __SPLIT__ 2026-07-01 07:44:41,486 - [124667] - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, MAX(NextWorkOrderGenerationDate) AS MaxNextWorkOrderGeneration FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 124667 GROUP BY ServiceSetupId; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 07:44:41,753 - [124667] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-01 07:44:41,759 - [124667] - src.utils.log - INFO - πŸ”„ Updating next gen date sequentially: inside update_next_workorder_generation - __SPLIT__ 2026-07-01 07:44:41,892 - [124667] - src.utils.log - INFO - πŸ›  Creating temp table #tbl_73ec091ff9 - __SPLIT__ 2026-07-01 07:44:42,158 - [124667] - src.utils.log - INFO - πŸ“Œ Bulk inserting 1 rows into #tbl_73ec091ff9 - __SPLIT__ 2026-07-01 07:44:42,422 - [124667] - src.utils.log - INFO - πŸ” Running MERGE update to apply changes - __SPLIT__ 2026-07-01 07:44:42,565 - [124667] - src.utils.log - INFO - βœ” SQL reported affected rows: 1 - __SPLIT__ 2026-07-01 07:44:42,706 - [124667] - src.utils.log - INFO - πŸ” Verified successfully updated 1 rows via #tbl_73ec091ff9 - __SPLIT__ 2026-07-01 07:44:42,706 - [124667] - src.utils.log - INFO - πŸŽ‰ Successfully updated NextGenerationDate using temp table #tbl_73ec091ff9 - __SPLIT__ 2026-07-01 07:44:42,706 - [124667] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 124667 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 07:44:42,970 - [124667] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-01 07:44:42,970 - [124667] - src.utils.log - INFO - Sequential deletion from temp tables begin - __SPLIT__ 2026-07-01 07:44:42,970 - [124667] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId in (3680907, 3680908, 3680909, 3680910, 3680911, 3680912) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 07:44:43,413 - [124667] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-01 07:44:43,413 - [124667] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId in (3680907, 3680908, 3680909, 3680910, 3680911, 3680912) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 07:44:43,789 - [124667] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-01 07:44:43,789 - [124667] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId in (3680907, 3680908, 3680909, 3680910, 3680911, 3680912) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 07:44:44,055 - [124667] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-01 07:44:44,056 - [124667] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId in (3680907, 3680908, 3680909, 3680910, 3680911, 3680912) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 07:44:44,421 - [124667] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-01 07:44:44,422 - [124667] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId in (3680907, 3680908, 3680909, 3680910, 3680911, 3680912) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 07:44:44,693 - [124667] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-01 07:44:44,694 - [124667] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (3680907, 3680908, 3680909, 3680910, 3680911, 3680912) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 07:44:44,963 - [124667] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-01 07:44:44,964 - [124667] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId in (3680907, 3680908, 3680909, 3680910, 3680911, 3680912) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 07:44:45,228 - [124667] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-01 07:44:45,229 - [124667] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (3680907, 3680908, 3680909, 3680910, 3680911, 3680912) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 07:44:45,847 - [124667] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-01 07:44:45,847 - [124667] - src.utils.log - INFO - Work order published ids: (3680907, 3680908, 3680909, 3680910, 3680911, 3680912) - __SPLIT__ 2026-07-01 07:44:45,848 - [124667] - src.utils.log - INFO - Time took to perform operation in publishing [124667]: 31.08 - __SPLIT__ 2026-07-01 07:44:45,848 - [124667] - src.utils.log - INFO - Publish Completed for GenerateWorkOrderHistoryId: [124667] - __SPLIT__ 2026-07-01 07:44:45,848 - [124667] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-07-01 03:44:45.847' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124667;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 07:44:46,116 - [124667] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-01 08:31:55,604 - 124669 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=124669 - __SPLIT__ 2026-07-01 08:31:55,605 - 124669 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 124669 - __SPLIT__ 2026-07-01 08:31:55,620 - 124669 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-01 08:31:55,620 - 124669 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 08:31:58,469 - 124669 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-01 08:31:58,470 - 124669 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-07-01 08:31:58,470 - 124669 - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-07-01 08:31:58,471 - 124669 - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-07-01 08:31:58,471 - 124669 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 124669;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 08:32:00,860 - 124669 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-01 08:32:00,860 - 124669 - 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 = 124669), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 124669), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 124669 AND ss.FrequencyScheduleId IS NOT NULL AND ss.IsActive = 1 AND ss.IsDeleted = 0 AND ss.Status <> 'Canceled' AND ((ss.OrderType = gw.OrderType) OR gw.OrderType IS NULL);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 08:32:01,177 - 124669 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-01 08:32:01,178 - 124669 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 124669;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 08:32:01,444 - 124669 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-01 08:32:01,448 - 124669 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-07-01 08:32:01,449 - 124669 - src.utils.log - INFO - πŸ” Fetching data: SELECT fsd.IntervalDays, fs.CreatedDate ,f.FrequencyId , fs.FrequencyScheduleId, f.[SysName], f.FrequencyValue, f.YearlyOccurrence , fs.ScheduleFormat,fsd.Days, fsd.Weeks, fsd.Months,fsc.[Month] as sch_months, fsd.StartMonth , fsd.DateDay,fsd.DateMonth FROM [ServiceCore].[FrequencyMaster] f inner join [ServiceCore].[FrequencySchedule] fs on fs.FrequencyId = f.FrequencyId left join ServiceCore.FrequencyScheduleCycle fsc on fsc.FrequencyScheduleId = fs.FrequencyScheduleId left join [ServiceCore].[FrequencyScheduleDetail] fsd on fsd.FrequencyScheduleId = fs.FrequencyScheduleId WHERE fsd.FrequencyScheduleId = 14632... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 08:32:01,727 - 124669 - src.utils.log - INFO - βœ… Fetched 60 rows - __SPLIT__ 2026-07-01 08:32:01,727 - 124669 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-07-01 08:32:01,731 - 124669 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-07-01 08:32:01,731 - 124669 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150587;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 08:32:01,998 - 124669 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-01 08:32:01,998 - 124669 - src.utils.log - INFO - πŸ” Fetching data: select ServiceDate, ServiceSetupId, IsInitial from serviceCore.WorkOrder wo inner join ServiceCore.WorkOrderStatus wos on wo.WoStatusId = wos.WoStatusId where ServiceDate >= '2026-07-01 00:00:00' and ServiceDate <= '2026-09-30 00:00:00' and ServiceSetupId = 150587 and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 08:32:02,272 - 124669 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-01 08:32:02,832 - 124669 - src.utils.log - INFO - Generating work orders for setup: 150587 - __SPLIT__ 2026-07-01 08:32:02,867 - 124669 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 11428;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 08:32:03,132 - 124669 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-01 08:32:03,182 - 124669 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-07-01 08:32:03,191 - 124669 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=133 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 08:32:03,455 - 124669 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-01 08:32:03,457 - 124669 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-07-01 08:32:03,457 - 124669 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-07-01 08:32:03,457 - 124669 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150587 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 08:32:03,828 - 124669 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-01 08:32:03,828 - 124669 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150587 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 08:32:04,189 - 124669 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-01 08:32:04,189 - 124669 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150587 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 08:32:04,465 - 124669 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-01 08:32:04,465 - 124669 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150587 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 08:32:04,829 - 124669 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-01 08:32:04,829 - 124669 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150587 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 08:32:05,168 - 124669 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-01 08:32:05,168 - 124669 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150587 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 08:32:05,450 - 124669 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-01 08:32:05,450 - 124669 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150587 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 08:32:05,721 - 124669 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-01 08:32:05,722 - 124669 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150587 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 08:32:06,307 - 124669 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-01 08:32:06,307 - 124669 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-01 08:32:06,307 - 124669 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 5 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 08:32:06,609 - 124669 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 5) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-07-01 08:32:07,732 - 124669 - src.utils.log - INFO - βœ… All 5 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-07-01 08:32:07,733 - 124669 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 5 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-07-01 11:58:39.676' and ServiceSetupId = 150587... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 08:32:08,065 - 124669 - src.utils.log - INFO - βœ… Fetched 5 rows - __SPLIT__ 2026-07-01 08:32:08,065 - 124669 - src.utils.log - INFO - Id's of work order inserted to DB: [3680918 3680919 3680920 3680921 3680922] - __SPLIT__ 2026-07-01 08:32:08,066 - 124669 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150587;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 08:32:08,332 - 124669 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-01 08:32:08,332 - 124669 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-07-01 08:32:08,333 - 124669 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId = 150587... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 08:32:08,601 - 124669 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-01 08:32:08,601 - 124669 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId = 150587... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 08:32:08,867 - 124669 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-01 08:32:08,874 - 124669 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId = 150587... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 08:32:09,148 - 124669 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-01 08:32:09,149 - 124669 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId = 150587... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 08:32:09,417 - 124669 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-01 08:32:09,417 - 124669 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId = 150587... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 08:32:09,683 - 124669 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-01 08:32:09,683 - 124669 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId = 150587;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 08:32:09,949 - 124669 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-01 08:32:09,950 - 124669 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId = 150587;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 08:32:10,216 - 124669 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-01 08:32:10,216 - 124669 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId = 150587;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 08:32:10,627 - 124669 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-01 08:32:10,628 - 124669 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId = 150587;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 08:32:10,895 - 124669 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-01 08:32:10,908 - 124669 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-07-01 08:32:10,908 - 124669 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-07-01 08:32:10,908 - 124669 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-07-01 08:32:10,908 - 124669 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.CommunicationPreferencesServiceReportNotification: - __SPLIT__ 2026-07-01 08:32:10,908 - 124669 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-07-01 08:32:10,908 - 124669 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SetupAutoGenerationSourceMapping: - __SPLIT__ 2026-07-01 08:32:10,908 - 124669 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-07-01 08:32:10,908 - 124669 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationAppliedDiscount: - __SPLIT__ 2026-07-01 08:32:10,908 - 124669 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-07-01 08:32:10,909 - 124669 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SubWorkOrderAutoGeneration: - __SPLIT__ 2026-07-01 08:32:10,909 - 124669 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-07-01 08:32:10,909 - 124669 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: - __SPLIT__ 2026-07-01 08:32:10,909 - 124669 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-07-01 08:32:10,909 - 124669 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: - __SPLIT__ 2026-07-01 08:32:10,909 - 124669 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-07-01 08:32:10,909 - 124669 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-01 08:32:10,909 - 124669 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3680918, 3680919, 3680920, 3680921, 3680922) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 08:32:11,176 - 124669 - src.utils.log - INFO - βœ… Fetched 5 rows - __SPLIT__ 2026-07-01 08:32:11,177 - 124669 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationCrews: 5 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 08:32:11,447 - 124669 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 5) into ServiceCore.WorkOrderAutoGenerationCrews - __SPLIT__ 2026-07-01 08:32:12,388 - 124669 - src.utils.log - INFO - βœ… All 5 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationCrews in 1 batches - __SPLIT__ 2026-07-01 08:32:12,388 - 124669 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-07-01 08:32:12,389 - 124669 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationServices: - __SPLIT__ 2026-07-01 08:32:12,389 - 124669 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-07-01 08:32:12,389 - 124669 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-01 08:32:12,389 - 124669 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3680918, 3680919, 3680920, 3680921, 3680922) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 08:32:12,654 - 124669 - src.utils.log - INFO - βœ… Fetched 5 rows - __SPLIT__ 2026-07-01 08:32:12,655 - 124669 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 5 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 08:32:12,928 - 124669 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 5) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-07-01 08:32:13,867 - 124669 - src.utils.log - INFO - βœ… All 5 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-07-01 08:32:13,867 - 124669 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-07-01 08:32:13,867 - 124669 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 124669;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 08:32:14,133 - 124669 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-01 08:32:14,133 - 124669 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-07-01 08:32:14,133 - 124669 - src.utils.log - INFO - Time took to perform operation: 18.53 - __SPLIT__ 2026-07-01 08:32:35,160 - [124669] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[3680918] user_id=43135 company_id=133 project_id=[124669] publish_all=False - __SPLIT__ 2026-07-01 08:32:35,161 - [124669] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[3680918] user_id=43135 company_id=133 project_id=[124669] publish_all=False - __SPLIT__ 2026-07-01 08:32:35,161 - [124669] - src.utils.log - INFO - Sequential Work order publish in progress for GenerateWorkOrderHistoryId: [124669] - __SPLIT__ 2026-07-01 08:32:35,162 - [124669] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-01 08:32:35,162 - [124669] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 08:32:37,353 - [124669] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-01 08:32:37,354 - [124669] - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-07-01 08:32:37,354 - [124669] - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-07-01 08:32:37,356 - [124669] - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-07-01 08:32:37,356 - [124669] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'InProgress' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124669;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 08:32:39,197 - [124669] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-01 08:32:39,197 - [124669] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId = 3680918... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 08:32:39,465 - [124669] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-01 08:32:39,466 - [124669] - src.utils.log - INFO - Inside get_work_order_table - __SPLIT__ 2026-07-01 08:32:39,466 - [124669] - 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 = 150587 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 08:32:39,742 - [124669] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-01 08:32:39,742 - [124669] - 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 = 150587 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 08:32:40,016 - [124669] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-01 08:32:40,017 - [124669] - 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 = 150587 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 08:32:40,295 - [124669] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-01 08:32:40,299 - [124669] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder,BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 08:32:40,561 - [124669] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-01 08:32:40,561 - [124669] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 133 AND EnitityNumberType in ('WorkOrder','Invoice'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 08:32:40,829 - [124669] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-01 08:32:40,829 - [124669] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder, BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 08:32:41,094 - [124669] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-01 08:32:41,095 - [124669] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 1 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 133 AND EnitityNumberType = 'WorkOrder'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 08:32:41,362 - [124669] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-01 08:32:41,363 - [124669] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 1 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 133 AND EnitityNumberType = 'Invoice'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 08:32:41,630 - [124669] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-01 08:32:41,634 - [124669] - 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 = 150587... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 08:32:41,904 - [124669] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-01 08:32:41,906 - [124669] - src.utils.log - INFO - πŸ” Fetching data: SELECT x.CompanyId FROM CRM.CompanyMaster x WHERE CompanyKey = 'abcdallas';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 08:32:42,169 - [124669] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-01 08:32:42,170 - [124669] - src.utils.log - INFO - πŸ” Fetching data: SELECT CollectionStatus,IsHold,AccountNo FROM CRM.Account a WHERE a.AccountNo = '14980' and a.CompanyId = 121;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 08:32:42,432 - [124669] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-01 08:32:42,435 - [124669] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderNo FROM ServiceCore.WorkOrder WHERE WorkOrderNo = '1427138' AND CompanyId = 133 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 08:32:42,700 - [124669] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-01 08:32:42,701 - [124669] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrder (skip triggers): 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 08:32:43,132 - [124669] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrder (triggers skipped) - __SPLIT__ 2026-07-01 08:32:44,102 - [124669] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrder in 1 batches (triggers skipped) - __SPLIT__ 2026-07-01 08:32:44,233 - [124669] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-07-01 08:32:44,235 - [124669] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkorderId, WorkOrderNo FROM ServiceCore.WorkOrder wo WHERE wo.WorkOrderNo = '1427138' AND wo.AccountNumber = '14980' AND wo.CompanyId = 133 ... (Thread: ThreadPoolExecutor-8_0) - __SPLIT__ 2026-07-01 08:32:44,505 - [124669] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-01 08:32:44,505 - [124669] - src.utils.log - INFO - Sequential fetching temp table records - __SPLIT__ 2026-07-01 08:32:44,506 - [124669] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationServices woag WHERE woag.WorkOrderAutoGenerationId = 3680918... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 08:32:44,812 - [124669] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-01 08:32:44,812 - [124669] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SubWorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId = 3680918... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 08:32:45,079 - [124669] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-01 08:32:45,079 - [124669] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationCrews woag WHERE woag.WorkOrderAutoGenerationId = 3680918... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 08:32:45,364 - [124669] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-01 08:32:45,365 - [124669] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationSalesPersonCommission woag WHERE woag.WorkOrderAutoGenerationId = 3680918... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 08:32:45,629 - [124669] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-01 08:32:45,630 - [124669] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupAutoGenerationSourceMapping woag WHERE woag.WorkOrderAutoGenerationId = 3680918... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 08:32:45,895 - [124669] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-01 08:32:45,895 - [124669] - 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 = 3680918... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 08:32:46,191 - [124669] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-01 08:32:46,191 - [124669] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from CRM.LeadNote woag WHERE woag.RefId = 3680918 and woag.RefType = 'TempWorkorder';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 08:32:46,457 - [124669] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-01 08:32:46,457 - [124669] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment woagca WHERE woagca.WorkOrderAutoGenerationId = 3680918;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 08:32:46,721 - [124669] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-01 08:32:46,724 - [124669] - src.utils.log - INFO - Updating temp tables - __SPLIT__ 2026-07-01 08:32:46,736 - [124669] - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyKey FROM Common.CompanyMaster cm WHERE CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 08:32:46,999 - [124669] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-01 08:32:47,000 - [124669] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 133 AND EnitityNumberType in ('SubWorkOrder'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 08:32:47,263 - [124669] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-01 08:32:47,266 - [124669] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-01 08:32:47,267 - [124669] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishHistory: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 08:32:47,555 - [124669] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderAutoGenerationPublishHistory - __SPLIT__ 2026-07-01 08:32:48,499 - [124669] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishHistory in 1 batches - __SPLIT__ 2026-07-01 08:32:48,500 - [124669] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationPublishHistoryId, WorkOrderNo, ServiceSetupId FROM ServiceCore.WorkOrderAutoGenerationPublishHistory WHERE ServiceSetupId = 150587 AND WorkOrderNo = '5121839' AND GenerateWorkOrderHistoryId = 124669; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 08:32:48,986 - [124669] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-01 08:32:48,992 - [124669] - src.utils.log - INFO - Sequential Insertion in work order tables begin - __SPLIT__ 2026-07-01 08:32:48,992 - [124669] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-01 08:32:48,992 - [124669] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderServices: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 08:32:49,263 - [124669] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderServices - __SPLIT__ 2026-07-01 08:32:50,201 - [124669] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderServices in 1 batches - __SPLIT__ 2026-07-01 08:32:50,201 - [124669] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderAppliedDiscount: - __SPLIT__ 2026-07-01 08:32:50,201 - [124669] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderSalesPersonCommission: - __SPLIT__ 2026-07-01 08:32:50,201 - [124669] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderCommissionAdjustment: - __SPLIT__ 2026-07-01 08:32:50,202 - [124669] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-01 08:32:50,202 - [124669] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderCrew: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 08:32:50,470 - [124669] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderCrew - __SPLIT__ 2026-07-01 08:32:51,400 - [124669] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderCrew in 1 batches - __SPLIT__ 2026-07-01 08:32:51,400 - [124669] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkorderSourceMapping: - __SPLIT__ 2026-07-01 08:32:51,401 - [124669] - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-07-01 08:32:51,401 - [124669] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-01 08:32:51,401 - [124669] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishServices: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 08:32:51,671 - [124669] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderAutoGenerationPublishServices - __SPLIT__ 2026-07-01 08:32:52,603 - [124669] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishServices in 1 batches - __SPLIT__ 2026-07-01 08:32:52,604 - [124669] - 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 = 150587... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 08:32:52,867 - [124669] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-01 08:32:52,874 - [124669] - src.utils.log - INFO - Size of Transaction: 1 - __SPLIT__ 2026-07-01 08:32:52,874 - [124669] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 08:32:53,274 - [124669] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-07-01 08:32:54,202 - [124669] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-07-01 08:32:54,333 - [124669] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-07-01 08:32:54,334 - [124669] - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionId, ModifiedBy, TransactionDate as InvoiceDate from Billing.[Transaction] t WHERE t.ModifiedBy = 12345678910 and t.CompanyId = 133 AND t.TransactionType ='Invoice' AND t.CreatedDate = '2026-07-01 04:32:52.869';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 08:32:54,728 - [124669] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-01 08:32:54,731 - [124669] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150587;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 08:32:54,995 - [124669] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-01 08:32:55,003 - [124669] - src.utils.log - INFO - πŸ“ Executing: UPDATE Billing.[Transaction] SET ModifiedBy = NULL WHERE ModifiedBy = 12345678910 AND CreatedDate = '2026-07-01 04:32:52.869'; ... (Thread: ThreadPoolExecutor-9_0) - __SPLIT__ 2026-07-01 08:32:56,046 - [124669] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-01 08:32:56,050 - [124669] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-01 08:32:56,051 - [124669] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 08:32:56,324 - [124669] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into Billing.Invoice - __SPLIT__ 2026-07-01 08:32:57,342 - [124669] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-07-01 08:32:57,342 - [124669] - src.utils.log - INFO - πŸ” Fetching data: SELECT InvoiceId, WorkOrderNo FROM Billing.Invoice i WHERE i.WorkOrderNo = '1427138'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 08:32:58,247 - [124669] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-01 08:32:58,256 - [124669] - 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 = 150587 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 08:32:58,525 - [124669] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-01 08:32:58,525 - [124669] - 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 = 150587 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 08:32:58,792 - [124669] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-01 08:32:58,793 - [124669] - 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 = 150587 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 08:32:59,060 - [124669] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-01 08:32:59,060 - [124669] - 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 = 150587 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 08:32:59,328 - [124669] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-01 08:32:59,340 - [124669] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150587;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 08:32:59,604 - [124669] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-01 08:32:59,610 - [124669] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId, AppliedDiscountAmt as AppliedDiscountAmount,IsActive ,ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 150587;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 08:32:59,875 - [124669] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-01 08:32:59,878 - [124669] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId,IsActive,DiscountAmount, IsDiscountPercent,DiscountPercent,DiscountDescription , ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 150587;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 08:33:00,143 - [124669] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-01 08:33:00,143 - [124669] - src.utils.log - INFO - Sequential Insertion in invoice tables begin - __SPLIT__ 2026-07-01 08:33:00,144 - [124669] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.AccountDiscountSetup: - __SPLIT__ 2026-07-01 08:33:00,144 - [124669] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-01 08:33:00,144 - [124669] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceCharges: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 08:33:00,417 - [124669] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into Billing.InvoiceCharges - __SPLIT__ 2026-07-01 08:33:01,348 - [124669] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into Billing.InvoiceCharges in 1 batches - __SPLIT__ 2026-07-01 08:33:01,349 - [124669] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.DiscountApplied: - __SPLIT__ 2026-07-01 08:33:01,349 - [124669] - src.utils.log - INFO - Invoice Publish Done - __SPLIT__ 2026-07-01 08:33:01,349 - [124669] - src.utils.log - INFO - Updating Next GenerationDate - __SPLIT__ 2026-07-01 08:33:01,349 - [124669] - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, MAX(NextWorkOrderGenerationDate) AS MaxNextWorkOrderGeneration FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 124669 GROUP BY ServiceSetupId; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 08:33:01,614 - [124669] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-01 08:33:01,621 - [124669] - src.utils.log - INFO - πŸ”„ Updating next gen date sequentially: inside update_next_workorder_generation - __SPLIT__ 2026-07-01 08:33:01,753 - [124669] - src.utils.log - INFO - πŸ›  Creating temp table #tbl_8ddf00c31c - __SPLIT__ 2026-07-01 08:33:02,019 - [124669] - src.utils.log - INFO - πŸ“Œ Bulk inserting 1 rows into #tbl_8ddf00c31c - __SPLIT__ 2026-07-01 08:33:02,282 - [124669] - src.utils.log - INFO - πŸ” Running MERGE update to apply changes - __SPLIT__ 2026-07-01 08:33:02,423 - [124669] - src.utils.log - INFO - βœ” SQL reported affected rows: 1 - __SPLIT__ 2026-07-01 08:33:02,561 - [124669] - src.utils.log - INFO - πŸ” Verified successfully updated 1 rows via #tbl_8ddf00c31c - __SPLIT__ 2026-07-01 08:33:02,561 - [124669] - src.utils.log - INFO - πŸŽ‰ Successfully updated NextGenerationDate using temp table #tbl_8ddf00c31c - __SPLIT__ 2026-07-01 08:33:02,562 - [124669] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 124669 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 08:33:02,825 - [124669] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-01 08:33:02,825 - [124669] - src.utils.log - INFO - Sequential deletion from temp tables begin - __SPLIT__ 2026-07-01 08:33:02,825 - [124669] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId = 3680918 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 08:33:03,238 - [124669] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-01 08:33:03,239 - [124669] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId = 3680918 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 08:33:03,597 - [124669] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-01 08:33:03,598 - [124669] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId = 3680918 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 08:33:03,862 - [124669] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-01 08:33:03,862 - [124669] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId = 3680918 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 08:33:04,213 - [124669] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-01 08:33:04,213 - [124669] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId = 3680918 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 08:33:04,483 - [124669] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-01 08:33:04,484 - [124669] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 3680918 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 08:33:04,753 - [124669] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-01 08:33:04,753 - [124669] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId = 3680918 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 08:33:05,017 - [124669] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-01 08:33:05,017 - [124669] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 3680918 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 08:33:05,342 - [124669] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-01 08:33:05,343 - [124669] - src.utils.log - INFO - Work order published ids: (3680918,) - __SPLIT__ 2026-07-01 08:33:05,343 - [124669] - src.utils.log - INFO - Time took to perform operation in publishing [124669]: 30.18 - __SPLIT__ 2026-07-01 08:33:05,343 - [124669] - src.utils.log - INFO - Publish Completed for GenerateWorkOrderHistoryId: [124669] - __SPLIT__ 2026-07-01 08:33:05,343 - [124669] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-07-01 04:33:05.343' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124669;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 08:33:05,636 - [124669] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-01 09:43:20,548 - 124670 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=124670 - __SPLIT__ 2026-07-01 09:43:20,549 - 124670 - src.utils.log - INFO - Work order Generation/Publish algo started for GenerateWorkOrderHistoryId: 124670 - __SPLIT__ 2026-07-01 09:43:20,550 - 124670 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-01 09:43:20,551 - 124670 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 09:43:22,712 - 124670 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-01 09:43:22,713 - 124670 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-07-01 09:43:22,713 - 124670 - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-07-01 09:43:22,713 - 124670 - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-07-01 09:43:22,714 - 124670 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 124670;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 09:43:24,554 - 124670 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-01 09:43:24,554 - 124670 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET WoGenStartDateTime = '2026-07-01 05:43:24.554' WHERE GenerateWorkOrderHistoryId = 124670;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 09:43:24,818 - 124670 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-01 09:43:24,818 - 124670 - src.utils.log - INFO - πŸ” Fetching data: Select CreatedBy, CompanyId from ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryId = 124670;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 09:43:25,082 - 124670 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-01 09:43:25,083 - 124670 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'New', WoPublishStartDateTime = '2026-07-01 05:43:25.083' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124670;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 09:43:25,346 - 124670 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-01 09:43:25,346 - 124670 - 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 = 124670), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 124670), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 124670 AND ss.FrequencyScheduleId IS NOT NULL AND ss.IsActive = 1 AND ss.IsDeleted = 0 AND ss.Status <> 'Canceled' AND ((ss.OrderType = gw.OrderType) OR gw.OrderType IS NULL);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 09:43:25,659 - 124670 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-01 09:43:25,659 - 124670 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 124670;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 09:43:25,922 - 124670 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-01 09:43:25,925 - 124670 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-07-01 09:43:25,926 - 124670 - src.utils.log - INFO - πŸ” Fetching data: SELECT fsd.IntervalDays, fs.CreatedDate ,f.FrequencyId , fs.FrequencyScheduleId, f.[SysName], f.FrequencyValue, f.YearlyOccurrence , fs.ScheduleFormat,fsd.Days, fsd.Weeks, fsd.Months,fsc.[Month] as sch_months, fsd.StartMonth , fsd.DateDay,fsd.DateMonth FROM [ServiceCore].[FrequencyMaster] f inner join [ServiceCore].[FrequencySchedule] fs on fs.FrequencyId = f.FrequencyId left join ServiceCore.FrequencyScheduleCycle fsc on fsc.FrequencyScheduleId = fs.FrequencyScheduleId left join [ServiceCore].[FrequencyScheduleDetail] fsd on fsd.FrequencyScheduleId = fs.FrequencyScheduleId WHERE fsd.FrequencyScheduleId = 14632... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 09:43:26,195 - 124670 - src.utils.log - INFO - βœ… Fetched 60 rows - __SPLIT__ 2026-07-01 09:43:26,195 - 124670 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-07-01 09:43:26,200 - 124670 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-07-01 09:43:26,200 - 124670 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150578;... (Thread: ThreadPoolExecutor-3_0) - __SPLIT__ 2026-07-01 09:43:26,463 - 124670 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-01 09:43:26,464 - 124670 - src.utils.log - INFO - πŸ” Fetching data: select ServiceDate, ServiceSetupId, IsInitial from serviceCore.WorkOrder wo inner join ServiceCore.WorkOrderStatus wos on wo.WoStatusId = wos.WoStatusId where ServiceDate >= '2026-07-01 00:00:00' and ServiceDate <= '2026-12-31 00:00:00' and ServiceSetupId = 150578 and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: ThreadPoolExecutor-3_0) - __SPLIT__ 2026-07-01 09:43:26,736 - 124670 - src.utils.log - INFO - βœ… Fetched 5 rows - __SPLIT__ 2026-07-01 09:43:27,288 - 124670 - src.utils.log - INFO - Generating work orders for setup: 150578 - __SPLIT__ 2026-07-01 09:43:27,340 - 124670 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = -1;... (Thread: ThreadPoolExecutor-3_0) - __SPLIT__ 2026-07-01 09:43:27,601 - 124670 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-01 09:43:27,641 - 124670 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-07-01 09:43:27,649 - 124670 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=133 and [SysName]= 'Incomplete' ;... (Thread: ThreadPoolExecutor-3_0) - __SPLIT__ 2026-07-01 09:43:27,910 - 124670 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-01 09:43:27,913 - 124670 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-07-01 09:43:27,913 - 124670 - src.utils.log - INFO - Running deletes in PARALLEL… - __SPLIT__ 2026-07-01 09:43:27,913 - 124670 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150578 ) (Thread: ThreadPoolExecutor-4_0) - __SPLIT__ 2026-07-01 09:43:27,914 - 124670 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150578 ) (Thread: ThreadPoolExecutor-4_1) - __SPLIT__ 2026-07-01 09:43:27,914 - 124670 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150578 ) (Thread: ThreadPoolExecutor-4_2) - __SPLIT__ 2026-07-01 09:43:27,915 - 124670 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150578 ) (Thread: ThreadPoolExecutor-4_3) - __SPLIT__ 2026-07-01 09:43:27,916 - 124670 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150578 ) (Thread: ThreadPoolExecutor-4_4) - __SPLIT__ 2026-07-01 09:43:27,917 - 124670 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150578 ) (Thread: ThreadPoolExecutor-4_5) - __SPLIT__ 2026-07-01 09:43:27,918 - 124670 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150578 ) (Thread: ThreadPoolExecutor-4_6) - __SPLIT__ 2026-07-01 09:43:28,281 - 124670 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-01 09:43:28,974 - 124670 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-01 09:43:28,991 - 124670 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-01 09:43:29,001 - 124670 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-01 09:43:29,046 - 124670 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-01 09:43:29,070 - 124670 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-01 09:43:29,088 - 124670 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-01 09:43:29,089 - 124670 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150578 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 09:43:29,786 - 124670 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-01 09:43:29,787 - 124670 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150578;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 09:43:30,049 - 124670 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-01 09:43:30,050 - 124670 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-07-01 09:43:30,051 - 124670 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId = 150578... (Thread: ThreadPoolExecutor-5_0) - __SPLIT__ 2026-07-01 09:43:30,051 - 124670 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId = 150578... (Thread: ThreadPoolExecutor-5_1) - __SPLIT__ 2026-07-01 09:43:30,051 - 124670 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId = 150578... (Thread: ThreadPoolExecutor-5_2) - __SPLIT__ 2026-07-01 09:43:30,052 - 124670 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId = 150578... (Thread: ThreadPoolExecutor-5_3) - __SPLIT__ 2026-07-01 09:43:30,053 - 124670 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId = 150578;... (Thread: ThreadPoolExecutor-5_4) - __SPLIT__ 2026-07-01 09:43:30,053 - 124670 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId = 150578;... (Thread: ThreadPoolExecutor-5_5) - __SPLIT__ 2026-07-01 09:43:30,054 - 124670 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId = 150578;... (Thread: ThreadPoolExecutor-5_6) - __SPLIT__ 2026-07-01 09:43:30,054 - 124670 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId = 150578;... (Thread: ThreadPoolExecutor-5_7) - __SPLIT__ 2026-07-01 09:43:30,314 - 124670 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-01 09:43:30,316 - 124670 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-01 09:43:30,317 - 124670 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-01 09:43:30,318 - 124670 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-01 09:43:30,318 - 124670 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId = 150578... (Thread: ThreadPoolExecutor-5_0) - __SPLIT__ 2026-07-01 09:43:30,320 - 124670 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-01 09:43:30,324 - 124670 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-01 09:43:30,443 - 124670 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-01 09:43:30,582 - 124670 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-01 09:43:31,119 - 124670 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-01 09:43:31,130 - 124670 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 124670;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 09:43:31,399 - 124670 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-01 09:43:31,399 - 124670 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET WorkOrderStatusDateTime = '2026-07-01 05:43:31.399' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124670;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 09:43:31,664 - 124670 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-01 09:43:31,664 - 124670 - src.utils.log - INFO - - __SPLIT__ 2026-07-01 09:43:31,664 - 124670 - src.utils.log - INFO - Work order generation successful - Time took: 11.12 - __SPLIT__ 2026-07-01 09:43:31,664 - 124670 - src.utils.log - INFO - Work order publish in progress for GenerateWorkOrderHistoryId: 124670 - __SPLIT__ 2026-07-01 09:43:31,664 - 124670 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'InProgress', WoPublishStartDateTime = '2026-07-01 05:43:31.664' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124670;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 09:43:31,927 - 124670 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-01 09:43:31,928 - 124670 - src.utils.log - INFO - πŸ” Fetching data: Select CreatedBy from ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryId = 124670;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 09:43:32,193 - 124670 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-01 09:43:32,194 - 124670 - src.utils.log - INFO - Inside get_work_order_table - __SPLIT__ 2026-07-01 09:43:32,194 - 124670 - 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 = 150578 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 09:43:32,472 - 124670 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-01 09:43:32,472 - 124670 - 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 = 150578 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 09:43:32,743 - 124670 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-01 09:43:32,744 - 124670 - 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 = 150578 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 09:43:33,023 - 124670 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-01 09:43:33,028 - 124670 - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder,BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 09:43:33,292 - 124670 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-01 09:43:33,292 - 124670 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 133 AND EnitityNumberType in ('WorkOrder','Invoice'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 09:43:33,564 - 124670 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-01 09:43:33,565 - 124670 - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder, BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 09:43:33,827 - 124670 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-01 09:43:33,827 - 124670 - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 7 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 133 AND EnitityNumberType = 'WorkOrder'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 09:43:34,093 - 124670 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-01 09:43:34,094 - 124670 - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 7 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 133 AND EnitityNumberType = 'Invoice'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 09:43:34,362 - 124670 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-01 09:43:34,366 - 124670 - 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 = 150578... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 09:43:34,638 - 124670 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-01 09:43:34,643 - 124670 - src.utils.log - INFO - πŸ” Fetching data: SELECT x.CompanyId FROM CRM.CompanyMaster x WHERE CompanyKey = 'abcdallas';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 09:43:34,903 - 124670 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-01 09:43:34,904 - 124670 - src.utils.log - INFO - πŸ” Fetching data: SELECT CollectionStatus,IsHold,AccountNo FROM CRM.Account a WHERE a.AccountNo = '14974' and a.CompanyId = 121;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 09:43:35,165 - 124670 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-01 09:43:35,168 - 124670 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderNo FROM ServiceCore.WorkOrder WHERE WorkOrderNo IN ('1427141', '1427142', '1427143', '1427144', '1427145', '1427146', '1427147') AND CompanyId = 133 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 09:43:35,439 - 124670 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-01 09:43:35,439 - 124670 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrder (skip triggers): 7 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 09:43:35,872 - 124670 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 7) into ServiceCore.WorkOrder (triggers skipped) - __SPLIT__ 2026-07-01 09:43:37,141 - 124670 - src.utils.log - INFO - βœ… All 7 rows inserted successfully into ServiceCore.WorkOrder in 1 batches (triggers skipped) - __SPLIT__ 2026-07-01 09:43:37,273 - 124670 - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-07-01 09:43:37,275 - 124670 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkorderId, WorkOrderNo FROM ServiceCore.WorkOrder wo WHERE wo.WorkOrderNo IN ('1427141', '1427142', '1427143', '1427144', '1427145', '1427146', '1427147') AND wo.AccountNumber = '14974' AND wo.CompanyId = 133 ... (Thread: ThreadPoolExecutor-6_0) - __SPLIT__ 2026-07-01 09:43:37,546 - 124670 - src.utils.log - INFO - βœ… Fetched 7 rows - __SPLIT__ 2026-07-01 09:43:37,548 - 124670 - src.utils.log - INFO - Updating temp tables - __SPLIT__ 2026-07-01 09:43:37,560 - 124670 - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyKey FROM Common.CompanyMaster cm WHERE CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 09:43:37,821 - 124670 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-01 09:43:37,822 - 124670 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 133 AND EnitityNumberType in ('SubWorkOrder'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 09:43:38,086 - 124670 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-01 09:43:38,090 - 124670 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-01 09:43:38,090 - 124670 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishHistory: 7 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 09:43:38,380 - 124670 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 7) into ServiceCore.WorkOrderAutoGenerationPublishHistory - __SPLIT__ 2026-07-01 09:43:39,613 - 124670 - src.utils.log - INFO - βœ… All 7 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishHistory in 1 batches - __SPLIT__ 2026-07-01 09:43:39,614 - 124670 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationPublishHistoryId, WorkOrderNo, ServiceSetupId FROM ServiceCore.WorkOrderAutoGenerationPublishHistory WHERE ServiceSetupId = 150578 AND WorkOrderNo IN (9124467, 4646708, 2419620, 7060769, 8607220, 4749443, 3980535) AND GenerateWorkOrderHistoryId = 124670;... (Thread: ThreadPoolExecutor-7_0) - __SPLIT__ 2026-07-01 09:43:40,116 - 124670 - src.utils.log - INFO - βœ… Fetched 7 rows - __SPLIT__ 2026-07-01 09:43:40,116 - 124670 - src.utils.log - INFO - 🏁 Final merged rows: 7 - __SPLIT__ 2026-07-01 09:43:40,123 - 124670 - src.utils.log - INFO - Parallel Insertion in work order tables begin - __SPLIT__ 2026-07-01 09:43:40,123 - 124670 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-07-01 09:43:40,123 - 124670 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderAppliedDiscount: - __SPLIT__ 2026-07-01 09:43:40,123 - 124670 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderSalesPersonCommission: - __SPLIT__ 2026-07-01 09:43:40,124 - 124670 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderCommissionAdjustment: - __SPLIT__ 2026-07-01 09:43:40,124 - 124670 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-01 09:43:40,124 - 124670 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-01 09:43:40,124 - 124670 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkorderSourceMapping: - __SPLIT__ 2026-07-01 09:43:40,124 - 124670 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderServices: 7 rows in batches of 25000 (Thread: ThreadPoolExecutor-8_1) - __SPLIT__ 2026-07-01 09:43:40,125 - 124670 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderCrew: 7 rows in batches of 25000 (Thread: ThreadPoolExecutor-8_3) - __SPLIT__ 2026-07-01 09:43:40,125 - 124670 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-01 09:43:40,125 - 124670 - src.utils.log - INFO - [OK] Adjustment completed. - __SPLIT__ 2026-07-01 09:43:40,126 - 124670 - src.utils.log - INFO - [OK] Discount Applied completed. - __SPLIT__ 2026-07-01 09:43:40,126 - 124670 - src.utils.log - INFO - [OK] Lead Notes completed. - __SPLIT__ 2026-07-01 09:43:40,126 - 124670 - src.utils.log - INFO - [OK] Sales Person Commission completed. - __SPLIT__ 2026-07-01 09:43:40,126 - 124670 - src.utils.log - INFO - [OK] Source Mapping completed. - __SPLIT__ 2026-07-01 09:43:40,125 - 124670 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishServices: 7 rows in batches of 25000 (Thread: ThreadPoolExecutor-8_4) - __SPLIT__ 2026-07-01 09:43:40,395 - 124670 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 7) into ServiceCore.WorkOrderServices - __SPLIT__ 2026-07-01 09:43:40,405 - 124670 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 7) into ServiceCore.WorkOrderAutoGenerationPublishServices - __SPLIT__ 2026-07-01 09:43:40,410 - 124670 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 7) into ServiceCore.WorkOrderCrew - __SPLIT__ 2026-07-01 09:43:41,340 - 124670 - src.utils.log - INFO - βœ… All 7 rows inserted successfully into ServiceCore.WorkOrderServices in 1 batches - __SPLIT__ 2026-07-01 09:43:41,340 - 124670 - src.utils.log - INFO - [OK] Services completed. - __SPLIT__ 2026-07-01 09:43:41,359 - 124670 - src.utils.log - INFO - βœ… All 7 rows inserted successfully into ServiceCore.WorkOrderCrew in 1 batches - __SPLIT__ 2026-07-01 09:43:41,360 - 124670 - src.utils.log - INFO - [OK] Crew completed. - __SPLIT__ 2026-07-01 09:43:41,360 - 124670 - src.utils.log - INFO - βœ… All 7 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishServices in 1 batches - __SPLIT__ 2026-07-01 09:43:41,360 - 124670 - src.utils.log - INFO - [OK] Publish Services completed. - __SPLIT__ 2026-07-01 09:43:41,361 - 124670 - src.utils.log - INFO - All publish tasks completed successfully. - __SPLIT__ 2026-07-01 09:43:41,361 - 124670 - 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 = 150578... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 09:43:41,624 - 124670 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-01 09:43:41,631 - 124670 - src.utils.log - INFO - Size of Transaction: 7 - __SPLIT__ 2026-07-01 09:43:41,632 - 124670 - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 7 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 09:43:42,031 - 124670 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 7) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-07-01 09:43:42,969 - 124670 - src.utils.log - INFO - βœ… All 7 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-07-01 09:43:43,099 - 124670 - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-07-01 09:43:43,100 - 124670 - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionId, ModifiedBy, TransactionDate as InvoiceDate from Billing.[Transaction] t WHERE t.ModifiedBy in (12345678910, 12345678911, 12345678912, 12345678913, 12345678914, 12345678915, 12345678916) and t.CompanyId = 133 AND t.TransactionType ='Invoice' AND t.CreatedDate = '2026-07-01 05:43:41.626';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 09:43:43,543 - 124670 - src.utils.log - INFO - βœ… Fetched 7 rows - __SPLIT__ 2026-07-01 09:43:43,546 - 124670 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150578;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 09:43:43,810 - 124670 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-01 09:43:43,819 - 124670 - src.utils.log - INFO - πŸ“ Executing: UPDATE Billing.[Transaction] SET ModifiedBy = NULL WHERE ModifiedBy IN (12345678910,12345678911,12345678912,12345678913,12345678914,12345678915,12345678916) AND CreatedDate = '2026-07-01 05:43:41.626'; ... (Thread: ThreadPoolExecutor-9_0) - __SPLIT__ 2026-07-01 09:43:44,231 - 124670 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-01 09:43:44,237 - 124670 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-01 09:43:44,237 - 124670 - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 7 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 09:43:44,509 - 124670 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 7) into Billing.Invoice - __SPLIT__ 2026-07-01 09:43:45,475 - 124670 - src.utils.log - INFO - βœ… All 7 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-07-01 09:43:45,476 - 124670 - src.utils.log - INFO - πŸ” Fetching data: SELECT InvoiceId, WorkOrderNo FROM Billing.Invoice i WHERE i.WorkOrderNo in ('1427147', '1427146', '1427145', '1427144', '1427143', '1427142', '1427141')... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 09:43:46,821 - 124670 - src.utils.log - INFO - βœ… Fetched 7 rows - __SPLIT__ 2026-07-01 09:43:46,831 - 124670 - 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 = 150578 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 09:43:47,100 - 124670 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-01 09:43:47,101 - 124670 - 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 = 150578 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 09:43:47,367 - 124670 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-01 09:43:47,368 - 124670 - 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 = 150578 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 09:43:47,633 - 124670 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-01 09:43:47,634 - 124670 - 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 = 150578 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 09:43:47,902 - 124670 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-01 09:43:47,916 - 124670 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150578;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 09:43:48,183 - 124670 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-01 09:43:48,188 - 124670 - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId, AppliedDiscountAmt as AppliedDiscountAmount,IsActive ,ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 150578;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 09:43:48,451 - 124670 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-01 09:43:48,456 - 124670 - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId,IsActive,DiscountAmount, IsDiscountPercent,DiscountPercent,DiscountDescription , ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 150578;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 09:43:48,723 - 124670 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-01 09:43:48,724 - 124670 - src.utils.log - INFO - Parallel Insertion in invoice tables begin - __SPLIT__ 2026-07-01 09:43:48,724 - 124670 - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.AccountDiscountSetup: - __SPLIT__ 2026-07-01 09:43:48,724 - 124670 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-01 09:43:48,724 - 124670 - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceCharges: 7 rows in batches of 25000 (Thread: ThreadPoolExecutor-10_0) - __SPLIT__ 2026-07-01 09:43:48,724 - 124670 - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.DiscountApplied: - __SPLIT__ 2026-07-01 09:43:48,725 - 124670 - src.utils.log - INFO - Insert success for table: Billing.DiscountApplied - __SPLIT__ 2026-07-01 09:43:48,725 - 124670 - src.utils.log - INFO - Insert success for table: Billing.AccountDiscountSetup - __SPLIT__ 2026-07-01 09:43:48,997 - 124670 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 7) into Billing.InvoiceCharges - __SPLIT__ 2026-07-01 09:43:49,943 - 124670 - src.utils.log - INFO - βœ… All 7 rows inserted successfully into Billing.InvoiceCharges in 1 batches - __SPLIT__ 2026-07-01 09:43:49,943 - 124670 - src.utils.log - INFO - Insert success for table: Billing.InvoiceCharges - __SPLIT__ 2026-07-01 09:43:49,944 - 124670 - src.utils.log - INFO - Invoice Publish Done - __SPLIT__ 2026-07-01 09:43:49,944 - 124670 - src.utils.log - INFO - Updating Next GenerationDate - __SPLIT__ 2026-07-01 09:43:49,944 - 124670 - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, MAX(NextWorkOrderGenerationDate) AS MaxNextWorkOrderGeneration FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 124670 GROUP BY ServiceSetupId; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 09:43:50,211 - 124670 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-01 09:43:50,217 - 124670 - src.utils.log - INFO - πŸ”„ Updating next gen date parallely: inside update_next_workorder_generation - __SPLIT__ 2026-07-01 09:43:50,350 - 124670 - src.utils.log - INFO - πŸ›  Creating temp table #tbl_28734f6b68 - __SPLIT__ 2026-07-01 09:43:50,482 - 124670 - src.utils.log - INFO - πŸ“Œ Bulk inserting 1 rows into #tbl_28734f6b68 - __SPLIT__ 2026-07-01 09:43:51,008 - 124670 - src.utils.log - INFO - πŸ” Running UPDATE to apply changes - __SPLIT__ 2026-07-01 09:43:51,278 - 124670 - src.utils.log - INFO - βœ” SQL reported affected rows: 1 - __SPLIT__ 2026-07-01 09:43:51,278 - 124670 - src.utils.log - INFO - πŸŽ‰ Successfully updated NextGenerationDate using temp table #tbl_28734f6b68 - __SPLIT__ 2026-07-01 09:43:51,278 - 124670 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 124670 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 09:43:51,540 - 124670 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-01 09:43:51,541 - 124670 - src.utils.log - INFO - Work order published ids: (0, 1, 2, 3, 4, 5, 6) - __SPLIT__ 2026-07-01 09:43:51,541 - 124670 - src.utils.log - INFO - Time took to perform operation in publishing 124670: 30.99 - __SPLIT__ 2026-07-01 09:43:51,541 - 124670 - src.utils.log - INFO - Publish Completed for GenerateWorkOrderHistoryId: 124670 - __SPLIT__ 2026-07-01 09:43:51,541 - 124670 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-07-01 05:43:51.541' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124670;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 09:43:51,806 - 124670 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-01 12:51:27,701 - 12529 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=12529 - __SPLIT__ 2026-07-01 12:51:27,702 - 12529 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 12529 - __SPLIT__ 2026-07-01 12:51:27,703 - 12529 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-01 12:51:27,703 - 12529 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 12:51:29,981 - 12529 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-01 12:51:29,981 - 12529 - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-07-01 12:51:29,981 - 12529 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 12529;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 12:51:30,321 - 12529 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-01 12:51:30,321 - 12529 - 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 = 12529), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 12529), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 12529 AND ss.FrequencyScheduleId IS NOT NULL AND ss.IsActive = 1 AND ss.IsDeleted = 0 AND ss.Status <> 'Canceled' AND ((ss.OrderType = gw.OrderType) OR gw.OrderType IS NULL);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 12:51:30,653 - 12529 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-01 12:51:30,653 - 12529 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 12529;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 12:51:30,962 - 12529 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-01 12:51:30,965 - 12529 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-07-01 12:51:30,966 - 12529 - src.utils.log - INFO - πŸ” Fetching data: SELECT fsd.IntervalDays, fs.CreatedDate ,f.FrequencyId , fs.FrequencyScheduleId, f.[SysName], f.FrequencyValue, f.YearlyOccurrence , fs.ScheduleFormat,fsd.Days, fsd.Weeks, fsd.Months,fsc.[Month] as sch_months, fsd.StartMonth , fsd.DateDay,fsd.DateMonth FROM [ServiceCore].[FrequencyMaster] f inner join [ServiceCore].[FrequencySchedule] fs on fs.FrequencyId = f.FrequencyId left join ServiceCore.FrequencyScheduleCycle fsc on fsc.FrequencyScheduleId = fs.FrequencyScheduleId left join [ServiceCore].[FrequencyScheduleDetail] fsd on fsd.FrequencyScheduleId = fs.FrequencyScheduleId WHERE fsd.FrequencyScheduleId = 13057... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 12:51:31,276 - 12529 - src.utils.log - INFO - βœ… Fetched 60 rows - __SPLIT__ 2026-07-01 12:51:31,277 - 12529 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-07-01 12:51:31,280 - 12529 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-07-01 12:51:31,280 - 12529 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 34235;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 12:51:31,587 - 12529 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-01 12:51:31,588 - 12529 - src.utils.log - INFO - πŸ” Fetching data: select ServiceDate, ServiceSetupId, IsInitial from serviceCore.WorkOrder wo inner join ServiceCore.WorkOrderStatus wos on wo.WoStatusId = wos.WoStatusId where ServiceDate >= '2026-07-01 00:00:00' and ServiceDate <= '2026-08-31 00:00:00' and ServiceSetupId = 34235 and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 12:51:31,904 - 12529 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-01 12:51:32,537 - 12529 - src.utils.log - INFO - Generating work orders for setup: 34235 - __SPLIT__ 2026-07-01 12:51:32,595 - 12529 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-07-01 12:51:32,601 - 12529 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=135 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 12:51:32,907 - 12529 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-01 12:51:32,908 - 12529 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-07-01 12:51:32,909 - 12529 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-07-01 12:51:32,909 - 12529 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34235 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 12:51:33,222 - 12529 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-01 12:51:33,222 - 12529 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34235 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 12:51:33,544 - 12529 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-01 12:51:33,544 - 12529 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34235 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 12:51:33,860 - 12529 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-01 12:51:33,860 - 12529 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34235 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 12:51:34,172 - 12529 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-01 12:51:34,172 - 12529 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34235 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 12:51:34,496 - 12529 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-01 12:51:34,496 - 12529 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34235 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 12:51:34,814 - 12529 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-01 12:51:34,814 - 12529 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34235 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 12:51:35,119 - 12529 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-01 12:51:35,119 - 12529 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34235 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 12:51:35,443 - 12529 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-01 12:51:35,444 - 12529 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-01 12:51:35,444 - 12529 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 4 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 12:51:35,805 - 12529 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 4) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-07-01 12:51:37,103 - 12529 - src.utils.log - INFO - βœ… All 4 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-07-01 12:51:37,103 - 12529 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 4 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-07-01 11:58:39.763' and ServiceSetupId = 34235... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 12:51:37,425 - 12529 - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-07-01 12:51:37,425 - 12529 - src.utils.log - INFO - Id's of work order inserted to DB: [2732410 2732411 2732412 2732413] - __SPLIT__ 2026-07-01 12:51:37,426 - 12529 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 34235;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 12:51:37,732 - 12529 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-01 12:51:37,732 - 12529 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-07-01 12:51:37,733 - 12529 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId = 34235... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 12:51:38,040 - 12529 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-01 12:51:38,041 - 12529 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId = 34235... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 12:51:38,345 - 12529 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-01 12:51:38,350 - 12529 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId = 34235... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 12:51:38,656 - 12529 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-01 12:51:38,657 - 12529 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId = 34235... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 12:51:38,964 - 12529 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-01 12:51:38,965 - 12529 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId = 34235... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 12:51:39,272 - 12529 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-01 12:51:39,273 - 12529 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId = 34235;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 12:51:39,580 - 12529 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-01 12:51:39,580 - 12529 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId = 34235;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 12:51:39,884 - 12529 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-01 12:51:39,884 - 12529 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId = 34235;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 12:51:40,205 - 12529 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-01 12:51:40,205 - 12529 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId = 34235;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 12:51:40,513 - 12529 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-01 12:51:40,521 - 12529 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-07-01 12:51:40,521 - 12529 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-07-01 12:51:40,521 - 12529 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-07-01 12:51:40,521 - 12529 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.CommunicationPreferencesServiceReportNotification: - __SPLIT__ 2026-07-01 12:51:40,521 - 12529 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-07-01 12:51:40,521 - 12529 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SetupAutoGenerationSourceMapping: - __SPLIT__ 2026-07-01 12:51:40,521 - 12529 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-07-01 12:51:40,522 - 12529 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationAppliedDiscount: - __SPLIT__ 2026-07-01 12:51:40,522 - 12529 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-07-01 12:51:40,522 - 12529 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SubWorkOrderAutoGeneration: - __SPLIT__ 2026-07-01 12:51:40,522 - 12529 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-07-01 12:51:40,522 - 12529 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: - __SPLIT__ 2026-07-01 12:51:40,522 - 12529 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-07-01 12:51:40,522 - 12529 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: - __SPLIT__ 2026-07-01 12:51:40,522 - 12529 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-07-01 12:51:40,522 - 12529 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-01 12:51:40,522 - 12529 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (2732410, 2732411, 2732412, 2732413) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 12:51:40,835 - 12529 - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-07-01 12:51:40,836 - 12529 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationCrews: 4 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 12:51:41,185 - 12529 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 4) into ServiceCore.WorkOrderAutoGenerationCrews - __SPLIT__ 2026-07-01 12:51:42,335 - 12529 - src.utils.log - INFO - βœ… All 4 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationCrews in 1 batches - __SPLIT__ 2026-07-01 12:51:42,336 - 12529 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-07-01 12:51:42,336 - 12529 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationServices: - __SPLIT__ 2026-07-01 12:51:42,336 - 12529 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-07-01 12:51:42,336 - 12529 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-01 12:51:42,336 - 12529 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (2732410, 2732411, 2732412, 2732413) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 12:51:42,638 - 12529 - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-07-01 12:51:42,640 - 12529 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 4 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 12:51:43,001 - 12529 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 4) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-07-01 12:51:44,078 - 12529 - src.utils.log - INFO - βœ… All 4 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-07-01 12:51:44,079 - 12529 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-07-01 12:51:44,079 - 12529 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 12529;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 12:51:44,384 - 12529 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-01 12:51:44,384 - 12529 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-07-01 12:51:44,384 - 12529 - src.utils.log - INFO - Time took to perform operation: 16.68 - __SPLIT__ 2026-07-01 14:14:15,344 - 13616 - src.utils.log - INFO - ParallelProcessing=False GenerateInvoiceHistoryId=13616 - __SPLIT__ 2026-07-01 14:14:15,359 - 13616 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-01 14:14:15,360 - 13616 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 14:14:18,044 - 13616 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-01 14:14:18,045 - 13616 - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-07-01 14:14:18,045 - 13616 - src.utils.log - INFO - Sequential Invoice generation algo started for GenerateInvoiceHistoryId: 13616 - __SPLIT__ 2026-07-01 14:14:18,045 - 13616 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET Status = 'InProgress' WHERE GenerateInvoiceHistoryId = 13616;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 14:14:18,344 - 13616 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-01 14:14:18,345 - 13616 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateInvoiceHistory WHERE GenerateInvoiceHistoryId = 13616;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 14:14:18,642 - 13616 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-01 14:14:18,643 - 13616 - 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.ServiceSetupId = 34235 ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 14:14:18,945 - 13616 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-01 14:14:18,945 - 13616 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET Status = 'Failed', InvoiceGenErrorInfo ='No Invoices with selected filters', InvoiceStatusDateTime = '2026-07-01 10:14:18.945' WHERE GenerateInvoiceHistoryId = 13616;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 14:14:19,245 - 13616 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-01 14:14:19,245 - 13616 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-07-01 14:14:19,245 - 13616 - src.utils.log - INFO - Error in Sequential Invoice Gen ProjectId:13616 - Time took: 3.9 - Error:No setups found for GenerateWorkOrderHistoryid: 13616 - __SPLIT__ 2026-07-01 14:14:46,486 - 13617 - src.utils.log - INFO - ParallelProcessing=False GenerateInvoiceHistoryId=13617 - __SPLIT__ 2026-07-01 14:14:46,488 - 13617 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-01 14:14:46,488 - 13617 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 14:14:48,542 - 13617 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-01 14:14:48,543 - 13617 - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-07-01 14:14:48,543 - 13617 - src.utils.log - INFO - Sequential Invoice generation algo started for GenerateInvoiceHistoryId: 13617 - __SPLIT__ 2026-07-01 14:14:48,543 - 13617 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET Status = 'InProgress' WHERE GenerateInvoiceHistoryId = 13617;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 14:14:48,835 - 13617 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-01 14:14:48,835 - 13617 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateInvoiceHistory WHERE GenerateInvoiceHistoryId = 13617;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 14:14:49,131 - 13617 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-01 14:14:49,131 - 13617 - 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.ServiceSetupId = 34235 ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 14:14:49,423 - 13617 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-01 14:14:49,424 - 13617 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET Status = 'Failed', InvoiceGenErrorInfo ='No Invoices with selected filters', InvoiceStatusDateTime = '2026-07-01 10:14:49.424' WHERE GenerateInvoiceHistoryId = 13617;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 14:14:49,716 - 13617 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-01 14:14:49,717 - 13617 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-07-01 14:14:49,717 - 13617 - src.utils.log - INFO - Error in Sequential Invoice Gen ProjectId:13617 - Time took: 3.23 - Error:No setups found for GenerateWorkOrderHistoryid: 13617 - __SPLIT__ 2026-07-01 14:15:31,807 - 13618 - src.utils.log - INFO - ParallelProcessing=False GenerateInvoiceHistoryId=13618 - __SPLIT__ 2026-07-01 14:15:31,808 - 13618 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-01 14:15:31,808 - 13618 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 14:15:33,961 - 13618 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-01 14:15:33,961 - 13618 - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-07-01 14:15:33,961 - 13618 - src.utils.log - INFO - Sequential Invoice generation algo started for GenerateInvoiceHistoryId: 13618 - __SPLIT__ 2026-07-01 14:15:33,961 - 13618 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET Status = 'InProgress' WHERE GenerateInvoiceHistoryId = 13618;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 14:15:34,267 - 13618 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-01 14:15:34,268 - 13618 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateInvoiceHistory WHERE GenerateInvoiceHistoryId = 13618;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 14:15:34,578 - 13618 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-01 14:15:34,578 - 13618 - 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.ServiceSetupId = 24070 ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 14:15:34,894 - 13618 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-01 14:15:34,895 - 13618 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET Status = 'Failed', InvoiceGenErrorInfo ='No Invoices with selected filters', InvoiceStatusDateTime = '2026-07-01 10:15:34.895' WHERE GenerateInvoiceHistoryId = 13618;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-01 14:15:35,200 - 13618 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-01 14:15:35,201 - 13618 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-07-01 14:15:35,201 - 13618 - src.utils.log - INFO - Error in Sequential Invoice Gen ProjectId:13618 - Time took: 3.39 - Error:No setups found for GenerateWorkOrderHistoryid: 13618 - __SPLIT__ 2026-07-02 06:46:34,820 - 124681 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=124681 - __SPLIT__ 2026-07-02 06:46:34,821 - 124681 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 124681 - __SPLIT__ 2026-07-02 06:46:34,821 - 124681 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-02 06:46:34,821 - 124681 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 06:46:37,108 - 124681 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-02 06:46:37,108 - 124681 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-07-02 06:46:37,108 - 124681 - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-07-02 06:46:37,109 - 124681 - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-07-02 06:46:37,109 - 124681 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 124681;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 06:46:38,985 - 124681 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-02 06:46:38,985 - 124681 - 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 = 124681), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 124681), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 124681 AND ss.FrequencyScheduleId IS NOT NULL AND ss.IsActive = 1 AND ss.IsDeleted = 0 AND ss.Status <> 'Canceled' AND ((ss.OrderType = gw.OrderType) OR gw.OrderType IS NULL);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 06:46:39,302 - 124681 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-02 06:46:39,303 - 124681 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 124681;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 06:46:39,574 - 124681 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-02 06:46:39,582 - 124681 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-07-02 06:46:39,583 - 124681 - 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 = 14608... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 06:46:39,867 - 124681 - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-07-02 06:46:39,867 - 124681 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-07-02 06:46:39,870 - 124681 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-07-02 06:46:39,871 - 124681 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 41769;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 06:46:40,138 - 124681 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-02 06:46:40,139 - 124681 - src.utils.log - INFO - πŸ” Fetching data: select ServiceDate, ServiceSetupId, IsInitial from serviceCore.WorkOrder wo inner join ServiceCore.WorkOrderStatus wos on wo.WoStatusId = wos.WoStatusId where ServiceDate >= '2026-07-02 00:00:00' and ServiceDate <= '2027-06-30 00:00:00' and ServiceSetupId = 41769 and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 06:46:40,416 - 124681 - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-07-02 06:46:40,974 - 124681 - src.utils.log - INFO - Generating work orders for setup: 41769 - __SPLIT__ 2026-07-02 06:46:40,983 - 124681 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 11429;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 06:46:41,250 - 124681 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-02 06:46:41,288 - 124681 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-07-02 06:46:41,288 - 124681 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-07-02 06:46:41,288 - 124681 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 41769 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 06:46:41,662 - 124681 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-02 06:46:41,662 - 124681 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 41769 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 06:46:42,021 - 124681 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-02 06:46:42,021 - 124681 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 41769 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 06:46:42,304 - 124681 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-02 06:46:42,304 - 124681 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 41769 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 06:46:42,666 - 124681 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-02 06:46:42,666 - 124681 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 41769 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 06:46:43,002 - 124681 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-02 06:46:43,002 - 124681 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 41769 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 06:46:43,293 - 124681 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-02 06:46:43,293 - 124681 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 41769 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 06:46:43,565 - 124681 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-02 06:46:43,565 - 124681 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 41769 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 06:46:44,083 - 124681 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-02 06:46:44,083 - 124681 - src.utils.log - INFO - No work order found in given range - __SPLIT__ 2026-07-02 06:46:44,083 - 124681 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Failed', WoGenErrorInfo ='No work orders generated with selected filters', WorkOrderStatusDateTime = '2026-07-02 02:46:44.083' WHERE GenerateWorkOrderHistoryId = 124681;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 06:46:44,353 - 124681 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-02 06:46:44,353 - 124681 - src.utils.log - INFO - Time took to perform operation: 9.53 - __SPLIT__ 2026-07-02 06:55:19,908 - 124683 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=124683 - __SPLIT__ 2026-07-02 06:55:19,909 - 124683 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 124683 - __SPLIT__ 2026-07-02 06:55:19,910 - 124683 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-02 06:55:19,910 - 124683 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 06:55:22,148 - 124683 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-02 06:55:22,149 - 124683 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-07-02 06:55:22,149 - 124683 - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-07-02 06:55:22,149 - 124683 - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-07-02 06:55:22,150 - 124683 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 124683;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 06:55:23,991 - 124683 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-02 06:55:23,991 - 124683 - 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 = 124683), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 124683), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 124683 AND ss.FrequencyScheduleId IS NOT NULL AND ss.IsActive = 1 AND ss.IsDeleted = 0 AND ss.Status <> 'Canceled' AND ((ss.OrderType = gw.OrderType) OR gw.OrderType IS NULL);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 06:55:24,306 - 124683 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-02 06:55:24,307 - 124683 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 124683;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 06:55:24,572 - 124683 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-02 06:55:24,575 - 124683 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-07-02 06:55:24,575 - 124683 - 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 = 14608... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 06:55:24,847 - 124683 - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-07-02 06:55:24,848 - 124683 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-07-02 06:55:24,851 - 124683 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-07-02 06:55:24,851 - 124683 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150596;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 06:55:25,116 - 124683 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-02 06:55:25,116 - 124683 - src.utils.log - INFO - πŸ” Fetching data: select ServiceDate, ServiceSetupId, IsInitial from serviceCore.WorkOrder wo inner join ServiceCore.WorkOrderStatus wos on wo.WoStatusId = wos.WoStatusId where ServiceDate >= '2026-07-02 00:00:00' and ServiceDate <= '2026-12-31 00:00:00' and ServiceSetupId = 150596 and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 06:55:25,390 - 124683 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-02 06:55:25,943 - 124683 - src.utils.log - INFO - Generating work orders for setup: 150596 - __SPLIT__ 2026-07-02 06:55:25,959 - 124683 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 1129;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 06:55:26,223 - 124683 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-02 06:55:26,263 - 124683 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-07-02 06:55:26,268 - 124683 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=133 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 06:55:26,531 - 124683 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-02 06:55:26,533 - 124683 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-07-02 06:55:26,533 - 124683 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-07-02 06:55:26,533 - 124683 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150596 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 06:55:26,870 - 124683 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-02 06:55:26,870 - 124683 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150596 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 06:55:27,202 - 124683 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-02 06:55:27,203 - 124683 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150596 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 06:55:27,480 - 124683 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-02 06:55:27,480 - 124683 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150596 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 06:55:27,814 - 124683 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-02 06:55:27,814 - 124683 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150596 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 06:55:28,149 - 124683 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-02 06:55:28,150 - 124683 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150596 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 06:55:28,431 - 124683 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-02 06:55:28,432 - 124683 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150596 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 06:55:28,700 - 124683 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-02 06:55:28,700 - 124683 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150596 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 06:55:29,134 - 124683 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-02 06:55:29,135 - 124683 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-02 06:55:29,135 - 124683 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 06:55:29,448 - 124683 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-07-02 06:55:30,424 - 124683 - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-07-02 06:55:30,425 - 124683 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 2 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-07-01 11:58:39.763' and ServiceSetupId = 150596... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 06:55:30,763 - 124683 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-02 06:55:30,763 - 124683 - src.utils.log - INFO - Id's of work order inserted to DB: [3680967 3680968] - __SPLIT__ 2026-07-02 06:55:30,764 - 124683 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150596;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 06:55:31,030 - 124683 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-02 06:55:31,030 - 124683 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-07-02 06:55:31,031 - 124683 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId = 150596... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 06:55:31,298 - 124683 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-02 06:55:31,298 - 124683 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId = 150596... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 06:55:31,562 - 124683 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-02 06:55:31,566 - 124683 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId = 150596... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 06:55:31,840 - 124683 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-02 06:55:31,842 - 124683 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId = 150596... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 06:55:32,109 - 124683 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-02 06:55:32,110 - 124683 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId = 150596... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 06:55:32,372 - 124683 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-02 06:55:32,373 - 124683 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId = 150596;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 06:55:32,639 - 124683 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-02 06:55:32,639 - 124683 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId = 150596;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 06:55:32,903 - 124683 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-02 06:55:32,903 - 124683 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId = 150596;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 06:55:33,302 - 124683 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-02 06:55:33,302 - 124683 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId = 150596;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 06:55:33,569 - 124683 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-02 06:55:33,577 - 124683 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-07-02 06:55:33,577 - 124683 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-07-02 06:55:33,577 - 124683 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-07-02 06:55:33,577 - 124683 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.CommunicationPreferencesServiceReportNotification: - __SPLIT__ 2026-07-02 06:55:33,578 - 124683 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-07-02 06:55:33,578 - 124683 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SetupAutoGenerationSourceMapping: - __SPLIT__ 2026-07-02 06:55:33,578 - 124683 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-07-02 06:55:33,578 - 124683 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationAppliedDiscount: - __SPLIT__ 2026-07-02 06:55:33,578 - 124683 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-07-02 06:55:33,578 - 124683 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SubWorkOrderAutoGeneration: - __SPLIT__ 2026-07-02 06:55:33,578 - 124683 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-07-02 06:55:33,578 - 124683 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: - __SPLIT__ 2026-07-02 06:55:33,578 - 124683 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-07-02 06:55:33,578 - 124683 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: - __SPLIT__ 2026-07-02 06:55:33,578 - 124683 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-07-02 06:55:33,578 - 124683 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-02 06:55:33,579 - 124683 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3680968, 3680967) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 06:55:33,843 - 124683 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-02 06:55:33,844 - 124683 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationCrews: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 06:55:34,126 - 124683 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationCrews - __SPLIT__ 2026-07-02 06:55:35,059 - 124683 - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationCrews in 1 batches - __SPLIT__ 2026-07-02 06:55:35,060 - 124683 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-07-02 06:55:35,060 - 124683 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationServices: - __SPLIT__ 2026-07-02 06:55:35,060 - 124683 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-07-02 06:55:35,060 - 124683 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-02 06:55:35,060 - 124683 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3680968, 3680967) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 06:55:35,323 - 124683 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-02 06:55:35,324 - 124683 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 4 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 06:55:35,605 - 124683 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 4) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-07-02 06:55:36,551 - 124683 - src.utils.log - INFO - βœ… All 4 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-07-02 06:55:36,551 - 124683 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-07-02 06:55:36,551 - 124683 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 124683;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 06:55:36,815 - 124683 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-02 06:55:36,815 - 124683 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-07-02 06:55:36,815 - 124683 - src.utils.log - INFO - Time took to perform operation: 16.91 - __SPLIT__ 2026-07-02 06:55:47,837 - [124683] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[3680968] user_id=43135 company_id=133 project_id=[124683] publish_all=False - __SPLIT__ 2026-07-02 06:55:47,837 - [124683] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[3680968] user_id=43135 company_id=133 project_id=[124683] publish_all=False - __SPLIT__ 2026-07-02 06:55:47,838 - [124683] - src.utils.log - INFO - Sequential Work order publish in progress for GenerateWorkOrderHistoryId: [124683] - __SPLIT__ 2026-07-02 06:55:47,838 - [124683] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-02 06:55:47,838 - [124683] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 06:55:49,996 - [124683] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-02 06:55:49,996 - [124683] - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-07-02 06:55:49,997 - [124683] - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-07-02 06:55:49,997 - [124683] - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-07-02 06:55:49,998 - [124683] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'InProgress' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124683;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 06:55:52,454 - [124683] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-02 06:55:52,454 - [124683] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId = 3680968... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 06:55:52,730 - [124683] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-02 06:55:52,730 - [124683] - src.utils.log - INFO - Inside get_work_order_table - __SPLIT__ 2026-07-02 06:55:52,731 - [124683] - 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 = 150596 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 06:55:53,017 - [124683] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-02 06:55:53,017 - [124683] - 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 = 150596 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 06:55:53,300 - [124683] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-02 06:55:53,301 - [124683] - 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 = 150596 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 06:55:53,588 - [124683] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-02 06:55:53,593 - [124683] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder,BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 06:55:53,865 - [124683] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-02 06:55:53,866 - [124683] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 133 AND EnitityNumberType in ('WorkOrder','Invoice'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 06:55:54,140 - [124683] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-02 06:55:54,140 - [124683] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder, BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 06:55:54,412 - [124683] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-02 06:55:54,412 - [124683] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 1 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 133 AND EnitityNumberType = 'WorkOrder'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 06:55:54,687 - [124683] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-02 06:55:54,687 - [124683] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 1 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 133 AND EnitityNumberType = 'Invoice'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 06:55:54,962 - [124683] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-02 06:55:54,966 - [124683] - 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 = 150596... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 06:55:55,256 - [124683] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-02 06:55:55,257 - [124683] - src.utils.log - INFO - πŸ” Fetching data: SELECT x.CompanyId FROM CRM.CompanyMaster x WHERE CompanyKey = 'abcdallas';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 06:55:55,529 - [124683] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-02 06:55:55,530 - [124683] - src.utils.log - INFO - πŸ” Fetching data: SELECT CollectionStatus,IsHold,AccountNo FROM CRM.Account a WHERE a.AccountNo = '14983' and a.CompanyId = 121;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 06:55:55,802 - [124683] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-02 06:55:55,805 - [124683] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderNo FROM ServiceCore.WorkOrder WHERE WorkOrderNo = '1427173' AND CompanyId = 133 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 06:55:56,077 - [124683] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-02 06:55:56,077 - [124683] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrder (skip triggers): 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 06:55:56,524 - [124683] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrder (triggers skipped) - __SPLIT__ 2026-07-02 06:55:57,556 - [124683] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrder in 1 batches (triggers skipped) - __SPLIT__ 2026-07-02 06:55:57,692 - [124683] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-07-02 06:55:57,695 - [124683] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkorderId, WorkOrderNo FROM ServiceCore.WorkOrder wo WHERE wo.WorkOrderNo = '1427173' AND wo.AccountNumber = '14983' AND wo.CompanyId = 133 ... (Thread: ThreadPoolExecutor-0_0) - __SPLIT__ 2026-07-02 06:55:57,967 - [124683] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-02 06:55:57,968 - [124683] - src.utils.log - INFO - Sequential fetching temp table records - __SPLIT__ 2026-07-02 06:55:57,968 - [124683] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationServices woag WHERE woag.WorkOrderAutoGenerationId = 3680968... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 06:55:58,282 - [124683] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-02 06:55:58,282 - [124683] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SubWorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId = 3680968... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 06:55:58,556 - [124683] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-02 06:55:58,557 - [124683] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationCrews woag WHERE woag.WorkOrderAutoGenerationId = 3680968... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 06:55:58,856 - [124683] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-02 06:55:58,856 - [124683] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationSalesPersonCommission woag WHERE woag.WorkOrderAutoGenerationId = 3680968... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 06:55:59,128 - [124683] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-02 06:55:59,128 - [124683] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupAutoGenerationSourceMapping woag WHERE woag.WorkOrderAutoGenerationId = 3680968... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 06:55:59,402 - [124683] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-02 06:55:59,402 - [124683] - 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 = 3680968... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 06:55:59,703 - [124683] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-02 06:55:59,703 - [124683] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from CRM.LeadNote woag WHERE woag.RefId = 3680968 and woag.RefType = 'TempWorkorder';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 06:55:59,979 - [124683] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-02 06:55:59,979 - [124683] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment woagca WHERE woagca.WorkOrderAutoGenerationId = 3680968;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 06:56:00,252 - [124683] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-02 06:56:00,254 - [124683] - src.utils.log - INFO - Updating temp tables - __SPLIT__ 2026-07-02 06:56:00,267 - [124683] - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyKey FROM Common.CompanyMaster cm WHERE CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 06:56:00,539 - [124683] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-02 06:56:00,540 - [124683] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 133 AND EnitityNumberType in ('SubWorkOrder'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 06:56:00,812 - [124683] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-02 06:56:00,816 - [124683] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-02 06:56:00,816 - [124683] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishHistory: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 06:56:01,128 - [124683] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderAutoGenerationPublishHistory - __SPLIT__ 2026-07-02 06:56:02,098 - [124683] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishHistory in 1 batches - __SPLIT__ 2026-07-02 06:56:02,100 - [124683] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationPublishHistoryId, WorkOrderNo, ServiceSetupId FROM ServiceCore.WorkOrderAutoGenerationPublishHistory WHERE ServiceSetupId = 150596 AND WorkOrderNo = '1473942' AND GenerateWorkOrderHistoryId = 124683; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 06:56:02,592 - [124683] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-02 06:56:02,598 - [124683] - src.utils.log - INFO - Sequential Insertion in work order tables begin - __SPLIT__ 2026-07-02 06:56:02,598 - [124683] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-02 06:56:02,599 - [124683] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderServices: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 06:56:02,885 - [124683] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderServices - __SPLIT__ 2026-07-02 06:56:03,869 - [124683] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderServices in 1 batches - __SPLIT__ 2026-07-02 06:56:03,869 - [124683] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderAppliedDiscount: - __SPLIT__ 2026-07-02 06:56:03,869 - [124683] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderSalesPersonCommission: - __SPLIT__ 2026-07-02 06:56:03,869 - [124683] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderCommissionAdjustment: - __SPLIT__ 2026-07-02 06:56:03,869 - [124683] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-02 06:56:03,869 - [124683] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderCrew: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 06:56:04,152 - [124683] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderCrew - __SPLIT__ 2026-07-02 06:56:05,118 - [124683] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderCrew in 1 batches - __SPLIT__ 2026-07-02 06:56:05,118 - [124683] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkorderSourceMapping: - __SPLIT__ 2026-07-02 06:56:05,119 - [124683] - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-07-02 06:56:05,119 - [124683] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-02 06:56:05,119 - [124683] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishServices: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 06:56:05,399 - [124683] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationPublishServices - __SPLIT__ 2026-07-02 06:56:06,373 - [124683] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishServices in 1 batches - __SPLIT__ 2026-07-02 06:56:06,374 - [124683] - 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 = 150596... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 06:56:06,647 - [124683] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-02 06:56:06,653 - [124683] - src.utils.log - INFO - Size of Transaction: 1 - __SPLIT__ 2026-07-02 06:56:06,654 - [124683] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 06:56:07,082 - [124683] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-07-02 06:56:08,042 - [124683] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-07-02 06:56:08,177 - [124683] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-07-02 06:56:08,178 - [124683] - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionId, ModifiedBy, TransactionDate as InvoiceDate from Billing.[Transaction] t WHERE t.ModifiedBy = 12345678910 and t.CompanyId = 133 AND t.TransactionType ='Invoice' AND t.CreatedDate = '2026-07-02 02:56:06.648';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 06:56:08,586 - [124683] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-02 06:56:08,589 - [124683] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150596;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 06:56:08,862 - [124683] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-02 06:56:08,871 - [124683] - src.utils.log - INFO - πŸ“ Executing: UPDATE Billing.[Transaction] SET ModifiedBy = NULL WHERE ModifiedBy = 12345678910 AND CreatedDate = '2026-07-02 02:56:06.648'; ... (Thread: ThreadPoolExecutor-1_0) - __SPLIT__ 2026-07-02 06:56:09,905 - [124683] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-02 06:56:09,910 - [124683] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-02 06:56:09,910 - [124683] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 06:56:10,197 - [124683] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into Billing.Invoice - __SPLIT__ 2026-07-02 06:56:11,157 - [124683] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-07-02 06:56:11,158 - [124683] - src.utils.log - INFO - πŸ” Fetching data: SELECT InvoiceId, WorkOrderNo FROM Billing.Invoice i WHERE i.WorkOrderNo = '1427173'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 06:56:12,087 - [124683] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-02 06:56:12,096 - [124683] - 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 = 150596 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 06:56:12,373 - [124683] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-02 06:56:12,374 - [124683] - 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 = 150596 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 06:56:12,650 - [124683] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-02 06:56:12,650 - [124683] - 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 = 150596 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 06:56:12,927 - [124683] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-02 06:56:12,928 - [124683] - 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 = 150596 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 06:56:13,204 - [124683] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-02 06:56:13,217 - [124683] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150596;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 06:56:13,490 - [124683] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-02 06:56:13,496 - [124683] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId, AppliedDiscountAmt as AppliedDiscountAmount,IsActive ,ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 150596;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 06:56:13,770 - [124683] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-02 06:56:13,774 - [124683] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId,IsActive,DiscountAmount, IsDiscountPercent,DiscountPercent,DiscountDescription , ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 150596;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 06:56:14,048 - [124683] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-02 06:56:14,049 - [124683] - src.utils.log - INFO - Sequential Insertion in invoice tables begin - __SPLIT__ 2026-07-02 06:56:14,049 - [124683] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.AccountDiscountSetup: - __SPLIT__ 2026-07-02 06:56:14,049 - [124683] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-02 06:56:14,049 - [124683] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceCharges: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 06:56:14,341 - [124683] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.InvoiceCharges - __SPLIT__ 2026-07-02 06:56:15,309 - [124683] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.InvoiceCharges in 1 batches - __SPLIT__ 2026-07-02 06:56:15,309 - [124683] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.DiscountApplied: - __SPLIT__ 2026-07-02 06:56:15,310 - [124683] - src.utils.log - INFO - Invoice Publish Done - __SPLIT__ 2026-07-02 06:56:15,310 - [124683] - src.utils.log - INFO - Updating Next GenerationDate - __SPLIT__ 2026-07-02 06:56:15,310 - [124683] - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, MAX(NextWorkOrderGenerationDate) AS MaxNextWorkOrderGeneration FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 124683 GROUP BY ServiceSetupId; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 06:56:15,585 - [124683] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-02 06:56:15,592 - [124683] - src.utils.log - INFO - πŸ”„ Updating next gen date sequentially: inside update_next_workorder_generation - __SPLIT__ 2026-07-02 06:56:15,729 - [124683] - src.utils.log - INFO - πŸ›  Creating temp table #tbl_057599aec6 - __SPLIT__ 2026-07-02 06:56:16,005 - [124683] - src.utils.log - INFO - πŸ“Œ Bulk inserting 1 rows into #tbl_057599aec6 - __SPLIT__ 2026-07-02 06:56:16,278 - [124683] - src.utils.log - INFO - πŸ” Running MERGE update to apply changes - __SPLIT__ 2026-07-02 06:56:16,425 - [124683] - src.utils.log - INFO - βœ” SQL reported affected rows: 1 - __SPLIT__ 2026-07-02 06:56:16,567 - [124683] - src.utils.log - INFO - πŸ” Verified successfully updated 1 rows via #tbl_057599aec6 - __SPLIT__ 2026-07-02 06:56:16,568 - [124683] - src.utils.log - INFO - πŸŽ‰ Successfully updated NextGenerationDate using temp table #tbl_057599aec6 - __SPLIT__ 2026-07-02 06:56:16,568 - [124683] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 124683 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 06:56:16,841 - [124683] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-02 06:56:16,841 - [124683] - src.utils.log - INFO - Sequential deletion from temp tables begin - __SPLIT__ 2026-07-02 06:56:16,841 - [124683] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId = 3680968 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 06:56:17,268 - [124683] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-02 06:56:17,268 - [124683] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId = 3680968 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 06:56:17,649 - [124683] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-02 06:56:17,649 - [124683] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId = 3680968 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 06:56:17,922 - [124683] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-02 06:56:17,922 - [124683] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId = 3680968 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 06:56:18,289 - [124683] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-02 06:56:18,290 - [124683] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId = 3680968 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 06:56:18,568 - [124683] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-02 06:56:18,568 - [124683] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 3680968 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 06:56:18,845 - [124683] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-02 06:56:18,845 - [124683] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId = 3680968 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 06:56:19,117 - [124683] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-02 06:56:19,117 - [124683] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 3680968 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 06:56:19,450 - [124683] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-02 06:56:19,451 - [124683] - src.utils.log - INFO - Work order published ids: (3680968,) - __SPLIT__ 2026-07-02 06:56:19,451 - [124683] - src.utils.log - INFO - Time took to perform operation in publishing [124683]: 31.61 - __SPLIT__ 2026-07-02 06:56:19,451 - [124683] - src.utils.log - INFO - Publish Completed for GenerateWorkOrderHistoryId: [124683] - __SPLIT__ 2026-07-02 06:56:19,451 - [124683] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-07-02 02:56:19.451' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124683;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 06:56:19,726 - [124683] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-02 07:12:06,154 - 13619 - src.utils.log - INFO - ParallelProcessing=False GenerateInvoiceHistoryId=13619 - __SPLIT__ 2026-07-02 07:12:06,155 - 13619 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-02 07:12:06,156 - 13619 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:12:08,337 - 13619 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-02 07:12:08,337 - 13619 - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-07-02 07:12:08,337 - 13619 - src.utils.log - INFO - Sequential Invoice generation algo started for GenerateInvoiceHistoryId: 13619 - __SPLIT__ 2026-07-02 07:12:08,337 - 13619 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET Status = 'InProgress' WHERE GenerateInvoiceHistoryId = 13619;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:12:08,646 - 13619 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-02 07:12:08,646 - 13619 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateInvoiceHistory WHERE GenerateInvoiceHistoryId = 13619;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:12:08,956 - 13619 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-02 07:12:08,957 - 13619 - 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.ServiceSetupId = 34235 ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:12:09,272 - 13619 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-02 07:12:09,273 - 13619 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET Status = 'Failed', InvoiceGenErrorInfo ='No Invoices with selected filters', InvoiceStatusDateTime = '2026-07-02 03:12:09.273' WHERE GenerateInvoiceHistoryId = 13619;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:12:09,582 - 13619 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-02 07:12:09,582 - 13619 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-07-02 07:12:09,582 - 13619 - src.utils.log - INFO - Error in Sequential Invoice Gen ProjectId:13619 - Time took: 3.43 - Error:No setups found for GenerateWorkOrderHistoryid: 13619 - __SPLIT__ 2026-07-02 07:19:40,479 - 124684 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=124684 - __SPLIT__ 2026-07-02 07:19:40,480 - 124684 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 124684 - __SPLIT__ 2026-07-02 07:19:40,481 - 124684 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-02 07:19:40,481 - 124684 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:19:42,682 - 124684 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-02 07:19:42,682 - 124684 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-07-02 07:19:42,683 - 124684 - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-07-02 07:19:42,683 - 124684 - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-07-02 07:19:42,683 - 124684 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 124684;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:19:44,543 - 124684 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-02 07:19:44,543 - 124684 - 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 = 124684), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 124684), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 124684 AND ss.FrequencyScheduleId IS NOT NULL AND ss.IsActive = 1 AND ss.IsDeleted = 0 AND ss.Status <> 'Canceled' AND ((ss.OrderType = gw.OrderType) OR gw.OrderType IS NULL);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:19:44,867 - 124684 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-02 07:19:44,867 - 124684 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 124684;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:19:45,134 - 124684 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-02 07:19:45,137 - 124684 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-07-02 07:19:45,137 - 124684 - 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 = 14608... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:19:45,410 - 124684 - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-07-02 07:19:45,411 - 124684 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-07-02 07:19:45,414 - 124684 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-07-02 07:19:45,414 - 124684 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150596;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:19:45,680 - 124684 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-02 07:19:45,680 - 124684 - src.utils.log - INFO - πŸ” Fetching data: select ServiceDate, ServiceSetupId, IsInitial from serviceCore.WorkOrder wo inner join ServiceCore.WorkOrderStatus wos on wo.WoStatusId = wos.WoStatusId where ServiceDate >= '2026-07-02 00:00:00' and ServiceDate <= '2026-12-31 00:00:00' and ServiceSetupId = 150596 and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:19:45,946 - 124684 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-02 07:19:46,497 - 124684 - src.utils.log - INFO - Generating work orders for setup: 150596 - __SPLIT__ 2026-07-02 07:19:46,506 - 124684 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 1129;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:19:46,771 - 124684 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-02 07:19:46,809 - 124684 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-07-02 07:19:46,813 - 124684 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=133 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:19:47,077 - 124684 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-02 07:19:47,079 - 124684 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-07-02 07:19:47,080 - 124684 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-07-02 07:19:47,080 - 124684 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150596 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:19:47,449 - 124684 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-02 07:19:47,449 - 124684 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150596 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:19:47,804 - 124684 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-02 07:19:47,804 - 124684 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150596 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:19:48,075 - 124684 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-02 07:19:48,076 - 124684 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150596 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:19:48,435 - 124684 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-02 07:19:48,436 - 124684 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150596 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:19:48,774 - 124684 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-02 07:19:48,774 - 124684 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150596 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:19:49,052 - 124684 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-02 07:19:49,052 - 124684 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150596 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:19:49,318 - 124684 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-02 07:19:49,318 - 124684 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150596 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:19:49,786 - 124684 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-02 07:19:49,787 - 124684 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-02 07:19:49,787 - 124684 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:19:50,090 - 124684 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-07-02 07:19:51,049 - 124684 - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-07-02 07:19:51,050 - 124684 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 1 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-07-01 11:58:39.763' and ServiceSetupId = 150596... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:19:51,384 - 124684 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-02 07:19:51,385 - 124684 - src.utils.log - INFO - Id's of work order inserted to DB: [3680969] - __SPLIT__ 2026-07-02 07:19:51,385 - 124684 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150596;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:19:51,651 - 124684 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-02 07:19:51,651 - 124684 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-07-02 07:19:51,651 - 124684 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId = 150596... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:19:51,920 - 124684 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-02 07:19:51,920 - 124684 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId = 150596... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:19:52,185 - 124684 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-02 07:19:52,189 - 124684 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId = 150596... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:19:52,468 - 124684 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-02 07:19:52,469 - 124684 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId = 150596... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:19:52,735 - 124684 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-02 07:19:52,735 - 124684 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId = 150596... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:19:53,000 - 124684 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-02 07:19:53,001 - 124684 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId = 150596;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:19:53,265 - 124684 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-02 07:19:53,266 - 124684 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId = 150596;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:19:53,531 - 124684 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-02 07:19:53,531 - 124684 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId = 150596;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:19:53,921 - 124684 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-02 07:19:53,921 - 124684 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId = 150596;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:19:54,186 - 124684 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-02 07:19:54,193 - 124684 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-07-02 07:19:54,193 - 124684 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-07-02 07:19:54,193 - 124684 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-07-02 07:19:54,194 - 124684 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.CommunicationPreferencesServiceReportNotification: - __SPLIT__ 2026-07-02 07:19:54,194 - 124684 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-07-02 07:19:54,194 - 124684 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SetupAutoGenerationSourceMapping: - __SPLIT__ 2026-07-02 07:19:54,194 - 124684 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-07-02 07:19:54,194 - 124684 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationAppliedDiscount: - __SPLIT__ 2026-07-02 07:19:54,194 - 124684 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-07-02 07:19:54,194 - 124684 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SubWorkOrderAutoGeneration: - __SPLIT__ 2026-07-02 07:19:54,194 - 124684 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-07-02 07:19:54,194 - 124684 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: - __SPLIT__ 2026-07-02 07:19:54,194 - 124684 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-07-02 07:19:54,194 - 124684 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: - __SPLIT__ 2026-07-02 07:19:54,194 - 124684 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-07-02 07:19:54,194 - 124684 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-02 07:19:54,195 - 124684 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 3680969 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:19:54,461 - 124684 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-02 07:19:54,462 - 124684 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationCrews: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:19:54,733 - 124684 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderAutoGenerationCrews - __SPLIT__ 2026-07-02 07:19:55,669 - 124684 - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationCrews in 1 batches - __SPLIT__ 2026-07-02 07:19:55,669 - 124684 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-07-02 07:19:55,669 - 124684 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationServices: - __SPLIT__ 2026-07-02 07:19:55,669 - 124684 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-07-02 07:19:55,669 - 124684 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-02 07:19:55,670 - 124684 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 3680969 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:19:55,933 - 124684 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-02 07:19:55,934 - 124684 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:19:56,210 - 124684 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-07-02 07:19:57,153 - 124684 - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-07-02 07:19:57,153 - 124684 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-07-02 07:19:57,153 - 124684 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 124684;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:19:57,419 - 124684 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-02 07:19:57,420 - 124684 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-07-02 07:19:57,420 - 124684 - src.utils.log - INFO - Time took to perform operation: 16.94 - __SPLIT__ 2026-07-02 07:20:21,377 - [124684] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[3680969] user_id=43135 company_id=133 project_id=[124684] publish_all=False - __SPLIT__ 2026-07-02 07:20:21,378 - [124684] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[3680969] user_id=43135 company_id=133 project_id=[124684] publish_all=False - __SPLIT__ 2026-07-02 07:20:21,378 - [124684] - src.utils.log - INFO - Sequential Work order publish in progress for GenerateWorkOrderHistoryId: [124684] - __SPLIT__ 2026-07-02 07:20:21,379 - [124684] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-02 07:20:21,379 - [124684] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:20:23,668 - [124684] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-02 07:20:23,668 - [124684] - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-07-02 07:20:23,669 - [124684] - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-07-02 07:20:23,669 - [124684] - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-07-02 07:20:23,669 - [124684] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'InProgress' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124684;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:20:25,531 - [124684] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-02 07:20:25,531 - [124684] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId = 3680969... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:20:25,799 - [124684] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-02 07:20:25,800 - [124684] - src.utils.log - INFO - Inside get_work_order_table - __SPLIT__ 2026-07-02 07:20:25,800 - [124684] - 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 = 150596 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:20:26,064 - [124684] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-02 07:20:26,064 - [124684] - 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 = 150596 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:20:26,329 - [124684] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-02 07:20:26,330 - [124684] - 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 = 150596 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:20:26,594 - [124684] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-02 07:20:26,598 - [124684] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder,BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:20:26,863 - [124684] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-02 07:20:26,864 - [124684] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 133 AND EnitityNumberType in ('WorkOrder','Invoice'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:20:27,128 - [124684] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-02 07:20:27,128 - [124684] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder, BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:20:27,392 - [124684] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-02 07:20:27,393 - [124684] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 1 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 133 AND EnitityNumberType = 'WorkOrder'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:20:27,659 - [124684] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-02 07:20:27,659 - [124684] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 1 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 133 AND EnitityNumberType = 'Invoice'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:20:27,926 - [124684] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-02 07:20:27,930 - [124684] - 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 = 150596... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:20:28,196 - [124684] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-02 07:20:28,197 - [124684] - src.utils.log - INFO - πŸ” Fetching data: SELECT x.CompanyId FROM CRM.CompanyMaster x WHERE CompanyKey = 'abcdallas';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:20:28,463 - [124684] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-02 07:20:28,464 - [124684] - src.utils.log - INFO - πŸ” Fetching data: SELECT CollectionStatus,IsHold,AccountNo FROM CRM.Account a WHERE a.AccountNo = '14983' and a.CompanyId = 121;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:20:28,728 - [124684] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-02 07:20:28,731 - [124684] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderNo FROM ServiceCore.WorkOrder WHERE WorkOrderNo = '1427174' AND CompanyId = 133 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:20:28,996 - [124684] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-02 07:20:28,996 - [124684] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrder (skip triggers): 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:20:29,431 - [124684] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrder (triggers skipped) - __SPLIT__ 2026-07-02 07:20:30,386 - [124684] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrder in 1 batches (triggers skipped) - __SPLIT__ 2026-07-02 07:20:30,518 - [124684] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-07-02 07:20:30,520 - [124684] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkorderId, WorkOrderNo FROM ServiceCore.WorkOrder wo WHERE wo.WorkOrderNo = '1427174' AND wo.AccountNumber = '14983' AND wo.CompanyId = 133 ... (Thread: ThreadPoolExecutor-2_0) - __SPLIT__ 2026-07-02 07:20:30,785 - [124684] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-02 07:20:30,785 - [124684] - src.utils.log - INFO - Sequential fetching temp table records - __SPLIT__ 2026-07-02 07:20:30,785 - [124684] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationServices woag WHERE woag.WorkOrderAutoGenerationId = 3680969... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:20:31,090 - [124684] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-02 07:20:31,091 - [124684] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SubWorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId = 3680969... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:20:31,357 - [124684] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-02 07:20:31,357 - [124684] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationCrews woag WHERE woag.WorkOrderAutoGenerationId = 3680969... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:20:31,643 - [124684] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-02 07:20:31,644 - [124684] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationSalesPersonCommission woag WHERE woag.WorkOrderAutoGenerationId = 3680969... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:20:31,908 - [124684] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-02 07:20:31,909 - [124684] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupAutoGenerationSourceMapping woag WHERE woag.WorkOrderAutoGenerationId = 3680969... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:20:32,174 - [124684] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-02 07:20:32,175 - [124684] - 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 = 3680969... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:20:32,466 - [124684] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-02 07:20:32,467 - [124684] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from CRM.LeadNote woag WHERE woag.RefId = 3680969 and woag.RefType = 'TempWorkorder';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:20:32,734 - [124684] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-02 07:20:32,734 - [124684] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment woagca WHERE woagca.WorkOrderAutoGenerationId = 3680969;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:20:32,999 - [124684] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-02 07:20:33,002 - [124684] - src.utils.log - INFO - Updating temp tables - __SPLIT__ 2026-07-02 07:20:33,014 - [124684] - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyKey FROM Common.CompanyMaster cm WHERE CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:20:33,278 - [124684] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-02 07:20:33,278 - [124684] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 133 AND EnitityNumberType in ('SubWorkOrder'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:20:33,542 - [124684] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-02 07:20:33,546 - [124684] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-02 07:20:33,546 - [124684] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishHistory: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:20:33,836 - [124684] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderAutoGenerationPublishHistory - __SPLIT__ 2026-07-02 07:20:34,779 - [124684] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishHistory in 1 batches - __SPLIT__ 2026-07-02 07:20:34,780 - [124684] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationPublishHistoryId, WorkOrderNo, ServiceSetupId FROM ServiceCore.WorkOrderAutoGenerationPublishHistory WHERE ServiceSetupId = 150596 AND WorkOrderNo = '4710334' AND GenerateWorkOrderHistoryId = 124684; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:20:35,253 - [124684] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-02 07:20:35,259 - [124684] - src.utils.log - INFO - Sequential Insertion in work order tables begin - __SPLIT__ 2026-07-02 07:20:35,260 - [124684] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-02 07:20:35,260 - [124684] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderServices: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:20:35,532 - [124684] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderServices - __SPLIT__ 2026-07-02 07:20:36,466 - [124684] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderServices in 1 batches - __SPLIT__ 2026-07-02 07:20:36,467 - [124684] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderAppliedDiscount: - __SPLIT__ 2026-07-02 07:20:36,467 - [124684] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderSalesPersonCommission: - __SPLIT__ 2026-07-02 07:20:36,467 - [124684] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderCommissionAdjustment: - __SPLIT__ 2026-07-02 07:20:36,467 - [124684] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-02 07:20:36,467 - [124684] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderCrew: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:20:36,737 - [124684] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderCrew - __SPLIT__ 2026-07-02 07:20:37,669 - [124684] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderCrew in 1 batches - __SPLIT__ 2026-07-02 07:20:37,669 - [124684] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkorderSourceMapping: - __SPLIT__ 2026-07-02 07:20:37,669 - [124684] - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-07-02 07:20:37,669 - [124684] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-02 07:20:37,670 - [124684] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishServices: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:20:37,942 - [124684] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationPublishServices - __SPLIT__ 2026-07-02 07:20:38,875 - [124684] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishServices in 1 batches - __SPLIT__ 2026-07-02 07:20:38,876 - [124684] - 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 = 150596... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:20:39,141 - [124684] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-02 07:20:39,147 - [124684] - src.utils.log - INFO - Size of Transaction: 1 - __SPLIT__ 2026-07-02 07:20:39,148 - [124684] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:20:39,550 - [124684] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-07-02 07:20:40,480 - [124684] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-07-02 07:20:40,612 - [124684] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-07-02 07:20:40,612 - [124684] - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionId, ModifiedBy, TransactionDate as InvoiceDate from Billing.[Transaction] t WHERE t.ModifiedBy = 12345678910 and t.CompanyId = 133 AND t.TransactionType ='Invoice' AND t.CreatedDate = '2026-07-02 03:20:39.142';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:20:41,007 - [124684] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-02 07:20:41,010 - [124684] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150596;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:20:41,275 - [124684] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-02 07:20:41,283 - [124684] - src.utils.log - INFO - πŸ“ Executing: UPDATE Billing.[Transaction] SET ModifiedBy = NULL WHERE ModifiedBy = 12345678910 AND CreatedDate = '2026-07-02 03:20:39.142'; ... (Thread: ThreadPoolExecutor-3_0) - __SPLIT__ 2026-07-02 07:20:42,304 - [124684] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-02 07:20:42,309 - [124684] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-02 07:20:42,309 - [124684] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:20:42,582 - [124684] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into Billing.Invoice - __SPLIT__ 2026-07-02 07:20:43,595 - [124684] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-07-02 07:20:43,596 - [124684] - src.utils.log - INFO - πŸ” Fetching data: SELECT InvoiceId, WorkOrderNo FROM Billing.Invoice i WHERE i.WorkOrderNo = '1427174'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:20:44,482 - [124684] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-02 07:20:44,491 - [124684] - 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 = 150596 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:20:44,756 - [124684] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-02 07:20:44,756 - [124684] - 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 = 150596 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:20:45,022 - [124684] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-02 07:20:45,023 - [124684] - 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 = 150596 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:20:45,287 - [124684] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-02 07:20:45,287 - [124684] - 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 = 150596 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:20:45,552 - [124684] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-02 07:20:45,565 - [124684] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150596;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:20:45,832 - [124684] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-02 07:20:45,838 - [124684] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId, AppliedDiscountAmt as AppliedDiscountAmount,IsActive ,ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 150596;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:20:46,102 - [124684] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-02 07:20:46,106 - [124684] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId,IsActive,DiscountAmount, IsDiscountPercent,DiscountPercent,DiscountDescription , ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 150596;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:20:46,370 - [124684] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-02 07:20:46,371 - [124684] - src.utils.log - INFO - Sequential Insertion in invoice tables begin - __SPLIT__ 2026-07-02 07:20:46,371 - [124684] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.AccountDiscountSetup: - __SPLIT__ 2026-07-02 07:20:46,371 - [124684] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-02 07:20:46,371 - [124684] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceCharges: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:20:46,645 - [124684] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.InvoiceCharges - __SPLIT__ 2026-07-02 07:20:47,577 - [124684] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.InvoiceCharges in 1 batches - __SPLIT__ 2026-07-02 07:20:47,577 - [124684] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.DiscountApplied: - __SPLIT__ 2026-07-02 07:20:47,577 - [124684] - src.utils.log - INFO - Invoice Publish Done - __SPLIT__ 2026-07-02 07:20:47,577 - [124684] - src.utils.log - INFO - Updating Next GenerationDate - __SPLIT__ 2026-07-02 07:20:47,578 - [124684] - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, MAX(NextWorkOrderGenerationDate) AS MaxNextWorkOrderGeneration FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 124684 GROUP BY ServiceSetupId; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:20:47,844 - [124684] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-02 07:20:47,851 - [124684] - src.utils.log - INFO - πŸ”„ Updating next gen date sequentially: inside update_next_workorder_generation - __SPLIT__ 2026-07-02 07:20:47,984 - [124684] - src.utils.log - INFO - πŸ›  Creating temp table #tbl_f45fa221b6 - __SPLIT__ 2026-07-02 07:20:48,251 - [124684] - src.utils.log - INFO - πŸ“Œ Bulk inserting 1 rows into #tbl_f45fa221b6 - __SPLIT__ 2026-07-02 07:20:48,515 - [124684] - src.utils.log - INFO - πŸ” Running MERGE update to apply changes - __SPLIT__ 2026-07-02 07:20:48,659 - [124684] - src.utils.log - INFO - βœ” SQL reported affected rows: 1 - __SPLIT__ 2026-07-02 07:20:48,799 - [124684] - src.utils.log - INFO - πŸ” Verified successfully updated 1 rows via #tbl_f45fa221b6 - __SPLIT__ 2026-07-02 07:20:48,799 - [124684] - src.utils.log - INFO - πŸŽ‰ Successfully updated NextGenerationDate using temp table #tbl_f45fa221b6 - __SPLIT__ 2026-07-02 07:20:48,799 - [124684] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 124684 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:20:49,063 - [124684] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-02 07:20:49,064 - [124684] - src.utils.log - INFO - Sequential deletion from temp tables begin - __SPLIT__ 2026-07-02 07:20:49,064 - [124684] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId = 3680969 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:20:49,481 - [124684] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-02 07:20:49,481 - [124684] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId = 3680969 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:20:49,841 - [124684] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-02 07:20:49,841 - [124684] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId = 3680969 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:20:50,106 - [124684] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-02 07:20:50,106 - [124684] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId = 3680969 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:20:50,466 - [124684] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-02 07:20:50,466 - [124684] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId = 3680969 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:20:50,737 - [124684] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-02 07:20:50,737 - [124684] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 3680969 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:20:51,005 - [124684] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-02 07:20:51,005 - [124684] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId = 3680969 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:20:51,270 - [124684] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-02 07:20:51,270 - [124684] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 3680969 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:20:51,590 - [124684] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-02 07:20:51,590 - [124684] - src.utils.log - INFO - Work order published ids: (3680969,) - __SPLIT__ 2026-07-02 07:20:51,590 - [124684] - src.utils.log - INFO - Time took to perform operation in publishing [124684]: 30.21 - __SPLIT__ 2026-07-02 07:20:51,591 - [124684] - src.utils.log - INFO - Publish Completed for GenerateWorkOrderHistoryId: [124684] - __SPLIT__ 2026-07-02 07:20:51,591 - [124684] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-07-02 03:20:51.590' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124684;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:20:51,856 - [124684] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-02 07:32:04,142 - 124685 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=124685 - __SPLIT__ 2026-07-02 07:32:04,143 - 124685 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 124685 - __SPLIT__ 2026-07-02 07:32:04,144 - 124685 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-02 07:32:04,144 - 124685 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:32:06,342 - 124685 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-02 07:32:06,343 - 124685 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-07-02 07:32:06,343 - 124685 - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-07-02 07:32:06,344 - 124685 - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-07-02 07:32:06,344 - 124685 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 124685;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:32:08,301 - 124685 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-02 07:32:08,301 - 124685 - 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 = 124685), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 124685), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 124685 AND ss.FrequencyScheduleId IS NOT NULL AND ss.IsActive = 1 AND ss.IsDeleted = 0 AND ss.Status <> 'Canceled' AND ((ss.OrderType = gw.OrderType) OR gw.OrderType IS NULL);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:32:08,634 - 124685 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-02 07:32:08,634 - 124685 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 124685;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:32:08,909 - 124685 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-02 07:32:08,912 - 124685 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-07-02 07:32:08,913 - 124685 - 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 = 14608... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:32:09,193 - 124685 - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-07-02 07:32:09,193 - 124685 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-07-02 07:32:09,196 - 124685 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-07-02 07:32:09,197 - 124685 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150596;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:32:09,471 - 124685 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-02 07:32:09,471 - 124685 - src.utils.log - INFO - πŸ” Fetching data: select ServiceDate, ServiceSetupId, IsInitial from serviceCore.WorkOrder wo inner join ServiceCore.WorkOrderStatus wos on wo.WoStatusId = wos.WoStatusId where ServiceDate >= '2026-07-02 00:00:00' and ServiceDate <= '2027-12-31 00:00:00' and ServiceSetupId = 150596 and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:32:09,754 - 124685 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-02 07:32:10,323 - 124685 - src.utils.log - INFO - Generating work orders for setup: 150596 - __SPLIT__ 2026-07-02 07:32:10,350 - 124685 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 1129;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:32:10,624 - 124685 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-02 07:32:10,666 - 124685 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-07-02 07:32:10,673 - 124685 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=133 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:32:10,945 - 124685 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-02 07:32:10,947 - 124685 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-07-02 07:32:10,947 - 124685 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-07-02 07:32:10,947 - 124685 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150596 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:32:11,292 - 124685 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-02 07:32:11,292 - 124685 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150596 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:32:11,633 - 124685 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-02 07:32:11,633 - 124685 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150596 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:32:11,914 - 124685 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-02 07:32:11,914 - 124685 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150596 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:32:12,253 - 124685 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-02 07:32:12,253 - 124685 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150596 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:32:12,592 - 124685 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-02 07:32:12,592 - 124685 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150596 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:32:12,878 - 124685 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-02 07:32:12,878 - 124685 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150596 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:32:13,152 - 124685 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-02 07:32:13,152 - 124685 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150596 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:32:13,582 - 124685 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-02 07:32:13,582 - 124685 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-02 07:32:13,583 - 124685 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 4 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:32:13,893 - 124685 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 4) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-07-02 07:32:15,042 - 124685 - src.utils.log - INFO - βœ… All 4 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-07-02 07:32:15,042 - 124685 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 4 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-07-01 11:58:39.676' and ServiceSetupId = 150596... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:32:15,385 - 124685 - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-07-02 07:32:15,386 - 124685 - src.utils.log - INFO - Id's of work order inserted to DB: [3680970 3680971 3680972 3680973] - __SPLIT__ 2026-07-02 07:32:15,386 - 124685 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150596;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:32:15,660 - 124685 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-02 07:32:15,660 - 124685 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-07-02 07:32:15,661 - 124685 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId = 150596... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:32:15,934 - 124685 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-02 07:32:15,935 - 124685 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId = 150596... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:32:16,209 - 124685 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-02 07:32:16,214 - 124685 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId = 150596... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:32:16,496 - 124685 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-02 07:32:16,497 - 124685 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId = 150596... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:32:16,771 - 124685 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-02 07:32:16,771 - 124685 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId = 150596... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:32:17,044 - 124685 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-02 07:32:17,044 - 124685 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId = 150596;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:32:17,317 - 124685 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-02 07:32:17,318 - 124685 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId = 150596;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:32:17,591 - 124685 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-02 07:32:17,591 - 124685 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId = 150596;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:32:17,990 - 124685 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-02 07:32:17,990 - 124685 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId = 150596;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:32:18,263 - 124685 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-02 07:32:18,272 - 124685 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-07-02 07:32:18,272 - 124685 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-07-02 07:32:18,272 - 124685 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-07-02 07:32:18,272 - 124685 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.CommunicationPreferencesServiceReportNotification: - __SPLIT__ 2026-07-02 07:32:18,272 - 124685 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-07-02 07:32:18,272 - 124685 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SetupAutoGenerationSourceMapping: - __SPLIT__ 2026-07-02 07:32:18,272 - 124685 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-07-02 07:32:18,273 - 124685 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationAppliedDiscount: - __SPLIT__ 2026-07-02 07:32:18,273 - 124685 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-07-02 07:32:18,273 - 124685 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SubWorkOrderAutoGeneration: - __SPLIT__ 2026-07-02 07:32:18,273 - 124685 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-07-02 07:32:18,273 - 124685 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: - __SPLIT__ 2026-07-02 07:32:18,273 - 124685 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-07-02 07:32:18,273 - 124685 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: - __SPLIT__ 2026-07-02 07:32:18,273 - 124685 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-07-02 07:32:18,273 - 124685 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-02 07:32:18,273 - 124685 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3680970, 3680971, 3680972, 3680973) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:32:18,547 - 124685 - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-07-02 07:32:18,549 - 124685 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationCrews: 4 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:32:18,827 - 124685 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 4) into ServiceCore.WorkOrderAutoGenerationCrews - __SPLIT__ 2026-07-02 07:32:19,796 - 124685 - src.utils.log - INFO - βœ… All 4 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationCrews in 1 batches - __SPLIT__ 2026-07-02 07:32:19,796 - 124685 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-07-02 07:32:19,796 - 124685 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationServices: - __SPLIT__ 2026-07-02 07:32:19,796 - 124685 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-07-02 07:32:19,796 - 124685 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-02 07:32:19,797 - 124685 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3680970, 3680971, 3680972, 3680973) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:32:20,069 - 124685 - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-07-02 07:32:20,070 - 124685 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 8 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:32:20,351 - 124685 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 8) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-07-02 07:32:21,334 - 124685 - src.utils.log - INFO - βœ… All 8 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-07-02 07:32:21,335 - 124685 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-07-02 07:32:21,335 - 124685 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 124685;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:32:21,610 - 124685 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-02 07:32:21,611 - 124685 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-07-02 07:32:21,611 - 124685 - src.utils.log - INFO - Time took to perform operation: 17.47 - __SPLIT__ 2026-07-02 07:32:42,496 - [124685] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[3680973] user_id=43135 company_id=133 project_id=[124685] publish_all=False - __SPLIT__ 2026-07-02 07:32:42,497 - [124685] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[3680973] user_id=43135 company_id=133 project_id=[124685] publish_all=False - __SPLIT__ 2026-07-02 07:32:42,498 - [124685] - src.utils.log - INFO - Sequential Work order publish in progress for GenerateWorkOrderHistoryId: [124685] - __SPLIT__ 2026-07-02 07:32:42,498 - [124685] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-02 07:32:42,498 - [124685] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:32:44,746 - [124685] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-02 07:32:44,746 - [124685] - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-07-02 07:32:44,746 - [124685] - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-07-02 07:32:44,747 - [124685] - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-07-02 07:32:44,747 - [124685] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'InProgress' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124685;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:32:46,678 - [124685] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-02 07:32:46,678 - [124685] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId = 3680973... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:32:46,957 - [124685] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-02 07:32:46,957 - [124685] - src.utils.log - INFO - Inside get_work_order_table - __SPLIT__ 2026-07-02 07:32:46,958 - [124685] - 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 = 150596 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:32:47,234 - [124685] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-02 07:32:47,234 - [124685] - 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 = 150596 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:32:47,509 - [124685] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-02 07:32:47,509 - [124685] - 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 = 150596 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:32:47,784 - [124685] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-02 07:32:47,788 - [124685] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder,BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:32:48,063 - [124685] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-02 07:32:48,064 - [124685] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 133 AND EnitityNumberType in ('WorkOrder','Invoice'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:32:48,339 - [124685] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-02 07:32:48,339 - [124685] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder, BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:32:48,614 - [124685] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-02 07:32:48,614 - [124685] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 1 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 133 AND EnitityNumberType = 'WorkOrder'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:32:48,891 - [124685] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-02 07:32:48,892 - [124685] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 1 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 133 AND EnitityNumberType = 'Invoice'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:32:49,168 - [124685] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-02 07:32:49,172 - [124685] - 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 = 150596... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:32:49,448 - [124685] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-02 07:32:49,450 - [124685] - src.utils.log - INFO - πŸ” Fetching data: SELECT x.CompanyId FROM CRM.CompanyMaster x WHERE CompanyKey = 'abcdallas';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:32:49,724 - [124685] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-02 07:32:49,725 - [124685] - src.utils.log - INFO - πŸ” Fetching data: SELECT CollectionStatus,IsHold,AccountNo FROM CRM.Account a WHERE a.AccountNo = '14983' and a.CompanyId = 121;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:32:50,000 - [124685] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-02 07:32:50,005 - [124685] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderNo FROM ServiceCore.WorkOrder WHERE WorkOrderNo = '1427175' AND CompanyId = 133 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:32:50,279 - [124685] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-02 07:32:50,280 - [124685] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrder (skip triggers): 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:32:50,728 - [124685] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrder (triggers skipped) - __SPLIT__ 2026-07-02 07:32:51,810 - [124685] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrder in 1 batches (triggers skipped) - __SPLIT__ 2026-07-02 07:32:51,947 - [124685] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-07-02 07:32:51,949 - [124685] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkorderId, WorkOrderNo FROM ServiceCore.WorkOrder wo WHERE wo.WorkOrderNo = '1427175' AND wo.AccountNumber = '14983' AND wo.CompanyId = 133 ... (Thread: ThreadPoolExecutor-11_0) - __SPLIT__ 2026-07-02 07:32:52,223 - [124685] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-02 07:32:52,225 - [124685] - src.utils.log - INFO - Sequential fetching temp table records - __SPLIT__ 2026-07-02 07:32:52,225 - [124685] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationServices woag WHERE woag.WorkOrderAutoGenerationId = 3680973... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:32:52,546 - [124685] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-02 07:32:52,546 - [124685] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SubWorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId = 3680973... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:32:52,824 - [124685] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-02 07:32:52,824 - [124685] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationCrews woag WHERE woag.WorkOrderAutoGenerationId = 3680973... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:32:53,120 - [124685] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-02 07:32:53,120 - [124685] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationSalesPersonCommission woag WHERE woag.WorkOrderAutoGenerationId = 3680973... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:32:53,400 - [124685] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-02 07:32:53,400 - [124685] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupAutoGenerationSourceMapping woag WHERE woag.WorkOrderAutoGenerationId = 3680973... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:32:53,676 - [124685] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-02 07:32:53,677 - [124685] - 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 = 3680973... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:32:53,980 - [124685] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-02 07:32:53,980 - [124685] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from CRM.LeadNote woag WHERE woag.RefId = 3680973 and woag.RefType = 'TempWorkorder';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:32:54,259 - [124685] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-02 07:32:54,259 - [124685] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment woagca WHERE woagca.WorkOrderAutoGenerationId = 3680973;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:32:54,534 - [124685] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-02 07:32:54,537 - [124685] - src.utils.log - INFO - Updating temp tables - __SPLIT__ 2026-07-02 07:32:54,549 - [124685] - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyKey FROM Common.CompanyMaster cm WHERE CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:32:54,823 - [124685] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-02 07:32:54,824 - [124685] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 133 AND EnitityNumberType in ('SubWorkOrder'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:32:55,099 - [124685] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-02 07:32:55,103 - [124685] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-02 07:32:55,103 - [124685] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishHistory: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:32:55,403 - [124685] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderAutoGenerationPublishHistory - __SPLIT__ 2026-07-02 07:32:56,381 - [124685] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishHistory in 1 batches - __SPLIT__ 2026-07-02 07:32:56,382 - [124685] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationPublishHistoryId, WorkOrderNo, ServiceSetupId FROM ServiceCore.WorkOrderAutoGenerationPublishHistory WHERE ServiceSetupId = 150596 AND WorkOrderNo = '8392136' AND GenerateWorkOrderHistoryId = 124685; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:32:56,863 - [124685] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-02 07:32:56,869 - [124685] - src.utils.log - INFO - Sequential Insertion in work order tables begin - __SPLIT__ 2026-07-02 07:32:56,869 - [124685] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-02 07:32:56,869 - [124685] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderServices: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:32:57,153 - [124685] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderServices - __SPLIT__ 2026-07-02 07:32:58,126 - [124685] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderServices in 1 batches - __SPLIT__ 2026-07-02 07:32:58,126 - [124685] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderAppliedDiscount: - __SPLIT__ 2026-07-02 07:32:58,126 - [124685] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderSalesPersonCommission: - __SPLIT__ 2026-07-02 07:32:58,127 - [124685] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderCommissionAdjustment: - __SPLIT__ 2026-07-02 07:32:58,127 - [124685] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-02 07:32:58,127 - [124685] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderCrew: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:32:58,407 - [124685] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderCrew - __SPLIT__ 2026-07-02 07:32:59,377 - [124685] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderCrew in 1 batches - __SPLIT__ 2026-07-02 07:32:59,377 - [124685] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkorderSourceMapping: - __SPLIT__ 2026-07-02 07:32:59,377 - [124685] - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-07-02 07:32:59,377 - [124685] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-02 07:32:59,377 - [124685] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishServices: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:32:59,660 - [124685] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationPublishServices - __SPLIT__ 2026-07-02 07:33:00,637 - [124685] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishServices in 1 batches - __SPLIT__ 2026-07-02 07:33:00,637 - [124685] - 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 = 150596... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:33:00,913 - [124685] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-02 07:33:00,919 - [124685] - src.utils.log - INFO - Size of Transaction: 1 - __SPLIT__ 2026-07-02 07:33:00,920 - [124685] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:33:01,338 - [124685] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-07-02 07:33:02,306 - [124685] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-07-02 07:33:02,443 - [124685] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-07-02 07:33:02,444 - [124685] - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionId, ModifiedBy, TransactionDate as InvoiceDate from Billing.[Transaction] t WHERE t.ModifiedBy = 12345678910 and t.CompanyId = 133 AND t.TransactionType ='Invoice' AND t.CreatedDate = '2026-07-02 03:33:00.915';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:33:02,849 - [124685] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-02 07:33:02,852 - [124685] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150596;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:33:03,128 - [124685] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-02 07:33:03,137 - [124685] - src.utils.log - INFO - πŸ“ Executing: UPDATE Billing.[Transaction] SET ModifiedBy = NULL WHERE ModifiedBy = 12345678910 AND CreatedDate = '2026-07-02 03:33:00.915'; ... (Thread: ThreadPoolExecutor-12_0) - __SPLIT__ 2026-07-02 07:33:04,153 - [124685] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-02 07:33:04,158 - [124685] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-02 07:33:04,158 - [124685] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:33:04,443 - [124685] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into Billing.Invoice - __SPLIT__ 2026-07-02 07:33:05,420 - [124685] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-07-02 07:33:05,421 - [124685] - src.utils.log - INFO - πŸ” Fetching data: SELECT InvoiceId, WorkOrderNo FROM Billing.Invoice i WHERE i.WorkOrderNo = '1427175'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:33:06,350 - [124685] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-02 07:33:06,360 - [124685] - 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 = 150596 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:33:06,636 - [124685] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-02 07:33:06,636 - [124685] - 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 = 150596 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:33:06,912 - [124685] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-02 07:33:06,912 - [124685] - 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 = 150596 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:33:07,187 - [124685] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-02 07:33:07,187 - [124685] - 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 = 150596 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:33:07,462 - [124685] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-02 07:33:07,476 - [124685] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150596;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:33:07,752 - [124685] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-02 07:33:07,757 - [124685] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId, AppliedDiscountAmt as AppliedDiscountAmount,IsActive ,ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 150596;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:33:08,032 - [124685] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-02 07:33:08,035 - [124685] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId,IsActive,DiscountAmount, IsDiscountPercent,DiscountPercent,DiscountDescription , ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 150596;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:33:08,312 - [124685] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-02 07:33:08,312 - [124685] - src.utils.log - INFO - Sequential Insertion in invoice tables begin - __SPLIT__ 2026-07-02 07:33:08,312 - [124685] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.AccountDiscountSetup: - __SPLIT__ 2026-07-02 07:33:08,312 - [124685] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-02 07:33:08,312 - [124685] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceCharges: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:33:08,596 - [124685] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.InvoiceCharges - __SPLIT__ 2026-07-02 07:33:09,567 - [124685] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.InvoiceCharges in 1 batches - __SPLIT__ 2026-07-02 07:33:09,568 - [124685] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.DiscountApplied: - __SPLIT__ 2026-07-02 07:33:09,568 - [124685] - src.utils.log - INFO - Invoice Publish Done - __SPLIT__ 2026-07-02 07:33:09,568 - [124685] - src.utils.log - INFO - Updating Next GenerationDate - __SPLIT__ 2026-07-02 07:33:09,569 - [124685] - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, MAX(NextWorkOrderGenerationDate) AS MaxNextWorkOrderGeneration FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 124685 GROUP BY ServiceSetupId; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:33:09,846 - [124685] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-02 07:33:09,852 - [124685] - src.utils.log - INFO - πŸ”„ Updating next gen date sequentially: inside update_next_workorder_generation - __SPLIT__ 2026-07-02 07:33:09,991 - [124685] - src.utils.log - INFO - πŸ›  Creating temp table #tbl_bbe5d9b166 - __SPLIT__ 2026-07-02 07:33:10,268 - [124685] - src.utils.log - INFO - πŸ“Œ Bulk inserting 1 rows into #tbl_bbe5d9b166 - __SPLIT__ 2026-07-02 07:33:10,543 - [124685] - src.utils.log - INFO - πŸ” Running MERGE update to apply changes - __SPLIT__ 2026-07-02 07:33:10,690 - [124685] - src.utils.log - INFO - βœ” SQL reported affected rows: 1 - __SPLIT__ 2026-07-02 07:33:10,834 - [124685] - src.utils.log - INFO - πŸ” Verified successfully updated 1 rows via #tbl_bbe5d9b166 - __SPLIT__ 2026-07-02 07:33:10,834 - [124685] - src.utils.log - INFO - πŸŽ‰ Successfully updated NextGenerationDate using temp table #tbl_bbe5d9b166 - __SPLIT__ 2026-07-02 07:33:10,834 - [124685] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 124685 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:33:11,109 - [124685] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-02 07:33:11,110 - [124685] - src.utils.log - INFO - Sequential deletion from temp tables begin - __SPLIT__ 2026-07-02 07:33:11,110 - [124685] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId = 3680973 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:33:11,526 - [124685] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-02 07:33:11,527 - [124685] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId = 3680973 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:33:11,895 - [124685] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-02 07:33:11,895 - [124685] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId = 3680973 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:33:12,171 - [124685] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-02 07:33:12,172 - [124685] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId = 3680973 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:33:12,535 - [124685] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-02 07:33:12,535 - [124685] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId = 3680973 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:33:12,816 - [124685] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-02 07:33:12,817 - [124685] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 3680973 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:33:13,094 - [124685] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-02 07:33:13,095 - [124685] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId = 3680973 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:33:13,369 - [124685] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-02 07:33:13,369 - [124685] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 3680973 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:33:13,697 - [124685] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-02 07:33:13,697 - [124685] - src.utils.log - INFO - Work order published ids: (3680973,) - __SPLIT__ 2026-07-02 07:33:13,697 - [124685] - src.utils.log - INFO - Time took to perform operation in publishing [124685]: 31.2 - __SPLIT__ 2026-07-02 07:33:13,697 - [124685] - src.utils.log - INFO - Publish Completed for GenerateWorkOrderHistoryId: [124685] - __SPLIT__ 2026-07-02 07:33:13,697 - [124685] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-07-02 03:33:13.697' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124685;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:33:13,974 - [124685] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-02 07:41:32,766 - 124687 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=124687 - __SPLIT__ 2026-07-02 07:41:32,766 - 124687 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 124687 - __SPLIT__ 2026-07-02 07:41:32,767 - 124687 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-02 07:41:32,767 - 124687 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:41:35,253 - 124687 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-02 07:41:35,254 - 124687 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-07-02 07:41:35,254 - 124687 - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-07-02 07:41:35,254 - 124687 - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-07-02 07:41:35,255 - 124687 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 124687;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:41:37,108 - 124687 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-02 07:41:37,109 - 124687 - 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 = 124687), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 124687), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 124687 AND ss.FrequencyScheduleId IS NOT NULL AND ss.IsActive = 1 AND ss.IsDeleted = 0 AND ss.Status <> 'Canceled' AND ((ss.OrderType = gw.OrderType) OR gw.OrderType IS NULL);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:41:37,427 - 124687 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-02 07:41:37,428 - 124687 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 124687;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:41:37,695 - 124687 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-02 07:41:37,698 - 124687 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-07-02 07:41:37,699 - 124687 - 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 = 14608... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:41:37,970 - 124687 - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-07-02 07:41:37,971 - 124687 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-07-02 07:41:37,974 - 124687 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-07-02 07:41:37,974 - 124687 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150597;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:41:38,240 - 124687 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-02 07:41:38,241 - 124687 - src.utils.log - INFO - πŸ” Fetching data: select ServiceDate, ServiceSetupId, IsInitial from serviceCore.WorkOrder wo inner join ServiceCore.WorkOrderStatus wos on wo.WoStatusId = wos.WoStatusId where ServiceDate >= '2026-07-02 00:00:00' and ServiceDate <= '2026-12-31 00:00:00' and ServiceSetupId = 150597 and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:41:38,516 - 124687 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-02 07:41:39,071 - 124687 - src.utils.log - INFO - Generating work orders for setup: 150597 - __SPLIT__ 2026-07-02 07:41:39,081 - 124687 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 1130;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:41:39,345 - 124687 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-02 07:41:39,384 - 124687 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-07-02 07:41:39,389 - 124687 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=133 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:41:39,653 - 124687 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-02 07:41:39,655 - 124687 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-07-02 07:41:39,655 - 124687 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-07-02 07:41:39,655 - 124687 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150597 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:41:40,023 - 124687 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-02 07:41:40,023 - 124687 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150597 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:41:40,381 - 124687 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-02 07:41:40,381 - 124687 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150597 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:41:40,656 - 124687 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-02 07:41:40,656 - 124687 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150597 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:41:41,021 - 124687 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-02 07:41:41,022 - 124687 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150597 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:41:41,358 - 124687 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-02 07:41:41,359 - 124687 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150597 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:41:41,642 - 124687 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-02 07:41:41,642 - 124687 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150597 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:41:41,912 - 124687 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-02 07:41:41,913 - 124687 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150597 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:41:42,379 - 124687 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-02 07:41:42,380 - 124687 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-02 07:41:42,380 - 124687 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:41:42,685 - 124687 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-07-02 07:41:43,634 - 124687 - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-07-02 07:41:43,635 - 124687 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 1 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-07-01 11:58:39.742' and ServiceSetupId = 150597... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:41:43,968 - 124687 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-02 07:41:43,969 - 124687 - src.utils.log - INFO - Id's of work order inserted to DB: [3680976] - __SPLIT__ 2026-07-02 07:41:43,969 - 124687 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150597;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:41:44,235 - 124687 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-02 07:41:44,235 - 124687 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-07-02 07:41:44,236 - 124687 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId = 150597... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:41:44,504 - 124687 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-02 07:41:44,504 - 124687 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId = 150597... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:41:44,769 - 124687 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-02 07:41:44,773 - 124687 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId = 150597... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:41:45,048 - 124687 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-02 07:41:45,049 - 124687 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId = 150597... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:41:45,319 - 124687 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-02 07:41:45,320 - 124687 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId = 150597... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:41:45,584 - 124687 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-02 07:41:45,584 - 124687 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId = 150597;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:41:45,850 - 124687 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-02 07:41:45,851 - 124687 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId = 150597;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:41:46,116 - 124687 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-02 07:41:46,116 - 124687 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId = 150597;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:41:46,506 - 124687 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-02 07:41:46,507 - 124687 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId = 150597;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:41:46,774 - 124687 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-02 07:41:46,782 - 124687 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-07-02 07:41:46,782 - 124687 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-07-02 07:41:46,782 - 124687 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-07-02 07:41:46,782 - 124687 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.CommunicationPreferencesServiceReportNotification: - __SPLIT__ 2026-07-02 07:41:46,782 - 124687 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-07-02 07:41:46,782 - 124687 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SetupAutoGenerationSourceMapping: - __SPLIT__ 2026-07-02 07:41:46,782 - 124687 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-07-02 07:41:46,782 - 124687 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationAppliedDiscount: - __SPLIT__ 2026-07-02 07:41:46,782 - 124687 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-07-02 07:41:46,782 - 124687 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SubWorkOrderAutoGeneration: - __SPLIT__ 2026-07-02 07:41:46,782 - 124687 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-07-02 07:41:46,782 - 124687 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: - __SPLIT__ 2026-07-02 07:41:46,783 - 124687 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-07-02 07:41:46,783 - 124687 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: - __SPLIT__ 2026-07-02 07:41:46,783 - 124687 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-07-02 07:41:46,783 - 124687 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-02 07:41:46,783 - 124687 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 3680976 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:41:47,048 - 124687 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-02 07:41:47,049 - 124687 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationCrews: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:41:47,319 - 124687 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderAutoGenerationCrews - __SPLIT__ 2026-07-02 07:41:48,256 - 124687 - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationCrews in 1 batches - __SPLIT__ 2026-07-02 07:41:48,256 - 124687 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-07-02 07:41:48,256 - 124687 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationServices: - __SPLIT__ 2026-07-02 07:41:48,256 - 124687 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-07-02 07:41:48,256 - 124687 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-02 07:41:48,257 - 124687 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 3680976 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:41:48,521 - 124687 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-02 07:41:48,522 - 124687 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:41:48,798 - 124687 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-07-02 07:41:49,735 - 124687 - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-07-02 07:41:49,735 - 124687 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-07-02 07:41:49,736 - 124687 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 124687;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:41:50,006 - 124687 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-02 07:41:50,006 - 124687 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-07-02 07:41:50,006 - 124687 - src.utils.log - INFO - Time took to perform operation: 17.24 - __SPLIT__ 2026-07-02 07:42:08,861 - [124687] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[3680976] user_id=43135 company_id=133 project_id=[124687] publish_all=False - __SPLIT__ 2026-07-02 07:42:08,862 - [124687] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[3680976] user_id=43135 company_id=133 project_id=[124687] publish_all=False - __SPLIT__ 2026-07-02 07:42:08,862 - [124687] - src.utils.log - INFO - Sequential Work order publish in progress for GenerateWorkOrderHistoryId: [124687] - __SPLIT__ 2026-07-02 07:42:08,863 - [124687] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-02 07:42:08,863 - [124687] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:42:11,066 - [124687] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-02 07:42:11,067 - [124687] - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-07-02 07:42:11,067 - [124687] - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-07-02 07:42:11,068 - [124687] - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-07-02 07:42:11,068 - [124687] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'InProgress' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124687;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:42:12,937 - [124687] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-02 07:42:12,937 - [124687] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId = 3680976... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:42:13,206 - [124687] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-02 07:42:13,207 - [124687] - src.utils.log - INFO - Inside get_work_order_table - __SPLIT__ 2026-07-02 07:42:13,207 - [124687] - 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 = 150597 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:42:13,490 - [124687] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-02 07:42:13,491 - [124687] - 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 = 150597 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:42:13,769 - [124687] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-02 07:42:13,770 - [124687] - 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 = 150597 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:42:14,052 - [124687] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-02 07:42:14,056 - [124687] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder,BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:42:14,322 - [124687] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-02 07:42:14,323 - [124687] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 133 AND EnitityNumberType in ('WorkOrder','Invoice'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:42:14,589 - [124687] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-02 07:42:14,589 - [124687] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder, BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:42:14,855 - [124687] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-02 07:42:14,855 - [124687] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 1 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 133 AND EnitityNumberType = 'WorkOrder'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:42:15,124 - [124687] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-02 07:42:15,125 - [124687] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 1 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 133 AND EnitityNumberType = 'Invoice'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:42:15,399 - [124687] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-02 07:42:15,403 - [124687] - 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 = 150597... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:42:15,691 - [124687] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-02 07:42:15,693 - [124687] - src.utils.log - INFO - πŸ” Fetching data: SELECT x.CompanyId FROM CRM.CompanyMaster x WHERE CompanyKey = 'abcdallas';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:42:15,959 - [124687] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-02 07:42:15,960 - [124687] - src.utils.log - INFO - πŸ” Fetching data: SELECT CollectionStatus,IsHold,AccountNo FROM CRM.Account a WHERE a.AccountNo = '14984' and a.CompanyId = 121;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:42:16,231 - [124687] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-02 07:42:16,234 - [124687] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderNo FROM ServiceCore.WorkOrder WHERE WorkOrderNo = '1427177' AND CompanyId = 133 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:42:16,503 - [124687] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-02 07:42:16,503 - [124687] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrder (skip triggers): 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:42:16,938 - [124687] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrder (triggers skipped) - __SPLIT__ 2026-07-02 07:42:17,893 - [124687] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrder in 1 batches (triggers skipped) - __SPLIT__ 2026-07-02 07:42:18,026 - [124687] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-07-02 07:42:18,029 - [124687] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkorderId, WorkOrderNo FROM ServiceCore.WorkOrder wo WHERE wo.WorkOrderNo = '1427177' AND wo.AccountNumber = '14984' AND wo.CompanyId = 133 ... (Thread: ThreadPoolExecutor-13_0) - __SPLIT__ 2026-07-02 07:42:18,295 - [124687] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-02 07:42:18,296 - [124687] - src.utils.log - INFO - Sequential fetching temp table records - __SPLIT__ 2026-07-02 07:42:18,296 - [124687] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationServices woag WHERE woag.WorkOrderAutoGenerationId = 3680976... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:42:18,607 - [124687] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-02 07:42:18,607 - [124687] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SubWorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId = 3680976... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:42:18,876 - [124687] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-02 07:42:18,876 - [124687] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationCrews woag WHERE woag.WorkOrderAutoGenerationId = 3680976... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:42:19,169 - [124687] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-02 07:42:19,169 - [124687] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationSalesPersonCommission woag WHERE woag.WorkOrderAutoGenerationId = 3680976... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:42:19,435 - [124687] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-02 07:42:19,436 - [124687] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupAutoGenerationSourceMapping woag WHERE woag.WorkOrderAutoGenerationId = 3680976... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:42:19,704 - [124687] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-02 07:42:19,704 - [124687] - 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 = 3680976... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:42:20,000 - [124687] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-02 07:42:20,000 - [124687] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from CRM.LeadNote woag WHERE woag.RefId = 3680976 and woag.RefType = 'TempWorkorder';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:42:20,269 - [124687] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-02 07:42:20,270 - [124687] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment woagca WHERE woagca.WorkOrderAutoGenerationId = 3680976;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:42:20,536 - [124687] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-02 07:42:20,538 - [124687] - src.utils.log - INFO - Updating temp tables - __SPLIT__ 2026-07-02 07:42:20,550 - [124687] - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyKey FROM Common.CompanyMaster cm WHERE CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:42:20,816 - [124687] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-02 07:42:20,816 - [124687] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 133 AND EnitityNumberType in ('SubWorkOrder'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:42:21,082 - [124687] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-02 07:42:21,086 - [124687] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-02 07:42:21,086 - [124687] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishHistory: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:42:21,378 - [124687] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderAutoGenerationPublishHistory - __SPLIT__ 2026-07-02 07:42:22,327 - [124687] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishHistory in 1 batches - __SPLIT__ 2026-07-02 07:42:22,328 - [124687] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationPublishHistoryId, WorkOrderNo, ServiceSetupId FROM ServiceCore.WorkOrderAutoGenerationPublishHistory WHERE ServiceSetupId = 150597 AND WorkOrderNo = '2156009' AND GenerateWorkOrderHistoryId = 124687; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:42:22,797 - [124687] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-02 07:42:22,803 - [124687] - src.utils.log - INFO - Sequential Insertion in work order tables begin - __SPLIT__ 2026-07-02 07:42:22,803 - [124687] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-02 07:42:22,803 - [124687] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderServices: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:42:23,076 - [124687] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderServices - __SPLIT__ 2026-07-02 07:42:24,019 - [124687] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderServices in 1 batches - __SPLIT__ 2026-07-02 07:42:24,019 - [124687] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderAppliedDiscount: - __SPLIT__ 2026-07-02 07:42:24,020 - [124687] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderSalesPersonCommission: - __SPLIT__ 2026-07-02 07:42:24,020 - [124687] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderCommissionAdjustment: - __SPLIT__ 2026-07-02 07:42:24,020 - [124687] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-02 07:42:24,020 - [124687] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderCrew: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:42:24,292 - [124687] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderCrew - __SPLIT__ 2026-07-02 07:42:25,233 - [124687] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderCrew in 1 batches - __SPLIT__ 2026-07-02 07:42:25,233 - [124687] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkorderSourceMapping: - __SPLIT__ 2026-07-02 07:42:25,233 - [124687] - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-07-02 07:42:25,233 - [124687] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-02 07:42:25,233 - [124687] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishServices: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:42:25,508 - [124687] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderAutoGenerationPublishServices - __SPLIT__ 2026-07-02 07:42:26,447 - [124687] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishServices in 1 batches - __SPLIT__ 2026-07-02 07:42:26,448 - [124687] - 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 = 150597... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:42:26,714 - [124687] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-02 07:42:26,721 - [124687] - src.utils.log - INFO - Size of Transaction: 1 - __SPLIT__ 2026-07-02 07:42:26,722 - [124687] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:42:27,127 - [124687] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-07-02 07:42:28,065 - [124687] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-07-02 07:42:28,198 - [124687] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-07-02 07:42:28,199 - [124687] - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionId, ModifiedBy, TransactionDate as InvoiceDate from Billing.[Transaction] t WHERE t.ModifiedBy = 12345678910 and t.CompanyId = 133 AND t.TransactionType ='Invoice' AND t.CreatedDate = '2026-07-02 03:42:26.716';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:42:28,595 - [124687] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-02 07:42:28,598 - [124687] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150597;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:42:28,865 - [124687] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-02 07:42:28,874 - [124687] - src.utils.log - INFO - πŸ“ Executing: UPDATE Billing.[Transaction] SET ModifiedBy = NULL WHERE ModifiedBy = 12345678910 AND CreatedDate = '2026-07-02 03:42:26.716'; ... (Thread: ThreadPoolExecutor-14_0) - __SPLIT__ 2026-07-02 07:42:29,888 - [124687] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-02 07:42:29,893 - [124687] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-02 07:42:29,893 - [124687] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:42:30,169 - [124687] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into Billing.Invoice - __SPLIT__ 2026-07-02 07:42:31,110 - [124687] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-07-02 07:42:31,110 - [124687] - src.utils.log - INFO - πŸ” Fetching data: SELECT InvoiceId, WorkOrderNo FROM Billing.Invoice i WHERE i.WorkOrderNo = '1427177'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:42:32,023 - [124687] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-02 07:42:32,032 - [124687] - 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 = 150597 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:42:32,304 - [124687] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-02 07:42:32,304 - [124687] - 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 = 150597 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:42:32,574 - [124687] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-02 07:42:32,574 - [124687] - 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 = 150597 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:42:32,845 - [124687] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-02 07:42:32,846 - [124687] - 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 = 150597 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:42:33,116 - [124687] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-02 07:42:33,129 - [124687] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150597;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:42:33,396 - [124687] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-02 07:42:33,401 - [124687] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId, AppliedDiscountAmt as AppliedDiscountAmount,IsActive ,ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 150597;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:42:33,669 - [124687] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-02 07:42:33,673 - [124687] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId,IsActive,DiscountAmount, IsDiscountPercent,DiscountPercent,DiscountDescription , ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 150597;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:42:33,941 - [124687] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-02 07:42:33,942 - [124687] - src.utils.log - INFO - Sequential Insertion in invoice tables begin - __SPLIT__ 2026-07-02 07:42:33,942 - [124687] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.AccountDiscountSetup: - __SPLIT__ 2026-07-02 07:42:33,942 - [124687] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-02 07:42:33,942 - [124687] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceCharges: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:42:34,216 - [124687] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into Billing.InvoiceCharges - __SPLIT__ 2026-07-02 07:42:35,155 - [124687] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into Billing.InvoiceCharges in 1 batches - __SPLIT__ 2026-07-02 07:42:35,156 - [124687] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.DiscountApplied: - __SPLIT__ 2026-07-02 07:42:35,156 - [124687] - src.utils.log - INFO - Invoice Publish Done - __SPLIT__ 2026-07-02 07:42:35,156 - [124687] - src.utils.log - INFO - Updating Next GenerationDate - __SPLIT__ 2026-07-02 07:42:35,156 - [124687] - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, MAX(NextWorkOrderGenerationDate) AS MaxNextWorkOrderGeneration FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 124687 GROUP BY ServiceSetupId; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:42:35,424 - [124687] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-02 07:42:35,430 - [124687] - src.utils.log - INFO - πŸ”„ Updating next gen date sequentially: inside update_next_workorder_generation - __SPLIT__ 2026-07-02 07:42:35,564 - [124687] - src.utils.log - INFO - πŸ›  Creating temp table #tbl_2ba4b5ba16 - __SPLIT__ 2026-07-02 07:42:35,833 - [124687] - src.utils.log - INFO - πŸ“Œ Bulk inserting 1 rows into #tbl_2ba4b5ba16 - __SPLIT__ 2026-07-02 07:42:36,099 - [124687] - src.utils.log - INFO - πŸ” Running MERGE update to apply changes - __SPLIT__ 2026-07-02 07:42:36,241 - [124687] - src.utils.log - INFO - βœ” SQL reported affected rows: 1 - __SPLIT__ 2026-07-02 07:42:36,380 - [124687] - src.utils.log - INFO - πŸ” Verified successfully updated 1 rows via #tbl_2ba4b5ba16 - __SPLIT__ 2026-07-02 07:42:36,380 - [124687] - src.utils.log - INFO - πŸŽ‰ Successfully updated NextGenerationDate using temp table #tbl_2ba4b5ba16 - __SPLIT__ 2026-07-02 07:42:36,380 - [124687] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 124687 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:42:36,647 - [124687] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-02 07:42:36,647 - [124687] - src.utils.log - INFO - Sequential deletion from temp tables begin - __SPLIT__ 2026-07-02 07:42:36,647 - [124687] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId = 3680976 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:42:37,057 - [124687] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-02 07:42:37,057 - [124687] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId = 3680976 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:42:37,417 - [124687] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-02 07:42:37,418 - [124687] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId = 3680976 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:42:37,684 - [124687] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-02 07:42:37,684 - [124687] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId = 3680976 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:42:38,034 - [124687] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-02 07:42:38,034 - [124687] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId = 3680976 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:42:38,306 - [124687] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-02 07:42:38,306 - [124687] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 3680976 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:42:38,575 - [124687] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-02 07:42:38,575 - [124687] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId = 3680976 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:42:38,841 - [124687] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-02 07:42:38,841 - [124687] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 3680976 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:42:39,161 - [124687] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-02 07:42:39,161 - [124687] - src.utils.log - INFO - Work order published ids: (3680976,) - __SPLIT__ 2026-07-02 07:42:39,162 - [124687] - src.utils.log - INFO - Time took to perform operation in publishing [124687]: 30.3 - __SPLIT__ 2026-07-02 07:42:39,162 - [124687] - src.utils.log - INFO - Publish Completed for GenerateWorkOrderHistoryId: [124687] - __SPLIT__ 2026-07-02 07:42:39,162 - [124687] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-07-02 03:42:39.161' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124687;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:42:39,429 - [124687] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-02 07:48:11,056 - 13620 - src.utils.log - INFO - ParallelProcessing=False GenerateInvoiceHistoryId=13620 - __SPLIT__ 2026-07-02 07:48:11,058 - 13620 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-02 07:48:11,058 - 13620 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:48:13,225 - 13620 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-02 07:48:13,225 - 13620 - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-07-02 07:48:13,225 - 13620 - src.utils.log - INFO - Sequential Invoice generation algo started for GenerateInvoiceHistoryId: 13620 - __SPLIT__ 2026-07-02 07:48:13,225 - 13620 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET Status = 'InProgress' WHERE GenerateInvoiceHistoryId = 13620;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:48:13,534 - 13620 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-02 07:48:13,534 - 13620 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateInvoiceHistory WHERE GenerateInvoiceHistoryId = 13620;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:48:13,844 - 13620 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-02 07:48:13,845 - 13620 - 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 = '22026' and ss.ServiceSetupId = 34240 ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:48:14,170 - 13620 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-02 07:48:14,171 - 13620 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET Status = 'Failed', InvoiceGenErrorInfo ='No Invoices with selected filters', InvoiceStatusDateTime = '2026-07-02 03:48:14.171' WHERE GenerateInvoiceHistoryId = 13620;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:48:14,490 - 13620 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-02 07:48:14,490 - 13620 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-07-02 07:48:14,490 - 13620 - src.utils.log - INFO - Error in Sequential Invoice Gen ProjectId:13620 - Time took: 3.43 - Error:No setups found for GenerateWorkOrderHistoryid: 13620 - __SPLIT__ 2026-07-02 07:49:08,349 - 13621 - src.utils.log - INFO - ParallelProcessing=False GenerateInvoiceHistoryId=13621 - __SPLIT__ 2026-07-02 07:49:08,351 - 13621 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-02 07:49:08,351 - 13621 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:49:10,589 - 13621 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-02 07:49:10,590 - 13621 - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-07-02 07:49:10,590 - 13621 - src.utils.log - INFO - Sequential Invoice generation algo started for GenerateInvoiceHistoryId: 13621 - __SPLIT__ 2026-07-02 07:49:10,590 - 13621 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET Status = 'InProgress' WHERE GenerateInvoiceHistoryId = 13621;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:49:10,929 - 13621 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-02 07:49:10,930 - 13621 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateInvoiceHistory WHERE GenerateInvoiceHistoryId = 13621;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:49:11,250 - 13621 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-02 07:49:11,250 - 13621 - 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 = '22026' and ss.ServiceSetupId = 34240 ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:49:11,571 - 13621 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-02 07:49:11,572 - 13621 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET Status = 'Failed', InvoiceGenErrorInfo ='No Invoices with selected filters', InvoiceStatusDateTime = '2026-07-02 03:49:11.571' WHERE GenerateInvoiceHistoryId = 13621;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:49:11,889 - 13621 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-02 07:49:11,890 - 13621 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-07-02 07:49:11,890 - 13621 - src.utils.log - INFO - Error in Sequential Invoice Gen ProjectId:13621 - Time took: 3.54 - Error:No setups found for GenerateWorkOrderHistoryid: 13621 - __SPLIT__ 2026-07-02 07:55:17,701 - 13622 - src.utils.log - INFO - ParallelProcessing=False GenerateInvoiceHistoryId=13622 - __SPLIT__ 2026-07-02 07:55:17,702 - 13622 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-02 07:55:17,702 - 13622 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:55:19,886 - 13622 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-02 07:55:19,886 - 13622 - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-07-02 07:55:19,886 - 13622 - src.utils.log - INFO - Sequential Invoice generation algo started for GenerateInvoiceHistoryId: 13622 - __SPLIT__ 2026-07-02 07:55:19,886 - 13622 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET Status = 'InProgress' WHERE GenerateInvoiceHistoryId = 13622;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:55:20,223 - 13622 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-02 07:55:20,223 - 13622 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateInvoiceHistory WHERE GenerateInvoiceHistoryId = 13622;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:55:20,538 - 13622 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-02 07:55:20,539 - 13622 - 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 = '22026' and ss.ServiceSetupId = 34240 ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:55:20,854 - 13622 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-02 07:55:20,854 - 13622 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET Status = 'Failed', InvoiceGenErrorInfo ='No Invoices with selected filters', InvoiceStatusDateTime = '2026-07-02 03:55:20.854' WHERE GenerateInvoiceHistoryId = 13622;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:55:21,163 - 13622 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-02 07:55:21,163 - 13622 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-07-02 07:55:21,163 - 13622 - src.utils.log - INFO - Error in Sequential Invoice Gen ProjectId:13622 - Time took: 3.46 - Error:No setups found for GenerateWorkOrderHistoryid: 13622 - __SPLIT__ 2026-07-02 07:56:10,412 - 13623 - src.utils.log - INFO - ParallelProcessing=False GenerateInvoiceHistoryId=13623 - __SPLIT__ 2026-07-02 07:56:10,414 - 13623 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-02 07:56:10,414 - 13623 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:56:12,602 - 13623 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-02 07:56:12,602 - 13623 - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-07-02 07:56:12,602 - 13623 - src.utils.log - INFO - Sequential Invoice generation algo started for GenerateInvoiceHistoryId: 13623 - __SPLIT__ 2026-07-02 07:56:12,602 - 13623 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET Status = 'InProgress' WHERE GenerateInvoiceHistoryId = 13623;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:56:12,910 - 13623 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-02 07:56:12,910 - 13623 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateInvoiceHistory WHERE GenerateInvoiceHistoryId = 13623;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:56:13,243 - 13623 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-02 07:56:13,244 - 13623 - 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 = '22026' and ss.ServiceSetupId = 34240 ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:56:13,553 - 13623 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-02 07:56:13,553 - 13623 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET Status = 'Failed', InvoiceGenErrorInfo ='No Invoices with selected filters', InvoiceStatusDateTime = '2026-07-02 03:56:13.553' WHERE GenerateInvoiceHistoryId = 13623;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 07:56:13,861 - 13623 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-02 07:56:13,861 - 13623 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-07-02 07:56:13,861 - 13623 - src.utils.log - INFO - Error in Sequential Invoice Gen ProjectId:13623 - Time took: 3.45 - Error:No setups found for GenerateWorkOrderHistoryid: 13623 - __SPLIT__ 2026-07-02 09:40:02,756 - 124688 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=124688 - __SPLIT__ 2026-07-02 09:40:02,757 - 124688 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 124688 - __SPLIT__ 2026-07-02 09:40:02,757 - 124688 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-02 09:40:02,757 - 124688 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 09:40:04,909 - 124688 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-02 09:40:04,910 - 124688 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-07-02 09:40:04,910 - 124688 - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-07-02 09:40:04,911 - 124688 - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-07-02 09:40:04,911 - 124688 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 124688;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 09:40:06,881 - 124688 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-02 09:40:06,881 - 124688 - 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 = 124688), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 124688), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 124688 AND ss.FrequencyScheduleId IS NOT NULL AND ss.IsActive = 1 AND ss.IsDeleted = 0 AND ss.Status <> 'Canceled' AND ((ss.OrderType = gw.OrderType) OR gw.OrderType IS NULL);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 09:40:07,218 - 124688 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-02 09:40:07,219 - 124688 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 124688;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 09:40:07,504 - 124688 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-02 09:40:07,507 - 124688 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-07-02 09:40:07,507 - 124688 - src.utils.log - INFO - πŸ” Fetching data: SELECT fsd.IntervalDays, fs.CreatedDate ,f.FrequencyId , fs.FrequencyScheduleId, f.[SysName], f.FrequencyValue, f.YearlyOccurrence , fs.ScheduleFormat,fsd.Days, fsd.Weeks, fsd.Months,fsc.[Month] as sch_months, fsd.StartMonth , fsd.DateDay,fsd.DateMonth FROM [ServiceCore].[FrequencyMaster] f inner join [ServiceCore].[FrequencySchedule] fs on fs.FrequencyId = f.FrequencyId left join ServiceCore.FrequencyScheduleCycle fsc on fsc.FrequencyScheduleId = fs.FrequencyScheduleId left join [ServiceCore].[FrequencyScheduleDetail] fsd on fsd.FrequencyScheduleId = fs.FrequencyScheduleId WHERE fsd.FrequencyScheduleId = 14626... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 09:40:07,802 - 124688 - src.utils.log - INFO - βœ… Fetched 60 rows - __SPLIT__ 2026-07-02 09:40:07,802 - 124688 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-07-02 09:40:07,805 - 124688 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-07-02 09:40:07,805 - 124688 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150598;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 09:40:08,087 - 124688 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-02 09:40:08,088 - 124688 - src.utils.log - INFO - πŸ” Fetching data: select ServiceDate, ServiceSetupId, IsInitial from serviceCore.WorkOrder wo inner join ServiceCore.WorkOrderStatus wos on wo.WoStatusId = wos.WoStatusId where ServiceDate >= '2026-08-01 00:00:00' and ServiceDate <= '2026-12-31 00:00:00' and ServiceSetupId = 150598 and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 09:40:08,379 - 124688 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-02 09:40:08,977 - 124688 - src.utils.log - INFO - Generating work orders for setup: 150598 - __SPLIT__ 2026-07-02 09:40:10,034 - 124688 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 1133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 09:40:10,315 - 124688 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-02 09:40:10,375 - 124688 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-07-02 09:40:10,383 - 124688 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=133 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 09:40:10,662 - 124688 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-02 09:40:10,664 - 124688 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-07-02 09:40:10,664 - 124688 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-07-02 09:40:10,664 - 124688 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150598 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 09:40:11,015 - 124688 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-02 09:40:11,015 - 124688 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150598 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 09:40:11,365 - 124688 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-02 09:40:11,366 - 124688 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150598 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 09:40:11,661 - 124688 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-02 09:40:11,661 - 124688 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150598 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 09:40:12,013 - 124688 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-02 09:40:12,013 - 124688 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150598 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 09:40:12,370 - 124688 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-02 09:40:12,371 - 124688 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150598 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 09:40:12,668 - 124688 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-02 09:40:12,669 - 124688 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150598 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 09:40:12,954 - 124688 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-02 09:40:12,955 - 124688 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150598 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 09:40:13,381 - 124688 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-02 09:40:13,381 - 124688 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-02 09:40:13,381 - 124688 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 109 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 09:40:13,699 - 124688 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 109) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-07-02 09:40:18,288 - 124688 - src.utils.log - INFO - βœ… All 109 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-07-02 09:40:18,289 - 124688 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 109 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-07-01 11:58:39.763' and ServiceSetupId = 150598... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 09:40:18,648 - 124688 - src.utils.log - INFO - βœ… Fetched 109 rows - __SPLIT__ 2026-07-02 09:40:18,649 - 124688 - src.utils.log - INFO - Id's of work order inserted to DB: [3680977 3680978 3680979 3680980 3680981 3680982 3680983 3680984 3680985 3680986 3680987 3680988 3680989 3680990 3680991 3680992 3680993 3680994 3680995 3680996 3680997 3680998 3680999 3681000 3681001 3681002 3681003 3681004 3681005 3681006 3681007 3681008 3681009 3681010 3681011 3681012 3681013 3681014 3681015 3681016 3681017 3681018 3681019 3681020 3681021 3681022 3681023 3681024 3681025 3681026 3681027 3681028 3681029 3681030 3681031 3681032 3681033 3681034 3681035 3681036 3681037 3681038 3681039 3681040 3681041 3681042 3681043 3681044 3681045 3681046 3681047 3681048 3681049 3681050 3681051 3681052 3681053 3681054 3681055 3681056 3681057 3681058 3681059 3681060 3681061 3681062 3681063 3681064 3681065 3681066 3681067 3681068 3681069 3681070 3681071 3681072 3681073 3681074 3681075 3681076 3681077 3681078 3681079 3681080 3681081 3681082 3681083 3681084 3681085] - __SPLIT__ 2026-07-02 09:40:18,649 - 124688 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150598;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 09:40:18,930 - 124688 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-02 09:40:18,931 - 124688 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-07-02 09:40:18,931 - 124688 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId = 150598... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 09:40:19,220 - 124688 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-02 09:40:19,221 - 124688 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId = 150598... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 09:40:19,501 - 124688 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-02 09:40:19,506 - 124688 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId = 150598... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 09:40:19,795 - 124688 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-02 09:40:19,796 - 124688 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId = 150598... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 09:40:20,077 - 124688 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-02 09:40:20,078 - 124688 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId = 150598... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 09:40:20,362 - 124688 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-02 09:40:20,362 - 124688 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId = 150598;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 09:40:20,646 - 124688 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-02 09:40:20,647 - 124688 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId = 150598;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 09:40:20,927 - 124688 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-02 09:40:20,927 - 124688 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId = 150598;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 09:40:21,350 - 124688 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-02 09:40:21,350 - 124688 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId = 150598;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 09:40:21,633 - 124688 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-02 09:40:21,641 - 124688 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-07-02 09:40:21,641 - 124688 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-07-02 09:40:21,642 - 124688 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-07-02 09:40:21,642 - 124688 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.CommunicationPreferencesServiceReportNotification: - __SPLIT__ 2026-07-02 09:40:21,642 - 124688 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-07-02 09:40:21,642 - 124688 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SetupAutoGenerationSourceMapping: - __SPLIT__ 2026-07-02 09:40:21,642 - 124688 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-07-02 09:40:21,642 - 124688 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationAppliedDiscount: - __SPLIT__ 2026-07-02 09:40:21,642 - 124688 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-07-02 09:40:21,642 - 124688 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SubWorkOrderAutoGeneration: - __SPLIT__ 2026-07-02 09:40:21,642 - 124688 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-07-02 09:40:21,642 - 124688 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: - __SPLIT__ 2026-07-02 09:40:21,642 - 124688 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-07-02 09:40:21,642 - 124688 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: - __SPLIT__ 2026-07-02 09:40:21,642 - 124688 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-07-02 09:40:21,642 - 124688 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-02 09:40:21,643 - 124688 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3680977, 3680978, 3680979, 3680980, 3680981, 3680982, 3680983, 3680984, 3680985, 3680986, 3680987, 3680988, 3680989, 3680990, 3680991, 3680992, 3680993, 3680994, 3680995, 3680996, 3680997, 3680998, 3680999, 3681000, 3681001, 3681002, 3681003, 3681004, 3681005, 3681006, 3681007, 3681008, 3681009, 3681010, 3681011, 3681012, 3681013, 3681014, 3681015, 3681016, 3681017, 3681018, 3681019, 3681020, 3681021, 3681022, 3681023, 3681024, 3681025, 3681026, 3681027, 3681028, 3681029, 3681030, 3681031, 3681032, 3681033, 3681034, 3681035, 3681036, 3681037, 3681038, 3681039, 3681040, 3681041, 3681042, 3681043, 3681044, 3681045, 3681046, 3681047, 3681048, 3681049, 3681050, 3681051, 3681052, 3681053, 3681054, 3681055, 3681056, 3681057, 3681058, 3681059, 3681060, 3681061, 3681062, 3681063, 3681064, 3681065, 3681066, 3681067, 3681068, 3681069, 3681070, 3681071, 3681072, 3681073, 3681074, 3681075, 3681076, 3681077, 3681078, 3681079, 3681080, 3681081, 3681082, 3681083, 3681084, 3681085) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 09:40:21,932 - 124688 - src.utils.log - INFO - βœ… Fetched 109 rows - __SPLIT__ 2026-07-02 09:40:21,933 - 124688 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationCrews: 109 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 09:40:22,219 - 124688 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 109) into ServiceCore.WorkOrderAutoGenerationCrews - __SPLIT__ 2026-07-02 09:40:23,344 - 124688 - src.utils.log - INFO - βœ… All 109 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationCrews in 1 batches - __SPLIT__ 2026-07-02 09:40:23,344 - 124688 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-07-02 09:40:23,344 - 124688 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationServices: - __SPLIT__ 2026-07-02 09:40:23,345 - 124688 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-07-02 09:40:23,345 - 124688 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-02 09:40:23,345 - 124688 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3680977, 3680978, 3680979, 3680980, 3680981, 3680982, 3680983, 3680984, 3680985, 3680986, 3680987, 3680988, 3680989, 3680990, 3680991, 3680992, 3680993, 3680994, 3680995, 3680996, 3680997, 3680998, 3680999, 3681000, 3681001, 3681002, 3681003, 3681004, 3681005, 3681006, 3681007, 3681008, 3681009, 3681010, 3681011, 3681012, 3681013, 3681014, 3681015, 3681016, 3681017, 3681018, 3681019, 3681020, 3681021, 3681022, 3681023, 3681024, 3681025, 3681026, 3681027, 3681028, 3681029, 3681030, 3681031, 3681032, 3681033, 3681034, 3681035, 3681036, 3681037, 3681038, 3681039, 3681040, 3681041, 3681042, 3681043, 3681044, 3681045, 3681046, 3681047, 3681048, 3681049, 3681050, 3681051, 3681052, 3681053, 3681054, 3681055, 3681056, 3681057, 3681058, 3681059, 3681060, 3681061, 3681062, 3681063, 3681064, 3681065, 3681066, 3681067, 3681068, 3681069, 3681070, 3681071, 3681072, 3681073, 3681074, 3681075, 3681076, 3681077, 3681078, 3681079, 3681080, 3681081, 3681082, 3681083, 3681084, 3681085) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 09:40:23,625 - 124688 - src.utils.log - INFO - βœ… Fetched 109 rows - __SPLIT__ 2026-07-02 09:40:23,625 - 124688 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 109 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 09:40:23,913 - 124688 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 109) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-07-02 09:40:25,130 - 124688 - src.utils.log - INFO - βœ… All 109 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-07-02 09:40:25,130 - 124688 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-07-02 09:40:25,130 - 124688 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 124688;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 09:40:25,412 - 124688 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-02 09:40:25,412 - 124688 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-07-02 09:40:25,412 - 124688 - src.utils.log - INFO - Time took to perform operation: 22.66 - __SPLIT__ 2026-07-02 11:27:57,456 - 12543 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=12543 - __SPLIT__ 2026-07-02 11:27:57,457 - 12543 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 12543 - __SPLIT__ 2026-07-02 11:27:57,457 - 12543 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-02 11:27:57,457 - 12543 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 11:27:59,708 - 12543 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-02 11:27:59,708 - 12543 - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-07-02 11:27:59,708 - 12543 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 12543;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 11:28:00,031 - 12543 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-02 11:28:00,031 - 12543 - 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 = 12543), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 12543), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 12543 AND ss.FrequencyScheduleId IS NOT NULL AND ss.IsActive = 1 AND ss.IsDeleted = 0 AND ss.Status <> 'Canceled' AND ((ss.OrderType = gw.OrderType) OR gw.OrderType IS NULL);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 11:28:00,404 - 12543 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-02 11:28:00,404 - 12543 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 12543;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 11:28:00,744 - 12543 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-02 11:28:00,747 - 12543 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-07-02 11:28:00,747 - 12543 - 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 = 13107... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 11:28:01,075 - 12543 - src.utils.log - INFO - βœ… Fetched 60 rows - __SPLIT__ 2026-07-02 11:28:01,076 - 12543 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-07-02 11:28:01,079 - 12543 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-07-02 11:28:01,079 - 12543 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 34248;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 11:28:01,402 - 12543 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-02 11:28:01,403 - 12543 - src.utils.log - INFO - πŸ” Fetching data: select ServiceDate, ServiceSetupId, IsInitial from serviceCore.WorkOrder wo inner join ServiceCore.WorkOrderStatus wos on wo.WoStatusId = wos.WoStatusId where ServiceDate >= '2026-07-02 00:00:00' and ServiceDate <= '2026-07-31 00:00:00' and ServiceSetupId = 34248 and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 11:28:01,733 - 12543 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-02 11:28:02,404 - 12543 - src.utils.log - INFO - Generating work orders for setup: 34248 - __SPLIT__ 2026-07-02 11:28:02,537 - 12543 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 1355;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 11:28:02,858 - 12543 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-02 11:28:02,901 - 12543 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-07-02 11:28:02,907 - 12543 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=135 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 11:28:03,231 - 12543 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-02 11:28:03,233 - 12543 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-07-02 11:28:03,233 - 12543 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-07-02 11:28:03,233 - 12543 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34248 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 11:28:03,564 - 12543 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-02 11:28:03,565 - 12543 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34248 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 11:28:03,897 - 12543 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-02 11:28:03,898 - 12543 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34248 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 11:28:04,229 - 12543 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-02 11:28:04,229 - 12543 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34248 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 11:28:04,562 - 12543 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-02 11:28:04,562 - 12543 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34248 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 11:28:04,893 - 12543 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-02 11:28:04,893 - 12543 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34248 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 11:28:05,242 - 12543 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-02 11:28:05,242 - 12543 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34248 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 11:28:05,571 - 12543 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-02 11:28:05,571 - 12543 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34248 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 11:28:05,935 - 12543 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-02 11:28:05,935 - 12543 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-02 11:28:05,935 - 12543 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 20 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 11:28:06,325 - 12543 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 20) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-07-02 11:28:08,646 - 12543 - src.utils.log - INFO - βœ… All 20 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-07-02 11:28:08,647 - 12543 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 20 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-07-01 11:58:39.742' and ServiceSetupId = 34248... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 11:28:08,977 - 12543 - src.utils.log - INFO - βœ… Fetched 20 rows - __SPLIT__ 2026-07-02 11:28:08,978 - 12543 - src.utils.log - INFO - Id's of work order inserted to DB: [2734878 2734879 2734880 2734881 2734882 2734883 2734884 2734885 2734886 2734887 2734888 2734889 2734890 2734891 2734892 2734893 2734894 2734895 2734896 2734897] - __SPLIT__ 2026-07-02 11:28:08,978 - 12543 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 34248;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 11:28:09,316 - 12543 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-02 11:28:09,316 - 12543 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-07-02 11:28:09,317 - 12543 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId = 34248... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 11:28:09,643 - 12543 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-02 11:28:09,644 - 12543 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId = 34248... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 11:28:09,963 - 12543 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-02 11:28:09,968 - 12543 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId = 34248... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 11:28:10,295 - 12543 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-02 11:28:10,296 - 12543 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId = 34248... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 11:28:10,615 - 12543 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-02 11:28:10,616 - 12543 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId = 34248... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 11:28:10,936 - 12543 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-02 11:28:10,937 - 12543 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId = 34248;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 11:28:11,261 - 12543 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-02 11:28:11,262 - 12543 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId = 34248;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 11:28:11,600 - 12543 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-02 11:28:11,601 - 12543 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId = 34248;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 11:28:11,970 - 12543 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-02 11:28:11,971 - 12543 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId = 34248;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 11:28:12,292 - 12543 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-02 11:28:12,300 - 12543 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-07-02 11:28:12,300 - 12543 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-07-02 11:28:12,300 - 12543 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-07-02 11:28:12,300 - 12543 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.CommunicationPreferencesServiceReportNotification: - __SPLIT__ 2026-07-02 11:28:12,301 - 12543 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-07-02 11:28:12,301 - 12543 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SetupAutoGenerationSourceMapping: - __SPLIT__ 2026-07-02 11:28:12,301 - 12543 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-07-02 11:28:12,301 - 12543 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationAppliedDiscount: - __SPLIT__ 2026-07-02 11:28:12,301 - 12543 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-07-02 11:28:12,301 - 12543 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SubWorkOrderAutoGeneration: - __SPLIT__ 2026-07-02 11:28:12,301 - 12543 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-07-02 11:28:12,301 - 12543 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: - __SPLIT__ 2026-07-02 11:28:12,301 - 12543 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-07-02 11:28:12,301 - 12543 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: - __SPLIT__ 2026-07-02 11:28:12,301 - 12543 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-07-02 11:28:12,301 - 12543 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-02 11:28:12,302 - 12543 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (2734878, 2734879, 2734880, 2734881, 2734882, 2734883, 2734884, 2734885, 2734886, 2734887, 2734888, 2734889, 2734890, 2734891, 2734892, 2734893, 2734894, 2734895, 2734896, 2734897) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 11:28:12,622 - 12543 - src.utils.log - INFO - βœ… Fetched 20 rows - __SPLIT__ 2026-07-02 11:28:12,622 - 12543 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationCrews: 20 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 11:28:12,981 - 12543 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 20) into ServiceCore.WorkOrderAutoGenerationCrews - __SPLIT__ 2026-07-02 11:28:14,122 - 12543 - src.utils.log - INFO - βœ… All 20 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationCrews in 1 batches - __SPLIT__ 2026-07-02 11:28:14,122 - 12543 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-07-02 11:28:14,123 - 12543 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationServices: - __SPLIT__ 2026-07-02 11:28:14,123 - 12543 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-07-02 11:28:14,123 - 12543 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-02 11:28:14,123 - 12543 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (2734878, 2734879, 2734880, 2734881, 2734882, 2734883, 2734884, 2734885, 2734886, 2734887, 2734888, 2734889, 2734890, 2734891, 2734892, 2734893, 2734894, 2734895, 2734896, 2734897) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 11:28:14,442 - 12543 - src.utils.log - INFO - βœ… Fetched 20 rows - __SPLIT__ 2026-07-02 11:28:14,443 - 12543 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 20 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 11:28:14,787 - 12543 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 20) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-07-02 11:28:15,933 - 12543 - src.utils.log - INFO - βœ… All 20 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-07-02 11:28:15,934 - 12543 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-07-02 11:28:15,934 - 12543 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 12543;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 11:28:16,252 - 12543 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-02 11:28:16,253 - 12543 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-07-02 11:28:16,253 - 12543 - src.utils.log - INFO - Time took to perform operation: 18.8 - __SPLIT__ 2026-07-02 12:32:16,752 - 13637 - src.utils.log - INFO - ParallelProcessing=False GenerateInvoiceHistoryId=13637 - __SPLIT__ 2026-07-02 12:32:16,754 - 13637 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-02 12:32:16,754 - 13637 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 12:32:18,855 - 13637 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-02 12:32:18,856 - 13637 - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-07-02 12:32:18,856 - 13637 - src.utils.log - INFO - Sequential Invoice generation algo started for GenerateInvoiceHistoryId: 13637 - __SPLIT__ 2026-07-02 12:32:18,856 - 13637 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET Status = 'InProgress' WHERE GenerateInvoiceHistoryId = 13637;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 12:32:19,161 - 13637 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-02 12:32:19,161 - 13637 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateInvoiceHistory WHERE GenerateInvoiceHistoryId = 13637;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 12:32:19,464 - 13637 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-02 12:32:19,464 - 13637 - 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 = '5871' and ss.ServiceSetupId = 34251 ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 12:32:19,775 - 13637 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-02 12:32:19,778 - 13637 - src.utils.log - INFO - No filter selected - __SPLIT__ 2026-07-02 12:32:19,779 - 13637 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-07-02 12:32:19,780 - 13637 - src.utils.log - INFO - πŸ” Fetching data: SELECT fsd.IntervalDays, fs.CreatedDate ,f.FrequencyId , fs.FrequencyScheduleId, f.[SysName], f.FrequencyValue, f.YearlyOccurrence , fs.ScheduleFormat,fsd.Days, fsd.Weeks, fsd.Months,fsc.[Month] as sch_months, fsd.StartMonth , fsd.DateDay,fsd.DateMonth FROM [ServiceCore].[FrequencyMaster] f inner join [ServiceCore].[FrequencySchedule] fs on fs.FrequencyId = f.FrequencyId left join ServiceCore.FrequencyScheduleCycle fsc on fsc.FrequencyScheduleId = fs.FrequencyScheduleId left join [ServiceCore].[FrequencyScheduleDetail] fsd on fsd.FrequencyScheduleId = fs.FrequencyScheduleId WHERE fsd.FrequencyScheduleId = 13039... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 12:32:20,101 - 13637 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-02 12:32:20,101 - 13637 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-07-02 12:32:20,109 - 13637 - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionAutoGenerationId FROM Billing.TransactionAutoGeneration WHERE ServiceSetupId = 34251 AND TransactionDate BETWEEN '2026-07-02 00:00:00' AND '2026-12-31 00:00:00' AND IsActive = 1 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 12:32:20,409 - 13637 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-02 12:32:20,415 - 13637 - 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-07-02 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 = 34251 GROUP BY Inv.ServiceSetupId;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 12:32:20,721 - 13637 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-02 12:32:20,731 - 13637 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-02 12:32:20,731 - 13637 - src.utils.log - INFO - πŸ“₯ Inserting into Billing.TransactionAutoGeneration: 6 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 12:32:21,053 - 13637 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 6) into Billing.TransactionAutoGeneration - __SPLIT__ 2026-07-02 12:32:22,229 - 13637 - src.utils.log - INFO - βœ… All 6 rows inserted successfully into Billing.TransactionAutoGeneration in 1 batches - __SPLIT__ 2026-07-02 12:32:22,229 - 13637 - src.utils.log - INFO - - __SPLIT__ 2026-07-02 12:32:22,230 - 13637 - src.utils.log - INFO - Total invoice generated: 6 - __SPLIT__ 2026-07-02 12:32:22,230 - 13637 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 6 TransactionAutoGenerationId, ServiceSetupId, TransactionDate as InvoiceDate From Billing.TransactionAutoGeneration WHERE CreatedDate = '2026-07-01 06:28:39.788' and ServiceSetupId = 34251 and GenerateWorkOrderHistoryId= 13637;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 12:32:22,533 - 13637 - src.utils.log - INFO - βœ… Fetched 6 rows - __SPLIT__ 2026-07-02 12:32:22,541 - 13637 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-02 12:32:22,541 - 13637 - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceAutoGeneration: 6 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 12:32:22,862 - 13637 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 6) into Billing.InvoiceAutoGeneration - __SPLIT__ 2026-07-02 12:32:23,929 - 13637 - src.utils.log - INFO - βœ… All 6 rows inserted successfully into Billing.InvoiceAutoGeneration in 1 batches - __SPLIT__ 2026-07-02 12:32:23,929 - 13637 - 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 (799576, 799577, 799578, 799579, 799580, 799581);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 12:32:24,235 - 13637 - src.utils.log - INFO - βœ… Fetched 6 rows - __SPLIT__ 2026-07-02 12:32:24,235 - 13637 - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyRoundingLevel ,CompanyRoundingMethod FROM common.CompanyConfiguration cc WHERE CompanyId = 135... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 12:32:24,534 - 13637 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-02 12:32:24,535 - 13637 - 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 = 34251 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 12:32:24,836 - 13637 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-02 12:32:24,847 - 13637 - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyRoundingLevel ,CompanyRoundingMethod FROM common.CompanyConfiguration cc WHERE CompanyId = 135... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 12:32:25,146 - 13637 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-02 12:32:25,156 - 13637 - 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 = 34251;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 12:32:25,472 - 13637 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-02 12:32:25,480 - 13637 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-02 12:32:25,481 - 13637 - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceAutoGenerationAppliedDiscount: 6 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 12:32:25,847 - 13637 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 6) into Billing.InvoiceAutoGenerationAppliedDiscount - __SPLIT__ 2026-07-02 12:32:26,616 - 13637 - src.utils.log - ERROR - ❌ Error in insertion: (pyodbc.DataError) ('22001', '[22001] [Microsoft][ODBC Driver 18 for SQL Server][SQL Server]String or binary data would be truncated. (8152) (SQLExecDirectW)') [SQL: INSERT INTO [Billing].[InvoiceAutoGenerationAppliedDiscount] ([CreatedBy], [ModifiedBy], [CreatedDate], [ModifiedDate], [InvoiceAutoGenerationId], [DiscountSetupId], [DiscountType], [DiscountCode], [DiscountAmount], [DiscountDescription], [DiscountNa ... 343 characters truncated ... ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?), (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)] [parameters: (0, 122885, '2026-07-01 06:28:39.788', '2026-07-01 06:28:39.788', 854477, 1905, 'Credit', None, 0, None, 'ZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZCVBNMXZXZXZZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZCVBNMXZXZXZZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBN ... (108 characters truncated) ... MZCVBNMXZXZXZZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZCVBNMXZXZXZZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZCVBNMXZXZXZZXCVBNMZXCVBNMZXCVBNMZXCVBNM', Decimal('10.00'), 1, 0.0, 0, 0, 1, 0, 122885, '2026-07-01 06:28:39.788', '2026-07-01 06:28:39.788', 854478, 1905, 'Credit', None, 0, None, 'ZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZCVBNMXZXZXZZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZCVBNMXZXZXZZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBN ... (108 characters truncated) ... MZCVBNMXZXZXZZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZCVBNMXZXZXZZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZCVBNMXZXZXZZXCVBNMZXCVBNMZXCVBNMZXCVBNM', Decimal('10.00'), 1, 0.0, 0, 0, 1, 0, 122885, '2026-07-01 06:28:39.788', '2026-07-01 06:28:39.788', 854479, 1905, 'Credit', None, 0, None, 'ZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZCVBNMXZXZXZZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZCVBNMXZXZXZZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBN ... (108 characters truncated) ... MZCVBNMXZXZXZZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZCVBNMXZXZXZZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZCVBNMXZXZXZZXCVBNMZXCVBNMZXCVBNMZXCVBNM', Decimal('10.00'), 1, 0.0, 0, 0 ... 2 parameters truncated ... 122885, '2026-07-01 06:28:39.788', '2026-07-01 06:28:39.788', 854480, 1905, 'Credit', None, 0, None, 'ZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZCVBNMXZXZXZZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZCVBNMXZXZXZZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBN ... (108 characters truncated) ... MZCVBNMXZXZXZZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZCVBNMXZXZXZZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZCVBNMXZXZXZZXCVBNMZXCVBNMZXCVBNMZXCVBNM', Decimal('10.00'), 1, 0.0, 0, 0, 1, 0, 122885, '2026-07-01 06:28:39.788', '2026-07-01 06:28:39.788', 854481, 1905, 'Credit', None, 0, None, 'ZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZCVBNMXZXZXZZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZCVBNMXZXZXZZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBN ... (108 characters truncated) ... MZCVBNMXZXZXZZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZCVBNMXZXZXZZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZCVBNMXZXZXZZXCVBNMZXCVBNMZXCVBNMZXCVBNM', Decimal('10.00'), 1, 0.0, 0, 0, 1, 0, 122885, '2026-07-01 06:28:39.788', '2026-07-01 06:28:39.788', 854482, 1905, 'Credit', None, 0, None, 'ZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZCVBNMXZXZXZZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZCVBNMXZXZXZZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBN ... (108 characters truncated) ... MZCVBNMXZXZXZZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZCVBNMXZXZXZZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZCVBNMXZXZXZZXCVBNMZXCVBNMZXCVBNMZXCVBNM', Decimal('10.00'), 1, 0.0, 0, 0, 1)] (Background on this error at: https://sqlalche.me/e/20/9h9h) - __SPLIT__ 2026-07-02 12:32:26,616 - 13637 - src.utils.log - ERROR - ❌ insert_into_db failed after 1 attempts: (pyodbc.DataError) ('22001', '[22001] [Microsoft][ODBC Driver 18 for SQL Server][SQL Server]String or binary data would be truncated. (8152) (SQLExecDirectW)') [SQL: INSERT INTO [Billing].[InvoiceAutoGenerationAppliedDiscount] ([CreatedBy], [ModifiedBy], [CreatedDate], [ModifiedDate], [InvoiceAutoGenerationId], [DiscountSetupId], [DiscountType], [DiscountCode], [DiscountAmount], [DiscountDescription], [DiscountNa ... 343 characters truncated ... ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?), (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)] [parameters: (0, 122885, '2026-07-01 06:28:39.788', '2026-07-01 06:28:39.788', 854477, 1905, 'Credit', None, 0, None, 'ZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZCVBNMXZXZXZZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZCVBNMXZXZXZZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBN ... (108 characters truncated) ... MZCVBNMXZXZXZZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZCVBNMXZXZXZZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZCVBNMXZXZXZZXCVBNMZXCVBNMZXCVBNMZXCVBNM', Decimal('10.00'), 1, 0.0, 0, 0, 1, 0, 122885, '2026-07-01 06:28:39.788', '2026-07-01 06:28:39.788', 854478, 1905, 'Credit', None, 0, None, 'ZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZCVBNMXZXZXZZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZCVBNMXZXZXZZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBN ... (108 characters truncated) ... MZCVBNMXZXZXZZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZCVBNMXZXZXZZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZCVBNMXZXZXZZXCVBNMZXCVBNMZXCVBNMZXCVBNM', Decimal('10.00'), 1, 0.0, 0, 0, 1, 0, 122885, '2026-07-01 06:28:39.788', '2026-07-01 06:28:39.788', 854479, 1905, 'Credit', None, 0, None, 'ZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZCVBNMXZXZXZZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZCVBNMXZXZXZZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBN ... (108 characters truncated) ... MZCVBNMXZXZXZZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZCVBNMXZXZXZZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZCVBNMXZXZXZZXCVBNMZXCVBNMZXCVBNMZXCVBNM', Decimal('10.00'), 1, 0.0, 0, 0 ... 2 parameters truncated ... 122885, '2026-07-01 06:28:39.788', '2026-07-01 06:28:39.788', 854480, 1905, 'Credit', None, 0, None, 'ZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZCVBNMXZXZXZZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZCVBNMXZXZXZZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBN ... (108 characters truncated) ... MZCVBNMXZXZXZZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZCVBNMXZXZXZZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZCVBNMXZXZXZZXCVBNMZXCVBNMZXCVBNMZXCVBNM', Decimal('10.00'), 1, 0.0, 0, 0, 1, 0, 122885, '2026-07-01 06:28:39.788', '2026-07-01 06:28:39.788', 854481, 1905, 'Credit', None, 0, None, 'ZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZCVBNMXZXZXZZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZCVBNMXZXZXZZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBN ... (108 characters truncated) ... MZCVBNMXZXZXZZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZCVBNMXZXZXZZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZCVBNMXZXZXZZXCVBNMZXCVBNMZXCVBNMZXCVBNM', Decimal('10.00'), 1, 0.0, 0, 0, 1, 0, 122885, '2026-07-01 06:28:39.788', '2026-07-01 06:28:39.788', 854482, 1905, 'Credit', None, 0, None, 'ZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZCVBNMXZXZXZZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZCVBNMXZXZXZZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBN ... (108 characters truncated) ... MZCVBNMXZXZXZZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZCVBNMXZXZXZZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZCVBNMXZXZXZZXCVBNMZXCVBNMZXCVBNMZXCVBNM', Decimal('10.00'), 1, 0.0, 0, 0, 1)] (Background on this error at: https://sqlalche.me/e/20/9h9h) - __SPLIT__ 2026-07-02 12:32:26,616 - 13637 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET Status = 'Failed', InvoiceGenErrorInfo ='No Invoices with selected filters', InvoiceStatusDateTime = '2026-07-02 08:32:26.616' WHERE GenerateInvoiceHistoryId = 13637;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 12:32:26,916 - 13637 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-02 12:32:26,917 - 13637 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-07-02 12:32:26,917 - 13637 - src.utils.log - INFO - Error in Sequential Invoice Gen ProjectId:13637 - Time took: 10.16 - Error:(pyodbc.DataError) ('22001', '[22001] [Microsoft][ODBC Driver 18 for SQL Server][SQL Server]String or binary data would be truncated. (8152) (SQLExecDirectW)') [SQL: INSERT INTO [Billing].[InvoiceAutoGenerationAppliedDiscount] ([CreatedBy], [ModifiedBy], [CreatedDate], [ModifiedDate], [InvoiceAutoGenerationId], [DiscountSetupId], [DiscountType], [DiscountCode], [DiscountAmount], [DiscountDescription], [DiscountNa ... 343 characters truncated ... ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?), (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)] [parameters: (0, 122885, '2026-07-01 06:28:39.788', '2026-07-01 06:28:39.788', 854477, 1905, 'Credit', None, 0, None, 'ZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZCVBNMXZXZXZZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZCVBNMXZXZXZZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBN ... (108 characters truncated) ... MZCVBNMXZXZXZZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZCVBNMXZXZXZZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZCVBNMXZXZXZZXCVBNMZXCVBNMZXCVBNMZXCVBNM', Decimal('10.00'), 1, 0.0, 0, 0, 1, 0, 122885, '2026-07-01 06:28:39.788', '2026-07-01 06:28:39.788', 854478, 1905, 'Credit', None, 0, None, 'ZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZCVBNMXZXZXZZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZCVBNMXZXZXZZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBN ... (108 characters truncated) ... MZCVBNMXZXZXZZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZCVBNMXZXZXZZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZCVBNMXZXZXZZXCVBNMZXCVBNMZXCVBNMZXCVBNM', Decimal('10.00'), 1, 0.0, 0, 0, 1, 0, 122885, '2026-07-01 06:28:39.788', '2026-07-01 06:28:39.788', 854479, 1905, 'Credit', None, 0, None, 'ZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZCVBNMXZXZXZZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZCVBNMXZXZXZZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBN ... (108 characters truncated) ... MZCVBNMXZXZXZZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZCVBNMXZXZXZZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZCVBNMXZXZXZZXCVBNMZXCVBNMZXCVBNMZXCVBNM', Decimal('10.00'), 1, 0.0, 0, 0 ... 2 parameters truncated ... 122885, '2026-07-01 06:28:39.788', '2026-07-01 06:28:39.788', 854480, 1905, 'Credit', None, 0, None, 'ZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZCVBNMXZXZXZZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZCVBNMXZXZXZZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBN ... (108 characters truncated) ... MZCVBNMXZXZXZZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZCVBNMXZXZXZZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZCVBNMXZXZXZZXCVBNMZXCVBNMZXCVBNMZXCVBNM', Decimal('10.00'), 1, 0.0, 0, 0, 1, 0, 122885, '2026-07-01 06:28:39.788', '2026-07-01 06:28:39.788', 854481, 1905, 'Credit', None, 0, None, 'ZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZCVBNMXZXZXZZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZCVBNMXZXZXZZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBN ... (108 characters truncated) ... MZCVBNMXZXZXZZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZCVBNMXZXZXZZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZCVBNMXZXZXZZXCVBNMZXCVBNMZXCVBNMZXCVBNM', Decimal('10.00'), 1, 0.0, 0, 0, 1, 0, 122885, '2026-07-01 06:28:39.788', '2026-07-01 06:28:39.788', 854482, 1905, 'Credit', None, 0, None, 'ZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZCVBNMXZXZXZZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZCVBNMXZXZXZZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBN ... (108 characters truncated) ... MZCVBNMXZXZXZZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZCVBNMXZXZXZZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZCVBNMXZXZXZZXCVBNMZXCVBNMZXCVBNMZXCVBNM', Decimal('10.00'), 1, 0.0, 0, 0, 1)] (Background on this error at: https://sqlalche.me/e/20/9h9h) - __SPLIT__ 2026-07-02 12:35:17,190 - 13639 - src.utils.log - INFO - ParallelProcessing=False GenerateInvoiceHistoryId=13639 - __SPLIT__ 2026-07-02 12:35:17,192 - 13639 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-02 12:35:17,192 - 13639 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 12:35:19,368 - 13639 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-02 12:35:19,368 - 13639 - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-07-02 12:35:19,368 - 13639 - src.utils.log - INFO - Sequential Invoice generation algo started for GenerateInvoiceHistoryId: 13639 - __SPLIT__ 2026-07-02 12:35:19,369 - 13639 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET Status = 'InProgress' WHERE GenerateInvoiceHistoryId = 13639;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 12:35:19,679 - 13639 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-02 12:35:19,680 - 13639 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateInvoiceHistory WHERE GenerateInvoiceHistoryId = 13639;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 12:35:19,987 - 13639 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-02 12:35:19,988 - 13639 - 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 = '5871' and ss.ServiceSetupId = 34253 ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 12:35:20,301 - 13639 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-02 12:35:20,304 - 13639 - src.utils.log - INFO - No filter selected - __SPLIT__ 2026-07-02 12:35:20,305 - 13639 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-07-02 12:35:20,306 - 13639 - 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 = 13014... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 12:35:20,622 - 13639 - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-07-02 12:35:20,622 - 13639 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-07-02 12:35:20,631 - 13639 - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionAutoGenerationId FROM Billing.TransactionAutoGeneration WHERE ServiceSetupId = 34253 AND TransactionDate BETWEEN '2026-07-02 00:00:00' AND '2026-12-31 00:00:00' AND IsActive = 1 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 12:35:20,948 - 13639 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-02 12:35:20,955 - 13639 - 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-07-02 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 = 34253 GROUP BY Inv.ServiceSetupId;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 12:35:21,268 - 13639 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-02 12:35:21,277 - 13639 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-02 12:35:21,277 - 13639 - src.utils.log - INFO - πŸ“₯ Inserting into Billing.TransactionAutoGeneration: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 12:35:21,608 - 13639 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.TransactionAutoGeneration - __SPLIT__ 2026-07-02 12:35:22,700 - 13639 - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.TransactionAutoGeneration in 1 batches - __SPLIT__ 2026-07-02 12:35:22,700 - 13639 - src.utils.log - INFO - - __SPLIT__ 2026-07-02 12:35:22,701 - 13639 - src.utils.log - INFO - Total invoice generated: 2 - __SPLIT__ 2026-07-02 12:35:22,701 - 13639 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 2 TransactionAutoGenerationId, ServiceSetupId, TransactionDate as InvoiceDate From Billing.TransactionAutoGeneration WHERE CreatedDate = '2026-07-01 06:28:39.788' and ServiceSetupId = 34253 and GenerateWorkOrderHistoryId= 13639;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 12:35:23,007 - 13639 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-02 12:35:23,014 - 13639 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-02 12:35:23,014 - 13639 - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceAutoGeneration: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 12:35:23,344 - 13639 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.InvoiceAutoGeneration - __SPLIT__ 2026-07-02 12:35:24,437 - 13639 - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.InvoiceAutoGeneration in 1 batches - __SPLIT__ 2026-07-02 12:35:24,437 - 13639 - 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 (799584, 799585);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 12:35:24,745 - 13639 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-02 12:35:24,745 - 13639 - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyRoundingLevel ,CompanyRoundingMethod FROM common.CompanyConfiguration cc WHERE CompanyId = 135... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 12:35:25,052 - 13639 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-02 12:35:25,053 - 13639 - 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 = 34253 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 12:35:25,360 - 13639 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-02 12:35:25,371 - 13639 - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyRoundingLevel ,CompanyRoundingMethod FROM common.CompanyConfiguration cc WHERE CompanyId = 135... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 12:35:25,684 - 13639 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-02 12:35:25,693 - 13639 - 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 = 34253;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 12:35:26,001 - 13639 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-02 12:35:26,009 - 13639 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-02 12:35:26,009 - 13639 - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceAutoGenerationAppliedDiscount: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 12:35:26,338 - 13639 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.InvoiceAutoGenerationAppliedDiscount - __SPLIT__ 2026-07-02 12:35:27,123 - 13639 - src.utils.log - ERROR - ❌ Error in insertion: (pyodbc.DataError) ('22001', '[22001] [Microsoft][ODBC Driver 18 for SQL Server][SQL Server]String or binary data would be truncated. (8152) (SQLExecDirectW)') [SQL: INSERT INTO [Billing].[InvoiceAutoGenerationAppliedDiscount] ([CreatedBy], [ModifiedBy], [CreatedDate], [ModifiedDate], [InvoiceAutoGenerationId], [DiscountSetupId], [DiscountType], [DiscountCode], [DiscountAmount], [DiscountDescription], [DiscountName], [DiscountPercent], [IsDiscountPercent], [AppliedDiscountAmt], [ApplyOnPartPrice], [ApplyOnLaborPrice], [IsActive]) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?), (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)] [parameters: (122885, None, '2026-07-01 06:28:39.788', '2026-07-01 06:28:39.788', 854485, 1905, 'Credit', None, 0, None, 'ZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZCVBNMXZXZXZZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZCVBNMXZXZXZZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBN ... (108 characters truncated) ... MZCVBNMXZXZXZZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZCVBNMXZXZXZZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZCVBNMXZXZXZZXCVBNMZXCVBNMZXCVBNMZXCVBNM', Decimal('10.00'), 1, 0.0, 0, 0, 1, 122885, None, '2026-07-01 06:28:39.788', '2026-07-01 06:28:39.788', 854486, 1905, 'Credit', None, 0, None, 'ZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZCVBNMXZXZXZZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZCVBNMXZXZXZZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBN ... (108 characters truncated) ... MZCVBNMXZXZXZZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZCVBNMXZXZXZZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZCVBNMXZXZXZZXCVBNMZXCVBNMZXCVBNMZXCVBNM', Decimal('10.00'), 1, 0.0, 0, 0, 1)] (Background on this error at: https://sqlalche.me/e/20/9h9h) - __SPLIT__ 2026-07-02 12:35:27,123 - 13639 - src.utils.log - ERROR - ❌ insert_into_db failed after 1 attempts: (pyodbc.DataError) ('22001', '[22001] [Microsoft][ODBC Driver 18 for SQL Server][SQL Server]String or binary data would be truncated. (8152) (SQLExecDirectW)') [SQL: INSERT INTO [Billing].[InvoiceAutoGenerationAppliedDiscount] ([CreatedBy], [ModifiedBy], [CreatedDate], [ModifiedDate], [InvoiceAutoGenerationId], [DiscountSetupId], [DiscountType], [DiscountCode], [DiscountAmount], [DiscountDescription], [DiscountName], [DiscountPercent], [IsDiscountPercent], [AppliedDiscountAmt], [ApplyOnPartPrice], [ApplyOnLaborPrice], [IsActive]) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?), (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)] [parameters: (122885, None, '2026-07-01 06:28:39.788', '2026-07-01 06:28:39.788', 854485, 1905, 'Credit', None, 0, None, 'ZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZCVBNMXZXZXZZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZCVBNMXZXZXZZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBN ... (108 characters truncated) ... MZCVBNMXZXZXZZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZCVBNMXZXZXZZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZCVBNMXZXZXZZXCVBNMZXCVBNMZXCVBNMZXCVBNM', Decimal('10.00'), 1, 0.0, 0, 0, 1, 122885, None, '2026-07-01 06:28:39.788', '2026-07-01 06:28:39.788', 854486, 1905, 'Credit', None, 0, None, 'ZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZCVBNMXZXZXZZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZCVBNMXZXZXZZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBN ... (108 characters truncated) ... MZCVBNMXZXZXZZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZCVBNMXZXZXZZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZCVBNMXZXZXZZXCVBNMZXCVBNMZXCVBNMZXCVBNM', Decimal('10.00'), 1, 0.0, 0, 0, 1)] (Background on this error at: https://sqlalche.me/e/20/9h9h) - __SPLIT__ 2026-07-02 12:35:27,124 - 13639 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET Status = 'Failed', InvoiceGenErrorInfo ='No Invoices with selected filters', InvoiceStatusDateTime = '2026-07-02 08:35:27.123' WHERE GenerateInvoiceHistoryId = 13639;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-02 12:35:27,437 - 13639 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-02 12:35:27,437 - 13639 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-07-02 12:35:27,437 - 13639 - src.utils.log - INFO - Error in Sequential Invoice Gen ProjectId:13639 - Time took: 10.25 - Error:(pyodbc.DataError) ('22001', '[22001] [Microsoft][ODBC Driver 18 for SQL Server][SQL Server]String or binary data would be truncated. (8152) (SQLExecDirectW)') [SQL: INSERT INTO [Billing].[InvoiceAutoGenerationAppliedDiscount] ([CreatedBy], [ModifiedBy], [CreatedDate], [ModifiedDate], [InvoiceAutoGenerationId], [DiscountSetupId], [DiscountType], [DiscountCode], [DiscountAmount], [DiscountDescription], [DiscountName], [DiscountPercent], [IsDiscountPercent], [AppliedDiscountAmt], [ApplyOnPartPrice], [ApplyOnLaborPrice], [IsActive]) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?), (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)] [parameters: (122885, None, '2026-07-01 06:28:39.788', '2026-07-01 06:28:39.788', 854485, 1905, 'Credit', None, 0, None, 'ZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZCVBNMXZXZXZZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZCVBNMXZXZXZZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBN ... (108 characters truncated) ... MZCVBNMXZXZXZZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZCVBNMXZXZXZZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZCVBNMXZXZXZZXCVBNMZXCVBNMZXCVBNMZXCVBNM', Decimal('10.00'), 1, 0.0, 0, 0, 1, 122885, None, '2026-07-01 06:28:39.788', '2026-07-01 06:28:39.788', 854486, 1905, 'Credit', None, 0, None, 'ZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZCVBNMXZXZXZZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZCVBNMXZXZXZZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBN ... (108 characters truncated) ... MZCVBNMXZXZXZZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZCVBNMXZXZXZZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZXCVBNMZCVBNMXZXZXZZXCVBNMZXCVBNMZXCVBNMZXCVBNM', Decimal('10.00'), 1, 0.0, 0, 0, 1)] (Background on this error at: https://sqlalche.me/e/20/9h9h) - __SPLIT__ 2026-07-03 07:03:33,796 - 124689 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=124689 - __SPLIT__ 2026-07-03 07:03:33,796 - 124689 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 124689 - __SPLIT__ 2026-07-03 07:03:33,797 - 124689 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-03 07:03:33,797 - 124689 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 07:03:36,078 - 124689 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-03 07:03:36,079 - 124689 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-07-03 07:03:36,079 - 124689 - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-07-03 07:03:36,079 - 124689 - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-07-03 07:03:36,079 - 124689 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 124689;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 07:03:37,973 - 124689 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-03 07:03:37,973 - 124689 - 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 = 124689), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 124689), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 124689 AND ss.FrequencyScheduleId IS NOT NULL AND ss.IsActive = 1 AND ss.IsDeleted = 0 AND ss.Status <> 'Canceled' AND ((ss.OrderType = gw.OrderType) OR gw.OrderType IS NULL);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 07:03:38,293 - 124689 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-03 07:03:38,293 - 124689 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 124689;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 07:03:38,565 - 124689 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-03 07:03:38,568 - 124689 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-07-03 07:03:38,569 - 124689 - 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 = 13962... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 07:03:38,852 - 124689 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-03 07:03:38,852 - 124689 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-07-03 07:03:38,855 - 124689 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-07-03 07:03:38,855 - 124689 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150600;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 07:03:39,126 - 124689 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-03 07:03:39,127 - 124689 - src.utils.log - INFO - πŸ” Fetching data: select ServiceDate, ServiceSetupId, IsInitial from serviceCore.WorkOrder wo inner join ServiceCore.WorkOrderStatus wos on wo.WoStatusId = wos.WoStatusId where ServiceDate >= '2026-07-03 00:00:00' and ServiceDate <= '2026-08-31 00:00:00' and ServiceSetupId = 150600 and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 07:03:39,409 - 124689 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-03 07:03:39,976 - 124689 - src.utils.log - INFO - Generating work orders for setup: 150600 - __SPLIT__ 2026-07-03 07:03:39,993 - 124689 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 11436;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 07:03:40,263 - 124689 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-03 07:03:40,301 - 124689 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-07-03 07:03:40,305 - 124689 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=133 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 07:03:40,575 - 124689 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-03 07:03:40,577 - 124689 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-07-03 07:03:40,578 - 124689 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-07-03 07:03:40,578 - 124689 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150600 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 07:03:40,939 - 124689 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-03 07:03:40,939 - 124689 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150600 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 07:03:41,283 - 124689 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-03 07:03:41,283 - 124689 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150600 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 07:03:41,567 - 124689 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-03 07:03:41,567 - 124689 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150600 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 07:03:41,907 - 124689 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-03 07:03:41,908 - 124689 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150600 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 07:03:42,252 - 124689 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-03 07:03:42,252 - 124689 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150600 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 07:03:42,540 - 124689 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-03 07:03:42,541 - 124689 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150600 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 07:03:42,816 - 124689 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-03 07:03:42,817 - 124689 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150600 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 07:03:43,248 - 124689 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-03 07:03:43,248 - 124689 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-03 07:03:43,248 - 124689 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 07:03:43,558 - 124689 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-07-03 07:03:44,549 - 124689 - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-07-03 07:03:44,550 - 124689 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 2 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-07-01 11:58:39.736' and ServiceSetupId = 150600... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 07:03:44,890 - 124689 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-03 07:03:44,890 - 124689 - src.utils.log - INFO - Id's of work order inserted to DB: [3681086 3681087] - __SPLIT__ 2026-07-03 07:03:44,891 - 124689 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150600;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 07:03:45,163 - 124689 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-03 07:03:45,163 - 124689 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-07-03 07:03:45,164 - 124689 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId = 150600... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 07:03:45,438 - 124689 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-03 07:03:45,438 - 124689 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId = 150600... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 07:03:45,710 - 124689 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-03 07:03:45,717 - 124689 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId = 150600... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 07:03:45,996 - 124689 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-03 07:03:45,998 - 124689 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId = 150600... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 07:03:46,269 - 124689 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-03 07:03:46,271 - 124689 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId = 150600... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 07:03:46,541 - 124689 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-03 07:03:46,541 - 124689 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId = 150600;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 07:03:46,816 - 124689 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-03 07:03:46,816 - 124689 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId = 150600;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 07:03:47,087 - 124689 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-03 07:03:47,088 - 124689 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId = 150600;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 07:03:47,490 - 124689 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-03 07:03:47,490 - 124689 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId = 150600;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 07:03:47,763 - 124689 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-03 07:03:47,783 - 124689 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-07-03 07:03:47,783 - 124689 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-07-03 07:03:47,783 - 124689 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-07-03 07:03:47,783 - 124689 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.CommunicationPreferencesServiceReportNotification: - __SPLIT__ 2026-07-03 07:03:47,783 - 124689 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-07-03 07:03:47,784 - 124689 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-03 07:03:47,784 - 124689 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ('3681087', '3681086') ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 07:03:48,055 - 124689 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-03 07:03:48,056 - 124689 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.SetupAutoGenerationSourceMapping: 0 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 07:03:48,352 - 124689 - src.utils.log - INFO - βœ… All 0 rows inserted successfully into ServiceCore.SetupAutoGenerationSourceMapping in 0 batches - __SPLIT__ 2026-07-03 07:03:48,353 - 124689 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-07-03 07:03:48,353 - 124689 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationAppliedDiscount: - __SPLIT__ 2026-07-03 07:03:48,353 - 124689 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-07-03 07:03:48,353 - 124689 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SubWorkOrderAutoGeneration: - __SPLIT__ 2026-07-03 07:03:48,353 - 124689 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-07-03 07:03:48,353 - 124689 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: - __SPLIT__ 2026-07-03 07:03:48,353 - 124689 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-07-03 07:03:48,353 - 124689 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-03 07:03:48,353 - 124689 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 3681086 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 07:03:48,623 - 124689 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-03 07:03:48,624 - 124689 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 07:03:48,930 - 124689 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderAutoGenerationSalesPersonCommission - __SPLIT__ 2026-07-03 07:03:49,892 - 124689 - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationSalesPersonCommission in 1 batches - __SPLIT__ 2026-07-03 07:03:49,892 - 124689 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-07-03 07:03:49,893 - 124689 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-03 07:03:49,893 - 124689 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3681086, 3681087) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 07:03:50,164 - 124689 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-03 07:03:50,165 - 124689 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationCrews: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 07:03:50,440 - 124689 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationCrews - __SPLIT__ 2026-07-03 07:03:51,393 - 124689 - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationCrews in 1 batches - __SPLIT__ 2026-07-03 07:03:51,394 - 124689 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-07-03 07:03:51,394 - 124689 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-03 07:03:51,394 - 124689 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 3681086 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 07:03:51,664 - 124689 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-03 07:03:51,665 - 124689 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 07:03:51,943 - 124689 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-07-03 07:03:52,907 - 124689 - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-07-03 07:03:52,908 - 124689 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-07-03 07:03:52,908 - 124689 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-03 07:03:52,908 - 124689 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 3681087 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 07:03:53,180 - 124689 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-03 07:03:53,181 - 124689 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 07:03:53,460 - 124689 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-07-03 07:03:54,422 - 124689 - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-07-03 07:03:54,422 - 124689 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-07-03 07:03:54,423 - 124689 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 124689;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 07:03:54,693 - 124689 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-03 07:03:54,694 - 124689 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-07-03 07:03:54,694 - 124689 - src.utils.log - INFO - Time took to perform operation: 20.9 - __SPLIT__ 2026-07-03 07:04:10,853 - [124689] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[3681086, 3681087] user_id=43135 company_id=133 project_id=[124689] publish_all=False - __SPLIT__ 2026-07-03 07:04:10,854 - [124689] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[3681086, 3681087] user_id=43135 company_id=133 project_id=[124689] publish_all=False - __SPLIT__ 2026-07-03 07:04:10,854 - [124689] - src.utils.log - INFO - Sequential Work order publish in progress for GenerateWorkOrderHistoryId: [124689] - __SPLIT__ 2026-07-03 07:04:10,855 - [124689] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-03 07:04:10,855 - [124689] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 07:04:12,828 - [124689] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-03 07:04:12,829 - [124689] - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-07-03 07:04:12,829 - [124689] - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-07-03 07:04:12,829 - [124689] - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-07-03 07:04:12,829 - [124689] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'InProgress' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124689;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 07:04:14,707 - [124689] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-03 07:04:14,707 - [124689] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (3681086, 3681087)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 07:04:14,980 - [124689] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-03 07:04:14,980 - [124689] - src.utils.log - INFO - Inside get_work_order_table - __SPLIT__ 2026-07-03 07:04:14,981 - [124689] - 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 = 150600 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 07:04:15,263 - [124689] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-03 07:04:15,263 - [124689] - 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 = 150600 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 07:04:15,540 - [124689] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-03 07:04:15,541 - [124689] - 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 = 150600 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 07:04:15,824 - [124689] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-03 07:04:15,830 - [124689] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder,BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 07:04:16,098 - [124689] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-03 07:04:16,099 - [124689] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 133 AND EnitityNumberType in ('WorkOrder','Invoice'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 07:04:16,366 - [124689] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-03 07:04:16,366 - [124689] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder, BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 07:04:16,633 - [124689] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-03 07:04:16,634 - [124689] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 2 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 133 AND EnitityNumberType = 'WorkOrder'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 07:04:16,906 - [124689] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-03 07:04:16,906 - [124689] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 2 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 133 AND EnitityNumberType = 'Invoice'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 07:04:17,178 - [124689] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-03 07:04:17,183 - [124689] - 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 = 150600... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 07:04:17,458 - [124689] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-03 07:04:17,460 - [124689] - src.utils.log - INFO - πŸ” Fetching data: SELECT x.CompanyId FROM CRM.CompanyMaster x WHERE CompanyKey = 'abcdallas';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 07:04:17,727 - [124689] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-03 07:04:17,728 - [124689] - src.utils.log - INFO - πŸ” Fetching data: SELECT CollectionStatus,IsHold,AccountNo FROM CRM.Account a WHERE a.AccountNo = '14986' and a.CompanyId = 121;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 07:04:17,995 - [124689] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-03 07:04:17,998 - [124689] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderNo FROM ServiceCore.WorkOrder WHERE WorkOrderNo IN ('1427181', '1427182') AND CompanyId = 133 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 07:04:18,271 - [124689] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-03 07:04:18,272 - [124689] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrder (skip triggers): 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 07:04:18,716 - [124689] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrder (triggers skipped) - __SPLIT__ 2026-07-03 07:04:19,722 - [124689] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrder in 1 batches (triggers skipped) - __SPLIT__ 2026-07-03 07:04:19,856 - [124689] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-07-03 07:04:19,857 - [124689] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.ServiceSetup SET IsInitialWoGenerated = 1 WHERE CompanyId = 133 AND ServiceSetupId = 150600;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 07:04:20,128 - [124689] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-03 07:04:20,129 - [124689] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkorderId, WorkOrderNo FROM ServiceCore.WorkOrder wo WHERE wo.WorkOrderNo IN ('1427181', '1427182') AND wo.AccountNumber = '14986' AND wo.CompanyId = 133 ... (Thread: ThreadPoolExecutor-15_0) - __SPLIT__ 2026-07-03 07:04:20,404 - [124689] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-03 07:04:20,405 - [124689] - src.utils.log - INFO - Sequential fetching temp table records - __SPLIT__ 2026-07-03 07:04:20,405 - [124689] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationServices woag WHERE woag.WorkOrderAutoGenerationId in (3681086, 3681087)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 07:04:20,736 - [124689] - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-07-03 07:04:20,736 - [124689] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SubWorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (3681086, 3681087)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 07:04:21,009 - [124689] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-03 07:04:21,010 - [124689] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationCrews woag WHERE woag.WorkOrderAutoGenerationId in (3681086, 3681087)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 07:04:21,312 - [124689] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-03 07:04:21,312 - [124689] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationSalesPersonCommission woag WHERE woag.WorkOrderAutoGenerationId in (3681086, 3681087)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 07:04:21,582 - [124689] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-03 07:04:21,583 - [124689] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupAutoGenerationSourceMapping woag WHERE woag.WorkOrderAutoGenerationId in (3681086, 3681087)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 07:04:21,853 - [124689] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-03 07:04:21,854 - [124689] - 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 (3681086, 3681087)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 07:04:22,157 - [124689] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-03 07:04:22,157 - [124689] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from CRM.LeadNote woag WHERE woag.RefId in (3681086, 3681087) and woag.RefType = 'TempWorkorder';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 07:04:22,427 - [124689] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-03 07:04:22,428 - [124689] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment woagca WHERE woagca.WorkOrderAutoGenerationId in (3681086, 3681087);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 07:04:22,696 - [124689] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-03 07:04:22,699 - [124689] - src.utils.log - INFO - Updating temp tables - __SPLIT__ 2026-07-03 07:04:22,717 - [124689] - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyKey FROM Common.CompanyMaster cm WHERE CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 07:04:22,983 - [124689] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-03 07:04:22,984 - [124689] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 133 AND EnitityNumberType in ('SubWorkOrder'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 07:04:23,251 - [124689] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-03 07:04:23,256 - [124689] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-03 07:04:23,256 - [124689] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishHistory: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 07:04:23,550 - [124689] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationPublishHistory - __SPLIT__ 2026-07-03 07:04:24,531 - [124689] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishHistory in 1 batches - __SPLIT__ 2026-07-03 07:04:24,532 - [124689] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationPublishHistoryId, WorkOrderNo, ServiceSetupId FROM ServiceCore.WorkOrderAutoGenerationPublishHistory WHERE ServiceSetupId = 150600 AND WorkOrderNo IN ('966794', '8354079') AND GenerateWorkOrderHistoryId = 124689;... (Thread: ThreadPoolExecutor-16_0) - __SPLIT__ 2026-07-03 07:04:25,876 - [124689] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-03 07:04:25,876 - [124689] - src.utils.log - INFO - 🏁 Final merged rows: 2 - __SPLIT__ 2026-07-03 07:04:25,882 - [124689] - src.utils.log - INFO - Sequential Insertion in work order tables begin - __SPLIT__ 2026-07-03 07:04:25,882 - [124689] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-03 07:04:25,883 - [124689] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderServices: 4 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 07:04:26,158 - [124689] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 4) into ServiceCore.WorkOrderServices - __SPLIT__ 2026-07-03 07:04:27,117 - [124689] - src.utils.log - INFO - βœ… All 4 rows inserted successfully into ServiceCore.WorkOrderServices in 1 batches - __SPLIT__ 2026-07-03 07:04:27,117 - [124689] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderAppliedDiscount: - __SPLIT__ 2026-07-03 07:04:27,117 - [124689] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-03 07:04:27,117 - [124689] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderSalesPersonCommission: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 07:04:27,420 - [124689] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderSalesPersonCommission - __SPLIT__ 2026-07-03 07:04:28,366 - [124689] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderSalesPersonCommission in 1 batches - __SPLIT__ 2026-07-03 07:04:28,367 - [124689] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderCommissionAdjustment: - __SPLIT__ 2026-07-03 07:04:28,367 - [124689] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-03 07:04:28,367 - [124689] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderCrew: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 07:04:28,639 - [124689] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderCrew - __SPLIT__ 2026-07-03 07:04:29,588 - [124689] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderCrew in 1 batches - __SPLIT__ 2026-07-03 07:04:29,588 - [124689] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkorderSourceMapping: - __SPLIT__ 2026-07-03 07:04:29,589 - [124689] - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-07-03 07:04:29,589 - [124689] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-03 07:04:29,589 - [124689] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishServices: 4 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 07:04:29,864 - [124689] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 4) into ServiceCore.WorkOrderAutoGenerationPublishServices - __SPLIT__ 2026-07-03 07:04:30,819 - [124689] - src.utils.log - INFO - βœ… All 4 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishServices in 1 batches - __SPLIT__ 2026-07-03 07:04:30,820 - [124689] - 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 = 150600... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 07:04:31,087 - [124689] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-03 07:04:31,094 - [124689] - src.utils.log - INFO - Size of Transaction: 2 - __SPLIT__ 2026-07-03 07:04:31,095 - [124689] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 07:04:31,502 - [124689] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-07-03 07:04:32,447 - [124689] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-07-03 07:04:32,580 - [124689] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-07-03 07:04:32,580 - [124689] - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionId, ModifiedBy, TransactionDate as InvoiceDate from Billing.[Transaction] t WHERE t.ModifiedBy in (12345678910, 12345678911) and t.CompanyId = 133 AND t.TransactionType ='Invoice' AND t.CreatedDate = '2026-07-03 03:04:31.089';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 07:04:33,022 - [124689] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-03 07:04:33,025 - [124689] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150600;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 07:04:33,294 - [124689] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-03 07:04:33,303 - [124689] - src.utils.log - INFO - πŸ“ Executing: UPDATE Billing.[Transaction] SET ModifiedBy = NULL WHERE ModifiedBy IN (12345678910,12345678911) AND CreatedDate = '2026-07-03 03:04:31.089'; ... (Thread: ThreadPoolExecutor-17_0) - __SPLIT__ 2026-07-03 07:04:33,697 - [124689] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-03 07:04:33,702 - [124689] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-03 07:04:33,702 - [124689] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 07:04:33,980 - [124689] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.Invoice - __SPLIT__ 2026-07-03 07:04:34,931 - [124689] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-07-03 07:04:34,931 - [124689] - src.utils.log - INFO - πŸ” Fetching data: SELECT InvoiceId, WorkOrderNo FROM Billing.Invoice i WHERE i.WorkOrderNo in ('1427181', '1427182')... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 07:04:35,969 - [124689] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-03 07:04:35,978 - [124689] - 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 = 150600 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 07:04:36,250 - [124689] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-03 07:04:36,251 - [124689] - 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 = 150600 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 07:04:36,523 - [124689] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-03 07:04:36,523 - [124689] - 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 = 150600 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 07:04:36,794 - [124689] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-03 07:04:36,794 - [124689] - 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 = 150600 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 07:04:37,065 - [124689] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-03 07:04:37,078 - [124689] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150600;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 07:04:37,347 - [124689] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-03 07:04:37,352 - [124689] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId, AppliedDiscountAmt as AppliedDiscountAmount,IsActive ,ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 150600;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 07:04:37,622 - [124689] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-03 07:04:37,625 - [124689] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId,IsActive,DiscountAmount, IsDiscountPercent,DiscountPercent,DiscountDescription , ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 150600;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 07:04:37,894 - [124689] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-03 07:04:37,895 - [124689] - src.utils.log - INFO - Sequential Insertion in invoice tables begin - __SPLIT__ 2026-07-03 07:04:37,895 - [124689] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.AccountDiscountSetup: - __SPLIT__ 2026-07-03 07:04:37,895 - [124689] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-03 07:04:37,895 - [124689] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceCharges: 4 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 07:04:38,171 - [124689] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 4) into Billing.InvoiceCharges - __SPLIT__ 2026-07-03 07:04:39,124 - [124689] - src.utils.log - INFO - βœ… All 4 rows inserted successfully into Billing.InvoiceCharges in 1 batches - __SPLIT__ 2026-07-03 07:04:39,124 - [124689] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.DiscountApplied: - __SPLIT__ 2026-07-03 07:04:39,124 - [124689] - src.utils.log - INFO - Invoice Publish Done - __SPLIT__ 2026-07-03 07:04:39,125 - [124689] - src.utils.log - INFO - Updating Next GenerationDate - __SPLIT__ 2026-07-03 07:04:39,125 - [124689] - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, MAX(NextWorkOrderGenerationDate) AS MaxNextWorkOrderGeneration FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 124689 GROUP BY ServiceSetupId; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 07:04:39,394 - [124689] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-03 07:04:39,400 - [124689] - src.utils.log - INFO - πŸ”„ Updating next gen date sequentially: inside update_next_workorder_generation - __SPLIT__ 2026-07-03 07:04:39,536 - [124689] - src.utils.log - INFO - πŸ›  Creating temp table #tbl_243ebdc105 - __SPLIT__ 2026-07-03 07:04:39,805 - [124689] - src.utils.log - INFO - πŸ“Œ Bulk inserting 1 rows into #tbl_243ebdc105 - __SPLIT__ 2026-07-03 07:04:40,073 - [124689] - src.utils.log - INFO - πŸ” Running MERGE update to apply changes - __SPLIT__ 2026-07-03 07:04:40,218 - [124689] - src.utils.log - INFO - βœ” SQL reported affected rows: 1 - __SPLIT__ 2026-07-03 07:04:40,357 - [124689] - src.utils.log - INFO - πŸ” Verified successfully updated 1 rows via #tbl_243ebdc105 - __SPLIT__ 2026-07-03 07:04:40,357 - [124689] - src.utils.log - INFO - πŸŽ‰ Successfully updated NextGenerationDate using temp table #tbl_243ebdc105 - __SPLIT__ 2026-07-03 07:04:40,358 - [124689] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 124689 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 07:04:40,627 - [124689] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-03 07:04:40,627 - [124689] - src.utils.log - INFO - Sequential deletion from temp tables begin - __SPLIT__ 2026-07-03 07:04:40,627 - [124689] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId in (3681086, 3681087) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 07:04:41,075 - [124689] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-03 07:04:41,076 - [124689] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId in (3681086, 3681087) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 07:04:41,441 - [124689] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-03 07:04:41,442 - [124689] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId in (3681086, 3681087) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 07:04:41,717 - [124689] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-03 07:04:41,717 - [124689] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId in (3681086, 3681087) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 07:04:42,081 - [124689] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-03 07:04:42,081 - [124689] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId in (3681086, 3681087) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 07:04:42,357 - [124689] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-03 07:04:42,357 - [124689] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (3681086, 3681087) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 07:04:42,630 - [124689] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-03 07:04:42,630 - [124689] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId in (3681086, 3681087) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 07:04:42,900 - [124689] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-03 07:04:42,900 - [124689] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (3681086, 3681087) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 07:04:43,284 - [124689] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-03 07:04:43,284 - [124689] - src.utils.log - INFO - Work order published ids: (3681086, 3681087) - __SPLIT__ 2026-07-03 07:04:43,285 - [124689] - src.utils.log - INFO - Time took to perform operation in publishing [124689]: 32.43 - __SPLIT__ 2026-07-03 07:04:43,285 - [124689] - src.utils.log - INFO - Publish Completed for GenerateWorkOrderHistoryId: [124689] - __SPLIT__ 2026-07-03 07:04:43,285 - [124689] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-07-03 03:04:43.284' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124689;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 07:04:43,553 - [124689] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-03 07:31:50,417 - 124690 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=124690 - __SPLIT__ 2026-07-03 07:31:50,418 - 124690 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 124690 - __SPLIT__ 2026-07-03 07:31:50,419 - 124690 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-03 07:31:50,419 - 124690 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 07:31:52,485 - 124690 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-03 07:31:52,486 - 124690 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-07-03 07:31:52,486 - 124690 - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-07-03 07:31:52,487 - 124690 - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-07-03 07:31:52,487 - 124690 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 124690;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 07:31:54,364 - 124690 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-03 07:31:54,364 - 124690 - 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 = 124690), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 124690), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 124690 AND ss.FrequencyScheduleId IS NOT NULL AND ss.IsActive = 1 AND ss.IsDeleted = 0 AND ss.Status <> 'Canceled' AND ((ss.OrderType = gw.OrderType) OR gw.OrderType IS NULL);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 07:31:54,688 - 124690 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-03 07:31:54,688 - 124690 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 124690;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 07:31:54,958 - 124690 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-03 07:31:54,961 - 124690 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-07-03 07:31:54,962 - 124690 - 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 = 13962... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 07:31:55,238 - 124690 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-03 07:31:55,238 - 124690 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-07-03 07:31:55,241 - 124690 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-07-03 07:31:55,241 - 124690 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150601;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 07:31:55,513 - 124690 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-03 07:31:55,514 - 124690 - src.utils.log - INFO - πŸ” Fetching data: select ServiceDate, ServiceSetupId, IsInitial from serviceCore.WorkOrder wo inner join ServiceCore.WorkOrderStatus wos on wo.WoStatusId = wos.WoStatusId where ServiceDate >= '2026-07-03 00:00:00' and ServiceDate <= '2026-08-31 00:00:00' and ServiceSetupId = 150601 and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 07:31:55,792 - 124690 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-03 07:31:56,354 - 124690 - src.utils.log - INFO - Generating work orders for setup: 150601 - __SPLIT__ 2026-07-03 07:31:56,439 - 124690 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 1132;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 07:31:56,706 - 124690 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-03 07:31:56,744 - 124690 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-07-03 07:31:56,748 - 124690 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=133 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 07:31:57,015 - 124690 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-03 07:31:57,017 - 124690 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-07-03 07:31:57,017 - 124690 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-07-03 07:31:57,017 - 124690 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150601 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 07:31:57,360 - 124690 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-03 07:31:57,360 - 124690 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150601 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 07:31:57,702 - 124690 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-03 07:31:57,702 - 124690 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150601 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 07:31:57,982 - 124690 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-03 07:31:57,982 - 124690 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150601 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 07:31:58,323 - 124690 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-03 07:31:58,323 - 124690 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150601 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 07:31:58,668 - 124690 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-03 07:31:58,669 - 124690 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150601 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 07:31:58,956 - 124690 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-03 07:31:58,957 - 124690 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150601 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 07:31:59,229 - 124690 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-03 07:31:59,229 - 124690 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150601 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 07:31:59,657 - 124690 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-03 07:31:59,657 - 124690 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-03 07:31:59,657 - 124690 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 07:31:59,966 - 124690 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-07-03 07:32:00,942 - 124690 - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-07-03 07:32:00,943 - 124690 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 1 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-07-01 11:58:39.676' and ServiceSetupId = 150601... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 07:32:01,277 - 124690 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-03 07:32:01,278 - 124690 - src.utils.log - INFO - Id's of work order inserted to DB: [3681088] - __SPLIT__ 2026-07-03 07:32:01,278 - 124690 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150601;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 07:32:01,547 - 124690 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-03 07:32:01,547 - 124690 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-07-03 07:32:01,548 - 124690 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId = 150601... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 07:32:01,821 - 124690 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-03 07:32:01,822 - 124690 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId = 150601... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 07:32:02,090 - 124690 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-03 07:32:02,095 - 124690 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId = 150601... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 07:32:02,372 - 124690 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-03 07:32:02,373 - 124690 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId = 150601... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 07:32:02,642 - 124690 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-03 07:32:02,644 - 124690 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId = 150601... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 07:32:02,911 - 124690 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-03 07:32:02,912 - 124690 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId = 150601;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 07:32:03,182 - 124690 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-03 07:32:03,183 - 124690 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId = 150601;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 07:32:03,450 - 124690 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-03 07:32:03,451 - 124690 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId = 150601;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 07:32:03,856 - 124690 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-03 07:32:03,856 - 124690 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId = 150601;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 07:32:04,127 - 124690 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-03 07:32:04,137 - 124690 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-07-03 07:32:04,138 - 124690 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-07-03 07:32:04,138 - 124690 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-07-03 07:32:04,138 - 124690 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.CommunicationPreferencesServiceReportNotification: - __SPLIT__ 2026-07-03 07:32:04,138 - 124690 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-07-03 07:32:04,138 - 124690 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-03 07:32:04,138 - 124690 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 3681088 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 07:32:04,406 - 124690 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-03 07:32:04,407 - 124690 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.SetupAutoGenerationSourceMapping: 0 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 07:32:04,677 - 124690 - src.utils.log - INFO - βœ… All 0 rows inserted successfully into ServiceCore.SetupAutoGenerationSourceMapping in 0 batches - __SPLIT__ 2026-07-03 07:32:04,677 - 124690 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-07-03 07:32:04,677 - 124690 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationAppliedDiscount: - __SPLIT__ 2026-07-03 07:32:04,677 - 124690 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-07-03 07:32:04,677 - 124690 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SubWorkOrderAutoGeneration: - __SPLIT__ 2026-07-03 07:32:04,677 - 124690 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-07-03 07:32:04,677 - 124690 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: - __SPLIT__ 2026-07-03 07:32:04,678 - 124690 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-07-03 07:32:04,678 - 124690 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: - __SPLIT__ 2026-07-03 07:32:04,678 - 124690 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-07-03 07:32:04,678 - 124690 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCrews: - __SPLIT__ 2026-07-03 07:32:04,678 - 124690 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-07-03 07:32:04,678 - 124690 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationServices: - __SPLIT__ 2026-07-03 07:32:04,678 - 124690 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-07-03 07:32:04,678 - 124690 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-03 07:32:04,678 - 124690 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 3681088 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 07:32:04,945 - 124690 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-03 07:32:04,946 - 124690 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 07:32:05,222 - 124690 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-07-03 07:32:06,173 - 124690 - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-07-03 07:32:06,173 - 124690 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-07-03 07:32:06,174 - 124690 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 124690;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 07:32:06,444 - 124690 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-03 07:32:06,445 - 124690 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-07-03 07:32:06,445 - 124690 - src.utils.log - INFO - Time took to perform operation: 16.03 - __SPLIT__ 2026-07-03 07:32:16,746 - [124690] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[3681088] user_id=43135 company_id=133 project_id=[124690] publish_all=False - __SPLIT__ 2026-07-03 07:32:16,747 - [124690] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[3681088] user_id=43135 company_id=133 project_id=[124690] publish_all=False - __SPLIT__ 2026-07-03 07:32:16,747 - [124690] - src.utils.log - INFO - Sequential Work order publish in progress for GenerateWorkOrderHistoryId: [124690] - __SPLIT__ 2026-07-03 07:32:16,748 - [124690] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-03 07:32:16,748 - [124690] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 07:32:18,868 - [124690] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-03 07:32:18,869 - [124690] - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-07-03 07:32:18,869 - [124690] - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-07-03 07:32:18,870 - [124690] - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-07-03 07:32:18,870 - [124690] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'InProgress' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124690;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 07:32:20,753 - [124690] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-03 07:32:20,753 - [124690] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId = 3681088... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 07:32:21,025 - [124690] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-03 07:32:21,025 - [124690] - src.utils.log - INFO - Inside get_work_order_table - __SPLIT__ 2026-07-03 07:32:21,026 - [124690] - 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 = 150601 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 07:32:21,308 - [124690] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-03 07:32:21,309 - [124690] - 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 = 150601 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 07:32:21,589 - [124690] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-03 07:32:21,589 - [124690] - 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 = 150601 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 07:32:21,878 - [124690] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-03 07:32:21,884 - [124690] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder,BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 07:32:22,152 - [124690] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-03 07:32:22,153 - [124690] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 133 AND EnitityNumberType in ('WorkOrder','Invoice'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 07:32:22,421 - [124690] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-03 07:32:22,421 - [124690] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder, BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 07:32:22,689 - [124690] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-03 07:32:22,690 - [124690] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 1 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 133 AND EnitityNumberType = 'WorkOrder'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 07:32:22,963 - [124690] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-03 07:32:22,964 - [124690] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 1 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 133 AND EnitityNumberType = 'Invoice'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 07:32:23,237 - [124690] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-03 07:32:23,241 - [124690] - 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 = 150601... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 07:32:23,517 - [124690] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-03 07:32:23,518 - [124690] - src.utils.log - INFO - πŸ” Fetching data: SELECT x.CompanyId FROM CRM.CompanyMaster x WHERE CompanyKey = 'abcdallas';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 07:32:23,786 - [124690] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-03 07:32:23,787 - [124690] - src.utils.log - INFO - πŸ” Fetching data: SELECT CollectionStatus,IsHold,AccountNo FROM CRM.Account a WHERE a.AccountNo = '14986' and a.CompanyId = 121;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 07:32:24,055 - [124690] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-03 07:32:24,057 - [124690] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderNo FROM ServiceCore.WorkOrder WHERE WorkOrderNo = '1427184' AND CompanyId = 133 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 07:32:24,329 - [124690] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-03 07:32:24,329 - [124690] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrder (skip triggers): 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 07:32:24,771 - [124690] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrder (triggers skipped) - __SPLIT__ 2026-07-03 07:32:25,768 - [124690] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrder in 1 batches (triggers skipped) - __SPLIT__ 2026-07-03 07:32:25,902 - [124690] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-07-03 07:32:25,904 - [124690] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkorderId, WorkOrderNo FROM ServiceCore.WorkOrder wo WHERE wo.WorkOrderNo = '1427184' AND wo.AccountNumber = '14986' AND wo.CompanyId = 133 ... (Thread: ThreadPoolExecutor-10_0) - __SPLIT__ 2026-07-03 07:32:26,174 - [124690] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-03 07:32:26,174 - [124690] - src.utils.log - INFO - Sequential fetching temp table records - __SPLIT__ 2026-07-03 07:32:26,175 - [124690] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationServices woag WHERE woag.WorkOrderAutoGenerationId = 3681088... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 07:32:26,481 - [124690] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-03 07:32:26,482 - [124690] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SubWorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId = 3681088... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 07:32:26,753 - [124690] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-03 07:32:26,753 - [124690] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationCrews woag WHERE woag.WorkOrderAutoGenerationId = 3681088... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 07:32:27,043 - [124690] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-03 07:32:27,044 - [124690] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationSalesPersonCommission woag WHERE woag.WorkOrderAutoGenerationId = 3681088... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 07:32:27,311 - [124690] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-03 07:32:27,312 - [124690] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupAutoGenerationSourceMapping woag WHERE woag.WorkOrderAutoGenerationId = 3681088... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 07:32:27,581 - [124690] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-03 07:32:27,581 - [124690] - 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 = 3681088... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 07:32:27,878 - [124690] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-03 07:32:27,878 - [124690] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from CRM.LeadNote woag WHERE woag.RefId = 3681088 and woag.RefType = 'TempWorkorder';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 07:32:28,150 - [124690] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-03 07:32:28,150 - [124690] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment woagca WHERE woagca.WorkOrderAutoGenerationId = 3681088;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 07:32:28,417 - [124690] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-03 07:32:28,420 - [124690] - src.utils.log - INFO - Updating temp tables - __SPLIT__ 2026-07-03 07:32:28,426 - [124690] - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyKey FROM Common.CompanyMaster cm WHERE CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 07:32:28,693 - [124690] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-03 07:32:28,694 - [124690] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 133 AND EnitityNumberType in ('SubWorkOrder'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 07:32:28,961 - [124690] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-03 07:32:28,965 - [124690] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-03 07:32:28,965 - [124690] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishHistory: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 07:32:29,260 - [124690] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderAutoGenerationPublishHistory - __SPLIT__ 2026-07-03 07:32:30,221 - [124690] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishHistory in 1 batches - __SPLIT__ 2026-07-03 07:32:30,222 - [124690] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationPublishHistoryId, WorkOrderNo, ServiceSetupId FROM ServiceCore.WorkOrderAutoGenerationPublishHistory WHERE ServiceSetupId = 150601 AND WorkOrderNo = '9935761' AND GenerateWorkOrderHistoryId = 124690; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 07:32:30,703 - [124690] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-03 07:32:30,709 - [124690] - src.utils.log - INFO - Sequential Insertion in work order tables begin - __SPLIT__ 2026-07-03 07:32:30,709 - [124690] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-03 07:32:30,709 - [124690] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderServices: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 07:32:30,984 - [124690] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderServices - __SPLIT__ 2026-07-03 07:32:31,931 - [124690] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderServices in 1 batches - __SPLIT__ 2026-07-03 07:32:31,932 - [124690] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderAppliedDiscount: - __SPLIT__ 2026-07-03 07:32:31,932 - [124690] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderSalesPersonCommission: - __SPLIT__ 2026-07-03 07:32:31,932 - [124690] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderCommissionAdjustment: - __SPLIT__ 2026-07-03 07:32:31,932 - [124690] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderCrew: - __SPLIT__ 2026-07-03 07:32:31,932 - [124690] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkorderSourceMapping: - __SPLIT__ 2026-07-03 07:32:31,932 - [124690] - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-07-03 07:32:31,932 - [124690] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-03 07:32:31,932 - [124690] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishServices: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 07:32:32,207 - [124690] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderAutoGenerationPublishServices - __SPLIT__ 2026-07-03 07:32:33,154 - [124690] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishServices in 1 batches - __SPLIT__ 2026-07-03 07:32:33,154 - [124690] - 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 = 150601... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 07:32:33,421 - [124690] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-03 07:32:33,428 - [124690] - src.utils.log - INFO - Size of Transaction: 1 - __SPLIT__ 2026-07-03 07:32:33,429 - [124690] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 07:32:33,833 - [124690] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-07-03 07:32:34,770 - [124690] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-07-03 07:32:34,902 - [124690] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-07-03 07:32:34,903 - [124690] - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionId, ModifiedBy, TransactionDate as InvoiceDate from Billing.[Transaction] t WHERE t.ModifiedBy = 12345678910 and t.CompanyId = 133 AND t.TransactionType ='Invoice' AND t.CreatedDate = '2026-07-03 03:32:33.423';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 07:32:35,299 - [124690] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-03 07:32:35,301 - [124690] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150601;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 07:32:35,569 - [124690] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-03 07:32:35,577 - [124690] - src.utils.log - INFO - πŸ“ Executing: UPDATE Billing.[Transaction] SET ModifiedBy = NULL WHERE ModifiedBy = 12345678910 AND CreatedDate = '2026-07-03 03:32:33.423'; ... (Thread: ThreadPoolExecutor-11_0) - __SPLIT__ 2026-07-03 07:32:36,596 - [124690] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-03 07:32:36,601 - [124690] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-03 07:32:36,601 - [124690] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 07:32:36,878 - [124690] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into Billing.Invoice - __SPLIT__ 2026-07-03 07:32:37,820 - [124690] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-07-03 07:32:37,821 - [124690] - src.utils.log - INFO - πŸ” Fetching data: SELECT InvoiceId, WorkOrderNo FROM Billing.Invoice i WHERE i.WorkOrderNo = '1427184'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 07:32:38,744 - [124690] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-03 07:32:38,753 - [124690] - 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 = 150601 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 07:32:39,023 - [124690] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-03 07:32:39,023 - [124690] - 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 = 150601 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 07:32:39,294 - [124690] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-03 07:32:39,294 - [124690] - 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 = 150601 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 07:32:39,565 - [124690] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-03 07:32:39,565 - [124690] - 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 = 150601 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 07:32:39,835 - [124690] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-03 07:32:39,847 - [124690] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150601;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 07:32:40,115 - [124690] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-03 07:32:40,121 - [124690] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId, AppliedDiscountAmt as AppliedDiscountAmount,IsActive ,ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 150601;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 07:32:40,388 - [124690] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-03 07:32:40,392 - [124690] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId,IsActive,DiscountAmount, IsDiscountPercent,DiscountPercent,DiscountDescription , ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 150601;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 07:32:40,660 - [124690] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-03 07:32:40,660 - [124690] - src.utils.log - INFO - Sequential Insertion in invoice tables begin - __SPLIT__ 2026-07-03 07:32:40,660 - [124690] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.AccountDiscountSetup: - __SPLIT__ 2026-07-03 07:32:40,661 - [124690] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-03 07:32:40,661 - [124690] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceCharges: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 07:32:40,935 - [124690] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into Billing.InvoiceCharges - __SPLIT__ 2026-07-03 07:32:41,879 - [124690] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into Billing.InvoiceCharges in 1 batches - __SPLIT__ 2026-07-03 07:32:41,880 - [124690] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.DiscountApplied: - __SPLIT__ 2026-07-03 07:32:41,880 - [124690] - src.utils.log - INFO - Invoice Publish Done - __SPLIT__ 2026-07-03 07:32:41,880 - [124690] - src.utils.log - INFO - Updating Next GenerationDate - __SPLIT__ 2026-07-03 07:32:41,880 - [124690] - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, MAX(NextWorkOrderGenerationDate) AS MaxNextWorkOrderGeneration FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 124690 GROUP BY ServiceSetupId; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 07:32:42,150 - [124690] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-03 07:32:42,157 - [124690] - src.utils.log - INFO - πŸ”„ Updating next gen date sequentially: inside update_next_workorder_generation - __SPLIT__ 2026-07-03 07:32:42,290 - [124690] - src.utils.log - INFO - πŸ›  Creating temp table #tbl_0006468e99 - __SPLIT__ 2026-07-03 07:32:42,559 - [124690] - src.utils.log - INFO - πŸ“Œ Bulk inserting 1 rows into #tbl_0006468e99 - __SPLIT__ 2026-07-03 07:32:42,826 - [124690] - src.utils.log - INFO - πŸ” Running MERGE update to apply changes - __SPLIT__ 2026-07-03 07:32:42,969 - [124690] - src.utils.log - INFO - βœ” SQL reported affected rows: 1 - __SPLIT__ 2026-07-03 07:32:43,108 - [124690] - src.utils.log - INFO - πŸ” Verified successfully updated 1 rows via #tbl_0006468e99 - __SPLIT__ 2026-07-03 07:32:43,108 - [124690] - src.utils.log - INFO - πŸŽ‰ Successfully updated NextGenerationDate using temp table #tbl_0006468e99 - __SPLIT__ 2026-07-03 07:32:43,108 - [124690] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 124690 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 07:32:43,374 - [124690] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-03 07:32:43,375 - [124690] - src.utils.log - INFO - Sequential deletion from temp tables begin - __SPLIT__ 2026-07-03 07:32:43,375 - [124690] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId = 3681088 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 07:32:43,792 - [124690] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-03 07:32:43,792 - [124690] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId = 3681088 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 07:32:44,154 - [124690] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-03 07:32:44,154 - [124690] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId = 3681088 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 07:32:44,420 - [124690] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-03 07:32:44,421 - [124690] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId = 3681088 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 07:32:44,777 - [124690] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-03 07:32:44,778 - [124690] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId = 3681088 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 07:32:45,050 - [124690] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-03 07:32:45,050 - [124690] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 3681088 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 07:32:45,319 - [124690] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-03 07:32:45,320 - [124690] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId = 3681088 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 07:32:45,585 - [124690] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-03 07:32:45,585 - [124690] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 3681088 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 07:32:45,911 - [124690] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-03 07:32:45,912 - [124690] - src.utils.log - INFO - Work order published ids: (3681088,) - __SPLIT__ 2026-07-03 07:32:45,912 - [124690] - src.utils.log - INFO - Time took to perform operation in publishing [124690]: 29.16 - __SPLIT__ 2026-07-03 07:32:45,912 - [124690] - src.utils.log - INFO - Publish Completed for GenerateWorkOrderHistoryId: [124690] - __SPLIT__ 2026-07-03 07:32:45,912 - [124690] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-07-03 03:32:45.912' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124690;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 07:32:46,179 - [124690] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-03 13:39:14,223 - 12551 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=12551 - __SPLIT__ 2026-07-03 13:39:14,223 - 12551 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 12551 - __SPLIT__ 2026-07-03 13:39:14,224 - 12551 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-03 13:39:14,224 - 12551 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 13:39:16,306 - 12551 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-03 13:39:16,306 - 12551 - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-07-03 13:39:16,307 - 12551 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 12551;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 13:39:16,602 - 12551 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-03 13:39:16,603 - 12551 - 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 = 12551), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 12551), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 12551 AND ss.FrequencyScheduleId IS NOT NULL AND ss.IsActive = 1 AND ss.IsDeleted = 0 AND ss.Status <> 'Canceled' AND ((ss.OrderType = gw.OrderType) OR gw.OrderType IS NULL);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 13:39:16,936 - 12551 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-03 13:39:16,937 - 12551 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 12551;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 13:39:17,235 - 12551 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-03 13:39:17,238 - 12551 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-07-03 13:39:17,238 - 12551 - 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 = 13014... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 13:39:17,545 - 12551 - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-07-03 13:39:17,546 - 12551 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-07-03 13:39:17,549 - 12551 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-07-03 13:39:17,549 - 12551 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 34265;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 13:39:17,848 - 12551 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-03 13:39:17,849 - 12551 - src.utils.log - INFO - πŸ” Fetching data: select ServiceDate, ServiceSetupId, IsInitial from serviceCore.WorkOrder wo inner join ServiceCore.WorkOrderStatus wos on wo.WoStatusId = wos.WoStatusId where ServiceDate >= '2026-07-03 00:00:00' and ServiceDate <= '2027-12-31 00:00:00' and ServiceSetupId = 34265 and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 13:39:18,149 - 12551 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-03 13:39:18,767 - 12551 - src.utils.log - INFO - Generating work orders for setup: 34265 - __SPLIT__ 2026-07-03 13:39:18,805 - 12551 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 1348;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 13:39:19,102 - 12551 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-03 13:39:19,142 - 12551 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-07-03 13:39:19,148 - 12551 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=135 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 13:39:19,446 - 12551 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-03 13:39:19,448 - 12551 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-07-03 13:39:19,448 - 12551 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-07-03 13:39:19,448 - 12551 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34265 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 13:39:19,757 - 12551 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-03 13:39:19,758 - 12551 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34265 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 13:39:20,067 - 12551 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-03 13:39:20,067 - 12551 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34265 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 13:39:20,377 - 12551 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-03 13:39:20,377 - 12551 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34265 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 13:39:20,685 - 12551 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-03 13:39:20,686 - 12551 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34265 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 13:39:20,991 - 12551 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-03 13:39:20,991 - 12551 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34265 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 13:39:21,299 - 12551 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-03 13:39:21,299 - 12551 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34265 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 13:39:21,599 - 12551 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-03 13:39:21,599 - 12551 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34265 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 13:39:21,918 - 12551 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-03 13:39:21,918 - 12551 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-03 13:39:21,919 - 12551 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 6 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 13:39:22,266 - 12551 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 6) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-07-03 13:39:23,524 - 12551 - src.utils.log - INFO - βœ… All 6 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-07-03 13:39:23,524 - 12551 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 6 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-07-01 11:58:39.742' and ServiceSetupId = 34265... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 13:39:23,842 - 12551 - src.utils.log - INFO - βœ… Fetched 6 rows - __SPLIT__ 2026-07-03 13:39:23,843 - 12551 - src.utils.log - INFO - Id's of work order inserted to DB: [2735148 2735149 2735150 2735151 2735152 2735153] - __SPLIT__ 2026-07-03 13:39:23,843 - 12551 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 34265;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 13:39:24,145 - 12551 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-03 13:39:24,145 - 12551 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-07-03 13:39:24,146 - 12551 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId = 34265... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 13:39:24,446 - 12551 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-03 13:39:24,446 - 12551 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId = 34265... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 13:39:24,745 - 12551 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-03 13:39:24,749 - 12551 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId = 34265... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 13:39:25,049 - 12551 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-03 13:39:25,051 - 12551 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId = 34265... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 13:39:25,348 - 12551 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-03 13:39:25,349 - 12551 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId = 34265... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 13:39:25,645 - 12551 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-03 13:39:25,645 - 12551 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId = 34265;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 13:39:25,942 - 12551 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-03 13:39:25,943 - 12551 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId = 34265;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 13:39:26,239 - 12551 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-03 13:39:26,240 - 12551 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId = 34265;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 13:39:26,554 - 12551 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-03 13:39:26,554 - 12551 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId = 34265;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 13:39:26,851 - 12551 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-03 13:39:26,859 - 12551 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-07-03 13:39:26,860 - 12551 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-07-03 13:39:26,860 - 12551 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-07-03 13:39:26,860 - 12551 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.CommunicationPreferencesServiceReportNotification: - __SPLIT__ 2026-07-03 13:39:26,860 - 12551 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-07-03 13:39:26,860 - 12551 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SetupAutoGenerationSourceMapping: - __SPLIT__ 2026-07-03 13:39:26,860 - 12551 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-07-03 13:39:26,860 - 12551 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationAppliedDiscount: - __SPLIT__ 2026-07-03 13:39:26,860 - 12551 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-07-03 13:39:26,860 - 12551 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SubWorkOrderAutoGeneration: - __SPLIT__ 2026-07-03 13:39:26,860 - 12551 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-07-03 13:39:26,860 - 12551 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: - __SPLIT__ 2026-07-03 13:39:26,860 - 12551 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-07-03 13:39:26,860 - 12551 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: - __SPLIT__ 2026-07-03 13:39:26,860 - 12551 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-07-03 13:39:26,861 - 12551 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-03 13:39:26,861 - 12551 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (2735148, 2735149, 2735150, 2735151, 2735152, 2735153) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 13:39:27,158 - 12551 - src.utils.log - INFO - βœ… Fetched 6 rows - __SPLIT__ 2026-07-03 13:39:27,159 - 12551 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationCrews: 6 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 13:39:27,477 - 12551 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 6) into ServiceCore.WorkOrderAutoGenerationCrews - __SPLIT__ 2026-07-03 13:39:28,525 - 12551 - src.utils.log - INFO - βœ… All 6 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationCrews in 1 batches - __SPLIT__ 2026-07-03 13:39:28,525 - 12551 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-07-03 13:39:28,525 - 12551 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationServices: - __SPLIT__ 2026-07-03 13:39:28,525 - 12551 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-07-03 13:39:28,525 - 12551 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-03 13:39:28,526 - 12551 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (2735148, 2735149, 2735150, 2735151, 2735152, 2735153) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 13:39:28,822 - 12551 - src.utils.log - INFO - βœ… Fetched 6 rows - __SPLIT__ 2026-07-03 13:39:28,823 - 12551 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 6 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 13:39:29,145 - 12551 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 6) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-07-03 13:39:30,199 - 12551 - src.utils.log - INFO - βœ… All 6 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-07-03 13:39:30,199 - 12551 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-07-03 13:39:30,199 - 12551 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 12551;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 13:39:30,496 - 12551 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-03 13:39:30,496 - 12551 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-07-03 13:39:30,496 - 12551 - src.utils.log - INFO - Time took to perform operation: 16.27 - __SPLIT__ 2026-07-03 13:39:52,928 - [12551] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[2735148, 2735149, 2735150, 2735151, 2735152, 2735153] user_id=122885 company_id=135 project_id=[12551] publish_all=False - __SPLIT__ 2026-07-03 13:39:52,929 - [12551] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[2735148, 2735149, 2735150, 2735151, 2735152, 2735153] user_id=122885 company_id=135 project_id=[12551] publish_all=False - __SPLIT__ 2026-07-03 13:39:52,929 - [12551] - src.utils.log - INFO - Sequential Work order publish in progress for GenerateWorkOrderHistoryId: [12551] - __SPLIT__ 2026-07-03 13:39:52,930 - [12551] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-03 13:39:52,930 - [12551] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 13:39:55,005 - [12551] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-03 13:39:55,005 - [12551] - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-07-03 13:39:55,005 - [12551] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'InProgress' WHERE CompanyId = 135 AND GenerateWorkOrderHistoryId = 12551;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 13:39:55,304 - [12551] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-03 13:39:55,304 - [12551] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (2735148, 2735149, 2735150, 2735151, 2735152, 2735153)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 13:39:55,607 - [12551] - src.utils.log - INFO - βœ… Fetched 6 rows - __SPLIT__ 2026-07-03 13:39:55,607 - [12551] - src.utils.log - INFO - Inside get_work_order_table - __SPLIT__ 2026-07-03 13:39:55,608 - [12551] - 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 = 34265 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 13:39:55,913 - [12551] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-03 13:39:55,913 - [12551] - 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 = 34265 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 13:39:56,216 - [12551] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-03 13:39:56,217 - [12551] - 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 = 34265 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 13:39:56,522 - [12551] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-03 13:39:56,526 - [12551] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder,BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 135;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 13:39:56,823 - [12551] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-03 13:39:56,824 - [12551] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 135 AND EnitityNumberType in ('WorkOrder','Invoice'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 13:39:57,121 - [12551] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-03 13:39:57,121 - [12551] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder, BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 135; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 13:39:57,420 - [12551] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-03 13:39:57,421 - [12551] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig SET NextNumber = NextNumber + 6 OUTPUT INSERTED.NextNumber - 6 AS StartNumber WHERE CompanyId = 135 AND EnitityNumberType IN ('WorkOrder','Invoice'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 13:39:57,719 - [12551] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-03 13:39:57,723 - [12551] - 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 = 34265... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 13:39:58,024 - [12551] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-03 13:39:58,029 - [12551] - src.utils.log - INFO - πŸ” Fetching data: SELECT x.CompanyId FROM CRM.CompanyMaster x WHERE CompanyKey = 'Fortive';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 13:39:58,326 - [12551] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-03 13:39:58,327 - [12551] - src.utils.log - INFO - πŸ” Fetching data: SELECT CollectionStatus,IsHold,AccountNo FROM CRM.Account a WHERE a.AccountNo = 'S1' and a.CompanyId = 124;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 13:39:58,623 - [12551] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-03 13:39:58,625 - [12551] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderNo FROM ServiceCore.WorkOrder WHERE WorkOrderNo IN ('168994R', '168995R', '168996R', '168997R', '168998R', '168999R') AND CompanyId = 135 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 13:39:58,924 - [12551] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-03 13:39:58,924 - [12551] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrder (skip triggers): 6 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 13:39:59,422 - [12551] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 6) into ServiceCore.WorkOrder (triggers skipped) - __SPLIT__ 2026-07-03 13:40:00,656 - [12551] - src.utils.log - INFO - βœ… All 6 rows inserted successfully into ServiceCore.WorkOrder in 1 batches (triggers skipped) - __SPLIT__ 2026-07-03 13:40:00,804 - [12551] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-07-03 13:40:00,805 - [12551] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkorderId, WorkOrderNo FROM ServiceCore.WorkOrder wo WHERE wo.WorkOrderNo IN ('168994R', '168995R', '168996R', '168997R', '168998R', '168999R') AND wo.AccountNumber = 'S1' AND wo.CompanyId = 135 ... (Thread: ThreadPoolExecutor-18_0) - __SPLIT__ 2026-07-03 13:40:01,105 - [12551] - src.utils.log - INFO - βœ… Fetched 6 rows - __SPLIT__ 2026-07-03 13:40:01,106 - [12551] - src.utils.log - INFO - Sequential fetching temp table records - __SPLIT__ 2026-07-03 13:40:01,106 - [12551] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationServices woag WHERE woag.WorkOrderAutoGenerationId in (2735148, 2735149, 2735150, 2735151, 2735152, 2735153)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 13:40:01,413 - [12551] - src.utils.log - INFO - βœ… Fetched 6 rows - __SPLIT__ 2026-07-03 13:40:01,413 - [12551] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SubWorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (2735148, 2735149, 2735150, 2735151, 2735152, 2735153)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 13:40:01,711 - [12551] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-03 13:40:01,712 - [12551] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationCrews woag WHERE woag.WorkOrderAutoGenerationId in (2735148, 2735149, 2735150, 2735151, 2735152, 2735153)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 13:40:02,015 - [12551] - src.utils.log - INFO - βœ… Fetched 6 rows - __SPLIT__ 2026-07-03 13:40:02,016 - [12551] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationSalesPersonCommission woag WHERE woag.WorkOrderAutoGenerationId in (2735148, 2735149, 2735150, 2735151, 2735152, 2735153)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 13:40:02,314 - [12551] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-03 13:40:02,314 - [12551] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupAutoGenerationSourceMapping woag WHERE woag.WorkOrderAutoGenerationId in (2735148, 2735149, 2735150, 2735151, 2735152, 2735153)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 13:40:02,617 - [12551] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-03 13:40:02,618 - [12551] - 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 (2735148, 2735149, 2735150, 2735151, 2735152, 2735153)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 13:40:02,935 - [12551] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-03 13:40:02,936 - [12551] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from CRM.LeadNote woag WHERE woag.RefId in (2735148, 2735149, 2735150, 2735151, 2735152, 2735153) and woag.RefType = 'TempWorkorder';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 13:40:03,235 - [12551] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-03 13:40:03,235 - [12551] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment woagca WHERE woagca.WorkOrderAutoGenerationId in (2735148, 2735149, 2735150, 2735151, 2735152, 2735153);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 13:40:03,534 - [12551] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-03 13:40:03,537 - [12551] - src.utils.log - INFO - Updating temp tables - __SPLIT__ 2026-07-03 13:40:03,549 - [12551] - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyKey FROM Common.CompanyMaster cm WHERE CompanyId = 135;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 13:40:03,845 - [12551] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-03 13:40:03,846 - [12551] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 135 AND EnitityNumberType in ('SubWorkOrder'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 13:40:04,144 - [12551] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-03 13:40:04,148 - [12551] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-03 13:40:04,148 - [12551] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishHistory: 6 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 13:40:04,486 - [12551] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 6) into ServiceCore.WorkOrderAutoGenerationPublishHistory - __SPLIT__ 2026-07-03 13:40:05,557 - [12551] - src.utils.log - INFO - βœ… All 6 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishHistory in 1 batches - __SPLIT__ 2026-07-03 13:40:05,558 - [12551] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationPublishHistoryId, WorkOrderNo, ServiceSetupId FROM ServiceCore.WorkOrderAutoGenerationPublishHistory WHERE ServiceSetupId = 34265 AND WorkOrderNo IN ('2115495', '8297242', '7009710', '5154412', '1671813', '4090149') AND GenerateWorkOrderHistoryId = 12551;... (Thread: ThreadPoolExecutor-19_0) - __SPLIT__ 2026-07-03 13:40:05,881 - [12551] - src.utils.log - INFO - βœ… Fetched 6 rows - __SPLIT__ 2026-07-03 13:40:05,882 - [12551] - src.utils.log - INFO - 🏁 Final merged rows: 6 - __SPLIT__ 2026-07-03 13:40:05,888 - [12551] - src.utils.log - INFO - Sequential Insertion in work order tables begin - __SPLIT__ 2026-07-03 13:40:05,888 - [12551] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-03 13:40:05,888 - [12551] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderServices: 6 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 13:40:06,210 - [12551] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 6) into ServiceCore.WorkOrderServices - __SPLIT__ 2026-07-03 13:40:07,264 - [12551] - src.utils.log - INFO - βœ… All 6 rows inserted successfully into ServiceCore.WorkOrderServices in 1 batches - __SPLIT__ 2026-07-03 13:40:07,264 - [12551] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderAppliedDiscount: - __SPLIT__ 2026-07-03 13:40:07,265 - [12551] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderSalesPersonCommission: - __SPLIT__ 2026-07-03 13:40:07,265 - [12551] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderCommissionAdjustment: - __SPLIT__ 2026-07-03 13:40:07,265 - [12551] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-03 13:40:07,265 - [12551] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderCrew: 6 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 13:40:07,584 - [12551] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 6) into ServiceCore.WorkOrderCrew - __SPLIT__ 2026-07-03 13:40:08,631 - [12551] - src.utils.log - INFO - βœ… All 6 rows inserted successfully into ServiceCore.WorkOrderCrew in 1 batches - __SPLIT__ 2026-07-03 13:40:08,632 - [12551] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkorderSourceMapping: - __SPLIT__ 2026-07-03 13:40:08,632 - [12551] - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-07-03 13:40:08,632 - [12551] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-03 13:40:08,632 - [12551] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishServices: 6 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 13:40:08,953 - [12551] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 6) into ServiceCore.WorkOrderAutoGenerationPublishServices - __SPLIT__ 2026-07-03 13:40:10,033 - [12551] - src.utils.log - INFO - βœ… All 6 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishServices in 1 batches - __SPLIT__ 2026-07-03 13:40:10,033 - [12551] - 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 = 34265... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 13:40:10,331 - [12551] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-03 13:40:10,338 - [12551] - src.utils.log - INFO - Size of Transaction: 6 - __SPLIT__ 2026-07-03 13:40:10,339 - [12551] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 6 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 13:40:10,804 - [12551] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 6) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-07-03 13:40:11,851 - [12551] - src.utils.log - INFO - βœ… All 6 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-07-03 13:40:12,000 - [12551] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-07-03 13:40:12,001 - [12551] - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionId, ModifiedBy, TransactionDate as InvoiceDate from Billing.[Transaction] t WHERE t.ModifiedBy in (12345678910, 12345678911, 12345678912, 12345678913, 12345678914, 12345678915) and t.CompanyId = 135 AND t.TransactionType ='Invoice' AND t.CreatedDate = '2026-07-03 09:40:10.333';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 13:40:12,325 - [12551] - src.utils.log - INFO - βœ… Fetched 6 rows - __SPLIT__ 2026-07-03 13:40:12,328 - [12551] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 34265;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 13:40:12,625 - [12551] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-03 13:40:12,634 - [12551] - src.utils.log - INFO - πŸ“ Executing: UPDATE Billing.[Transaction] SET ModifiedBy = NULL WHERE ModifiedBy IN (12345678910,12345678911,12345678912,12345678913,12345678914,12345678915) AND CreatedDate = '2026-07-03 09:40:10.333'; ... (Thread: ThreadPoolExecutor-20_0) - __SPLIT__ 2026-07-03 13:40:12,954 - [12551] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-03 13:40:12,959 - [12551] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-03 13:40:12,960 - [12551] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 6 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 13:40:13,283 - [12551] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 6) into Billing.Invoice - __SPLIT__ 2026-07-03 13:40:14,404 - [12551] - src.utils.log - INFO - βœ… All 6 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-07-03 13:40:14,404 - [12551] - src.utils.log - INFO - πŸ” Fetching data: SELECT InvoiceId, WorkOrderNo FROM Billing.Invoice i WHERE i.WorkOrderNo in ('168999R', '168998R', '168997R', '168996R', '168995R', '168994R')... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 13:40:14,740 - [12551] - src.utils.log - INFO - βœ… Fetched 6 rows - __SPLIT__ 2026-07-03 13:40:14,750 - [12551] - 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 = 34265 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 13:40:15,049 - [12551] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-03 13:40:15,049 - [12551] - 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 = 34265 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 13:40:15,347 - [12551] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-03 13:40:15,348 - [12551] - 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 = 34265 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 13:40:15,652 - [12551] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-03 13:40:15,652 - [12551] - 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 = 34265 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 13:40:15,950 - [12551] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-03 13:40:15,963 - [12551] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 34265;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 13:40:16,261 - [12551] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-03 13:40:16,266 - [12551] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId, AppliedDiscountAmt as AppliedDiscountAmount,IsActive ,ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 34265;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 13:40:16,564 - [12551] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-03 13:40:16,568 - [12551] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId,IsActive,DiscountAmount, IsDiscountPercent,DiscountPercent,DiscountDescription , ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 34265;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 13:40:16,867 - [12551] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-03 13:40:16,868 - [12551] - src.utils.log - INFO - Sequential Insertion in invoice tables begin - __SPLIT__ 2026-07-03 13:40:16,868 - [12551] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.AccountDiscountSetup: - __SPLIT__ 2026-07-03 13:40:16,868 - [12551] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-03 13:40:16,868 - [12551] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceCharges: 6 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 13:40:17,189 - [12551] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 6) into Billing.InvoiceCharges - __SPLIT__ 2026-07-03 13:40:18,237 - [12551] - src.utils.log - INFO - βœ… All 6 rows inserted successfully into Billing.InvoiceCharges in 1 batches - __SPLIT__ 2026-07-03 13:40:18,238 - [12551] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.DiscountApplied: - __SPLIT__ 2026-07-03 13:40:18,238 - [12551] - src.utils.log - INFO - Invoice Publish Done - __SPLIT__ 2026-07-03 13:40:18,238 - [12551] - src.utils.log - INFO - Updating Next GenerationDate - __SPLIT__ 2026-07-03 13:40:18,238 - [12551] - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, MAX(NextWorkOrderGenerationDate) AS MaxNextWorkOrderGeneration FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 12551 GROUP BY ServiceSetupId; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 13:40:18,535 - [12551] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-03 13:40:18,541 - [12551] - src.utils.log - INFO - πŸ”„ Updating next gen date sequentially: inside update_next_workorder_generation - __SPLIT__ 2026-07-03 13:40:18,690 - [12551] - src.utils.log - INFO - πŸ›  Creating temp table #tbl_6658995dd9 - __SPLIT__ 2026-07-03 13:40:18,988 - [12551] - src.utils.log - INFO - πŸ“Œ Bulk inserting 1 rows into #tbl_6658995dd9 - __SPLIT__ 2026-07-03 13:40:19,284 - [12551] - src.utils.log - INFO - πŸ” Running MERGE update to apply changes - __SPLIT__ 2026-07-03 13:40:19,437 - [12551] - src.utils.log - INFO - βœ” SQL reported affected rows: 1 - __SPLIT__ 2026-07-03 13:40:19,590 - [12551] - src.utils.log - INFO - πŸ” Verified successfully updated 1 rows via #tbl_6658995dd9 - __SPLIT__ 2026-07-03 13:40:19,590 - [12551] - src.utils.log - INFO - πŸŽ‰ Successfully updated NextGenerationDate using temp table #tbl_6658995dd9 - __SPLIT__ 2026-07-03 13:40:19,590 - [12551] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 12551 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 13:40:19,888 - [12551] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-03 13:40:19,888 - [12551] - src.utils.log - INFO - Sequential deletion from temp tables begin - __SPLIT__ 2026-07-03 13:40:19,888 - [12551] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId in (2735148, 2735149, 2735150, 2735151, 2735152, 2735153) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 13:40:20,203 - [12551] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-03 13:40:20,203 - [12551] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId in (2735148, 2735149, 2735150, 2735151, 2735152, 2735153) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 13:40:20,515 - [12551] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-03 13:40:20,515 - [12551] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId in (2735148, 2735149, 2735150, 2735151, 2735152, 2735153) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 13:40:20,812 - [12551] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-03 13:40:20,812 - [12551] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId in (2735148, 2735149, 2735150, 2735151, 2735152, 2735153) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 13:40:21,150 - [12551] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-03 13:40:21,151 - [12551] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId in (2735148, 2735149, 2735150, 2735151, 2735152, 2735153) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 13:40:21,464 - [12551] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-03 13:40:21,464 - [12551] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (2735148, 2735149, 2735150, 2735151, 2735152, 2735153) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 13:40:21,765 - [12551] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-03 13:40:21,766 - [12551] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId in (2735148, 2735149, 2735150, 2735151, 2735152, 2735153) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 13:40:22,063 - [12551] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-03 13:40:22,063 - [12551] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (2735148, 2735149, 2735150, 2735151, 2735152, 2735153) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 13:40:22,408 - [12551] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-03 13:40:22,408 - [12551] - src.utils.log - INFO - Work order published ids: (2735148, 2735149, 2735150, 2735151, 2735152, 2735153) - __SPLIT__ 2026-07-03 13:40:22,408 - [12551] - src.utils.log - INFO - Time took to perform operation in publishing [12551]: 29.48 - __SPLIT__ 2026-07-03 13:40:22,408 - [12551] - src.utils.log - INFO - Publish Completed for GenerateWorkOrderHistoryId: [12551] - __SPLIT__ 2026-07-03 13:40:22,408 - [12551] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-07-03 09:40:22.408' WHERE CompanyId = 135 AND GenerateWorkOrderHistoryId = 12551;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-03 13:40:22,708 - [12551] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-06 06:54:31,900 - [42499] - src.utils.log - INFO - ParallelProcessing=False temp_invoice=[] user_id=43135 company_id=133 project_id=[42499] publish_all=True - __SPLIT__ 2026-07-06 06:54:32,128 - [42499] - src.utils.log - INFO - Invoice Published Successfully - __SPLIT__ 2026-07-06 06:54:32,200 - [42499] - src.utils.log - INFO - Sequential invoice publish in progress - __SPLIT__ 2026-07-06 06:54:32,273 - [42499] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-06 06:54:32,344 - [42499] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 06:54:34,377 - [42499] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-06 06:54:34,446 - [42499] - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-07-06 06:54:34,518 - [42499] - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-07-06 06:54:34,590 - [42499] - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-07-06 06:54:34,662 - [42499] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET PublishStatus = 'InProgress', InvoicePublishStartDateTime = '2026-07-06 02:54:34.662' WHERE CompanyId = 133 AND GenerateInvoiceHistoryId = 42499;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 06:54:36,644 - [42499] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-06 06:54:36,716 - [42499] - src.utils.log - INFO - πŸ” Fetching data: SELECT i.* FROM Billing.InvoiceAutoGeneration i join Billing.TransactionAutoGeneration t on i.TransactionAutoGenerationId = t.TransactionAutoGenerationId WHERE t.GenerateWorkOrderHistoryId = 42499; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 06:54:37,076 - [42499] - src.utils.log - INFO - βœ… Fetched 12 rows - __SPLIT__ 2026-07-06 06:54:37,140 - [42499] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Billing.TransactionAutoGeneration tag WHERE tag.TransactionAutoGenerationId in (703460, 703461, 703462, 703463, 703464, 703465, 703466, 703467, 703468, 703469, 703470, 703471);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 06:54:37,480 - [42499] - src.utils.log - INFO - βœ… Fetched 12 rows - __SPLIT__ 2026-07-06 06:54:37,551 - [42499] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 12 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 06:54:38,052 - [42499] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 12) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-07-06 06:54:39,383 - [42499] - src.utils.log - INFO - βœ… All 12 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-07-06 06:54:39,586 - [42499] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-07-06 06:54:39,653 - [42499] - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionId, ModifiedBy from Billing.[Transaction] t WHERE t.ModifiedBy in (12345678910, 12345678911, 12345678912, 12345678913, 12345678914, 12345678915, 12345678916, 12345678917, 12345678918, 12345678919, 12345678920, 12345678921);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 06:54:46,694 - [42499] - src.utils.log - INFO - βœ… Fetched 12 rows - __SPLIT__ 2026-07-06 06:54:46,822 - [42499] - src.utils.log - INFO - πŸ“ Executing: UPDATE Billing.[Transaction] SET ModifiedBy = NULL WHERE ModifiedBy IN (12345678910,12345678911,12345678912,12345678913,12345678914,12345678915,12345678916,12345678917,12345678918,12345678919,12345678920,12345678921); ... (Thread: ThreadPoolExecutor-0_0) - __SPLIT__ 2026-07-06 06:54:47,727 - [42499] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-06 06:54:47,798 - [42499] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 133 AND EnitityNumberType in ('Invoice'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 06:54:48,166 - [42499] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-06 06:54:48,238 - [42499] - src.utils.log - INFO - 12 Invoice Generated : [1489699, 1489700, 1489701, 1489702, 1489703, 1489704, 1489705, 1489706, 1489707, 1489708, 1489709, 1489710] - __SPLIT__ 2026-07-06 06:54:48,306 - [42499] - src.utils.log - INFO - πŸ“ Executing: UPDATE Common.GenerateNumberConfig SET NextNumber = '1489711' WHERE CompanyId = 133 AND EnitityNumberType in ('Invoice');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 06:54:48,647 - [42499] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-06 06:54:48,716 - [42499] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-06 06:54:48,780 - [42499] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 12 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 06:54:49,153 - [42499] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 12) into Billing.Invoice - __SPLIT__ 2026-07-06 06:54:50,369 - [42499] - src.utils.log - INFO - βœ… All 12 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-07-06 06:54:50,443 - [42499] - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionId, InvoiceId FROM Billing.Invoice WHERE TransactionId in (3702179, 3702180, 3702181, 3702182, 3702183, 3702184, 3702185, 3702186, 3702187, 3702188, 3702189, 3702190);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 06:54:50,783 - [42499] - src.utils.log - INFO - βœ… Fetched 12 rows - __SPLIT__ 2026-07-06 06:54:50,858 - [42499] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Billing.InvoiceChargesAutoGeneration icag WHERE InvoiceAutoGenerationId in (480790, 480791, 480792, 480793, 480794, 480795, 480796, 480797, 480798, 480799, 480800, 480801);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 06:54:51,295 - [42499] - src.utils.log - INFO - βœ… Fetched 12 rows - __SPLIT__ 2026-07-06 06:54:51,369 - [42499] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Billing.InvoiceAutoGenerationAppliedDiscount iagad WHERE InvoiceAutoGenerationId in (480790, 480791, 480792, 480793, 480794, 480795, 480796, 480797, 480798, 480799, 480800, 480801);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 06:54:51,716 - [42499] - src.utils.log - INFO - βœ… Fetched 12 rows - __SPLIT__ 2026-07-06 06:54:51,798 - [42499] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-06 06:54:51,873 - [42499] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceCharges: 12 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 06:54:52,246 - [42499] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 12) into Billing.InvoiceCharges - __SPLIT__ 2026-07-06 06:54:53,642 - [42499] - src.utils.log - INFO - βœ… All 12 rows inserted successfully into Billing.InvoiceCharges in 1 batches - __SPLIT__ 2026-07-06 06:54:53,714 - [42499] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-06 06:54:53,786 - [42499] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.AccountDiscountSetup: 12 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 06:54:54,149 - [42499] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 12) into Billing.AccountDiscountSetup - __SPLIT__ 2026-07-06 06:54:55,188 - [42499] - src.utils.log - INFO - βœ… All 12 rows inserted successfully into Billing.AccountDiscountSetup in 1 batches - __SPLIT__ 2026-07-06 06:54:55,261 - [42499] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-06 06:54:55,336 - [42499] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.DiscountApplied: 12 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 06:54:55,709 - [42499] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 12) into Billing.DiscountApplied - __SPLIT__ 2026-07-06 06:54:56,777 - [42499] - src.utils.log - INFO - βœ… All 12 rows inserted successfully into Billing.DiscountApplied in 1 batches - __SPLIT__ 2026-07-06 06:54:56,847 - [42499] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: delete FROM Billing.InvoiceAutoGenerationAppliedDiscount WHERE InvoiceAutoGenerationId in (480790, 480791, 480792, 480793, 480794, 480795, 480796, 480797, 480798, 480799, 480800, 480801) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 06:54:57,189 - [42499] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-06 06:54:57,266 - [42499] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: delete FROM Billing.InvoiceChargesAutoGeneration WHERE InvoiceAutoGenerationId in (480790, 480791, 480792, 480793, 480794, 480795, 480796, 480797, 480798, 480799, 480800, 480801) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 06:54:57,610 - [42499] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-06 06:54:57,684 - [42499] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: delete FROM Billing.InvoiceAutoGeneration WHERE InvoiceAutoGenerationId in (480790, 480791, 480792, 480793, 480794, 480795, 480796, 480797, 480798, 480799, 480800, 480801) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 06:54:58,064 - [42499] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-06 06:54:58,137 - [42499] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: delete FROM Billing.TransactionAutoGeneration WHERE TransactionAutoGenerationId in (703460, 703461, 703462, 703463, 703464, 703465, 703466, 703467, 703468, 703469, 703470, 703471) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 06:54:58,523 - [42499] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-06 06:54:58,600 - [42499] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-07-06 02:54:34.662' WHERE CompanyId = 133 AND GenerateInvoiceHistoryId = 42499;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 06:54:58,946 - [42499] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-06 06:54:59,023 - [42499] - src.utils.log - INFO - Sequential invoice publish completed successfully - Time took: 26.75 - __SPLIT__ 2026-07-06 07:29:19,235 - 124693 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=124693 - __SPLIT__ 2026-07-06 07:29:19,465 - 124693 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 124693 - __SPLIT__ 2026-07-06 07:29:19,530 - 124693 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-06 07:29:19,601 - 124693 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 07:29:21,676 - 124693 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-06 07:29:21,742 - 124693 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-07-06 07:29:21,806 - 124693 - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-07-06 07:29:21,872 - 124693 - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-07-06 07:29:21,967 - 124693 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 124693;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 07:29:23,903 - 124693 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-06 07:29:23,965 - 124693 - 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 = 124693), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 124693), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 124693 AND ss.FrequencyScheduleId IS NOT NULL AND ss.IsActive = 1 AND ss.IsDeleted = 0 AND ss.Status <> 'Canceled' AND ((ss.OrderType = gw.OrderType) OR gw.OrderType IS NULL);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 07:29:24,355 - 124693 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-06 07:29:24,427 - 124693 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 124693;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 07:29:24,764 - 124693 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-06 07:29:24,842 - 124693 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-07-06 07:29:24,937 - 124693 - src.utils.log - INFO - πŸ” Fetching data: SELECT fsd.IntervalDays, fs.CreatedDate ,f.FrequencyId , fs.FrequencyScheduleId, f.[SysName], f.FrequencyValue, f.YearlyOccurrence , fs.ScheduleFormat,fsd.Days, fsd.Weeks, fsd.Months,fsc.[Month] as sch_months, fsd.StartMonth , fsd.DateDay,fsd.DateMonth FROM [ServiceCore].[FrequencyMaster] f inner join [ServiceCore].[FrequencySchedule] fs on fs.FrequencyId = f.FrequencyId left join ServiceCore.FrequencyScheduleCycle fsc on fsc.FrequencyScheduleId = fs.FrequencyScheduleId left join [ServiceCore].[FrequencyScheduleDetail] fsd on fsd.FrequencyScheduleId = fs.FrequencyScheduleId WHERE fsd.FrequencyScheduleId = 14638... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 07:29:25,277 - 124693 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-06 07:29:25,352 - 124693 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-07-06 07:29:25,424 - 124693 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-07-06 07:29:25,498 - 124693 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId in (150611, 150612);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 07:29:25,886 - 124693 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-06 07:29:25,962 - 124693 - src.utils.log - INFO - πŸ” Fetching data: select ServiceDate, ServiceSetupId,IsInitial from serviceCore.WorkOrder wo inner join ServiceCore.WorkOrderStatus wos on wo.WoStatusId = wos.WoStatusId where ServiceDate >= '2026-07-06 00:00:00' and ServiceDate <= '2026-12-31 00:00:00' and ServiceSetupId in (150611, 150612) and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 07:29:26,304 - 124693 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-06 07:29:26,933 - 124693 - src.utils.log - INFO - Generating work orders for setup: 150611 - __SPLIT__ 2026-07-06 07:29:27,044 - 124693 - src.utils.log - INFO - Generating work orders for setup: 150612 - __SPLIT__ 2026-07-06 07:29:27,149 - 124693 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId in (1130, 1127);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 07:29:27,483 - 124693 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-06 07:29:27,563 - 124693 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId in (1130, 11435);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 07:29:27,901 - 124693 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-06 07:29:28,010 - 124693 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-07-06 07:29:28,084 - 124693 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=133 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 07:29:28,429 - 124693 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-06 07:29:28,501 - 124693 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-07-06 07:29:28,577 - 124693 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-07-06 07:29:28,650 - 124693 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (150611, 150612) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 07:29:29,042 - 124693 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-06 07:29:29,114 - 124693 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (150611, 150612) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 07:29:29,502 - 124693 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-06 07:29:29,575 - 124693 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (150611, 150612) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 07:29:29,935 - 124693 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-06 07:29:30,059 - 124693 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (150611, 150612) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 07:29:30,448 - 124693 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-06 07:29:30,519 - 124693 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (150611, 150612) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 07:29:30,900 - 124693 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-06 07:29:30,972 - 124693 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (150611, 150612) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 07:29:31,399 - 124693 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-06 07:29:31,466 - 124693 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (150611, 150612) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 07:29:31,816 - 124693 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-06 07:29:31,888 - 124693 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (150611, 150612) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 07:29:32,357 - 124693 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-06 07:29:32,430 - 124693 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-06 07:29:32,499 - 124693 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 12 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 07:29:32,897 - 124693 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 12) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-07-06 07:29:34,403 - 124693 - src.utils.log - INFO - βœ… All 12 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-07-06 07:29:34,476 - 124693 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 12 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-07-01 11:58:39.742' and ServiceSetupId in (150611, 150612)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 07:29:34,856 - 124693 - src.utils.log - INFO - βœ… Fetched 12 rows - __SPLIT__ 2026-07-06 07:29:34,926 - 124693 - src.utils.log - INFO - Id's of work order inserted to DB: [3681119 3681120 3681121 3681122 3681123 3681124 3681125 3681126 3681127 3681128 3681129 3681130] - __SPLIT__ 2026-07-06 07:29:34,996 - 124693 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId in (150611, 150612);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 07:29:35,331 - 124693 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-06 07:29:35,408 - 124693 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-07-06 07:29:35,527 - 124693 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId in (150611, 150612)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 07:29:35,861 - 124693 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-06 07:29:35,925 - 124693 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId in (150611, 150612)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 07:29:36,261 - 124693 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-06 07:29:36,342 - 124693 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId in (150611, 150612)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 07:29:36,685 - 124693 - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-07-06 07:29:36,753 - 124693 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId in (150611, 150612)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 07:29:37,086 - 124693 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-06 07:29:37,152 - 124693 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId in (150611, 150612)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 07:29:37,491 - 124693 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-06 07:29:37,557 - 124693 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId in (150611, 150612);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 07:29:37,896 - 124693 - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-07-06 07:29:37,964 - 124693 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId in (150611, 150612);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 07:29:38,299 - 124693 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-06 07:29:38,366 - 124693 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId in (150611, 150612);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 07:29:39,544 - 124693 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-06 07:29:39,607 - 124693 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId in (150611, 150612);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 07:29:39,951 - 124693 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-06 07:29:40,036 - 124693 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-07-06 07:29:40,102 - 124693 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-07-06 07:29:40,222 - 124693 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-07-06 07:29:40,292 - 124693 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.CommunicationPreferencesServiceReportNotification: - __SPLIT__ 2026-07-06 07:29:40,361 - 124693 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-07-06 07:29:40,435 - 124693 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SetupAutoGenerationSourceMapping: - __SPLIT__ 2026-07-06 07:29:40,507 - 124693 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-07-06 07:29:40,584 - 124693 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-06 07:29:40,658 - 124693 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3681120, 3681121, 3681124, 3681125, 3681128, 3681130) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 07:29:41,001 - 124693 - src.utils.log - INFO - βœ… Fetched 6 rows - __SPLIT__ 2026-07-06 07:29:41,076 - 124693 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationAppliedDiscount: 12 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 07:29:41,437 - 124693 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 12) into ServiceCore.WorkOrderAutoGenerationAppliedDiscount - __SPLIT__ 2026-07-06 07:29:42,706 - 124693 - src.utils.log - INFO - βœ… All 12 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationAppliedDiscount in 1 batches - __SPLIT__ 2026-07-06 07:29:42,778 - 124693 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-07-06 07:29:42,851 - 124693 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SubWorkOrderAutoGeneration: - __SPLIT__ 2026-07-06 07:29:42,922 - 124693 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-07-06 07:29:42,995 - 124693 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: - __SPLIT__ 2026-07-06 07:29:43,070 - 124693 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-07-06 07:29:43,141 - 124693 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: - __SPLIT__ 2026-07-06 07:29:43,216 - 124693 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-07-06 07:29:43,291 - 124693 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-06 07:29:43,361 - 124693 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3681120, 3681121, 3681122, 3681123, 3681124, 3681125, 3681126, 3681127, 3681128, 3681129, 3681130, 3681119) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 07:29:43,757 - 124693 - src.utils.log - INFO - βœ… Fetched 12 rows - __SPLIT__ 2026-07-06 07:29:43,825 - 124693 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationCrews: 12 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 07:29:44,217 - 124693 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 12) into ServiceCore.WorkOrderAutoGenerationCrews - __SPLIT__ 2026-07-06 07:29:45,234 - 124693 - src.utils.log - INFO - βœ… All 12 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationCrews in 1 batches - __SPLIT__ 2026-07-06 07:29:45,298 - 124693 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-07-06 07:29:45,363 - 124693 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-06 07:29:45,433 - 124693 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3681120, 3681119) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 07:29:45,765 - 124693 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-06 07:29:45,838 - 124693 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 07:29:46,199 - 124693 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-07-06 07:29:47,234 - 124693 - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-07-06 07:29:47,302 - 124693 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-07-06 07:29:47,373 - 124693 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-06 07:29:47,443 - 124693 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3681121, 3681122, 3681123, 3681124, 3681125, 3681126, 3681127, 3681128, 3681129, 3681130) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 07:29:47,780 - 124693 - src.utils.log - INFO - βœ… Fetched 10 rows - __SPLIT__ 2026-07-06 07:29:47,851 - 124693 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 10 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 07:29:48,218 - 124693 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 10) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-07-06 07:29:49,241 - 124693 - src.utils.log - INFO - βœ… All 10 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-07-06 07:29:49,309 - 124693 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-07-06 07:29:49,372 - 124693 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 124693;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 07:29:49,758 - 124693 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-06 07:29:49,826 - 124693 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-07-06 07:29:49,902 - 124693 - src.utils.log - INFO - Time took to perform operation: 30.3 - __SPLIT__ 2026-07-06 07:30:08,522 - [124693] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[] user_id=43135 company_id=133 project_id=[124693] publish_all=True - __SPLIT__ 2026-07-06 07:30:08,649 - [124693] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[] user_id=43135 company_id=133 project_id=[124693] publish_all=True - __SPLIT__ 2026-07-06 07:30:08,717 - [124693] - src.utils.log - INFO - Sequential Work order publish in progress for GenerateWorkOrderHistoryId: [124693] - __SPLIT__ 2026-07-06 07:30:08,781 - [124693] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-06 07:30:08,850 - [124693] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 07:30:10,897 - [124693] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-06 07:30:10,968 - [124693] - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-07-06 07:30:11,036 - [124693] - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-07-06 07:30:11,103 - [124693] - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-07-06 07:30:11,170 - [124693] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'InProgress' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124693;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 07:30:13,123 - [124693] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-06 07:30:13,187 - [124693] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGeneration woag WHERE woag.GenerateWorkOrderHistoryId = 124693... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 07:30:13,563 - [124693] - src.utils.log - INFO - βœ… Fetched 12 rows - __SPLIT__ 2026-07-06 07:30:13,629 - [124693] - src.utils.log - INFO - Inside get_work_order_table - __SPLIT__ 2026-07-06 07:30:13,701 - [124693] - src.utils.log - INFO - πŸ” Fetching data: SELECT DISTINCT sss.ServiceSetupId, dm.DepartmentMasterId, bm.BranchMasterId FROM Common.DepartmentMaster dm JOIN Common.DivisionMaster d2 ON dm.DivisionMasterId = d2.DivisionMasterId JOIN Common.BranchMaster bm ON d2.BranchMasterId = bm.BranchMasterId JOIN ServiceCore.ServiceCategoryMaster c ON c.DepartmentId = dm.DepartmentMasterId JOIN ServiceCore.ServiceMaster sm ON c.CategoryId = sm.CategoryId JOIN ServiceCore.ServiceSetupServices sss ON sss.ServiceId = sm.ServiceMasterId WHERE dm.CompanyId = 133 AND d2.CompanyId = bm.CompanyId AND sss.ServiceSetupId in (150612, 150611) AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 07:30:14,053 - [124693] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-06 07:30:14,122 - [124693] - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceSetupId, dm.DepartmentMasterId, bm.BranchMasterId FROM Common.DepartmentMaster dm JOIN Common.DivisionMaster d2 ON dm.DivisionMasterId = d2.DivisionMasterId JOIN Common.BranchMaster bm ON d2.BranchMasterId = bm.BranchMasterId JOIN ServiceCore.SoldServiceNonStandard x on dm.DepartmentMasterId = x.DepartmentId JOIN ServiceCore.ServiceSetupServices sss ON sss.NonStdSoldServiceId = x.SoldServiceNonStandardId WHERE dm.CompanyId = 133 AND d2.CompanyId = bm.CompanyId AND sss.ServiceSetupId in (150612, 150611) AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 07:30:14,470 - [124693] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-06 07:30:14,533 - [124693] - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceSetupId, dm.DepartmentMasterId, bm.BranchMasterId FROM Common.DepartmentMaster dm Inner JOIN Common.DivisionMaster d2 ON dm.DivisionMasterId = d2.DivisionMasterId Inner JOIN Common.BranchMaster bm ON d2.BranchMasterId = bm.BranchMasterId Inner JOIN [ServiceCore].[ServiceCategoryMaster] scm ON dm.DepartmentMasterId = scm.DepartmentId Inner JOIN ServiceCore.ServiceMaster sm ON scm.CategoryId = sm.CategoryId Inner JOIN ServiceCore.SoldServiceStandard x on x.ServiceId = sm.ServiceMasterId Inner JOIN ServiceCore.ServiceSetupServices sss ON sss.StdSoldServiceId = x.SoldServiceStandardId WHERE dm.CompanyId = 133 AND d2.CompanyId = bm.CompanyId AND sss.ServiceSetupId in (150612, 150611) AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 07:30:14,878 - [124693] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-06 07:30:14,953 - [124693] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder,BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 07:30:15,349 - [124693] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-06 07:30:15,423 - [124693] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 133 AND EnitityNumberType in ('WorkOrder','Invoice'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 07:30:15,761 - [124693] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-06 07:30:15,838 - [124693] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder, BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 07:30:16,180 - [124693] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-06 07:30:16,254 - [124693] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 12 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 133 AND EnitityNumberType = 'WorkOrder'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 07:30:16,593 - [124693] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-06 07:30:16,665 - [124693] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 12 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 133 AND EnitityNumberType = 'Invoice'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 07:30:17,004 - [124693] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-06 07:30:17,082 - [124693] - 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 (150612, 150611)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 07:30:17,430 - [124693] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-06 07:30:17,509 - [124693] - src.utils.log - INFO - πŸ” Fetching data: SELECT x.CompanyId FROM CRM.CompanyMaster x WHERE CompanyKey = 'abcdallas';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 07:30:17,850 - [124693] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-06 07:30:17,947 - [124693] - src.utils.log - INFO - πŸ” Fetching data: SELECT CollectionStatus,IsHold,AccountNo FROM CRM.Account a WHERE a.AccountNo = '14994' and a.CompanyId = 121;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 07:30:18,291 - [124693] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-06 07:30:18,359 - [124693] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderNo FROM ServiceCore.WorkOrder WHERE WorkOrderNo IN ('1427218', '1427219', '1427220', '1427221', '1427222', '1427223', '1427224', '1427225', '1427226', '1427227', '1427228', '1427229') AND CompanyId = 133 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 07:30:18,728 - [124693] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-06 07:30:18,802 - [124693] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrder (skip triggers): 12 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 07:30:19,416 - [124693] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 12) into ServiceCore.WorkOrder (triggers skipped) - __SPLIT__ 2026-07-06 07:30:21,141 - [124693] - src.utils.log - INFO - βœ… All 12 rows inserted successfully into ServiceCore.WorkOrder in 1 batches (triggers skipped) - __SPLIT__ 2026-07-06 07:30:21,386 - [124693] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-07-06 07:30:21,450 - [124693] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.ServiceSetup SET IsInitialWoGenerated = 1 WHERE CompanyId = 133 AND ServiceSetupId in (150612, 150611);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 07:30:21,796 - [124693] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-06 07:30:21,859 - [124693] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkorderId, WorkOrderNo FROM ServiceCore.WorkOrder wo WHERE wo.WorkOrderNo IN ('1427218', '1427219', '1427220', '1427221', '1427222', '1427223', '1427224', '1427225', '1427226', '1427227', '1427228', '1427229') AND wo.AccountNumber = '14994' AND wo.CompanyId = 133 ... (Thread: ThreadPoolExecutor-4_0) - __SPLIT__ 2026-07-06 07:30:22,197 - [124693] - src.utils.log - INFO - βœ… Fetched 12 rows - __SPLIT__ 2026-07-06 07:30:22,264 - [124693] - src.utils.log - INFO - Sequential fetching temp table records - __SPLIT__ 2026-07-06 07:30:22,333 - [124693] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationServices woag WHERE woag.WorkOrderAutoGenerationId in (3681119, 3681120, 3681121, 3681122, 3681123, 3681124, 3681125, 3681126, 3681127, 3681128, 3681129, 3681130)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 07:30:23,195 - [124693] - src.utils.log - INFO - βœ… Fetched 12 rows - __SPLIT__ 2026-07-06 07:30:23,267 - [124693] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SubWorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (3681119, 3681120, 3681121, 3681122, 3681123, 3681124, 3681125, 3681126, 3681127, 3681128, 3681129, 3681130)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 07:30:23,609 - [124693] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-06 07:30:23,673 - [124693] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationCrews woag WHERE woag.WorkOrderAutoGenerationId in (3681119, 3681120, 3681121, 3681122, 3681123, 3681124, 3681125, 3681126, 3681127, 3681128, 3681129, 3681130)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 07:30:24,174 - [124693] - src.utils.log - INFO - βœ… Fetched 12 rows - __SPLIT__ 2026-07-06 07:30:24,255 - [124693] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationSalesPersonCommission woag WHERE woag.WorkOrderAutoGenerationId in (3681119, 3681120, 3681121, 3681122, 3681123, 3681124, 3681125, 3681126, 3681127, 3681128, 3681129, 3681130)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 07:30:24,590 - [124693] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-06 07:30:24,658 - [124693] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupAutoGenerationSourceMapping woag WHERE woag.WorkOrderAutoGenerationId in (3681119, 3681120, 3681121, 3681122, 3681123, 3681124, 3681125, 3681126, 3681127, 3681128, 3681129, 3681130)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 07:30:25,017 - [124693] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-06 07:30:25,089 - [124693] - 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 (3681119, 3681120, 3681121, 3681122, 3681123, 3681124, 3681125, 3681126, 3681127, 3681128, 3681129, 3681130)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 07:30:25,718 - [124693] - src.utils.log - INFO - βœ… Fetched 12 rows - __SPLIT__ 2026-07-06 07:30:25,787 - [124693] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from CRM.LeadNote woag WHERE woag.RefId in (3681119, 3681120, 3681121, 3681122, 3681123, 3681124, 3681125, 3681126, 3681127, 3681128, 3681129, 3681130) and woag.RefType = 'TempWorkorder';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 07:30:26,125 - [124693] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-06 07:30:26,234 - [124693] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment woagca WHERE woagca.WorkOrderAutoGenerationId in (3681119, 3681120, 3681121, 3681122, 3681123, 3681124, 3681125, 3681126, 3681127, 3681128, 3681129, 3681130);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 07:30:26,573 - [124693] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-06 07:30:26,639 - [124693] - src.utils.log - INFO - Updating temp tables - __SPLIT__ 2026-07-06 07:30:26,720 - [124693] - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyKey FROM Common.CompanyMaster cm WHERE CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 07:30:27,056 - [124693] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-06 07:30:27,133 - [124693] - src.utils.log - INFO - πŸ” Fetching data: Select DiscountSetupId, [SysName] as DiscountSysName from Common.DiscountSetupMaster WHERE DiscountSetupId IN (1179, 1178) AND CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 07:30:27,470 - [124693] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-06 07:30:27,538 - [124693] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 133 AND EnitityNumberType in ('SubWorkOrder'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 07:30:27,872 - [124693] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-06 07:30:27,941 - [124693] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-06 07:30:28,005 - [124693] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishHistory: 12 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 07:30:28,388 - [124693] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 12) into ServiceCore.WorkOrderAutoGenerationPublishHistory - __SPLIT__ 2026-07-06 07:30:29,580 - [124693] - src.utils.log - INFO - βœ… All 12 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishHistory in 1 batches - __SPLIT__ 2026-07-06 07:30:29,641 - [124693] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationPublishHistoryId, WorkOrderNo, ServiceSetupId FROM ServiceCore.WorkOrderAutoGenerationPublishHistory WHERE ServiceSetupId IN (150612, 150611) AND WorkOrderNo IN ('463598', '628779', '9153392', '3785258', '7965811', '3932295', '7925682', '7627909', '3770929', '9881366', '1508386', '2565749') AND GenerateWorkOrderHistoryId = 124693;... (Thread: ThreadPoolExecutor-5_0) - __SPLIT__ 2026-07-06 07:30:30,130 - [124693] - src.utils.log - INFO - βœ… Fetched 12 rows - __SPLIT__ 2026-07-06 07:30:30,194 - [124693] - src.utils.log - INFO - 🏁 Final merged rows: 12 - __SPLIT__ 2026-07-06 07:30:30,268 - [124693] - src.utils.log - INFO - Sequential Insertion in work order tables begin - __SPLIT__ 2026-07-06 07:30:30,337 - [124693] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-06 07:30:30,402 - [124693] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderServices: 12 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 07:30:30,762 - [124693] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 12) into ServiceCore.WorkOrderServices - __SPLIT__ 2026-07-06 07:30:31,943 - [124693] - src.utils.log - INFO - βœ… All 12 rows inserted successfully into ServiceCore.WorkOrderServices in 1 batches - __SPLIT__ 2026-07-06 07:30:32,012 - [124693] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-06 07:30:32,087 - [124693] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.WorkOrderAppliedDiscount: 12 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 07:30:32,445 - [124693] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 12) into ServiceAuto.WorkOrderAppliedDiscount - __SPLIT__ 2026-07-06 07:30:33,817 - [124693] - src.utils.log - INFO - βœ… All 12 rows inserted successfully into ServiceAuto.WorkOrderAppliedDiscount in 1 batches - __SPLIT__ 2026-07-06 07:30:33,887 - [124693] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderSalesPersonCommission: - __SPLIT__ 2026-07-06 07:30:33,958 - [124693] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderCommissionAdjustment: - __SPLIT__ 2026-07-06 07:30:34,018 - [124693] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-06 07:30:34,086 - [124693] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderCrew: 12 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 07:30:34,453 - [124693] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 12) into ServiceCore.WorkOrderCrew - __SPLIT__ 2026-07-06 07:30:35,503 - [124693] - src.utils.log - INFO - βœ… All 12 rows inserted successfully into ServiceCore.WorkOrderCrew in 1 batches - __SPLIT__ 2026-07-06 07:30:35,576 - [124693] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkorderSourceMapping: - __SPLIT__ 2026-07-06 07:30:35,643 - [124693] - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-07-06 07:30:35,711 - [124693] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-06 07:30:35,776 - [124693] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishServices: 12 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 07:30:36,137 - [124693] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 12) into ServiceCore.WorkOrderAutoGenerationPublishServices - __SPLIT__ 2026-07-06 07:30:37,316 - [124693] - src.utils.log - INFO - βœ… All 12 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishServices in 1 batches - __SPLIT__ 2026-07-06 07:30:37,388 - [124693] - 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 (150612, 150611)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 07:30:37,722 - [124693] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-06 07:30:37,803 - [124693] - src.utils.log - INFO - Size of Transaction: 12 - __SPLIT__ 2026-07-06 07:30:37,922 - [124693] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 12 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 07:30:38,401 - [124693] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 12) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-07-06 07:30:39,549 - [124693] - src.utils.log - INFO - βœ… All 12 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-07-06 07:30:39,747 - [124693] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-07-06 07:30:39,822 - [124693] - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionId, ModifiedBy, TransactionDate as InvoiceDate from Billing.[Transaction] t WHERE t.ModifiedBy in (12345678910, 12345678911, 12345678912, 12345678913, 12345678914, 12345678915, 12345678916, 12345678917, 12345678918, 12345678919, 12345678920, 12345678921) and t.CompanyId = 133 AND t.TransactionType ='Invoice' AND t.CreatedDate = '2026-07-06 03:30:37.798';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 07:30:40,265 - [124693] - src.utils.log - INFO - βœ… Fetched 12 rows - __SPLIT__ 2026-07-06 07:30:40,336 - [124693] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId in (150611, 150612);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 07:30:40,673 - [124693] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-06 07:30:40,741 - [124693] - src.utils.log - INFO - πŸ“ Executing: UPDATE Billing.[Transaction] SET ModifiedBy = NULL WHERE ModifiedBy IN (12345678910,12345678911,12345678912,12345678913,12345678914,12345678915,12345678916,12345678917,12345678918,12345678919,12345678920,12345678921) AND CreatedDate = '2026-07-06 03:30:37.798'; ... (Thread: ThreadPoolExecutor-6_0) - __SPLIT__ 2026-07-06 07:30:41,182 - [124693] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-06 07:30:41,252 - [124693] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-06 07:30:41,317 - [124693] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 12 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 07:30:41,656 - [124693] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 12) into Billing.Invoice - __SPLIT__ 2026-07-06 07:30:42,838 - [124693] - src.utils.log - INFO - βœ… All 12 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-07-06 07:30:42,906 - [124693] - src.utils.log - INFO - πŸ” Fetching data: SELECT InvoiceId, WorkOrderNo FROM Billing.Invoice i WHERE i.WorkOrderNo in ('1427219', '1427229', '1427227', '1427224', '1427223', '1427220', '1427218', '1427228', '1427226', '1427225', '1427222', '1427221')... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 07:30:44,395 - [124693] - src.utils.log - INFO - βœ… Fetched 12 rows - __SPLIT__ 2026-07-06 07:30:44,464 - [124693] - 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 (150612, 150611) and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 07:30:44,802 - [124693] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-06 07:30:44,859 - [124693] - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceSetupId, sss.NonStdSoldServiceId as SoldServiceNonStandardId, sss.Qty as Quantity, sss.Price as Rate, sss.IsTaxable, sm.Name as NonStandardServiceName, sm.Description , sm.ServiceMasterId as ServiceId FROM ServiceCore.ServiceSetupInitialServices sss join ServiceCore.ServiceMaster sm on sm.ServiceMasterId = sss.ServiceId where ServiceSetupId in (150612, 150611) and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 07:30:45,191 - [124693] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-06 07:30:45,310 - [124693] - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceSetupId, sss.NonStdSoldServiceId as SoldServiceNonStandardId, sss.Qty as Quantity, sss.Price as Rate, sss.IsTaxable, sm.servicename as NonStandardServiceName, sm.Description , sss.ServiceId FROM ServiceCore.ServiceSetupServices sss join ServiceCore.SoldServiceNonStandard sm on sm.SoldServiceNonStandardId = sss.NonStdSoldServiceId where ServiceSetupId in (150612, 150611) and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 07:30:45,650 - [124693] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-06 07:30:45,722 - [124693] - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceSetupId, sss.NonStdSoldServiceId as SoldServiceNonStandardId, sss.Qty as Quantity, sss.Price as Rate, sss.IsTaxable, sm.servicename as NonStandardServiceName, sm.Description , sss.ServiceId FROM ServiceCore.ServiceSetupInitialServices sss join ServiceCore.SoldServiceNonStandard sm on sm.SoldServiceNonStandardId = sss.NonStdSoldServiceId where ServiceSetupId in (150612, 150611) and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 07:30:46,066 - [124693] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-06 07:30:46,152 - [124693] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId in (150612, 150611);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 07:30:46,491 - [124693] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-06 07:30:46,566 - [124693] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId, AppliedDiscountAmt as AppliedDiscountAmount,IsActive ,ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId in (150612, 150611);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 07:30:46,905 - [124693] - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-07-06 07:30:46,993 - [124693] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId,IsActive,DiscountAmount, IsDiscountPercent,DiscountPercent,DiscountDescription, ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId in (150612, 150611);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 07:30:47,347 - [124693] - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-07-06 07:30:47,436 - [124693] - src.utils.log - INFO - Sequential Insertion in invoice tables begin - __SPLIT__ 2026-07-06 07:30:47,503 - [124693] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-06 07:30:47,579 - [124693] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.AccountDiscountSetup: 12 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 07:30:47,944 - [124693] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 12) into Billing.AccountDiscountSetup - __SPLIT__ 2026-07-06 07:30:49,057 - [124693] - src.utils.log - INFO - βœ… All 12 rows inserted successfully into Billing.AccountDiscountSetup in 1 batches - __SPLIT__ 2026-07-06 07:30:49,127 - [124693] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-06 07:30:49,201 - [124693] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceCharges: 12 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 07:30:49,576 - [124693] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 12) into Billing.InvoiceCharges - __SPLIT__ 2026-07-06 07:30:50,837 - [124693] - src.utils.log - INFO - βœ… All 12 rows inserted successfully into Billing.InvoiceCharges in 1 batches - __SPLIT__ 2026-07-06 07:30:50,910 - [124693] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-06 07:30:51,030 - [124693] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.DiscountApplied: 12 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 07:30:51,399 - [124693] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 12) into Billing.DiscountApplied - __SPLIT__ 2026-07-06 07:30:52,503 - [124693] - src.utils.log - INFO - βœ… All 12 rows inserted successfully into Billing.DiscountApplied in 1 batches - __SPLIT__ 2026-07-06 07:30:52,577 - [124693] - src.utils.log - INFO - Invoice Publish Done - __SPLIT__ 2026-07-06 07:30:52,649 - [124693] - src.utils.log - INFO - Updating Next GenerationDate - __SPLIT__ 2026-07-06 07:30:52,720 - [124693] - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, MAX(NextWorkOrderGenerationDate) AS MaxNextWorkOrderGeneration FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 124693 GROUP BY ServiceSetupId; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 07:30:53,098 - [124693] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-06 07:30:53,176 - [124693] - src.utils.log - INFO - πŸ”„ Updating next gen date sequentially: inside update_next_workorder_generation - __SPLIT__ 2026-07-06 07:30:53,401 - [124693] - src.utils.log - INFO - πŸ›  Creating temp table #tbl_6a3c4ec4c5 - __SPLIT__ 2026-07-06 07:30:53,762 - [124693] - src.utils.log - INFO - πŸ“Œ Bulk inserting 2 rows into #tbl_6a3c4ec4c5 - __SPLIT__ 2026-07-06 07:30:54,269 - [124693] - src.utils.log - INFO - πŸ” Running MERGE update to apply changes - __SPLIT__ 2026-07-06 07:30:54,498 - [124693] - src.utils.log - INFO - βœ” SQL reported affected rows: 2 - __SPLIT__ 2026-07-06 07:30:54,716 - [124693] - src.utils.log - INFO - πŸ” Verified successfully updated 2 rows via #tbl_6a3c4ec4c5 - __SPLIT__ 2026-07-06 07:30:54,789 - [124693] - src.utils.log - INFO - πŸŽ‰ Successfully updated NextGenerationDate using temp table #tbl_6a3c4ec4c5 - __SPLIT__ 2026-07-06 07:30:54,869 - [124693] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 124693 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 07:30:55,237 - [124693] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-06 07:30:55,312 - [124693] - src.utils.log - INFO - Sequential deletion from temp tables begin - __SPLIT__ 2026-07-06 07:30:55,384 - [124693] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId in (3681119, 3681120, 3681121, 3681122, 3681123, 3681124, 3681125, 3681126, 3681127, 3681128, 3681129, 3681130) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 07:30:55,905 - [124693] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-06 07:30:55,980 - [124693] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId in (3681119, 3681120, 3681121, 3681122, 3681123, 3681124, 3681125, 3681126, 3681127, 3681128, 3681129, 3681130) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 07:30:56,490 - [124693] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-06 07:30:56,554 - [124693] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId in (3681119, 3681120, 3681121, 3681122, 3681123, 3681124, 3681125, 3681126, 3681127, 3681128, 3681129, 3681130) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 07:30:56,918 - [124693] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-06 07:30:56,989 - [124693] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId in (3681119, 3681120, 3681121, 3681122, 3681123, 3681124, 3681125, 3681126, 3681127, 3681128, 3681129, 3681130) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 07:30:57,436 - [124693] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-06 07:30:57,507 - [124693] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId in (3681119, 3681120, 3681121, 3681122, 3681123, 3681124, 3681125, 3681126, 3681127, 3681128, 3681129, 3681130) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 07:30:57,878 - [124693] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-06 07:30:57,947 - [124693] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (3681119, 3681120, 3681121, 3681122, 3681123, 3681124, 3681125, 3681126, 3681127, 3681128, 3681129, 3681130) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 07:30:58,307 - [124693] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-06 07:30:58,371 - [124693] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId in (3681119, 3681120, 3681121, 3681122, 3681123, 3681124, 3681125, 3681126, 3681127, 3681128, 3681129, 3681130) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 07:30:58,731 - [124693] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-06 07:30:58,793 - [124693] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (3681119, 3681120, 3681121, 3681122, 3681123, 3681124, 3681125, 3681126, 3681127, 3681128, 3681129, 3681130) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 07:30:59,626 - [124693] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-06 07:30:59,694 - [124693] - src.utils.log - INFO - Work order published ids: (3681119, 3681120, 3681121, 3681122, 3681123, 3681124, 3681125, 3681126, 3681127, 3681128, 3681129, 3681130) - __SPLIT__ 2026-07-06 07:30:59,766 - [124693] - src.utils.log - INFO - Time took to perform operation in publishing [124693]: 50.99 - __SPLIT__ 2026-07-06 07:30:59,833 - [124693] - src.utils.log - INFO - Publish Completed for GenerateWorkOrderHistoryId: [124693] - __SPLIT__ 2026-07-06 07:30:59,899 - [124693] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-07-06 03:30:59.694' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124693;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 07:31:00,257 - [124693] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-06 10:36:36,039 - 124696 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=124696 - __SPLIT__ 2026-07-06 10:36:36,170 - 124696 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 124696 - __SPLIT__ 2026-07-06 10:36:36,242 - 124696 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-06 10:36:36,323 - 124696 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 10:36:38,457 - 124696 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-06 10:36:38,526 - 124696 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-07-06 10:36:38,601 - 124696 - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-07-06 10:36:38,663 - 124696 - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-07-06 10:36:38,729 - 124696 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 124696;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 10:36:40,657 - 124696 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-06 10:36:40,718 - 124696 - 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 = 124696), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 124696), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 124696 AND ss.FrequencyScheduleId IS NOT NULL AND ss.IsActive = 1 AND ss.IsDeleted = 0 AND ss.Status <> 'Canceled' AND ((ss.OrderType = gw.OrderType) OR gw.OrderType IS NULL);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 10:36:41,096 - 124696 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-06 10:36:41,156 - 124696 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 124696;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 10:36:41,488 - 124696 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-06 10:36:41,556 - 124696 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-07-06 10:36:41,630 - 124696 - 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 = 13962... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 10:36:41,969 - 124696 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-06 10:36:42,043 - 124696 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-07-06 10:36:42,117 - 124696 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-07-06 10:36:42,182 - 124696 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150616;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 10:36:42,519 - 124696 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-06 10:36:42,645 - 124696 - src.utils.log - INFO - πŸ” Fetching data: select ServiceDate, ServiceSetupId, IsInitial from serviceCore.WorkOrder wo inner join ServiceCore.WorkOrderStatus wos on wo.WoStatusId = wos.WoStatusId where ServiceDate >= '2026-07-06 00:00:00' and ServiceDate <= '2026-09-30 00:00:00' and ServiceSetupId = 150616 and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 10:36:43,010 - 124696 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-06 10:36:43,634 - 124696 - src.utils.log - INFO - Generating work orders for setup: 150616 - __SPLIT__ 2026-07-06 10:36:43,718 - 124696 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 11427;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 10:36:44,050 - 124696 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-06 10:36:44,159 - 124696 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-07-06 10:36:44,228 - 124696 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=133 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 10:36:44,559 - 124696 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-06 10:36:44,627 - 124696 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-07-06 10:36:44,699 - 124696 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-07-06 10:36:44,766 - 124696 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150616 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 10:36:45,149 - 124696 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-06 10:36:45,215 - 124696 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150616 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 10:36:45,592 - 124696 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-06 10:36:45,656 - 124696 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150616 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 10:36:46,001 - 124696 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-06 10:36:46,066 - 124696 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150616 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 10:36:46,441 - 124696 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-06 10:36:46,508 - 124696 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150616 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 10:36:46,888 - 124696 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-06 10:36:47,007 - 124696 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150616 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 10:36:47,360 - 124696 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-06 10:36:47,430 - 124696 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150616 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 10:36:47,770 - 124696 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-06 10:36:47,839 - 124696 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150616 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 10:36:48,289 - 124696 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-06 10:36:48,360 - 124696 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-06 10:36:48,428 - 124696 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 10:36:48,800 - 124696 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-07-06 10:36:49,838 - 124696 - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-07-06 10:36:49,906 - 124696 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 2 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-07-01 11:58:39.742' and ServiceSetupId = 150616... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 10:36:50,279 - 124696 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-06 10:36:50,354 - 124696 - src.utils.log - INFO - Id's of work order inserted to DB: [3681140 3681141] - __SPLIT__ 2026-07-06 10:36:50,418 - 124696 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150616;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 10:36:50,748 - 124696 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-06 10:36:50,816 - 124696 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-07-06 10:36:50,890 - 124696 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId = 150616... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 10:36:51,241 - 124696 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-06 10:36:51,308 - 124696 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId = 150616... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 10:36:51,644 - 124696 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-06 10:36:51,761 - 124696 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId = 150616... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 10:36:52,107 - 124696 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-06 10:36:52,170 - 124696 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId = 150616... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 10:36:52,506 - 124696 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-06 10:36:52,575 - 124696 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId = 150616... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 10:36:52,910 - 124696 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-06 10:36:52,971 - 124696 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId = 150616;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 10:36:53,298 - 124696 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-06 10:36:53,363 - 124696 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId = 150616;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 10:36:53,699 - 124696 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-06 10:36:53,764 - 124696 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId = 150616;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 10:36:54,178 - 124696 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-06 10:36:54,245 - 124696 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId = 150616;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 10:36:54,579 - 124696 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-06 10:36:54,653 - 124696 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-07-06 10:36:54,723 - 124696 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-07-06 10:36:54,788 - 124696 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-07-06 10:36:54,856 - 124696 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.CommunicationPreferencesServiceReportNotification: - __SPLIT__ 2026-07-06 10:36:54,922 - 124696 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-07-06 10:36:54,989 - 124696 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SetupAutoGenerationSourceMapping: - __SPLIT__ 2026-07-06 10:36:55,101 - 124696 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-07-06 10:36:55,192 - 124696 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationAppliedDiscount: - __SPLIT__ 2026-07-06 10:36:55,254 - 124696 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-07-06 10:36:55,318 - 124696 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SubWorkOrderAutoGeneration: - __SPLIT__ 2026-07-06 10:36:55,385 - 124696 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-07-06 10:36:55,451 - 124696 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: - __SPLIT__ 2026-07-06 10:36:55,521 - 124696 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-07-06 10:36:55,587 - 124696 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: - __SPLIT__ 2026-07-06 10:36:55,653 - 124696 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-07-06 10:36:55,725 - 124696 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-06 10:36:55,796 - 124696 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3681140, 3681141) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 10:36:56,124 - 124696 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-06 10:36:56,193 - 124696 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationCrews: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 10:36:56,530 - 124696 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationCrews - __SPLIT__ 2026-07-06 10:36:57,544 - 124696 - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationCrews in 1 batches - __SPLIT__ 2026-07-06 10:36:57,603 - 124696 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-07-06 10:36:57,673 - 124696 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationServices: - __SPLIT__ 2026-07-06 10:36:57,743 - 124696 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-07-06 10:36:57,813 - 124696 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-06 10:36:57,881 - 124696 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3681140, 3681141) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 10:36:58,263 - 124696 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-06 10:36:58,338 - 124696 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 10:36:58,679 - 124696 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-07-06 10:36:59,695 - 124696 - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-07-06 10:36:59,796 - 124696 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-07-06 10:36:59,867 - 124696 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 124696;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 10:37:00,204 - 124696 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-06 10:37:00,282 - 124696 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-07-06 10:37:00,356 - 124696 - src.utils.log - INFO - Time took to perform operation: 24.04 - __SPLIT__ 2026-07-06 10:47:58,299 - 42501 - src.utils.log - INFO - ParallelProcessing=False GenerateInvoiceHistoryId=42501 - __SPLIT__ 2026-07-06 10:47:58,420 - 42501 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-06 10:47:58,479 - 42501 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 10:48:00,521 - 42501 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-06 10:48:00,587 - 42501 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-07-06 10:48:00,644 - 42501 - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-07-06 10:48:00,721 - 42501 - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-07-06 10:48:00,788 - 42501 - src.utils.log - INFO - Sequential Invoice generation algo started for GenerateInvoiceHistoryId: 42501 - __SPLIT__ 2026-07-06 10:48:00,847 - 42501 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET Status = 'InProgress' WHERE GenerateInvoiceHistoryId = 42501;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 10:48:02,784 - 42501 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-06 10:48:02,846 - 42501 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateInvoiceHistory WHERE GenerateInvoiceHistoryId = 42501;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 10:48:03,175 - 42501 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-06 10:48:03,238 - 42501 - 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 = '14993' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 10:48:03,573 - 42501 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-06 10:48:03,635 - 42501 - src.utils.log - INFO - No filter selected - __SPLIT__ 2026-07-06 10:48:03,702 - 42501 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-07-06 10:48:03,773 - 42501 - 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 = 13962... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 10:48:04,118 - 42501 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-06 10:48:04,181 - 42501 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-07-06 10:48:04,251 - 42501 - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionAutoGenerationId FROM Billing.TransactionAutoGeneration WHERE ServiceSetupId IN (150609, 150610) AND TransactionDate BETWEEN '2026-07-06 00:00:00' AND '2027-12-31 00:00:00' AND IsActive = 1 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 10:48:04,607 - 42501 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-06 10:48:04,732 - 42501 - 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-07-06 00:00:00' AND '2027-12-31 00:00:00' AND Inv.IsActive = 1 AND Inv.IsDelete = 0 AND T.IsActive = 1 AND T.IsDelete = 0 AND Inv.ServiceSetupId IN (150609, 150610) GROUP BY Inv.ServiceSetupId;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 10:48:05,163 - 42501 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-06 10:48:05,249 - 42501 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-06 10:48:05,320 - 42501 - src.utils.log - INFO - πŸ“₯ Inserting into Billing.TransactionAutoGeneration: 23 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 10:48:05,668 - 42501 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 23) into Billing.TransactionAutoGeneration - __SPLIT__ 2026-07-06 10:48:06,837 - 42501 - src.utils.log - INFO - βœ… All 23 rows inserted successfully into Billing.TransactionAutoGeneration in 1 batches - __SPLIT__ 2026-07-06 10:48:06,912 - 42501 - src.utils.log - INFO - - __SPLIT__ 2026-07-06 10:48:06,982 - 42501 - src.utils.log - INFO - Total invoice generated: 23 - __SPLIT__ 2026-07-06 10:48:07,055 - 42501 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 23 TransactionAutoGenerationId, ServiceSetupId, TransactionDate as InvoiceDate From Billing.TransactionAutoGeneration WHERE CreatedDate = '2026-07-01 06:28:39.773' and ServiceSetupId in (150609, 150610) and GenerateWorkOrderHistoryId = 42501;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 10:48:07,405 - 42501 - src.utils.log - INFO - βœ… Fetched 23 rows - __SPLIT__ 2026-07-06 10:48:07,489 - 42501 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-06 10:48:07,562 - 42501 - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceAutoGeneration: 23 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 10:48:07,908 - 42501 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 23) into Billing.InvoiceAutoGeneration - __SPLIT__ 2026-07-06 10:48:09,076 - 42501 - src.utils.log - INFO - βœ… All 23 rows inserted successfully into Billing.InvoiceAutoGeneration in 1 batches - __SPLIT__ 2026-07-06 10:48:09,147 - 42501 - 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 (703488, 703489, 703490, 703491, 703492, 703493, 703494, 703495, 703473, 703474, 703475, 703476, 703477, 703478, 703479, 703480, 703481, 703482, 703483, 703484, 703485, 703486, 703487);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 10:48:09,489 - 42501 - src.utils.log - INFO - βœ… Fetched 23 rows - __SPLIT__ 2026-07-06 10:48:09,573 - 42501 - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyRoundingLevel ,CompanyRoundingMethod FROM common.CompanyConfiguration cc WHERE CompanyId = 133... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 10:48:09,949 - 42501 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-06 10:48:10,026 - 42501 - 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 (150609, 150610) and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 10:48:10,375 - 42501 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-06 10:48:10,508 - 42501 - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyRoundingLevel ,CompanyRoundingMethod FROM common.CompanyConfiguration cc WHERE CompanyId = 133... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 10:48:10,843 - 42501 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-06 10:48:10,924 - 42501 - 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 (150609, 150610);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 10:48:11,264 - 42501 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-06 10:48:11,346 - 42501 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-06 10:48:11,419 - 42501 - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceAutoGenerationAppliedDiscount: 22 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 10:48:11,764 - 42501 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 22) into Billing.InvoiceAutoGenerationAppliedDiscount - __SPLIT__ 2026-07-06 10:48:12,931 - 42501 - src.utils.log - INFO - βœ… All 22 rows inserted successfully into Billing.InvoiceAutoGenerationAppliedDiscount in 1 batches - __SPLIT__ 2026-07-06 10:48:13,010 - 42501 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-06 10:48:13,078 - 42501 - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceChargesAutoGeneration: 23 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 10:48:13,417 - 42501 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 23) into Billing.InvoiceChargesAutoGeneration - __SPLIT__ 2026-07-06 10:48:14,576 - 42501 - src.utils.log - INFO - βœ… All 23 rows inserted successfully into Billing.InvoiceChargesAutoGeneration in 1 batches - __SPLIT__ 2026-07-06 10:48:14,651 - 42501 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET Status = 'Completed' WHERE GenerateInvoiceHistoryId = 42501;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 10:48:14,988 - 42501 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-06 10:48:15,057 - 42501 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET InvoiceStatusDateTime = '2026-07-06 06:48:15.057' WHERE GenerateInvoiceHistoryId = 42501;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 10:48:15,397 - 42501 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-06 10:48:15,459 - 42501 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-07-06 10:48:15,528 - 42501 - src.utils.log - INFO - Sequential Invoice Gen Complete Successfully ProjectId:42501 - Time took: 17.11 - __SPLIT__ 2026-07-06 11:03:54,752 - 13648 - src.utils.log - INFO - ParallelProcessing=False GenerateInvoiceHistoryId=13648 - __SPLIT__ 2026-07-06 11:03:54,867 - 13648 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-06 11:03:54,937 - 13648 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 11:03:56,970 - 13648 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-06 11:03:57,041 - 13648 - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-07-06 11:03:57,111 - 13648 - src.utils.log - INFO - Sequential Invoice generation algo started for GenerateInvoiceHistoryId: 13648 - __SPLIT__ 2026-07-06 11:03:57,188 - 13648 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET Status = 'InProgress' WHERE GenerateInvoiceHistoryId = 13648;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 11:03:57,537 - 13648 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-06 11:03:57,611 - 13648 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateInvoiceHistory WHERE GenerateInvoiceHistoryId = 13648;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 11:03:57,973 - 13648 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-06 11:03:58,046 - 13648 - 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 = '8717' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 11:03:58,412 - 13648 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-06 11:03:58,488 - 13648 - src.utils.log - INFO - No filter selected - __SPLIT__ 2026-07-06 11:03:58,559 - 13648 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-07-06 11:03:58,633 - 13648 - 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-07-06 11:03:58,990 - 13648 - src.utils.log - INFO - βœ… Fetched 12 rows - __SPLIT__ 2026-07-06 11:03:59,065 - 13648 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-07-06 11:03:59,154 - 13648 - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionAutoGenerationId FROM Billing.TransactionAutoGeneration WHERE ServiceSetupId IN (34286, 34287) AND TransactionDate BETWEEN '2026-07-06 00:00:00' AND '2026-12-31 00:00:00' AND IsActive = 1 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 11:03:59,501 - 13648 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-06 11:03:59,574 - 13648 - 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-07-06 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 IN (34286, 34287) GROUP BY Inv.ServiceSetupId;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 11:03:59,934 - 13648 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-06 11:04:00,082 - 13648 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-06 11:04:00,158 - 13648 - src.utils.log - INFO - πŸ“₯ Inserting into Billing.TransactionAutoGeneration: 12 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 11:04:00,525 - 13648 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 12) into Billing.TransactionAutoGeneration - __SPLIT__ 2026-07-06 11:04:01,604 - 13648 - src.utils.log - INFO - βœ… All 12 rows inserted successfully into Billing.TransactionAutoGeneration in 1 batches - __SPLIT__ 2026-07-06 11:04:01,668 - 13648 - src.utils.log - INFO - - __SPLIT__ 2026-07-06 11:04:01,736 - 13648 - src.utils.log - INFO - Total invoice generated: 12 - __SPLIT__ 2026-07-06 11:04:01,798 - 13648 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 12 TransactionAutoGenerationId, ServiceSetupId, TransactionDate as InvoiceDate From Billing.TransactionAutoGeneration WHERE CreatedDate = '2026-07-01 06:28:39.709' and ServiceSetupId in (34286, 34287) and GenerateWorkOrderHistoryId = 13648;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 11:04:02,145 - 13648 - src.utils.log - INFO - βœ… Fetched 12 rows - __SPLIT__ 2026-07-06 11:04:02,220 - 13648 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-06 11:04:02,290 - 13648 - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceAutoGeneration: 12 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 11:04:02,661 - 13648 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 12) into Billing.InvoiceAutoGeneration - __SPLIT__ 2026-07-06 11:04:03,720 - 13648 - src.utils.log - INFO - βœ… All 12 rows inserted successfully into Billing.InvoiceAutoGeneration in 1 batches - __SPLIT__ 2026-07-06 11:04:03,793 - 13648 - 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 (799744, 799745, 799746, 799747, 799748, 799749, 799738, 799739, 799740, 799741, 799742, 799743);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 11:04:04,146 - 13648 - src.utils.log - INFO - βœ… Fetched 12 rows - __SPLIT__ 2026-07-06 11:04:04,216 - 13648 - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyRoundingLevel ,CompanyRoundingMethod FROM common.CompanyConfiguration cc WHERE CompanyId = 135... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 11:04:04,566 - 13648 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-06 11:04:04,640 - 13648 - 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 (34286, 34287) and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 11:04:04,997 - 13648 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-06 11:04:05,072 - 13648 - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyRoundingLevel ,CompanyRoundingMethod FROM common.CompanyConfiguration cc WHERE CompanyId = 135... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 11:04:05,418 - 13648 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-06 11:04:05,538 - 13648 - 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 (34286, 34287);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 11:04:05,885 - 13648 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-06 11:04:05,962 - 13648 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-06 11:04:06,021 - 13648 - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceAutoGenerationAppliedDiscount: 12 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 11:04:06,381 - 13648 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 12) into Billing.InvoiceAutoGenerationAppliedDiscount - __SPLIT__ 2026-07-06 11:04:07,432 - 13648 - src.utils.log - INFO - βœ… All 12 rows inserted successfully into Billing.InvoiceAutoGenerationAppliedDiscount in 1 batches - __SPLIT__ 2026-07-06 11:04:07,498 - 13648 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-06 11:04:07,567 - 13648 - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceChargesAutoGeneration: 12 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 11:04:07,932 - 13648 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 12) into Billing.InvoiceChargesAutoGeneration - __SPLIT__ 2026-07-06 11:04:08,989 - 13648 - src.utils.log - INFO - βœ… All 12 rows inserted successfully into Billing.InvoiceChargesAutoGeneration in 1 batches - __SPLIT__ 2026-07-06 11:04:09,055 - 13648 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET Status = 'Completed' WHERE GenerateInvoiceHistoryId = 13648;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 11:04:09,404 - 13648 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-06 11:04:09,465 - 13648 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET InvoiceStatusDateTime = '2026-07-06 07:04:09.465' WHERE GenerateInvoiceHistoryId = 13648;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 11:04:09,807 - 13648 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-06 11:04:09,868 - 13648 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-07-06 11:04:09,933 - 13648 - src.utils.log - INFO - Sequential Invoice Gen Complete Successfully ProjectId:13648 - Time took: 15.07 - __SPLIT__ 2026-07-06 11:04:20,505 - [13648] - src.utils.log - INFO - ParallelProcessing=False temp_invoice=[] user_id=122885 company_id=135 project_id=[13648] publish_all=True - __SPLIT__ 2026-07-06 11:04:20,641 - [13648] - src.utils.log - INFO - Invoice Published Successfully - __SPLIT__ 2026-07-06 11:04:20,711 - [13648] - src.utils.log - INFO - Sequential invoice publish in progress - __SPLIT__ 2026-07-06 11:04:20,785 - [13648] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-06 11:04:20,861 - [13648] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 11:04:22,909 - [13648] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-06 11:04:22,986 - [13648] - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-07-06 11:04:23,058 - [13648] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET PublishStatus = 'InProgress', InvoicePublishStartDateTime = '2026-07-06 07:04:23.058' WHERE CompanyId = 135 AND GenerateInvoiceHistoryId = 13648;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 11:04:23,414 - [13648] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-06 11:04:23,486 - [13648] - src.utils.log - INFO - πŸ” Fetching data: SELECT i.* FROM Billing.InvoiceAutoGeneration i join Billing.TransactionAutoGeneration t on i.TransactionAutoGenerationId = t.TransactionAutoGenerationId WHERE t.GenerateWorkOrderHistoryId = 13648; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 11:04:23,846 - [13648] - src.utils.log - INFO - βœ… Fetched 12 rows - __SPLIT__ 2026-07-06 11:04:23,915 - [13648] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Billing.TransactionAutoGeneration tag WHERE tag.TransactionAutoGenerationId in (799738, 799739, 799740, 799741, 799742, 799743, 799744, 799745, 799746, 799747, 799748, 799749);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 11:04:24,269 - [13648] - src.utils.log - INFO - βœ… Fetched 12 rows - __SPLIT__ 2026-07-06 11:04:24,340 - [13648] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 12 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 11:04:24,858 - [13648] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 12) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-07-06 11:04:25,937 - [13648] - src.utils.log - INFO - βœ… All 12 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-07-06 11:04:26,151 - [13648] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-07-06 11:04:26,222 - [13648] - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionId, ModifiedBy from Billing.[Transaction] t WHERE t.ModifiedBy in (12345678910, 12345678911, 12345678912, 12345678913, 12345678914, 12345678915, 12345678916, 12345678917, 12345678918, 12345678919, 12345678920, 12345678921);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 11:04:26,767 - [13648] - src.utils.log - INFO - βœ… Fetched 12 rows - __SPLIT__ 2026-07-06 11:04:26,840 - [13648] - src.utils.log - INFO - πŸ“ Executing: UPDATE Billing.[Transaction] SET ModifiedBy = NULL WHERE ModifiedBy IN (12345678910,12345678911,12345678912,12345678913,12345678914,12345678915,12345678916,12345678917,12345678918,12345678919,12345678920,12345678921); ... (Thread: ThreadPoolExecutor-7_0) - __SPLIT__ 2026-07-06 11:04:27,463 - [13648] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-06 11:04:27,582 - [13648] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 135 AND EnitityNumberType in ('Invoice'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 11:04:27,934 - [13648] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-06 11:04:28,006 - [13648] - src.utils.log - INFO - 12 Invoice Generated : [169039, 169040, 169041, 169042, 169043, 169044, 169045, 169046, 169047, 169048, 169049, 169050] - __SPLIT__ 2026-07-06 11:04:28,075 - [13648] - src.utils.log - INFO - πŸ“ Executing: UPDATE Common.GenerateNumberConfig SET NextNumber = '169051' WHERE CompanyId = 135 AND EnitityNumberType in ('Invoice');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 11:04:28,431 - [13648] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-06 11:04:28,493 - [13648] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-06 11:04:28,556 - [13648] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 12 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 11:04:28,932 - [13648] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 12) into Billing.Invoice - __SPLIT__ 2026-07-06 11:04:30,157 - [13648] - src.utils.log - INFO - βœ… All 12 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-07-06 11:04:30,221 - [13648] - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionId, InvoiceId FROM Billing.Invoice WHERE TransactionId in (420084, 420085, 420086, 420087, 420088, 420089, 420090, 420091, 420092, 420093, 420094, 420095);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 11:04:30,577 - [13648] - src.utils.log - INFO - βœ… Fetched 12 rows - __SPLIT__ 2026-07-06 11:04:30,637 - [13648] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Billing.InvoiceChargesAutoGeneration icag WHERE InvoiceAutoGenerationId in (854639, 854640, 854641, 854642, 854643, 854644, 854645, 854646, 854647, 854648, 854649, 854650);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 11:04:30,977 - [13648] - src.utils.log - INFO - βœ… Fetched 12 rows - __SPLIT__ 2026-07-06 11:04:31,036 - [13648] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Billing.InvoiceAutoGenerationAppliedDiscount iagad WHERE InvoiceAutoGenerationId in (854639, 854640, 854641, 854642, 854643, 854644, 854645, 854646, 854647, 854648, 854649, 854650);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 11:04:31,391 - [13648] - src.utils.log - INFO - βœ… Fetched 12 rows - __SPLIT__ 2026-07-06 11:04:31,463 - [13648] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-06 11:04:31,525 - [13648] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceCharges: 12 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 11:04:31,900 - [13648] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 12) into Billing.InvoiceCharges - __SPLIT__ 2026-07-06 11:04:32,969 - [13648] - src.utils.log - INFO - βœ… All 12 rows inserted successfully into Billing.InvoiceCharges in 1 batches - __SPLIT__ 2026-07-06 11:04:33,036 - [13648] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-06 11:04:33,152 - [13648] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.AccountDiscountSetup: 12 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 11:04:33,522 - [13648] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 12) into Billing.AccountDiscountSetup - __SPLIT__ 2026-07-06 11:04:34,594 - [13648] - src.utils.log - INFO - βœ… All 12 rows inserted successfully into Billing.AccountDiscountSetup in 1 batches - __SPLIT__ 2026-07-06 11:04:34,659 - [13648] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-06 11:04:34,736 - [13648] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.DiscountApplied: 12 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 11:04:35,133 - [13648] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 12) into Billing.DiscountApplied - __SPLIT__ 2026-07-06 11:04:36,204 - [13648] - src.utils.log - INFO - βœ… All 12 rows inserted successfully into Billing.DiscountApplied in 1 batches - __SPLIT__ 2026-07-06 11:04:36,282 - [13648] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: delete FROM Billing.InvoiceAutoGenerationAppliedDiscount WHERE InvoiceAutoGenerationId in (854639, 854640, 854641, 854642, 854643, 854644, 854645, 854646, 854647, 854648, 854649, 854650) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 11:04:36,636 - [13648] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-06 11:04:36,707 - [13648] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: delete FROM Billing.InvoiceChargesAutoGeneration WHERE InvoiceAutoGenerationId in (854639, 854640, 854641, 854642, 854643, 854644, 854645, 854646, 854647, 854648, 854649, 854650) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 11:04:37,081 - [13648] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-06 11:04:37,149 - [13648] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: delete FROM Billing.InvoiceAutoGeneration WHERE InvoiceAutoGenerationId in (854639, 854640, 854641, 854642, 854643, 854644, 854645, 854646, 854647, 854648, 854649, 854650) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 11:04:37,555 - [13648] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-06 11:04:37,628 - [13648] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: delete FROM Billing.TransactionAutoGeneration WHERE TransactionAutoGenerationId in (799738, 799739, 799740, 799741, 799742, 799743, 799744, 799745, 799746, 799747, 799748, 799749) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 11:04:38,004 - [13648] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-06 11:04:38,074 - [13648] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-07-06 07:04:23.058' WHERE CompanyId = 135 AND GenerateInvoiceHistoryId = 13648;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 11:04:38,443 - [13648] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-06 11:04:38,509 - [13648] - src.utils.log - INFO - Sequential invoice publish completed successfully - Time took: 17.72 - __SPLIT__ 2026-07-06 11:22:22,411 - [124697] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[3681142, 3681143, 3681144, 3681145, 3681146] user_id=43135 company_id=133 project_id=[124697] publish_all=False - __SPLIT__ 2026-07-06 11:22:22,520 - [124697] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[3681142, 3681143, 3681144, 3681145, 3681146] user_id=43135 company_id=133 project_id=[124697] publish_all=False - __SPLIT__ 2026-07-06 11:22:22,587 - [124697] - src.utils.log - INFO - Sequential Work order publish in progress for GenerateWorkOrderHistoryId: [124697] - __SPLIT__ 2026-07-06 11:22:22,651 - [124697] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-06 11:22:22,712 - [124697] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 11:22:24,764 - [124697] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-06 11:22:24,825 - [124697] - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-07-06 11:22:24,892 - [124697] - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-07-06 11:22:24,958 - [124697] - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-07-06 11:22:25,021 - [124697] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'InProgress' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124697;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 11:22:26,971 - [124697] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-06 11:22:27,033 - [124697] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (3681142, 3681143, 3681144, 3681145, 3681146)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 11:22:27,367 - [124697] - src.utils.log - INFO - βœ… Fetched 5 rows - __SPLIT__ 2026-07-06 11:22:27,429 - [124697] - src.utils.log - INFO - Inside get_work_order_table - __SPLIT__ 2026-07-06 11:22:27,492 - [124697] - src.utils.log - INFO - πŸ” Fetching data: SELECT DISTINCT sss.ServiceSetupId, dm.DepartmentMasterId, bm.BranchMasterId FROM Common.DepartmentMaster dm JOIN Common.DivisionMaster d2 ON dm.DivisionMasterId = d2.DivisionMasterId JOIN Common.BranchMaster bm ON d2.BranchMasterId = bm.BranchMasterId JOIN ServiceCore.ServiceCategoryMaster c ON c.DepartmentId = dm.DepartmentMasterId JOIN ServiceCore.ServiceMaster sm ON c.CategoryId = sm.CategoryId JOIN ServiceCore.ServiceSetupServices sss ON sss.ServiceId = sm.ServiceMasterId WHERE dm.CompanyId = 133 AND d2.CompanyId = bm.CompanyId AND sss.ServiceSetupId in (150620, 150636) AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 11:22:27,836 - [124697] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-06 11:22:27,920 - [124697] - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceSetupId, dm.DepartmentMasterId, bm.BranchMasterId FROM Common.DepartmentMaster dm JOIN Common.DivisionMaster d2 ON dm.DivisionMasterId = d2.DivisionMasterId JOIN Common.BranchMaster bm ON d2.BranchMasterId = bm.BranchMasterId JOIN ServiceCore.SoldServiceNonStandard x on dm.DepartmentMasterId = x.DepartmentId JOIN ServiceCore.ServiceSetupServices sss ON sss.NonStdSoldServiceId = x.SoldServiceNonStandardId WHERE dm.CompanyId = 133 AND d2.CompanyId = bm.CompanyId AND sss.ServiceSetupId in (150620, 150636) AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 11:22:28,268 - [124697] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-06 11:22:28,330 - [124697] - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceSetupId, dm.DepartmentMasterId, bm.BranchMasterId FROM Common.DepartmentMaster dm Inner JOIN Common.DivisionMaster d2 ON dm.DivisionMasterId = d2.DivisionMasterId Inner JOIN Common.BranchMaster bm ON d2.BranchMasterId = bm.BranchMasterId Inner JOIN [ServiceCore].[ServiceCategoryMaster] scm ON dm.DepartmentMasterId = scm.DepartmentId Inner JOIN ServiceCore.ServiceMaster sm ON scm.CategoryId = sm.CategoryId Inner JOIN ServiceCore.SoldServiceStandard x on x.ServiceId = sm.ServiceMasterId Inner JOIN ServiceCore.ServiceSetupServices sss ON sss.StdSoldServiceId = x.SoldServiceStandardId WHERE dm.CompanyId = 133 AND d2.CompanyId = bm.CompanyId AND sss.ServiceSetupId in (150620, 150636) AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 11:22:28,701 - [124697] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-06 11:22:28,772 - [124697] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder,BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 11:22:29,164 - [124697] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-06 11:22:29,232 - [124697] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 133 AND EnitityNumberType in ('WorkOrder','Invoice'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 11:22:29,583 - [124697] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-06 11:22:29,660 - [124697] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder, BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 11:22:29,999 - [124697] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-06 11:22:30,080 - [124697] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 5 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 133 AND EnitityNumberType = 'WorkOrder'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 11:22:30,433 - [124697] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-06 11:22:30,505 - [124697] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 5 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 133 AND EnitityNumberType = 'Invoice'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 11:22:30,854 - [124697] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-06 11:22:30,932 - [124697] - 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 (150620, 150636)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 11:22:31,279 - [124697] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-06 11:22:31,356 - [124697] - src.utils.log - INFO - πŸ” Fetching data: SELECT x.CompanyId FROM CRM.CompanyMaster x WHERE CompanyKey = 'abcdallas';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 11:22:31,692 - [124697] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-06 11:22:31,765 - [124697] - src.utils.log - INFO - πŸ” Fetching data: SELECT CollectionStatus,IsHold,AccountNo FROM CRM.Account a WHERE a.AccountNo = '14996' and a.CompanyId = 121;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 11:22:32,108 - [124697] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-06 11:22:32,183 - [124697] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderNo FROM ServiceCore.WorkOrder WHERE WorkOrderNo IN ('1427242', '1427243', '1427244', '1427245', '1427246') AND CompanyId = 133 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 11:22:32,529 - [124697] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-06 11:22:32,601 - [124697] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrder (skip triggers): 5 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 11:22:33,109 - [124697] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 5) into ServiceCore.WorkOrder (triggers skipped) - __SPLIT__ 2026-07-06 11:22:34,304 - [124697] - src.utils.log - INFO - βœ… All 5 rows inserted successfully into ServiceCore.WorkOrder in 1 batches (triggers skipped) - __SPLIT__ 2026-07-06 11:22:34,560 - [124697] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-07-06 11:22:34,633 - [124697] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.ServiceSetup SET IsInitialWoGenerated = 1 WHERE CompanyId = 133 AND ServiceSetupId = 150620;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 11:22:34,983 - [124697] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-06 11:22:35,057 - [124697] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkorderId, WorkOrderNo FROM ServiceCore.WorkOrder wo WHERE wo.WorkOrderNo IN ('1427242', '1427243', '1427244', '1427245', '1427246') AND wo.AccountNumber = '14996' AND wo.CompanyId = 133 ... (Thread: ThreadPoolExecutor-8_0) - __SPLIT__ 2026-07-06 11:22:35,400 - [124697] - src.utils.log - INFO - βœ… Fetched 5 rows - __SPLIT__ 2026-07-06 11:22:35,477 - [124697] - src.utils.log - INFO - Sequential fetching temp table records - __SPLIT__ 2026-07-06 11:22:35,550 - [124697] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationServices woag WHERE woag.WorkOrderAutoGenerationId in (3681142, 3681143, 3681144, 3681145, 3681146)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 11:22:35,934 - [124697] - src.utils.log - INFO - βœ… Fetched 5 rows - __SPLIT__ 2026-07-06 11:22:36,005 - [124697] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SubWorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (3681142, 3681143, 3681144, 3681145, 3681146)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 11:22:36,348 - [124697] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-06 11:22:36,418 - [124697] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationCrews woag WHERE woag.WorkOrderAutoGenerationId in (3681142, 3681143, 3681144, 3681145, 3681146)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 11:22:36,782 - [124697] - src.utils.log - INFO - βœ… Fetched 5 rows - __SPLIT__ 2026-07-06 11:22:36,855 - [124697] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationSalesPersonCommission woag WHERE woag.WorkOrderAutoGenerationId in (3681142, 3681143, 3681144, 3681145, 3681146)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 11:22:37,197 - [124697] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-06 11:22:37,273 - [124697] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupAutoGenerationSourceMapping woag WHERE woag.WorkOrderAutoGenerationId in (3681142, 3681143, 3681144, 3681145, 3681146)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 11:22:37,618 - [124697] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-06 11:22:37,693 - [124697] - 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 (3681142, 3681143, 3681144, 3681145, 3681146)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 11:22:38,058 - [124697] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-06 11:22:38,129 - [124697] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from CRM.LeadNote woag WHERE woag.RefId in (3681142, 3681143, 3681144, 3681145, 3681146) and woag.RefType = 'TempWorkorder';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 11:22:38,471 - [124697] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-06 11:22:38,601 - [124697] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment woagca WHERE woagca.WorkOrderAutoGenerationId in (3681142, 3681143, 3681144, 3681145, 3681146);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 11:22:38,938 - [124697] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-06 11:22:39,012 - [124697] - src.utils.log - INFO - Updating temp tables - __SPLIT__ 2026-07-06 11:22:39,094 - [124697] - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyKey FROM Common.CompanyMaster cm WHERE CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 11:22:39,429 - [124697] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-06 11:22:39,506 - [124697] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 133 AND EnitityNumberType in ('SubWorkOrder'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 11:22:39,850 - [124697] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-06 11:22:39,930 - [124697] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-06 11:22:39,999 - [124697] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishHistory: 5 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 11:22:40,366 - [124697] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 5) into ServiceCore.WorkOrderAutoGenerationPublishHistory - __SPLIT__ 2026-07-06 11:22:41,546 - [124697] - src.utils.log - INFO - βœ… All 5 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishHistory in 1 batches - __SPLIT__ 2026-07-06 11:22:41,621 - [124697] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationPublishHistoryId, WorkOrderNo, ServiceSetupId FROM ServiceCore.WorkOrderAutoGenerationPublishHistory WHERE ServiceSetupId IN (150620, 150636) AND WorkOrderNo IN ('692037', '8992905', '6887219', '1757046', '8189834') AND GenerateWorkOrderHistoryId = 124697;... (Thread: ThreadPoolExecutor-9_0) - __SPLIT__ 2026-07-06 11:22:42,115 - [124697] - src.utils.log - INFO - βœ… Fetched 5 rows - __SPLIT__ 2026-07-06 11:22:42,190 - [124697] - src.utils.log - INFO - 🏁 Final merged rows: 5 - __SPLIT__ 2026-07-06 11:22:42,267 - [124697] - src.utils.log - INFO - Sequential Insertion in work order tables begin - __SPLIT__ 2026-07-06 11:22:42,340 - [124697] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-06 11:22:42,413 - [124697] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderServices: 5 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 11:22:42,765 - [124697] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 5) into ServiceCore.WorkOrderServices - __SPLIT__ 2026-07-06 11:22:43,793 - [124697] - src.utils.log - INFO - βœ… All 5 rows inserted successfully into ServiceCore.WorkOrderServices in 1 batches - __SPLIT__ 2026-07-06 11:22:43,863 - [124697] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderAppliedDiscount: - __SPLIT__ 2026-07-06 11:22:43,983 - [124697] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderSalesPersonCommission: - __SPLIT__ 2026-07-06 11:22:44,062 - [124697] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderCommissionAdjustment: - __SPLIT__ 2026-07-06 11:22:44,133 - [124697] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-06 11:22:44,203 - [124697] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderCrew: 5 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 11:22:44,550 - [124697] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 5) into ServiceCore.WorkOrderCrew - __SPLIT__ 2026-07-06 11:22:45,572 - [124697] - src.utils.log - INFO - βœ… All 5 rows inserted successfully into ServiceCore.WorkOrderCrew in 1 batches - __SPLIT__ 2026-07-06 11:22:45,643 - [124697] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkorderSourceMapping: - __SPLIT__ 2026-07-06 11:22:45,719 - [124697] - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-07-06 11:22:45,796 - [124697] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-06 11:22:45,866 - [124697] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishServices: 5 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 11:22:46,218 - [124697] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 5) into ServiceCore.WorkOrderAutoGenerationPublishServices - __SPLIT__ 2026-07-06 11:22:47,243 - [124697] - src.utils.log - INFO - βœ… All 5 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishServices in 1 batches - __SPLIT__ 2026-07-06 11:22:47,317 - [124697] - 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 (150620, 150636)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 11:22:47,664 - [124697] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-06 11:22:47,745 - [124697] - src.utils.log - INFO - Size of Transaction: 3 - __SPLIT__ 2026-07-06 11:22:47,823 - [124697] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 3 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 11:22:48,308 - [124697] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-07-06 11:22:49,351 - [124697] - src.utils.log - INFO - βœ… All 3 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-07-06 11:22:49,549 - [124697] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-07-06 11:22:49,627 - [124697] - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionId, ModifiedBy, TransactionDate as InvoiceDate from Billing.[Transaction] t WHERE t.ModifiedBy in (12345678910, 12345678911, 12345678912) and t.CompanyId = 133 AND t.TransactionType ='Invoice' AND t.CreatedDate = '2026-07-06 07:22:47.740';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 11:22:50,118 - [124697] - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-07-06 11:22:50,197 - [124697] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId in (150620, 150636);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 11:22:50,541 - [124697] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-06 11:22:50,624 - [124697] - src.utils.log - INFO - πŸ“ Executing: UPDATE Billing.[Transaction] SET ModifiedBy = NULL WHERE ModifiedBy IN (12345678910,12345678911,12345678912) AND CreatedDate = '2026-07-06 07:22:47.740'; ... (Thread: ThreadPoolExecutor-10_0) - __SPLIT__ 2026-07-06 11:22:51,064 - [124697] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-06 11:22:51,145 - [124697] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-06 11:22:51,213 - [124697] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 3 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 11:22:51,557 - [124697] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into Billing.Invoice - __SPLIT__ 2026-07-06 11:22:52,585 - [124697] - src.utils.log - INFO - βœ… All 3 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-07-06 11:22:52,659 - [124697] - src.utils.log - INFO - πŸ” Fetching data: SELECT InvoiceId, WorkOrderNo FROM Billing.Invoice i WHERE i.WorkOrderNo in ('1427242', '1427246', '1427244')... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 11:22:53,685 - [124697] - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-07-06 11:22:53,767 - [124697] - 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 = 150620 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 11:22:54,107 - [124697] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-06 11:22:54,177 - [124697] - 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 = 150620 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 11:22:54,517 - [124697] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-06 11:22:54,586 - [124697] - 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 = 150620 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 11:22:54,938 - [124697] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-06 11:22:55,013 - [124697] - 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 = 150620 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 11:22:55,351 - [124697] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-06 11:22:55,437 - [124697] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150620;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 11:22:55,814 - [124697] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-06 11:22:55,885 - [124697] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId, AppliedDiscountAmt as AppliedDiscountAmount,IsActive ,ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 150620;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 11:22:56,229 - [124697] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-06 11:22:56,296 - [124697] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId,IsActive,DiscountAmount, IsDiscountPercent,DiscountPercent,DiscountDescription , ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 150620;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 11:22:56,632 - [124697] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-06 11:22:56,696 - [124697] - src.utils.log - INFO - Sequential Insertion in invoice tables begin - __SPLIT__ 2026-07-06 11:22:56,762 - [124697] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.AccountDiscountSetup: - __SPLIT__ 2026-07-06 11:22:56,823 - [124697] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-06 11:22:56,891 - [124697] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceCharges: 3 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 11:22:57,234 - [124697] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into Billing.InvoiceCharges - __SPLIT__ 2026-07-06 11:22:58,251 - [124697] - src.utils.log - INFO - βœ… All 3 rows inserted successfully into Billing.InvoiceCharges in 1 batches - __SPLIT__ 2026-07-06 11:22:58,316 - [124697] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.DiscountApplied: - __SPLIT__ 2026-07-06 11:22:58,369 - [124697] - src.utils.log - INFO - Invoice Publish Done - __SPLIT__ 2026-07-06 11:22:58,433 - [124697] - src.utils.log - INFO - Updating Next GenerationDate - __SPLIT__ 2026-07-06 11:22:58,508 - [124697] - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, MAX(NextWorkOrderGenerationDate) AS MaxNextWorkOrderGeneration FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 124697 GROUP BY ServiceSetupId; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 11:22:58,838 - [124697] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-06 11:22:58,907 - [124697] - src.utils.log - INFO - πŸ”„ Updating next gen date sequentially: inside update_next_workorder_generation - __SPLIT__ 2026-07-06 11:22:59,104 - [124697] - src.utils.log - INFO - πŸ›  Creating temp table #tbl_c4198039d4 - __SPLIT__ 2026-07-06 11:22:59,434 - [124697] - src.utils.log - INFO - πŸ“Œ Bulk inserting 2 rows into #tbl_c4198039d4 - __SPLIT__ 2026-07-06 11:22:59,892 - [124697] - src.utils.log - INFO - πŸ” Running MERGE update to apply changes - __SPLIT__ 2026-07-06 11:23:00,178 - [124697] - src.utils.log - INFO - βœ” SQL reported affected rows: 2 - __SPLIT__ 2026-07-06 11:23:00,388 - [124697] - src.utils.log - INFO - πŸ” Verified successfully updated 2 rows via #tbl_c4198039d4 - __SPLIT__ 2026-07-06 11:23:00,458 - [124697] - src.utils.log - INFO - πŸŽ‰ Successfully updated NextGenerationDate using temp table #tbl_c4198039d4 - __SPLIT__ 2026-07-06 11:23:00,535 - [124697] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 124697 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 11:23:00,873 - [124697] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-06 11:23:00,956 - [124697] - src.utils.log - INFO - Sequential deletion from temp tables begin - __SPLIT__ 2026-07-06 11:23:01,026 - [124697] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId in (3681142, 3681143, 3681144, 3681145, 3681146) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 11:23:01,502 - [124697] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-06 11:23:01,580 - [124697] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId in (3681142, 3681143, 3681144, 3681145, 3681146) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 11:23:02,003 - [124697] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-06 11:23:02,075 - [124697] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId in (3681142, 3681143, 3681144, 3681145, 3681146) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 11:23:02,418 - [124697] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-06 11:23:02,498 - [124697] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId in (3681142, 3681143, 3681144, 3681145, 3681146) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 11:23:02,918 - [124697] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-06 11:23:02,991 - [124697] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId in (3681142, 3681143, 3681144, 3681145, 3681146) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 11:23:03,337 - [124697] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-06 11:23:03,408 - [124697] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (3681142, 3681143, 3681144, 3681145, 3681146) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 11:23:03,748 - [124697] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-06 11:23:03,821 - [124697] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId in (3681142, 3681143, 3681144, 3681145, 3681146) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 11:23:04,156 - [124697] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-06 11:23:04,271 - [124697] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (3681142, 3681143, 3681144, 3681145, 3681146) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 11:23:04,811 - [124697] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-06 11:23:04,875 - [124697] - src.utils.log - INFO - Work order published ids: (3681142, 3681143, 3681144, 3681145, 3681146) - __SPLIT__ 2026-07-06 11:23:04,929 - [124697] - src.utils.log - INFO - Time took to perform operation in publishing [124697]: 42.28 - __SPLIT__ 2026-07-06 11:23:04,997 - [124697] - src.utils.log - INFO - Publish Completed for GenerateWorkOrderHistoryId: [124697] - __SPLIT__ 2026-07-06 11:23:05,061 - [124697] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-07-06 07:23:04.875' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124697;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 11:23:05,393 - [124697] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__