2026-03-16 07:02:04,647 - 124129 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=124129 - __SPLIT__ 2026-03-16 07:02:05,195 - 124129 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 124129 - __SPLIT__ 2026-03-16 07:02:05,212 - 124129 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-03-16 07:02:05,212 - 124129 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:02:07,877 - 124129 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 07:02:07,877 - 124129 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-03-16 07:02:07,878 - 124129 - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-03-16 07:02:07,878 - 124129 - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-03-16 07:02:07,878 - 124129 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 124129;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:02:10,405 - 124129 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-03-16 07:02:10,406 - 124129 - 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 = 124129), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 124129), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 124129 AND ss.FrequencyScheduleId IS NOT NULL AND ss.IsActive = 1 AND ss.IsDeleted = 0 AND ss.Status <> 'Canceled';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:02:12,548 - 124129 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 07:02:12,549 - 124129 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 124129;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:02:12,818 - 124129 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 07:02:12,822 - 124129 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-03-16 07:02:12,823 - 124129 - 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-03-16 07:02:13,102 - 124129 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 07:02:13,102 - 124129 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-03-16 07:02:13,106 - 124129 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-03-16 07:02:13,106 - 124129 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 149988;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:02:13,376 - 124129 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 07:02:13,377 - 124129 - src.utils.log - INFO - πŸ” Fetching data: select ServiceDate, ServiceSetupId from serviceCore.WorkOrder wo inner join ServiceCore.WorkOrderStatus wos on wo.WoStatusId = wos.WoStatusId where ServiceDate >= '2026-03-16 00:00:00' and ServiceDate <= '2026-04-30 00:00:00' and ServiceSetupId = 149988 and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:02:13,665 - 124129 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 07:02:14,225 - 124129 - src.utils.log - INFO - Generating work orders for setup: 149988 - __SPLIT__ 2026-03-16 07:02:14,242 - 124129 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 1132;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:02:14,510 - 124129 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 07:02:14,553 - 124129 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-03-16 07:02:14,559 - 124129 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=133 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:02:14,826 - 124129 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 07:02:14,830 - 124129 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-03-16 07:02:14,830 - 124129 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-03-16 07:02:14,831 - 124129 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 149988 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:02:15,116 - 124129 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-16 07:02:15,116 - 124129 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 149988 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:02:15,509 - 124129 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-16 07:02:15,510 - 124129 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 149988 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:02:15,797 - 124129 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-16 07:02:15,797 - 124129 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 149988 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:02:16,241 - 124129 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-16 07:02:16,241 - 124129 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 149988 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:02:16,548 - 124129 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-16 07:02:16,548 - 124129 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 149988 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:02:16,866 - 124129 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-16 07:02:16,866 - 124129 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 149988 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:02:17,145 - 124129 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-16 07:02:17,145 - 124129 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 149988 (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:02:17,439 - 124129 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-16 07:02:17,439 - 124129 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-03-16 07:02:17,439 - 124129 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:02:17,765 - 124129 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-03-16 07:02:18,888 - 124129 - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-03-16 07:02:18,888 - 124129 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 2 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-03-16 12:12:22.250' and ServiceSetupId = 149988... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:02:19,170 - 124129 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-03-16 07:02:19,170 - 124129 - src.utils.log - INFO - Id's of work order inserted to DB: [3430537 3430538] - __SPLIT__ 2026-03-16 07:02:19,170 - 124129 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 149988;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:02:19,438 - 124129 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 07:02:19,439 - 124129 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-03-16 07:02:19,439 - 124129 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId = 149988... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:02:19,709 - 124129 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 07:02:19,709 - 124129 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId = 149988... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:02:19,977 - 124129 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 07:02:19,982 - 124129 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId = 149988... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:02:20,258 - 124129 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 07:02:20,259 - 124129 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId = 149988... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:02:20,528 - 124129 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 07:02:20,529 - 124129 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId = 149988... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:02:20,801 - 124129 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 07:02:20,801 - 124129 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId = 149988;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:02:21,073 - 124129 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 07:02:21,074 - 124129 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId = 149988;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:02:21,342 - 124129 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 07:02:21,342 - 124129 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId = 149988;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:02:22,385 - 124129 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 07:02:22,385 - 124129 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId = 149988;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:02:22,654 - 124129 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 07:02:22,663 - 124129 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-03-16 07:02:22,663 - 124129 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-03-16 07:02:22,663 - 124129 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-03-16 07:02:22,663 - 124129 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.CommunicationPreferencesServiceReportNotification: - __SPLIT__ 2026-03-16 07:02:22,663 - 124129 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-03-16 07:02:22,663 - 124129 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SetupAutoGenerationSourceMapping: - __SPLIT__ 2026-03-16 07:02:22,663 - 124129 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-03-16 07:02:22,663 - 124129 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationAppliedDiscount: - __SPLIT__ 2026-03-16 07:02:22,664 - 124129 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-03-16 07:02:22,664 - 124129 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SubWorkOrderAutoGeneration: - __SPLIT__ 2026-03-16 07:02:22,664 - 124129 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-03-16 07:02:22,664 - 124129 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: - __SPLIT__ 2026-03-16 07:02:22,664 - 124129 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-03-16 07:02:22,664 - 124129 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: - __SPLIT__ 2026-03-16 07:02:22,664 - 124129 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-03-16 07:02:22,664 - 124129 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-03-16 07:02:22,664 - 124129 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3430537, 3430538) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:02:22,932 - 124129 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-03-16 07:02:22,933 - 124129 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationCrews: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:02:23,229 - 124129 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationCrews - __SPLIT__ 2026-03-16 07:02:24,173 - 124129 - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationCrews in 1 batches - __SPLIT__ 2026-03-16 07:02:24,174 - 124129 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-03-16 07:02:24,174 - 124129 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationServices: - __SPLIT__ 2026-03-16 07:02:24,174 - 124129 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-03-16 07:02:24,174 - 124129 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-03-16 07:02:24,174 - 124129 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:02:24,475 - 124129 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-03-16 07:02:25,439 - 124129 - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-03-16 07:02:25,440 - 124129 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-03-16 07:02:25,440 - 124129 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 124129;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:02:25,711 - 124129 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-03-16 07:02:25,711 - 124129 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-03-16 07:02:25,711 - 124129 - src.utils.log - INFO - Time took to perform operation: 20.52 - __SPLIT__ 2026-03-16 07:02:25,711 - 124129 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 124129;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:02:25,979 - 124129 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-03-16 07:02:25,979 - 124129 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET WorkOrderStatusDateTime = '2026-03-16 03:02:25.979' WHERE GenerateWorkOrderHistoryId = 124129;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:02:26,248 - 124129 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-03-16 07:12:18,468 - 124131 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=124131 - __SPLIT__ 2026-03-16 07:12:18,469 - 124131 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 124131 - __SPLIT__ 2026-03-16 07:12:18,469 - 124131 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-03-16 07:12:18,470 - 124131 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:12:20,604 - 124131 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 07:12:20,605 - 124131 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-03-16 07:12:20,605 - 124131 - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-03-16 07:12:20,606 - 124131 - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-03-16 07:12:20,606 - 124131 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 124131;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:12:22,475 - 124131 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-03-16 07:12:22,475 - 124131 - 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 = 124131), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 124131), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 124131 AND ss.FrequencyScheduleId IS NOT NULL AND ss.IsActive = 1 AND ss.IsDeleted = 0 AND ss.Status <> 'Canceled';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:12:22,877 - 124131 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 07:12:22,877 - 124131 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 124131;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:12:23,145 - 124131 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 07:12:23,148 - 124131 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-03-16 07:12:23,149 - 124131 - 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-03-16 07:12:23,423 - 124131 - src.utils.log - INFO - βœ… Fetched 60 rows - __SPLIT__ 2026-03-16 07:12:23,423 - 124131 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-03-16 07:12:23,426 - 124131 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-03-16 07:12:23,426 - 124131 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 149989;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:12:23,693 - 124131 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 07:12:23,694 - 124131 - src.utils.log - INFO - πŸ” Fetching data: select ServiceDate, ServiceSetupId from serviceCore.WorkOrder wo inner join ServiceCore.WorkOrderStatus wos on wo.WoStatusId = wos.WoStatusId where ServiceDate >= '2026-05-01 00:00:00' and ServiceDate <= '2026-05-31 00:00:00' and ServiceSetupId = 149989 and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:12:23,972 - 124131 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 07:12:24,527 - 124131 - src.utils.log - INFO - Generating work orders for setup: 149989 - __SPLIT__ 2026-03-16 07:12:24,544 - 124131 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 11427;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:12:24,810 - 124131 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 07:12:24,875 - 124131 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-03-16 07:12:24,886 - 124131 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=133 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:12:25,152 - 124131 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 07:12:25,156 - 124131 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-03-16 07:12:25,156 - 124131 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-03-16 07:12:25,156 - 124131 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 149989 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:12:25,527 - 124131 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-16 07:12:25,527 - 124131 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 149989 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:12:25,870 - 124131 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-16 07:12:25,870 - 124131 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 149989 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:12:26,136 - 124131 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-16 07:12:26,136 - 124131 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 149989 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:12:26,464 - 124131 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-16 07:12:26,464 - 124131 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 149989 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:12:26,817 - 124131 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-16 07:12:26,817 - 124131 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 149989 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:12:27,083 - 124131 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-16 07:12:27,083 - 124131 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 149989 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:12:27,348 - 124131 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-16 07:12:27,349 - 124131 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 149989 (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:12:27,708 - 124131 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-16 07:12:27,708 - 124131 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-03-16 07:12:27,708 - 124131 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:12:28,010 - 124131 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-03-16 07:12:28,969 - 124131 - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-03-16 07:12:28,969 - 124131 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 2 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-03-16 12:12:22.250' and ServiceSetupId = 149989... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:12:29,343 - 124131 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-03-16 07:12:29,344 - 124131 - src.utils.log - INFO - Id's of work order inserted to DB: [3430543 3430544] - __SPLIT__ 2026-03-16 07:12:29,344 - 124131 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 149989;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:12:29,612 - 124131 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 07:12:29,613 - 124131 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-03-16 07:12:29,613 - 124131 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId = 149989... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:12:29,880 - 124131 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 07:12:29,880 - 124131 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId = 149989... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:12:30,148 - 124131 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 07:12:30,155 - 124131 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId = 149989... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:12:30,430 - 124131 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-03-16 07:12:30,431 - 124131 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId = 149989... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:12:30,697 - 124131 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 07:12:30,698 - 124131 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId = 149989... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:12:30,964 - 124131 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 07:12:30,965 - 124131 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId = 149989;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:12:31,231 - 124131 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 07:12:31,231 - 124131 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId = 149989;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:12:31,497 - 124131 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 07:12:31,498 - 124131 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId = 149989;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:12:31,789 - 124131 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 07:12:31,789 - 124131 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId = 149989;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:12:32,055 - 124131 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 07:12:32,067 - 124131 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-03-16 07:12:32,067 - 124131 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-03-16 07:12:32,067 - 124131 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-03-16 07:12:32,068 - 124131 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.CommunicationPreferencesServiceReportNotification: - __SPLIT__ 2026-03-16 07:12:32,068 - 124131 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-03-16 07:12:32,068 - 124131 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SetupAutoGenerationSourceMapping: - __SPLIT__ 2026-03-16 07:12:32,068 - 124131 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-03-16 07:12:32,068 - 124131 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationAppliedDiscount: - __SPLIT__ 2026-03-16 07:12:32,068 - 124131 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-03-16 07:12:32,068 - 124131 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SubWorkOrderAutoGeneration: - __SPLIT__ 2026-03-16 07:12:32,068 - 124131 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-03-16 07:12:32,068 - 124131 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: - __SPLIT__ 2026-03-16 07:12:32,068 - 124131 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-03-16 07:12:32,068 - 124131 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: - __SPLIT__ 2026-03-16 07:12:32,068 - 124131 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-03-16 07:12:32,068 - 124131 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-03-16 07:12:32,069 - 124131 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3430544, 3430543) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:12:32,336 - 124131 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-03-16 07:12:32,337 - 124131 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationCrews: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:12:32,608 - 124131 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationCrews - __SPLIT__ 2026-03-16 07:12:33,554 - 124131 - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationCrews in 1 batches - __SPLIT__ 2026-03-16 07:12:33,554 - 124131 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-03-16 07:12:33,555 - 124131 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationServices: - __SPLIT__ 2026-03-16 07:12:33,555 - 124131 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-03-16 07:12:33,555 - 124131 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-03-16 07:12:33,555 - 124131 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:12:33,829 - 124131 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-03-16 07:12:34,770 - 124131 - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-03-16 07:12:34,770 - 124131 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-03-16 07:12:34,770 - 124131 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 124131;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:12:35,038 - 124131 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-03-16 07:12:35,038 - 124131 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-03-16 07:12:35,038 - 124131 - src.utils.log - INFO - Time took to perform operation: 16.57 - __SPLIT__ 2026-03-16 07:12:35,038 - 124131 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 124131;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:12:35,305 - 124131 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-03-16 07:12:35,305 - 124131 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET WorkOrderStatusDateTime = '2026-03-16 03:12:35.305' WHERE GenerateWorkOrderHistoryId = 124131;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:12:35,574 - 124131 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-03-16 07:12:48,300 - [124131] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[] user_id=43135 company_id=133 project_id=[124131] publish_all=True - __SPLIT__ 2026-03-16 07:12:48,301 - [124131] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[] user_id=43135 company_id=133 project_id=[124131] publish_all=True - __SPLIT__ 2026-03-16 07:12:48,301 - [124131] - src.utils.log - INFO - Sequential Work order publish in progress for GenerateWorkOrderHistoryId: [124131] - __SPLIT__ 2026-03-16 07:12:48,301 - [124131] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-03-16 07:12:48,302 - [124131] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:12:50,414 - [124131] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 07:12:50,414 - [124131] - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-03-16 07:12:50,414 - [124131] - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-03-16 07:12:50,415 - [124131] - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-03-16 07:12:50,415 - [124131] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'InProgress' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124131;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:12:52,295 - [124131] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-03-16 07:12:52,296 - [124131] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGeneration woag WHERE woag.GenerateWorkOrderHistoryId = 124131... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:12:52,654 - [124131] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-03-16 07:12:52,655 - [124131] - src.utils.log - INFO - Inside get_work_order_table - __SPLIT__ 2026-03-16 07:12:52,655 - [124131] - 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 = 149989 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:12:52,923 - [124131] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 07:12:52,923 - [124131] - 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 = 149989 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:12:53,192 - [124131] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 07:12:53,193 - [124131] - 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 = 149989 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:12:53,462 - [124131] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 07:12:53,466 - [124131] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder,BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:12:53,733 - [124131] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 07:12:53,733 - [124131] - 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-03-16 07:12:54,003 - [124131] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-03-16 07:12:54,003 - [124131] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder, BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:12:54,273 - [124131] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 07:12:54,273 - [124131] - 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-03-16 07:12:54,549 - [124131] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 07:12:54,550 - [124131] - 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-03-16 07:12:54,822 - [124131] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 07:12:54,826 - [124131] - 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 = 149989... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:12:55,096 - [124131] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 07:12:55,098 - [124131] - src.utils.log - INFO - πŸ” Fetching data: SELECT x.CompanyId FROM CRM.CompanyMaster x WHERE CompanyKey = 'abcdallas';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:12:55,368 - [124131] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 07:12:55,368 - [124131] - src.utils.log - INFO - πŸ” Fetching data: SELECT CollectionStatus,IsHold,AccountNo FROM CRM.Account a WHERE a.AccountNo = '14668' and a.CompanyId = 121;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:12:55,637 - [124131] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 07:12:55,640 - [124131] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderNo FROM ServiceCore.WorkOrder WHERE WorkOrderNo IN ('1361684', '1361685') AND CompanyId = 133 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:12:55,917 - [124131] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 07:12:55,917 - [124131] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrder (skip triggers): 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:12:56,357 - [124131] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrder (triggers skipped) - __SPLIT__ 2026-03-16 07:12:57,379 - [124131] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrder in 1 batches (triggers skipped) - __SPLIT__ 2026-03-16 07:12:57,515 - [124131] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-03-16 07:12:57,517 - [124131] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkorderId, WorkOrderNo FROM ServiceCore.WorkOrder wo WHERE wo.WorkOrderNo IN ('1361684', '1361685') AND wo.AccountNumber = '14668' AND wo.CompanyId = 133 ... (Thread: ThreadPoolExecutor-3_0) - __SPLIT__ 2026-03-16 07:12:57,805 - [124131] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-03-16 07:12:57,806 - [124131] - src.utils.log - INFO - Sequential fetching temp table records - __SPLIT__ 2026-03-16 07:12:57,806 - [124131] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationServices woag WHERE woag.WorkOrderAutoGenerationId in (3430543, 3430544)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:12:58,148 - [124131] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-03-16 07:12:58,148 - [124131] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SubWorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (3430543, 3430544)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:12:58,426 - [124131] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 07:12:58,426 - [124131] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationCrews woag WHERE woag.WorkOrderAutoGenerationId in (3430543, 3430544)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:12:58,711 - [124131] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-03-16 07:12:58,712 - [124131] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationSalesPersonCommission woag WHERE woag.WorkOrderAutoGenerationId in (3430543, 3430544)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:12:58,986 - [124131] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 07:12:58,986 - [124131] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupAutoGenerationSourceMapping woag WHERE woag.WorkOrderAutoGenerationId in (3430543, 3430544)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:12:59,262 - [124131] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 07:12:59,262 - [124131] - 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 (3430543, 3430544)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:12:59,569 - [124131] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 07:12:59,569 - [124131] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from CRM.LeadNote woag WHERE woag.RefId in (3430543, 3430544) and woag.RefType = 'TempWorkorder';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:12:59,847 - [124131] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 07:12:59,847 - [124131] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment woagca WHERE woagca.WorkOrderAutoGenerationId in (3430543, 3430544);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:13:00,118 - [124131] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 07:13:00,121 - [124131] - src.utils.log - INFO - Updating temp tables - __SPLIT__ 2026-03-16 07:13:00,213 - [124131] - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyKey FROM Common.CompanyMaster cm WHERE CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:13:00,479 - [124131] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 07:13:00,479 - [124131] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 133 AND EnitityNumberType in ('SubWorkOrder'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:13:00,746 - [124131] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 07:13:00,750 - [124131] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-03-16 07:13:00,750 - [124131] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishHistory: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:13:01,042 - [124131] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationPublishHistory - __SPLIT__ 2026-03-16 07:13:01,993 - [124131] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishHistory in 1 batches - __SPLIT__ 2026-03-16 07:13:01,994 - [124131] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationPublishHistoryId, WorkOrderNo, ServiceSetupId FROM ServiceCore.WorkOrderAutoGenerationPublishHistory WHERE ServiceSetupId = 149989 AND WorkOrderNo IN ('3120891', '1610493') AND GenerateWorkOrderHistoryId = 124131;... (Thread: ThreadPoolExecutor-4_0) - __SPLIT__ 2026-03-16 07:13:02,296 - [124131] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-03-16 07:13:02,297 - [124131] - src.utils.log - INFO - 🏁 Final merged rows: 2 - __SPLIT__ 2026-03-16 07:13:02,303 - [124131] - src.utils.log - INFO - Sequential Insertion in work order tables begin - __SPLIT__ 2026-03-16 07:13:02,303 - [124131] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-03-16 07:13:02,303 - [124131] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderServices: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:13:02,582 - [124131] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderServices - __SPLIT__ 2026-03-16 07:13:03,524 - [124131] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderServices in 1 batches - __SPLIT__ 2026-03-16 07:13:03,524 - [124131] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SubWorkOrder: - __SPLIT__ 2026-03-16 07:13:03,524 - [124131] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderAppliedDiscount: - __SPLIT__ 2026-03-16 07:13:03,524 - [124131] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderSalesPersonCommission: - __SPLIT__ 2026-03-16 07:13:03,525 - [124131] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderCommissionAdjustment: - __SPLIT__ 2026-03-16 07:13:03,525 - [124131] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-03-16 07:13:03,525 - [124131] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderCrew: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:13:03,796 - [124131] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderCrew - __SPLIT__ 2026-03-16 07:13:04,734 - [124131] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderCrew in 1 batches - __SPLIT__ 2026-03-16 07:13:04,735 - [124131] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkorderSourceMapping: - __SPLIT__ 2026-03-16 07:13:04,735 - [124131] - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-03-16 07:13:04,735 - [124131] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-03-16 07:13:04,736 - [124131] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishServices: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:13:05,010 - [124131] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationPublishServices - __SPLIT__ 2026-03-16 07:13:05,957 - [124131] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishServices in 1 batches - __SPLIT__ 2026-03-16 07:13:05,957 - [124131] - 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 = 149989... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:13:06,224 - [124131] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 07:13:06,230 - [124131] - src.utils.log - INFO - Size of Transaction: 2 - __SPLIT__ 2026-03-16 07:13:06,231 - [124131] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:13:06,636 - [124131] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-03-16 07:13:07,573 - [124131] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-03-16 07:13:07,705 - [124131] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-03-16 07:13:07,706 - [124131] - 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-03-16 03:13:06.226';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:13:08,128 - [124131] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-03-16 07:13:08,131 - [124131] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 149989;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:13:08,398 - [124131] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 07:13:08,407 - [124131] - src.utils.log - INFO - πŸ“ Executing: UPDATE Billing.[Transaction] SET ModifiedBy = NULL WHERE ModifiedBy IN (12345678910,12345678911) AND CreatedDate = '2026-03-16 03:13:06.226'; ... (Thread: ThreadPoolExecutor-5_0) - __SPLIT__ 2026-03-16 07:13:08,798 - [124131] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-03-16 07:13:08,804 - [124131] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-03-16 07:13:08,804 - [124131] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:13:09,080 - [124131] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.Invoice - __SPLIT__ 2026-03-16 07:13:10,062 - [124131] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-03-16 07:13:10,063 - [124131] - src.utils.log - INFO - πŸ” Fetching data: SELECT InvoiceId, WorkOrderNo FROM Billing.Invoice i WHERE i.WorkOrderNo in ('1361685', '1361684')... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:13:10,390 - [124131] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-03-16 07:13:10,400 - [124131] - 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 = 149989 and sm.IsActive =1 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:13:10,665 - [124131] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 07:13:10,666 - [124131] - 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 = 149989 and sm.IsActive =1 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:13:10,932 - [124131] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 07:13:10,933 - [124131] - 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 = 149989 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:13:11,198 - [124131] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 07:13:11,199 - [124131] - 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 = 149989 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:13:11,465 - [124131] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 07:13:11,479 - [124131] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 149989;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:13:11,746 - [124131] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 07:13:11,752 - [124131] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId, AppliedDiscountAmt as AppliedDiscountAmount,IsActive ,ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 149989;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:13:12,018 - [124131] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 07:13:12,021 - [124131] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId,IsActive,DiscountAmount, IsDiscountPercent,DiscountPercent,DiscountDescription , ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 149989;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:13:12,287 - [124131] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 07:13:12,288 - [124131] - src.utils.log - INFO - Sequential Insertion in invoice tables begin - __SPLIT__ 2026-03-16 07:13:12,288 - [124131] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.AccountDiscountSetup: - __SPLIT__ 2026-03-16 07:13:12,288 - [124131] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-03-16 07:13:12,288 - [124131] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceCharges: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:13:12,563 - [124131] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.InvoiceCharges - __SPLIT__ 2026-03-16 07:13:13,501 - [124131] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.InvoiceCharges in 1 batches - __SPLIT__ 2026-03-16 07:13:13,501 - [124131] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.DiscountApplied: - __SPLIT__ 2026-03-16 07:13:13,501 - [124131] - src.utils.log - INFO - Invoice Publish Done - __SPLIT__ 2026-03-16 07:13:13,502 - [124131] - src.utils.log - INFO - Updating Next GenerationDate - __SPLIT__ 2026-03-16 07:13:13,502 - [124131] - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, MAX(NextWorkOrderGenerationDate) AS MaxNextWorkOrderGeneration FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 124131 GROUP BY ServiceSetupId; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:13:13,770 - [124131] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 07:13:13,777 - [124131] - src.utils.log - INFO - πŸ”„ Updating next gen date sequentially: inside update_next_workorder_generation - __SPLIT__ 2026-03-16 07:13:13,910 - [124131] - src.utils.log - INFO - πŸ›  Creating temp table #tbl_9675980914 - __SPLIT__ 2026-03-16 07:13:14,179 - [124131] - src.utils.log - INFO - πŸ“Œ Bulk inserting 1 rows into #tbl_9675980914 - __SPLIT__ 2026-03-16 07:13:14,445 - [124131] - src.utils.log - INFO - πŸ” Running MERGE update to apply changes - __SPLIT__ 2026-03-16 07:13:14,586 - [124131] - src.utils.log - INFO - βœ” SQL reported affected rows: 1 - __SPLIT__ 2026-03-16 07:13:14,725 - [124131] - src.utils.log - INFO - πŸ” Verified successfully updated 1 rows via #tbl_9675980914 - __SPLIT__ 2026-03-16 07:13:14,725 - [124131] - src.utils.log - INFO - πŸŽ‰ Successfully updated NextGenerationDate using temp table #tbl_9675980914 - __SPLIT__ 2026-03-16 07:13:14,725 - [124131] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 124131 (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:13:14,991 - [124131] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-16 07:13:14,991 - [124131] - src.utils.log - INFO - Sequential deletion from temp tables begin - __SPLIT__ 2026-03-16 07:13:14,991 - [124131] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId in (3430543, 3430544) (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:13:15,371 - [124131] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-16 07:13:15,371 - [124131] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId in (3430543, 3430544) (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:13:15,659 - [124131] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-16 07:13:15,659 - [124131] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId in (3430543, 3430544) (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:13:15,927 - [124131] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-16 07:13:15,927 - [124131] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId in (3430543, 3430544) (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:13:16,245 - [124131] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-16 07:13:16,245 - [124131] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId in (3430543, 3430544) (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:13:16,520 - [124131] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-16 07:13:16,521 - [124131] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (3430543, 3430544) (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:13:16,788 - [124131] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-16 07:13:16,788 - [124131] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId in (3430543, 3430544) (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:13:17,056 - [124131] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-16 07:13:17,056 - [124131] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (3430543, 3430544) (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:13:17,382 - [124131] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-16 07:13:17,382 - [124131] - src.utils.log - INFO - Work order published ids: (3430543, 3430544) - __SPLIT__ 2026-03-16 07:13:17,382 - [124131] - src.utils.log - INFO - Time took to perform operation in publishing [124131]: 29.08 - __SPLIT__ 2026-03-16 07:13:17,383 - [124131] - src.utils.log - INFO - Publish Completed for GenerateWorkOrderHistoryId: [124131] - __SPLIT__ 2026-03-16 07:13:17,383 - [124131] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-03-16 03:13:17.382' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124131;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:13:17,651 - [124131] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-03-16 07:17:30,939 - 124132 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=124132 - __SPLIT__ 2026-03-16 07:17:30,940 - 124132 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 124132 - __SPLIT__ 2026-03-16 07:17:30,941 - 124132 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-03-16 07:17:30,941 - 124132 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:17:33,024 - 124132 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 07:17:33,025 - 124132 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-03-16 07:17:33,025 - 124132 - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-03-16 07:17:33,025 - 124132 - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-03-16 07:17:33,026 - 124132 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 124132;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:17:34,907 - 124132 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-03-16 07:17:34,908 - 124132 - 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 = 124132), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 124132), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 124132 AND ss.FrequencyScheduleId IS NOT NULL AND ss.IsActive = 1 AND ss.IsDeleted = 0 AND ss.Status <> 'Canceled';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:17:35,287 - 124132 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 07:17:35,287 - 124132 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 124132;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:17:35,559 - 124132 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 07:17:35,562 - 124132 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-03-16 07:17:35,563 - 124132 - 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 = 14613... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:17:35,843 - 124132 - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-03-16 07:17:35,843 - 124132 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-03-16 07:17:35,846 - 124132 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-03-16 07:17:35,847 - 124132 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 149990;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:17:36,120 - 124132 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 07:17:36,120 - 124132 - src.utils.log - INFO - πŸ” Fetching data: select ServiceDate, ServiceSetupId from serviceCore.WorkOrder wo inner join ServiceCore.WorkOrderStatus wos on wo.WoStatusId = wos.WoStatusId where ServiceDate >= '2026-03-16 00:00:00' and ServiceDate <= '2026-05-31 00:00:00' and ServiceSetupId = 149990 and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:17:36,400 - 124132 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 07:17:36,977 - 124132 - src.utils.log - INFO - Generating work orders for setup: 149990 - __SPLIT__ 2026-03-16 07:17:36,993 - 124132 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 1132;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:17:37,262 - 124132 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 07:17:37,300 - 124132 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-03-16 07:17:37,304 - 124132 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=133 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:17:37,581 - 124132 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 07:17:37,584 - 124132 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-03-16 07:17:37,584 - 124132 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-03-16 07:17:37,585 - 124132 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 149990 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:17:37,883 - 124132 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-16 07:17:37,884 - 124132 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 149990 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:17:38,324 - 124132 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-16 07:17:38,324 - 124132 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 149990 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:17:38,711 - 124132 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-16 07:17:38,712 - 124132 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 149990 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:17:39,004 - 124132 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-16 07:17:39,004 - 124132 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 149990 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:17:39,294 - 124132 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-16 07:17:39,295 - 124132 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 149990 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:17:39,566 - 124132 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-16 07:17:39,566 - 124132 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 149990 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:17:39,838 - 124132 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-16 07:17:39,838 - 124132 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 149990 (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:17:40,137 - 124132 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-16 07:17:40,137 - 124132 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-03-16 07:17:40,137 - 124132 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:17:40,447 - 124132 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-03-16 07:17:41,427 - 124132 - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-03-16 07:17:41,428 - 124132 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 2 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-03-16 12:12:22.250' and ServiceSetupId = 149990... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:17:41,710 - 124132 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-03-16 07:17:41,710 - 124132 - src.utils.log - INFO - Id's of work order inserted to DB: [3430545 3430546] - __SPLIT__ 2026-03-16 07:17:41,710 - 124132 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 149990;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:17:41,979 - 124132 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 07:17:41,980 - 124132 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-03-16 07:17:41,980 - 124132 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId = 149990... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:17:42,251 - 124132 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 07:17:42,251 - 124132 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId = 149990... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:17:42,520 - 124132 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 07:17:42,528 - 124132 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId = 149990... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:17:42,804 - 124132 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-03-16 07:17:42,805 - 124132 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId = 149990... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:17:43,074 - 124132 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 07:17:43,074 - 124132 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId = 149990... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:17:43,342 - 124132 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 07:17:43,343 - 124132 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId = 149990;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:17:43,613 - 124132 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 07:17:43,614 - 124132 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId = 149990;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:17:43,881 - 124132 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 07:17:43,882 - 124132 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId = 149990;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:17:44,176 - 124132 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 07:17:44,176 - 124132 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId = 149990;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:17:44,446 - 124132 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 07:17:44,459 - 124132 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-03-16 07:17:44,459 - 124132 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-03-16 07:17:44,459 - 124132 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-03-16 07:17:44,460 - 124132 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.CommunicationPreferencesServiceReportNotification: - __SPLIT__ 2026-03-16 07:17:44,460 - 124132 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-03-16 07:17:44,460 - 124132 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SetupAutoGenerationSourceMapping: - __SPLIT__ 2026-03-16 07:17:44,460 - 124132 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-03-16 07:17:44,460 - 124132 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationAppliedDiscount: - __SPLIT__ 2026-03-16 07:17:44,460 - 124132 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-03-16 07:17:44,460 - 124132 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SubWorkOrderAutoGeneration: - __SPLIT__ 2026-03-16 07:17:44,460 - 124132 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-03-16 07:17:44,460 - 124132 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: - __SPLIT__ 2026-03-16 07:17:44,460 - 124132 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-03-16 07:17:44,460 - 124132 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: - __SPLIT__ 2026-03-16 07:17:44,460 - 124132 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-03-16 07:17:44,460 - 124132 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-03-16 07:17:44,461 - 124132 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3430545, 3430546) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:17:44,730 - 124132 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-03-16 07:17:44,731 - 124132 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationCrews: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:17:45,004 - 124132 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationCrews - __SPLIT__ 2026-03-16 07:17:45,951 - 124132 - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationCrews in 1 batches - __SPLIT__ 2026-03-16 07:17:45,952 - 124132 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-03-16 07:17:45,952 - 124132 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-03-16 07:17:45,952 - 124132 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:17:46,228 - 124132 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-03-16 07:17:47,176 - 124132 - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-03-16 07:17:47,176 - 124132 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-03-16 07:17:47,177 - 124132 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-03-16 07:17:47,177 - 124132 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:17:47,453 - 124132 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-03-16 07:17:48,402 - 124132 - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-03-16 07:17:48,402 - 124132 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-03-16 07:17:48,402 - 124132 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 124132;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:17:48,672 - 124132 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-03-16 07:17:48,672 - 124132 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-03-16 07:17:48,672 - 124132 - src.utils.log - INFO - Time took to perform operation: 17.73 - __SPLIT__ 2026-03-16 07:17:48,672 - 124132 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 124132;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:17:48,945 - 124132 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-03-16 07:17:48,945 - 124132 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET WorkOrderStatusDateTime = '2026-03-16 03:17:48.945' WHERE GenerateWorkOrderHistoryId = 124132;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:17:49,214 - 124132 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-03-16 07:26:15,662 - [124133] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[] user_id=43135 company_id=133 project_id=[124133] publish_all=True - __SPLIT__ 2026-03-16 07:26:15,663 - [124133] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[] user_id=43135 company_id=133 project_id=[124133] publish_all=True - __SPLIT__ 2026-03-16 07:26:15,663 - [124133] - src.utils.log - INFO - Sequential Work order publish in progress for GenerateWorkOrderHistoryId: [124133] - __SPLIT__ 2026-03-16 07:26:15,664 - [124133] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-03-16 07:26:15,664 - [124133] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:26:17,728 - [124133] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 07:26:17,729 - [124133] - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-03-16 07:26:17,729 - [124133] - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-03-16 07:26:17,730 - [124133] - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-03-16 07:26:17,730 - [124133] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'InProgress' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:26:19,619 - [124133] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-03-16 07:26:19,619 - [124133] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGeneration woag WHERE woag.GenerateWorkOrderHistoryId = 124133... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:26:19,937 - [124133] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-03-16 07:26:19,938 - [124133] - src.utils.log - INFO - Inside get_work_order_table - __SPLIT__ 2026-03-16 07:26:19,938 - [124133] - 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 = 149991 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:26:20,223 - [124133] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 07:26:20,223 - [124133] - 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 = 149991 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:26:20,502 - [124133] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 07:26:20,502 - [124133] - 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 = 149991 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:26:20,784 - [124133] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 07:26:20,788 - [124133] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder,BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:26:21,057 - [124133] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 07:26:21,058 - [124133] - 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-03-16 07:26:21,327 - [124133] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-03-16 07:26:21,327 - [124133] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder, BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:26:21,597 - [124133] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 07:26:21,597 - [124133] - 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-03-16 07:26:21,869 - [124133] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 07:26:21,870 - [124133] - 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-03-16 07:26:22,141 - [124133] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 07:26:22,146 - [124133] - 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 = 149991... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:26:22,421 - [124133] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 07:26:22,424 - [124133] - src.utils.log - INFO - πŸ” Fetching data: SELECT x.CompanyId FROM CRM.CompanyMaster x WHERE CompanyKey = 'abcdallas';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:26:22,693 - [124133] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 07:26:22,693 - [124133] - src.utils.log - INFO - πŸ” Fetching data: SELECT CollectionStatus,IsHold,AccountNo FROM CRM.Account a WHERE a.AccountNo = '14668' and a.CompanyId = 121;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:26:22,964 - [124133] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 07:26:22,966 - [124133] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderNo FROM ServiceCore.WorkOrder WHERE WorkOrderNo IN ('1361688', '1361689') AND CompanyId = 133 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:26:23,242 - [124133] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 07:26:23,242 - [124133] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrder (skip triggers): 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:26:23,681 - [124133] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrder (triggers skipped) - __SPLIT__ 2026-03-16 07:26:24,762 - [124133] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrder in 1 batches (triggers skipped) - __SPLIT__ 2026-03-16 07:26:24,896 - [124133] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-03-16 07:26:24,898 - [124133] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkorderId, WorkOrderNo FROM ServiceCore.WorkOrder wo WHERE wo.WorkOrderNo IN ('1361688', '1361689') AND wo.AccountNumber = '14668' AND wo.CompanyId = 133 ... (Thread: ThreadPoolExecutor-6_0) - __SPLIT__ 2026-03-16 07:26:25,177 - [124133] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-03-16 07:26:25,178 - [124133] - src.utils.log - INFO - Sequential fetching temp table records - __SPLIT__ 2026-03-16 07:26:25,178 - [124133] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationServices woag WHERE woag.WorkOrderAutoGenerationId in (3430547, 3430548)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:26:25,482 - [124133] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-03-16 07:26:25,482 - [124133] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SubWorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (3430547, 3430548)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:26:25,753 - [124133] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 07:26:25,754 - [124133] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationCrews woag WHERE woag.WorkOrderAutoGenerationId in (3430547, 3430548)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:26:26,030 - [124133] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-03-16 07:26:26,030 - [124133] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationSalesPersonCommission woag WHERE woag.WorkOrderAutoGenerationId in (3430547, 3430548)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:26:26,301 - [124133] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 07:26:26,301 - [124133] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupAutoGenerationSourceMapping woag WHERE woag.WorkOrderAutoGenerationId in (3430547, 3430548)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:26:26,574 - [124133] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 07:26:26,574 - [124133] - 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 (3430547, 3430548)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:26:26,867 - [124133] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 07:26:26,868 - [124133] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from CRM.LeadNote woag WHERE woag.RefId in (3430547, 3430548) and woag.RefType = 'TempWorkorder';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:26:27,140 - [124133] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 07:26:27,141 - [124133] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment woagca WHERE woagca.WorkOrderAutoGenerationId in (3430547, 3430548);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:26:27,411 - [124133] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 07:26:27,414 - [124133] - src.utils.log - INFO - Updating temp tables - __SPLIT__ 2026-03-16 07:26:27,427 - [124133] - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyKey FROM Common.CompanyMaster cm WHERE CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:26:27,695 - [124133] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 07:26:27,696 - [124133] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 133 AND EnitityNumberType in ('SubWorkOrder'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:26:27,966 - [124133] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 07:26:27,969 - [124133] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-03-16 07:26:27,970 - [124133] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishHistory: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:26:28,264 - [124133] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationPublishHistory - __SPLIT__ 2026-03-16 07:26:29,225 - [124133] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishHistory in 1 batches - __SPLIT__ 2026-03-16 07:26:29,226 - [124133] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationPublishHistoryId, WorkOrderNo, ServiceSetupId FROM ServiceCore.WorkOrderAutoGenerationPublishHistory WHERE ServiceSetupId = 149991 AND WorkOrderNo IN ('7415021', '6731265') AND GenerateWorkOrderHistoryId = 124133;... (Thread: ThreadPoolExecutor-7_0) - __SPLIT__ 2026-03-16 07:26:29,545 - [124133] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-03-16 07:26:29,545 - [124133] - src.utils.log - INFO - 🏁 Final merged rows: 2 - __SPLIT__ 2026-03-16 07:26:29,551 - [124133] - src.utils.log - INFO - Sequential Insertion in work order tables begin - __SPLIT__ 2026-03-16 07:26:29,551 - [124133] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-03-16 07:26:29,552 - [124133] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderServices: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:26:29,830 - [124133] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderServices - __SPLIT__ 2026-03-16 07:26:30,783 - [124133] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderServices in 1 batches - __SPLIT__ 2026-03-16 07:26:30,783 - [124133] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SubWorkOrder: - __SPLIT__ 2026-03-16 07:26:30,783 - [124133] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderAppliedDiscount: - __SPLIT__ 2026-03-16 07:26:30,783 - [124133] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderSalesPersonCommission: - __SPLIT__ 2026-03-16 07:26:30,783 - [124133] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderCommissionAdjustment: - __SPLIT__ 2026-03-16 07:26:30,784 - [124133] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-03-16 07:26:30,784 - [124133] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderCrew: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:26:31,060 - [124133] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderCrew - __SPLIT__ 2026-03-16 07:26:32,011 - [124133] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderCrew in 1 batches - __SPLIT__ 2026-03-16 07:26:32,011 - [124133] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkorderSourceMapping: - __SPLIT__ 2026-03-16 07:26:32,011 - [124133] - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-03-16 07:26:32,012 - [124133] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-03-16 07:26:32,012 - [124133] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishServices: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:26:32,289 - [124133] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationPublishServices - __SPLIT__ 2026-03-16 07:26:33,241 - [124133] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishServices in 1 batches - __SPLIT__ 2026-03-16 07:26:33,242 - [124133] - 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 = 149991... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:26:33,514 - [124133] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 07:26:33,520 - [124133] - src.utils.log - INFO - Size of Transaction: 2 - __SPLIT__ 2026-03-16 07:26:33,521 - [124133] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:26:33,931 - [124133] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-03-16 07:26:34,879 - [124133] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-03-16 07:26:35,013 - [124133] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-03-16 07:26:35,014 - [124133] - 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-03-16 03:26:33.515';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:26:35,455 - [124133] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-03-16 07:26:35,457 - [124133] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 149991;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:26:35,728 - [124133] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 07:26:35,736 - [124133] - src.utils.log - INFO - πŸ“ Executing: UPDATE Billing.[Transaction] SET ModifiedBy = NULL WHERE ModifiedBy IN (12345678910,12345678911) AND CreatedDate = '2026-03-16 03:26:33.515'; ... (Thread: ThreadPoolExecutor-8_0) - __SPLIT__ 2026-03-16 07:26:36,135 - [124133] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-03-16 07:26:36,140 - [124133] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-03-16 07:26:36,141 - [124133] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:26:36,421 - [124133] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.Invoice - __SPLIT__ 2026-03-16 07:26:37,414 - [124133] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-03-16 07:26:37,415 - [124133] - src.utils.log - INFO - πŸ” Fetching data: SELECT InvoiceId, WorkOrderNo FROM Billing.Invoice i WHERE i.WorkOrderNo in ('1361689', '1361688')... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:26:37,747 - [124133] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-03-16 07:26:37,757 - [124133] - 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 = 149991 and sm.IsActive =1 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:26:38,031 - [124133] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 07:26:38,032 - [124133] - 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 = 149991 and sm.IsActive =1 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:26:38,305 - [124133] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 07:26:38,306 - [124133] - 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 = 149991 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:26:38,579 - [124133] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 07:26:38,579 - [124133] - 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 = 149991 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:26:38,851 - [124133] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 07:26:38,865 - [124133] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 149991;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:26:39,136 - [124133] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 07:26:39,142 - [124133] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId, AppliedDiscountAmt as AppliedDiscountAmount,IsActive ,ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 149991;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:26:39,412 - [124133] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 07:26:39,416 - [124133] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId,IsActive,DiscountAmount, IsDiscountPercent,DiscountPercent,DiscountDescription , ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 149991;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:26:39,687 - [124133] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 07:26:39,688 - [124133] - src.utils.log - INFO - Sequential Insertion in invoice tables begin - __SPLIT__ 2026-03-16 07:26:39,688 - [124133] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.AccountDiscountSetup: - __SPLIT__ 2026-03-16 07:26:39,688 - [124133] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-03-16 07:26:39,688 - [124133] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceCharges: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:26:39,968 - [124133] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.InvoiceCharges - __SPLIT__ 2026-03-16 07:26:40,918 - [124133] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.InvoiceCharges in 1 batches - __SPLIT__ 2026-03-16 07:26:40,918 - [124133] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.DiscountApplied: - __SPLIT__ 2026-03-16 07:26:40,918 - [124133] - src.utils.log - INFO - Invoice Publish Done - __SPLIT__ 2026-03-16 07:26:40,918 - [124133] - src.utils.log - INFO - Updating Next GenerationDate - __SPLIT__ 2026-03-16 07:26:40,919 - [124133] - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, MAX(NextWorkOrderGenerationDate) AS MaxNextWorkOrderGeneration FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 124133 GROUP BY ServiceSetupId; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:26:41,190 - [124133] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 07:26:41,196 - [124133] - src.utils.log - INFO - πŸ”„ Updating next gen date sequentially: inside update_next_workorder_generation - __SPLIT__ 2026-03-16 07:26:41,332 - [124133] - src.utils.log - INFO - πŸ›  Creating temp table #tbl_f076582d3f - __SPLIT__ 2026-03-16 07:26:41,605 - [124133] - src.utils.log - INFO - πŸ“Œ Bulk inserting 1 rows into #tbl_f076582d3f - __SPLIT__ 2026-03-16 07:26:41,874 - [124133] - src.utils.log - INFO - πŸ” Running MERGE update to apply changes - __SPLIT__ 2026-03-16 07:26:42,019 - [124133] - src.utils.log - INFO - βœ” SQL reported affected rows: 1 - __SPLIT__ 2026-03-16 07:26:42,159 - [124133] - src.utils.log - INFO - πŸ” Verified successfully updated 1 rows via #tbl_f076582d3f - __SPLIT__ 2026-03-16 07:26:42,159 - [124133] - src.utils.log - INFO - πŸŽ‰ Successfully updated NextGenerationDate using temp table #tbl_f076582d3f - __SPLIT__ 2026-03-16 07:26:42,159 - [124133] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 124133 (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:26:42,428 - [124133] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-16 07:26:42,429 - [124133] - src.utils.log - INFO - Sequential deletion from temp tables begin - __SPLIT__ 2026-03-16 07:26:42,429 - [124133] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId in (3430547, 3430548) (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:26:42,816 - [124133] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-16 07:26:42,817 - [124133] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId in (3430547, 3430548) (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:26:43,108 - [124133] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-16 07:26:43,108 - [124133] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId in (3430547, 3430548) (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:26:43,378 - [124133] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-16 07:26:43,379 - [124133] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId in (3430547, 3430548) (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:26:43,699 - [124133] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-16 07:26:43,699 - [124133] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId in (3430547, 3430548) (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:26:43,977 - [124133] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-16 07:26:43,977 - [124133] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (3430547, 3430548) (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:26:44,248 - [124133] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-16 07:26:44,248 - [124133] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId in (3430547, 3430548) (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:26:44,518 - [124133] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-16 07:26:44,519 - [124133] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (3430547, 3430548) (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:26:44,848 - [124133] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-16 07:26:44,849 - [124133] - src.utils.log - INFO - Work order published ids: (3430547, 3430548) - __SPLIT__ 2026-03-16 07:26:44,849 - [124133] - src.utils.log - INFO - Time took to perform operation in publishing [124133]: 29.19 - __SPLIT__ 2026-03-16 07:26:44,849 - [124133] - src.utils.log - INFO - Publish Completed for GenerateWorkOrderHistoryId: [124133] - __SPLIT__ 2026-03-16 07:26:44,849 - [124133] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-03-16 03:26:44.849' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:26:45,120 - [124133] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-03-16 07:47:16,549 - [124134] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[] user_id=43135 company_id=133 project_id=[124134] publish_all=True - __SPLIT__ 2026-03-16 07:47:16,550 - [124134] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[] user_id=43135 company_id=133 project_id=[124134] publish_all=True - __SPLIT__ 2026-03-16 07:47:16,550 - [124134] - src.utils.log - INFO - Sequential Work order publish in progress for GenerateWorkOrderHistoryId: [124134] - __SPLIT__ 2026-03-16 07:47:16,551 - [124134] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-03-16 07:47:16,551 - [124134] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:47:18,635 - [124134] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 07:47:18,635 - [124134] - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-03-16 07:47:18,635 - [124134] - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-03-16 07:47:18,636 - [124134] - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-03-16 07:47:18,636 - [124134] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'InProgress' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124134;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:47:20,618 - [124134] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-03-16 07:47:20,618 - [124134] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGeneration woag WHERE woag.GenerateWorkOrderHistoryId = 124134... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:47:20,951 - [124134] - src.utils.log - INFO - βœ… Fetched 10 rows - __SPLIT__ 2026-03-16 07:47:20,951 - [124134] - src.utils.log - INFO - Inside get_work_order_table - __SPLIT__ 2026-03-16 07:47:20,952 - [124134] - 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 = 149992 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:47:21,247 - [124134] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 07:47:21,247 - [124134] - 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 = 149992 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:47:21,538 - [124134] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 07:47:21,539 - [124134] - 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 = 149992 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:47:21,834 - [124134] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 07:47:21,839 - [124134] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder,BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:47:22,121 - [124134] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 07:47:22,121 - [124134] - 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-03-16 07:47:22,404 - [124134] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-03-16 07:47:22,405 - [124134] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder, BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:47:22,689 - [124134] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 07:47:22,690 - [124134] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 10 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 133 AND EnitityNumberType = 'WorkOrder'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:47:22,976 - [124134] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 07:47:22,977 - [124134] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 10 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 133 AND EnitityNumberType = 'Invoice'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:47:23,263 - [124134] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 07:47:23,268 - [124134] - 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 = 149992... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:47:23,557 - [124134] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 07:47:23,563 - [124134] - src.utils.log - INFO - πŸ” Fetching data: SELECT x.CompanyId FROM CRM.CompanyMaster x WHERE CompanyKey = 'abcdallas';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:47:23,845 - [124134] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 07:47:23,846 - [124134] - src.utils.log - INFO - πŸ” Fetching data: SELECT CollectionStatus,IsHold,AccountNo FROM CRM.Account a WHERE a.AccountNo = '14668' and a.CompanyId = 121;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:47:24,128 - [124134] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 07:47:24,131 - [124134] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderNo FROM ServiceCore.WorkOrder WHERE WorkOrderNo IN ('1361690', '1361691', '1361692', '1361693', '1361694', '1361695', '1361696', '1361697', '1361698', '1361699') AND CompanyId = 133 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:47:24,420 - [124134] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 07:47:24,420 - [124134] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrder (skip triggers): 10 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:47:24,881 - [124134] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 10) into ServiceCore.WorkOrder (triggers skipped) - __SPLIT__ 2026-03-16 07:47:26,363 - [124134] - src.utils.log - INFO - βœ… All 10 rows inserted successfully into ServiceCore.WorkOrder in 1 batches (triggers skipped) - __SPLIT__ 2026-03-16 07:47:26,504 - [124134] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-03-16 07:47:26,506 - [124134] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkorderId, WorkOrderNo FROM ServiceCore.WorkOrder wo WHERE wo.WorkOrderNo IN ('1361690', '1361691', '1361692', '1361693', '1361694', '1361695', '1361696', '1361697', '1361698', '1361699') AND wo.AccountNumber = '14668' AND wo.CompanyId = 133 ... (Thread: ThreadPoolExecutor-9_0) - __SPLIT__ 2026-03-16 07:47:26,799 - [124134] - src.utils.log - INFO - βœ… Fetched 10 rows - __SPLIT__ 2026-03-16 07:47:26,800 - [124134] - src.utils.log - INFO - Sequential fetching temp table records - __SPLIT__ 2026-03-16 07:47:26,800 - [124134] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationServices woag WHERE woag.WorkOrderAutoGenerationId in (3430549, 3430550, 3430551, 3430552, 3430553, 3430554, 3430555, 3430556, 3430557, 3430558)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:47:27,127 - [124134] - src.utils.log - INFO - βœ… Fetched 20 rows - __SPLIT__ 2026-03-16 07:47:27,127 - [124134] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SubWorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (3430549, 3430550, 3430551, 3430552, 3430553, 3430554, 3430555, 3430556, 3430557, 3430558)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:47:27,413 - [124134] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 07:47:27,413 - [124134] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationCrews woag WHERE woag.WorkOrderAutoGenerationId in (3430549, 3430550, 3430551, 3430552, 3430553, 3430554, 3430555, 3430556, 3430557, 3430558)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:47:27,705 - [124134] - src.utils.log - INFO - βœ… Fetched 10 rows - __SPLIT__ 2026-03-16 07:47:27,705 - [124134] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationSalesPersonCommission woag WHERE woag.WorkOrderAutoGenerationId in (3430549, 3430550, 3430551, 3430552, 3430553, 3430554, 3430555, 3430556, 3430557, 3430558)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:47:27,989 - [124134] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 07:47:27,989 - [124134] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupAutoGenerationSourceMapping woag WHERE woag.WorkOrderAutoGenerationId in (3430549, 3430550, 3430551, 3430552, 3430553, 3430554, 3430555, 3430556, 3430557, 3430558)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:47:28,277 - [124134] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 07:47:28,277 - [124134] - 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 (3430549, 3430550, 3430551, 3430552, 3430553, 3430554, 3430555, 3430556, 3430557, 3430558)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:47:28,584 - [124134] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 07:47:28,584 - [124134] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from CRM.LeadNote woag WHERE woag.RefId in (3430549, 3430550, 3430551, 3430552, 3430553, 3430554, 3430555, 3430556, 3430557, 3430558) and woag.RefType = 'TempWorkorder';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:47:28,870 - [124134] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 07:47:28,870 - [124134] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment woagca WHERE woagca.WorkOrderAutoGenerationId in (3430549, 3430550, 3430551, 3430552, 3430553, 3430554, 3430555, 3430556, 3430557, 3430558);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:47:29,157 - [124134] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 07:47:29,159 - [124134] - src.utils.log - INFO - Updating temp tables - __SPLIT__ 2026-03-16 07:47:29,172 - [124134] - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyKey FROM Common.CompanyMaster cm WHERE CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:47:29,455 - [124134] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 07:47:29,455 - [124134] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 133 AND EnitityNumberType in ('SubWorkOrder'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:47:29,738 - [124134] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 07:47:29,742 - [124134] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-03-16 07:47:29,742 - [124134] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishHistory: 10 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:47:30,053 - [124134] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 10) into ServiceCore.WorkOrderAutoGenerationPublishHistory - __SPLIT__ 2026-03-16 07:47:31,098 - [124134] - src.utils.log - INFO - βœ… All 10 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishHistory in 1 batches - __SPLIT__ 2026-03-16 07:47:31,100 - [124134] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationPublishHistoryId, WorkOrderNo, ServiceSetupId FROM ServiceCore.WorkOrderAutoGenerationPublishHistory WHERE ServiceSetupId = 149992 AND WorkOrderNo IN ('4005501', '9772098', '9330266', '3480523', '1780290', '9107353', '1283810', '6828805', '3966970', '9499792') AND GenerateWorkOrderHistoryId = 124134;... (Thread: ThreadPoolExecutor-10_0) - __SPLIT__ 2026-03-16 07:47:31,421 - [124134] - src.utils.log - INFO - βœ… Fetched 10 rows - __SPLIT__ 2026-03-16 07:47:31,422 - [124134] - src.utils.log - INFO - 🏁 Final merged rows: 10 - __SPLIT__ 2026-03-16 07:47:31,428 - [124134] - src.utils.log - INFO - Sequential Insertion in work order tables begin - __SPLIT__ 2026-03-16 07:47:31,428 - [124134] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-03-16 07:47:31,428 - [124134] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderServices: 20 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:47:31,720 - [124134] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 20) into ServiceCore.WorkOrderServices - __SPLIT__ 2026-03-16 07:47:32,761 - [124134] - src.utils.log - INFO - βœ… All 20 rows inserted successfully into ServiceCore.WorkOrderServices in 1 batches - __SPLIT__ 2026-03-16 07:47:32,762 - [124134] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SubWorkOrder: - __SPLIT__ 2026-03-16 07:47:32,762 - [124134] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderAppliedDiscount: - __SPLIT__ 2026-03-16 07:47:32,762 - [124134] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderSalesPersonCommission: - __SPLIT__ 2026-03-16 07:47:32,762 - [124134] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderCommissionAdjustment: - __SPLIT__ 2026-03-16 07:47:32,762 - [124134] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-03-16 07:47:32,762 - [124134] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderCrew: 10 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:47:33,050 - [124134] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 10) into ServiceCore.WorkOrderCrew - __SPLIT__ 2026-03-16 07:47:34,055 - [124134] - src.utils.log - INFO - βœ… All 10 rows inserted successfully into ServiceCore.WorkOrderCrew in 1 batches - __SPLIT__ 2026-03-16 07:47:34,055 - [124134] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkorderSourceMapping: - __SPLIT__ 2026-03-16 07:47:34,056 - [124134] - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-03-16 07:47:34,056 - [124134] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-03-16 07:47:34,056 - [124134] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishServices: 20 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:47:34,347 - [124134] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 20) into ServiceCore.WorkOrderAutoGenerationPublishServices - __SPLIT__ 2026-03-16 07:47:35,369 - [124134] - src.utils.log - INFO - βœ… All 20 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishServices in 1 batches - __SPLIT__ 2026-03-16 07:47:35,369 - [124134] - 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 = 149992... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:47:35,653 - [124134] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 07:47:35,659 - [124134] - src.utils.log - INFO - Size of Transaction: 10 - __SPLIT__ 2026-03-16 07:47:35,660 - [124134] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 10 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:47:36,090 - [124134] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 10) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-03-16 07:47:37,093 - [124134] - src.utils.log - INFO - βœ… All 10 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-03-16 07:47:37,234 - [124134] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-03-16 07:47:37,235 - [124134] - 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) and t.CompanyId = 133 AND t.TransactionType ='Invoice' AND t.CreatedDate = '2026-03-16 03:47:35.654';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:47:37,675 - [124134] - src.utils.log - INFO - βœ… Fetched 10 rows - __SPLIT__ 2026-03-16 07:47:37,678 - [124134] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 149992;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:47:37,961 - [124134] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 07:47:37,970 - [124134] - src.utils.log - INFO - πŸ“ Executing: UPDATE Billing.[Transaction] SET ModifiedBy = NULL WHERE ModifiedBy IN (12345678910,12345678911,12345678912,12345678913,12345678914,12345678915,12345678916,12345678917,12345678918,12345678919) AND CreatedDate = '2026-03-16 03:47:35.654'; ... (Thread: ThreadPoolExecutor-11_0) - __SPLIT__ 2026-03-16 07:47:38,383 - [124134] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-03-16 07:47:38,389 - [124134] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-03-16 07:47:38,389 - [124134] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 10 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:47:38,681 - [124134] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 10) into Billing.Invoice - __SPLIT__ 2026-03-16 07:47:39,752 - [124134] - src.utils.log - INFO - βœ… All 10 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-03-16 07:47:39,752 - [124134] - src.utils.log - INFO - πŸ” Fetching data: SELECT InvoiceId, WorkOrderNo FROM Billing.Invoice i WHERE i.WorkOrderNo in ('1361699', '1361698', '1361697', '1361696', '1361695', '1361694', '1361693', '1361692', '1361691', '1361690')... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:47:40,153 - [124134] - src.utils.log - INFO - βœ… Fetched 10 rows - __SPLIT__ 2026-03-16 07:47:40,162 - [124134] - 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 = 149992 and sm.IsActive =1 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:47:40,450 - [124134] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-03-16 07:47:40,450 - [124134] - 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 = 149992 and sm.IsActive =1 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:47:40,738 - [124134] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 07:47:40,738 - [124134] - 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 = 149992 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:47:41,024 - [124134] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 07:47:41,024 - [124134] - 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 = 149992 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:47:41,310 - [124134] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 07:47:41,323 - [124134] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 149992;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:47:41,607 - [124134] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 07:47:41,613 - [124134] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId, AppliedDiscountAmt as AppliedDiscountAmount,IsActive ,ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 149992;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:47:41,897 - [124134] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 07:47:41,901 - [124134] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId,IsActive,DiscountAmount, IsDiscountPercent,DiscountPercent,DiscountDescription , ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 149992;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:47:42,186 - [124134] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 07:47:42,187 - [124134] - src.utils.log - INFO - Sequential Insertion in invoice tables begin - __SPLIT__ 2026-03-16 07:47:42,187 - [124134] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.AccountDiscountSetup: - __SPLIT__ 2026-03-16 07:47:42,187 - [124134] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-03-16 07:47:42,187 - [124134] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceCharges: 20 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:47:42,478 - [124134] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 20) into Billing.InvoiceCharges - __SPLIT__ 2026-03-16 07:47:43,497 - [124134] - src.utils.log - INFO - βœ… All 20 rows inserted successfully into Billing.InvoiceCharges in 1 batches - __SPLIT__ 2026-03-16 07:47:43,497 - [124134] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.DiscountApplied: - __SPLIT__ 2026-03-16 07:47:43,498 - [124134] - src.utils.log - INFO - Invoice Publish Done - __SPLIT__ 2026-03-16 07:47:43,498 - [124134] - src.utils.log - INFO - Updating Next GenerationDate - __SPLIT__ 2026-03-16 07:47:43,498 - [124134] - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, MAX(NextWorkOrderGenerationDate) AS MaxNextWorkOrderGeneration FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 124134 GROUP BY ServiceSetupId; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:47:43,782 - [124134] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 07:47:43,788 - [124134] - src.utils.log - INFO - πŸ”„ Updating next gen date sequentially: inside update_next_workorder_generation - __SPLIT__ 2026-03-16 07:47:43,930 - [124134] - src.utils.log - INFO - πŸ›  Creating temp table #tbl_d021f7e3a0 - __SPLIT__ 2026-03-16 07:47:44,215 - [124134] - src.utils.log - INFO - πŸ“Œ Bulk inserting 1 rows into #tbl_d021f7e3a0 - __SPLIT__ 2026-03-16 07:47:44,498 - [124134] - src.utils.log - INFO - πŸ” Running MERGE update to apply changes - __SPLIT__ 2026-03-16 07:47:44,648 - [124134] - src.utils.log - INFO - βœ” SQL reported affected rows: 1 - __SPLIT__ 2026-03-16 07:47:44,794 - [124134] - src.utils.log - INFO - πŸ” Verified successfully updated 1 rows via #tbl_d021f7e3a0 - __SPLIT__ 2026-03-16 07:47:44,795 - [124134] - src.utils.log - INFO - πŸŽ‰ Successfully updated NextGenerationDate using temp table #tbl_d021f7e3a0 - __SPLIT__ 2026-03-16 07:47:44,795 - [124134] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 124134 (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:47:45,079 - [124134] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-16 07:47:45,079 - [124134] - src.utils.log - INFO - Sequential deletion from temp tables begin - __SPLIT__ 2026-03-16 07:47:45,079 - [124134] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId in (3430549, 3430550, 3430551, 3430552, 3430553, 3430554, 3430555, 3430556, 3430557, 3430558) (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:47:45,482 - [124134] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-16 07:47:45,482 - [124134] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId in (3430549, 3430550, 3430551, 3430552, 3430553, 3430554, 3430555, 3430556, 3430557, 3430558) (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:47:45,787 - [124134] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-16 07:47:45,787 - [124134] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId in (3430549, 3430550, 3430551, 3430552, 3430553, 3430554, 3430555, 3430556, 3430557, 3430558) (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:47:46,071 - [124134] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-16 07:47:46,071 - [124134] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId in (3430549, 3430550, 3430551, 3430552, 3430553, 3430554, 3430555, 3430556, 3430557, 3430558) (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:47:46,410 - [124134] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-16 07:47:46,410 - [124134] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId in (3430549, 3430550, 3430551, 3430552, 3430553, 3430554, 3430555, 3430556, 3430557, 3430558) (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:47:46,702 - [124134] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-16 07:47:46,702 - [124134] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (3430549, 3430550, 3430551, 3430552, 3430553, 3430554, 3430555, 3430556, 3430557, 3430558) (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:47:46,986 - [124134] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-16 07:47:46,986 - [124134] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId in (3430549, 3430550, 3430551, 3430552, 3430553, 3430554, 3430555, 3430556, 3430557, 3430558) (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:47:47,270 - [124134] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-16 07:47:47,270 - [124134] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (3430549, 3430550, 3430551, 3430552, 3430553, 3430554, 3430555, 3430556, 3430557, 3430558) (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:47:47,816 - [124134] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-16 07:47:47,816 - [124134] - src.utils.log - INFO - Work order published ids: (3430549, 3430550, 3430551, 3430552, 3430553, 3430554, 3430555, 3430556, 3430557, 3430558) - __SPLIT__ 2026-03-16 07:47:47,816 - [124134] - src.utils.log - INFO - Time took to perform operation in publishing [124134]: 31.27 - __SPLIT__ 2026-03-16 07:47:47,817 - [124134] - src.utils.log - INFO - Publish Completed for GenerateWorkOrderHistoryId: [124134] - __SPLIT__ 2026-03-16 07:47:47,817 - [124134] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-03-16 03:47:47.816' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124134;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 07:47:48,100 - [124134] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-03-16 08:29:04,173 - 124137 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=124137 - __SPLIT__ 2026-03-16 08:29:04,174 - 124137 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 124137 - __SPLIT__ 2026-03-16 08:29:04,175 - 124137 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-03-16 08:29:04,175 - 124137 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:29:06,328 - 124137 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 08:29:06,329 - 124137 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-03-16 08:29:06,329 - 124137 - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-03-16 08:29:06,330 - 124137 - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-03-16 08:29:06,330 - 124137 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 124137;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:29:08,214 - 124137 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-03-16 08:29:08,214 - 124137 - 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 = 124137), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 124137), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 124137 AND ss.FrequencyScheduleId IS NOT NULL AND ss.IsActive = 1 AND ss.IsDeleted = 0 AND ss.Status <> 'Canceled';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:29:08,586 - 124137 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 08:29:08,586 - 124137 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 124137;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:29:08,857 - 124137 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 08:29:08,860 - 124137 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-03-16 08:29:08,861 - 124137 - src.utils.log - INFO - πŸ” Fetching data: SELECT fsd.IntervalDays, fs.CreatedDate ,f.FrequencyId , fs.FrequencyScheduleId, f.[SysName], f.FrequencyValue, f.YearlyOccurrence , fs.ScheduleFormat,fsd.Days, fsd.Weeks, fsd.Months,fsc.[Month] as sch_months, fsd.StartMonth , fsd.DateDay,fsd.DateMonth FROM [ServiceCore].[FrequencyMaster] f inner join [ServiceCore].[FrequencySchedule] fs on fs.FrequencyId = f.FrequencyId left join ServiceCore.FrequencyScheduleCycle fsc on fsc.FrequencyScheduleId = fs.FrequencyScheduleId left join [ServiceCore].[FrequencyScheduleDetail] fsd on fsd.FrequencyScheduleId = fs.FrequencyScheduleId WHERE fsd.FrequencyScheduleId = 14845... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:29:09,141 - 124137 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 08:29:09,141 - 124137 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-03-16 08:29:09,144 - 124137 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-03-16 08:29:09,144 - 124137 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 119402;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:29:09,414 - 124137 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 08:29:09,415 - 124137 - src.utils.log - INFO - πŸ” Fetching data: select ServiceDate, ServiceSetupId from serviceCore.WorkOrder wo inner join ServiceCore.WorkOrderStatus wos on wo.WoStatusId = wos.WoStatusId where ServiceDate >= '2026-03-16 00:00:00' and ServiceDate <= '2028-06-30 00:00:00' and ServiceSetupId = 119402 and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:29:09,695 - 124137 - src.utils.log - INFO - βœ… Fetched 194 rows - __SPLIT__ 2026-03-16 08:29:10,266 - 124137 - src.utils.log - INFO - Generating work orders for setup: 119402 - __SPLIT__ 2026-03-16 08:29:10,996 - 124137 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-03-16 08:29:11,007 - 124137 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=133 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:29:11,276 - 124137 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 08:29:11,280 - 124137 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-03-16 08:29:11,281 - 124137 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-03-16 08:29:11,281 - 124137 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 119402 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:29:11,577 - 124137 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-16 08:29:11,577 - 124137 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 119402 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:29:11,895 - 124137 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-16 08:29:11,895 - 124137 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 119402 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:29:12,180 - 124137 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-16 08:29:12,180 - 124137 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 119402 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:29:12,470 - 124137 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-16 08:29:12,470 - 124137 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 119402 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:29:12,763 - 124137 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-16 08:29:12,763 - 124137 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 119402 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:29:13,048 - 124137 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-16 08:29:13,048 - 124137 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 119402 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:29:13,327 - 124137 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-16 08:29:13,327 - 124137 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 119402 (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:29:14,776 - 124137 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-16 08:29:14,776 - 124137 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-03-16 08:29:14,776 - 124137 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 43 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:29:15,107 - 124137 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 43) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-03-16 08:29:17,583 - 124137 - src.utils.log - INFO - βœ… All 43 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-03-16 08:29:17,584 - 124137 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 43 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-03-16 12:12:22.250' and ServiceSetupId = 119402... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:29:17,902 - 124137 - src.utils.log - INFO - βœ… Fetched 43 rows - __SPLIT__ 2026-03-16 08:29:17,903 - 124137 - src.utils.log - INFO - Id's of work order inserted to DB: [3448860 3448861 3448862 3448863 3448864 3448865 3448866 3448867 3448868 3448869 3448845 3448870 3448871 3448872 3448873 3448874 3448846 3448875 3448876 3448847 3448877 3448848 3448878 3448849 3448879 3448880 3448850 3448881 3448851 3448882 3448852 3448883 3448853 3448854 3448884 3448855 3448856 3448857 3448858 3448885 3448886 3448859 3448887] - __SPLIT__ 2026-03-16 08:29:17,903 - 124137 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 119402;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:29:18,173 - 124137 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 08:29:18,173 - 124137 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-03-16 08:29:18,174 - 124137 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId = 119402... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:29:18,444 - 124137 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 08:29:18,444 - 124137 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId = 119402... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:29:18,714 - 124137 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 08:29:18,718 - 124137 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId = 119402... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:29:18,995 - 124137 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 08:29:18,997 - 124137 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId = 119402... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:29:19,266 - 124137 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 08:29:19,267 - 124137 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId = 119402... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:29:19,535 - 124137 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 08:29:19,535 - 124137 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId = 119402;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:29:19,805 - 124137 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 08:29:19,805 - 124137 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId = 119402;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:29:20,074 - 124137 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 08:29:20,075 - 124137 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId = 119402;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:29:20,374 - 124137 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 08:29:20,374 - 124137 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId = 119402;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:29:20,644 - 124137 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 08:29:20,656 - 124137 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-03-16 08:29:20,656 - 124137 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-03-16 08:29:20,656 - 124137 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-03-16 08:29:20,656 - 124137 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.CommunicationPreferencesServiceReportNotification: - __SPLIT__ 2026-03-16 08:29:20,656 - 124137 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-03-16 08:29:20,656 - 124137 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-03-16 08:29:20,657 - 124137 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ('3448846', '3448873', '3448882', '3448867', '3448886', '3448852', '3448849', '3448884', '3448855', '3448874', '3448848', '3448857', '3448856', '3448871', '3448853', '3448865', '3448851', '3448872', '3448880', '3448859', '3448860', '3448877', '3448866', '3448881', '3448869', '3448858', '3448868', '3448876', '3448861', '3448863', '3448864', '3448879', '3448887', '3448883', '3448878', '3448854', '3448875', '3448885', '3448845', '3448862', '3448847', '3448870', '3448850') ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:29:20,927 - 124137 - src.utils.log - INFO - βœ… Fetched 43 rows - __SPLIT__ 2026-03-16 08:29:20,928 - 124137 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.SetupAutoGenerationSourceMapping: 0 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:29:21,221 - 124137 - src.utils.log - INFO - βœ… All 0 rows inserted successfully into ServiceCore.SetupAutoGenerationSourceMapping in 0 batches - __SPLIT__ 2026-03-16 08:29:21,221 - 124137 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-03-16 08:29:21,221 - 124137 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationAppliedDiscount: - __SPLIT__ 2026-03-16 08:29:21,221 - 124137 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-03-16 08:29:21,221 - 124137 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SubWorkOrderAutoGeneration: - __SPLIT__ 2026-03-16 08:29:21,222 - 124137 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-03-16 08:29:21,222 - 124137 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: - __SPLIT__ 2026-03-16 08:29:21,222 - 124137 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-03-16 08:29:21,222 - 124137 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: - __SPLIT__ 2026-03-16 08:29:21,222 - 124137 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-03-16 08:29:21,222 - 124137 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-03-16 08:29:21,222 - 124137 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3448845, 3448846, 3448847, 3448848, 3448849, 3448850, 3448851, 3448852, 3448853, 3448854, 3448855, 3448856, 3448857, 3448858, 3448859, 3448860, 3448861, 3448862, 3448863, 3448864, 3448865, 3448866, 3448867, 3448868, 3448869, 3448870, 3448871, 3448872, 3448873, 3448874, 3448875, 3448876, 3448877, 3448878, 3448879, 3448880, 3448881, 3448882, 3448883, 3448884, 3448885, 3448886, 3448887) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:29:21,493 - 124137 - src.utils.log - INFO - βœ… Fetched 43 rows - __SPLIT__ 2026-03-16 08:29:21,494 - 124137 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationCrews: 43 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:29:21,766 - 124137 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 43) into ServiceCore.WorkOrderAutoGenerationCrews - __SPLIT__ 2026-03-16 08:29:22,735 - 124137 - src.utils.log - INFO - βœ… All 43 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationCrews in 1 batches - __SPLIT__ 2026-03-16 08:29:22,736 - 124137 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-03-16 08:29:22,736 - 124137 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationServices: - __SPLIT__ 2026-03-16 08:29:22,736 - 124137 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-03-16 08:29:22,736 - 124137 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-03-16 08:29:22,736 - 124137 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 43 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:29:23,037 - 124137 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 43) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-03-16 08:29:24,034 - 124137 - src.utils.log - INFO - βœ… All 43 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-03-16 08:29:24,034 - 124137 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-03-16 08:29:24,034 - 124137 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 124137;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:29:24,341 - 124137 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-03-16 08:29:24,341 - 124137 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-03-16 08:29:24,341 - 124137 - src.utils.log - INFO - Time took to perform operation: 20.17 - __SPLIT__ 2026-03-16 08:29:24,341 - 124137 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 124137;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:29:24,609 - 124137 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-03-16 08:29:24,610 - 124137 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET WorkOrderStatusDateTime = '2026-03-16 04:29:24.609' WHERE GenerateWorkOrderHistoryId = 124137;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:29:24,881 - 124137 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-03-16 08:40:36,511 - [124138] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[] user_id=43135 company_id=133 project_id=[124138] publish_all=True - __SPLIT__ 2026-03-16 08:40:36,512 - [124138] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[] user_id=43135 company_id=133 project_id=[124138] publish_all=True - __SPLIT__ 2026-03-16 08:40:36,512 - [124138] - src.utils.log - INFO - Sequential Work order publish in progress for GenerateWorkOrderHistoryId: [124138] - __SPLIT__ 2026-03-16 08:40:36,513 - [124138] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-03-16 08:40:36,513 - [124138] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:40:38,485 - [124138] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 08:40:38,485 - [124138] - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-03-16 08:40:38,486 - [124138] - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-03-16 08:40:38,486 - [124138] - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-03-16 08:40:38,486 - [124138] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'InProgress' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124138;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:40:40,437 - [124138] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-03-16 08:40:40,437 - [124138] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGeneration woag WHERE woag.GenerateWorkOrderHistoryId = 124138... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:40:40,774 - [124138] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-03-16 08:40:40,774 - [124138] - src.utils.log - INFO - Inside get_work_order_table - __SPLIT__ 2026-03-16 08:40:40,775 - [124138] - 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 = 149921 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:40:41,066 - [124138] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 08:40:41,067 - [124138] - 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 = 149921 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:40:41,356 - [124138] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 08:40:41,357 - [124138] - 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 = 149921 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:40:41,648 - [124138] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 08:40:41,652 - [124138] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder,BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:40:41,930 - [124138] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 08:40:41,930 - [124138] - 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-03-16 08:40:42,209 - [124138] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-03-16 08:40:42,210 - [124138] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder, BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:40:42,487 - [124138] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 08:40:42,487 - [124138] - 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-03-16 08:40:42,769 - [124138] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 08:40:42,770 - [124138] - 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-03-16 08:40:43,052 - [124138] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 08:40:43,056 - [124138] - 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 = 149921... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:40:43,340 - [124138] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 08:40:43,343 - [124138] - src.utils.log - INFO - πŸ” Fetching data: SELECT x.CompanyId FROM CRM.CompanyMaster x WHERE CompanyKey = 'abcdallas';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:40:43,622 - [124138] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 08:40:43,622 - [124138] - src.utils.log - INFO - πŸ” Fetching data: SELECT CollectionStatus,IsHold,AccountNo FROM CRM.Account a WHERE a.AccountNo = '14638' and a.CompanyId = 121;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:40:43,901 - [124138] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 08:40:43,904 - [124138] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderNo FROM ServiceCore.WorkOrder WHERE WorkOrderNo IN ('1361759', '1361760') AND CompanyId = 133 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:40:44,187 - [124138] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 08:40:44,187 - [124138] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrder (skip triggers): 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:40:44,662 - [124138] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrder (triggers skipped) - __SPLIT__ 2026-03-16 08:40:45,733 - [124138] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrder in 1 batches (triggers skipped) - __SPLIT__ 2026-03-16 08:40:45,871 - [124138] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-03-16 08:40:45,873 - [124138] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.ServiceSetup SET IsInitialWoGenerated = 1 WHERE CompanyId = 133 AND ServiceSetupId = 149921;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:40:46,155 - [124138] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-03-16 08:40:46,156 - [124138] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkorderId, WorkOrderNo FROM ServiceCore.WorkOrder wo WHERE wo.WorkOrderNo IN ('1361759', '1361760') AND wo.AccountNumber = '14638' AND wo.CompanyId = 133 ... (Thread: ThreadPoolExecutor-12_0) - __SPLIT__ 2026-03-16 08:40:46,443 - [124138] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-03-16 08:40:46,444 - [124138] - src.utils.log - INFO - Sequential fetching temp table records - __SPLIT__ 2026-03-16 08:40:46,444 - [124138] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationServices woag WHERE woag.WorkOrderAutoGenerationId in (3448888, 3448889)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:40:46,763 - [124138] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-03-16 08:40:46,764 - [124138] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SubWorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (3448888, 3448889)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:40:47,043 - [124138] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 08:40:47,044 - [124138] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationCrews woag WHERE woag.WorkOrderAutoGenerationId in (3448888, 3448889)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:40:47,337 - [124138] - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-03-16 08:40:47,337 - [124138] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationSalesPersonCommission woag WHERE woag.WorkOrderAutoGenerationId in (3448888, 3448889)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:40:47,616 - [124138] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 08:40:47,617 - [124138] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupAutoGenerationSourceMapping woag WHERE woag.WorkOrderAutoGenerationId in (3448888, 3448889)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:40:47,898 - [124138] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 08:40:47,898 - [124138] - 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 (3448888, 3448889)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:40:48,199 - [124138] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 08:40:48,199 - [124138] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from CRM.LeadNote woag WHERE woag.RefId in (3448888, 3448889) and woag.RefType = 'TempWorkorder';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:40:48,481 - [124138] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 08:40:48,481 - [124138] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment woagca WHERE woagca.WorkOrderAutoGenerationId in (3448888, 3448889);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:40:48,760 - [124138] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 08:40:48,763 - [124138] - src.utils.log - INFO - Updating temp tables - __SPLIT__ 2026-03-16 08:40:48,776 - [124138] - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyKey FROM Common.CompanyMaster cm WHERE CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:40:49,055 - [124138] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 08:40:49,055 - [124138] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 133 AND EnitityNumberType in ('SubWorkOrder'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:40:49,334 - [124138] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 08:40:49,338 - [124138] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-03-16 08:40:49,339 - [124138] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishHistory: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:40:49,665 - [124138] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationPublishHistory - __SPLIT__ 2026-03-16 08:40:50,667 - [124138] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishHistory in 1 batches - __SPLIT__ 2026-03-16 08:40:50,668 - [124138] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationPublishHistoryId, WorkOrderNo, ServiceSetupId FROM ServiceCore.WorkOrderAutoGenerationPublishHistory WHERE ServiceSetupId = 149921 AND WorkOrderNo IN ('514545', '3257896') AND GenerateWorkOrderHistoryId = 124138;... (Thread: ThreadPoolExecutor-13_0) - __SPLIT__ 2026-03-16 08:40:50,982 - [124138] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-03-16 08:40:50,983 - [124138] - src.utils.log - INFO - 🏁 Final merged rows: 2 - __SPLIT__ 2026-03-16 08:40:50,989 - [124138] - src.utils.log - INFO - Sequential Insertion in work order tables begin - __SPLIT__ 2026-03-16 08:40:50,989 - [124138] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-03-16 08:40:50,989 - [124138] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderServices: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:40:51,298 - [124138] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderServices - __SPLIT__ 2026-03-16 08:40:52,298 - [124138] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderServices in 1 batches - __SPLIT__ 2026-03-16 08:40:52,299 - [124138] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SubWorkOrder: - __SPLIT__ 2026-03-16 08:40:52,299 - [124138] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderAppliedDiscount: - __SPLIT__ 2026-03-16 08:40:52,299 - [124138] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderSalesPersonCommission: - __SPLIT__ 2026-03-16 08:40:52,299 - [124138] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderCommissionAdjustment: - __SPLIT__ 2026-03-16 08:40:52,299 - [124138] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-03-16 08:40:52,299 - [124138] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderCrew: 4 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:40:52,605 - [124138] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 4) into ServiceCore.WorkOrderCrew - __SPLIT__ 2026-03-16 08:40:53,597 - [124138] - src.utils.log - INFO - βœ… All 4 rows inserted successfully into ServiceCore.WorkOrderCrew in 1 batches - __SPLIT__ 2026-03-16 08:40:53,598 - [124138] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkorderSourceMapping: - __SPLIT__ 2026-03-16 08:40:53,598 - [124138] - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-03-16 08:40:53,598 - [124138] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-03-16 08:40:53,598 - [124138] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishServices: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:40:53,907 - [124138] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationPublishServices - __SPLIT__ 2026-03-16 08:40:54,895 - [124138] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishServices in 1 batches - __SPLIT__ 2026-03-16 08:40:54,896 - [124138] - 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 = 149921... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:40:55,174 - [124138] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 08:40:55,181 - [124138] - src.utils.log - INFO - Size of Transaction: 2 - __SPLIT__ 2026-03-16 08:40:55,182 - [124138] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:40:55,629 - [124138] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-03-16 08:40:56,664 - [124138] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-03-16 08:40:56,802 - [124138] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-03-16 08:40:56,803 - [124138] - 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-03-16 04:40:55.176';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:40:57,239 - [124138] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-03-16 08:40:57,242 - [124138] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 149921;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:40:57,521 - [124138] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 08:40:57,529 - [124138] - src.utils.log - INFO - πŸ“ Executing: UPDATE Billing.[Transaction] SET ModifiedBy = NULL WHERE ModifiedBy IN (12345678910,12345678911) AND CreatedDate = '2026-03-16 04:40:55.176'; ... (Thread: ThreadPoolExecutor-14_0) - __SPLIT__ 2026-03-16 08:40:57,932 - [124138] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-03-16 08:40:57,937 - [124138] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-03-16 08:40:57,937 - [124138] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:40:58,245 - [124138] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.Invoice - __SPLIT__ 2026-03-16 08:40:59,269 - [124138] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-03-16 08:40:59,270 - [124138] - src.utils.log - INFO - πŸ” Fetching data: SELECT InvoiceId, WorkOrderNo FROM Billing.Invoice i WHERE i.WorkOrderNo in ('1361759', '1361760')... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:40:59,614 - [124138] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-03-16 08:40:59,624 - [124138] - 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 = 149921 and sm.IsActive =1 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:40:59,906 - [124138] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 08:40:59,907 - [124138] - 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 = 149921 and sm.IsActive =1 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:41:00,191 - [124138] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 08:41:00,192 - [124138] - 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 = 149921 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:41:00,473 - [124138] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 08:41:00,473 - [124138] - 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 = 149921 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:41:00,754 - [124138] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 08:41:00,766 - [124138] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 149921;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:41:01,045 - [124138] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 08:41:01,051 - [124138] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId, AppliedDiscountAmt as AppliedDiscountAmount,IsActive ,ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 149921;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:41:01,331 - [124138] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 08:41:01,334 - [124138] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId,IsActive,DiscountAmount, IsDiscountPercent,DiscountPercent,DiscountDescription , ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 149921;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:41:01,614 - [124138] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 08:41:01,614 - [124138] - src.utils.log - INFO - Sequential Insertion in invoice tables begin - __SPLIT__ 2026-03-16 08:41:01,615 - [124138] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.AccountDiscountSetup: - __SPLIT__ 2026-03-16 08:41:01,615 - [124138] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-03-16 08:41:01,615 - [124138] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceCharges: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:41:01,923 - [124138] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.InvoiceCharges - __SPLIT__ 2026-03-16 08:41:02,908 - [124138] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.InvoiceCharges in 1 batches - __SPLIT__ 2026-03-16 08:41:02,908 - [124138] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.DiscountApplied: - __SPLIT__ 2026-03-16 08:41:02,908 - [124138] - src.utils.log - INFO - Invoice Publish Done - __SPLIT__ 2026-03-16 08:41:02,909 - [124138] - src.utils.log - INFO - Updating Next GenerationDate - __SPLIT__ 2026-03-16 08:41:02,909 - [124138] - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, MAX(NextWorkOrderGenerationDate) AS MaxNextWorkOrderGeneration FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 124138 GROUP BY ServiceSetupId; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:41:03,189 - [124138] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 08:41:03,195 - [124138] - src.utils.log - INFO - πŸ”„ Updating next gen date sequentially: inside update_next_workorder_generation - __SPLIT__ 2026-03-16 08:41:03,335 - [124138] - src.utils.log - INFO - πŸ›  Creating temp table #tbl_ff9d53578a - __SPLIT__ 2026-03-16 08:41:03,614 - [124138] - src.utils.log - INFO - πŸ“Œ Bulk inserting 1 rows into #tbl_ff9d53578a - __SPLIT__ 2026-03-16 08:41:03,892 - [124138] - src.utils.log - INFO - πŸ” Running MERGE update to apply changes - __SPLIT__ 2026-03-16 08:41:04,040 - [124138] - src.utils.log - INFO - βœ” SQL reported affected rows: 1 - __SPLIT__ 2026-03-16 08:41:04,184 - [124138] - src.utils.log - INFO - πŸ” Verified successfully updated 1 rows via #tbl_ff9d53578a - __SPLIT__ 2026-03-16 08:41:04,184 - [124138] - src.utils.log - INFO - πŸŽ‰ Successfully updated NextGenerationDate using temp table #tbl_ff9d53578a - __SPLIT__ 2026-03-16 08:41:04,184 - [124138] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 124138 (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:41:04,462 - [124138] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-16 08:41:04,463 - [124138] - src.utils.log - INFO - Sequential deletion from temp tables begin - __SPLIT__ 2026-03-16 08:41:04,463 - [124138] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId in (3448888, 3448889) (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:41:04,868 - [124138] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-16 08:41:04,868 - [124138] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId in (3448888, 3448889) (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:41:05,179 - [124138] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-16 08:41:05,180 - [124138] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId in (3448888, 3448889) (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:41:05,459 - [124138] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-16 08:41:05,459 - [124138] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId in (3448888, 3448889) (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:41:05,797 - [124138] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-16 08:41:05,797 - [124138] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId in (3448888, 3448889) (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:41:06,083 - [124138] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-16 08:41:06,083 - [124138] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (3448888, 3448889) (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:41:06,362 - [124138] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-16 08:41:06,363 - [124138] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId in (3448888, 3448889) (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:41:06,641 - [124138] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-16 08:41:06,642 - [124138] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (3448888, 3448889) (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:41:06,991 - [124138] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-16 08:41:06,991 - [124138] - src.utils.log - INFO - Work order published ids: (3448888, 3448889) - __SPLIT__ 2026-03-16 08:41:06,991 - [124138] - src.utils.log - INFO - Time took to perform operation in publishing [124138]: 30.48 - __SPLIT__ 2026-03-16 08:41:06,991 - [124138] - src.utils.log - INFO - Publish Completed for GenerateWorkOrderHistoryId: [124138] - __SPLIT__ 2026-03-16 08:41:06,992 - [124138] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-03-16 04:41:06.991' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124138;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:41:07,273 - [124138] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-03-16 08:48:30,490 - 124140 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=124140 - __SPLIT__ 2026-03-16 08:48:30,490 - 124140 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 124140 - __SPLIT__ 2026-03-16 08:48:30,491 - 124140 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-03-16 08:48:30,491 - 124140 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:48:32,485 - 124140 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 08:48:32,485 - 124140 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-03-16 08:48:32,486 - 124140 - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-03-16 08:48:32,486 - 124140 - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-03-16 08:48:32,486 - 124140 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 124140;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:48:34,349 - 124140 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-03-16 08:48:34,349 - 124140 - 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 = 124140), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 124140), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 124140 AND ss.FrequencyScheduleId IS NOT NULL AND ss.IsActive = 1 AND ss.IsDeleted = 0 AND ss.Status <> 'Canceled';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:48:34,730 - 124140 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 08:48:34,731 - 124140 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 124140;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:48:34,998 - 124140 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 08:48:35,001 - 124140 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-03-16 08:48:35,002 - 124140 - 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 = 14725... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:48:35,280 - 124140 - src.utils.log - INFO - βœ… Fetched 60 rows - __SPLIT__ 2026-03-16 08:48:35,280 - 124140 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-03-16 08:48:35,283 - 124140 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-03-16 08:48:35,283 - 124140 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 149927;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:48:35,551 - 124140 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 08:48:35,551 - 124140 - src.utils.log - INFO - πŸ” Fetching data: select ServiceDate, ServiceSetupId from serviceCore.WorkOrder wo inner join ServiceCore.WorkOrderStatus wos on wo.WoStatusId = wos.WoStatusId where ServiceDate >= '2026-03-01 00:00:00' and ServiceDate <= '2026-05-31 00:00:00' and ServiceSetupId = 149927 and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:48:35,828 - 124140 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 08:48:36,389 - 124140 - src.utils.log - INFO - Generating work orders for setup: 149927 - __SPLIT__ 2026-03-16 08:48:36,555 - 124140 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 11435;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:48:36,821 - 124140 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 08:48:36,829 - 124140 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 11427;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:48:37,095 - 124140 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 08:48:37,132 - 124140 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-03-16 08:48:37,137 - 124140 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=133 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:48:37,402 - 124140 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 08:48:37,407 - 124140 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-03-16 08:48:37,407 - 124140 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-03-16 08:48:37,407 - 124140 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 149927 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:48:37,712 - 124140 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-16 08:48:37,712 - 124140 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 149927 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:48:37,999 - 124140 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-16 08:48:38,000 - 124140 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 149927 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:48:38,273 - 124140 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-16 08:48:38,273 - 124140 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 149927 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:48:38,560 - 124140 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-16 08:48:38,560 - 124140 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 149927 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:48:38,851 - 124140 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-16 08:48:38,851 - 124140 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 149927 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:48:39,123 - 124140 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-16 08:48:39,123 - 124140 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 149927 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:48:39,395 - 124140 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-16 08:48:39,396 - 124140 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 149927 (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:48:40,403 - 124140 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-16 08:48:40,403 - 124140 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-03-16 08:48:40,403 - 124140 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 12 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:48:40,705 - 124140 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 12) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-03-16 08:48:42,138 - 124140 - src.utils.log - INFO - βœ… All 12 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-03-16 08:48:42,139 - 124140 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 12 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-03-16 12:12:22.250' and ServiceSetupId = 149927... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:48:42,422 - 124140 - src.utils.log - INFO - βœ… Fetched 12 rows - __SPLIT__ 2026-03-16 08:48:42,423 - 124140 - src.utils.log - INFO - Id's of work order inserted to DB: [3448890 3448891 3448892 3448893 3448894 3448895 3448896 3448897 3448898 3448899 3448900 3448901] - __SPLIT__ 2026-03-16 08:48:42,423 - 124140 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 149927;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:48:42,689 - 124140 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 08:48:42,690 - 124140 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-03-16 08:48:42,690 - 124140 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId = 149927... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:48:42,959 - 124140 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 08:48:42,959 - 124140 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId = 149927... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:48:43,226 - 124140 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 08:48:43,234 - 124140 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId = 149927... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:48:43,508 - 124140 - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-03-16 08:48:43,510 - 124140 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId = 149927... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:48:43,776 - 124140 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 08:48:43,777 - 124140 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId = 149927... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:48:44,042 - 124140 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 08:48:44,043 - 124140 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId = 149927;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:48:44,311 - 124140 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 08:48:44,311 - 124140 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId = 149927;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:48:44,577 - 124140 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 08:48:44,578 - 124140 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId = 149927;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:48:44,864 - 124140 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 08:48:44,864 - 124140 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId = 149927;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:48:45,133 - 124140 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 08:48:45,146 - 124140 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-03-16 08:48:45,147 - 124140 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-03-16 08:48:45,147 - 124140 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-03-16 08:48:45,147 - 124140 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.CommunicationPreferencesServiceReportNotification: - __SPLIT__ 2026-03-16 08:48:45,147 - 124140 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-03-16 08:48:45,147 - 124140 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SetupAutoGenerationSourceMapping: - __SPLIT__ 2026-03-16 08:48:45,147 - 124140 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-03-16 08:48:45,147 - 124140 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationAppliedDiscount: - __SPLIT__ 2026-03-16 08:48:45,147 - 124140 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-03-16 08:48:45,147 - 124140 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SubWorkOrderAutoGeneration: - __SPLIT__ 2026-03-16 08:48:45,147 - 124140 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-03-16 08:48:45,147 - 124140 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: - __SPLIT__ 2026-03-16 08:48:45,147 - 124140 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-03-16 08:48:45,147 - 124140 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: - __SPLIT__ 2026-03-16 08:48:45,147 - 124140 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-03-16 08:48:45,148 - 124140 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-03-16 08:48:45,148 - 124140 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3448896, 3448897, 3448898, 3448899, 3448900, 3448901, 3448890, 3448891, 3448892, 3448893, 3448894, 3448895) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:48:45,417 - 124140 - src.utils.log - INFO - βœ… Fetched 12 rows - __SPLIT__ 2026-03-16 08:48:45,418 - 124140 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationCrews: 24 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:48:45,688 - 124140 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 24) into ServiceCore.WorkOrderAutoGenerationCrews - __SPLIT__ 2026-03-16 08:48:46,641 - 124140 - src.utils.log - INFO - βœ… All 24 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationCrews in 1 batches - __SPLIT__ 2026-03-16 08:48:46,641 - 124140 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-03-16 08:48:46,641 - 124140 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-03-16 08:48:46,641 - 124140 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:48:46,915 - 124140 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-03-16 08:48:47,857 - 124140 - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-03-16 08:48:47,858 - 124140 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-03-16 08:48:47,858 - 124140 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-03-16 08:48:47,858 - 124140 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 11 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:48:48,132 - 124140 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 11) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-03-16 08:48:49,086 - 124140 - src.utils.log - INFO - βœ… All 11 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-03-16 08:48:49,086 - 124140 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-03-16 08:48:49,087 - 124140 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 124140;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:48:49,354 - 124140 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-03-16 08:48:49,354 - 124140 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-03-16 08:48:49,354 - 124140 - src.utils.log - INFO - Time took to perform operation: 18.86 - __SPLIT__ 2026-03-16 08:48:49,354 - 124140 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 124140;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:48:49,621 - 124140 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-03-16 08:48:49,621 - 124140 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET WorkOrderStatusDateTime = '2026-03-16 04:48:49.621' WHERE GenerateWorkOrderHistoryId = 124140;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:48:49,891 - 124140 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-03-16 08:49:00,698 - [124140] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[] user_id=43135 company_id=133 project_id=[124140] publish_all=True - __SPLIT__ 2026-03-16 08:49:00,699 - [124140] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[] user_id=43135 company_id=133 project_id=[124140] publish_all=True - __SPLIT__ 2026-03-16 08:49:00,699 - [124140] - src.utils.log - INFO - Sequential Work order publish in progress for GenerateWorkOrderHistoryId: [124140] - __SPLIT__ 2026-03-16 08:49:00,699 - [124140] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-03-16 08:49:00,700 - [124140] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:49:02,804 - [124140] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 08:49:02,805 - [124140] - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-03-16 08:49:02,805 - [124140] - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-03-16 08:49:02,806 - [124140] - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-03-16 08:49:02,806 - [124140] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'InProgress' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124140;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:49:04,702 - [124140] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-03-16 08:49:04,702 - [124140] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGeneration woag WHERE woag.GenerateWorkOrderHistoryId = 124140... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:49:05,026 - [124140] - src.utils.log - INFO - βœ… Fetched 12 rows - __SPLIT__ 2026-03-16 08:49:05,026 - [124140] - src.utils.log - INFO - Inside get_work_order_table - __SPLIT__ 2026-03-16 08:49:05,026 - [124140] - 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 = 149927 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:49:05,308 - [124140] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 08:49:05,308 - [124140] - 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 = 149927 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:49:05,587 - [124140] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 08:49:05,587 - [124140] - 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 = 149927 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:49:05,870 - [124140] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 08:49:05,875 - [124140] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder,BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:49:06,144 - [124140] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 08:49:06,145 - [124140] - 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-03-16 08:49:06,414 - [124140] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-03-16 08:49:06,414 - [124140] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder, BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:49:06,684 - [124140] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 08:49:06,684 - [124140] - 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-03-16 08:49:06,958 - [124140] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 08:49:06,959 - [124140] - 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-03-16 08:49:07,235 - [124140] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 08:49:07,240 - [124140] - 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 = 149927... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:49:07,515 - [124140] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 08:49:07,522 - [124140] - src.utils.log - INFO - πŸ” Fetching data: SELECT x.CompanyId FROM CRM.CompanyMaster x WHERE CompanyKey = 'abcdallas';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:49:07,791 - [124140] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 08:49:07,792 - [124140] - src.utils.log - INFO - πŸ” Fetching data: SELECT CollectionStatus,IsHold,AccountNo FROM CRM.Account a WHERE a.AccountNo = '14638' and a.CompanyId = 121;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:49:08,064 - [124140] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 08:49:08,067 - [124140] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderNo FROM ServiceCore.WorkOrder WHERE WorkOrderNo IN ('1361761', '1361762', '1361763', '1361764', '1361765', '1361766', '1361767', '1361768', '1361769', '1361770', '1361771', '1361772') AND CompanyId = 133 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:49:08,343 - [124140] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 08:49:08,344 - [124140] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrder (skip triggers): 12 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:49:08,782 - [124140] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 12) into ServiceCore.WorkOrder (triggers skipped) - __SPLIT__ 2026-03-16 08:49:10,344 - [124140] - src.utils.log - INFO - βœ… All 12 rows inserted successfully into ServiceCore.WorkOrder in 1 batches (triggers skipped) - __SPLIT__ 2026-03-16 08:49:10,479 - [124140] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-03-16 08:49:10,480 - [124140] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.ServiceSetup SET IsInitialWoGenerated = 1 WHERE CompanyId = 133 AND ServiceSetupId = 149927;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:49:10,751 - [124140] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-03-16 08:49:10,753 - [124140] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkorderId, WorkOrderNo FROM ServiceCore.WorkOrder wo WHERE wo.WorkOrderNo IN ('1361761', '1361762', '1361763', '1361764', '1361765', '1361766', '1361767', '1361768', '1361769', '1361770', '1361771', '1361772') AND wo.AccountNumber = '14638' AND wo.CompanyId = 133 ... (Thread: ThreadPoolExecutor-15_0) - __SPLIT__ 2026-03-16 08:49:11,033 - [124140] - src.utils.log - INFO - βœ… Fetched 12 rows - __SPLIT__ 2026-03-16 08:49:11,033 - [124140] - src.utils.log - INFO - Sequential fetching temp table records - __SPLIT__ 2026-03-16 08:49:11,033 - [124140] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationServices woag WHERE woag.WorkOrderAutoGenerationId in (3448890, 3448891, 3448892, 3448893, 3448894, 3448895, 3448896, 3448897, 3448898, 3448899, 3448900, 3448901)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:49:11,366 - [124140] - src.utils.log - INFO - βœ… Fetched 12 rows - __SPLIT__ 2026-03-16 08:49:11,366 - [124140] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SubWorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (3448890, 3448891, 3448892, 3448893, 3448894, 3448895, 3448896, 3448897, 3448898, 3448899, 3448900, 3448901)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:49:11,638 - [124140] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 08:49:11,639 - [124140] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationCrews woag WHERE woag.WorkOrderAutoGenerationId in (3448890, 3448891, 3448892, 3448893, 3448894, 3448895, 3448896, 3448897, 3448898, 3448899, 3448900, 3448901)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:49:11,925 - [124140] - src.utils.log - INFO - βœ… Fetched 24 rows - __SPLIT__ 2026-03-16 08:49:11,925 - [124140] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationSalesPersonCommission woag WHERE woag.WorkOrderAutoGenerationId in (3448890, 3448891, 3448892, 3448893, 3448894, 3448895, 3448896, 3448897, 3448898, 3448899, 3448900, 3448901)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:49:12,197 - [124140] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 08:49:12,197 - [124140] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupAutoGenerationSourceMapping woag WHERE woag.WorkOrderAutoGenerationId in (3448890, 3448891, 3448892, 3448893, 3448894, 3448895, 3448896, 3448897, 3448898, 3448899, 3448900, 3448901)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:49:12,471 - [124140] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 08:49:12,471 - [124140] - 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 (3448890, 3448891, 3448892, 3448893, 3448894, 3448895, 3448896, 3448897, 3448898, 3448899, 3448900, 3448901)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:49:12,772 - [124140] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 08:49:12,773 - [124140] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from CRM.LeadNote woag WHERE woag.RefId in (3448890, 3448891, 3448892, 3448893, 3448894, 3448895, 3448896, 3448897, 3448898, 3448899, 3448900, 3448901) and woag.RefType = 'TempWorkorder';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:49:13,046 - [124140] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 08:49:13,046 - [124140] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment woagca WHERE woagca.WorkOrderAutoGenerationId in (3448890, 3448891, 3448892, 3448893, 3448894, 3448895, 3448896, 3448897, 3448898, 3448899, 3448900, 3448901);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:49:13,318 - [124140] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 08:49:13,321 - [124140] - src.utils.log - INFO - Updating temp tables - __SPLIT__ 2026-03-16 08:49:13,333 - [124140] - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyKey FROM Common.CompanyMaster cm WHERE CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:49:13,602 - [124140] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 08:49:13,603 - [124140] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 133 AND EnitityNumberType in ('SubWorkOrder'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:49:13,873 - [124140] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 08:49:13,877 - [124140] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-03-16 08:49:13,877 - [124140] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishHistory: 12 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:49:14,172 - [124140] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 12) into ServiceCore.WorkOrderAutoGenerationPublishHistory - __SPLIT__ 2026-03-16 08:49:15,182 - [124140] - src.utils.log - INFO - βœ… All 12 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishHistory in 1 batches - __SPLIT__ 2026-03-16 08:49:15,183 - [124140] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationPublishHistoryId, WorkOrderNo, ServiceSetupId FROM ServiceCore.WorkOrderAutoGenerationPublishHistory WHERE ServiceSetupId = 149927 AND WorkOrderNo IN ('995857', '7713878', '2338102', '5916044', '8182892', '1765650', '5381165', '5487570', '1210270', '8562185', '4172701', '4586845') AND GenerateWorkOrderHistoryId = 124140;... (Thread: ThreadPoolExecutor-16_0) - __SPLIT__ 2026-03-16 08:49:15,505 - [124140] - src.utils.log - INFO - βœ… Fetched 12 rows - __SPLIT__ 2026-03-16 08:49:15,505 - [124140] - src.utils.log - INFO - 🏁 Final merged rows: 12 - __SPLIT__ 2026-03-16 08:49:15,512 - [124140] - src.utils.log - INFO - Sequential Insertion in work order tables begin - __SPLIT__ 2026-03-16 08:49:15,512 - [124140] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-03-16 08:49:15,512 - [124140] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderServices: 12 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:49:15,790 - [124140] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 12) into ServiceCore.WorkOrderServices - __SPLIT__ 2026-03-16 08:49:16,771 - [124140] - src.utils.log - INFO - βœ… All 12 rows inserted successfully into ServiceCore.WorkOrderServices in 1 batches - __SPLIT__ 2026-03-16 08:49:16,771 - [124140] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SubWorkOrder: - __SPLIT__ 2026-03-16 08:49:16,771 - [124140] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderAppliedDiscount: - __SPLIT__ 2026-03-16 08:49:16,771 - [124140] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderSalesPersonCommission: - __SPLIT__ 2026-03-16 08:49:16,772 - [124140] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderCommissionAdjustment: - __SPLIT__ 2026-03-16 08:49:16,772 - [124140] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-03-16 08:49:16,772 - [124140] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderCrew: 24 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:49:17,046 - [124140] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 24) into ServiceCore.WorkOrderCrew - __SPLIT__ 2026-03-16 08:49:18,014 - [124140] - src.utils.log - INFO - βœ… All 24 rows inserted successfully into ServiceCore.WorkOrderCrew in 1 batches - __SPLIT__ 2026-03-16 08:49:18,014 - [124140] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkorderSourceMapping: - __SPLIT__ 2026-03-16 08:49:18,014 - [124140] - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-03-16 08:49:18,014 - [124140] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-03-16 08:49:18,014 - [124140] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishServices: 12 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:49:18,294 - [124140] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 12) into ServiceCore.WorkOrderAutoGenerationPublishServices - __SPLIT__ 2026-03-16 08:49:19,262 - [124140] - src.utils.log - INFO - βœ… All 12 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishServices in 1 batches - __SPLIT__ 2026-03-16 08:49:19,263 - [124140] - 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 = 149927... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:49:19,533 - [124140] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 08:49:19,540 - [124140] - src.utils.log - INFO - Size of Transaction: 12 - __SPLIT__ 2026-03-16 08:49:19,541 - [124140] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 12 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:49:19,951 - [124140] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 12) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-03-16 08:49:20,909 - [124140] - src.utils.log - INFO - βœ… All 12 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-03-16 08:49:21,044 - [124140] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-03-16 08:49:21,044 - [124140] - 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-03-16 04:49:19.535';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:49:21,482 - [124140] - src.utils.log - INFO - βœ… Fetched 12 rows - __SPLIT__ 2026-03-16 08:49:21,485 - [124140] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 149927;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:49:21,755 - [124140] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 08:49:21,764 - [124140] - 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-03-16 04:49:19.535'; ... (Thread: ThreadPoolExecutor-17_0) - __SPLIT__ 2026-03-16 08:49:22,154 - [124140] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-03-16 08:49:22,159 - [124140] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-03-16 08:49:22,159 - [124140] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 12 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:49:22,438 - [124140] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 12) into Billing.Invoice - __SPLIT__ 2026-03-16 08:49:23,429 - [124140] - src.utils.log - INFO - βœ… All 12 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-03-16 08:49:23,429 - [124140] - src.utils.log - INFO - πŸ” Fetching data: SELECT InvoiceId, WorkOrderNo FROM Billing.Invoice i WHERE i.WorkOrderNo in ('1361761', '1361772', '1361771', '1361770', '1361769', '1361767', '1361768', '1361766', '1361765', '1361763', '1361764', '1361762')... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:49:23,825 - [124140] - src.utils.log - INFO - βœ… Fetched 12 rows - __SPLIT__ 2026-03-16 08:49:23,835 - [124140] - 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 = 149927 and sm.IsActive =1 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:49:24,110 - [124140] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 08:49:24,110 - [124140] - 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 = 149927 and sm.IsActive =1 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:49:24,385 - [124140] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 08:49:24,385 - [124140] - 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 = 149927 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:49:24,658 - [124140] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 08:49:24,659 - [124140] - 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 = 149927 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:49:24,932 - [124140] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 08:49:24,948 - [124140] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 149927;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:49:25,219 - [124140] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 08:49:25,225 - [124140] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId, AppliedDiscountAmt as AppliedDiscountAmount,IsActive ,ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 149927;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:49:25,496 - [124140] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 08:49:25,500 - [124140] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId,IsActive,DiscountAmount, IsDiscountPercent,DiscountPercent,DiscountDescription , ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 149927;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:49:25,771 - [124140] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 08:49:25,772 - [124140] - src.utils.log - INFO - Sequential Insertion in invoice tables begin - __SPLIT__ 2026-03-16 08:49:25,772 - [124140] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.AccountDiscountSetup: - __SPLIT__ 2026-03-16 08:49:25,772 - [124140] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-03-16 08:49:25,772 - [124140] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceCharges: 12 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:49:26,051 - [124140] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 12) into Billing.InvoiceCharges - __SPLIT__ 2026-03-16 08:49:27,018 - [124140] - src.utils.log - INFO - βœ… All 12 rows inserted successfully into Billing.InvoiceCharges in 1 batches - __SPLIT__ 2026-03-16 08:49:27,019 - [124140] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.DiscountApplied: - __SPLIT__ 2026-03-16 08:49:27,019 - [124140] - src.utils.log - INFO - Invoice Publish Done - __SPLIT__ 2026-03-16 08:49:27,019 - [124140] - src.utils.log - INFO - Updating Next GenerationDate - __SPLIT__ 2026-03-16 08:49:27,020 - [124140] - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, MAX(NextWorkOrderGenerationDate) AS MaxNextWorkOrderGeneration FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 124140 GROUP BY ServiceSetupId; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:49:27,291 - [124140] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 08:49:27,297 - [124140] - src.utils.log - INFO - πŸ”„ Updating next gen date sequentially: inside update_next_workorder_generation - __SPLIT__ 2026-03-16 08:49:27,433 - [124140] - src.utils.log - INFO - πŸ›  Creating temp table #tbl_e7dae18535 - __SPLIT__ 2026-03-16 08:49:27,704 - [124140] - src.utils.log - INFO - πŸ“Œ Bulk inserting 1 rows into #tbl_e7dae18535 - __SPLIT__ 2026-03-16 08:49:27,974 - [124140] - src.utils.log - INFO - πŸ” Running MERGE update to apply changes - __SPLIT__ 2026-03-16 08:49:28,118 - [124140] - src.utils.log - INFO - βœ” SQL reported affected rows: 1 - __SPLIT__ 2026-03-16 08:49:28,258 - [124140] - src.utils.log - INFO - πŸ” Verified successfully updated 1 rows via #tbl_e7dae18535 - __SPLIT__ 2026-03-16 08:49:28,259 - [124140] - src.utils.log - INFO - πŸŽ‰ Successfully updated NextGenerationDate using temp table #tbl_e7dae18535 - __SPLIT__ 2026-03-16 08:49:28,259 - [124140] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 124140 (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:49:28,528 - [124140] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-16 08:49:28,528 - [124140] - src.utils.log - INFO - Sequential deletion from temp tables begin - __SPLIT__ 2026-03-16 08:49:28,528 - [124140] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId in (3448890, 3448891, 3448892, 3448893, 3448894, 3448895, 3448896, 3448897, 3448898, 3448899, 3448900, 3448901) (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:49:28,938 - [124140] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-16 08:49:28,938 - [124140] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId in (3448890, 3448891, 3448892, 3448893, 3448894, 3448895, 3448896, 3448897, 3448898, 3448899, 3448900, 3448901) (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:49:29,250 - [124140] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-16 08:49:29,250 - [124140] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId in (3448890, 3448891, 3448892, 3448893, 3448894, 3448895, 3448896, 3448897, 3448898, 3448899, 3448900, 3448901) (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:49:29,522 - [124140] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-16 08:49:29,522 - [124140] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId in (3448890, 3448891, 3448892, 3448893, 3448894, 3448895, 3448896, 3448897, 3448898, 3448899, 3448900, 3448901) (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:49:29,857 - [124140] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-16 08:49:29,857 - [124140] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId in (3448890, 3448891, 3448892, 3448893, 3448894, 3448895, 3448896, 3448897, 3448898, 3448899, 3448900, 3448901) (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:49:30,141 - [124140] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-16 08:49:30,142 - [124140] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (3448890, 3448891, 3448892, 3448893, 3448894, 3448895, 3448896, 3448897, 3448898, 3448899, 3448900, 3448901) (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:49:30,416 - [124140] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-16 08:49:30,416 - [124140] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId in (3448890, 3448891, 3448892, 3448893, 3448894, 3448895, 3448896, 3448897, 3448898, 3448899, 3448900, 3448901) (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:49:30,687 - [124140] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-16 08:49:30,687 - [124140] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (3448890, 3448891, 3448892, 3448893, 3448894, 3448895, 3448896, 3448897, 3448898, 3448899, 3448900, 3448901) (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:49:31,352 - [124140] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-16 08:49:31,353 - [124140] - src.utils.log - INFO - Work order published ids: (3448890, 3448891, 3448892, 3448893, 3448894, 3448895, 3448896, 3448897, 3448898, 3448899, 3448900, 3448901) - __SPLIT__ 2026-03-16 08:49:31,353 - [124140] - src.utils.log - INFO - Time took to perform operation in publishing [124140]: 30.65 - __SPLIT__ 2026-03-16 08:49:31,353 - [124140] - src.utils.log - INFO - Publish Completed for GenerateWorkOrderHistoryId: [124140] - __SPLIT__ 2026-03-16 08:49:31,353 - [124140] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-03-16 04:49:31.353' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124140;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:49:31,625 - [124140] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-03-16 08:51:17,238 - 124141 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=124141 - __SPLIT__ 2026-03-16 08:51:17,239 - 124141 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 124141 - __SPLIT__ 2026-03-16 08:51:17,240 - 124141 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-03-16 08:51:17,240 - 124141 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:51:19,358 - 124141 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 08:51:19,358 - 124141 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-03-16 08:51:19,359 - 124141 - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-03-16 08:51:19,359 - 124141 - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-03-16 08:51:19,359 - 124141 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 124141;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:51:21,245 - 124141 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-03-16 08:51:21,245 - 124141 - 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 = 124141), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 124141), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 124141 AND ss.FrequencyScheduleId IS NOT NULL AND ss.IsActive = 1 AND ss.IsDeleted = 0 AND ss.Status <> 'Canceled';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:51:21,614 - 124141 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 08:51:21,614 - 124141 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 124141;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:51:21,884 - 124141 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 08:51:21,887 - 124141 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-03-16 08:51:21,888 - 124141 - 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 = 14631... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:51:22,170 - 124141 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 08:51:22,170 - 124141 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-03-16 08:51:22,173 - 124141 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-03-16 08:51:22,174 - 124141 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 149928;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:51:22,444 - 124141 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 08:51:22,444 - 124141 - src.utils.log - INFO - πŸ” Fetching data: select ServiceDate, ServiceSetupId from serviceCore.WorkOrder wo inner join ServiceCore.WorkOrderStatus wos on wo.WoStatusId = wos.WoStatusId where ServiceDate >= '2026-03-16 00:00:00' and ServiceDate <= '2026-05-31 00:00:00' and ServiceSetupId = 149928 and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:51:22,725 - 124141 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 08:51:23,289 - 124141 - src.utils.log - INFO - Generating work orders for setup: 149928 - __SPLIT__ 2026-03-16 08:51:23,333 - 124141 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 1131;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:51:23,603 - 124141 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 08:51:23,645 - 124141 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-03-16 08:51:23,651 - 124141 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=133 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:51:23,919 - 124141 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 08:51:23,924 - 124141 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-03-16 08:51:23,924 - 124141 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-03-16 08:51:23,924 - 124141 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 149928 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:51:24,231 - 124141 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-16 08:51:24,231 - 124141 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 149928 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:51:24,524 - 124141 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-16 08:51:24,524 - 124141 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 149928 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:51:24,799 - 124141 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-16 08:51:24,800 - 124141 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 149928 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:51:25,100 - 124141 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-16 08:51:25,100 - 124141 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 149928 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:51:25,390 - 124141 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-16 08:51:25,390 - 124141 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 149928 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:51:25,666 - 124141 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-16 08:51:25,666 - 124141 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 149928 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:51:25,940 - 124141 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-16 08:51:25,940 - 124141 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 149928 (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:51:27,019 - 124141 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-16 08:51:27,019 - 124141 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-03-16 08:51:27,019 - 124141 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 7 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:51:27,325 - 124141 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 7) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-03-16 08:51:28,469 - 124141 - src.utils.log - INFO - βœ… All 7 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-03-16 08:51:28,470 - 124141 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 7 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-03-16 12:12:22.250' and ServiceSetupId = 149928... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:51:28,757 - 124141 - src.utils.log - INFO - βœ… Fetched 7 rows - __SPLIT__ 2026-03-16 08:51:28,757 - 124141 - src.utils.log - INFO - Id's of work order inserted to DB: [3448902 3448903 3448904 3448905 3448906 3448907 3448908] - __SPLIT__ 2026-03-16 08:51:28,758 - 124141 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 149928;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:51:29,027 - 124141 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 08:51:29,027 - 124141 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-03-16 08:51:29,028 - 124141 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId = 149928... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:51:29,300 - 124141 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 08:51:29,300 - 124141 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId = 149928... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:51:29,570 - 124141 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 08:51:29,577 - 124141 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId = 149928... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:51:29,855 - 124141 - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-03-16 08:51:29,856 - 124141 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId = 149928... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:51:30,126 - 124141 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 08:51:30,126 - 124141 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId = 149928... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:51:30,396 - 124141 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 08:51:30,396 - 124141 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId = 149928;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:51:30,667 - 124141 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 08:51:30,668 - 124141 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId = 149928;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:51:30,937 - 124141 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 08:51:30,937 - 124141 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId = 149928;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:51:31,226 - 124141 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 08:51:31,227 - 124141 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId = 149928;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:51:31,498 - 124141 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 08:51:31,511 - 124141 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-03-16 08:51:31,511 - 124141 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-03-16 08:51:31,511 - 124141 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-03-16 08:51:31,511 - 124141 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.CommunicationPreferencesServiceReportNotification: - __SPLIT__ 2026-03-16 08:51:31,512 - 124141 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-03-16 08:51:31,512 - 124141 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SetupAutoGenerationSourceMapping: - __SPLIT__ 2026-03-16 08:51:31,512 - 124141 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-03-16 08:51:31,512 - 124141 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationAppliedDiscount: - __SPLIT__ 2026-03-16 08:51:31,512 - 124141 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-03-16 08:51:31,512 - 124141 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SubWorkOrderAutoGeneration: - __SPLIT__ 2026-03-16 08:51:31,512 - 124141 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-03-16 08:51:31,512 - 124141 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: - __SPLIT__ 2026-03-16 08:51:31,512 - 124141 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-03-16 08:51:31,512 - 124141 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: - __SPLIT__ 2026-03-16 08:51:31,512 - 124141 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-03-16 08:51:31,512 - 124141 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-03-16 08:51:31,512 - 124141 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3448902, 3448903, 3448904, 3448905, 3448906, 3448907, 3448908) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:51:31,783 - 124141 - src.utils.log - INFO - βœ… Fetched 7 rows - __SPLIT__ 2026-03-16 08:51:31,784 - 124141 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationCrews: 14 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:51:32,058 - 124141 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 14) into ServiceCore.WorkOrderAutoGenerationCrews - __SPLIT__ 2026-03-16 08:51:33,018 - 124141 - src.utils.log - INFO - βœ… All 14 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationCrews in 1 batches - __SPLIT__ 2026-03-16 08:51:33,019 - 124141 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-03-16 08:51:33,019 - 124141 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-03-16 08:51:33,019 - 124141 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:51:33,297 - 124141 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-03-16 08:51:34,246 - 124141 - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-03-16 08:51:34,247 - 124141 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-03-16 08:51:34,247 - 124141 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-03-16 08:51:34,247 - 124141 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 6 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:51:34,524 - 124141 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 6) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-03-16 08:51:35,484 - 124141 - src.utils.log - INFO - βœ… All 6 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-03-16 08:51:35,485 - 124141 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-03-16 08:51:35,485 - 124141 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 124141;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:51:35,755 - 124141 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-03-16 08:51:35,755 - 124141 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-03-16 08:51:35,755 - 124141 - src.utils.log - INFO - Time took to perform operation: 18.52 - __SPLIT__ 2026-03-16 08:51:35,755 - 124141 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 124141;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:51:36,025 - 124141 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-03-16 08:51:36,025 - 124141 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET WorkOrderStatusDateTime = '2026-03-16 04:51:36.025' WHERE GenerateWorkOrderHistoryId = 124141;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:51:36,295 - 124141 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-03-16 08:51:51,922 - [124141] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[] user_id=43135 company_id=133 project_id=[124141] publish_all=True - __SPLIT__ 2026-03-16 08:51:51,923 - [124141] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[] user_id=43135 company_id=133 project_id=[124141] publish_all=True - __SPLIT__ 2026-03-16 08:51:51,923 - [124141] - src.utils.log - INFO - Sequential Work order publish in progress for GenerateWorkOrderHistoryId: [124141] - __SPLIT__ 2026-03-16 08:51:51,924 - [124141] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-03-16 08:51:51,924 - [124141] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:51:54,038 - [124141] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 08:51:54,039 - [124141] - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-03-16 08:51:54,039 - [124141] - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-03-16 08:51:54,040 - [124141] - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-03-16 08:51:54,040 - [124141] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'InProgress' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124141;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:51:55,917 - [124141] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-03-16 08:51:55,917 - [124141] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGeneration woag WHERE woag.GenerateWorkOrderHistoryId = 124141... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:51:56,239 - [124141] - src.utils.log - INFO - βœ… Fetched 7 rows - __SPLIT__ 2026-03-16 08:51:56,239 - [124141] - src.utils.log - INFO - Inside get_work_order_table - __SPLIT__ 2026-03-16 08:51:56,240 - [124141] - 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 = 149928 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:51:56,518 - [124141] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 08:51:56,519 - [124141] - 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 = 149928 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:51:56,795 - [124141] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 08:51:56,795 - [124141] - 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 = 149928 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:51:57,075 - [124141] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 08:51:57,079 - [124141] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder,BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:51:57,346 - [124141] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 08:51:57,347 - [124141] - 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-03-16 08:51:57,615 - [124141] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-03-16 08:51:57,615 - [124141] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder, BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:51:57,882 - [124141] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 08:51:57,882 - [124141] - 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-03-16 08:51:58,153 - [124141] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 08:51:58,153 - [124141] - 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-03-16 08:51:58,425 - [124141] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 08:51:58,429 - [124141] - 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 = 149928... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:51:58,702 - [124141] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 08:51:58,707 - [124141] - src.utils.log - INFO - πŸ” Fetching data: SELECT x.CompanyId FROM CRM.CompanyMaster x WHERE CompanyKey = 'abcdallas';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:51:58,973 - [124141] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 08:51:58,974 - [124141] - src.utils.log - INFO - πŸ” Fetching data: SELECT CollectionStatus,IsHold,AccountNo FROM CRM.Account a WHERE a.AccountNo = '14638' and a.CompanyId = 121;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:51:59,241 - [124141] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 08:51:59,243 - [124141] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderNo FROM ServiceCore.WorkOrder WHERE WorkOrderNo IN ('1361773', '1361774', '1361775', '1361776', '1361777', '1361778', '1361779') AND CompanyId = 133 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:51:59,516 - [124141] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 08:51:59,517 - [124141] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrder (skip triggers): 7 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:51:59,952 - [124141] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 7) into ServiceCore.WorkOrder (triggers skipped) - __SPLIT__ 2026-03-16 08:52:01,160 - [124141] - src.utils.log - INFO - βœ… All 7 rows inserted successfully into ServiceCore.WorkOrder in 1 batches (triggers skipped) - __SPLIT__ 2026-03-16 08:52:01,293 - [124141] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-03-16 08:52:01,294 - [124141] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.ServiceSetup SET IsInitialWoGenerated = 1 WHERE CompanyId = 133 AND ServiceSetupId = 149928;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:52:01,563 - [124141] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-03-16 08:52:01,564 - [124141] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkorderId, WorkOrderNo FROM ServiceCore.WorkOrder wo WHERE wo.WorkOrderNo IN ('1361773', '1361774', '1361775', '1361776', '1361777', '1361778', '1361779') AND wo.AccountNumber = '14638' AND wo.CompanyId = 133 ... (Thread: ThreadPoolExecutor-18_0) - __SPLIT__ 2026-03-16 08:52:01,842 - [124141] - src.utils.log - INFO - βœ… Fetched 7 rows - __SPLIT__ 2026-03-16 08:52:01,843 - [124141] - src.utils.log - INFO - Sequential fetching temp table records - __SPLIT__ 2026-03-16 08:52:01,843 - [124141] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationServices woag WHERE woag.WorkOrderAutoGenerationId in (3448902, 3448903, 3448904, 3448905, 3448906, 3448907, 3448908)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:52:02,159 - [124141] - src.utils.log - INFO - βœ… Fetched 7 rows - __SPLIT__ 2026-03-16 08:52:02,159 - [124141] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SubWorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (3448902, 3448903, 3448904, 3448905, 3448906, 3448907, 3448908)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:52:02,429 - [124141] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 08:52:02,429 - [124141] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationCrews woag WHERE woag.WorkOrderAutoGenerationId in (3448902, 3448903, 3448904, 3448905, 3448906, 3448907, 3448908)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:52:02,710 - [124141] - src.utils.log - INFO - βœ… Fetched 14 rows - __SPLIT__ 2026-03-16 08:52:02,711 - [124141] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationSalesPersonCommission woag WHERE woag.WorkOrderAutoGenerationId in (3448902, 3448903, 3448904, 3448905, 3448906, 3448907, 3448908)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:52:02,980 - [124141] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 08:52:02,980 - [124141] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupAutoGenerationSourceMapping woag WHERE woag.WorkOrderAutoGenerationId in (3448902, 3448903, 3448904, 3448905, 3448906, 3448907, 3448908)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:52:03,251 - [124141] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 08:52:03,251 - [124141] - 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 (3448902, 3448903, 3448904, 3448905, 3448906, 3448907, 3448908)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:52:03,546 - [124141] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 08:52:03,547 - [124141] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from CRM.LeadNote woag WHERE woag.RefId in (3448902, 3448903, 3448904, 3448905, 3448906, 3448907, 3448908) and woag.RefType = 'TempWorkorder';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:52:03,817 - [124141] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 08:52:03,817 - [124141] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment woagca WHERE woagca.WorkOrderAutoGenerationId in (3448902, 3448903, 3448904, 3448905, 3448906, 3448907, 3448908);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:52:04,086 - [124141] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 08:52:04,089 - [124141] - src.utils.log - INFO - Updating temp tables - __SPLIT__ 2026-03-16 08:52:04,101 - [124141] - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyKey FROM Common.CompanyMaster cm WHERE CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:52:04,368 - [124141] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 08:52:04,369 - [124141] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 133 AND EnitityNumberType in ('SubWorkOrder'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:52:04,636 - [124141] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 08:52:04,640 - [124141] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-03-16 08:52:04,640 - [124141] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishHistory: 7 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:52:04,934 - [124141] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 7) into ServiceCore.WorkOrderAutoGenerationPublishHistory - __SPLIT__ 2026-03-16 08:52:05,919 - [124141] - src.utils.log - INFO - βœ… All 7 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishHistory in 1 batches - __SPLIT__ 2026-03-16 08:52:05,921 - [124141] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationPublishHistoryId, WorkOrderNo, ServiceSetupId FROM ServiceCore.WorkOrderAutoGenerationPublishHistory WHERE ServiceSetupId = 149928 AND WorkOrderNo IN ('185793', '3270637', '1335722', '2966822', '3247844', '6892927', '3791351') AND GenerateWorkOrderHistoryId = 124141;... (Thread: ThreadPoolExecutor-19_0) - __SPLIT__ 2026-03-16 08:52:06,223 - [124141] - src.utils.log - INFO - βœ… Fetched 7 rows - __SPLIT__ 2026-03-16 08:52:06,224 - [124141] - src.utils.log - INFO - 🏁 Final merged rows: 7 - __SPLIT__ 2026-03-16 08:52:06,230 - [124141] - src.utils.log - INFO - Sequential Insertion in work order tables begin - __SPLIT__ 2026-03-16 08:52:06,230 - [124141] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-03-16 08:52:06,230 - [124141] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderServices: 7 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:52:06,505 - [124141] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 7) into ServiceCore.WorkOrderServices - __SPLIT__ 2026-03-16 08:52:07,478 - [124141] - src.utils.log - INFO - βœ… All 7 rows inserted successfully into ServiceCore.WorkOrderServices in 1 batches - __SPLIT__ 2026-03-16 08:52:07,479 - [124141] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SubWorkOrder: - __SPLIT__ 2026-03-16 08:52:07,479 - [124141] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderAppliedDiscount: - __SPLIT__ 2026-03-16 08:52:07,479 - [124141] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderSalesPersonCommission: - __SPLIT__ 2026-03-16 08:52:07,479 - [124141] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderCommissionAdjustment: - __SPLIT__ 2026-03-16 08:52:07,479 - [124141] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-03-16 08:52:07,479 - [124141] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderCrew: 14 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:52:07,752 - [124141] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 14) into ServiceCore.WorkOrderCrew - __SPLIT__ 2026-03-16 08:52:08,704 - [124141] - src.utils.log - INFO - βœ… All 14 rows inserted successfully into ServiceCore.WorkOrderCrew in 1 batches - __SPLIT__ 2026-03-16 08:52:08,705 - [124141] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkorderSourceMapping: - __SPLIT__ 2026-03-16 08:52:08,705 - [124141] - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-03-16 08:52:08,705 - [124141] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-03-16 08:52:08,705 - [124141] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishServices: 7 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:52:08,980 - [124141] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 7) into ServiceCore.WorkOrderAutoGenerationPublishServices - __SPLIT__ 2026-03-16 08:52:09,936 - [124141] - src.utils.log - INFO - βœ… All 7 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishServices in 1 batches - __SPLIT__ 2026-03-16 08:52:09,936 - [124141] - 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 = 149928... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:52:10,204 - [124141] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 08:52:10,211 - [124141] - src.utils.log - INFO - Size of Transaction: 7 - __SPLIT__ 2026-03-16 08:52:10,212 - [124141] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 7 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:52:10,618 - [124141] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 7) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-03-16 08:52:11,569 - [124141] - src.utils.log - INFO - βœ… All 7 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-03-16 08:52:11,703 - [124141] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-03-16 08:52:11,704 - [124141] - 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-03-16 04:52:10.206';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:52:12,131 - [124141] - src.utils.log - INFO - βœ… Fetched 7 rows - __SPLIT__ 2026-03-16 08:52:12,133 - [124141] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 149928;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:52:12,402 - [124141] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 08:52:12,410 - [124141] - src.utils.log - INFO - πŸ“ Executing: UPDATE Billing.[Transaction] SET ModifiedBy = NULL WHERE ModifiedBy IN (12345678910,12345678911,12345678912,12345678913,12345678914,12345678915,12345678916) AND CreatedDate = '2026-03-16 04:52:10.206'; ... (Thread: ThreadPoolExecutor-20_0) - __SPLIT__ 2026-03-16 08:52:12,802 - [124141] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-03-16 08:52:12,807 - [124141] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-03-16 08:52:12,807 - [124141] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 7 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:52:13,083 - [124141] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 7) into Billing.Invoice - __SPLIT__ 2026-03-16 08:52:14,133 - [124141] - src.utils.log - INFO - βœ… All 7 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-03-16 08:52:14,134 - [124141] - src.utils.log - INFO - πŸ” Fetching data: SELECT InvoiceId, WorkOrderNo FROM Billing.Invoice i WHERE i.WorkOrderNo in ('1361773', '1361779', '1361778', '1361777', '1361776', '1361774', '1361775')... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:52:14,494 - [124141] - src.utils.log - INFO - βœ… Fetched 7 rows - __SPLIT__ 2026-03-16 08:52:14,503 - [124141] - 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 = 149928 and sm.IsActive =1 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:52:14,776 - [124141] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 08:52:14,776 - [124141] - 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 = 149928 and sm.IsActive =1 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:52:15,048 - [124141] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 08:52:15,049 - [124141] - 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 = 149928 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:52:15,319 - [124141] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 08:52:15,319 - [124141] - 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 = 149928 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:52:15,589 - [124141] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 08:52:15,603 - [124141] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 149928;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:52:15,871 - [124141] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 08:52:15,877 - [124141] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId, AppliedDiscountAmt as AppliedDiscountAmount,IsActive ,ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 149928;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:52:16,146 - [124141] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 08:52:16,150 - [124141] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId,IsActive,DiscountAmount, IsDiscountPercent,DiscountPercent,DiscountDescription , ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 149928;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:52:16,425 - [124141] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 08:52:16,426 - [124141] - src.utils.log - INFO - Sequential Insertion in invoice tables begin - __SPLIT__ 2026-03-16 08:52:16,426 - [124141] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.AccountDiscountSetup: - __SPLIT__ 2026-03-16 08:52:16,426 - [124141] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-03-16 08:52:16,426 - [124141] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceCharges: 7 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:52:16,701 - [124141] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 7) into Billing.InvoiceCharges - __SPLIT__ 2026-03-16 08:52:17,654 - [124141] - src.utils.log - INFO - βœ… All 7 rows inserted successfully into Billing.InvoiceCharges in 1 batches - __SPLIT__ 2026-03-16 08:52:17,654 - [124141] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.DiscountApplied: - __SPLIT__ 2026-03-16 08:52:17,654 - [124141] - src.utils.log - INFO - Invoice Publish Done - __SPLIT__ 2026-03-16 08:52:17,655 - [124141] - src.utils.log - INFO - Updating Next GenerationDate - __SPLIT__ 2026-03-16 08:52:17,655 - [124141] - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, MAX(NextWorkOrderGenerationDate) AS MaxNextWorkOrderGeneration FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 124141 GROUP BY ServiceSetupId; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:52:17,929 - [124141] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 08:52:17,935 - [124141] - src.utils.log - INFO - πŸ”„ Updating next gen date sequentially: inside update_next_workorder_generation - __SPLIT__ 2026-03-16 08:52:18,069 - [124141] - src.utils.log - INFO - πŸ›  Creating temp table #tbl_c9294c6378 - __SPLIT__ 2026-03-16 08:52:18,346 - [124141] - src.utils.log - INFO - πŸ“Œ Bulk inserting 1 rows into #tbl_c9294c6378 - __SPLIT__ 2026-03-16 08:52:18,613 - [124141] - src.utils.log - INFO - πŸ” Running MERGE update to apply changes - __SPLIT__ 2026-03-16 08:52:18,755 - [124141] - src.utils.log - INFO - βœ” SQL reported affected rows: 1 - __SPLIT__ 2026-03-16 08:52:18,894 - [124141] - src.utils.log - INFO - πŸ” Verified successfully updated 1 rows via #tbl_c9294c6378 - __SPLIT__ 2026-03-16 08:52:18,894 - [124141] - src.utils.log - INFO - πŸŽ‰ Successfully updated NextGenerationDate using temp table #tbl_c9294c6378 - __SPLIT__ 2026-03-16 08:52:18,894 - [124141] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 124141 (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:52:19,160 - [124141] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-16 08:52:19,161 - [124141] - src.utils.log - INFO - Sequential deletion from temp tables begin - __SPLIT__ 2026-03-16 08:52:19,161 - [124141] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId in (3448902, 3448903, 3448904, 3448905, 3448906, 3448907, 3448908) (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:52:19,558 - [124141] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-16 08:52:19,559 - [124141] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId in (3448902, 3448903, 3448904, 3448905, 3448906, 3448907, 3448908) (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:52:19,865 - [124141] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-16 08:52:19,865 - [124141] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId in (3448902, 3448903, 3448904, 3448905, 3448906, 3448907, 3448908) (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:52:20,134 - [124141] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-16 08:52:20,134 - [124141] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId in (3448902, 3448903, 3448904, 3448905, 3448906, 3448907, 3448908) (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:52:20,460 - [124141] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-16 08:52:20,461 - [124141] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId in (3448902, 3448903, 3448904, 3448905, 3448906, 3448907, 3448908) (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:52:20,737 - [124141] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-16 08:52:20,737 - [124141] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (3448902, 3448903, 3448904, 3448905, 3448906, 3448907, 3448908) (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:52:21,006 - [124141] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-16 08:52:21,007 - [124141] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId in (3448902, 3448903, 3448904, 3448905, 3448906, 3448907, 3448908) (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:52:21,276 - [124141] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-16 08:52:21,276 - [124141] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (3448902, 3448903, 3448904, 3448905, 3448906, 3448907, 3448908) (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:52:21,781 - [124141] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-16 08:52:21,781 - [124141] - src.utils.log - INFO - Work order published ids: (3448902, 3448903, 3448904, 3448905, 3448906, 3448907, 3448908) - __SPLIT__ 2026-03-16 08:52:21,781 - [124141] - src.utils.log - INFO - Time took to perform operation in publishing [124141]: 29.86 - __SPLIT__ 2026-03-16 08:52:21,781 - [124141] - src.utils.log - INFO - Publish Completed for GenerateWorkOrderHistoryId: [124141] - __SPLIT__ 2026-03-16 08:52:21,781 - [124141] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-03-16 04:52:21.781' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124141;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 08:52:22,060 - [124141] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-03-16 09:08:32,867 - 124144 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=124144 - __SPLIT__ 2026-03-16 09:08:32,867 - 124144 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 124144 - __SPLIT__ 2026-03-16 09:08:32,868 - 124144 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-03-16 09:08:32,868 - 124144 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 09:08:35,008 - 124144 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 09:08:35,008 - 124144 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-03-16 09:08:35,009 - 124144 - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-03-16 09:08:35,009 - 124144 - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-03-16 09:08:35,009 - 124144 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 124144;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 09:08:36,890 - 124144 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-03-16 09:08:36,890 - 124144 - 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 = 124144), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 124144), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 124144 AND ss.FrequencyScheduleId IS NOT NULL AND ss.IsActive = 1 AND ss.IsDeleted = 0 AND ss.Status <> 'Canceled';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 09:08:37,270 - 124144 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 09:08:37,271 - 124144 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 124144;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 09:08:37,541 - 124144 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 09:08:37,544 - 124144 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-03-16 09:08:37,544 - 124144 - 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 = 14733... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 09:08:37,826 - 124144 - src.utils.log - INFO - βœ… Fetched 60 rows - __SPLIT__ 2026-03-16 09:08:37,826 - 124144 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-03-16 09:08:37,830 - 124144 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-03-16 09:08:37,830 - 124144 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 149983;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 09:08:38,100 - 124144 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 09:08:38,100 - 124144 - src.utils.log - INFO - πŸ” Fetching data: select ServiceDate, ServiceSetupId from serviceCore.WorkOrder wo inner join ServiceCore.WorkOrderStatus wos on wo.WoStatusId = wos.WoStatusId where ServiceDate >= '2026-03-16 00:00:00' and ServiceDate <= '2026-06-15 00:00:00' and ServiceSetupId = 149983 and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 09:08:38,381 - 124144 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 09:08:38,946 - 124144 - src.utils.log - INFO - Generating work orders for setup: 149983 - __SPLIT__ 2026-03-16 09:08:39,012 - 124144 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 1133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 09:08:39,281 - 124144 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 09:08:39,325 - 124144 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-03-16 09:08:39,331 - 124144 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=133 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 09:08:39,599 - 124144 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 09:08:39,603 - 124144 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-03-16 09:08:39,603 - 124144 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-03-16 09:08:39,603 - 124144 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 149983 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 09:08:39,908 - 124144 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-16 09:08:39,908 - 124144 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 149983 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 09:08:40,208 - 124144 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-16 09:08:40,208 - 124144 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 149983 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 09:08:40,483 - 124144 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-16 09:08:40,484 - 124144 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 149983 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 09:08:40,775 - 124144 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-16 09:08:40,776 - 124144 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 149983 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 09:08:41,070 - 124144 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-16 09:08:41,071 - 124144 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 149983 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 09:08:41,345 - 124144 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-16 09:08:41,345 - 124144 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 149983 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 09:08:41,617 - 124144 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-16 09:08:41,617 - 124144 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 149983 (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 09:08:42,722 - 124144 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-16 09:08:42,722 - 124144 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-03-16 09:08:42,722 - 124144 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 11 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 09:08:43,027 - 124144 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 11) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-03-16 09:08:44,468 - 124144 - src.utils.log - INFO - βœ… All 11 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-03-16 09:08:44,468 - 124144 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 11 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-03-16 12:12:22.250' and ServiceSetupId = 149983... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 09:08:44,757 - 124144 - src.utils.log - INFO - βœ… Fetched 11 rows - __SPLIT__ 2026-03-16 09:08:44,758 - 124144 - src.utils.log - INFO - Id's of work order inserted to DB: [3448918 3448919 3448920 3448921 3448922 3448923 3448924 3448925 3448926 3448927 3448928] - __SPLIT__ 2026-03-16 09:08:44,758 - 124144 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 149983;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 09:08:45,027 - 124144 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 09:08:45,028 - 124144 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-03-16 09:08:45,028 - 124144 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId = 149983... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 09:08:45,299 - 124144 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-03-16 09:08:45,300 - 124144 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId = 149983... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 09:08:45,568 - 124144 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 09:08:45,573 - 124144 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId = 149983... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 09:08:45,850 - 124144 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 09:08:45,851 - 124144 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId = 149983... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 09:08:46,120 - 124144 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 09:08:46,121 - 124144 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId = 149983... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 09:08:46,388 - 124144 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 09:08:46,389 - 124144 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId = 149983;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 09:08:46,659 - 124144 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 09:08:46,660 - 124144 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId = 149983;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 09:08:46,928 - 124144 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 09:08:46,928 - 124144 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId = 149983;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 09:08:47,217 - 124144 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 09:08:47,218 - 124144 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId = 149983;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 09:08:47,489 - 124144 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 09:08:47,497 - 124144 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-03-16 09:08:47,498 - 124144 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-03-16 09:08:47,498 - 124144 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-03-16 09:08:47,498 - 124144 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.CommunicationPreferencesServiceReportNotification: - __SPLIT__ 2026-03-16 09:08:47,498 - 124144 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-03-16 09:08:47,498 - 124144 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SetupAutoGenerationSourceMapping: - __SPLIT__ 2026-03-16 09:08:47,498 - 124144 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-03-16 09:08:47,498 - 124144 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationAppliedDiscount: - __SPLIT__ 2026-03-16 09:08:47,498 - 124144 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-03-16 09:08:47,498 - 124144 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SubWorkOrderAutoGeneration: - __SPLIT__ 2026-03-16 09:08:47,498 - 124144 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-03-16 09:08:47,498 - 124144 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: - __SPLIT__ 2026-03-16 09:08:47,498 - 124144 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-03-16 09:08:47,499 - 124144 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: - __SPLIT__ 2026-03-16 09:08:47,499 - 124144 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-03-16 09:08:47,499 - 124144 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-03-16 09:08:47,499 - 124144 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3448928, 3448918, 3448919, 3448920, 3448921, 3448922, 3448923, 3448924, 3448925, 3448926, 3448927) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 09:08:47,768 - 124144 - src.utils.log - INFO - βœ… Fetched 11 rows - __SPLIT__ 2026-03-16 09:08:47,769 - 124144 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationCrews: 11 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 09:08:48,043 - 124144 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 11) into ServiceCore.WorkOrderAutoGenerationCrews - __SPLIT__ 2026-03-16 09:08:49,003 - 124144 - src.utils.log - INFO - βœ… All 11 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationCrews in 1 batches - __SPLIT__ 2026-03-16 09:08:49,004 - 124144 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-03-16 09:08:49,004 - 124144 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationServices: - __SPLIT__ 2026-03-16 09:08:49,004 - 124144 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-03-16 09:08:49,004 - 124144 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-03-16 09:08:49,004 - 124144 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 22 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 09:08:49,280 - 124144 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 22) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-03-16 09:08:50,254 - 124144 - src.utils.log - INFO - βœ… All 22 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-03-16 09:08:50,254 - 124144 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-03-16 09:08:50,254 - 124144 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 124144;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 09:08:50,524 - 124144 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-03-16 09:08:50,524 - 124144 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-03-16 09:08:50,524 - 124144 - src.utils.log - INFO - Time took to perform operation: 17.66 - __SPLIT__ 2026-03-16 09:08:50,524 - 124144 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 124144;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 09:08:50,793 - 124144 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-03-16 09:08:50,793 - 124144 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET WorkOrderStatusDateTime = '2026-03-16 05:08:50.793' WHERE GenerateWorkOrderHistoryId = 124144;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 09:08:51,063 - 124144 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-03-16 09:09:09,388 - [124144] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[] user_id=43135 company_id=133 project_id=[124144] publish_all=True - __SPLIT__ 2026-03-16 09:09:09,389 - [124144] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[] user_id=43135 company_id=133 project_id=[124144] publish_all=True - __SPLIT__ 2026-03-16 09:09:09,389 - [124144] - src.utils.log - INFO - Sequential Work order publish in progress for GenerateWorkOrderHistoryId: [124144] - __SPLIT__ 2026-03-16 09:09:09,390 - [124144] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-03-16 09:09:09,390 - [124144] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 09:09:11,518 - [124144] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 09:09:11,518 - [124144] - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-03-16 09:09:11,519 - [124144] - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-03-16 09:09:11,519 - [124144] - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-03-16 09:09:11,519 - [124144] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'InProgress' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124144;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 09:09:13,380 - [124144] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-03-16 09:09:13,380 - [124144] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGeneration woag WHERE woag.GenerateWorkOrderHistoryId = 124144... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 09:09:13,703 - [124144] - src.utils.log - INFO - βœ… Fetched 11 rows - __SPLIT__ 2026-03-16 09:09:13,704 - [124144] - src.utils.log - INFO - Inside get_work_order_table - __SPLIT__ 2026-03-16 09:09:13,704 - [124144] - 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 = 149983 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 09:09:13,982 - [124144] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 09:09:13,982 - [124144] - 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 = 149983 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 09:09:14,257 - [124144] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 09:09:14,257 - [124144] - 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 = 149983 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 09:09:14,536 - [124144] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 09:09:14,540 - [124144] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder,BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 09:09:14,805 - [124144] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 09:09:14,805 - [124144] - 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-03-16 09:09:15,071 - [124144] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-03-16 09:09:15,071 - [124144] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder, BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 09:09:15,336 - [124144] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 09:09:15,337 - [124144] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 11 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 133 AND EnitityNumberType = 'WorkOrder'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 09:09:15,606 - [124144] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 09:09:15,607 - [124144] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 11 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 133 AND EnitityNumberType = 'Invoice'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 09:09:15,876 - [124144] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 09:09:15,880 - [124144] - 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 = 149983... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 09:09:16,154 - [124144] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 09:09:16,161 - [124144] - src.utils.log - INFO - πŸ” Fetching data: SELECT x.CompanyId FROM CRM.CompanyMaster x WHERE CompanyKey = 'abcdallas';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 09:09:16,426 - [124144] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 09:09:16,426 - [124144] - src.utils.log - INFO - πŸ” Fetching data: SELECT CollectionStatus,IsHold,AccountNo FROM CRM.Account a WHERE a.AccountNo = '14664' and a.CompanyId = 121;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 09:09:16,691 - [124144] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 09:09:16,694 - [124144] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderNo FROM ServiceCore.WorkOrder WHERE WorkOrderNo IN ('1361789', '1361790', '1361791', '1361792', '1361793', '1361794', '1361795', '1361796', '1361797', '1361798', '1361799') AND CompanyId = 133 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 09:09:16,966 - [124144] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 09:09:16,966 - [124144] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrder (skip triggers): 11 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 09:09:17,489 - [124144] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 11) into ServiceCore.WorkOrder (triggers skipped) - __SPLIT__ 2026-03-16 09:09:19,020 - [124144] - src.utils.log - INFO - βœ… All 11 rows inserted successfully into ServiceCore.WorkOrder in 1 batches (triggers skipped) - __SPLIT__ 2026-03-16 09:09:19,153 - [124144] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-03-16 09:09:19,154 - [124144] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkorderId, WorkOrderNo FROM ServiceCore.WorkOrder wo WHERE wo.WorkOrderNo IN ('1361789', '1361790', '1361791', '1361792', '1361793', '1361794', '1361795', '1361796', '1361797', '1361798', '1361799') AND wo.AccountNumber = '14664' AND wo.CompanyId = 133 ... (Thread: ThreadPoolExecutor-21_0) - __SPLIT__ 2026-03-16 09:09:19,430 - [124144] - src.utils.log - INFO - βœ… Fetched 11 rows - __SPLIT__ 2026-03-16 09:09:19,431 - [124144] - src.utils.log - INFO - Sequential fetching temp table records - __SPLIT__ 2026-03-16 09:09:19,431 - [124144] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationServices woag WHERE woag.WorkOrderAutoGenerationId in (3448918, 3448919, 3448920, 3448921, 3448922, 3448923, 3448924, 3448925, 3448926, 3448927, 3448928)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 09:09:19,750 - [124144] - src.utils.log - INFO - βœ… Fetched 22 rows - __SPLIT__ 2026-03-16 09:09:19,751 - [124144] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SubWorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (3448918, 3448919, 3448920, 3448921, 3448922, 3448923, 3448924, 3448925, 3448926, 3448927, 3448928)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 09:09:20,019 - [124144] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 09:09:20,019 - [124144] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationCrews woag WHERE woag.WorkOrderAutoGenerationId in (3448918, 3448919, 3448920, 3448921, 3448922, 3448923, 3448924, 3448925, 3448926, 3448927, 3448928)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 09:09:20,300 - [124144] - src.utils.log - INFO - βœ… Fetched 11 rows - __SPLIT__ 2026-03-16 09:09:20,300 - [124144] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationSalesPersonCommission woag WHERE woag.WorkOrderAutoGenerationId in (3448918, 3448919, 3448920, 3448921, 3448922, 3448923, 3448924, 3448925, 3448926, 3448927, 3448928)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 09:09:20,568 - [124144] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 09:09:20,568 - [124144] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupAutoGenerationSourceMapping woag WHERE woag.WorkOrderAutoGenerationId in (3448918, 3448919, 3448920, 3448921, 3448922, 3448923, 3448924, 3448925, 3448926, 3448927, 3448928)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 09:09:20,838 - [124144] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 09:09:20,838 - [124144] - 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 (3448918, 3448919, 3448920, 3448921, 3448922, 3448923, 3448924, 3448925, 3448926, 3448927, 3448928)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 09:09:21,133 - [124144] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 09:09:21,133 - [124144] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from CRM.LeadNote woag WHERE woag.RefId in (3448918, 3448919, 3448920, 3448921, 3448922, 3448923, 3448924, 3448925, 3448926, 3448927, 3448928) and woag.RefType = 'TempWorkorder';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 09:09:21,402 - [124144] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 09:09:21,402 - [124144] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment woagca WHERE woagca.WorkOrderAutoGenerationId in (3448918, 3448919, 3448920, 3448921, 3448922, 3448923, 3448924, 3448925, 3448926, 3448927, 3448928);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 09:09:21,670 - [124144] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 09:09:21,672 - [124144] - src.utils.log - INFO - Updating temp tables - __SPLIT__ 2026-03-16 09:09:21,685 - [124144] - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyKey FROM Common.CompanyMaster cm WHERE CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 09:09:21,950 - [124144] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 09:09:21,951 - [124144] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 133 AND EnitityNumberType in ('SubWorkOrder'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 09:09:22,217 - [124144] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 09:09:22,221 - [124144] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-03-16 09:09:22,221 - [124144] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishHistory: 11 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 09:09:22,513 - [124144] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 11) into ServiceCore.WorkOrderAutoGenerationPublishHistory - __SPLIT__ 2026-03-16 09:09:23,508 - [124144] - src.utils.log - INFO - βœ… All 11 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishHistory in 1 batches - __SPLIT__ 2026-03-16 09:09:23,509 - [124144] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationPublishHistoryId, WorkOrderNo, ServiceSetupId FROM ServiceCore.WorkOrderAutoGenerationPublishHistory WHERE ServiceSetupId = 149983 AND WorkOrderNo IN ('6262459', '7231834', '5821837', '7532954', '4059564', '3257058', '9806964', '2459547', '3544551', '9659735', '3723730') AND GenerateWorkOrderHistoryId = 124144;... (Thread: ThreadPoolExecutor-22_0) - __SPLIT__ 2026-03-16 09:09:23,808 - [124144] - src.utils.log - INFO - βœ… Fetched 11 rows - __SPLIT__ 2026-03-16 09:09:23,809 - [124144] - src.utils.log - INFO - 🏁 Final merged rows: 11 - __SPLIT__ 2026-03-16 09:09:23,815 - [124144] - src.utils.log - INFO - Sequential Insertion in work order tables begin - __SPLIT__ 2026-03-16 09:09:23,815 - [124144] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-03-16 09:09:23,815 - [124144] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderServices: 22 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 09:09:24,089 - [124144] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 22) into ServiceCore.WorkOrderServices - __SPLIT__ 2026-03-16 09:09:25,055 - [124144] - src.utils.log - INFO - βœ… All 22 rows inserted successfully into ServiceCore.WorkOrderServices in 1 batches - __SPLIT__ 2026-03-16 09:09:25,055 - [124144] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SubWorkOrder: - __SPLIT__ 2026-03-16 09:09:25,056 - [124144] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderAppliedDiscount: - __SPLIT__ 2026-03-16 09:09:25,056 - [124144] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderSalesPersonCommission: - __SPLIT__ 2026-03-16 09:09:25,056 - [124144] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderCommissionAdjustment: - __SPLIT__ 2026-03-16 09:09:25,056 - [124144] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-03-16 09:09:25,056 - [124144] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderCrew: 11 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 09:09:25,327 - [124144] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 11) into ServiceCore.WorkOrderCrew - __SPLIT__ 2026-03-16 09:09:26,272 - [124144] - src.utils.log - INFO - βœ… All 11 rows inserted successfully into ServiceCore.WorkOrderCrew in 1 batches - __SPLIT__ 2026-03-16 09:09:26,273 - [124144] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkorderSourceMapping: - __SPLIT__ 2026-03-16 09:09:26,273 - [124144] - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-03-16 09:09:26,273 - [124144] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-03-16 09:09:26,273 - [124144] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishServices: 22 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 09:09:26,547 - [124144] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 22) into ServiceCore.WorkOrderAutoGenerationPublishServices - __SPLIT__ 2026-03-16 09:09:27,515 - [124144] - src.utils.log - INFO - βœ… All 22 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishServices in 1 batches - __SPLIT__ 2026-03-16 09:09:27,516 - [124144] - 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 = 149983... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 09:09:27,782 - [124144] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 09:09:27,789 - [124144] - src.utils.log - INFO - Size of Transaction: 11 - __SPLIT__ 2026-03-16 09:09:27,789 - [124144] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 11 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 09:09:28,193 - [124144] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 11) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-03-16 09:09:29,136 - [124144] - src.utils.log - INFO - βœ… All 11 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-03-16 09:09:29,269 - [124144] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-03-16 09:09:29,270 - [124144] - 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) and t.CompanyId = 133 AND t.TransactionType ='Invoice' AND t.CreatedDate = '2026-03-16 05:09:27.783';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 09:09:29,704 - [124144] - src.utils.log - INFO - βœ… Fetched 11 rows - __SPLIT__ 2026-03-16 09:09:29,706 - [124144] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 149983;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 09:09:29,974 - [124144] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 09:09:29,982 - [124144] - 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) AND CreatedDate = '2026-03-16 05:09:27.783'; ... (Thread: ThreadPoolExecutor-23_0) - __SPLIT__ 2026-03-16 09:09:30,378 - [124144] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-03-16 09:09:30,384 - [124144] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-03-16 09:09:30,384 - [124144] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 11 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 09:09:30,659 - [124144] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 11) into Billing.Invoice - __SPLIT__ 2026-03-16 09:09:31,702 - [124144] - src.utils.log - INFO - βœ… All 11 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-03-16 09:09:31,703 - [124144] - src.utils.log - INFO - πŸ” Fetching data: SELECT InvoiceId, WorkOrderNo FROM Billing.Invoice i WHERE i.WorkOrderNo in ('1361799', '1361798', '1361797', '1361796', '1361795', '1361794', '1361793', '1361792', '1361791', '1361790', '1361789')... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 09:09:32,099 - [124144] - src.utils.log - INFO - βœ… Fetched 11 rows - __SPLIT__ 2026-03-16 09:09:32,108 - [124144] - 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 = 149983 and sm.IsActive =1 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 09:09:32,380 - [124144] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-03-16 09:09:32,381 - [124144] - 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 = 149983 and sm.IsActive =1 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 09:09:32,651 - [124144] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 09:09:32,652 - [124144] - 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 = 149983 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 09:09:32,921 - [124144] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 09:09:32,921 - [124144] - 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 = 149983 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 09:09:33,190 - [124144] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 09:09:33,203 - [124144] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 149983;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 09:09:33,469 - [124144] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 09:09:33,475 - [124144] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId, AppliedDiscountAmt as AppliedDiscountAmount,IsActive ,ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 149983;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 09:09:33,743 - [124144] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 09:09:33,747 - [124144] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId,IsActive,DiscountAmount, IsDiscountPercent,DiscountPercent,DiscountDescription , ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 149983;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 09:09:34,015 - [124144] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 09:09:34,015 - [124144] - src.utils.log - INFO - Sequential Insertion in invoice tables begin - __SPLIT__ 2026-03-16 09:09:34,015 - [124144] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.AccountDiscountSetup: - __SPLIT__ 2026-03-16 09:09:34,015 - [124144] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-03-16 09:09:34,016 - [124144] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceCharges: 22 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 09:09:34,290 - [124144] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 22) into Billing.InvoiceCharges - __SPLIT__ 2026-03-16 09:09:35,253 - [124144] - src.utils.log - INFO - βœ… All 22 rows inserted successfully into Billing.InvoiceCharges in 1 batches - __SPLIT__ 2026-03-16 09:09:35,253 - [124144] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.DiscountApplied: - __SPLIT__ 2026-03-16 09:09:35,254 - [124144] - src.utils.log - INFO - Invoice Publish Done - __SPLIT__ 2026-03-16 09:09:35,254 - [124144] - src.utils.log - INFO - Updating Next GenerationDate - __SPLIT__ 2026-03-16 09:09:35,254 - [124144] - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, MAX(NextWorkOrderGenerationDate) AS MaxNextWorkOrderGeneration FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 124144 GROUP BY ServiceSetupId; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 09:09:35,522 - [124144] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 09:09:35,528 - [124144] - src.utils.log - INFO - πŸ”„ Updating next gen date sequentially: inside update_next_workorder_generation - __SPLIT__ 2026-03-16 09:09:35,662 - [124144] - src.utils.log - INFO - πŸ›  Creating temp table #tbl_98d12b1153 - __SPLIT__ 2026-03-16 09:09:35,930 - [124144] - src.utils.log - INFO - πŸ“Œ Bulk inserting 1 rows into #tbl_98d12b1153 - __SPLIT__ 2026-03-16 09:09:36,195 - [124144] - src.utils.log - INFO - πŸ” Running MERGE update to apply changes - __SPLIT__ 2026-03-16 09:09:36,339 - [124144] - src.utils.log - INFO - βœ” SQL reported affected rows: 1 - __SPLIT__ 2026-03-16 09:09:36,477 - [124144] - src.utils.log - INFO - πŸ” Verified successfully updated 1 rows via #tbl_98d12b1153 - __SPLIT__ 2026-03-16 09:09:36,477 - [124144] - src.utils.log - INFO - πŸŽ‰ Successfully updated NextGenerationDate using temp table #tbl_98d12b1153 - __SPLIT__ 2026-03-16 09:09:36,477 - [124144] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 124144 (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 09:09:36,743 - [124144] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-16 09:09:36,743 - [124144] - src.utils.log - INFO - Sequential deletion from temp tables begin - __SPLIT__ 2026-03-16 09:09:36,743 - [124144] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId in (3448918, 3448919, 3448920, 3448921, 3448922, 3448923, 3448924, 3448925, 3448926, 3448927, 3448928) (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 09:09:37,151 - [124144] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-16 09:09:37,151 - [124144] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId in (3448918, 3448919, 3448920, 3448921, 3448922, 3448923, 3448924, 3448925, 3448926, 3448927, 3448928) (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 09:09:37,455 - [124144] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-16 09:09:37,456 - [124144] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId in (3448918, 3448919, 3448920, 3448921, 3448922, 3448923, 3448924, 3448925, 3448926, 3448927, 3448928) (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 09:09:37,724 - [124144] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-16 09:09:37,724 - [124144] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId in (3448918, 3448919, 3448920, 3448921, 3448922, 3448923, 3448924, 3448925, 3448926, 3448927, 3448928) (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 09:09:38,056 - [124144] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-16 09:09:38,056 - [124144] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId in (3448918, 3448919, 3448920, 3448921, 3448922, 3448923, 3448924, 3448925, 3448926, 3448927, 3448928) (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 09:09:38,333 - [124144] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-16 09:09:38,333 - [124144] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (3448918, 3448919, 3448920, 3448921, 3448922, 3448923, 3448924, 3448925, 3448926, 3448927, 3448928) (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 09:09:38,602 - [124144] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-16 09:09:38,602 - [124144] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId in (3448918, 3448919, 3448920, 3448921, 3448922, 3448923, 3448924, 3448925, 3448926, 3448927, 3448928) (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 09:09:38,869 - [124144] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-16 09:09:38,869 - [124144] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (3448918, 3448919, 3448920, 3448921, 3448922, 3448923, 3448924, 3448925, 3448926, 3448927, 3448928) (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 09:09:39,494 - [124144] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-16 09:09:39,494 - [124144] - src.utils.log - INFO - Work order published ids: (3448918, 3448919, 3448920, 3448921, 3448922, 3448923, 3448924, 3448925, 3448926, 3448927, 3448928) - __SPLIT__ 2026-03-16 09:09:39,494 - [124144] - src.utils.log - INFO - Time took to perform operation in publishing [124144]: 30.1 - __SPLIT__ 2026-03-16 09:09:39,494 - [124144] - src.utils.log - INFO - Publish Completed for GenerateWorkOrderHistoryId: [124144] - __SPLIT__ 2026-03-16 09:09:39,494 - [124144] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-03-16 05:09:39.494' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124144;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 09:09:39,761 - [124144] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-03-16 09:18:35,115 - [124146] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[] user_id=43135 company_id=133 project_id=[124146] publish_all=True - __SPLIT__ 2026-03-16 09:18:35,116 - [124146] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[] user_id=43135 company_id=133 project_id=[124146] publish_all=True - __SPLIT__ 2026-03-16 09:18:35,116 - [124146] - src.utils.log - INFO - Sequential Work order publish in progress for GenerateWorkOrderHistoryId: [124146] - __SPLIT__ 2026-03-16 09:18:35,116 - [124146] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-03-16 09:18:35,116 - [124146] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 09:18:37,130 - [124146] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 09:18:37,131 - [124146] - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-03-16 09:18:37,131 - [124146] - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-03-16 09:18:37,132 - [124146] - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-03-16 09:18:37,132 - [124146] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'InProgress' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124146;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 09:18:39,108 - [124146] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-03-16 09:18:39,108 - [124146] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGeneration woag WHERE woag.GenerateWorkOrderHistoryId = 124146... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 09:18:39,448 - [124146] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-03-16 09:18:39,449 - [124146] - src.utils.log - INFO - Inside get_work_order_table - __SPLIT__ 2026-03-16 09:18:39,449 - [124146] - 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 = 149989 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 09:18:39,744 - [124146] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 09:18:39,744 - [124146] - 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 = 149989 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 09:18:40,035 - [124146] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 09:18:40,036 - [124146] - 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 = 149989 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 09:18:40,331 - [124146] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 09:18:40,335 - [124146] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder,BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 09:18:40,616 - [124146] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 09:18:40,616 - [124146] - 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-03-16 09:18:40,898 - [124146] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-03-16 09:18:40,898 - [124146] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder, BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 09:18:41,180 - [124146] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 09:18:41,180 - [124146] - 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-03-16 09:18:41,465 - [124146] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 09:18:41,465 - [124146] - 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-03-16 09:18:41,749 - [124146] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 09:18:41,753 - [124146] - 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 = 149989... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 09:18:42,042 - [124146] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 09:18:42,044 - [124146] - src.utils.log - INFO - πŸ” Fetching data: SELECT x.CompanyId FROM CRM.CompanyMaster x WHERE CompanyKey = 'abcdallas';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 09:18:42,325 - [124146] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 09:18:42,326 - [124146] - src.utils.log - INFO - πŸ” Fetching data: SELECT CollectionStatus,IsHold,AccountNo FROM CRM.Account a WHERE a.AccountNo = '14668' and a.CompanyId = 121;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 09:18:42,609 - [124146] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 09:18:42,611 - [124146] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderNo FROM ServiceCore.WorkOrder WHERE WorkOrderNo IN ('1361806', '1361807') AND CompanyId = 133 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 09:18:42,900 - [124146] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 09:18:42,900 - [124146] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrder (skip triggers): 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 09:18:43,358 - [124146] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrder (triggers skipped) - __SPLIT__ 2026-03-16 09:18:44,522 - [124146] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrder in 1 batches (triggers skipped) - __SPLIT__ 2026-03-16 09:18:44,663 - [124146] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-03-16 09:18:44,665 - [124146] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkorderId, WorkOrderNo FROM ServiceCore.WorkOrder wo WHERE wo.WorkOrderNo IN ('1361806', '1361807') AND wo.AccountNumber = '14668' AND wo.CompanyId = 133 ... (Thread: ThreadPoolExecutor-24_0) - __SPLIT__ 2026-03-16 09:18:44,956 - [124146] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-03-16 09:18:44,957 - [124146] - src.utils.log - INFO - Sequential fetching temp table records - __SPLIT__ 2026-03-16 09:18:44,957 - [124146] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationServices woag WHERE woag.WorkOrderAutoGenerationId in (3448935, 3448936)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 09:18:45,282 - [124146] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-03-16 09:18:45,282 - [124146] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SubWorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (3448935, 3448936)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 09:18:45,566 - [124146] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 09:18:45,567 - [124146] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationCrews woag WHERE woag.WorkOrderAutoGenerationId in (3448935, 3448936)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 09:18:45,861 - [124146] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-03-16 09:18:45,861 - [124146] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationSalesPersonCommission woag WHERE woag.WorkOrderAutoGenerationId in (3448935, 3448936)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 09:18:46,145 - [124146] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 09:18:46,145 - [124146] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupAutoGenerationSourceMapping woag WHERE woag.WorkOrderAutoGenerationId in (3448935, 3448936)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 09:18:46,430 - [124146] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 09:18:46,431 - [124146] - 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 (3448935, 3448936)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 09:18:46,735 - [124146] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 09:18:46,735 - [124146] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from CRM.LeadNote woag WHERE woag.RefId in (3448935, 3448936) and woag.RefType = 'TempWorkorder';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 09:18:47,019 - [124146] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 09:18:47,020 - [124146] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment woagca WHERE woagca.WorkOrderAutoGenerationId in (3448935, 3448936);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 09:18:47,303 - [124146] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 09:18:47,306 - [124146] - src.utils.log - INFO - Updating temp tables - __SPLIT__ 2026-03-16 09:18:47,318 - [124146] - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyKey FROM Common.CompanyMaster cm WHERE CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 09:18:47,599 - [124146] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 09:18:47,600 - [124146] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 133 AND EnitityNumberType in ('SubWorkOrder'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 09:18:47,882 - [124146] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 09:18:47,886 - [124146] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-03-16 09:18:47,886 - [124146] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishHistory: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 09:18:48,194 - [124146] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationPublishHistory - __SPLIT__ 2026-03-16 09:18:49,198 - [124146] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishHistory in 1 batches - __SPLIT__ 2026-03-16 09:18:49,200 - [124146] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationPublishHistoryId, WorkOrderNo, ServiceSetupId FROM ServiceCore.WorkOrderAutoGenerationPublishHistory WHERE ServiceSetupId = 149989 AND WorkOrderNo IN ('6031767', '8169107') AND GenerateWorkOrderHistoryId = 124146;... (Thread: ThreadPoolExecutor-25_0) - __SPLIT__ 2026-03-16 09:18:49,559 - [124146] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-03-16 09:18:49,560 - [124146] - src.utils.log - INFO - 🏁 Final merged rows: 2 - __SPLIT__ 2026-03-16 09:18:49,566 - [124146] - src.utils.log - INFO - Sequential Insertion in work order tables begin - __SPLIT__ 2026-03-16 09:18:49,566 - [124146] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-03-16 09:18:49,566 - [124146] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderServices: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 09:18:49,856 - [124146] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderServices - __SPLIT__ 2026-03-16 09:18:50,854 - [124146] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderServices in 1 batches - __SPLIT__ 2026-03-16 09:18:50,854 - [124146] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SubWorkOrder: - __SPLIT__ 2026-03-16 09:18:50,854 - [124146] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderAppliedDiscount: - __SPLIT__ 2026-03-16 09:18:50,854 - [124146] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderSalesPersonCommission: - __SPLIT__ 2026-03-16 09:18:50,854 - [124146] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderCommissionAdjustment: - __SPLIT__ 2026-03-16 09:18:50,854 - [124146] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-03-16 09:18:50,854 - [124146] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderCrew: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 09:18:51,141 - [124146] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderCrew - __SPLIT__ 2026-03-16 09:18:52,140 - [124146] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderCrew in 1 batches - __SPLIT__ 2026-03-16 09:18:52,140 - [124146] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkorderSourceMapping: - __SPLIT__ 2026-03-16 09:18:52,140 - [124146] - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-03-16 09:18:52,140 - [124146] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-03-16 09:18:52,140 - [124146] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishServices: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 09:18:52,431 - [124146] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationPublishServices - __SPLIT__ 2026-03-16 09:18:53,427 - [124146] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishServices in 1 batches - __SPLIT__ 2026-03-16 09:18:53,428 - [124146] - 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 = 149989... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 09:18:53,711 - [124146] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 09:18:53,719 - [124146] - src.utils.log - INFO - Size of Transaction: 2 - __SPLIT__ 2026-03-16 09:18:53,720 - [124146] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 09:18:54,152 - [124146] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-03-16 09:18:55,143 - [124146] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-03-16 09:18:55,283 - [124146] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-03-16 09:18:55,284 - [124146] - 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-03-16 05:18:53.713';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 09:18:55,729 - [124146] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-03-16 09:18:55,732 - [124146] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 149989;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 09:18:56,015 - [124146] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 09:18:56,024 - [124146] - src.utils.log - INFO - πŸ“ Executing: UPDATE Billing.[Transaction] SET ModifiedBy = NULL WHERE ModifiedBy IN (12345678910,12345678911) AND CreatedDate = '2026-03-16 05:18:53.713'; ... (Thread: ThreadPoolExecutor-26_0) - __SPLIT__ 2026-03-16 09:18:56,433 - [124146] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-03-16 09:18:56,438 - [124146] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-03-16 09:18:56,438 - [124146] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 09:18:56,729 - [124146] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.Invoice - __SPLIT__ 2026-03-16 09:18:57,740 - [124146] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-03-16 09:18:57,741 - [124146] - src.utils.log - INFO - πŸ” Fetching data: SELECT InvoiceId, WorkOrderNo FROM Billing.Invoice i WHERE i.WorkOrderNo in ('1361807', '1361806')... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 09:18:58,085 - [124146] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-03-16 09:18:58,094 - [124146] - 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 = 149989 and sm.IsActive =1 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 09:18:58,381 - [124146] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 09:18:58,381 - [124146] - 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 = 149989 and sm.IsActive =1 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 09:18:58,668 - [124146] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 09:18:58,669 - [124146] - 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 = 149989 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 09:18:58,954 - [124146] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 09:18:58,954 - [124146] - 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 = 149989 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 09:18:59,239 - [124146] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 09:18:59,253 - [124146] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 149989;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 09:18:59,536 - [124146] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 09:18:59,541 - [124146] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId, AppliedDiscountAmt as AppliedDiscountAmount,IsActive ,ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 149989;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 09:18:59,827 - [124146] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 09:18:59,830 - [124146] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId,IsActive,DiscountAmount, IsDiscountPercent,DiscountPercent,DiscountDescription , ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 149989;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 09:19:00,114 - [124146] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 09:19:00,115 - [124146] - src.utils.log - INFO - Sequential Insertion in invoice tables begin - __SPLIT__ 2026-03-16 09:19:00,115 - [124146] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.AccountDiscountSetup: - __SPLIT__ 2026-03-16 09:19:00,115 - [124146] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-03-16 09:19:00,115 - [124146] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceCharges: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 09:19:00,405 - [124146] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.InvoiceCharges - __SPLIT__ 2026-03-16 09:19:01,397 - [124146] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.InvoiceCharges in 1 batches - __SPLIT__ 2026-03-16 09:19:01,398 - [124146] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.DiscountApplied: - __SPLIT__ 2026-03-16 09:19:01,398 - [124146] - src.utils.log - INFO - Invoice Publish Done - __SPLIT__ 2026-03-16 09:19:01,398 - [124146] - src.utils.log - INFO - Updating Next GenerationDate - __SPLIT__ 2026-03-16 09:19:01,399 - [124146] - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, MAX(NextWorkOrderGenerationDate) AS MaxNextWorkOrderGeneration FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 124146 GROUP BY ServiceSetupId; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 09:19:01,683 - [124146] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 09:19:01,689 - [124146] - src.utils.log - INFO - πŸ”„ Updating next gen date sequentially: inside update_next_workorder_generation - __SPLIT__ 2026-03-16 09:19:01,831 - [124146] - src.utils.log - INFO - πŸ›  Creating temp table #tbl_c5b42b6a1f - __SPLIT__ 2026-03-16 09:19:02,115 - [124146] - src.utils.log - INFO - πŸ“Œ Bulk inserting 1 rows into #tbl_c5b42b6a1f - __SPLIT__ 2026-03-16 09:19:02,397 - [124146] - src.utils.log - INFO - πŸ” Running MERGE update to apply changes - __SPLIT__ 2026-03-16 09:19:02,547 - [124146] - src.utils.log - INFO - βœ” SQL reported affected rows: 1 - __SPLIT__ 2026-03-16 09:19:02,694 - [124146] - src.utils.log - INFO - πŸ” Verified successfully updated 1 rows via #tbl_c5b42b6a1f - __SPLIT__ 2026-03-16 09:19:02,694 - [124146] - src.utils.log - INFO - πŸŽ‰ Successfully updated NextGenerationDate using temp table #tbl_c5b42b6a1f - __SPLIT__ 2026-03-16 09:19:02,694 - [124146] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 124146 (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 09:19:02,975 - [124146] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-16 09:19:02,976 - [124146] - src.utils.log - INFO - Sequential deletion from temp tables begin - __SPLIT__ 2026-03-16 09:19:02,976 - [124146] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId in (3448935, 3448936) (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 09:19:03,383 - [124146] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-16 09:19:03,383 - [124146] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId in (3448935, 3448936) (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 09:19:03,697 - [124146] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-16 09:19:03,698 - [124146] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId in (3448935, 3448936) (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 09:19:03,981 - [124146] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-16 09:19:03,981 - [124146] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId in (3448935, 3448936) (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 09:19:04,320 - [124146] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-16 09:19:04,321 - [124146] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId in (3448935, 3448936) (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 09:19:04,611 - [124146] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-16 09:19:04,611 - [124146] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (3448935, 3448936) (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 09:19:04,895 - [124146] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-16 09:19:04,895 - [124146] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId in (3448935, 3448936) (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 09:19:05,178 - [124146] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-16 09:19:05,178 - [124146] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (3448935, 3448936) (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 09:19:05,535 - [124146] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-16 09:19:05,535 - [124146] - src.utils.log - INFO - Work order published ids: (3448935, 3448936) - __SPLIT__ 2026-03-16 09:19:05,535 - [124146] - src.utils.log - INFO - Time took to perform operation in publishing [124146]: 30.42 - __SPLIT__ 2026-03-16 09:19:05,535 - [124146] - src.utils.log - INFO - Publish Completed for GenerateWorkOrderHistoryId: [124146] - __SPLIT__ 2026-03-16 09:19:05,535 - [124146] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-03-16 05:19:05.535' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124146;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 09:19:05,819 - [124146] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-03-16 09:22:46,888 - [124147] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[] user_id=43135 company_id=133 project_id=[124147] publish_all=True - __SPLIT__ 2026-03-16 09:22:46,889 - [124147] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[] user_id=43135 company_id=133 project_id=[124147] publish_all=True - __SPLIT__ 2026-03-16 09:22:46,889 - [124147] - src.utils.log - INFO - Sequential Work order publish in progress for GenerateWorkOrderHistoryId: [124147] - __SPLIT__ 2026-03-16 09:22:46,889 - [124147] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-03-16 09:22:46,889 - [124147] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 09:22:48,945 - [124147] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 09:22:48,945 - [124147] - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-03-16 09:22:48,946 - [124147] - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-03-16 09:22:48,946 - [124147] - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-03-16 09:22:48,946 - [124147] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'InProgress' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124147;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 09:22:50,919 - [124147] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-03-16 09:22:50,919 - [124147] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGeneration woag WHERE woag.GenerateWorkOrderHistoryId = 124147... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 09:22:51,259 - [124147] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-03-16 09:22:51,259 - [124147] - src.utils.log - INFO - Inside get_work_order_table - __SPLIT__ 2026-03-16 09:22:51,259 - [124147] - 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 = 149990 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 09:22:51,553 - [124147] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 09:22:51,553 - [124147] - 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 = 149990 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 09:22:51,844 - [124147] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 09:22:51,844 - [124147] - 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 = 149990 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 09:22:52,140 - [124147] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 09:22:52,144 - [124147] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder,BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 09:22:52,426 - [124147] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 09:22:52,426 - [124147] - 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-03-16 09:22:52,708 - [124147] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-03-16 09:22:52,708 - [124147] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder, BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 09:22:52,989 - [124147] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 09:22:52,990 - [124147] - 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-03-16 09:22:53,277 - [124147] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 09:22:53,277 - [124147] - 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-03-16 09:22:53,565 - [124147] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 09:22:53,569 - [124147] - 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 = 149990... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 09:22:53,865 - [124147] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 09:22:53,867 - [124147] - src.utils.log - INFO - πŸ” Fetching data: SELECT x.CompanyId FROM CRM.CompanyMaster x WHERE CompanyKey = 'abcdallas';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 09:22:54,149 - [124147] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 09:22:54,149 - [124147] - src.utils.log - INFO - πŸ” Fetching data: SELECT CollectionStatus,IsHold,AccountNo FROM CRM.Account a WHERE a.AccountNo = '14668' and a.CompanyId = 121;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 09:22:54,431 - [124147] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 09:22:54,433 - [124147] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderNo FROM ServiceCore.WorkOrder WHERE WorkOrderNo IN ('1361808', '1361809') AND CompanyId = 133 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 09:22:54,721 - [124147] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 09:22:54,721 - [124147] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrder (skip triggers): 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 09:22:55,178 - [124147] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrder (triggers skipped) - __SPLIT__ 2026-03-16 09:22:56,229 - [124147] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrder in 1 batches (triggers skipped) - __SPLIT__ 2026-03-16 09:22:56,370 - [124147] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-03-16 09:22:56,371 - [124147] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkorderId, WorkOrderNo FROM ServiceCore.WorkOrder wo WHERE wo.WorkOrderNo IN ('1361808', '1361809') AND wo.AccountNumber = '14668' AND wo.CompanyId = 133 ... (Thread: ThreadPoolExecutor-27_0) - __SPLIT__ 2026-03-16 09:22:56,662 - [124147] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-03-16 09:22:56,663 - [124147] - src.utils.log - INFO - Sequential fetching temp table records - __SPLIT__ 2026-03-16 09:22:56,663 - [124147] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationServices woag WHERE woag.WorkOrderAutoGenerationId in (3448937, 3448938)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 09:22:56,983 - [124147] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-03-16 09:22:56,983 - [124147] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SubWorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (3448937, 3448938)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 09:22:57,267 - [124147] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 09:22:57,267 - [124147] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationCrews woag WHERE woag.WorkOrderAutoGenerationId in (3448937, 3448938)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 09:22:57,561 - [124147] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-03-16 09:22:57,561 - [124147] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationSalesPersonCommission woag WHERE woag.WorkOrderAutoGenerationId in (3448937, 3448938)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 09:22:57,845 - [124147] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 09:22:57,845 - [124147] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupAutoGenerationSourceMapping woag WHERE woag.WorkOrderAutoGenerationId in (3448937, 3448938)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 09:22:58,129 - [124147] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 09:22:58,130 - [124147] - 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 (3448937, 3448938)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 09:22:58,433 - [124147] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 09:22:58,433 - [124147] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from CRM.LeadNote woag WHERE woag.RefId in (3448937, 3448938) and woag.RefType = 'TempWorkorder';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 09:22:58,717 - [124147] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 09:22:58,718 - [124147] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment woagca WHERE woagca.WorkOrderAutoGenerationId in (3448937, 3448938);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 09:22:59,001 - [124147] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 09:22:59,003 - [124147] - src.utils.log - INFO - Updating temp tables - __SPLIT__ 2026-03-16 09:22:59,016 - [124147] - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyKey FROM Common.CompanyMaster cm WHERE CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 09:22:59,297 - [124147] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 09:22:59,297 - [124147] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 133 AND EnitityNumberType in ('SubWorkOrder'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 09:22:59,579 - [124147] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 09:22:59,583 - [124147] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-03-16 09:22:59,583 - [124147] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishHistory: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 09:22:59,890 - [124147] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationPublishHistory - __SPLIT__ 2026-03-16 09:23:00,891 - [124147] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishHistory in 1 batches - __SPLIT__ 2026-03-16 09:23:00,894 - [124147] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationPublishHistoryId, WorkOrderNo, ServiceSetupId FROM ServiceCore.WorkOrderAutoGenerationPublishHistory WHERE ServiceSetupId = 149990 AND WorkOrderNo IN ('2974416', '6317623') AND GenerateWorkOrderHistoryId = 124147;... (Thread: ThreadPoolExecutor-28_0) - __SPLIT__ 2026-03-16 09:23:01,210 - [124147] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-03-16 09:23:01,210 - [124147] - src.utils.log - INFO - 🏁 Final merged rows: 2 - __SPLIT__ 2026-03-16 09:23:01,216 - [124147] - src.utils.log - INFO - Sequential Insertion in work order tables begin - __SPLIT__ 2026-03-16 09:23:01,217 - [124147] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-03-16 09:23:01,217 - [124147] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderServices: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 09:23:01,506 - [124147] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderServices - __SPLIT__ 2026-03-16 09:23:02,501 - [124147] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderServices in 1 batches - __SPLIT__ 2026-03-16 09:23:02,501 - [124147] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SubWorkOrder: - __SPLIT__ 2026-03-16 09:23:02,501 - [124147] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderAppliedDiscount: - __SPLIT__ 2026-03-16 09:23:02,502 - [124147] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderSalesPersonCommission: - __SPLIT__ 2026-03-16 09:23:02,502 - [124147] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderCommissionAdjustment: - __SPLIT__ 2026-03-16 09:23:02,502 - [124147] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-03-16 09:23:02,502 - [124147] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderCrew: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 09:23:02,789 - [124147] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderCrew - __SPLIT__ 2026-03-16 09:23:03,781 - [124147] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderCrew in 1 batches - __SPLIT__ 2026-03-16 09:23:03,781 - [124147] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkorderSourceMapping: - __SPLIT__ 2026-03-16 09:23:03,781 - [124147] - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-03-16 09:23:03,781 - [124147] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-03-16 09:23:03,782 - [124147] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishServices: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 09:23:04,072 - [124147] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationPublishServices - __SPLIT__ 2026-03-16 09:23:05,066 - [124147] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishServices in 1 batches - __SPLIT__ 2026-03-16 09:23:05,067 - [124147] - 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 = 149990... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 09:23:05,349 - [124147] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 09:23:05,356 - [124147] - src.utils.log - INFO - Size of Transaction: 2 - __SPLIT__ 2026-03-16 09:23:05,357 - [124147] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 09:23:05,785 - [124147] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-03-16 09:23:06,779 - [124147] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-03-16 09:23:06,919 - [124147] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-03-16 09:23:06,920 - [124147] - 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-03-16 05:23:05.351';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 09:23:07,358 - [124147] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-03-16 09:23:07,361 - [124147] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 149990;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 09:23:07,643 - [124147] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 09:23:07,652 - [124147] - src.utils.log - INFO - πŸ“ Executing: UPDATE Billing.[Transaction] SET ModifiedBy = NULL WHERE ModifiedBy IN (12345678910,12345678911) AND CreatedDate = '2026-03-16 05:23:05.351'; ... (Thread: ThreadPoolExecutor-29_0) - __SPLIT__ 2026-03-16 09:23:08,059 - [124147] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-03-16 09:23:08,064 - [124147] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-03-16 09:23:08,064 - [124147] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 09:23:08,355 - [124147] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.Invoice - __SPLIT__ 2026-03-16 09:23:09,381 - [124147] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-03-16 09:23:09,382 - [124147] - src.utils.log - INFO - πŸ” Fetching data: SELECT InvoiceId, WorkOrderNo FROM Billing.Invoice i WHERE i.WorkOrderNo in ('1361809', '1361808')... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 09:23:09,725 - [124147] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-03-16 09:23:09,734 - [124147] - 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 = 149990 and sm.IsActive =1 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 09:23:10,021 - [124147] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 09:23:10,021 - [124147] - 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 = 149990 and sm.IsActive =1 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 09:23:10,309 - [124147] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 09:23:10,309 - [124147] - 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 = 149990 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 09:23:10,594 - [124147] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 09:23:10,595 - [124147] - 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 = 149990 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 09:23:10,879 - [124147] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 09:23:10,893 - [124147] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 149990;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 09:23:11,175 - [124147] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 09:23:11,181 - [124147] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId, AppliedDiscountAmt as AppliedDiscountAmount,IsActive ,ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 149990;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 09:23:11,465 - [124147] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 09:23:11,468 - [124147] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId,IsActive,DiscountAmount, IsDiscountPercent,DiscountPercent,DiscountDescription , ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 149990;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 09:23:11,752 - [124147] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 09:23:11,753 - [124147] - src.utils.log - INFO - Sequential Insertion in invoice tables begin - __SPLIT__ 2026-03-16 09:23:11,753 - [124147] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.AccountDiscountSetup: - __SPLIT__ 2026-03-16 09:23:11,753 - [124147] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-03-16 09:23:11,753 - [124147] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceCharges: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 09:23:12,043 - [124147] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.InvoiceCharges - __SPLIT__ 2026-03-16 09:23:13,041 - [124147] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.InvoiceCharges in 1 batches - __SPLIT__ 2026-03-16 09:23:13,042 - [124147] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.DiscountApplied: - __SPLIT__ 2026-03-16 09:23:13,042 - [124147] - src.utils.log - INFO - Invoice Publish Done - __SPLIT__ 2026-03-16 09:23:13,042 - [124147] - src.utils.log - INFO - Updating Next GenerationDate - __SPLIT__ 2026-03-16 09:23:13,042 - [124147] - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, MAX(NextWorkOrderGenerationDate) AS MaxNextWorkOrderGeneration FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 124147 GROUP BY ServiceSetupId; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 09:23:13,327 - [124147] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 09:23:13,333 - [124147] - src.utils.log - INFO - πŸ”„ Updating next gen date sequentially: inside update_next_workorder_generation - __SPLIT__ 2026-03-16 09:23:13,474 - [124147] - src.utils.log - INFO - πŸ›  Creating temp table #tbl_13fc2af3f0 - __SPLIT__ 2026-03-16 09:23:13,758 - [124147] - src.utils.log - INFO - πŸ“Œ Bulk inserting 1 rows into #tbl_13fc2af3f0 - __SPLIT__ 2026-03-16 09:23:14,040 - [124147] - src.utils.log - INFO - πŸ” Running MERGE update to apply changes - __SPLIT__ 2026-03-16 09:23:14,190 - [124147] - src.utils.log - INFO - βœ” SQL reported affected rows: 1 - __SPLIT__ 2026-03-16 09:23:14,336 - [124147] - src.utils.log - INFO - πŸ” Verified successfully updated 1 rows via #tbl_13fc2af3f0 - __SPLIT__ 2026-03-16 09:23:14,336 - [124147] - src.utils.log - INFO - πŸŽ‰ Successfully updated NextGenerationDate using temp table #tbl_13fc2af3f0 - __SPLIT__ 2026-03-16 09:23:14,337 - [124147] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 124147 (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 09:23:14,618 - [124147] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-16 09:23:14,618 - [124147] - src.utils.log - INFO - Sequential deletion from temp tables begin - __SPLIT__ 2026-03-16 09:23:14,618 - [124147] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId in (3448937, 3448938) (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 09:23:15,024 - [124147] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-16 09:23:15,025 - [124147] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId in (3448937, 3448938) (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 09:23:15,340 - [124147] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-16 09:23:15,340 - [124147] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId in (3448937, 3448938) (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 09:23:15,623 - [124147] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-16 09:23:15,623 - [124147] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId in (3448937, 3448938) (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 09:23:15,961 - [124147] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-16 09:23:15,961 - [124147] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId in (3448937, 3448938) (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 09:23:16,250 - [124147] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-16 09:23:16,251 - [124147] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (3448937, 3448938) (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 09:23:16,534 - [124147] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-16 09:23:16,534 - [124147] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId in (3448937, 3448938) (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 09:23:16,817 - [124147] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-16 09:23:16,817 - [124147] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (3448937, 3448938) (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 09:23:17,173 - [124147] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-16 09:23:17,173 - [124147] - src.utils.log - INFO - Work order published ids: (3448937, 3448938) - __SPLIT__ 2026-03-16 09:23:17,174 - [124147] - src.utils.log - INFO - Time took to perform operation in publishing [124147]: 30.28 - __SPLIT__ 2026-03-16 09:23:17,174 - [124147] - src.utils.log - INFO - Publish Completed for GenerateWorkOrderHistoryId: [124147] - __SPLIT__ 2026-03-16 09:23:17,174 - [124147] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-03-16 05:23:17.173' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124147;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 09:23:17,457 - [124147] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-03-16 14:07:44,695 - 124149 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=124149 - __SPLIT__ 2026-03-16 14:07:44,696 - 124149 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 124149 - __SPLIT__ 2026-03-16 14:07:44,696 - 124149 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-03-16 14:07:44,697 - 124149 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 14:07:46,807 - 124149 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 14:07:46,808 - 124149 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-03-16 14:07:46,808 - 124149 - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-03-16 14:07:46,808 - 124149 - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-03-16 14:07:46,809 - 124149 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 124149;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 14:07:48,782 - 124149 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-03-16 14:07:48,783 - 124149 - 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 = 124149), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 124149), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 124149 AND ss.FrequencyScheduleId IS NOT NULL AND ss.IsActive = 1 AND ss.IsDeleted = 0 AND ss.Status <> 'Canceled';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 14:07:49,671 - 124149 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 14:07:49,672 - 124149 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 124149;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 14:07:49,955 - 124149 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 14:07:49,958 - 124149 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-03-16 14:07:49,959 - 124149 - 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-03-16 14:07:50,252 - 124149 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 14:07:50,252 - 124149 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-03-16 14:07:50,255 - 124149 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-03-16 14:07:50,256 - 124149 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 149993;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 14:07:50,539 - 124149 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 14:07:50,539 - 124149 - src.utils.log - INFO - πŸ” Fetching data: select ServiceDate, ServiceSetupId from serviceCore.WorkOrder wo inner join ServiceCore.WorkOrderStatus wos on wo.WoStatusId = wos.WoStatusId where ServiceDate >= '2026-03-16 00:00:00' and ServiceDate <= '2026-05-31 00:00:00' and ServiceSetupId = 149993 and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 14:07:50,835 - 124149 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 14:07:51,424 - 124149 - src.utils.log - INFO - Generating work orders for setup: 149993 - __SPLIT__ 2026-03-16 14:07:51,452 - 124149 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 11437;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 14:07:51,733 - 124149 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 14:07:51,742 - 124149 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 1133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 14:07:52,023 - 124149 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 14:07:52,062 - 124149 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-03-16 14:07:52,068 - 124149 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=133 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 14:07:52,348 - 124149 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 14:07:52,353 - 124149 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-03-16 14:07:52,353 - 124149 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-03-16 14:07:52,353 - 124149 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 149993 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 14:07:52,786 - 124149 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-16 14:07:52,786 - 124149 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 149993 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 14:07:53,228 - 124149 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-16 14:07:53,229 - 124149 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 149993 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 14:07:53,518 - 124149 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-16 14:07:53,518 - 124149 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 149993 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 14:07:53,997 - 124149 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-16 14:07:53,998 - 124149 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 149993 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 14:07:54,477 - 124149 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-16 14:07:54,477 - 124149 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 149993 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 14:07:54,764 - 124149 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-16 14:07:54,764 - 124149 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 149993 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 14:07:55,050 - 124149 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-16 14:07:55,050 - 124149 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 149993 (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 14:07:55,485 - 124149 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-16 14:07:55,485 - 124149 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-03-16 14:07:55,485 - 124149 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 4 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 14:07:55,804 - 124149 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 4) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-03-16 14:07:56,981 - 124149 - src.utils.log - INFO - βœ… All 4 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-03-16 14:07:56,981 - 124149 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 4 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-03-16 12:12:22.250' and ServiceSetupId = 149993... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 14:07:57,420 - 124149 - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-03-16 14:07:57,421 - 124149 - src.utils.log - INFO - Id's of work order inserted to DB: [3448941 3448942 3448943 3448944] - __SPLIT__ 2026-03-16 14:07:57,421 - 124149 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 149993;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 14:07:57,703 - 124149 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 14:07:57,704 - 124149 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-03-16 14:07:57,704 - 124149 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId = 149993... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 14:07:57,988 - 124149 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-03-16 14:07:57,988 - 124149 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId = 149993... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 14:07:58,271 - 124149 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-03-16 14:07:58,278 - 124149 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId = 149993... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 14:07:58,573 - 124149 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-03-16 14:07:58,575 - 124149 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId = 149993... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 14:07:58,858 - 124149 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 14:07:58,858 - 124149 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId = 149993... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 14:07:59,139 - 124149 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 14:07:59,140 - 124149 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId = 149993;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 14:07:59,424 - 124149 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 14:07:59,425 - 124149 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId = 149993;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 14:07:59,707 - 124149 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 14:07:59,707 - 124149 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId = 149993;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 14:08:00,022 - 124149 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 14:08:00,023 - 124149 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId = 149993;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 14:08:00,306 - 124149 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 14:08:00,324 - 124149 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-03-16 14:08:00,324 - 124149 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-03-16 14:08:00,324 - 124149 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-03-16 14:08:00,324 - 124149 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.CommunicationPreferencesServiceReportNotification: - __SPLIT__ 2026-03-16 14:08:00,324 - 124149 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-03-16 14:08:00,324 - 124149 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SetupAutoGenerationSourceMapping: - __SPLIT__ 2026-03-16 14:08:00,325 - 124149 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-03-16 14:08:00,325 - 124149 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-03-16 14:08:00,325 - 124149 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 3448941 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 14:08:00,607 - 124149 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 14:08:00,608 - 124149 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationAppliedDiscount: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 14:08:00,898 - 124149 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderAutoGenerationAppliedDiscount - __SPLIT__ 2026-03-16 14:08:01,893 - 124149 - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationAppliedDiscount in 1 batches - __SPLIT__ 2026-03-16 14:08:01,893 - 124149 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-03-16 14:08:01,893 - 124149 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SubWorkOrderAutoGeneration: - __SPLIT__ 2026-03-16 14:08:01,893 - 124149 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-03-16 14:08:01,894 - 124149 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: - __SPLIT__ 2026-03-16 14:08:01,894 - 124149 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-03-16 14:08:01,894 - 124149 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: - __SPLIT__ 2026-03-16 14:08:01,894 - 124149 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-03-16 14:08:01,894 - 124149 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-03-16 14:08:01,894 - 124149 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3448944, 3448941, 3448942, 3448943) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 14:08:02,176 - 124149 - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-03-16 14:08:02,177 - 124149 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationCrews: 4 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 14:08:02,465 - 124149 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 4) into ServiceCore.WorkOrderAutoGenerationCrews - __SPLIT__ 2026-03-16 14:08:03,464 - 124149 - src.utils.log - INFO - βœ… All 4 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationCrews in 1 batches - __SPLIT__ 2026-03-16 14:08:03,464 - 124149 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-03-16 14:08:03,464 - 124149 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-03-16 14:08:03,464 - 124149 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 14:08:03,754 - 124149 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-03-16 14:08:04,762 - 124149 - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-03-16 14:08:04,763 - 124149 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-03-16 14:08:04,763 - 124149 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-03-16 14:08:04,763 - 124149 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 6 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 14:08:05,052 - 124149 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 6) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-03-16 14:08:06,046 - 124149 - src.utils.log - INFO - βœ… All 6 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-03-16 14:08:06,046 - 124149 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-03-16 14:08:06,047 - 124149 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 124149;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 14:08:06,328 - 124149 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-03-16 14:08:06,328 - 124149 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-03-16 14:08:06,328 - 124149 - src.utils.log - INFO - Time took to perform operation: 21.63 - __SPLIT__ 2026-03-16 14:08:06,329 - 124149 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 124149;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 14:08:06,610 - 124149 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-03-16 14:08:06,610 - 124149 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET WorkOrderStatusDateTime = '2026-03-16 10:08:06.610' WHERE GenerateWorkOrderHistoryId = 124149;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 14:08:06,892 - 124149 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-03-16 14:08:18,530 - [124149] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[] user_id=43135 company_id=133 project_id=[124149] publish_all=True - __SPLIT__ 2026-03-16 14:08:18,531 - [124149] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[] user_id=43135 company_id=133 project_id=[124149] publish_all=True - __SPLIT__ 2026-03-16 14:08:18,531 - [124149] - src.utils.log - INFO - Sequential Work order publish in progress for GenerateWorkOrderHistoryId: [124149] - __SPLIT__ 2026-03-16 14:08:18,532 - [124149] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-03-16 14:08:18,532 - [124149] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 14:08:20,599 - [124149] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 14:08:20,600 - [124149] - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-03-16 14:08:20,600 - [124149] - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-03-16 14:08:20,601 - [124149] - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-03-16 14:08:20,601 - [124149] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'InProgress' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124149;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 14:08:22,561 - [124149] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-03-16 14:08:22,561 - [124149] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGeneration woag WHERE woag.GenerateWorkOrderHistoryId = 124149... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 14:08:22,896 - [124149] - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-03-16 14:08:22,897 - [124149] - src.utils.log - INFO - Inside get_work_order_table - __SPLIT__ 2026-03-16 14:08:22,897 - [124149] - 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 = 149993 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 14:08:23,188 - [124149] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 14:08:23,188 - [124149] - 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 = 149993 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 14:08:23,476 - [124149] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 14:08:23,476 - [124149] - 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 = 149993 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 14:08:23,769 - [124149] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 14:08:23,773 - [124149] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder,BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 14:08:24,051 - [124149] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 14:08:24,051 - [124149] - 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-03-16 14:08:24,330 - [124149] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-03-16 14:08:24,331 - [124149] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder, BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 14:08:24,609 - [124149] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 14:08:24,609 - [124149] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 4 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 133 AND EnitityNumberType = 'WorkOrder'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 14:08:24,893 - [124149] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 14:08:24,893 - [124149] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 4 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 133 AND EnitityNumberType = 'Invoice'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 14:08:25,176 - [124149] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 14:08:25,180 - [124149] - 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 = 149993... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 14:08:25,465 - [124149] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 14:08:25,469 - [124149] - src.utils.log - INFO - πŸ” Fetching data: SELECT x.CompanyId FROM CRM.CompanyMaster x WHERE CompanyKey = 'abcdallas';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 14:08:25,748 - [124149] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 14:08:25,749 - [124149] - src.utils.log - INFO - πŸ” Fetching data: SELECT CollectionStatus,IsHold,AccountNo FROM CRM.Account a WHERE a.AccountNo = '14671' and a.CompanyId = 121;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 14:08:26,028 - [124149] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 14:08:26,030 - [124149] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderNo FROM ServiceCore.WorkOrder WHERE WorkOrderNo IN ('1361813', '1361814', '1361815', '1361816') AND CompanyId = 133 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 14:08:26,316 - [124149] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 14:08:26,316 - [124149] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrder (skip triggers): 4 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 14:08:26,770 - [124149] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 4) into ServiceCore.WorkOrder (triggers skipped) - __SPLIT__ 2026-03-16 14:08:27,957 - [124149] - src.utils.log - INFO - βœ… All 4 rows inserted successfully into ServiceCore.WorkOrder in 1 batches (triggers skipped) - __SPLIT__ 2026-03-16 14:08:28,096 - [124149] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-03-16 14:08:28,097 - [124149] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.ServiceSetup SET IsInitialWoGenerated = 1 WHERE CompanyId = 133 AND ServiceSetupId = 149993;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 14:08:28,383 - [124149] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-03-16 14:08:28,384 - [124149] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkorderId, WorkOrderNo FROM ServiceCore.WorkOrder wo WHERE wo.WorkOrderNo IN ('1361813', '1361814', '1361815', '1361816') AND wo.AccountNumber = '14671' AND wo.CompanyId = 133 ... (Thread: ThreadPoolExecutor-30_0) - __SPLIT__ 2026-03-16 14:08:28,673 - [124149] - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-03-16 14:08:28,674 - [124149] - src.utils.log - INFO - Sequential fetching temp table records - __SPLIT__ 2026-03-16 14:08:28,674 - [124149] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationServices woag WHERE woag.WorkOrderAutoGenerationId in (3448941, 3448942, 3448943, 3448944)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 14:08:29,000 - [124149] - src.utils.log - INFO - βœ… Fetched 8 rows - __SPLIT__ 2026-03-16 14:08:29,000 - [124149] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SubWorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (3448941, 3448942, 3448943, 3448944)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 14:08:29,281 - [124149] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 14:08:29,281 - [124149] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationCrews woag WHERE woag.WorkOrderAutoGenerationId in (3448941, 3448942, 3448943, 3448944)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 14:08:29,573 - [124149] - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-03-16 14:08:29,573 - [124149] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationSalesPersonCommission woag WHERE woag.WorkOrderAutoGenerationId in (3448941, 3448942, 3448943, 3448944)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 14:08:29,854 - [124149] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 14:08:29,854 - [124149] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupAutoGenerationSourceMapping woag WHERE woag.WorkOrderAutoGenerationId in (3448941, 3448942, 3448943, 3448944)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 14:08:30,136 - [124149] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 14:08:30,136 - [124149] - 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 (3448941, 3448942, 3448943, 3448944)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 14:08:30,440 - [124149] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 14:08:30,440 - [124149] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from CRM.LeadNote woag WHERE woag.RefId in (3448941, 3448942, 3448943, 3448944) and woag.RefType = 'TempWorkorder';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 14:08:30,722 - [124149] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 14:08:30,722 - [124149] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment woagca WHERE woagca.WorkOrderAutoGenerationId in (3448941, 3448942, 3448943, 3448944);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 14:08:31,003 - [124149] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 14:08:31,005 - [124149] - src.utils.log - INFO - Updating temp tables - __SPLIT__ 2026-03-16 14:08:31,020 - [124149] - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyKey FROM Common.CompanyMaster cm WHERE CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 14:08:31,298 - [124149] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 14:08:31,302 - [124149] - src.utils.log - INFO - πŸ” Fetching data: Select DiscountSetupId, [SysName] as DiscountSysName from Common.DiscountSetupMaster WHERE DiscountSetupId = 640 AND CompanyId = 133 AND IsActive = 1;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 14:08:31,582 - [124149] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 14:08:31,584 - [124149] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 133 AND EnitityNumberType in ('SubWorkOrder'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 14:08:31,864 - [124149] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 14:08:31,868 - [124149] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-03-16 14:08:31,868 - [124149] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishHistory: 4 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 14:08:32,173 - [124149] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 4) into ServiceCore.WorkOrderAutoGenerationPublishHistory - __SPLIT__ 2026-03-16 14:08:33,183 - [124149] - src.utils.log - INFO - βœ… All 4 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishHistory in 1 batches - __SPLIT__ 2026-03-16 14:08:33,185 - [124149] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationPublishHistoryId, WorkOrderNo, ServiceSetupId FROM ServiceCore.WorkOrderAutoGenerationPublishHistory WHERE ServiceSetupId = 149993 AND WorkOrderNo IN ('527994', '4502531', '1922555', '7743380') AND GenerateWorkOrderHistoryId = 124149;... (Thread: ThreadPoolExecutor-31_0) - __SPLIT__ 2026-03-16 14:08:33,560 - [124149] - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-03-16 14:08:33,560 - [124149] - src.utils.log - INFO - 🏁 Final merged rows: 4 - __SPLIT__ 2026-03-16 14:08:33,567 - [124149] - src.utils.log - INFO - Sequential Insertion in work order tables begin - __SPLIT__ 2026-03-16 14:08:33,567 - [124149] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-03-16 14:08:33,567 - [124149] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderServices: 8 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 14:08:33,854 - [124149] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 8) into ServiceCore.WorkOrderServices - __SPLIT__ 2026-03-16 14:08:34,854 - [124149] - src.utils.log - INFO - βœ… All 8 rows inserted successfully into ServiceCore.WorkOrderServices in 1 batches - __SPLIT__ 2026-03-16 14:08:34,855 - [124149] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SubWorkOrder: - __SPLIT__ 2026-03-16 14:08:34,855 - [124149] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-03-16 14:08:34,855 - [124149] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.WorkOrderAppliedDiscount: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 14:08:35,169 - [124149] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceAuto.WorkOrderAppliedDiscount - __SPLIT__ 2026-03-16 14:08:36,162 - [124149] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceAuto.WorkOrderAppliedDiscount in 1 batches - __SPLIT__ 2026-03-16 14:08:36,163 - [124149] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderSalesPersonCommission: - __SPLIT__ 2026-03-16 14:08:36,163 - [124149] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderCommissionAdjustment: - __SPLIT__ 2026-03-16 14:08:36,163 - [124149] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-03-16 14:08:36,163 - [124149] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderCrew: 4 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 14:08:36,448 - [124149] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 4) into ServiceCore.WorkOrderCrew - __SPLIT__ 2026-03-16 14:08:37,440 - [124149] - src.utils.log - INFO - βœ… All 4 rows inserted successfully into ServiceCore.WorkOrderCrew in 1 batches - __SPLIT__ 2026-03-16 14:08:37,440 - [124149] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkorderSourceMapping: - __SPLIT__ 2026-03-16 14:08:37,440 - [124149] - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-03-16 14:08:37,440 - [124149] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-03-16 14:08:37,441 - [124149] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishServices: 8 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 14:08:37,728 - [124149] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 8) into ServiceCore.WorkOrderAutoGenerationPublishServices - __SPLIT__ 2026-03-16 14:08:38,725 - [124149] - src.utils.log - INFO - βœ… All 8 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishServices in 1 batches - __SPLIT__ 2026-03-16 14:08:38,725 - [124149] - 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 = 149993... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 14:08:39,005 - [124149] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 14:08:39,012 - [124149] - src.utils.log - INFO - Size of Transaction: 4 - __SPLIT__ 2026-03-16 14:08:39,013 - [124149] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 4 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 14:08:39,438 - [124149] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 4) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-03-16 14:08:40,440 - [124149] - src.utils.log - INFO - βœ… All 4 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-03-16 14:08:40,579 - [124149] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-03-16 14:08:40,580 - [124149] - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionId, ModifiedBy, TransactionDate as InvoiceDate from Billing.[Transaction] t WHERE t.ModifiedBy in (12345678910, 12345678911, 12345678912, 12345678913) and t.CompanyId = 133 AND t.TransactionType ='Invoice' AND t.CreatedDate = '2026-03-16 10:08:39.007';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 14:08:41,052 - [124149] - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-03-16 14:08:41,055 - [124149] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 149993;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 14:08:41,335 - [124149] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 14:08:41,344 - [124149] - src.utils.log - INFO - πŸ“ Executing: UPDATE Billing.[Transaction] SET ModifiedBy = NULL WHERE ModifiedBy IN (12345678910,12345678911,12345678912,12345678913) AND CreatedDate = '2026-03-16 10:08:39.007'; ... (Thread: ThreadPoolExecutor-32_0) - __SPLIT__ 2026-03-16 14:08:41,772 - [124149] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-03-16 14:08:41,777 - [124149] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-03-16 14:08:41,777 - [124149] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 4 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 14:08:42,067 - [124149] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 4) into Billing.Invoice - __SPLIT__ 2026-03-16 14:08:43,061 - [124149] - src.utils.log - INFO - βœ… All 4 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-03-16 14:08:43,062 - [124149] - src.utils.log - INFO - πŸ” Fetching data: SELECT InvoiceId, WorkOrderNo FROM Billing.Invoice i WHERE i.WorkOrderNo in ('1361813', '1361816', '1361815', '1361814')... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 14:08:43,434 - [124149] - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-03-16 14:08:43,444 - [124149] - 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 = 149993 and sm.IsActive =1 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 14:08:43,727 - [124149] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-03-16 14:08:43,728 - [124149] - 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 = 149993 and sm.IsActive =1 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 14:08:44,013 - [124149] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-03-16 14:08:44,013 - [124149] - 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 = 149993 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 14:08:44,295 - [124149] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 14:08:44,295 - [124149] - 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 = 149993 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 14:08:44,577 - [124149] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 14:08:44,592 - [124149] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 149993;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 14:08:44,872 - [124149] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 14:08:44,877 - [124149] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId, AppliedDiscountAmt as AppliedDiscountAmount,IsActive ,ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 149993;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 14:08:45,158 - [124149] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 14:08:45,170 - [124149] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId,IsActive,DiscountAmount, IsDiscountPercent,DiscountPercent,DiscountDescription , ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 149993;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 14:08:45,451 - [124149] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 14:08:45,460 - [124149] - src.utils.log - INFO - Sequential Insertion in invoice tables begin - __SPLIT__ 2026-03-16 14:08:45,460 - [124149] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-03-16 14:08:45,461 - [124149] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.AccountDiscountSetup: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 14:08:45,768 - [124149] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into Billing.AccountDiscountSetup - __SPLIT__ 2026-03-16 14:08:46,756 - [124149] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into Billing.AccountDiscountSetup in 1 batches - __SPLIT__ 2026-03-16 14:08:46,757 - [124149] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-03-16 14:08:46,757 - [124149] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceCharges: 8 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 14:08:47,045 - [124149] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 8) into Billing.InvoiceCharges - __SPLIT__ 2026-03-16 14:08:48,043 - [124149] - src.utils.log - INFO - βœ… All 8 rows inserted successfully into Billing.InvoiceCharges in 1 batches - __SPLIT__ 2026-03-16 14:08:48,043 - [124149] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-03-16 14:08:48,043 - [124149] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.DiscountApplied: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 14:08:48,351 - [124149] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into Billing.DiscountApplied - __SPLIT__ 2026-03-16 14:08:49,337 - [124149] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into Billing.DiscountApplied in 1 batches - __SPLIT__ 2026-03-16 14:08:49,337 - [124149] - src.utils.log - INFO - Invoice Publish Done - __SPLIT__ 2026-03-16 14:08:49,337 - [124149] - src.utils.log - INFO - Updating Next GenerationDate - __SPLIT__ 2026-03-16 14:08:49,338 - [124149] - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, MAX(NextWorkOrderGenerationDate) AS MaxNextWorkOrderGeneration FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 124149 GROUP BY ServiceSetupId; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 14:08:49,618 - [124149] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 14:08:49,625 - [124149] - src.utils.log - INFO - πŸ”„ Updating next gen date sequentially: inside update_next_workorder_generation - __SPLIT__ 2026-03-16 14:08:49,765 - [124149] - src.utils.log - INFO - πŸ›  Creating temp table #tbl_2e48fc13b6 - __SPLIT__ 2026-03-16 14:08:50,046 - [124149] - src.utils.log - INFO - πŸ“Œ Bulk inserting 1 rows into #tbl_2e48fc13b6 - __SPLIT__ 2026-03-16 14:08:50,326 - [124149] - src.utils.log - INFO - πŸ” Running MERGE update to apply changes - __SPLIT__ 2026-03-16 14:08:50,476 - [124149] - src.utils.log - INFO - βœ” SQL reported affected rows: 1 - __SPLIT__ 2026-03-16 14:08:50,620 - [124149] - src.utils.log - INFO - πŸ” Verified successfully updated 1 rows via #tbl_2e48fc13b6 - __SPLIT__ 2026-03-16 14:08:50,621 - [124149] - src.utils.log - INFO - πŸŽ‰ Successfully updated NextGenerationDate using temp table #tbl_2e48fc13b6 - __SPLIT__ 2026-03-16 14:08:50,621 - [124149] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 124149 (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 14:08:50,899 - [124149] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-16 14:08:50,899 - [124149] - src.utils.log - INFO - Sequential deletion from temp tables begin - __SPLIT__ 2026-03-16 14:08:50,899 - [124149] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId in (3448941, 3448942, 3448943, 3448944) (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 14:08:51,302 - [124149] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-16 14:08:51,302 - [124149] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId in (3448941, 3448942, 3448943, 3448944) (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 14:08:51,614 - [124149] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-16 14:08:51,614 - [124149] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId in (3448941, 3448942, 3448943, 3448944) (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 14:08:51,895 - [124149] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-16 14:08:51,895 - [124149] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId in (3448941, 3448942, 3448943, 3448944) (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 14:08:52,234 - [124149] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-16 14:08:52,235 - [124149] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId in (3448941, 3448942, 3448943, 3448944) (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 14:08:52,522 - [124149] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-16 14:08:52,522 - [124149] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (3448941, 3448942, 3448943, 3448944) (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 14:08:52,803 - [124149] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-16 14:08:52,803 - [124149] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId in (3448941, 3448942, 3448943, 3448944) (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 14:08:53,084 - [124149] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-16 14:08:53,084 - [124149] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (3448941, 3448942, 3448943, 3448944) (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 14:08:53,500 - [124149] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-16 14:08:53,500 - [124149] - src.utils.log - INFO - Work order published ids: (3448941, 3448942, 3448943, 3448944) - __SPLIT__ 2026-03-16 14:08:53,500 - [124149] - src.utils.log - INFO - Time took to perform operation in publishing [124149]: 34.97 - __SPLIT__ 2026-03-16 14:08:53,500 - [124149] - src.utils.log - INFO - Publish Completed for GenerateWorkOrderHistoryId: [124149] - __SPLIT__ 2026-03-16 14:08:53,500 - [124149] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-03-16 10:08:53.500' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124149;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 14:08:53,781 - [124149] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-03-16 14:13:28,387 - 124150 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=124150 - __SPLIT__ 2026-03-16 14:13:28,388 - 124150 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 124150 - __SPLIT__ 2026-03-16 14:13:28,389 - 124150 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-03-16 14:13:28,389 - 124150 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 14:13:30,436 - 124150 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 14:13:30,436 - 124150 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-03-16 14:13:30,437 - 124150 - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-03-16 14:13:30,437 - 124150 - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-03-16 14:13:30,437 - 124150 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 124150;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 14:13:32,328 - 124150 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-03-16 14:13:32,328 - 124150 - 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 = 124150), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 124150), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 124150 AND ss.FrequencyScheduleId IS NOT NULL AND ss.IsActive = 1 AND ss.IsDeleted = 0 AND ss.Status <> 'Canceled';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 14:13:33,617 - 124150 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-16 14:13:33,617 - 124150 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 124150;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 14:13:33,889 - 124150 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-16 14:13:33,890 - 124150 - src.utils.log - INFO - No Setup Found Error:No setups found for GenerateWorkOrderHistoryid: 124150 - __SPLIT__ 2026-03-16 14:13:33,890 - 124150 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 124150;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 14:13:34,161 - 124150 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-03-16 14:13:34,161 - 124150 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET WorkOrderStatusDateTime = '2026-03-16 10:13:34.161' WHERE GenerateWorkOrderHistoryId = 124150;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-16 14:13:34,432 - 124150 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-03-18 08:58:19,604 - 124153 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=124153 - __SPLIT__ 2026-03-18 08:58:19,605 - 124153 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 124153 - __SPLIT__ 2026-03-18 08:58:19,605 - 124153 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-03-18 08:58:19,605 - 124153 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-18 08:58:21,687 - 124153 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-18 08:58:21,687 - 124153 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-03-18 08:58:21,688 - 124153 - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-03-18 08:58:21,689 - 124153 - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-03-18 08:58:21,689 - 124153 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 124153;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-18 08:58:23,662 - 124153 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-03-18 08:58:23,662 - 124153 - 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 = 124153), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 124153), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 124153 AND ss.FrequencyScheduleId IS NOT NULL AND ss.IsActive = 1 AND ss.IsDeleted = 0 AND ss.Status <> 'Canceled';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-18 08:58:24,071 - 124153 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-18 08:58:24,071 - 124153 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 124153;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-18 08:58:24,355 - 124153 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-18 08:58:24,358 - 124153 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-03-18 08:58:24,358 - 124153 - 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-03-18 08:58:24,648 - 124153 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-18 08:58:24,648 - 124153 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-03-18 08:58:24,651 - 124153 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-03-18 08:58:24,652 - 124153 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 149970;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-18 08:58:24,935 - 124153 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-18 08:58:24,936 - 124153 - src.utils.log - INFO - πŸ” Fetching data: select ServiceDate, ServiceSetupId from serviceCore.WorkOrder wo inner join ServiceCore.WorkOrderStatus wos on wo.WoStatusId = wos.WoStatusId where ServiceDate >= '2026-03-18 00:00:00' and ServiceDate <= '2026-12-31 00:00:00' and ServiceSetupId = 149970 and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-18 08:58:25,225 - 124153 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-18 08:58:25,808 - 124153 - src.utils.log - INFO - Generating work orders for setup: 149970 - __SPLIT__ 2026-03-18 08:58:25,885 - 124153 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-03-18 08:58:25,885 - 124153 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-03-18 08:58:25,885 - 124153 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 149970 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-18 08:58:26,194 - 124153 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-18 08:58:26,194 - 124153 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 149970 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-18 08:58:26,504 - 124153 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-18 08:58:26,505 - 124153 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 149970 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-18 08:58:26,790 - 124153 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-18 08:58:26,790 - 124153 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 149970 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-18 08:58:27,096 - 124153 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-18 08:58:27,096 - 124153 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 149970 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-18 08:58:27,397 - 124153 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-18 08:58:27,397 - 124153 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 149970 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-18 08:58:27,682 - 124153 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-18 08:58:27,682 - 124153 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 149970 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-18 08:58:27,965 - 124153 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-18 08:58:27,966 - 124153 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 149970 (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-18 08:58:28,279 - 124153 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-18 08:58:28,279 - 124153 - src.utils.log - INFO - No work order found in given range - __SPLIT__ 2026-03-18 08:58:28,279 - 124153 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 124153;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-18 08:58:28,559 - 124153 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-03-18 08:58:28,559 - 124153 - src.utils.log - INFO - Time took to perform operation: 8.95 - __SPLIT__ 2026-03-18 08:58:28,559 - 124153 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 124153;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-18 08:58:28,839 - 124153 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-03-18 08:58:28,839 - 124153 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET WorkOrderStatusDateTime = '2026-03-18 04:58:28.839' WHERE GenerateWorkOrderHistoryId = 124153;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-18 08:58:29,120 - 124153 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-03-23 08:12:01,516 - 124197 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=124197 - __SPLIT__ 2026-03-23 08:12:01,772 - 124197 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 124197 - __SPLIT__ 2026-03-23 08:12:01,862 - 124197 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-03-23 08:12:01,937 - 124197 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-23 08:12:04,810 - 124197 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-23 08:12:04,891 - 124197 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-03-23 08:12:04,965 - 124197 - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-03-23 08:12:05,036 - 124197 - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-03-23 08:12:05,098 - 124197 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 124197;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-23 08:12:07,571 - 124197 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-03-23 08:12:07,639 - 124197 - 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 = 124197), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 124197), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 124197 AND ss.FrequencyScheduleId IS NOT NULL AND ss.IsActive = 1 AND ss.IsDeleted = 0 AND ss.Status <> 'Canceled';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-23 08:12:08,081 - 124197 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-23 08:12:08,149 - 124197 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 124197;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-23 08:12:08,490 - 124197 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-23 08:12:08,564 - 124197 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-03-23 08:12:08,636 - 124197 - 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 = 14734... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-23 08:12:08,982 - 124197 - src.utils.log - INFO - βœ… Fetched 60 rows - __SPLIT__ 2026-03-23 08:12:09,050 - 124197 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-03-23 08:12:09,123 - 124197 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-03-23 08:12:09,191 - 124197 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 53920;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-23 08:12:09,580 - 124197 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-23 08:12:09,642 - 124197 - src.utils.log - INFO - πŸ” Fetching data: select ServiceDate, ServiceSetupId from serviceCore.WorkOrder wo inner join ServiceCore.WorkOrderStatus wos on wo.WoStatusId = wos.WoStatusId where ServiceDate >= '2027-01-01 00:00:00' and ServiceDate <= '2027-04-30 00:00:00' and ServiceSetupId = 53920 and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-23 08:12:09,978 - 124197 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-23 08:12:10,584 - 124197 - src.utils.log - INFO - Generating work orders for setup: 53920 - __SPLIT__ 2026-03-23 08:12:10,643 - 124197 - src.utils.log - INFO - Unable to get work order table Error: 'ServiceSetupId' - __SPLIT__ 2026-03-23 08:12:10,705 - 124197 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-03-23 08:12:10,753 - 124197 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-03-23 08:12:10,814 - 124197 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 53920 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-23 08:12:11,165 - 124197 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-23 08:12:11,225 - 124197 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 53920 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-23 08:12:11,591 - 124197 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-23 08:12:11,652 - 124197 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 53920 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-23 08:12:11,975 - 124197 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-23 08:12:12,035 - 124197 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 53920 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-23 08:12:12,383 - 124197 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-23 08:12:12,445 - 124197 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 53920 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-23 08:12:12,789 - 124197 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-23 08:12:12,847 - 124197 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 53920 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-23 08:12:13,168 - 124197 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-23 08:12:13,228 - 124197 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 53920 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-23 08:12:13,607 - 124197 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-23 08:12:13,672 - 124197 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 53920 (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-23 08:12:14,032 - 124197 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-23 08:12:14,101 - 124197 - src.utils.log - INFO - No work order found in given range - __SPLIT__ 2026-03-23 08:12:14,167 - 124197 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 124197;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-23 08:12:14,505 - 124197 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-03-23 08:12:14,571 - 124197 - src.utils.log - INFO - Time took to perform operation: 12.72 - __SPLIT__ 2026-03-23 08:12:14,640 - 124197 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 124197;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-23 08:12:14,974 - 124197 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-03-23 08:12:15,040 - 124197 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET WorkOrderStatusDateTime = '2026-03-23 04:12:15.040' WHERE GenerateWorkOrderHistoryId = 124197;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-23 08:12:15,377 - 124197 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-03-23 08:15:49,311 - 124199 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=124199 - __SPLIT__ 2026-03-23 08:15:49,434 - 124199 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 124199 - __SPLIT__ 2026-03-23 08:15:49,502 - 124199 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-03-23 08:15:49,569 - 124199 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-23 08:15:51,783 - 124199 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-23 08:15:51,855 - 124199 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-03-23 08:15:51,930 - 124199 - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-03-23 08:15:52,000 - 124199 - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-03-23 08:15:52,066 - 124199 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 124199;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-23 08:15:54,004 - 124199 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-03-23 08:15:54,077 - 124199 - 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 = 124199), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 124199), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 124199 AND ss.FrequencyScheduleId IS NOT NULL AND ss.IsActive = 1 AND ss.IsDeleted = 0 AND ss.Status <> 'Canceled';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-23 08:15:54,516 - 124199 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-23 08:15:54,579 - 124199 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 124199;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-23 08:15:54,918 - 124199 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-23 08:15:54,989 - 124199 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-03-23 08:15:55,061 - 124199 - 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 = 14734... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-23 08:15:55,407 - 124199 - src.utils.log - INFO - βœ… Fetched 60 rows - __SPLIT__ 2026-03-23 08:15:55,471 - 124199 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-03-23 08:15:55,546 - 124199 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-03-23 08:15:55,614 - 124199 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 53920;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-23 08:15:55,943 - 124199 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-23 08:15:56,062 - 124199 - src.utils.log - INFO - πŸ” Fetching data: select ServiceDate, ServiceSetupId from serviceCore.WorkOrder wo inner join ServiceCore.WorkOrderStatus wos on wo.WoStatusId = wos.WoStatusId where ServiceDate >= '2026-03-23 00:00:00' and ServiceDate <= '2027-07-31 00:00:00' and ServiceSetupId = 53920 and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-23 08:15:56,407 - 124199 - src.utils.log - INFO - βœ… Fetched 38 rows - __SPLIT__ 2026-03-23 08:15:57,026 - 124199 - src.utils.log - INFO - Generating work orders for setup: 53920 - __SPLIT__ 2026-03-23 08:15:57,087 - 124199 - src.utils.log - INFO - Unable to get work order table Error: 'ServiceSetupId' - __SPLIT__ 2026-03-23 08:15:57,155 - 124199 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-03-23 08:15:57,217 - 124199 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-03-23 08:15:57,277 - 124199 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 53920 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-23 08:15:57,615 - 124199 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-23 08:15:57,687 - 124199 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 53920 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-23 08:15:58,027 - 124199 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-23 08:15:58,091 - 124199 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 53920 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-23 08:15:58,424 - 124199 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-23 08:15:58,480 - 124199 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 53920 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-23 08:15:58,847 - 124199 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-23 08:15:58,916 - 124199 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 53920 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-23 08:15:59,263 - 124199 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-23 08:15:59,330 - 124199 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 53920 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-23 08:15:59,660 - 124199 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-23 08:15:59,719 - 124199 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 53920 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-23 08:16:00,042 - 124199 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-23 08:16:00,170 - 124199 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 53920 (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-23 08:16:00,529 - 124199 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-23 08:16:00,591 - 124199 - src.utils.log - INFO - No work order found in given range - __SPLIT__ 2026-03-23 08:16:00,684 - 124199 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 124199;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-23 08:16:01,015 - 124199 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-03-23 08:16:01,083 - 124199 - src.utils.log - INFO - Time took to perform operation: 11.58 - __SPLIT__ 2026-03-23 08:16:01,152 - 124199 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 124199;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-23 08:16:01,477 - 124199 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-03-23 08:16:01,534 - 124199 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET WorkOrderStatusDateTime = '2026-03-23 04:16:01.534' WHERE GenerateWorkOrderHistoryId = 124199;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-23 08:16:01,864 - 124199 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-03-23 08:22:06,081 - 124200 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=124200 - __SPLIT__ 2026-03-23 08:22:06,206 - 124200 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 124200 - __SPLIT__ 2026-03-23 08:22:06,268 - 124200 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-03-23 08:22:06,337 - 124200 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-23 08:22:08,578 - 124200 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-23 08:22:08,648 - 124200 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-03-23 08:22:08,714 - 124200 - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-03-23 08:22:08,788 - 124200 - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-03-23 08:22:08,852 - 124200 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 124200;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-23 08:22:10,918 - 124200 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-03-23 08:22:10,983 - 124200 - 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 = 124200), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 124200), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 124200 AND ss.FrequencyScheduleId IS NOT NULL AND ss.IsActive = 1 AND ss.IsDeleted = 0 AND ss.Status <> 'Canceled';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-23 08:22:11,433 - 124200 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-23 08:22:11,499 - 124200 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 124200;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-23 08:22:11,852 - 124200 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-23 08:22:11,920 - 124200 - src.utils.log - INFO - No Setup Found Error:No setups found for GenerateWorkOrderHistoryid: 124200 - __SPLIT__ 2026-03-23 08:22:11,986 - 124200 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 124200;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-23 08:22:12,338 - 124200 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-03-23 08:22:12,404 - 124200 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET WorkOrderStatusDateTime = '2026-03-23 04:22:12.404' WHERE GenerateWorkOrderHistoryId = 124200;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-23 08:22:12,750 - 124200 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-03-23 08:26:54,582 - 124201 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=124201 - __SPLIT__ 2026-03-23 08:26:54,835 - 124201 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 124201 - __SPLIT__ 2026-03-23 08:26:54,919 - 124201 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-03-23 08:26:54,988 - 124201 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-23 08:26:57,984 - 124201 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-23 08:26:58,049 - 124201 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-03-23 08:26:58,117 - 124201 - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-03-23 08:26:58,186 - 124201 - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-03-23 08:26:58,253 - 124201 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 124201;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-23 08:27:00,749 - 124201 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-03-23 08:27:00,823 - 124201 - 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 = 124201), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 124201), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 124201 AND ss.FrequencyScheduleId IS NOT NULL AND ss.IsActive = 1 AND ss.IsDeleted = 0 AND ss.Status <> 'Canceled';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-23 08:27:01,274 - 124201 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-23 08:27:01,344 - 124201 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 124201;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-23 08:27:01,686 - 124201 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-23 08:27:01,758 - 124201 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-03-23 08:27:01,831 - 124201 - 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 = 14650... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-23 08:27:02,179 - 124201 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-23 08:27:02,241 - 124201 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-03-23 08:27:02,316 - 124201 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-03-23 08:27:02,384 - 124201 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 149947;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-23 08:27:02,780 - 124201 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-23 08:27:02,845 - 124201 - src.utils.log - INFO - πŸ” Fetching data: select ServiceDate, ServiceSetupId from serviceCore.WorkOrder wo inner join ServiceCore.WorkOrderStatus wos on wo.WoStatusId = wos.WoStatusId where ServiceDate >= '2026-01-01 00:00:00' and ServiceDate <= '2026-12-31 00:00:00' and ServiceSetupId = 149947 and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-23 08:27:03,194 - 124201 - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-03-23 08:27:03,828 - 124201 - src.utils.log - INFO - Generating work orders for setup: 149947 - __SPLIT__ 2026-03-23 08:27:03,897 - 124201 - src.utils.log - INFO - Unable to get work order table Error: 'ServiceSetupId' - __SPLIT__ 2026-03-23 08:27:03,957 - 124201 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-03-23 08:27:04,018 - 124201 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-03-23 08:27:04,080 - 124201 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 149947 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-23 08:27:04,435 - 124201 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-23 08:27:04,504 - 124201 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 149947 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-23 08:27:04,866 - 124201 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-23 08:27:04,933 - 124201 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 149947 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-23 08:27:05,285 - 124201 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-23 08:27:05,349 - 124201 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 149947 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-23 08:27:05,748 - 124201 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-23 08:27:05,816 - 124201 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 149947 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-23 08:27:06,175 - 124201 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-23 08:27:06,239 - 124201 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 149947 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-23 08:27:06,581 - 124201 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-23 08:27:06,639 - 124201 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 149947 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-23 08:27:07,033 - 124201 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-23 08:27:07,099 - 124201 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 149947 (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-23 08:27:07,462 - 124201 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-23 08:27:07,549 - 124201 - src.utils.log - INFO - No work order found in given range - __SPLIT__ 2026-03-23 08:27:07,615 - 124201 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 124201;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-23 08:27:07,949 - 124201 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-03-23 08:27:08,018 - 124201 - src.utils.log - INFO - Time took to perform operation: 13.11 - __SPLIT__ 2026-03-23 08:27:08,080 - 124201 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 124201;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-23 08:27:08,418 - 124201 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-03-23 08:27:08,473 - 124201 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET WorkOrderStatusDateTime = '2026-03-23 04:27:08.473' WHERE GenerateWorkOrderHistoryId = 124201;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-23 08:27:08,812 - 124201 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-03-23 08:35:17,092 - [124201] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[] user_id=43135 company_id=133 project_id=[124201] publish_all=True - __SPLIT__ 2026-03-23 08:35:17,197 - [124201] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[] user_id=43135 company_id=133 project_id=[124201] publish_all=True - __SPLIT__ 2026-03-23 08:35:17,262 - [124201] - src.utils.log - INFO - Sequential Work order publish in progress for GenerateWorkOrderHistoryId: [124201] - __SPLIT__ 2026-03-23 08:35:17,323 - [124201] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-03-23 08:35:17,388 - [124201] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-23 08:35:19,594 - [124201] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-23 08:35:19,662 - [124201] - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-03-23 08:35:19,728 - [124201] - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-03-23 08:35:19,789 - [124201] - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-03-23 08:35:19,848 - [124201] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'InProgress' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124201;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-23 08:35:21,805 - [124201] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-03-23 08:35:21,874 - [124201] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGeneration woag WHERE woag.GenerateWorkOrderHistoryId = 124201... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-23 08:35:22,260 - [124201] - src.utils.log - INFO - βœ… Fetched 9 rows - __SPLIT__ 2026-03-23 08:35:22,336 - [124201] - src.utils.log - INFO - Inside get_work_order_table - __SPLIT__ 2026-03-23 08:35:22,402 - [124201] - 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 = 149947 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-23 08:35:22,748 - [124201] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-23 08:35:22,813 - [124201] - 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 = 149947 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-23 08:35:23,164 - [124201] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-23 08:35:23,231 - [124201] - 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 = 149947 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-23 08:35:23,591 - [124201] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-23 08:35:23,659 - [124201] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder,BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-23 08:35:24,057 - [124201] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-23 08:35:24,126 - [124201] - 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-03-23 08:35:24,461 - [124201] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-03-23 08:35:24,531 - [124201] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder, BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-23 08:35:24,862 - [124201] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-23 08:35:24,932 - [124201] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 9 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 133 AND EnitityNumberType = 'WorkOrder'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-23 08:35:25,279 - [124201] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-23 08:35:25,351 - [124201] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 9 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 133 AND EnitityNumberType = 'Invoice'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-23 08:35:25,711 - [124201] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-23 08:35:25,789 - [124201] - 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 = 149947... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-23 08:35:26,129 - [124201] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-23 08:35:26,210 - [124201] - src.utils.log - INFO - πŸ” Fetching data: SELECT x.CompanyId FROM CRM.CompanyMaster x WHERE CompanyKey = 'abcdallas';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-23 08:35:26,551 - [124201] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-23 08:35:26,618 - [124201] - src.utils.log - INFO - πŸ” Fetching data: SELECT CollectionStatus,IsHold,AccountNo FROM CRM.Account a WHERE a.AccountNo = '14647' and a.CompanyId = 121;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-23 08:35:26,954 - [124201] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-23 08:35:27,031 - [124201] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderNo FROM ServiceCore.WorkOrder WHERE WorkOrderNo IN ('1362303', '1362304', '1362305', '1362306', '1362307', '1362308', '1362309', '1362310', '1362311') AND CompanyId = 133 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-23 08:35:27,384 - [124201] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-23 08:35:27,462 - [124201] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrder (skip triggers): 9 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-23 08:35:27,992 - [124201] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 9) into ServiceCore.WorkOrder (triggers skipped) - __SPLIT__ 2026-03-23 08:35:29,712 - [124201] - src.utils.log - INFO - βœ… All 9 rows inserted successfully into ServiceCore.WorkOrder in 1 batches (triggers skipped) - __SPLIT__ 2026-03-23 08:35:29,969 - [124201] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-03-23 08:35:30,038 - [124201] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkorderId, WorkOrderNo FROM ServiceCore.WorkOrder wo WHERE wo.WorkOrderNo IN ('1362303', '1362304', '1362305', '1362306', '1362307', '1362308', '1362309', '1362310', '1362311') AND wo.AccountNumber = '14647' AND wo.CompanyId = 133 ... (Thread: ThreadPoolExecutor-0_0) - __SPLIT__ 2026-03-23 08:35:30,381 - [124201] - src.utils.log - INFO - βœ… Fetched 9 rows - __SPLIT__ 2026-03-23 08:35:30,452 - [124201] - src.utils.log - INFO - Sequential fetching temp table records - __SPLIT__ 2026-03-23 08:35:30,544 - [124201] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationServices woag WHERE woag.WorkOrderAutoGenerationId in (3449806, 3449807, 3449808, 3449809, 3449810, 3449811, 3449812, 3449813, 3449814)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-23 08:35:30,936 - [124201] - src.utils.log - INFO - βœ… Fetched 18 rows - __SPLIT__ 2026-03-23 08:35:31,006 - [124201] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SubWorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (3449806, 3449807, 3449808, 3449809, 3449810, 3449811, 3449812, 3449813, 3449814)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-23 08:35:31,346 - [124201] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-23 08:35:31,417 - [124201] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationCrews woag WHERE woag.WorkOrderAutoGenerationId in (3449806, 3449807, 3449808, 3449809, 3449810, 3449811, 3449812, 3449813, 3449814)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-23 08:35:31,767 - [124201] - src.utils.log - INFO - βœ… Fetched 9 rows - __SPLIT__ 2026-03-23 08:35:31,834 - [124201] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationSalesPersonCommission woag WHERE woag.WorkOrderAutoGenerationId in (3449806, 3449807, 3449808, 3449809, 3449810, 3449811, 3449812, 3449813, 3449814)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-23 08:35:32,178 - [124201] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-23 08:35:32,247 - [124201] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupAutoGenerationSourceMapping woag WHERE woag.WorkOrderAutoGenerationId in (3449806, 3449807, 3449808, 3449809, 3449810, 3449811, 3449812, 3449813, 3449814)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-23 08:35:32,587 - [124201] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-23 08:35:32,655 - [124201] - 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 (3449806, 3449807, 3449808, 3449809, 3449810, 3449811, 3449812, 3449813, 3449814)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-23 08:35:33,026 - [124201] - src.utils.log - INFO - βœ… Fetched 9 rows - __SPLIT__ 2026-03-23 08:35:33,094 - [124201] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from CRM.LeadNote woag WHERE woag.RefId in (3449806, 3449807, 3449808, 3449809, 3449810, 3449811, 3449812, 3449813, 3449814) and woag.RefType = 'TempWorkorder';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-23 08:35:33,431 - [124201] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-23 08:35:33,498 - [124201] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment woagca WHERE woagca.WorkOrderAutoGenerationId in (3449806, 3449807, 3449808, 3449809, 3449810, 3449811, 3449812, 3449813, 3449814);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-23 08:35:33,836 - [124201] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-23 08:35:33,961 - [124201] - src.utils.log - INFO - Updating temp tables - __SPLIT__ 2026-03-23 08:35:34,048 - [124201] - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyKey FROM Common.CompanyMaster cm WHERE CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-23 08:35:34,385 - [124201] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-23 08:35:34,453 - [124201] - src.utils.log - INFO - πŸ” Fetching data: Select DiscountSetupId, [SysName] as DiscountSysName from Common.DiscountSetupMaster WHERE DiscountSetupId = 643 AND CompanyId = 133 AND IsActive = 1;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-23 08:35:34,795 - [124201] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-23 08:35:34,860 - [124201] - src.utils.log - INFO - Error: 'DiscountSetupId' - __SPLIT__ 2026-03-23 08:35:34,930 - [124201] - src.utils.log - INFO - Time took to perform operation in publishing [124201]: 17.61 - __SPLIT__ 2026-03-23 08:35:35,003 - [124201] - src.utils.log - INFO - Publish Completed for GenerateWorkOrderHistoryId: [124201] - __SPLIT__ 2026-03-23 08:35:35,072 - [124201] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-03-23 04:35:35.072' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124201;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-23 08:35:35,420 - [124201] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-03-23 08:48:29,656 - 124203 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=124203 - __SPLIT__ 2026-03-23 08:48:29,775 - 124203 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 124203 - __SPLIT__ 2026-03-23 08:48:29,843 - 124203 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-03-23 08:48:29,916 - 124203 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-23 08:48:32,168 - 124203 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-23 08:48:32,239 - 124203 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-03-23 08:48:32,303 - 124203 - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-03-23 08:48:32,378 - 124203 - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-03-23 08:48:32,447 - 124203 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 124203;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-23 08:48:34,406 - 124203 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-03-23 08:48:34,473 - 124203 - 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 = 124203), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 124203), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 124203 AND ss.FrequencyScheduleId IS NOT NULL AND ss.IsActive = 1 AND ss.IsDeleted = 0 AND ss.Status <> 'Canceled';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-23 08:48:34,921 - 124203 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-23 08:48:34,989 - 124203 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 124203;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-23 08:48:35,329 - 124203 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-23 08:48:35,401 - 124203 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-03-23 08:48:35,472 - 124203 - 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-03-23 08:48:35,826 - 124203 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-23 08:48:35,888 - 124203 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-03-23 08:48:35,965 - 124203 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-03-23 08:48:36,032 - 124203 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150020;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-23 08:48:36,372 - 124203 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-23 08:48:36,500 - 124203 - src.utils.log - INFO - πŸ” Fetching data: select ServiceDate, ServiceSetupId from serviceCore.WorkOrder wo inner join ServiceCore.WorkOrderStatus wos on wo.WoStatusId = wos.WoStatusId where ServiceDate >= '2026-03-23 00:00:00' and ServiceDate <= '2026-04-30 00:00:00' and ServiceSetupId = 150020 and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-23 08:48:36,854 - 124203 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-23 08:48:37,489 - 124203 - src.utils.log - INFO - Generating work orders for setup: 150020 - __SPLIT__ 2026-03-23 08:48:37,557 - 124203 - src.utils.log - INFO - Unable to get work order table Error: 'ServiceSetupId' - __SPLIT__ 2026-03-23 08:48:37,655 - 124203 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-03-23 08:48:37,738 - 124203 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-03-23 08:48:37,811 - 124203 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150020 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-23 08:48:38,188 - 124203 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-23 08:48:38,263 - 124203 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150020 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-23 08:48:38,623 - 124203 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-23 08:48:38,692 - 124203 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150020 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-23 08:48:39,033 - 124203 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-23 08:48:39,107 - 124203 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150020 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-23 08:48:39,472 - 124203 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-23 08:48:39,542 - 124203 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150020 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-23 08:48:39,909 - 124203 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-23 08:48:39,987 - 124203 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150020 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-23 08:48:40,342 - 124203 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-23 08:48:40,415 - 124203 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150020 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-23 08:48:40,776 - 124203 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-23 08:48:40,899 - 124203 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150020 (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-23 08:48:41,284 - 124203 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-23 08:48:41,358 - 124203 - src.utils.log - INFO - No work order found in given range - __SPLIT__ 2026-03-23 08:48:41,428 - 124203 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 124203;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-23 08:48:41,772 - 124203 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-03-23 08:48:41,838 - 124203 - src.utils.log - INFO - Time took to perform operation: 11.99 - __SPLIT__ 2026-03-23 08:48:41,904 - 124203 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 124203;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-23 08:48:42,249 - 124203 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-03-23 08:48:42,317 - 124203 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET WorkOrderStatusDateTime = '2026-03-23 04:48:42.317' WHERE GenerateWorkOrderHistoryId = 124203;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-23 08:48:42,658 - 124203 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__