2026-03-30 19:56:15,350 - 24003 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=24003 - __SPLIT__ 2026-03-30 19:56:19,418 - 24003 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 24003 - __SPLIT__ 2026-03-30 19:56:19,419 - 24003 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-03-30 19:56:19,419 - 24003 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-30 19:56:19,762 - 24003 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-30 19:56:19,762 - 24003 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-03-30 19:56:19,762 - 24003 - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-03-30 19:56:19,763 - 24003 - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-03-30 19:56:19,763 - 24003 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 24003;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-30 19:56:20,020 - 24003 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-03-30 19:56:20,021 - 24003 - 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 = 24003), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 24003), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 24003 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-30 19:56:20,134 - 24003 - src.utils.log - INFO - βœ… Fetched 25 rows - __SPLIT__ 2026-03-30 19:56:20,135 - 24003 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 24003;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-30 19:56:20,165 - 24003 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-30 19:56:20,167 - 24003 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-03-30 19:56:20,169 - 24003 - src.utils.log - INFO - πŸ” Fetching data: SELECT fsd.IntervalDays, fs.CreatedDate ,f.FrequencyId , fs.FrequencyScheduleId, f.[SysName], f.FrequencyValue, f.YearlyOccurrence , fs.ScheduleFormat,fsd.Days, fsd.Weeks, fsd.Months,fsc.[Month] as sch_months, fsd.StartMonth , fsd.DateDay,fsd.DateMonth FROM [ServiceCore].[FrequencyMaster] f inner join [ServiceCore].[FrequencySchedule] fs on fs.FrequencyId = f.FrequencyId left join ServiceCore.FrequencyScheduleCycle fsc on fsc.FrequencyScheduleId = fs.FrequencyScheduleId left join [ServiceCore].[FrequencyScheduleDetail] fsd on fsd.FrequencyScheduleId = fs.FrequencyScheduleId WHERE fsd.FrequencyScheduleId in (14819, 14693, 14664, 14634, 14571, 14668, 14666, 14638, 14604, 14645, 14775, 14653)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-30 19:56:20,216 - 24003 - src.utils.log - INFO - βœ… Fetched 217 rows - __SPLIT__ 2026-03-30 19:56:20,217 - 24003 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-03-30 19:56:20,219 - 24003 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-03-30 19:56:20,220 - 24003 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId in (65025, 65925, 65673, 59283, 26395, 43807, 45728, 47009, 51623, 65191, 40627, 54453, 39481, 48573, 62405, 48334, 66001, 63573, 23134, 46434, 64994, 47333, 47462, 38249, 65903);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-30 19:56:20,253 - 24003 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-30 19:56:20,253 - 24003 - 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-04-01 00:00:00' and ServiceDate <= '2026-04-30 00:00:00' and ServiceSetupId in (65025, 65925, 65673, 59283, 26395, 43807, 45728, 47009, 51623, 65191, 40627, 54453, 39481, 48573, 62405, 48334, 66001, 63573, 23134, 46434, 64994, 47333, 47462, 38249, 65903) and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-30 19:56:20,304 - 24003 - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-03-30 19:56:20,435 - 24003 - src.utils.log - INFO - Generating work orders for setup: 38249 - __SPLIT__ 2026-03-30 19:56:20,444 - 24003 - src.utils.log - INFO - Generating work orders for setup: 65025 - __SPLIT__ 2026-03-30 19:56:20,450 - 24003 - src.utils.log - INFO - Generating work orders for setup: 65903 - __SPLIT__ 2026-03-30 19:56:20,456 - 24003 - src.utils.log - INFO - Generating work orders for setup: 65925 - __SPLIT__ 2026-03-30 19:56:20,461 - 24003 - src.utils.log - INFO - Generating work orders for setup: 66001 - __SPLIT__ 2026-03-30 19:56:20,468 - 24003 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId in (11429.0, -1.0);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-30 19:56:20,499 - 24003 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-30 19:56:20,538 - 24003 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-03-30 19:56:20,553 - 24003 - 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-30 19:56:20,584 - 24003 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-30 19:56:20,586 - 24003 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-03-30 19:56:20,586 - 24003 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-03-30 19:56:20,586 - 24003 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (65025, 65925, 65673, 59283, 26395, 43807, 45728, 47009, 51623, 65191, 40627, 54453, 39481, 48573, 62405, 48334, 66001, 63573, 23134, 46434, 64994, 47333, 47462, 38249, 65903) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-30 19:56:20,623 - 24003 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-30 19:56:20,623 - 24003 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (65025, 65925, 65673, 59283, 26395, 43807, 45728, 47009, 51623, 65191, 40627, 54453, 39481, 48573, 62405, 48334, 66001, 63573, 23134, 46434, 64994, 47333, 47462, 38249, 65903) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-30 19:56:20,660 - 24003 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-30 19:56:20,660 - 24003 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (65025, 65925, 65673, 59283, 26395, 43807, 45728, 47009, 51623, 65191, 40627, 54453, 39481, 48573, 62405, 48334, 66001, 63573, 23134, 46434, 64994, 47333, 47462, 38249, 65903) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-30 19:56:20,695 - 24003 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-30 19:56:20,695 - 24003 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (65025, 65925, 65673, 59283, 26395, 43807, 45728, 47009, 51623, 65191, 40627, 54453, 39481, 48573, 62405, 48334, 66001, 63573, 23134, 46434, 64994, 47333, 47462, 38249, 65903) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-30 19:56:20,731 - 24003 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-30 19:56:20,731 - 24003 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (65025, 65925, 65673, 59283, 26395, 43807, 45728, 47009, 51623, 65191, 40627, 54453, 39481, 48573, 62405, 48334, 66001, 63573, 23134, 46434, 64994, 47333, 47462, 38249, 65903) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-30 19:56:20,767 - 24003 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-30 19:56:20,767 - 24003 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (65025, 65925, 65673, 59283, 26395, 43807, 45728, 47009, 51623, 65191, 40627, 54453, 39481, 48573, 62405, 48334, 66001, 63573, 23134, 46434, 64994, 47333, 47462, 38249, 65903) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-30 19:56:20,810 - 24003 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-30 19:56:20,810 - 24003 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (65025, 65925, 65673, 59283, 26395, 43807, 45728, 47009, 51623, 65191, 40627, 54453, 39481, 48573, 62405, 48334, 66001, 63573, 23134, 46434, 64994, 47333, 47462, 38249, 65903) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-30 19:56:20,843 - 24003 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-30 19:56:20,843 - 24003 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (65025, 65925, 65673, 59283, 26395, 43807, 45728, 47009, 51623, 65191, 40627, 54453, 39481, 48573, 62405, 48334, 66001, 63573, 23134, 46434, 64994, 47333, 47462, 38249, 65903) (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-30 19:56:20,887 - 24003 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-03-30 19:56:20,888 - 24003 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-03-30 19:56:20,888 - 24003 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 3 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-30 19:56:21,002 - 24003 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-03-30 19:56:21,205 - 24003 - src.utils.log - INFO - βœ… All 3 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-03-30 19:56:21,206 - 24003 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 3 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-03-24 15:08:17.423' and ServiceSetupId in (65025, 65925, 65673, 59283, 26395, 43807, 45728, 47009, 51623, 65191, 40627, 54453, 39481, 48573, 62405, 48334, 66001, 63573, 23134, 46434, 64994, 47333, 47462, 38249, 65903)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-30 19:56:21,241 - 24003 - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-03-30 19:56:21,241 - 24003 - src.utils.log - INFO - Id's of work order inserted to DB: [641478 641479 641480] - __SPLIT__ 2026-03-30 19:56:21,242 - 24003 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId in (65025, 65925, 65673, 59283, 26395, 43807, 45728, 47009, 51623, 65191, 40627, 54453, 39481, 48573, 62405, 48334, 66001, 63573, 23134, 46434, 64994, 47333, 47462, 38249, 65903);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-30 19:56:21,273 - 24003 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-30 19:56:21,273 - 24003 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-03-30 19:56:21,273 - 24003 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId in (66001, 65925, 65903)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-30 19:56:21,305 - 24003 - src.utils.log - INFO - βœ… Fetched 5 rows - __SPLIT__ 2026-03-30 19:56:21,305 - 24003 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId in (66001, 65925, 65903)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-30 19:56:21,337 - 24003 - src.utils.log - INFO - βœ… Fetched 5 rows - __SPLIT__ 2026-03-30 19:56:21,344 - 24003 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId in (66001, 65925, 65903)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-30 19:56:21,388 - 24003 - src.utils.log - INFO - βœ… Fetched 6 rows - __SPLIT__ 2026-03-30 19:56:21,389 - 24003 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId in (66001, 65925, 65903)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-30 19:56:21,423 - 24003 - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-03-30 19:56:21,423 - 24003 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId in (66001, 65925, 65903)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-30 19:56:21,454 - 24003 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-30 19:56:21,454 - 24003 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId in (66001, 65925, 65903);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-30 19:56:21,485 - 24003 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-03-30 19:56:21,486 - 24003 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId in (66001, 65925, 65903);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-30 19:56:21,518 - 24003 - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-03-30 19:56:21,519 - 24003 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId in (66001, 65925, 65903);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-30 19:56:21,721 - 24003 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-30 19:56:21,722 - 24003 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId in (66001, 65925, 65903);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-30 19:56:21,753 - 24003 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-03-30 19:56:21,773 - 24003 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-03-30 19:56:21,773 - 24003 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-03-30 19:56:21,773 - 24003 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-03-30 19:56:21,773 - 24003 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.CommunicationPreferencesServiceReportNotification: - __SPLIT__ 2026-03-30 19:56:21,773 - 24003 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-03-30 19:56:21,773 - 24003 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-03-30 19:56:21,773 - 24003 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ('641480', '641479', '641478') ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-30 19:56:21,803 - 24003 - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-03-30 19:56:21,804 - 24003 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.SetupAutoGenerationSourceMapping: 0 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-30 19:56:21,850 - 24003 - src.utils.log - INFO - βœ… All 0 rows inserted successfully into ServiceCore.SetupAutoGenerationSourceMapping in 0 batches - __SPLIT__ 2026-03-30 19:56:21,850 - 24003 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-03-30 19:56:21,850 - 24003 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationAppliedDiscount: - __SPLIT__ 2026-03-30 19:56:21,850 - 24003 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-03-30 19:56:21,850 - 24003 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SubWorkOrderAutoGeneration: - __SPLIT__ 2026-03-30 19:56:21,850 - 24003 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-03-30 19:56:21,851 - 24003 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: - __SPLIT__ 2026-03-30 19:56:21,851 - 24003 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-03-30 19:56:21,851 - 24003 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: - __SPLIT__ 2026-03-30 19:56:21,851 - 24003 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-03-30 19:56:21,851 - 24003 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-03-30 19:56:21,851 - 24003 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (641480, 641478, 641479) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-30 19:56:21,881 - 24003 - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-03-30 19:56:21,881 - 24003 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationCrews: 3 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-30 19:56:21,930 - 24003 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into ServiceCore.WorkOrderAutoGenerationCrews - __SPLIT__ 2026-03-30 19:56:22,043 - 24003 - src.utils.log - INFO - βœ… All 3 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationCrews in 1 batches - __SPLIT__ 2026-03-30 19:56:22,044 - 24003 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-03-30 19:56:22,044 - 24003 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationServices: - __SPLIT__ 2026-03-30 19:56:22,044 - 24003 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-03-30 19:56:22,044 - 24003 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-03-30 19:56:22,044 - 24003 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 5 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-30 19:56:22,103 - 24003 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 5) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-03-30 19:56:22,222 - 24003 - src.utils.log - INFO - βœ… All 5 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-03-30 19:56:22,223 - 24003 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-03-30 19:56:22,223 - 24003 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 24003;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-30 19:56:22,251 - 24003 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-03-30 19:56:22,251 - 24003 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-03-30 19:56:22,251 - 24003 - src.utils.log - INFO - Time took to perform operation: 2.83 - __SPLIT__ 2026-03-30 19:56:22,251 - 24003 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 24003;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-30 19:56:22,280 - 24003 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-03-30 19:56:22,280 - 24003 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET WorkOrderStatusDateTime = '2026-03-30 15:56:22.280' WHERE GenerateWorkOrderHistoryId = 24003;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-03-30 19:56:22,311 - 24003 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-04-02 11:10:26,218 - 56183 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=56183 - __SPLIT__ 2026-04-02 11:10:26,220 - 56183 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 56183 - __SPLIT__ 2026-04-02 11:10:26,234 - 56183 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-04-02 11:10:26,235 - 56183 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-02 11:10:26,572 - 56183 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-02 11:10:26,573 - 56183 - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-04-02 11:10:26,573 - 56183 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 56183;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-02 11:10:26,600 - 56183 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-04-02 11:10:26,601 - 56183 - 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 = 56183), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 56183), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 56183 AND ss.FrequencyScheduleId IS NOT NULL AND ss.IsActive = 1 AND ss.IsDeleted = 0 AND ss.Status <> 'Canceled';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-02 11:10:26,669 - 56183 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-02 11:10:26,669 - 56183 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 56183;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-02 11:10:26,697 - 56183 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-02 11:10:26,700 - 56183 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-04-02 11:10:26,701 - 56183 - src.utils.log - INFO - πŸ” Fetching data: SELECT fsd.IntervalDays, fs.CreatedDate ,f.FrequencyId , fs.FrequencyScheduleId, f.[SysName], f.FrequencyValue, f.YearlyOccurrence , fs.ScheduleFormat,fsd.Days, fsd.Weeks, fsd.Months,fsc.[Month] as sch_months, fsd.StartMonth , fsd.DateDay,fsd.DateMonth FROM [ServiceCore].[FrequencyMaster] f inner join [ServiceCore].[FrequencySchedule] fs on fs.FrequencyId = f.FrequencyId left join ServiceCore.FrequencyScheduleCycle fsc on fsc.FrequencyScheduleId = fs.FrequencyScheduleId left join [ServiceCore].[FrequencyScheduleDetail] fsd on fsd.FrequencyScheduleId = fs.FrequencyScheduleId WHERE fsd.FrequencyScheduleId = 13930... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-02 11:10:26,736 - 56183 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-02 11:10:26,736 - 56183 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-04-02 11:10:26,739 - 56183 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-04-02 11:10:26,739 - 56183 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 95693;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-02 11:10:26,766 - 56183 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-02 11:10:26,766 - 56183 - 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-04-02 00:00:00' and ServiceDate <= '2026-05-31 00:00:00' and ServiceSetupId = 95693 and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-02 11:10:26,801 - 56183 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-02 11:10:26,876 - 56183 - src.utils.log - INFO - Generating work orders for setup: 95693 - __SPLIT__ 2026-04-02 11:10:26,897 - 56183 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 11459;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-02 11:10:26,923 - 56183 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-02 11:10:26,930 - 56183 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 11512;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-02 11:10:26,954 - 56183 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-02 11:10:26,987 - 56183 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-04-02 11:10:26,991 - 56183 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=146 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-02 11:10:27,017 - 56183 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-02 11:10:27,020 - 56183 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-04-02 11:10:27,021 - 56183 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-04-02 11:10:27,021 - 56183 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 95693 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-02 11:10:27,065 - 56183 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-02 11:10:27,065 - 56183 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 95693 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-02 11:10:27,109 - 56183 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-02 11:10:27,109 - 56183 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 95693 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-02 11:10:27,153 - 56183 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-02 11:10:27,154 - 56183 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 95693 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-02 11:10:27,197 - 56183 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-02 11:10:27,197 - 56183 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 95693 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-02 11:10:27,240 - 56183 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-02 11:10:27,240 - 56183 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 95693 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-02 11:10:27,284 - 56183 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-02 11:10:27,284 - 56183 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 95693 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-02 11:10:27,313 - 56183 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-02 11:10:27,313 - 56183 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 95693 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-02 11:10:27,381 - 56183 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-02 11:10:27,381 - 56183 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-02 11:10:27,381 - 56183 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 3 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-02 11:10:27,453 - 56183 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-04-02 11:10:27,614 - 56183 - src.utils.log - INFO - βœ… All 3 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-04-02 11:10:27,614 - 56183 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 3 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-04-02 12:12:09.240' and ServiceSetupId = 95693... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-02 11:10:27,659 - 56183 - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-04-02 11:10:27,659 - 56183 - src.utils.log - INFO - Id's of work order inserted to DB: [507477 507478 507479] - __SPLIT__ 2026-04-02 11:10:27,660 - 56183 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 95693;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-02 11:10:27,687 - 56183 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-02 11:10:27,687 - 56183 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-04-02 11:10:27,687 - 56183 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId = 95693... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-02 11:10:27,714 - 56183 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-04-02 11:10:27,714 - 56183 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId = 95693... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-02 11:10:27,741 - 56183 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-04-02 11:10:27,747 - 56183 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId = 95693... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-02 11:10:27,778 - 56183 - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-04-02 11:10:27,779 - 56183 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId = 95693... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-02 11:10:27,806 - 56183 - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-04-02 11:10:27,807 - 56183 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId = 95693... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-02 11:10:27,833 - 56183 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-02 11:10:27,834 - 56183 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId = 95693;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-02 11:10:27,861 - 56183 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-04-02 11:10:27,861 - 56183 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId = 95693;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-02 11:10:27,887 - 56183 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-02 11:10:27,887 - 56183 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId = 95693;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-02 11:10:28,021 - 56183 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-02 11:10:28,022 - 56183 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId = 95693;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-02 11:10:28,049 - 56183 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-02 11:10:28,067 - 56183 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-04-02 11:10:28,067 - 56183 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-04-02 11:10:28,067 - 56183 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-04-02 11:10:28,067 - 56183 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.CommunicationPreferencesServiceReportNotification: - __SPLIT__ 2026-04-02 11:10:28,067 - 56183 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-04-02 11:10:28,067 - 56183 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SetupAutoGenerationSourceMapping: - __SPLIT__ 2026-04-02 11:10:28,067 - 56183 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-04-02 11:10:28,067 - 56183 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-02 11:10:28,067 - 56183 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (507477, 507478, 507479) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-02 11:10:28,094 - 56183 - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-04-02 11:10:28,095 - 56183 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationAppliedDiscount: 3 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-02 11:10:28,141 - 56183 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into ServiceCore.WorkOrderAutoGenerationAppliedDiscount - __SPLIT__ 2026-04-02 11:10:28,240 - 56183 - src.utils.log - INFO - βœ… All 3 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationAppliedDiscount in 1 batches - __SPLIT__ 2026-04-02 11:10:28,241 - 56183 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-04-02 11:10:28,241 - 56183 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SubWorkOrderAutoGeneration: - __SPLIT__ 2026-04-02 11:10:28,241 - 56183 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-04-02 11:10:28,241 - 56183 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: - __SPLIT__ 2026-04-02 11:10:28,241 - 56183 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-04-02 11:10:28,241 - 56183 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-02 11:10:28,241 - 56183 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (507477, 507478, 507479) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-02 11:10:28,266 - 56183 - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-04-02 11:10:28,266 - 56183 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: 6 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-02 11:10:28,317 - 56183 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 6) into ServiceCore.WorkOrderAutoGenerationSalesPersonCommission - __SPLIT__ 2026-04-02 11:10:28,419 - 56183 - src.utils.log - INFO - βœ… All 6 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationSalesPersonCommission in 1 batches - __SPLIT__ 2026-04-02 11:10:28,419 - 56183 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-04-02 11:10:28,419 - 56183 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-02 11:10:28,419 - 56183 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (507477, 507478, 507479) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-02 11:10:28,445 - 56183 - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-04-02 11:10:28,445 - 56183 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationCrews: 6 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-02 11:10:28,489 - 56183 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 6) into ServiceCore.WorkOrderAutoGenerationCrews - __SPLIT__ 2026-04-02 11:10:28,587 - 56183 - src.utils.log - INFO - βœ… All 6 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationCrews in 1 batches - __SPLIT__ 2026-04-02 11:10:28,587 - 56183 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-04-02 11:10:28,587 - 56183 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-02 11:10:28,587 - 56183 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-02 11:10:28,633 - 56183 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-04-02 11:10:28,732 - 56183 - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-04-02 11:10:28,732 - 56183 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-04-02 11:10:28,732 - 56183 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-02 11:10:28,733 - 56183 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 4 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-02 11:10:28,764 - 56183 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 4) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-04-02 11:10:28,865 - 56183 - src.utils.log - INFO - βœ… All 4 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-04-02 11:10:28,865 - 56183 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-04-02 11:10:28,865 - 56183 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 56183;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-02 11:10:28,890 - 56183 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-04-02 11:10:28,890 - 56183 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-04-02 11:10:28,890 - 56183 - src.utils.log - INFO - Time took to perform operation: 2.67 - __SPLIT__ 2026-04-02 11:10:28,890 - 56183 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 56183;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-02 11:10:28,914 - 56183 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-04-02 11:10:28,914 - 56183 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET WorkOrderStatusDateTime = '2026-04-02 07:10:28.914' WHERE GenerateWorkOrderHistoryId = 56183;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-02 11:10:28,941 - 56183 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-04-02 11:10:50,492 - [56183] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[507477, 507479] user_id=44506 company_id=146 project_id=[56183] publish_all=False - __SPLIT__ 2026-04-02 11:10:50,493 - [56183] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[507477, 507479] user_id=44506 company_id=146 project_id=[56183] publish_all=False - __SPLIT__ 2026-04-02 11:10:50,493 - [56183] - src.utils.log - INFO - Sequential Work order publish in progress for GenerateWorkOrderHistoryId: [56183] - __SPLIT__ 2026-04-02 11:10:50,508 - [56183] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-04-02 11:10:50,508 - [56183] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-02 11:10:50,743 - [56183] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-02 11:10:50,743 - [56183] - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-04-02 11:10:50,744 - [56183] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'InProgress' WHERE CompanyId = 146 AND GenerateWorkOrderHistoryId = 56183;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-02 11:10:50,776 - [56183] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-04-02 11:10:50,776 - [56183] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (507477, 507479)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-02 11:10:50,810 - [56183] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-04-02 11:10:50,810 - [56183] - src.utils.log - INFO - Inside get_work_order_table - __SPLIT__ 2026-04-02 11:10:50,811 - [56183] - src.utils.log - INFO - πŸ” Fetching data: SELECT DISTINCT sss.ServiceSetupId, dm.DepartmentMasterId, bm.BranchMasterId FROM Common.DepartmentMaster dm JOIN Common.DivisionMaster d2 ON dm.DivisionMasterId = d2.DivisionMasterId JOIN Common.BranchMaster bm ON d2.BranchMasterId = bm.BranchMasterId JOIN ServiceCore.ServiceCategoryMaster c ON c.DepartmentId = dm.DepartmentMasterId JOIN ServiceCore.ServiceMaster sm ON c.CategoryId = sm.CategoryId JOIN ServiceCore.ServiceSetupServices sss ON sss.ServiceId = sm.ServiceMasterId WHERE dm.CompanyId = 146 AND d2.CompanyId = bm.CompanyId AND sss.ServiceSetupId = 95693 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-02 11:10:50,846 - [56183] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-02 11:10:50,847 - [56183] - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceSetupId, dm.DepartmentMasterId, bm.BranchMasterId FROM Common.DepartmentMaster dm JOIN Common.DivisionMaster d2 ON dm.DivisionMasterId = d2.DivisionMasterId JOIN Common.BranchMaster bm ON d2.BranchMasterId = bm.BranchMasterId JOIN ServiceCore.SoldServiceNonStandard x on dm.DepartmentMasterId = x.DepartmentId JOIN ServiceCore.ServiceSetupServices sss ON sss.NonStdSoldServiceId = x.SoldServiceNonStandardId WHERE dm.CompanyId = 146 AND d2.CompanyId = bm.CompanyId AND sss.ServiceSetupId = 95693 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-02 11:10:50,879 - [56183] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-02 11:10:50,879 - [56183] - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceSetupId, dm.DepartmentMasterId, bm.BranchMasterId FROM Common.DepartmentMaster dm Inner JOIN Common.DivisionMaster d2 ON dm.DivisionMasterId = d2.DivisionMasterId Inner JOIN Common.BranchMaster bm ON d2.BranchMasterId = bm.BranchMasterId Inner JOIN [ServiceCore].[ServiceCategoryMaster] scm ON dm.DepartmentMasterId = scm.DepartmentId Inner JOIN ServiceCore.ServiceMaster sm ON scm.CategoryId = sm.CategoryId Inner JOIN ServiceCore.SoldServiceStandard x on x.ServiceId = sm.ServiceMasterId Inner JOIN ServiceCore.ServiceSetupServices sss ON sss.StdSoldServiceId = x.SoldServiceStandardId WHERE dm.CompanyId = 146 AND d2.CompanyId = bm.CompanyId AND sss.ServiceSetupId = 95693 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-02 11:10:50,913 - [56183] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-02 11:10:50,918 - [56183] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder,BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 146;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-02 11:10:50,945 - [56183] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-02 11:10:50,945 - [56183] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 146 AND EnitityNumberType in ('WorkOrder','Invoice'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-02 11:10:50,970 - [56183] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-04-02 11:10:50,970 - [56183] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder, BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 146; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-02 11:10:50,997 - [56183] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-02 11:10:50,998 - [56183] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 2 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 146 AND EnitityNumberType = 'WorkOrder'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-02 11:10:51,026 - [56183] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-02 11:10:51,026 - [56183] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 2 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 146 AND EnitityNumberType = 'Invoice'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-02 11:10:51,053 - [56183] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-02 11:10:51,057 - [56183] - 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 = 95693... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-02 11:10:51,088 - [56183] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-02 11:10:51,090 - [56183] - src.utils.log - INFO - πŸ” Fetching data: SELECT x.CompanyId FROM CRM.CompanyMaster x WHERE CompanyKey = 'Fortive';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-02 11:10:51,115 - [56183] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-02 11:10:51,116 - [56183] - src.utils.log - INFO - πŸ” Fetching data: SELECT CollectionStatus,IsHold,AccountNo FROM CRM.Account a WHERE a.AccountNo = '1758' and a.CompanyId = 134;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-02 11:10:51,142 - [56183] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-02 11:10:51,144 - [56183] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderNo FROM ServiceCore.WorkOrder WHERE WorkOrderNo IN ('53581', '53582') AND CompanyId = 146 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-02 11:10:51,175 - [56183] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-02 11:10:51,175 - [56183] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrder (skip triggers): 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-02 11:10:51,255 - [56183] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrder (triggers skipped) - __SPLIT__ 2026-04-02 11:10:51,414 - [56183] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrder in 1 batches (triggers skipped) - __SPLIT__ 2026-04-02 11:10:51,426 - [56183] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-04-02 11:10:51,427 - [56183] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.ServiceSetup SET IsInitialWoGenerated = 1 WHERE CompanyId = 146 AND ServiceSetupId = 95693;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-02 11:10:51,455 - [56183] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-04-02 11:10:51,457 - [56183] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkorderId, WorkOrderNo FROM ServiceCore.WorkOrder wo WHERE wo.WorkOrderNo IN ('53581', '53582') AND wo.AccountNumber = '1758' AND wo.CompanyId = 146 ... (Thread: ThreadPoolExecutor-0_0) - __SPLIT__ 2026-04-02 11:10:51,490 - [56183] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-04-02 11:10:51,490 - [56183] - src.utils.log - INFO - Sequential fetching temp table records - __SPLIT__ 2026-04-02 11:10:51,490 - [56183] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationServices woag WHERE woag.WorkOrderAutoGenerationId in (507477, 507479)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-02 11:10:51,525 - [56183] - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-04-02 11:10:51,525 - [56183] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SubWorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (507477, 507479)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-02 11:10:51,574 - [56183] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-02 11:10:51,575 - [56183] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationCrews woag WHERE woag.WorkOrderAutoGenerationId in (507477, 507479)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-02 11:10:51,606 - [56183] - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-04-02 11:10:51,606 - [56183] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationSalesPersonCommission woag WHERE woag.WorkOrderAutoGenerationId in (507477, 507479)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-02 11:10:51,633 - [56183] - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-04-02 11:10:51,633 - [56183] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupAutoGenerationSourceMapping woag WHERE woag.WorkOrderAutoGenerationId in (507477, 507479)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-02 11:10:51,662 - [56183] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-02 11:10:51,663 - [56183] - 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 (507477, 507479)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-02 11:10:51,691 - [56183] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-04-02 11:10:51,691 - [56183] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from CRM.LeadNote woag WHERE woag.RefId in (507477, 507479) and woag.RefType = 'TempWorkorder';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-02 11:10:51,719 - [56183] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-02 11:10:51,719 - [56183] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment woagca WHERE woagca.WorkOrderAutoGenerationId in (507477, 507479);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-02 11:10:51,744 - [56183] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-02 11:10:51,747 - [56183] - src.utils.log - INFO - Updating temp tables - __SPLIT__ 2026-04-02 11:10:51,764 - [56183] - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyKey FROM Common.CompanyMaster cm WHERE CompanyId = 146;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-02 11:10:51,790 - [56183] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-02 11:10:51,793 - [56183] - src.utils.log - INFO - πŸ” Fetching data: Select DiscountSetupId, [SysName] as DiscountSysName from Common.DiscountSetupMaster WHERE DiscountSetupId IN (667, 619) AND CompanyId = 146;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-02 11:10:51,818 - [56183] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-04-02 11:10:51,820 - [56183] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 146 AND EnitityNumberType in ('SubWorkOrder'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-02 11:10:51,847 - [56183] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-02 11:10:51,850 - [56183] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-02 11:10:51,850 - [56183] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishHistory: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-02 11:10:51,909 - [56183] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationPublishHistory - __SPLIT__ 2026-04-02 11:10:52,023 - [56183] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishHistory in 1 batches - __SPLIT__ 2026-04-02 11:10:52,024 - [56183] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationPublishHistoryId, WorkOrderNo, ServiceSetupId FROM ServiceCore.WorkOrderAutoGenerationPublishHistory WHERE ServiceSetupId = 95693 AND WorkOrderNo IN ('468849', '2780930') AND GenerateWorkOrderHistoryId = 56183;... (Thread: ThreadPoolExecutor-1_0) - __SPLIT__ 2026-04-02 11:10:52,089 - [56183] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-04-02 11:10:52,090 - [56183] - src.utils.log - INFO - 🏁 Final merged rows: 2 - __SPLIT__ 2026-04-02 11:10:52,096 - [56183] - src.utils.log - INFO - Sequential Insertion in work order tables begin - __SPLIT__ 2026-04-02 11:10:52,096 - [56183] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-02 11:10:52,096 - [56183] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderServices: 4 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-02 11:10:52,143 - [56183] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 4) into ServiceCore.WorkOrderServices - __SPLIT__ 2026-04-02 11:10:52,246 - [56183] - src.utils.log - INFO - βœ… All 4 rows inserted successfully into ServiceCore.WorkOrderServices in 1 batches - __SPLIT__ 2026-04-02 11:10:52,246 - [56183] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SubWorkOrder: - __SPLIT__ 2026-04-02 11:10:52,246 - [56183] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-02 11:10:52,246 - [56183] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.WorkOrderAppliedDiscount: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-02 11:10:52,292 - [56183] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceAuto.WorkOrderAppliedDiscount - __SPLIT__ 2026-04-02 11:10:52,395 - [56183] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceAuto.WorkOrderAppliedDiscount in 1 batches - __SPLIT__ 2026-04-02 11:10:52,395 - [56183] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-02 11:10:52,395 - [56183] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderSalesPersonCommission: 4 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-02 11:10:52,440 - [56183] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 4) into ServiceCore.WorkOrderSalesPersonCommission - __SPLIT__ 2026-04-02 11:10:52,544 - [56183] - src.utils.log - INFO - βœ… All 4 rows inserted successfully into ServiceCore.WorkOrderSalesPersonCommission in 1 batches - __SPLIT__ 2026-04-02 11:10:52,544 - [56183] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderCommissionAdjustment: - __SPLIT__ 2026-04-02 11:10:52,545 - [56183] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-02 11:10:52,545 - [56183] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderCrew: 4 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-02 11:10:52,589 - [56183] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 4) into ServiceCore.WorkOrderCrew - __SPLIT__ 2026-04-02 11:10:52,687 - [56183] - src.utils.log - INFO - βœ… All 4 rows inserted successfully into ServiceCore.WorkOrderCrew in 1 batches - __SPLIT__ 2026-04-02 11:10:52,687 - [56183] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkorderSourceMapping: - __SPLIT__ 2026-04-02 11:10:52,687 - [56183] - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-04-02 11:10:52,687 - [56183] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-02 11:10:52,687 - [56183] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishServices: 4 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-02 11:10:52,733 - [56183] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 4) into ServiceCore.WorkOrderAutoGenerationPublishServices - __SPLIT__ 2026-04-02 11:10:52,838 - [56183] - src.utils.log - INFO - βœ… All 4 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishServices in 1 batches - __SPLIT__ 2026-04-02 11:10:52,839 - [56183] - 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 = 95693... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-02 11:10:52,864 - [56183] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-02 11:10:52,869 - [56183] - src.utils.log - INFO - Size of Transaction: 2 - __SPLIT__ 2026-04-02 11:10:52,870 - [56183] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-02 11:10:52,925 - [56183] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-04-02 11:10:53,028 - [56183] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-04-02 11:10:53,040 - [56183] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-04-02 11:10:53,040 - [56183] - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionId, ModifiedBy, TransactionDate as InvoiceDate from Billing.[Transaction] t WHERE t.ModifiedBy in (12345678910, 12345678911) and t.CompanyId = 146 AND t.TransactionType ='Invoice' AND t.CreatedDate = '2026-04-02 07:10:52.865';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-02 11:10:53,137 - [56183] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-04-02 11:10:53,139 - [56183] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 95693;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-02 11:10:53,165 - [56183] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-02 11:10:53,174 - [56183] - src.utils.log - INFO - πŸ“ Executing: UPDATE Billing.[Transaction] SET ModifiedBy = NULL WHERE ModifiedBy IN (12345678910,12345678911) AND CreatedDate = '2026-04-02 07:10:52.865'; ... (Thread: ThreadPoolExecutor-2_0) - __SPLIT__ 2026-04-02 11:10:53,255 - [56183] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-04-02 11:10:53,260 - [56183] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-02 11:10:53,260 - [56183] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-02 11:10:53,306 - [56183] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.Invoice - __SPLIT__ 2026-04-02 11:10:53,404 - [56183] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-04-02 11:10:53,404 - [56183] - src.utils.log - INFO - πŸ” Fetching data: SELECT InvoiceId, WorkOrderNo FROM Billing.Invoice i WHERE i.WorkOrderNo in ('53581', '53582')... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-02 11:10:53,473 - [56183] - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-04-02 11:10:53,481 - [56183] - 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 = 95693 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-02 11:10:53,510 - [56183] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-04-02 11:10:53,510 - [56183] - 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 = 95693 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-02 11:10:53,537 - [56183] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-04-02 11:10:53,537 - [56183] - 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 = 95693 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-02 11:10:53,564 - [56183] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-02 11:10:53,564 - [56183] - 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 = 95693 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-02 11:10:53,590 - [56183] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-02 11:10:53,603 - [56183] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 95693;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-02 11:10:53,629 - [56183] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-02 11:10:53,633 - [56183] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId, AppliedDiscountAmt as AppliedDiscountAmount,IsActive ,ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 95693;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-02 11:10:53,659 - [56183] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-04-02 11:10:53,668 - [56183] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId,IsActive,DiscountAmount, IsDiscountPercent,DiscountPercent,DiscountDescription , ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 95693;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-02 11:10:53,694 - [56183] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-04-02 11:10:53,702 - [56183] - src.utils.log - INFO - Sequential Insertion in invoice tables begin - __SPLIT__ 2026-04-02 11:10:53,702 - [56183] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-02 11:10:53,702 - [56183] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.AccountDiscountSetup: 4 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-02 11:10:53,745 - [56183] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 4) into Billing.AccountDiscountSetup - __SPLIT__ 2026-04-02 11:10:53,844 - [56183] - src.utils.log - INFO - βœ… All 4 rows inserted successfully into Billing.AccountDiscountSetup in 1 batches - __SPLIT__ 2026-04-02 11:10:53,844 - [56183] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-02 11:10:53,844 - [56183] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceCharges: 8 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-02 11:10:53,890 - [56183] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 8) into Billing.InvoiceCharges - __SPLIT__ 2026-04-02 11:10:53,993 - [56183] - src.utils.log - INFO - βœ… All 8 rows inserted successfully into Billing.InvoiceCharges in 1 batches - __SPLIT__ 2026-04-02 11:10:53,993 - [56183] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-02 11:10:53,993 - [56183] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.DiscountApplied: 4 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-02 11:10:54,036 - [56183] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 4) into Billing.DiscountApplied - __SPLIT__ 2026-04-02 11:10:54,131 - [56183] - src.utils.log - INFO - βœ… All 4 rows inserted successfully into Billing.DiscountApplied in 1 batches - __SPLIT__ 2026-04-02 11:10:54,131 - [56183] - src.utils.log - INFO - Invoice Publish Done - __SPLIT__ 2026-04-02 11:10:54,131 - [56183] - src.utils.log - INFO - Updating Next GenerationDate - __SPLIT__ 2026-04-02 11:10:54,131 - [56183] - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, MAX(NextWorkOrderGenerationDate) AS MaxNextWorkOrderGeneration FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 56183 GROUP BY ServiceSetupId; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-02 11:10:54,158 - [56183] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-02 11:10:54,164 - [56183] - src.utils.log - INFO - πŸ”„ Updating next gen date sequentially: inside update_next_workorder_generation - __SPLIT__ 2026-04-02 11:10:54,177 - [56183] - src.utils.log - INFO - πŸ›  Creating temp table #tbl_7c1a071ebb - __SPLIT__ 2026-04-02 11:10:54,204 - [56183] - src.utils.log - INFO - πŸ“Œ Bulk inserting 1 rows into #tbl_7c1a071ebb - __SPLIT__ 2026-04-02 11:10:54,229 - [56183] - src.utils.log - INFO - πŸ” Running MERGE update to apply changes - __SPLIT__ 2026-04-02 11:10:54,247 - [56183] - src.utils.log - INFO - βœ” SQL reported affected rows: 1 - __SPLIT__ 2026-04-02 11:10:54,264 - [56183] - src.utils.log - INFO - πŸ” Verified successfully updated 1 rows via #tbl_7c1a071ebb - __SPLIT__ 2026-04-02 11:10:54,264 - [56183] - src.utils.log - INFO - πŸŽ‰ Successfully updated NextGenerationDate using temp table #tbl_7c1a071ebb - __SPLIT__ 2026-04-02 11:10:54,264 - [56183] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 56183 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-02 11:10:54,290 - [56183] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-02 11:10:54,290 - [56183] - src.utils.log - INFO - Sequential deletion from temp tables begin - __SPLIT__ 2026-04-02 11:10:54,290 - [56183] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId in (507477, 507479) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-02 11:10:54,349 - [56183] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-02 11:10:54,349 - [56183] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId in (507477, 507479) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-02 11:10:54,396 - [56183] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-02 11:10:54,397 - [56183] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId in (507477, 507479) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-02 11:10:54,425 - [56183] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-02 11:10:54,425 - [56183] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId in (507477, 507479) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-02 11:10:54,458 - [56183] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-02 11:10:54,458 - [56183] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId in (507477, 507479) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-02 11:10:54,491 - [56183] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-02 11:10:54,491 - [56183] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (507477, 507479) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-02 11:10:54,547 - [56183] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-02 11:10:54,547 - [56183] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId in (507477, 507479) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-02 11:10:54,574 - [56183] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-02 11:10:54,574 - [56183] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (507477, 507479) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-02 11:10:54,704 - [56183] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-02 11:10:54,704 - [56183] - src.utils.log - INFO - Work order published ids: (507477, 507479) - __SPLIT__ 2026-04-02 11:10:54,704 - [56183] - src.utils.log - INFO - Time took to perform operation in publishing [56183]: 4.21 - __SPLIT__ 2026-04-02 11:10:54,704 - [56183] - src.utils.log - INFO - Publish Completed for GenerateWorkOrderHistoryId: [56183] - __SPLIT__ 2026-04-02 11:10:54,705 - [56183] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-04-02 07:10:54.704' WHERE CompanyId = 146 AND GenerateWorkOrderHistoryId = 56183;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-02 11:10:54,731 - [56183] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-04-02 12:49:44,278 - 11895 - src.utils.log - INFO - ParallelProcessing=False GenerateInvoiceHistoryId=11895 - __SPLIT__ 2026-04-02 12:49:44,280 - 11895 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-04-02 12:49:44,280 - 11895 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Samsung'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-02 12:49:44,479 - 11895 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-02 12:49:44,480 - 11895 - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-04-02 12:49:44,480 - 11895 - src.utils.log - INFO - Sequential Invoice generation algo started for GenerateInvoiceHistoryId: 11895 - __SPLIT__ 2026-04-02 12:49:44,480 - 11895 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET Status = 'InProgress' WHERE GenerateInvoiceHistoryId = 11895;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-02 12:49:44,503 - 11895 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-04-02 12:49:44,503 - 11895 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateInvoiceHistory WHERE GenerateInvoiceHistoryId = 11895;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-02 12:49:44,528 - 11895 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-02 12:49:44,529 - 11895 - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceId as ServiceMasterId,ss.FrequencyScheduleId as setup_frequency_schedule_id, ssb.*, ss.IsBilling, ss.DepartmentMasterId, ss.AccountNumber, ss.CompanyId, ss.BillingLocationId, ss.ServiceLocationId, ss.TaxSysName, ss.TermId, t.NetDueIn, ss.TaxPercent, ss.PoNumber, ss.DisplayServiceAsSeparateLineItem, ss.SetupEndDate, ss.SetupStartDate from ServiceCore.ServiceSetup ss join ServiceCore.ServiceSetupBilling ssb on ss.ServiceSetupId = ssb.ServiceSetupId join Billing.PaymentTypeMaster ptm on ptm.PaymentTypeMasterId = ssb.PaymentTypeMasterId join Billing.Term t on ss.TermId = t.TermId join ServiceCore.ServiceSetupServices sss on ss.ServiceSetupId = sss.ServiceSetupId where ptm.PaymentType= 'Payment Plan' and ss.IsActive =1 and ss.CompanyId= 145 AND ss.IsDeleted =0 AND ss.Status <> 'Canceled' and ss.AccountNumber = '2543' and ss.ServiceSetupId = 95685;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-02 12:49:44,561 - 11895 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-02 12:49:44,565 - 11895 - src.utils.log - INFO - No filter selected - __SPLIT__ 2026-04-02 12:49:44,565 - 11895 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-04-02 12:49:44,566 - 11895 - 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 = 14909... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-02 12:49:44,596 - 11895 - src.utils.log - INFO - βœ… Fetched 60 rows - __SPLIT__ 2026-04-02 12:49:44,597 - 11895 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-04-02 12:49:44,606 - 11895 - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionAutoGenerationId FROM Billing.TransactionAutoGeneration WHERE ServiceSetupId = 95685 AND TransactionDate BETWEEN '2026-04-02 00:00:00' AND '2029-12-31 00:00:00' AND IsActive = 1 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-02 12:49:44,637 - 11895 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-04-02 12:49:44,637 - 11895 - src.utils.log - INFO - πŸ” Fetching data: SELECT InvoiceAutoGenerationId FROM Billing.InvoiceAutoGeneration WHERE TransactionAutoGenerationId IN (245312, 245313) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-02 12:49:44,667 - 11895 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-04-02 12:49:44,667 - 11895 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM Billing.InvoiceChargesAutoGeneration WHERE InvoiceAutoGenerationId IN (245228, 245229) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-02 12:49:44,710 - 11895 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-02 12:49:44,711 - 11895 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM Billing.InvoiceAutoGenerationAppliedDiscount WHERE InvoiceAutoGenerationId IN (245228, 245229) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-02 12:49:44,734 - 11895 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-02 12:49:44,734 - 11895 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM Billing.InvoiceAutoGeneration WHERE InvoiceAutoGenerationId IN (245228, 245229) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-02 12:49:44,773 - 11895 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-02 12:49:44,773 - 11895 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM Billing.TransactionAutoGeneration WHERE TransactionAutoGenerationId IN (245312, 245313) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-02 12:49:44,804 - 11895 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-02 12:49:44,810 - 11895 - src.utils.log - INFO - πŸ” Fetching data: SELECT Inv.ServiceSetupId, MAX(Inv.InvoiceDate) AS InvoiceDate FROM Billing.Invoice Inv INNER JOIN Billing.[Transaction] T ON Inv.TransactionId = T.TransactionId WHERE Inv.InvoiceDate BETWEEN '2026-04-02 00:00:00' AND '2029-12-31 00:00:00' AND Inv.IsActive = 1 AND Inv.IsDelete = 0 AND T.IsActive = 1 AND T.IsDelete = 0 AND Inv.ServiceSetupId = 95685 GROUP BY Inv.ServiceSetupId;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-02 12:49:44,848 - 11895 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-02 12:49:44,861 - 11895 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-02 12:49:44,861 - 11895 - src.utils.log - INFO - πŸ“₯ Inserting into Billing.TransactionAutoGeneration: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-02 12:49:44,918 - 11895 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.TransactionAutoGeneration - __SPLIT__ 2026-04-02 12:49:45,004 - 11895 - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.TransactionAutoGeneration in 1 batches - __SPLIT__ 2026-04-02 12:49:45,004 - 11895 - src.utils.log - INFO - - __SPLIT__ 2026-04-02 12:49:45,004 - 11895 - src.utils.log - INFO - Total invoice generated: 2 - __SPLIT__ 2026-04-02 12:49:45,004 - 11895 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 2 TransactionAutoGenerationId, ServiceSetupId, TransactionDate as InvoiceDate From Billing.TransactionAutoGeneration WHERE CreatedDate = '2026-04-02 06:42:09.253' and ServiceSetupId = 95685 and GenerateWorkOrderHistoryId= 11895;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-02 12:49:45,034 - 11895 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-04-02 12:49:45,040 - 11895 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-02 12:49:45,040 - 11895 - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceAutoGeneration: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-02 12:49:45,082 - 11895 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.InvoiceAutoGeneration - __SPLIT__ 2026-04-02 12:49:45,165 - 11895 - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.InvoiceAutoGeneration in 1 batches - __SPLIT__ 2026-04-02 12:49:45,165 - 11895 - src.utils.log - INFO - πŸ” Fetching data: SELECT I.InvoiceAutoGenerationId, T.ServiceSetupId FROM Billing.InvoiceAutoGeneration I JOIN Billing.TransactionAutoGeneration T ON I.TransactionAutoGenerationId = T.TransactionAutoGenerationId where T.TransactionAutoGenerationId in (245316, 245317);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-02 12:49:45,193 - 11895 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-04-02 12:49:45,193 - 11895 - 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 = 95685 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-02 12:49:45,217 - 11895 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-02 12:49:45,223 - 11895 - src.utils.log - INFO - πŸ” Fetching data: SELECT fm.YearlyOccurrence, fs.FrequencyScheduleId From ServiceCore.FrequencySchedule fs join ServiceCore.FrequencyMaster fm on fs.FrequencyId = fm.FrequencyId where fs.FrequencyScheduleId = 14827;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-02 12:49:45,246 - 11895 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-02 12:49:45,247 - 11895 - src.utils.log - INFO - πŸ” Fetching data: SELECT fm.YearlyOccurrence, fs.FrequencyScheduleId From ServiceCore.FrequencySchedule fs join ServiceCore.FrequencyMaster fm on fs.FrequencyId = fm.FrequencyId where fs.FrequencyScheduleId = 14909;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-02 12:49:45,270 - 11895 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-02 12:49:45,275 - 11895 - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, DiscountSetupId,DiscountType,DiscountCode,DiscountAmount,DiscountDescription,DiscountName, DiscountPercent, IsDiscountPercent,AppliedDiscountAmt,ApplyOnPartPrice,ApplyOnLaborPrice from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE IsInitialSetupDiscount = 0 AND ssad.ServiceSetupId = 95685;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-02 12:49:45,298 - 11895 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-04-02 12:49:45,304 - 11895 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-02 12:49:45,304 - 11895 - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceAutoGenerationAppliedDiscount: 4 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-02 12:49:45,346 - 11895 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 4) into Billing.InvoiceAutoGenerationAppliedDiscount - __SPLIT__ 2026-04-02 12:49:45,428 - 11895 - src.utils.log - INFO - βœ… All 4 rows inserted successfully into Billing.InvoiceAutoGenerationAppliedDiscount in 1 batches - __SPLIT__ 2026-04-02 12:49:45,429 - 11895 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-02 12:49:45,429 - 11895 - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceChargesAutoGeneration: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-02 12:49:45,473 - 11895 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.InvoiceChargesAutoGeneration - __SPLIT__ 2026-04-02 12:49:45,555 - 11895 - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.InvoiceChargesAutoGeneration in 1 batches - __SPLIT__ 2026-04-02 12:49:45,555 - 11895 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET Status = 'Completed' WHERE GenerateInvoiceHistoryId = 11895;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-02 12:49:45,577 - 11895 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-04-02 12:49:45,577 - 11895 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET InvoiceStatusDateTime = '2026-04-02 08:49:45.577' WHERE GenerateInvoiceHistoryId = 11895;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-02 12:49:45,600 - 11895 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-04-02 12:49:45,600 - 11895 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-04-02 12:49:45,601 - 11895 - src.utils.log - INFO - Sequential Invoice Gen Complete Successfully ProjectId:11895 - Time took: 1.32 - __SPLIT__ 2026-04-03 09:04:40,399 - 56186 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=56186 - __SPLIT__ 2026-04-03 09:04:40,400 - 56186 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 56186 - __SPLIT__ 2026-04-03 09:04:40,415 - 56186 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-04-03 09:04:40,416 - 56186 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-03 09:04:40,687 - 56186 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-03 09:04:40,687 - 56186 - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-04-03 09:04:40,687 - 56186 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 56186;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-03 09:04:40,713 - 56186 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-04-03 09:04:40,713 - 56186 - 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 = 56186), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 56186), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 56186 AND ss.FrequencyScheduleId IS NOT NULL AND ss.IsActive = 1 AND ss.IsDeleted = 0 AND ss.Status <> 'Canceled';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-03 09:04:40,776 - 56186 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-03 09:04:40,776 - 56186 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 56186;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-03 09:04:40,801 - 56186 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-03 09:04:40,805 - 56186 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-04-03 09:04:40,806 - 56186 - src.utils.log - INFO - πŸ” Fetching data: SELECT fsd.IntervalDays, fs.CreatedDate ,f.FrequencyId , fs.FrequencyScheduleId, f.[SysName], f.FrequencyValue, f.YearlyOccurrence , fs.ScheduleFormat,fsd.Days, fsd.Weeks, fsd.Months,fsc.[Month] as sch_months, fsd.StartMonth , fsd.DateDay,fsd.DateMonth FROM [ServiceCore].[FrequencyMaster] f inner join [ServiceCore].[FrequencySchedule] fs on fs.FrequencyId = f.FrequencyId left join ServiceCore.FrequencyScheduleCycle fsc on fsc.FrequencyScheduleId = fs.FrequencyScheduleId left join [ServiceCore].[FrequencyScheduleDetail] fsd on fsd.FrequencyScheduleId = fs.FrequencyScheduleId WHERE fsd.FrequencyScheduleId = 13930... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-03 09:04:40,839 - 56186 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-03 09:04:40,839 - 56186 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-04-03 09:04:40,842 - 56186 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-04-03 09:04:40,842 - 56186 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 95698;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-03 09:04:40,867 - 56186 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-03 09:04:40,868 - 56186 - 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-04-03 00:00:00' and ServiceDate <= '2026-06-30 00:00:00' and ServiceSetupId = 95698 and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-03 09:04:40,900 - 56186 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-03 09:04:40,969 - 56186 - src.utils.log - INFO - Generating work orders for setup: 95698 - __SPLIT__ 2026-04-03 09:04:40,993 - 56186 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 11458;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-03 09:04:41,016 - 56186 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-03 09:04:41,023 - 56186 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 11524;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-03 09:04:41,046 - 56186 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-03 09:04:41,077 - 56186 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-04-03 09:04:41,081 - 56186 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=146 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-03 09:04:41,104 - 56186 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-03 09:04:41,108 - 56186 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-04-03 09:04:41,108 - 56186 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-04-03 09:04:41,108 - 56186 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 95698 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-03 09:04:41,150 - 56186 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-03 09:04:41,150 - 56186 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 95698 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-03 09:04:41,191 - 56186 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-03 09:04:41,191 - 56186 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 95698 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-03 09:04:41,232 - 56186 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-03 09:04:41,232 - 56186 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 95698 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-03 09:04:41,272 - 56186 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-03 09:04:41,272 - 56186 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 95698 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-03 09:04:41,312 - 56186 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-03 09:04:41,312 - 56186 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 95698 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-03 09:04:41,353 - 56186 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-03 09:04:41,353 - 56186 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 95698 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-03 09:04:41,379 - 56186 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-03 09:04:41,380 - 56186 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 95698 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-03 09:04:41,450 - 56186 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-03 09:04:41,450 - 56186 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-03 09:04:41,450 - 56186 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 4 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-03 09:04:41,531 - 56186 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 4) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-04-03 09:04:41,687 - 56186 - src.utils.log - INFO - βœ… All 4 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-04-03 09:04:41,687 - 56186 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 4 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-04-02 12:12:09.074' and ServiceSetupId = 95698... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-03 09:04:41,728 - 56186 - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-04-03 09:04:41,729 - 56186 - src.utils.log - INFO - Id's of work order inserted to DB: [507485 507486 507487 507488] - __SPLIT__ 2026-04-03 09:04:41,729 - 56186 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 95698;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-03 09:04:41,752 - 56186 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-03 09:04:41,752 - 56186 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-04-03 09:04:41,752 - 56186 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId = 95698... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-03 09:04:41,777 - 56186 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-04-03 09:04:41,777 - 56186 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId = 95698... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-03 09:04:41,800 - 56186 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-04-03 09:04:41,806 - 56186 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId = 95698... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-03 09:04:41,833 - 56186 - src.utils.log - INFO - βœ… Fetched 6 rows - __SPLIT__ 2026-04-03 09:04:41,834 - 56186 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId = 95698... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-03 09:04:41,858 - 56186 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-03 09:04:41,858 - 56186 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId = 95698... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-03 09:04:41,883 - 56186 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-03 09:04:41,883 - 56186 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId = 95698;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-03 09:04:41,907 - 56186 - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-04-03 09:04:41,908 - 56186 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId = 95698;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-03 09:04:41,932 - 56186 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-03 09:04:41,932 - 56186 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId = 95698;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-03 09:04:41,971 - 56186 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-03 09:04:41,971 - 56186 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId = 95698;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-03 09:04:41,996 - 56186 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-03 09:04:42,010 - 56186 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-04-03 09:04:42,010 - 56186 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-04-03 09:04:42,010 - 56186 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-04-03 09:04:42,011 - 56186 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.CommunicationPreferencesServiceReportNotification: - __SPLIT__ 2026-04-03 09:04:42,011 - 56186 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-04-03 09:04:42,011 - 56186 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SetupAutoGenerationSourceMapping: - __SPLIT__ 2026-04-03 09:04:42,011 - 56186 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-04-03 09:04:42,011 - 56186 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-03 09:04:42,011 - 56186 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (507488, 507485, 507486, 507487) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-03 09:04:42,034 - 56186 - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-04-03 09:04:42,034 - 56186 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationAppliedDiscount: 8 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-03 09:04:42,079 - 56186 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 8) into ServiceCore.WorkOrderAutoGenerationAppliedDiscount - __SPLIT__ 2026-04-03 09:04:42,170 - 56186 - src.utils.log - INFO - βœ… All 8 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationAppliedDiscount in 1 batches - __SPLIT__ 2026-04-03 09:04:42,170 - 56186 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-04-03 09:04:42,170 - 56186 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SubWorkOrderAutoGeneration: - __SPLIT__ 2026-04-03 09:04:42,170 - 56186 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-04-03 09:04:42,170 - 56186 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: - __SPLIT__ 2026-04-03 09:04:42,170 - 56186 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-04-03 09:04:42,170 - 56186 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: - __SPLIT__ 2026-04-03 09:04:42,170 - 56186 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-04-03 09:04:42,170 - 56186 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-03 09:04:42,171 - 56186 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (507488, 507485, 507486, 507487) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-03 09:04:42,192 - 56186 - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-04-03 09:04:42,193 - 56186 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationCrews: 12 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-03 09:04:42,236 - 56186 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 12) into ServiceCore.WorkOrderAutoGenerationCrews - __SPLIT__ 2026-04-03 09:04:42,327 - 56186 - src.utils.log - INFO - βœ… All 12 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationCrews in 1 batches - __SPLIT__ 2026-04-03 09:04:42,327 - 56186 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-04-03 09:04:42,327 - 56186 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-03 09:04:42,327 - 56186 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-03 09:04:42,371 - 56186 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-04-03 09:04:42,462 - 56186 - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-04-03 09:04:42,462 - 56186 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-04-03 09:04:42,462 - 56186 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-03 09:04:42,462 - 56186 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 6 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-03 09:04:42,490 - 56186 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 6) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-04-03 09:04:42,585 - 56186 - src.utils.log - INFO - βœ… All 6 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-04-03 09:04:42,585 - 56186 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-04-03 09:04:42,585 - 56186 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 56186;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-03 09:04:42,607 - 56186 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-04-03 09:04:42,607 - 56186 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-04-03 09:04:42,607 - 56186 - src.utils.log - INFO - Time took to perform operation: 2.21 - __SPLIT__ 2026-04-03 09:04:42,607 - 56186 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 56186;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-03 09:04:42,629 - 56186 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-04-03 09:04:42,629 - 56186 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET WorkOrderStatusDateTime = '2026-04-03 05:04:42.629' WHERE GenerateWorkOrderHistoryId = 56186;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-03 09:04:42,652 - 56186 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-04-03 09:05:01,972 - [56186] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[507485, 507486] user_id=44506 company_id=146 project_id=[56186] publish_all=False - __SPLIT__ 2026-04-03 09:05:01,973 - [56186] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[507485, 507486] user_id=44506 company_id=146 project_id=[56186] publish_all=False - __SPLIT__ 2026-04-03 09:05:01,973 - [56186] - src.utils.log - INFO - Sequential Work order publish in progress for GenerateWorkOrderHistoryId: [56186] - __SPLIT__ 2026-04-03 09:05:01,974 - [56186] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-04-03 09:05:01,974 - [56186] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-03 09:05:02,157 - [56186] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-03 09:05:02,157 - [56186] - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-04-03 09:05:02,157 - [56186] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'InProgress' WHERE CompanyId = 146 AND GenerateWorkOrderHistoryId = 56186;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-03 09:05:02,185 - [56186] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-04-03 09:05:02,185 - [56186] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (507485, 507486)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-03 09:05:02,215 - [56186] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-04-03 09:05:02,215 - [56186] - src.utils.log - INFO - Inside get_work_order_table - __SPLIT__ 2026-04-03 09:05:02,215 - [56186] - src.utils.log - INFO - πŸ” Fetching data: SELECT DISTINCT sss.ServiceSetupId, dm.DepartmentMasterId, bm.BranchMasterId FROM Common.DepartmentMaster dm JOIN Common.DivisionMaster d2 ON dm.DivisionMasterId = d2.DivisionMasterId JOIN Common.BranchMaster bm ON d2.BranchMasterId = bm.BranchMasterId JOIN ServiceCore.ServiceCategoryMaster c ON c.DepartmentId = dm.DepartmentMasterId JOIN ServiceCore.ServiceMaster sm ON c.CategoryId = sm.CategoryId JOIN ServiceCore.ServiceSetupServices sss ON sss.ServiceId = sm.ServiceMasterId WHERE dm.CompanyId = 146 AND d2.CompanyId = bm.CompanyId AND sss.ServiceSetupId = 95698 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-03 09:05:02,250 - [56186] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-03 09:05:02,250 - [56186] - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceSetupId, dm.DepartmentMasterId, bm.BranchMasterId FROM Common.DepartmentMaster dm JOIN Common.DivisionMaster d2 ON dm.DivisionMasterId = d2.DivisionMasterId JOIN Common.BranchMaster bm ON d2.BranchMasterId = bm.BranchMasterId JOIN ServiceCore.SoldServiceNonStandard x on dm.DepartmentMasterId = x.DepartmentId JOIN ServiceCore.ServiceSetupServices sss ON sss.NonStdSoldServiceId = x.SoldServiceNonStandardId WHERE dm.CompanyId = 146 AND d2.CompanyId = bm.CompanyId AND sss.ServiceSetupId = 95698 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-03 09:05:02,281 - [56186] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-03 09:05:02,282 - [56186] - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceSetupId, dm.DepartmentMasterId, bm.BranchMasterId FROM Common.DepartmentMaster dm Inner JOIN Common.DivisionMaster d2 ON dm.DivisionMasterId = d2.DivisionMasterId Inner JOIN Common.BranchMaster bm ON d2.BranchMasterId = bm.BranchMasterId Inner JOIN [ServiceCore].[ServiceCategoryMaster] scm ON dm.DepartmentMasterId = scm.DepartmentId Inner JOIN ServiceCore.ServiceMaster sm ON scm.CategoryId = sm.CategoryId Inner JOIN ServiceCore.SoldServiceStandard x on x.ServiceId = sm.ServiceMasterId Inner JOIN ServiceCore.ServiceSetupServices sss ON sss.StdSoldServiceId = x.SoldServiceStandardId WHERE dm.CompanyId = 146 AND d2.CompanyId = bm.CompanyId AND sss.ServiceSetupId = 95698 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-03 09:05:02,316 - [56186] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-03 09:05:02,320 - [56186] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder,BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 146;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-03 09:05:02,349 - [56186] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-03 09:05:02,349 - [56186] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 146 AND EnitityNumberType in ('WorkOrder','Invoice'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-03 09:05:02,378 - [56186] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-04-03 09:05:02,378 - [56186] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder, BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 146; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-03 09:05:02,408 - [56186] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-03 09:05:02,408 - [56186] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 2 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 146 AND EnitityNumberType = 'WorkOrder'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-03 09:05:02,436 - [56186] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-03 09:05:02,436 - [56186] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 2 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 146 AND EnitityNumberType = 'Invoice'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-03 09:05:02,464 - [56186] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-03 09:05:02,467 - [56186] - 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 = 95698... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-03 09:05:02,498 - [56186] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-03 09:05:02,500 - [56186] - src.utils.log - INFO - πŸ” Fetching data: SELECT x.CompanyId FROM CRM.CompanyMaster x WHERE CompanyKey = 'Fortive';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-03 09:05:02,527 - [56186] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-03 09:05:02,527 - [56186] - src.utils.log - INFO - πŸ” Fetching data: SELECT CollectionStatus,IsHold,AccountNo FROM CRM.Account a WHERE a.AccountNo = '1779' and a.CompanyId = 134;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-03 09:05:02,555 - [56186] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-03 09:05:02,557 - [56186] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderNo FROM ServiceCore.WorkOrder WHERE WorkOrderNo IN ('53597', '53598') AND CompanyId = 146 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-03 09:05:02,589 - [56186] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-03 09:05:02,589 - [56186] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrder (skip triggers): 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-03 09:05:02,675 - [56186] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrder (triggers skipped) - __SPLIT__ 2026-04-03 09:05:02,822 - [56186] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrder in 1 batches (triggers skipped) - __SPLIT__ 2026-04-03 09:05:02,846 - [56186] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-04-03 09:05:02,847 - [56186] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.ServiceSetup SET IsInitialWoGenerated = 1 WHERE CompanyId = 146 AND ServiceSetupId = 95698;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-03 09:05:02,876 - [56186] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-04-03 09:05:02,877 - [56186] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkorderId, WorkOrderNo FROM ServiceCore.WorkOrder wo WHERE wo.WorkOrderNo IN ('53597', '53598') AND wo.AccountNumber = '1779' AND wo.CompanyId = 146 ... (Thread: ThreadPoolExecutor-3_0) - __SPLIT__ 2026-04-03 09:05:02,914 - [56186] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-04-03 09:05:02,915 - [56186] - src.utils.log - INFO - Sequential fetching temp table records - __SPLIT__ 2026-04-03 09:05:02,915 - [56186] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationServices woag WHERE woag.WorkOrderAutoGenerationId in (507485, 507486)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-03 09:05:02,953 - [56186] - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-04-03 09:05:02,953 - [56186] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SubWorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (507485, 507486)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-03 09:05:03,001 - [56186] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-03 09:05:03,001 - [56186] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationCrews woag WHERE woag.WorkOrderAutoGenerationId in (507485, 507486)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-03 09:05:03,034 - [56186] - src.utils.log - INFO - βœ… Fetched 6 rows - __SPLIT__ 2026-04-03 09:05:03,035 - [56186] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationSalesPersonCommission woag WHERE woag.WorkOrderAutoGenerationId in (507485, 507486)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-03 09:05:03,063 - [56186] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-03 09:05:03,063 - [56186] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupAutoGenerationSourceMapping woag WHERE woag.WorkOrderAutoGenerationId in (507485, 507486)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-03 09:05:03,091 - [56186] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-03 09:05:03,091 - [56186] - 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 (507485, 507486)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-03 09:05:03,122 - [56186] - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-04-03 09:05:03,122 - [56186] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from CRM.LeadNote woag WHERE woag.RefId in (507485, 507486) and woag.RefType = 'TempWorkorder';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-03 09:05:03,151 - [56186] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-03 09:05:03,151 - [56186] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment woagca WHERE woagca.WorkOrderAutoGenerationId in (507485, 507486);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-03 09:05:03,178 - [56186] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-03 09:05:03,180 - [56186] - src.utils.log - INFO - Updating temp tables - __SPLIT__ 2026-04-03 09:05:03,193 - [56186] - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyKey FROM Common.CompanyMaster cm WHERE CompanyId = 146;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-03 09:05:03,219 - [56186] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-03 09:05:03,222 - [56186] - src.utils.log - INFO - πŸ” Fetching data: Select DiscountSetupId, [SysName] as DiscountSysName from Common.DiscountSetupMaster WHERE DiscountSetupId IN (551, 668) AND CompanyId = 146;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-03 09:05:03,248 - [56186] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-04-03 09:05:03,251 - [56186] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 146 AND EnitityNumberType in ('SubWorkOrder'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-03 09:05:03,277 - [56186] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-03 09:05:03,281 - [56186] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-03 09:05:03,281 - [56186] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishHistory: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-03 09:05:03,343 - [56186] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationPublishHistory - __SPLIT__ 2026-04-03 09:05:03,457 - [56186] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishHistory in 1 batches - __SPLIT__ 2026-04-03 09:05:03,458 - [56186] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationPublishHistoryId, WorkOrderNo, ServiceSetupId FROM ServiceCore.WorkOrderAutoGenerationPublishHistory WHERE ServiceSetupId = 95698 AND WorkOrderNo IN ('810098', '1153263') AND GenerateWorkOrderHistoryId = 56186;... (Thread: ThreadPoolExecutor-4_0) - __SPLIT__ 2026-04-03 09:05:03,518 - [56186] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-04-03 09:05:03,518 - [56186] - src.utils.log - INFO - 🏁 Final merged rows: 2 - __SPLIT__ 2026-04-03 09:05:03,524 - [56186] - src.utils.log - INFO - Sequential Insertion in work order tables begin - __SPLIT__ 2026-04-03 09:05:03,524 - [56186] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-03 09:05:03,524 - [56186] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderServices: 4 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-03 09:05:03,572 - [56186] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 4) into ServiceCore.WorkOrderServices - __SPLIT__ 2026-04-03 09:05:03,679 - [56186] - src.utils.log - INFO - βœ… All 4 rows inserted successfully into ServiceCore.WorkOrderServices in 1 batches - __SPLIT__ 2026-04-03 09:05:03,680 - [56186] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SubWorkOrder: - __SPLIT__ 2026-04-03 09:05:03,680 - [56186] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-03 09:05:03,680 - [56186] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.WorkOrderAppliedDiscount: 4 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-03 09:05:03,727 - [56186] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 4) into ServiceAuto.WorkOrderAppliedDiscount - __SPLIT__ 2026-04-03 09:05:03,835 - [56186] - src.utils.log - INFO - βœ… All 4 rows inserted successfully into ServiceAuto.WorkOrderAppliedDiscount in 1 batches - __SPLIT__ 2026-04-03 09:05:03,835 - [56186] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderSalesPersonCommission: - __SPLIT__ 2026-04-03 09:05:03,835 - [56186] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderCommissionAdjustment: - __SPLIT__ 2026-04-03 09:05:03,835 - [56186] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-03 09:05:03,835 - [56186] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderCrew: 6 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-03 09:05:03,882 - [56186] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 6) into ServiceCore.WorkOrderCrew - __SPLIT__ 2026-04-03 09:05:03,985 - [56186] - src.utils.log - INFO - βœ… All 6 rows inserted successfully into ServiceCore.WorkOrderCrew in 1 batches - __SPLIT__ 2026-04-03 09:05:03,986 - [56186] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkorderSourceMapping: - __SPLIT__ 2026-04-03 09:05:03,986 - [56186] - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-04-03 09:05:03,986 - [56186] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-03 09:05:03,986 - [56186] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishServices: 4 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-03 09:05:04,034 - [56186] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 4) into ServiceCore.WorkOrderAutoGenerationPublishServices - __SPLIT__ 2026-04-03 09:05:04,163 - [56186] - src.utils.log - INFO - βœ… All 4 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishServices in 1 batches - __SPLIT__ 2026-04-03 09:05:04,163 - [56186] - 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 = 95698... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-03 09:05:04,190 - [56186] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-03 09:05:04,196 - [56186] - src.utils.log - INFO - Size of Transaction: 2 - __SPLIT__ 2026-04-03 09:05:04,196 - [56186] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-03 09:05:04,256 - [56186] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-04-03 09:05:04,359 - [56186] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-04-03 09:05:04,371 - [56186] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-04-03 09:05:04,372 - [56186] - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionId, ModifiedBy, TransactionDate as InvoiceDate from Billing.[Transaction] t WHERE t.ModifiedBy in (12345678910, 12345678911) and t.CompanyId = 146 AND t.TransactionType ='Invoice' AND t.CreatedDate = '2026-04-03 05:05:04.192';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-03 09:05:04,539 - [56186] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-04-03 09:05:04,542 - [56186] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 95698;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-03 09:05:04,569 - [56186] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-03 09:05:04,577 - [56186] - src.utils.log - INFO - πŸ“ Executing: UPDATE Billing.[Transaction] SET ModifiedBy = NULL WHERE ModifiedBy IN (12345678910,12345678911) AND CreatedDate = '2026-04-03 05:05:04.192'; ... (Thread: ThreadPoolExecutor-5_0) - __SPLIT__ 2026-04-03 09:05:04,666 - [56186] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-04-03 09:05:04,670 - [56186] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-03 09:05:04,670 - [56186] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-03 09:05:04,721 - [56186] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.Invoice - __SPLIT__ 2026-04-03 09:05:04,825 - [56186] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-04-03 09:05:04,825 - [56186] - src.utils.log - INFO - πŸ” Fetching data: SELECT InvoiceId, WorkOrderNo FROM Billing.Invoice i WHERE i.WorkOrderNo in ('53597', '53598')... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-03 09:05:04,893 - [56186] - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-04-03 09:05:04,903 - [56186] - 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 = 95698 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-03 09:05:04,932 - [56186] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-04-03 09:05:04,932 - [56186] - 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 = 95698 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-03 09:05:04,961 - [56186] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-04-03 09:05:04,962 - [56186] - 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 = 95698 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-03 09:05:04,990 - [56186] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-03 09:05:04,990 - [56186] - 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 = 95698 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-03 09:05:05,018 - [56186] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-03 09:05:05,030 - [56186] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 95698;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-03 09:05:05,057 - [56186] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-03 09:05:05,062 - [56186] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId, AppliedDiscountAmt as AppliedDiscountAmount,IsActive ,ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 95698;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-03 09:05:05,089 - [56186] - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-04-03 09:05:05,099 - [56186] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId,IsActive,DiscountAmount, IsDiscountPercent,DiscountPercent,DiscountDescription , ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 95698;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-03 09:05:05,128 - [56186] - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-04-03 09:05:05,137 - [56186] - src.utils.log - INFO - Sequential Insertion in invoice tables begin - __SPLIT__ 2026-04-03 09:05:05,137 - [56186] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-03 09:05:05,137 - [56186] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.AccountDiscountSetup: 8 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-03 09:05:05,183 - [56186] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 8) into Billing.AccountDiscountSetup - __SPLIT__ 2026-04-03 09:05:05,286 - [56186] - src.utils.log - INFO - βœ… All 8 rows inserted successfully into Billing.AccountDiscountSetup in 1 batches - __SPLIT__ 2026-04-03 09:05:05,287 - [56186] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-03 09:05:05,287 - [56186] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceCharges: 8 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-03 09:05:05,335 - [56186] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 8) into Billing.InvoiceCharges - __SPLIT__ 2026-04-03 09:05:05,447 - [56186] - src.utils.log - INFO - βœ… All 8 rows inserted successfully into Billing.InvoiceCharges in 1 batches - __SPLIT__ 2026-04-03 09:05:05,447 - [56186] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-03 09:05:05,448 - [56186] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.DiscountApplied: 8 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-03 09:05:05,492 - [56186] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 8) into Billing.DiscountApplied - __SPLIT__ 2026-04-03 09:05:05,593 - [56186] - src.utils.log - INFO - βœ… All 8 rows inserted successfully into Billing.DiscountApplied in 1 batches - __SPLIT__ 2026-04-03 09:05:05,593 - [56186] - src.utils.log - INFO - Invoice Publish Done - __SPLIT__ 2026-04-03 09:05:05,593 - [56186] - src.utils.log - INFO - Updating Next GenerationDate - __SPLIT__ 2026-04-03 09:05:05,594 - [56186] - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, MAX(NextWorkOrderGenerationDate) AS MaxNextWorkOrderGeneration FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 56186 GROUP BY ServiceSetupId; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-03 09:05:05,621 - [56186] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-03 09:05:05,626 - [56186] - src.utils.log - INFO - πŸ”„ Updating next gen date sequentially: inside update_next_workorder_generation - __SPLIT__ 2026-04-03 09:05:05,640 - [56186] - src.utils.log - INFO - πŸ›  Creating temp table #tbl_760b0433bc - __SPLIT__ 2026-04-03 09:05:05,667 - [56186] - src.utils.log - INFO - πŸ“Œ Bulk inserting 1 rows into #tbl_760b0433bc - __SPLIT__ 2026-04-03 09:05:05,693 - [56186] - src.utils.log - INFO - πŸ” Running MERGE update to apply changes - __SPLIT__ 2026-04-03 09:05:05,711 - [56186] - src.utils.log - INFO - βœ” SQL reported affected rows: 1 - __SPLIT__ 2026-04-03 09:05:05,727 - [56186] - src.utils.log - INFO - πŸ” Verified successfully updated 1 rows via #tbl_760b0433bc - __SPLIT__ 2026-04-03 09:05:05,727 - [56186] - src.utils.log - INFO - πŸŽ‰ Successfully updated NextGenerationDate using temp table #tbl_760b0433bc - __SPLIT__ 2026-04-03 09:05:05,727 - [56186] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 56186 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-03 09:05:05,753 - [56186] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-03 09:05:05,753 - [56186] - src.utils.log - INFO - Sequential deletion from temp tables begin - __SPLIT__ 2026-04-03 09:05:05,753 - [56186] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId in (507485, 507486) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-03 09:05:05,811 - [56186] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-03 09:05:05,811 - [56186] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId in (507485, 507486) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-03 09:05:05,858 - [56186] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-03 09:05:05,859 - [56186] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId in (507485, 507486) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-03 09:05:05,886 - [56186] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-03 09:05:05,886 - [56186] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId in (507485, 507486) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-03 09:05:05,920 - [56186] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-03 09:05:05,920 - [56186] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId in (507485, 507486) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-03 09:05:05,954 - [56186] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-03 09:05:05,954 - [56186] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (507485, 507486) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-03 09:05:06,011 - [56186] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-03 09:05:06,011 - [56186] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId in (507485, 507486) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-03 09:05:06,037 - [56186] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-03 09:05:06,037 - [56186] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (507485, 507486) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-03 09:05:06,130 - [56186] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-03 09:05:06,130 - [56186] - src.utils.log - INFO - Work order published ids: (507485, 507486) - __SPLIT__ 2026-04-03 09:05:06,130 - [56186] - src.utils.log - INFO - Time took to perform operation in publishing [56186]: 4.16 - __SPLIT__ 2026-04-03 09:05:06,130 - [56186] - src.utils.log - INFO - Publish Completed for GenerateWorkOrderHistoryId: [56186] - __SPLIT__ 2026-04-03 09:05:06,130 - [56186] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-04-03 05:05:06.130' WHERE CompanyId = 146 AND GenerateWorkOrderHistoryId = 56186;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-03 09:05:06,157 - [56186] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-04-03 10:45:32,496 - 56187 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=56187 - __SPLIT__ 2026-04-03 10:45:32,496 - 56187 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 56187 - __SPLIT__ 2026-04-03 10:45:32,499 - 56187 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-04-03 10:45:32,499 - 56187 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Samsung'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-03 10:45:32,683 - 56187 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-03 10:45:32,683 - 56187 - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-04-03 10:45:32,683 - 56187 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 56187;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-03 10:45:32,708 - 56187 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-04-03 10:45:32,708 - 56187 - 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 = 56187), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 56187), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 56187 AND ss.FrequencyScheduleId IS NOT NULL AND ss.IsActive = 1 AND ss.IsDeleted = 0 AND ss.Status <> 'Canceled';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-03 10:45:32,772 - 56187 - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-04-03 10:45:32,772 - 56187 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 56187;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-03 10:45:32,801 - 56187 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-03 10:45:32,803 - 56187 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-04-03 10:45:32,804 - 56187 - src.utils.log - INFO - πŸ” Fetching data: SELECT fsd.IntervalDays, fs.CreatedDate ,f.FrequencyId , fs.FrequencyScheduleId, f.[SysName], f.FrequencyValue, f.YearlyOccurrence , fs.ScheduleFormat,fsd.Days, fsd.Weeks, fsd.Months,fsc.[Month] as sch_months, fsd.StartMonth , fsd.DateDay,fsd.DateMonth FROM [ServiceCore].[FrequencyMaster] f inner join [ServiceCore].[FrequencySchedule] fs on fs.FrequencyId = f.FrequencyId left join ServiceCore.FrequencyScheduleCycle fsc on fsc.FrequencyScheduleId = fs.FrequencyScheduleId left join [ServiceCore].[FrequencyScheduleDetail] fsd on fsd.FrequencyScheduleId = fs.FrequencyScheduleId WHERE fsd.FrequencyScheduleId in (14714, 14902)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-03 10:45:32,842 - 56187 - src.utils.log - INFO - βœ… Fetched 13 rows - __SPLIT__ 2026-04-03 10:45:32,842 - 56187 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-04-03 10:45:32,844 - 56187 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-04-03 10:45:32,845 - 56187 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId in (95560, 95561, 95559);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-03 10:45:32,871 - 56187 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-03 10:45:32,872 - 56187 - 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-04-03 00:00:00' and ServiceDate <= '2027-12-31 00:00:00' and ServiceSetupId in (95560, 95561, 95559) and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-03 10:45:32,907 - 56187 - src.utils.log - INFO - βœ… Fetched 7 rows - __SPLIT__ 2026-04-03 10:45:32,983 - 56187 - src.utils.log - INFO - Generating work orders for setup: 95559 - __SPLIT__ 2026-04-03 10:45:33,362 - 56187 - src.utils.log - INFO - Generating work orders for setup: 95560 - __SPLIT__ 2026-04-03 10:45:33,507 - 56187 - src.utils.log - INFO - Generating work orders for setup: 95561 - __SPLIT__ 2026-04-03 10:45:33,663 - 56187 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-04-03 10:45:33,673 - 56187 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=145 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-03 10:45:33,699 - 56187 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-03 10:45:33,703 - 56187 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-04-03 10:45:33,703 - 56187 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-04-03 10:45:33,703 - 56187 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (95560, 95561, 95559) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-03 10:45:33,765 - 56187 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-03 10:45:33,766 - 56187 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (95560, 95561, 95559) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-03 10:45:33,819 - 56187 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-03 10:45:33,820 - 56187 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (95560, 95561, 95559) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-03 10:45:33,868 - 56187 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-03 10:45:33,869 - 56187 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (95560, 95561, 95559) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-03 10:45:33,916 - 56187 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-03 10:45:33,916 - 56187 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (95560, 95561, 95559) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-03 10:45:33,963 - 56187 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-03 10:45:33,963 - 56187 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (95560, 95561, 95559) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-03 10:45:34,057 - 56187 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-03 10:45:34,057 - 56187 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (95560, 95561, 95559) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-03 10:45:34,087 - 56187 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-03 10:45:34,087 - 56187 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (95560, 95561, 95559) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-03 10:45:35,577 - 56187 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-03 10:45:35,577 - 56187 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-03 10:45:35,577 - 56187 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 71 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-03 10:45:35,650 - 56187 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 71) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-04-03 10:45:36,418 - 56187 - src.utils.log - INFO - βœ… All 71 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-04-03 10:45:36,418 - 56187 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 71 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-04-02 12:12:09.074' and ServiceSetupId in (95560, 95561, 95559)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-03 10:45:36,465 - 56187 - src.utils.log - INFO - βœ… Fetched 71 rows - __SPLIT__ 2026-04-03 10:45:36,465 - 56187 - src.utils.log - INFO - Id's of work order inserted to DB: [507489 507490 507491 507492 507493 507494 507495 507496 507497 507498 507499 507500 507501 507502 507503 507504 507505 507506 507507 507508 507509 507510 507511 507512 507513 507514 507515 507516 507517 507518 507519 507520 507521 507522 507523 507524 507525 507526 507527 507528 507529 507530 507531 507532 507533 507534 507535 507536 507537 507538 507539 507540 507541 507542 507543 507544 507545 507546 507547 507548 507549 507550 507551 507552 507553 507554 507555 507556 507557 507558 507559] - __SPLIT__ 2026-04-03 10:45:36,465 - 56187 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId in (95560, 95561, 95559);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-03 10:45:36,491 - 56187 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-03 10:45:36,492 - 56187 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-04-03 10:45:36,492 - 56187 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId in (95560, 95561, 95559)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-03 10:45:36,519 - 56187 - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-04-03 10:45:36,519 - 56187 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId in (95560, 95561, 95559)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-03 10:45:36,545 - 56187 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-03 10:45:36,549 - 56187 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId in (95560, 95561, 95559)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-03 10:45:36,579 - 56187 - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-04-03 10:45:36,580 - 56187 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId in (95560, 95561, 95559)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-03 10:45:36,606 - 56187 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-03 10:45:36,606 - 56187 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId in (95560, 95561, 95559)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-03 10:45:36,631 - 56187 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-03 10:45:36,632 - 56187 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId in (95560, 95561, 95559);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-03 10:45:36,658 - 56187 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-03 10:45:36,659 - 56187 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId in (95560, 95561, 95559);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-03 10:45:36,684 - 56187 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-03 10:45:36,685 - 56187 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId in (95560, 95561, 95559);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-03 10:45:36,727 - 56187 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-03 10:45:36,728 - 56187 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId in (95560, 95561, 95559);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-03 10:45:36,755 - 56187 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-03 10:45:36,763 - 56187 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-04-03 10:45:36,763 - 56187 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-04-03 10:45:36,763 - 56187 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-04-03 10:45:36,763 - 56187 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.CommunicationPreferencesServiceReportNotification: - __SPLIT__ 2026-04-03 10:45:36,763 - 56187 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-04-03 10:45:36,763 - 56187 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SetupAutoGenerationSourceMapping: - __SPLIT__ 2026-04-03 10:45:36,763 - 56187 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-04-03 10:45:36,763 - 56187 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationAppliedDiscount: - __SPLIT__ 2026-04-03 10:45:36,763 - 56187 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-04-03 10:45:36,763 - 56187 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SubWorkOrderAutoGeneration: - __SPLIT__ 2026-04-03 10:45:36,763 - 56187 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-04-03 10:45:36,763 - 56187 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: - __SPLIT__ 2026-04-03 10:45:36,763 - 56187 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-04-03 10:45:36,763 - 56187 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: - __SPLIT__ 2026-04-03 10:45:36,763 - 56187 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-04-03 10:45:36,763 - 56187 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-03 10:45:36,763 - 56187 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (507520, 507521, 507522, 507523, 507524, 507525, 507526, 507527, 507528, 507529, 507530, 507531, 507532, 507533, 507534, 507535, 507536, 507537, 507538, 507539, 507540, 507541, 507542, 507543, 507544, 507545, 507546, 507547, 507548, 507549, 507550, 507551, 507552, 507553, 507554, 507555, 507556, 507557, 507558, 507559, 507489, 507490, 507491, 507492, 507493, 507494, 507495, 507496, 507497, 507498, 507499, 507500, 507501, 507502, 507503, 507504, 507505, 507506, 507507, 507508, 507509, 507510, 507511, 507512, 507513, 507514, 507515, 507516, 507517, 507518, 507519) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-03 10:45:36,792 - 56187 - src.utils.log - INFO - βœ… Fetched 71 rows - __SPLIT__ 2026-04-03 10:45:36,794 - 56187 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationCrews: 71 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-03 10:45:36,836 - 56187 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 71) into ServiceCore.WorkOrderAutoGenerationCrews - __SPLIT__ 2026-04-03 10:45:36,971 - 56187 - src.utils.log - INFO - βœ… All 71 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationCrews in 1 batches - __SPLIT__ 2026-04-03 10:45:36,971 - 56187 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-04-03 10:45:36,971 - 56187 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationServices: - __SPLIT__ 2026-04-03 10:45:36,971 - 56187 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-04-03 10:45:36,971 - 56187 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-03 10:45:36,971 - 56187 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 91 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-03 10:45:37,017 - 56187 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 91) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-04-03 10:45:37,239 - 56187 - src.utils.log - INFO - βœ… All 91 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-04-03 10:45:37,239 - 56187 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-04-03 10:45:37,239 - 56187 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 56187;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-03 10:45:37,264 - 56187 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-04-03 10:45:37,264 - 56187 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-04-03 10:45:37,264 - 56187 - src.utils.log - INFO - Time took to perform operation: 4.77 - __SPLIT__ 2026-04-03 10:45:37,264 - 56187 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 56187;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-03 10:45:37,288 - 56187 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-04-03 10:45:37,289 - 56187 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET WorkOrderStatusDateTime = '2026-04-03 06:45:37.289' WHERE GenerateWorkOrderHistoryId = 56187;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-03 10:45:37,315 - 56187 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-04-03 10:51:57,065 - 56188 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=56188 - __SPLIT__ 2026-04-03 10:51:57,067 - 56188 - src.utils.log - INFO - Work order Generation/Publish algo started for GenerateWorkOrderHistoryId: 56188 - __SPLIT__ 2026-04-03 10:51:57,080 - 56188 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-04-03 10:51:57,080 - 56188 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Samsung'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-03 10:51:57,323 - 56188 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-03 10:51:57,323 - 56188 - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-04-03 10:51:57,323 - 56188 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 56188;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-03 10:51:57,348 - 56188 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-04-03 10:51:57,348 - 56188 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET WoGenStartDateTime = '2026-04-03 06:51:57.348' WHERE GenerateWorkOrderHistoryId = 56188;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-03 10:51:57,375 - 56188 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-04-03 10:51:57,375 - 56188 - src.utils.log - INFO - πŸ” Fetching data: Select CreatedBy, CompanyId from ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryId = 56188;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-03 10:51:57,400 - 56188 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-03 10:51:57,401 - 56188 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'New', WoPublishStartDateTime = '2026-04-03 06:51:57.401' WHERE CompanyId = 145 AND GenerateWorkOrderHistoryId = 56188;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-03 10:51:57,428 - 56188 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-04-03 10:51:57,428 - 56188 - 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 = 56188), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 56188), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 56188 AND ss.FrequencyScheduleId IS NOT NULL AND ss.IsActive = 1 AND ss.IsDeleted = 0 AND ss.Status <> 'Canceled';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-03 10:51:57,527 - 56188 - src.utils.log - INFO - βœ… Fetched 34 rows - __SPLIT__ 2026-04-03 10:51:57,528 - 56188 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 56188;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-03 10:51:57,554 - 56188 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-03 10:51:57,558 - 56188 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-04-03 10:51:57,559 - 56188 - src.utils.log - INFO - πŸ” Fetching data: SELECT fsd.IntervalDays, fs.CreatedDate ,f.FrequencyId , fs.FrequencyScheduleId, f.[SysName], f.FrequencyValue, f.YearlyOccurrence , fs.ScheduleFormat,fsd.Days, fsd.Weeks, fsd.Months,fsc.[Month] as sch_months, fsd.StartMonth , fsd.DateDay,fsd.DateMonth FROM [ServiceCore].[FrequencyMaster] f inner join [ServiceCore].[FrequencySchedule] fs on fs.FrequencyId = f.FrequencyId left join ServiceCore.FrequencyScheduleCycle fsc on fsc.FrequencyScheduleId = fs.FrequencyScheduleId left join [ServiceCore].[FrequencyScheduleDetail] fsd on fsd.FrequencyScheduleId = fs.FrequencyScheduleId WHERE fsd.FrequencyScheduleId in (14691, 14852, 14853, 14694, 13959, 14822, 14915, 14826, 14921, 14827, 14829, 14708, 14869, 14870, 14714, 14845)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-03 10:51:57,637 - 56188 - src.utils.log - INFO - βœ… Fetched 343 rows - __SPLIT__ 2026-04-03 10:51:57,637 - 56188 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-04-03 10:51:57,642 - 56188 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-04-03 10:51:57,642 - 56188 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId in (84229, 84240, 84273, 84247, 11452, 84383);... (Thread: ThreadPoolExecutor-0_0) - __SPLIT__ 2026-04-03 10:51:57,644 - 56188 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-04-03 10:51:57,644 - 56188 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId in (95064, 95052, 95063);... (Thread: ThreadPoolExecutor-0_2) - __SPLIT__ 2026-04-03 10:51:57,645 - 56188 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-04-03 10:51:57,646 - 56188 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId in (11456, 11455);... (Thread: ThreadPoolExecutor-0_1) - __SPLIT__ 2026-04-03 10:51:57,647 - 56188 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-04-03 10:51:57,647 - 56188 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 11469;... (Thread: ThreadPoolExecutor-0_3) - __SPLIT__ 2026-04-03 10:51:57,648 - 56188 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-04-03 10:51:57,648 - 56188 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId in (84456, 84457, 84504, 95249);... (Thread: ThreadPoolExecutor-0_4) - __SPLIT__ 2026-04-03 10:51:57,649 - 56188 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-04-03 10:51:57,650 - 56188 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 95227;... (Thread: ThreadPoolExecutor-0_5) - __SPLIT__ 2026-04-03 10:51:57,676 - 56188 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-03 10:51:57,677 - 56188 - 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 >= '2059-12-31 00:00:00' and ServiceDate <= '2060-01-01 00:00:00' and ServiceSetupId in (84229, 84240, 84273, 84247, 11452, 84383) and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: ThreadPoolExecutor-0_0) - __SPLIT__ 2026-04-03 10:51:57,729 - 56188 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-03 10:51:57,766 - 56188 - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-04-03 10:51:57,767 - 56188 - 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 >= '2059-12-31 00:00:00' and ServiceDate <= '2060-01-01 00:00:00' and ServiceSetupId in (95064, 95052, 95063) and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: ThreadPoolExecutor-0_2) - __SPLIT__ 2026-04-03 10:51:57,784 - 56188 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-03 10:51:57,784 - 56188 - 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 >= '2059-12-31 00:00:00' and ServiceDate <= '2060-01-01 00:00:00' and ServiceSetupId in (84456, 84457, 84504, 95249) and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: ThreadPoolExecutor-0_4) - __SPLIT__ 2026-04-03 10:51:57,786 - 56188 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-04-03 10:51:57,786 - 56188 - 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 >= '2059-12-31 00:00:00' and ServiceDate <= '2060-01-01 00:00:00' and ServiceSetupId in (11456, 11455) and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: ThreadPoolExecutor-0_1) - __SPLIT__ 2026-04-03 10:51:57,803 - 56188 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-03 10:51:57,803 - 56188 - 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 >= '2059-12-31 00:00:00' and ServiceDate <= '2060-01-01 00:00:00' and ServiceSetupId = 95227 and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: ThreadPoolExecutor-0_5) - __SPLIT__ 2026-04-03 10:51:57,805 - 56188 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-03 10:51:57,818 - 56188 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-03 10:51:57,818 - 56188 - 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 >= '2059-12-31 00:00:00' and ServiceDate <= '2060-01-01 00:00:00' and ServiceSetupId = 11469 and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: ThreadPoolExecutor-0_3) - __SPLIT__ 2026-04-03 10:51:57,834 - 56188 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-03 10:51:57,842 - 56188 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-03 10:51:57,873 - 56188 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-03 10:51:57,881 - 56188 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-03 10:51:57,941 - 56188 - src.utils.log - INFO - Generating work orders for setup: 11452 - __SPLIT__ 2026-04-03 10:51:57,944 - 56188 - src.utils.log - INFO - Unable to get work order table Error: "['EmployeeNo', 'CustomerPONumber'] not in index" - __SPLIT__ 2026-04-03 10:51:57,955 - 56188 - src.utils.log - INFO - Generating work orders for setup: 95052 - __SPLIT__ 2026-04-03 10:51:57,956 - 56188 - src.utils.log - INFO - Generating work orders for setup: 95063 - __SPLIT__ 2026-04-03 10:51:57,957 - 56188 - src.utils.log - INFO - Generating work orders for setup: 95064 - __SPLIT__ 2026-04-03 10:51:57,959 - 56188 - src.utils.log - INFO - Unable to get work order table Error: "['EmployeeNo', 'CustomerPONumber'] not in index" - __SPLIT__ 2026-04-03 10:51:57,986 - 56188 - src.utils.log - INFO - Generating work orders for setup: 11455 - __SPLIT__ 2026-04-03 10:51:57,987 - 56188 - src.utils.log - INFO - Generating work orders for setup: 11456 - __SPLIT__ 2026-04-03 10:51:57,989 - 56188 - src.utils.log - INFO - Unable to get work order table Error: "['EmployeeNo', 'CustomerPONumber'] not in index" - __SPLIT__ 2026-04-03 10:51:57,991 - 56188 - src.utils.log - INFO - Generating work orders for setup: 95249 - __SPLIT__ 2026-04-03 10:51:57,992 - 56188 - src.utils.log - INFO - Unable to get work order table Error: "['EmployeeNo', 'CustomerPONumber'] not in index" - __SPLIT__ 2026-04-03 10:51:57,993 - 56188 - src.utils.log - INFO - Generating work orders for setup: 11469 - __SPLIT__ 2026-04-03 10:51:57,996 - 56188 - src.utils.log - INFO - Unable to get work order table Error: "['EmployeeNo', 'CustomerPONumber'] not in index" - __SPLIT__ 2026-04-03 10:51:57,996 - 56188 - src.utils.log - INFO - Generating work orders for setup: 95227 - __SPLIT__ 2026-04-03 10:51:57,997 - 56188 - src.utils.log - INFO - Error processing schedule ID 14921: cannot access local variable 'sorted_service_dates' where it is not associated with a value - __SPLIT__ 2026-04-03 10:51:57,998 - 56188 - src.utils.log - INFO - Unable to get work order table Error: "['EmployeeNo', 'CustomerPONumber'] not in index" - __SPLIT__ 2026-04-03 10:51:58,001 - 56188 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-04-03 10:51:58,001 - 56188 - src.utils.log - INFO - Running deletes in PARALLEL… - __SPLIT__ 2026-04-03 10:51:58,001 - 56188 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (84229, 22663, 84239, 84240, 95249, 84247, 84504, 84508, 84636, 84383, 95007, 84513, 84515, 84273, 11444, 11452, 11455, 11456, 95685, 94923, 95052, 11469, 94801, 84435, 95063, 95064, 84444, 11873, 84456, 84457, 34285, 84212, 95098, 95227) ) (Thread: ThreadPoolExecutor-1_0) - __SPLIT__ 2026-04-03 10:51:58,001 - 56188 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (84229, 22663, 84239, 84240, 95249, 84247, 84504, 84508, 84636, 84383, 95007, 84513, 84515, 84273, 11444, 11452, 11455, 11456, 95685, 94923, 95052, 11469, 94801, 84435, 95063, 95064, 84444, 11873, 84456, 84457, 34285, 84212, 95098, 95227) ) (Thread: ThreadPoolExecutor-1_1) - __SPLIT__ 2026-04-03 10:51:58,002 - 56188 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (84229, 22663, 84239, 84240, 95249, 84247, 84504, 84508, 84636, 84383, 95007, 84513, 84515, 84273, 11444, 11452, 11455, 11456, 95685, 94923, 95052, 11469, 94801, 84435, 95063, 95064, 84444, 11873, 84456, 84457, 34285, 84212, 95098, 95227) ) (Thread: ThreadPoolExecutor-1_2) - __SPLIT__ 2026-04-03 10:51:58,002 - 56188 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (84229, 22663, 84239, 84240, 95249, 84247, 84504, 84508, 84636, 84383, 95007, 84513, 84515, 84273, 11444, 11452, 11455, 11456, 95685, 94923, 95052, 11469, 94801, 84435, 95063, 95064, 84444, 11873, 84456, 84457, 34285, 84212, 95098, 95227) ) (Thread: ThreadPoolExecutor-1_3) - __SPLIT__ 2026-04-03 10:51:58,003 - 56188 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (84229, 22663, 84239, 84240, 95249, 84247, 84504, 84508, 84636, 84383, 95007, 84513, 84515, 84273, 11444, 11452, 11455, 11456, 95685, 94923, 95052, 11469, 94801, 84435, 95063, 95064, 84444, 11873, 84456, 84457, 34285, 84212, 95098, 95227) ) (Thread: ThreadPoolExecutor-1_4) - __SPLIT__ 2026-04-03 10:51:58,003 - 56188 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (84229, 22663, 84239, 84240, 95249, 84247, 84504, 84508, 84636, 84383, 95007, 84513, 84515, 84273, 11444, 11452, 11455, 11456, 95685, 94923, 95052, 11469, 94801, 84435, 95063, 95064, 84444, 11873, 84456, 84457, 34285, 84212, 95098, 95227) ) (Thread: ThreadPoolExecutor-1_5) - __SPLIT__ 2026-04-03 10:51:58,004 - 56188 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (84229, 22663, 84239, 84240, 95249, 84247, 84504, 84508, 84636, 84383, 95007, 84513, 84515, 84273, 11444, 11452, 11455, 11456, 95685, 94923, 95052, 11469, 94801, 84435, 95063, 95064, 84444, 11873, 84456, 84457, 34285, 84212, 95098, 95227) ) (Thread: ThreadPoolExecutor-1_6) - __SPLIT__ 2026-04-03 10:51:58,042 - 56188 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-03 10:51:58,073 - 56188 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-03 10:51:58,082 - 56188 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-03 10:51:58,114 - 56188 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-03 10:51:58,155 - 56188 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-03 10:51:58,169 - 56188 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-03 10:51:58,260 - 56188 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-03 10:51:58,261 - 56188 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (84229, 22663, 84239, 84240, 95249, 84247, 84504, 84508, 84636, 84383, 95007, 84513, 84515, 84273, 11444, 11452, 11455, 11456, 95685, 94923, 95052, 11469, 94801, 84435, 95063, 95064, 84444, 11873, 84456, 84457, 34285, 84212, 95098, 95227) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-03 10:51:58,668 - 56188 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-03 10:51:58,669 - 56188 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 56188;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-03 10:51:58,694 - 56188 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-04-03 10:51:58,694 - 56188 - src.utils.log - INFO - Error in work order generation Error: cannot unpack non-iterable NoneType object - __SPLIT__ 2026-04-03 10:51:58,694 - 56188 - src.utils.log - INFO - Work order generation failed - Time took: 1.63 - __SPLIT__ 2026-04-03 10:51:58,694 - 56188 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'Completed', WorkOrderStatusDateTime = '2026-04-03 06:51:58.694', PublishStatusDateTime = '2026-04-03 06:51:58.694'WHERE CompanyId = 145 AND GenerateWorkOrderHistoryId = 56188;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-03 10:51:58,718 - 56188 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-04-06 09:38:58,743 - [11900] - src.utils.log - INFO - ParallelProcessing=False temp_invoice=[245324] user_id=44506 company_id=146 project_id=[11900] publish_all=False - __SPLIT__ 2026-04-06 09:39:00,663 - [11900] - src.utils.log - INFO - Invoice Published Successfully - __SPLIT__ 2026-04-06 09:39:01,340 - [11900] - src.utils.log - INFO - Sequential invoice publish in progress - __SPLIT__ 2026-04-06 09:39:02,002 - [11900] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-04-06 09:39:02,670 - [11900] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 09:39:03,484 - [11900] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-06 09:39:04,152 - [11900] - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-04-06 09:39:04,820 - [11900] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET PublishStatus = 'InProgress', InvoicePublishStartDateTime = '2026-04-06 05:39:04.820' WHERE CompanyId = 146 AND GenerateInvoiceHistoryId = 11900;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 09:39:05,500 - [11900] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-04-06 09:39:06,162 - [11900] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Billing.InvoiceAutoGeneration i WHERE TransactionAutoGenerationId = 245324;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 09:39:06,859 - [11900] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-06 09:39:07,524 - [11900] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Billing.TransactionAutoGeneration tag WHERE tag.TransactionAutoGenerationId = 245324;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 09:39:08,205 - [11900] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-06 09:39:08,867 - [11900] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 09:39:09,578 - [11900] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-04-06 09:39:10,322 - [11900] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-04-06 09:39:10,991 - [11900] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-04-06 09:39:11,652 - [11900] - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionId, ModifiedBy from Billing.[Transaction] t WHERE t.ModifiedBy = 12345678910 ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 09:39:12,517 - [11900] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-06 09:39:13,187 - [11900] - src.utils.log - INFO - πŸ“ Executing: UPDATE Billing.[Transaction] SET ModifiedBy = NULL WHERE ModifiedBy = 12345678910; ... (Thread: ThreadPoolExecutor-6_0) - __SPLIT__ 2026-04-06 09:39:14,229 - [11900] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-04-06 09:39:14,907 - [11900] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 146 AND EnitityNumberType in ('Invoice'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 09:39:15,605 - [11900] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-06 09:39:16,279 - [11900] - src.utils.log - INFO - 1 Invoice Generated : [57129] - __SPLIT__ 2026-04-06 09:39:16,951 - [11900] - src.utils.log - INFO - πŸ“ Executing: UPDATE Common.GenerateNumberConfig SET NextNumber = '57130' WHERE CompanyId = 146 AND EnitityNumberType in ('Invoice');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 09:39:17,644 - [11900] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-04-06 09:39:18,319 - [11900] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-06 09:39:18,990 - [11900] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 09:39:19,707 - [11900] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into Billing.Invoice - __SPLIT__ 2026-04-06 09:39:20,519 - [11900] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-04-06 09:39:21,195 - [11900] - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionId, InvoiceId FROM Billing.Invoice WHERE TransactionId = 803682;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 09:39:21,889 - [11900] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-06 09:39:22,570 - [11900] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Billing.InvoiceChargesAutoGeneration icag WHERE InvoiceAutoGenerationId = 245240;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 09:39:23,350 - [11900] - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-04-06 09:39:24,028 - [11900] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Billing.InvoiceAutoGenerationAppliedDiscount iagad WHERE InvoiceAutoGenerationId = 245240;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 09:39:24,740 - [11900] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-04-06 09:39:25,420 - [11900] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-06 09:39:26,094 - [11900] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceCharges: 3 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 09:39:26,821 - [11900] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into Billing.InvoiceCharges - __SPLIT__ 2026-04-06 09:39:27,645 - [11900] - src.utils.log - INFO - βœ… All 3 rows inserted successfully into Billing.InvoiceCharges in 1 batches - __SPLIT__ 2026-04-06 09:39:28,642 - [11900] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-06 09:39:29,308 - [11900] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.AccountDiscountSetup: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 09:39:30,005 - [11900] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.AccountDiscountSetup - __SPLIT__ 2026-04-06 09:39:30,747 - [11900] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.AccountDiscountSetup in 1 batches - __SPLIT__ 2026-04-06 09:39:31,410 - [11900] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-06 09:39:32,071 - [11900] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.DiscountApplied: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 09:39:32,777 - [11900] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.DiscountApplied - __SPLIT__ 2026-04-06 09:39:33,525 - [11900] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.DiscountApplied in 1 batches - __SPLIT__ 2026-04-06 09:39:34,185 - [11900] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: delete FROM Billing.InvoiceAutoGenerationAppliedDiscount WHERE InvoiceAutoGenerationId = 245240 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 09:39:34,869 - [11900] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-06 09:39:35,532 - [11900] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: delete FROM Billing.InvoiceChargesAutoGeneration WHERE InvoiceAutoGenerationId = 245240 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 09:39:36,236 - [11900] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-06 09:39:36,896 - [11900] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: delete FROM Billing.InvoiceAutoGeneration WHERE InvoiceAutoGenerationId = 245240 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 09:39:37,598 - [11900] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-06 09:39:38,263 - [11900] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: delete FROM Billing.TransactionAutoGeneration WHERE TransactionAutoGenerationId = 245324 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 09:39:38,955 - [11900] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-06 09:39:39,618 - [11900] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-04-06 05:39:04.820' WHERE CompanyId = 146 AND GenerateInvoiceHistoryId = 11900;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 09:39:40,305 - [11900] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-04-06 09:39:40,971 - [11900] - src.utils.log - INFO - Sequential invoice publish completed successfully - Time took: 38.97 - __SPLIT__ 2026-04-06 10:04:31,920 - 11901 - src.utils.log - INFO - ParallelProcessing=False GenerateInvoiceHistoryId=11901 - __SPLIT__ 2026-04-06 10:04:33,803 - 11901 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-04-06 10:04:34,469 - 11901 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 10:04:35,279 - 11901 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-06 10:04:35,942 - 11901 - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-04-06 10:04:36,600 - 11901 - src.utils.log - INFO - Sequential Invoice generation algo started for GenerateInvoiceHistoryId: 11901 - __SPLIT__ 2026-04-06 10:04:37,257 - 11901 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET Status = 'InProgress' WHERE GenerateInvoiceHistoryId = 11901;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 10:04:37,938 - 11901 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-04-06 10:04:38,589 - 11901 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateInvoiceHistory WHERE GenerateInvoiceHistoryId = 11901;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 10:04:39,326 - 11901 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-06 10:04:39,985 - 11901 - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceId as ServiceMasterId,ss.FrequencyScheduleId as setup_frequency_schedule_id, ssb.*, ss.IsBilling, ss.DepartmentMasterId, ss.AccountNumber, ss.CompanyId, ss.BillingLocationId, ss.ServiceLocationId, ss.TaxSysName, ss.TermId, t.NetDueIn, ss.TaxPercent, ss.PoNumber, ss.DisplayServiceAsSeparateLineItem, ss.SetupEndDate, ss.SetupStartDate from ServiceCore.ServiceSetup ss join ServiceCore.ServiceSetupBilling ssb on ss.ServiceSetupId = ssb.ServiceSetupId join Billing.PaymentTypeMaster ptm on ptm.PaymentTypeMasterId = ssb.PaymentTypeMasterId join Billing.Term t on ss.TermId = t.TermId join ServiceCore.ServiceSetupServices sss on ss.ServiceSetupId = sss.ServiceSetupId where ptm.PaymentType= 'Payment Plan' and ss.IsActive =1 and ss.CompanyId= 146 AND ss.IsDeleted =0 AND ss.Status <> 'Canceled' and ss.AccountNumber = '1793' and ss.ServiceSetupId = 95719;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 10:04:40,675 - 11901 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-04-06 10:04:41,337 - 11901 - src.utils.log - INFO - No filter selected - __SPLIT__ 2026-04-06 10:04:41,993 - 11901 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-04-06 10:04:42,649 - 11901 - 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 = 13961... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 10:04:43,343 - 11901 - src.utils.log - INFO - βœ… Fetched 60 rows - __SPLIT__ 2026-04-06 10:04:44,009 - 11901 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-04-06 10:04:44,678 - 11901 - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionAutoGenerationId FROM Billing.TransactionAutoGeneration WHERE ServiceSetupId = 95719 AND TransactionDate BETWEEN '2026-04-06 00:00:00' AND '2026-12-31 00:00:00' AND IsActive = 1 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 10:04:45,371 - 11901 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-06 10:04:46,034 - 11901 - src.utils.log - INFO - πŸ” Fetching data: SELECT InvoiceAutoGenerationId FROM Billing.InvoiceAutoGeneration WHERE TransactionAutoGenerationId = 245325 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 10:04:47,014 - 11901 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-06 10:04:47,679 - 11901 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM Billing.InvoiceChargesAutoGeneration WHERE InvoiceAutoGenerationId = 245241 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 10:04:48,392 - 11901 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-06 10:04:49,060 - 11901 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM Billing.InvoiceAutoGenerationAppliedDiscount WHERE InvoiceAutoGenerationId = 245241 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 10:04:49,755 - 11901 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-06 10:04:50,423 - 11901 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM Billing.InvoiceAutoGeneration WHERE InvoiceAutoGenerationId = 245241 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 10:04:51,116 - 11901 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-06 10:04:51,789 - 11901 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM Billing.TransactionAutoGeneration WHERE TransactionAutoGenerationId = 245325 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 10:04:52,493 - 11901 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-06 10:04:53,165 - 11901 - src.utils.log - INFO - πŸ” Fetching data: SELECT Inv.ServiceSetupId, MAX(Inv.InvoiceDate) AS InvoiceDate FROM Billing.Invoice Inv INNER JOIN Billing.[Transaction] T ON Inv.TransactionId = T.TransactionId WHERE Inv.InvoiceDate BETWEEN '2026-04-06 00:00:00' AND '2026-12-31 00:00:00' AND Inv.IsActive = 1 AND Inv.IsDelete = 0 AND T.IsActive = 1 AND T.IsDelete = 0 AND Inv.ServiceSetupId = 95719 GROUP BY Inv.ServiceSetupId;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 10:04:53,854 - 11901 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-06 10:04:54,538 - 11901 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-06 10:04:55,201 - 11901 - src.utils.log - INFO - πŸ“₯ Inserting into Billing.TransactionAutoGeneration: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 10:04:55,896 - 11901 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into Billing.TransactionAutoGeneration - __SPLIT__ 2026-04-06 10:04:56,638 - 11901 - src.utils.log - INFO - βœ… All 1 rows inserted successfully into Billing.TransactionAutoGeneration in 1 batches - __SPLIT__ 2026-04-06 10:04:57,306 - 11901 - src.utils.log - INFO - - __SPLIT__ 2026-04-06 10:04:57,970 - 11901 - src.utils.log - INFO - Total invoice generated: 1 - __SPLIT__ 2026-04-06 10:04:58,632 - 11901 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 1 TransactionAutoGenerationId, ServiceSetupId, TransactionDate as InvoiceDate From Billing.TransactionAutoGeneration WHERE CreatedDate = '2026-04-02 06:42:09.106' and ServiceSetupId = 95719 and GenerateWorkOrderHistoryId= 11901;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 10:04:59,324 - 11901 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-06 10:04:59,993 - 11901 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-06 10:05:00,948 - 11901 - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceAutoGeneration: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 10:05:01,633 - 11901 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into Billing.InvoiceAutoGeneration - __SPLIT__ 2026-04-06 10:05:02,379 - 11901 - src.utils.log - INFO - βœ… All 1 rows inserted successfully into Billing.InvoiceAutoGeneration in 1 batches - __SPLIT__ 2026-04-06 10:05:03,035 - 11901 - src.utils.log - INFO - πŸ” Fetching data: SELECT I.InvoiceAutoGenerationId, T.ServiceSetupId FROM Billing.InvoiceAutoGeneration I JOIN Billing.TransactionAutoGeneration T ON I.TransactionAutoGenerationId = T.TransactionAutoGenerationId where T.TransactionAutoGenerationId = 245326;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 10:05:03,726 - 11901 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-06 10:05:04,378 - 11901 - 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 = 95719 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 10:05:05,058 - 11901 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-04-06 10:05:05,739 - 11901 - src.utils.log - INFO - πŸ” Fetching data: SELECT fm.YearlyOccurrence, fs.FrequencyScheduleId From ServiceCore.FrequencySchedule fs join ServiceCore.FrequencyMaster fm on fs.FrequencyId = fm.FrequencyId where fs.FrequencyScheduleId = 14825;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 10:05:06,421 - 11901 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-06 10:05:07,080 - 11901 - src.utils.log - INFO - πŸ” Fetching data: SELECT fm.YearlyOccurrence, fs.FrequencyScheduleId From ServiceCore.FrequencySchedule fs join ServiceCore.FrequencyMaster fm on fs.FrequencyId = fm.FrequencyId where fs.FrequencyScheduleId = 13961;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 10:05:07,762 - 11901 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-06 10:05:08,424 - 11901 - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, DiscountSetupId,DiscountType,DiscountCode,DiscountAmount,DiscountDescription,DiscountName, DiscountPercent, IsDiscountPercent,AppliedDiscountAmt,ApplyOnPartPrice,ApplyOnLaborPrice from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE IsInitialSetupDiscount = 0 AND ssad.ServiceSetupId = 95719;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 10:05:09,105 - 11901 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-04-06 10:05:09,770 - 11901 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-06 10:05:10,433 - 11901 - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceAutoGenerationAppliedDiscount: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 10:05:11,118 - 11901 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.InvoiceAutoGenerationAppliedDiscount - __SPLIT__ 2026-04-06 10:05:11,949 - 11901 - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.InvoiceAutoGenerationAppliedDiscount in 1 batches - __SPLIT__ 2026-04-06 10:05:12,593 - 11901 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-06 10:05:13,249 - 11901 - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceChargesAutoGeneration: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 10:05:13,936 - 11901 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.InvoiceChargesAutoGeneration - __SPLIT__ 2026-04-06 10:05:14,990 - 11901 - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.InvoiceChargesAutoGeneration in 1 batches - __SPLIT__ 2026-04-06 10:05:15,649 - 11901 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET Status = 'Completed' WHERE GenerateInvoiceHistoryId = 11901;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 10:05:16,347 - 11901 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-04-06 10:05:17,017 - 11901 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET InvoiceStatusDateTime = '2026-04-06 06:05:17.017' WHERE GenerateInvoiceHistoryId = 11901;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 10:05:17,705 - 11901 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-04-06 10:05:18,370 - 11901 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-04-06 10:05:19,058 - 11901 - src.utils.log - INFO - Sequential Invoice Gen Complete Successfully ProjectId:11901 - Time took: 45.26 - __SPLIT__ 2026-04-06 10:05:28,038 - [11901] - src.utils.log - INFO - ParallelProcessing=False temp_invoice=[245326] user_id=44506 company_id=146 project_id=[11901] publish_all=False - __SPLIT__ 2026-04-06 10:05:28,987 - [11901] - src.utils.log - INFO - Invoice Published Successfully - __SPLIT__ 2026-04-06 10:05:29,660 - [11901] - src.utils.log - INFO - Sequential invoice publish in progress - __SPLIT__ 2026-04-06 10:05:30,323 - [11901] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-04-06 10:05:30,986 - [11901] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 10:05:31,833 - [11901] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-06 10:05:32,498 - [11901] - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-04-06 10:05:33,162 - [11901] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET PublishStatus = 'InProgress', InvoicePublishStartDateTime = '2026-04-06 06:05:33.162' WHERE CompanyId = 146 AND GenerateInvoiceHistoryId = 11901;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 10:05:33,855 - [11901] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-04-06 10:05:34,522 - [11901] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Billing.InvoiceAutoGeneration i WHERE TransactionAutoGenerationId = 245326;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 10:05:35,220 - [11901] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-06 10:05:35,888 - [11901] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Billing.TransactionAutoGeneration tag WHERE tag.TransactionAutoGenerationId = 245326;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 10:05:36,580 - [11901] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-06 10:05:37,248 - [11901] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 10:05:37,966 - [11901] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-04-06 10:05:38,730 - [11901] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-04-06 10:05:39,408 - [11901] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-04-06 10:05:40,079 - [11901] - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionId, ModifiedBy from Billing.[Transaction] t WHERE t.ModifiedBy = 12345678910 ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 10:05:40,842 - [11901] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-06 10:05:41,507 - [11901] - src.utils.log - INFO - πŸ“ Executing: UPDATE Billing.[Transaction] SET ModifiedBy = NULL WHERE ModifiedBy = 12345678910; ... (Thread: ThreadPoolExecutor-7_0) - __SPLIT__ 2026-04-06 10:05:42,253 - [11901] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-04-06 10:05:43,210 - [11901] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 146 AND EnitityNumberType in ('Invoice'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 10:05:43,936 - [11901] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-06 10:05:44,605 - [11901] - src.utils.log - INFO - 1 Invoice Generated : [57130] - __SPLIT__ 2026-04-06 10:05:45,278 - [11901] - src.utils.log - INFO - πŸ“ Executing: UPDATE Common.GenerateNumberConfig SET NextNumber = '57131' WHERE CompanyId = 146 AND EnitityNumberType in ('Invoice');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 10:05:45,977 - [11901] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-04-06 10:05:46,646 - [11901] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-06 10:05:47,319 - [11901] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 10:05:48,041 - [11901] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into Billing.Invoice - __SPLIT__ 2026-04-06 10:05:48,799 - [11901] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-04-06 10:05:49,470 - [11901] - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionId, InvoiceId FROM Billing.Invoice WHERE TransactionId = 803685;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 10:05:50,166 - [11901] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-06 10:05:50,835 - [11901] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Billing.InvoiceChargesAutoGeneration icag WHERE InvoiceAutoGenerationId = 245242;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 10:05:51,540 - [11901] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-04-06 10:05:52,201 - [11901] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Billing.InvoiceAutoGenerationAppliedDiscount iagad WHERE InvoiceAutoGenerationId = 245242;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 10:05:52,893 - [11901] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-04-06 10:05:53,572 - [11901] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-06 10:05:54,237 - [11901] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceCharges: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 10:05:54,957 - [11901] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.InvoiceCharges - __SPLIT__ 2026-04-06 10:05:55,727 - [11901] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.InvoiceCharges in 1 batches - __SPLIT__ 2026-04-06 10:05:56,394 - [11901] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-06 10:05:57,330 - [11901] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.AccountDiscountSetup: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 10:05:58,023 - [11901] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.AccountDiscountSetup - __SPLIT__ 2026-04-06 10:05:58,771 - [11901] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.AccountDiscountSetup in 1 batches - __SPLIT__ 2026-04-06 10:05:59,428 - [11901] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-06 10:06:00,078 - [11901] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.DiscountApplied: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 10:06:00,765 - [11901] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.DiscountApplied - __SPLIT__ 2026-04-06 10:06:01,497 - [11901] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.DiscountApplied in 1 batches - __SPLIT__ 2026-04-06 10:06:02,154 - [11901] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: delete FROM Billing.InvoiceAutoGenerationAppliedDiscount WHERE InvoiceAutoGenerationId = 245242 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 10:06:02,829 - [11901] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-06 10:06:03,475 - [11901] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: delete FROM Billing.InvoiceChargesAutoGeneration WHERE InvoiceAutoGenerationId = 245242 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 10:06:04,179 - [11901] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-06 10:06:04,825 - [11901] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: delete FROM Billing.InvoiceAutoGeneration WHERE InvoiceAutoGenerationId = 245242 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 10:06:05,516 - [11901] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-06 10:06:06,225 - [11901] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: delete FROM Billing.TransactionAutoGeneration WHERE TransactionAutoGenerationId = 245326 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 10:06:06,911 - [11901] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-06 10:06:07,562 - [11901] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-04-06 06:05:33.162' WHERE CompanyId = 146 AND GenerateInvoiceHistoryId = 11901;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 10:06:08,235 - [11901] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-04-06 10:06:08,884 - [11901] - src.utils.log - INFO - Sequential invoice publish completed successfully - Time took: 38.56 - __SPLIT__ 2026-04-06 12:07:50,318 - 11902 - src.utils.log - INFO - ParallelProcessing=False GenerateInvoiceHistoryId=11902 - __SPLIT__ 2026-04-06 12:07:52,223 - 11902 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-04-06 12:07:52,894 - 11902 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 12:07:53,747 - 11902 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-06 12:07:54,410 - 11902 - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-04-06 12:07:55,072 - 11902 - src.utils.log - INFO - Sequential Invoice generation algo started for GenerateInvoiceHistoryId: 11902 - __SPLIT__ 2026-04-06 12:07:55,739 - 11902 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET Status = 'InProgress' WHERE GenerateInvoiceHistoryId = 11902;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 12:07:56,436 - 11902 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-04-06 12:07:57,099 - 11902 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateInvoiceHistory WHERE GenerateInvoiceHistoryId = 11902;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 12:07:57,790 - 11902 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-06 12:07:58,456 - 11902 - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceId as ServiceMasterId,ss.FrequencyScheduleId as setup_frequency_schedule_id, ssb.*, ss.IsBilling, ss.DepartmentMasterId, ss.AccountNumber, ss.CompanyId, ss.BillingLocationId, ss.ServiceLocationId, ss.TaxSysName, ss.TermId, t.NetDueIn, ss.TaxPercent, ss.PoNumber, ss.DisplayServiceAsSeparateLineItem, ss.SetupEndDate, ss.SetupStartDate from ServiceCore.ServiceSetup ss join ServiceCore.ServiceSetupBilling ssb on ss.ServiceSetupId = ssb.ServiceSetupId join Billing.PaymentTypeMaster ptm on ptm.PaymentTypeMasterId = ssb.PaymentTypeMasterId join Billing.Term t on ss.TermId = t.TermId join ServiceCore.ServiceSetupServices sss on ss.ServiceSetupId = sss.ServiceSetupId where ptm.PaymentType= 'Payment Plan' and ss.IsActive =1 and ss.CompanyId= 146 AND ss.IsDeleted =0 AND ss.Status <> 'Canceled' and ss.AccountNumber = '1793' and ss.ServiceSetupId = 95719;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 12:07:59,150 - 11902 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-04-06 12:07:59,819 - 11902 - src.utils.log - INFO - No filter selected - __SPLIT__ 2026-04-06 12:08:00,485 - 11902 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-04-06 12:08:01,152 - 11902 - 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 = 13961... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 12:08:01,852 - 11902 - src.utils.log - INFO - βœ… Fetched 60 rows - __SPLIT__ 2026-04-06 12:08:02,520 - 11902 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-04-06 12:08:03,187 - 11902 - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionAutoGenerationId FROM Billing.TransactionAutoGeneration WHERE ServiceSetupId = 95719 AND TransactionDate BETWEEN '2026-04-06 00:00:00' AND '2027-12-31 00:00:00' AND IsActive = 1 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 12:08:03,888 - 11902 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-06 12:08:04,571 - 11902 - src.utils.log - INFO - πŸ” Fetching data: SELECT Inv.ServiceSetupId, MAX(Inv.InvoiceDate) AS InvoiceDate FROM Billing.Invoice Inv INNER JOIN Billing.[Transaction] T ON Inv.TransactionId = T.TransactionId WHERE Inv.InvoiceDate BETWEEN '2026-04-06 00:00:00' AND '2027-12-31 00:00:00' AND Inv.IsActive = 1 AND Inv.IsDelete = 0 AND T.IsActive = 1 AND T.IsDelete = 0 AND Inv.ServiceSetupId = 95719 GROUP BY Inv.ServiceSetupId;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 12:08:05,586 - 11902 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-06 12:08:06,271 - 11902 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-06 12:08:06,936 - 11902 - src.utils.log - INFO - πŸ“₯ Inserting into Billing.TransactionAutoGeneration: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 12:08:07,666 - 11902 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.TransactionAutoGeneration - __SPLIT__ 2026-04-06 12:08:08,451 - 11902 - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.TransactionAutoGeneration in 1 batches - __SPLIT__ 2026-04-06 12:08:09,114 - 11902 - src.utils.log - INFO - - __SPLIT__ 2026-04-06 12:08:09,786 - 11902 - src.utils.log - INFO - Total invoice generated: 2 - __SPLIT__ 2026-04-06 12:08:10,457 - 11902 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 2 TransactionAutoGenerationId, ServiceSetupId, TransactionDate as InvoiceDate From Billing.TransactionAutoGeneration WHERE CreatedDate = '2026-04-02 06:42:09.215' and ServiceSetupId = 95719 and GenerateWorkOrderHistoryId= 11902;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 12:08:11,159 - 11902 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-04-06 12:08:11,837 - 11902 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-06 12:08:12,516 - 11902 - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceAutoGeneration: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 12:08:13,235 - 11902 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.InvoiceAutoGeneration - __SPLIT__ 2026-04-06 12:08:14,015 - 11902 - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.InvoiceAutoGeneration in 1 batches - __SPLIT__ 2026-04-06 12:08:14,694 - 11902 - src.utils.log - INFO - πŸ” Fetching data: SELECT I.InvoiceAutoGenerationId, T.ServiceSetupId FROM Billing.InvoiceAutoGeneration I JOIN Billing.TransactionAutoGeneration T ON I.TransactionAutoGenerationId = T.TransactionAutoGenerationId where T.TransactionAutoGenerationId in (245328, 245327);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 12:08:15,418 - 11902 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-04-06 12:08:16,085 - 11902 - 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 = 95719 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 12:08:16,775 - 11902 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-04-06 12:08:17,458 - 11902 - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, DiscountSetupId,DiscountType,DiscountCode,DiscountAmount,DiscountDescription,DiscountName, DiscountPercent, IsDiscountPercent,AppliedDiscountAmt,ApplyOnPartPrice,ApplyOnLaborPrice from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE IsInitialSetupDiscount = 0 AND ssad.ServiceSetupId = 95719;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 12:08:18,161 - 11902 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-04-06 12:08:18,834 - 11902 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-06 12:08:19,803 - 11902 - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceAutoGenerationAppliedDiscount: 4 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 12:08:20,531 - 11902 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 4) into Billing.InvoiceAutoGenerationAppliedDiscount - __SPLIT__ 2026-04-06 12:08:21,307 - 11902 - src.utils.log - INFO - βœ… All 4 rows inserted successfully into Billing.InvoiceAutoGenerationAppliedDiscount in 1 batches - __SPLIT__ 2026-04-06 12:08:21,990 - 11902 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-06 12:08:22,672 - 11902 - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceChargesAutoGeneration: 4 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 12:08:23,395 - 11902 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 4) into Billing.InvoiceChargesAutoGeneration - __SPLIT__ 2026-04-06 12:08:24,178 - 11902 - src.utils.log - INFO - βœ… All 4 rows inserted successfully into Billing.InvoiceChargesAutoGeneration in 1 batches - __SPLIT__ 2026-04-06 12:08:24,858 - 11902 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET Status = 'Completed' WHERE GenerateInvoiceHistoryId = 11902;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 12:08:25,557 - 11902 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-04-06 12:08:26,231 - 11902 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET InvoiceStatusDateTime = '2026-04-06 08:08:26.231' WHERE GenerateInvoiceHistoryId = 11902;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 12:08:26,938 - 11902 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-04-06 12:08:27,613 - 11902 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-04-06 12:08:28,287 - 11902 - src.utils.log - INFO - Sequential Invoice Gen Complete Successfully ProjectId:11902 - Time took: 36.07 - __SPLIT__ 2026-04-06 12:14:15,606 - [11902] - src.utils.log - INFO - ParallelProcessing=False temp_invoice=[245327] user_id=44506 company_id=146 project_id=[11902] publish_all=False - __SPLIT__ 2026-04-06 12:14:16,571 - [11902] - src.utils.log - INFO - Invoice Published Successfully - __SPLIT__ 2026-04-06 12:14:17,239 - [11902] - src.utils.log - INFO - Sequential invoice publish in progress - __SPLIT__ 2026-04-06 12:14:17,917 - [11902] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-04-06 12:14:18,590 - [11902] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 12:14:19,442 - [11902] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-06 12:14:20,111 - [11902] - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-04-06 12:14:20,780 - [11902] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET PublishStatus = 'InProgress', InvoicePublishStartDateTime = '2026-04-06 08:14:20.780' WHERE CompanyId = 146 AND GenerateInvoiceHistoryId = 11902;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 12:14:21,478 - [11902] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-04-06 12:14:22,152 - [11902] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Billing.InvoiceAutoGeneration i WHERE TransactionAutoGenerationId = 245327;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 12:14:22,856 - [11902] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-06 12:14:23,527 - [11902] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Billing.TransactionAutoGeneration tag WHERE tag.TransactionAutoGenerationId = 245327;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 12:14:24,231 - [11902] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-06 12:14:24,908 - [11902] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 12:14:25,633 - [11902] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-04-06 12:14:26,395 - [11902] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-04-06 12:14:27,078 - [11902] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-04-06 12:14:27,744 - [11902] - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionId, ModifiedBy from Billing.[Transaction] t WHERE t.ModifiedBy = 12345678910 ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 12:14:28,512 - [11902] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-06 12:14:29,187 - [11902] - src.utils.log - INFO - πŸ“ Executing: UPDATE Billing.[Transaction] SET ModifiedBy = NULL WHERE ModifiedBy = 12345678910; ... (Thread: ThreadPoolExecutor-8_0) - __SPLIT__ 2026-04-06 12:14:29,938 - [11902] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-04-06 12:14:30,899 - [11902] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 146 AND EnitityNumberType in ('Invoice'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 12:14:31,592 - [11902] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-06 12:14:32,266 - [11902] - src.utils.log - INFO - 1 Invoice Generated : [57132] - __SPLIT__ 2026-04-06 12:14:32,935 - [11902] - src.utils.log - INFO - πŸ“ Executing: UPDATE Common.GenerateNumberConfig SET NextNumber = '57133' WHERE CompanyId = 146 AND EnitityNumberType in ('Invoice');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 12:14:33,627 - [11902] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-04-06 12:14:34,302 - [11902] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-06 12:14:34,967 - [11902] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 12:14:35,685 - [11902] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into Billing.Invoice - __SPLIT__ 2026-04-06 12:14:36,443 - [11902] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-04-06 12:14:37,111 - [11902] - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionId, InvoiceId FROM Billing.Invoice WHERE TransactionId = 803698;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 12:14:37,800 - [11902] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-06 12:14:38,464 - [11902] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Billing.InvoiceChargesAutoGeneration icag WHERE InvoiceAutoGenerationId = 245243;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 12:14:39,242 - [11902] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-04-06 12:14:39,906 - [11902] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Billing.InvoiceAutoGenerationAppliedDiscount iagad WHERE InvoiceAutoGenerationId = 245243;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 12:14:40,638 - [11902] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-04-06 12:14:41,315 - [11902] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-06 12:14:41,981 - [11902] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceCharges: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 12:14:42,702 - [11902] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.InvoiceCharges - __SPLIT__ 2026-04-06 12:14:43,467 - [11902] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.InvoiceCharges in 1 batches - __SPLIT__ 2026-04-06 12:14:44,140 - [11902] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-06 12:14:45,101 - [11902] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.AccountDiscountSetup: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 12:14:45,817 - [11902] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.AccountDiscountSetup - __SPLIT__ 2026-04-06 12:14:46,580 - [11902] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.AccountDiscountSetup in 1 batches - __SPLIT__ 2026-04-06 12:14:47,246 - [11902] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-06 12:14:47,916 - [11902] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.DiscountApplied: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 12:14:48,623 - [11902] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.DiscountApplied - __SPLIT__ 2026-04-06 12:14:49,373 - [11902] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.DiscountApplied in 1 batches - __SPLIT__ 2026-04-06 12:14:50,048 - [11902] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: delete FROM Billing.InvoiceAutoGenerationAppliedDiscount WHERE InvoiceAutoGenerationId = 245243 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 12:14:50,744 - [11902] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-06 12:14:51,411 - [11902] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: delete FROM Billing.InvoiceChargesAutoGeneration WHERE InvoiceAutoGenerationId = 245243 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 12:14:52,144 - [11902] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-06 12:14:52,806 - [11902] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: delete FROM Billing.InvoiceAutoGeneration WHERE InvoiceAutoGenerationId = 245243 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 12:14:53,508 - [11902] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-06 12:14:54,173 - [11902] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: delete FROM Billing.TransactionAutoGeneration WHERE TransactionAutoGenerationId = 245327 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 12:14:54,865 - [11902] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-06 12:14:55,530 - [11902] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-04-06 08:14:20.780' WHERE CompanyId = 146 AND GenerateInvoiceHistoryId = 11902;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 12:14:56,223 - [11902] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-04-06 12:14:56,893 - [11902] - src.utils.log - INFO - Sequential invoice publish completed successfully - Time took: 38.98 - __SPLIT__ 2026-04-06 12:57:25,171 - 56190 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=56190 - __SPLIT__ 2026-04-06 12:57:26,122 - 56190 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 56190 - __SPLIT__ 2026-04-06 12:57:26,777 - 56190 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-04-06 12:57:27,432 - 56190 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 12:57:28,260 - 56190 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-06 12:57:28,908 - 56190 - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-04-06 12:57:29,551 - 56190 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 56190;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 12:57:30,230 - 56190 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-04-06 12:57:30,880 - 56190 - 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 = 56190), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 56190), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 56190 AND ss.FrequencyScheduleId IS NOT NULL AND ss.IsActive = 1 AND ss.IsDeleted = 0 AND ss.Status <> 'Canceled';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 12:57:31,604 - 56190 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-06 12:57:32,260 - 56190 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 56190;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 12:57:32,943 - 56190 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-06 12:57:33,595 - 56190 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-04-06 12:57:34,241 - 56190 - src.utils.log - INFO - πŸ” Fetching data: SELECT fsd.IntervalDays, fs.CreatedDate ,f.FrequencyId , fs.FrequencyScheduleId, f.[SysName], f.FrequencyValue, f.YearlyOccurrence , fs.ScheduleFormat,fsd.Days, fsd.Weeks, fsd.Months,fsc.[Month] as sch_months, fsd.StartMonth , fsd.DateDay,fsd.DateMonth FROM [ServiceCore].[FrequencyMaster] f inner join [ServiceCore].[FrequencySchedule] fs on fs.FrequencyId = f.FrequencyId left join ServiceCore.FrequencyScheduleCycle fsc on fsc.FrequencyScheduleId = fs.FrequencyScheduleId left join [ServiceCore].[FrequencyScheduleDetail] fsd on fsd.FrequencyScheduleId = fs.FrequencyScheduleId WHERE fsd.FrequencyScheduleId = 14825... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 12:57:34,922 - 56190 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-06 12:57:35,569 - 56190 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-04-06 12:57:36,227 - 56190 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-04-06 12:57:36,874 - 56190 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 95723;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 12:57:37,557 - 56190 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-06 12:57:38,203 - 56190 - 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-04-06 00:00:00' and ServiceDate <= '2026-12-31 00:00:00' and ServiceSetupId = 95723 and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 12:57:38,889 - 56190 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-06 12:57:39,923 - 56190 - src.utils.log - INFO - Generating work orders for setup: 95723 - __SPLIT__ 2026-04-06 12:57:40,668 - 56190 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-04-06 12:57:41,343 - 56190 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=146 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 12:57:42,036 - 56190 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-06 12:57:42,701 - 56190 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-04-06 12:57:43,368 - 56190 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-04-06 12:57:44,042 - 56190 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 95723 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 12:57:44,758 - 56190 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-06 12:57:45,420 - 56190 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 95723 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 12:57:46,131 - 56190 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-06 12:57:46,798 - 56190 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 95723 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 12:57:47,538 - 56190 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-06 12:57:48,202 - 56190 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 95723 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 12:57:48,955 - 56190 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-06 12:57:49,626 - 56190 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 95723 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 12:57:50,358 - 56190 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-06 12:57:51,026 - 56190 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 95723 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 12:57:51,807 - 56190 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-06 12:57:52,474 - 56190 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 95723 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 12:57:53,218 - 56190 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-06 12:57:54,188 - 56190 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 95723 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 12:57:55,006 - 56190 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-06 12:57:55,687 - 56190 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-06 12:57:56,369 - 56190 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 9 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 12:57:57,133 - 56190 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 9) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-04-06 12:57:58,066 - 56190 - src.utils.log - INFO - βœ… All 9 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-04-06 12:57:58,744 - 56190 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 9 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-04-02 12:12:09.074' and ServiceSetupId = 95723... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 12:57:59,490 - 56190 - src.utils.log - INFO - βœ… Fetched 9 rows - __SPLIT__ 2026-04-06 12:58:00,193 - 56190 - src.utils.log - INFO - Id's of work order inserted to DB: [507570 507571 507572 507573 507574 507575 507576 507577 507578] - __SPLIT__ 2026-04-06 12:58:00,869 - 56190 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 95723;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 12:58:01,578 - 56190 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-06 12:58:02,253 - 56190 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-04-06 12:58:02,931 - 56190 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId = 95723... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 12:58:03,626 - 56190 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-06 12:58:04,297 - 56190 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId = 95723... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 12:58:05,002 - 56190 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-06 12:58:05,686 - 56190 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId = 95723... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 12:58:06,391 - 56190 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-04-06 12:58:07,068 - 56190 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId = 95723... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 12:58:07,777 - 56190 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-06 12:58:08,736 - 56190 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId = 95723... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 12:58:09,431 - 56190 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-06 12:58:10,096 - 56190 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId = 95723;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 12:58:10,787 - 56190 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-06 12:58:11,501 - 56190 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId = 95723;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 12:58:12,184 - 56190 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-06 12:58:12,843 - 56190 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId = 95723;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 12:58:13,730 - 56190 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-06 12:58:14,398 - 56190 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId = 95723;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 12:58:15,094 - 56190 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-06 12:58:15,771 - 56190 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-04-06 12:58:16,437 - 56190 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-04-06 12:58:17,109 - 56190 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-04-06 12:58:17,788 - 56190 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.CommunicationPreferencesServiceReportNotification: - __SPLIT__ 2026-04-06 12:58:18,444 - 56190 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-04-06 12:58:19,108 - 56190 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SetupAutoGenerationSourceMapping: - __SPLIT__ 2026-04-06 12:58:19,763 - 56190 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-04-06 12:58:20,431 - 56190 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationAppliedDiscount: - __SPLIT__ 2026-04-06 12:58:21,088 - 56190 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-04-06 12:58:21,751 - 56190 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SubWorkOrderAutoGeneration: - __SPLIT__ 2026-04-06 12:58:22,697 - 56190 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-04-06 12:58:23,355 - 56190 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: - __SPLIT__ 2026-04-06 12:58:24,013 - 56190 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-04-06 12:58:24,663 - 56190 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: - __SPLIT__ 2026-04-06 12:58:25,325 - 56190 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-04-06 12:58:25,983 - 56190 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-06 12:58:26,635 - 56190 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (507570, 507571, 507572, 507573, 507574, 507575, 507576, 507577, 507578) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 12:58:27,326 - 56190 - src.utils.log - INFO - βœ… Fetched 9 rows - __SPLIT__ 2026-04-06 12:58:27,990 - 56190 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationCrews: 9 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 12:58:28,712 - 56190 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 9) into ServiceCore.WorkOrderAutoGenerationCrews - __SPLIT__ 2026-04-06 12:58:29,497 - 56190 - src.utils.log - INFO - βœ… All 9 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationCrews in 1 batches - __SPLIT__ 2026-04-06 12:58:30,152 - 56190 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-04-06 12:58:30,805 - 56190 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-06 12:58:31,461 - 56190 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 12:58:32,171 - 56190 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-04-06 12:58:32,922 - 56190 - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-04-06 12:58:33,573 - 56190 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-04-06 12:58:34,230 - 56190 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-06 12:58:34,893 - 56190 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 8 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 12:58:35,581 - 56190 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 8) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-04-06 12:58:36,638 - 56190 - src.utils.log - INFO - βœ… All 8 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-04-06 12:58:37,298 - 56190 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-04-06 12:58:37,952 - 56190 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 56190;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 12:58:38,630 - 56190 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-04-06 12:58:39,328 - 56190 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-04-06 12:58:39,985 - 56190 - src.utils.log - INFO - Time took to perform operation: 72.55 - __SPLIT__ 2026-04-06 12:58:40,640 - 56190 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 56190;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 12:58:41,324 - 56190 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-04-06 12:58:41,975 - 56190 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET WorkOrderStatusDateTime = '2026-04-06 08:58:41.975' WHERE GenerateWorkOrderHistoryId = 56190;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 12:58:42,654 - 56190 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-04-06 13:00:52,636 - [56190] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[507578] user_id=44506 company_id=146 project_id=[56190] publish_all=False - __SPLIT__ 2026-04-06 13:00:53,616 - [56190] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[507578] user_id=44506 company_id=146 project_id=[56190] publish_all=False - __SPLIT__ 2026-04-06 13:00:54,291 - [56190] - src.utils.log - INFO - Sequential Work order publish in progress for GenerateWorkOrderHistoryId: [56190] - __SPLIT__ 2026-04-06 13:00:54,965 - [56190] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-04-06 13:00:55,634 - [56190] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 13:00:56,478 - [56190] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-06 13:00:57,160 - [56190] - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-04-06 13:00:57,834 - [56190] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'InProgress' WHERE CompanyId = 146 AND GenerateWorkOrderHistoryId = 56190;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 13:00:58,536 - [56190] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-04-06 13:00:59,207 - [56190] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId = 507578... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 13:00:59,908 - [56190] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-06 13:01:00,577 - [56190] - src.utils.log - INFO - Inside get_work_order_table - __SPLIT__ 2026-04-06 13:01:01,258 - [56190] - src.utils.log - INFO - πŸ” Fetching data: SELECT DISTINCT sss.ServiceSetupId, dm.DepartmentMasterId, bm.BranchMasterId FROM Common.DepartmentMaster dm JOIN Common.DivisionMaster d2 ON dm.DivisionMasterId = d2.DivisionMasterId JOIN Common.BranchMaster bm ON d2.BranchMasterId = bm.BranchMasterId JOIN ServiceCore.ServiceCategoryMaster c ON c.DepartmentId = dm.DepartmentMasterId JOIN ServiceCore.ServiceMaster sm ON c.CategoryId = sm.CategoryId JOIN ServiceCore.ServiceSetupServices sss ON sss.ServiceId = sm.ServiceMasterId WHERE dm.CompanyId = 146 AND d2.CompanyId = bm.CompanyId AND sss.ServiceSetupId = 95723 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 13:01:01,969 - [56190] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-06 13:01:02,642 - [56190] - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceSetupId, dm.DepartmentMasterId, bm.BranchMasterId FROM Common.DepartmentMaster dm JOIN Common.DivisionMaster d2 ON dm.DivisionMasterId = d2.DivisionMasterId JOIN Common.BranchMaster bm ON d2.BranchMasterId = bm.BranchMasterId JOIN ServiceCore.SoldServiceNonStandard x on dm.DepartmentMasterId = x.DepartmentId JOIN ServiceCore.ServiceSetupServices sss ON sss.NonStdSoldServiceId = x.SoldServiceNonStandardId WHERE dm.CompanyId = 146 AND d2.CompanyId = bm.CompanyId AND sss.ServiceSetupId = 95723 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 13:01:03,354 - [56190] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-06 13:01:04,031 - [56190] - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceSetupId, dm.DepartmentMasterId, bm.BranchMasterId FROM Common.DepartmentMaster dm Inner JOIN Common.DivisionMaster d2 ON dm.DivisionMasterId = d2.DivisionMasterId Inner JOIN Common.BranchMaster bm ON d2.BranchMasterId = bm.BranchMasterId Inner JOIN [ServiceCore].[ServiceCategoryMaster] scm ON dm.DepartmentMasterId = scm.DepartmentId Inner JOIN ServiceCore.ServiceMaster sm ON scm.CategoryId = sm.CategoryId Inner JOIN ServiceCore.SoldServiceStandard x on x.ServiceId = sm.ServiceMasterId Inner JOIN ServiceCore.ServiceSetupServices sss ON sss.StdSoldServiceId = x.SoldServiceStandardId WHERE dm.CompanyId = 146 AND d2.CompanyId = bm.CompanyId AND sss.ServiceSetupId = 95723 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 13:01:04,742 - [56190] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-06 13:01:05,424 - [56190] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder,BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 146;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 13:01:06,129 - [56190] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-06 13:01:06,806 - [56190] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 146 AND EnitityNumberType in ('WorkOrder','Invoice'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 13:01:07,827 - [56190] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-04-06 13:01:08,489 - [56190] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder, BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 146; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 13:01:09,185 - [56190] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-06 13:01:09,858 - [56190] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 1 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 146 AND EnitityNumberType = 'WorkOrder'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 13:01:10,558 - [56190] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-06 13:01:11,229 - [56190] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 1 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 146 AND EnitityNumberType = 'Invoice'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 13:01:11,926 - [56190] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-06 13:01:12,600 - [56190] - 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 = 95723... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 13:01:13,301 - [56190] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-06 13:01:13,981 - [56190] - src.utils.log - INFO - πŸ” Fetching data: SELECT x.CompanyId FROM CRM.CompanyMaster x WHERE CompanyKey = 'Fortive';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 13:01:14,676 - [56190] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-06 13:01:15,346 - [56190] - src.utils.log - INFO - πŸ” Fetching data: SELECT CollectionStatus,IsHold,AccountNo FROM CRM.Account a WHERE a.AccountNo = '1802' and a.CompanyId = 134;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 13:01:16,046 - [56190] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-06 13:01:16,719 - [56190] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderNo FROM ServiceCore.WorkOrder WHERE WorkOrderNo = '53615' AND CompanyId = 146 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 13:01:17,441 - [56190] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-06 13:01:18,117 - [56190] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrder (skip triggers): 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 13:01:18,866 - [56190] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrder (triggers skipped) - __SPLIT__ 2026-04-06 13:01:19,668 - [56190] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrder in 1 batches (triggers skipped) - __SPLIT__ 2026-04-06 13:01:20,353 - [56190] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-04-06 13:01:21,027 - [56190] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkorderId, WorkOrderNo FROM ServiceCore.WorkOrder wo WHERE wo.WorkOrderNo = '53615' AND wo.AccountNumber = '1802' AND wo.CompanyId = 146 ... (Thread: ThreadPoolExecutor-2_0) - __SPLIT__ 2026-04-06 13:01:22,017 - [56190] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-06 13:01:22,680 - [56190] - src.utils.log - INFO - Sequential fetching temp table records - __SPLIT__ 2026-04-06 13:01:23,338 - [56190] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationServices woag WHERE woag.WorkOrderAutoGenerationId = 507578... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 13:01:24,043 - [56190] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-06 13:01:24,708 - [56190] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SubWorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId = 507578... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 13:01:25,701 - [56190] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-06 13:01:26,356 - [56190] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationCrews woag WHERE woag.WorkOrderAutoGenerationId = 507578... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 13:01:27,056 - [56190] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-06 13:01:27,717 - [56190] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationSalesPersonCommission woag WHERE woag.WorkOrderAutoGenerationId = 507578... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 13:01:28,407 - [56190] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-06 13:01:29,067 - [56190] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupAutoGenerationSourceMapping woag WHERE woag.WorkOrderAutoGenerationId = 507578... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 13:01:29,760 - [56190] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-06 13:01:30,418 - [56190] - 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 = 507578... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 13:01:31,115 - [56190] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-06 13:01:31,778 - [56190] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from CRM.LeadNote woag WHERE woag.RefId = 507578 and woag.RefType = 'TempWorkorder';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 13:01:32,468 - [56190] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-06 13:01:33,120 - [56190] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment woagca WHERE woagca.WorkOrderAutoGenerationId = 507578;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 13:01:33,815 - [56190] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-06 13:01:34,466 - [56190] - src.utils.log - INFO - Updating temp tables - __SPLIT__ 2026-04-06 13:01:35,137 - [56190] - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyKey FROM Common.CompanyMaster cm WHERE CompanyId = 146;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 13:01:36,105 - [56190] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-06 13:01:36,762 - [56190] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 146 AND EnitityNumberType in ('SubWorkOrder'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 13:01:37,447 - [56190] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-06 13:01:38,112 - [56190] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-06 13:01:38,770 - [56190] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishHistory: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 13:01:39,488 - [56190] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderAutoGenerationPublishHistory - __SPLIT__ 2026-04-06 13:01:40,251 - [56190] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishHistory in 1 batches - __SPLIT__ 2026-04-06 13:01:40,908 - [56190] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationPublishHistoryId, WorkOrderNo, ServiceSetupId FROM ServiceCore.WorkOrderAutoGenerationPublishHistory WHERE ServiceSetupId = 95723 AND WorkOrderNo = '8284307' AND GenerateWorkOrderHistoryId = 56190; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 13:01:41,627 - [56190] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-06 13:01:42,288 - [56190] - src.utils.log - INFO - Sequential Insertion in work order tables begin - __SPLIT__ 2026-04-06 13:01:42,941 - [56190] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-06 13:01:43,594 - [56190] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderServices: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 13:01:44,292 - [56190] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderServices - __SPLIT__ 2026-04-06 13:01:45,059 - [56190] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderServices in 1 batches - __SPLIT__ 2026-04-06 13:01:45,703 - [56190] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SubWorkOrder: - __SPLIT__ 2026-04-06 13:01:46,353 - [56190] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderAppliedDiscount: - __SPLIT__ 2026-04-06 13:01:47,004 - [56190] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderSalesPersonCommission: - __SPLIT__ 2026-04-06 13:01:47,659 - [56190] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderCommissionAdjustment: - __SPLIT__ 2026-04-06 13:01:48,309 - [56190] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-06 13:01:48,954 - [56190] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderCrew: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 13:01:49,992 - [56190] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderCrew - __SPLIT__ 2026-04-06 13:01:50,771 - [56190] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderCrew in 1 batches - __SPLIT__ 2026-04-06 13:01:51,446 - [56190] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkorderSourceMapping: - __SPLIT__ 2026-04-06 13:01:52,124 - [56190] - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-04-06 13:01:52,832 - [56190] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-06 13:01:53,512 - [56190] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishServices: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 13:01:54,239 - [56190] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderAutoGenerationPublishServices - __SPLIT__ 2026-04-06 13:01:55,010 - [56190] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishServices in 1 batches - __SPLIT__ 2026-04-06 13:01:55,689 - [56190] - 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 = 95723... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 13:01:56,389 - [56190] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-06 13:01:57,074 - [56190] - src.utils.log - INFO - Size of Transaction: 1 - __SPLIT__ 2026-04-06 13:01:57,747 - [56190] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 13:01:58,484 - [56190] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-04-06 13:01:59,261 - [56190] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-04-06 13:01:59,949 - [56190] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-04-06 13:02:00,622 - [56190] - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionId, ModifiedBy, TransactionDate as InvoiceDate from Billing.[Transaction] t WHERE t.ModifiedBy = 12345678910 and t.CompanyId = 146 AND t.TransactionType ='Invoice' AND t.CreatedDate = '2026-04-06 09:01:57.070';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 13:02:01,456 - [56190] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-06 13:02:02,138 - [56190] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 95723;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 13:02:02,846 - [56190] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-06 13:02:03,525 - [56190] - src.utils.log - INFO - πŸ“ Executing: UPDATE Billing.[Transaction] SET ModifiedBy = NULL WHERE ModifiedBy = 12345678910 AND CreatedDate = '2026-04-06 09:01:57.070'; ... (Thread: ThreadPoolExecutor-3_0) - __SPLIT__ 2026-04-06 13:02:04,580 - [56190] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-04-06 13:02:05,257 - [56190] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-06 13:02:05,929 - [56190] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 13:02:06,648 - [56190] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into Billing.Invoice - __SPLIT__ 2026-04-06 13:02:07,420 - [56190] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-04-06 13:02:08,089 - [56190] - src.utils.log - INFO - πŸ” Fetching data: SELECT InvoiceId, WorkOrderNo FROM Billing.Invoice i WHERE i.WorkOrderNo = '53615'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 13:02:08,824 - [56190] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-04-06 13:02:09,501 - [56190] - 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 = 95723 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 13:02:10,196 - [56190] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-06 13:02:10,868 - [56190] - 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 = 95723 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 13:02:11,566 - [56190] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-06 13:02:12,243 - [56190] - 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 = 95723 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 13:02:12,939 - [56190] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-06 13:02:13,609 - [56190] - 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 = 95723 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 13:02:14,314 - [56190] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-06 13:02:14,999 - [56190] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 95723;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 13:02:15,698 - [56190] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-06 13:02:16,375 - [56190] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId, AppliedDiscountAmt as AppliedDiscountAmount,IsActive ,ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 95723;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 13:02:17,081 - [56190] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-06 13:02:17,745 - [56190] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId,IsActive,DiscountAmount, IsDiscountPercent,DiscountPercent,DiscountDescription , ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 95723;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 13:02:18,745 - [56190] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-06 13:02:19,421 - [56190] - src.utils.log - INFO - Sequential Insertion in invoice tables begin - __SPLIT__ 2026-04-06 13:02:20,096 - [56190] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.AccountDiscountSetup: - __SPLIT__ 2026-04-06 13:02:20,772 - [56190] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-06 13:02:21,447 - [56190] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceCharges: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 13:02:22,166 - [56190] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.InvoiceCharges - __SPLIT__ 2026-04-06 13:02:22,951 - [56190] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.InvoiceCharges in 1 batches - __SPLIT__ 2026-04-06 13:02:23,628 - [56190] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.DiscountApplied: - __SPLIT__ 2026-04-06 13:02:24,299 - [56190] - src.utils.log - INFO - Invoice Publish Done - __SPLIT__ 2026-04-06 13:02:24,977 - [56190] - src.utils.log - INFO - Updating Next GenerationDate - __SPLIT__ 2026-04-06 13:02:25,649 - [56190] - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, MAX(NextWorkOrderGenerationDate) AS MaxNextWorkOrderGeneration FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 56190 GROUP BY ServiceSetupId; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 13:02:26,357 - [56190] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-06 13:02:27,035 - [56190] - src.utils.log - INFO - πŸ”„ Updating next gen date sequentially: inside update_next_workorder_generation - __SPLIT__ 2026-04-06 13:02:27,728 - [56190] - src.utils.log - INFO - πŸ›  Creating temp table #tbl_feb028cd47 - __SPLIT__ 2026-04-06 13:02:28,429 - [56190] - src.utils.log - INFO - πŸ“Œ Bulk inserting 1 rows into #tbl_feb028cd47 - __SPLIT__ 2026-04-06 13:02:29,129 - [56190] - src.utils.log - INFO - πŸ” Running MERGE update to apply changes - __SPLIT__ 2026-04-06 13:02:29,824 - [56190] - src.utils.log - INFO - βœ” SQL reported affected rows: 1 - __SPLIT__ 2026-04-06 13:02:30,516 - [56190] - src.utils.log - INFO - πŸ” Verified successfully updated 1 rows via #tbl_feb028cd47 - __SPLIT__ 2026-04-06 13:02:31,201 - [56190] - src.utils.log - INFO - πŸŽ‰ Successfully updated NextGenerationDate using temp table #tbl_feb028cd47 - __SPLIT__ 2026-04-06 13:02:31,883 - [56190] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 56190 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 13:02:32,855 - [56190] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-06 13:02:33,507 - [56190] - src.utils.log - INFO - Sequential deletion from temp tables begin - __SPLIT__ 2026-04-06 13:02:34,155 - [56190] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId = 507578 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 13:02:34,862 - [56190] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-06 13:02:35,527 - [56190] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId = 507578 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 13:02:36,225 - [56190] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-06 13:02:36,878 - [56190] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId = 507578 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 13:02:37,552 - [56190] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-06 13:02:38,212 - [56190] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId = 507578 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 13:02:38,899 - [56190] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-06 13:02:39,552 - [56190] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId = 507578 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 13:02:40,240 - [56190] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-06 13:02:40,892 - [56190] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 507578 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 13:02:41,599 - [56190] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-06 13:02:42,255 - [56190] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId = 507578 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 13:02:42,932 - [56190] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-06 13:02:43,592 - [56190] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 507578 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 13:02:44,347 - [56190] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-06 13:02:45,011 - [56190] - src.utils.log - INFO - Work order published ids: (507578,) - __SPLIT__ 2026-04-06 13:02:45,665 - [56190] - src.utils.log - INFO - Time took to perform operation in publishing [56190]: 110.7 - __SPLIT__ 2026-04-06 13:02:46,623 - [56190] - src.utils.log - INFO - Publish Completed for GenerateWorkOrderHistoryId: [56190] - __SPLIT__ 2026-04-06 13:02:47,295 - [56190] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-04-06 09:02:45.011' WHERE CompanyId = 146 AND GenerateWorkOrderHistoryId = 56190;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 13:02:47,985 - [56190] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-04-06 13:07:22,127 - 56191 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=56191 - __SPLIT__ 2026-04-06 13:07:23,061 - 56191 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 56191 - __SPLIT__ 2026-04-06 13:07:23,711 - 56191 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-04-06 13:07:24,366 - 56191 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 13:07:25,199 - 56191 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-06 13:07:25,852 - 56191 - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-04-06 13:07:26,506 - 56191 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 56191;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 13:07:27,185 - 56191 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-04-06 13:07:27,842 - 56191 - 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 = 56191), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 56191), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 56191 AND ss.FrequencyScheduleId IS NOT NULL AND ss.IsActive = 1 AND ss.IsDeleted = 0 AND ss.Status <> 'Canceled';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 13:07:28,561 - 56191 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-06 13:07:29,215 - 56191 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 56191;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 13:07:29,902 - 56191 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-06 13:07:30,556 - 56191 - src.utils.log - INFO - No Setup Found Error:No setups found for GenerateWorkOrderHistoryid: 56191 - __SPLIT__ 2026-04-06 13:07:31,212 - 56191 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 56191;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 13:07:31,899 - 56191 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-04-06 13:07:32,554 - 56191 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET WorkOrderStatusDateTime = '2026-04-06 09:07:32.554' WHERE GenerateWorkOrderHistoryId = 56191;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 13:07:33,236 - 56191 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-04-06 13:08:36,076 - 56192 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=56192 - __SPLIT__ 2026-04-06 13:08:37,018 - 56192 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 56192 - __SPLIT__ 2026-04-06 13:08:37,668 - 56192 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-04-06 13:08:38,326 - 56192 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 13:08:39,147 - 56192 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-06 13:08:39,802 - 56192 - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-04-06 13:08:40,454 - 56192 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 56192;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 13:08:41,130 - 56192 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-04-06 13:08:41,784 - 56192 - 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 = 56192), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 56192), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 56192 AND ss.FrequencyScheduleId IS NOT NULL AND ss.IsActive = 1 AND ss.IsDeleted = 0 AND ss.Status <> 'Canceled';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 13:08:42,491 - 56192 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-06 13:08:43,144 - 56192 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 56192;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 13:08:43,833 - 56192 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-06 13:08:44,484 - 56192 - src.utils.log - INFO - No Setup Found Error:No setups found for GenerateWorkOrderHistoryid: 56192 - __SPLIT__ 2026-04-06 13:08:45,133 - 56192 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 56192;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 13:08:45,816 - 56192 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-04-06 13:08:46,468 - 56192 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET WorkOrderStatusDateTime = '2026-04-06 09:08:46.468' WHERE GenerateWorkOrderHistoryId = 56192;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 13:08:47,168 - 56192 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-04-06 19:45:35,246 - [24151] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[643057, 643058, 643059, 643060, 643061, 643062, 643069, 643066, 643067, 643064, 643063, 643068, 643065, 643070] user_id=43606 company_id=133 project_id=[24151] publish_all=False - __SPLIT__ 2026-04-06 19:45:36,218 - [24151] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[643057, 643058, 643059, 643060, 643061, 643062, 643069, 643066, 643067, 643064, 643063, 643068, 643065, 643070] user_id=43606 company_id=133 project_id=[24151] publish_all=False - __SPLIT__ 2026-04-06 19:45:36,897 - [24151] - src.utils.log - INFO - Sequential Work order publish in progress for GenerateWorkOrderHistoryId: [24151] - __SPLIT__ 2026-04-06 19:45:37,561 - [24151] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-04-06 19:45:38,225 - [24151] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 19:45:39,070 - [24151] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-06 19:45:39,736 - [24151] - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-04-06 19:45:40,402 - [24151] - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-04-06 19:45:41,065 - [24151] - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-04-06 19:45:41,733 - [24151] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'InProgress' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 24151;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 19:45:42,669 - [24151] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-04-06 19:45:43,332 - [24151] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (643057, 643058, 643059, 643060, 643061, 643062, 643069, 643066, 643067, 643064, 643063, 643068, 643065, 643070)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 19:45:44,027 - [24151] - src.utils.log - INFO - βœ… Fetched 14 rows - __SPLIT__ 2026-04-06 19:45:44,691 - [24151] - src.utils.log - INFO - Inside get_work_order_table - __SPLIT__ 2026-04-06 19:45:45,359 - [24151] - src.utils.log - INFO - πŸ” Fetching data: SELECT DISTINCT sss.ServiceSetupId, dm.DepartmentMasterId, bm.BranchMasterId FROM Common.DepartmentMaster dm JOIN Common.DivisionMaster d2 ON dm.DivisionMasterId = d2.DivisionMasterId JOIN Common.BranchMaster bm ON d2.BranchMasterId = bm.BranchMasterId JOIN ServiceCore.ServiceCategoryMaster c ON c.DepartmentId = dm.DepartmentMasterId JOIN ServiceCore.ServiceMaster sm ON c.CategoryId = sm.CategoryId JOIN ServiceCore.ServiceSetupServices sss ON sss.ServiceId = sm.ServiceMasterId WHERE dm.CompanyId = 133 AND d2.CompanyId = bm.CompanyId AND sss.ServiceSetupId in (47479, 30496, 63793, 44790, 57232, 45766, 66082, 66096, 66113, 66153, 66154, 66165, 37346, 66148) AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 19:45:46,075 - [24151] - src.utils.log - INFO - βœ… Fetched 14 rows - __SPLIT__ 2026-04-06 19:45:46,746 - [24151] - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceSetupId, dm.DepartmentMasterId, bm.BranchMasterId FROM Common.DepartmentMaster dm JOIN Common.DivisionMaster d2 ON dm.DivisionMasterId = d2.DivisionMasterId JOIN Common.BranchMaster bm ON d2.BranchMasterId = bm.BranchMasterId JOIN ServiceCore.SoldServiceNonStandard x on dm.DepartmentMasterId = x.DepartmentId JOIN ServiceCore.ServiceSetupServices sss ON sss.NonStdSoldServiceId = x.SoldServiceNonStandardId WHERE dm.CompanyId = 133 AND d2.CompanyId = bm.CompanyId AND sss.ServiceSetupId in (47479, 30496, 63793, 44790, 57232, 45766, 66082, 66096, 66113, 66153, 66154, 66165, 37346, 66148) AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 19:45:47,446 - [24151] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-06 19:45:48,116 - [24151] - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceSetupId, dm.DepartmentMasterId, bm.BranchMasterId FROM Common.DepartmentMaster dm Inner JOIN Common.DivisionMaster d2 ON dm.DivisionMasterId = d2.DivisionMasterId Inner JOIN Common.BranchMaster bm ON d2.BranchMasterId = bm.BranchMasterId Inner JOIN [ServiceCore].[ServiceCategoryMaster] scm ON dm.DepartmentMasterId = scm.DepartmentId Inner JOIN ServiceCore.ServiceMaster sm ON scm.CategoryId = sm.CategoryId Inner JOIN ServiceCore.SoldServiceStandard x on x.ServiceId = sm.ServiceMasterId Inner JOIN ServiceCore.ServiceSetupServices sss ON sss.StdSoldServiceId = x.SoldServiceStandardId WHERE dm.CompanyId = 133 AND d2.CompanyId = bm.CompanyId AND sss.ServiceSetupId in (47479, 30496, 63793, 44790, 57232, 45766, 66082, 66096, 66113, 66153, 66154, 66165, 37346, 66148) AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 19:45:48,848 - [24151] - src.utils.log - INFO - βœ… Fetched 9 rows - __SPLIT__ 2026-04-06 19:45:49,518 - [24151] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder,BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 19:45:50,520 - [24151] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-06 19:45:51,189 - [24151] - 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-04-06 19:45:51,892 - [24151] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-04-06 19:45:52,563 - [24151] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder, BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 19:45:53,264 - [24151] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-06 19:45:53,929 - [24151] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 14 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 133 AND EnitityNumberType = 'WorkOrder'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 19:45:54,641 - [24151] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-06 19:45:55,313 - [24151] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 14 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 133 AND EnitityNumberType = 'Invoice'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 19:45:56,023 - [24151] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-06 19:45:56,698 - [24151] - src.utils.log - INFO - πŸ” Fetching data: SELECT ss.ServiceSetupId as SetupId, ss.FrequencyScheduleId as setup_frequency_schedule_id, ss.AccountNumber, ss.CompanyId, ss.BillingLocationId, ss.ServiceLocationId, ss.TaxSysName, ss.TermId, ss.TaxPercent, ss.PoNumber, ss.IsTaxExempt, ss.DisplayServiceAsSeparateLineItem, ss.GenerateInvoice, ss.IsGenerateInvoiceforInitalSetup, ss.IsGenerateInvoiceforInitalSetupBilling, ss.IsBilling, t.NetDueIn, ptm.PaymentType, ssb.* FROM ServiceCore.ServiceSetup ss LEFT JOIN ServiceCore.ServiceSetupBilling ssb ON ss.ServiceSetupId = ssb.ServiceSetupId LEFT JOIN Billing.PaymentTypeMaster ptm ON ptm.PaymentTypeMasterId = ssb.PaymentTypeMasterId left join Billing.Term t on ss.TermId = t.TermId WHERE ss.ServiceSetupId in (47479, 30496, 63793, 44790, 57232, 45766, 66082, 66096, 66113, 66153, 66154, 66165, 37346, 66148)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 19:45:57,422 - [24151] - src.utils.log - INFO - βœ… Fetched 14 rows - __SPLIT__ 2026-04-06 19:45:58,097 - [24151] - src.utils.log - INFO - πŸ” Fetching data: SELECT x.CompanyId FROM CRM.CompanyMaster x WHERE CompanyKey = 'abcdallas';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 19:45:58,800 - [24151] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-06 19:45:59,474 - [24151] - src.utils.log - INFO - πŸ” Fetching data: SELECT CollectionStatus,IsHold,AccountNo FROM CRM.Account a WHERE a.AccountNo in ('607643', '623484', '617248', '10684', '316903', '312996', '17383', '22503', '11147', '277955', '26066', '26427', '611183', '26011') and a.CompanyId = 121;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 19:46:00,186 - [24151] - src.utils.log - INFO - βœ… Fetched 14 rows - __SPLIT__ 2026-04-06 19:46:00,865 - [24151] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderNo FROM ServiceCore.WorkOrder WHERE WorkOrderNo IN ('476397', '476398', '476399', '476400', '476401', '476402', '476403', '476404', '476405', '476406', '476407', '476408', '476409', '476410') AND CompanyId = 133 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 19:46:01,578 - [24151] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-06 19:46:02,249 - [24151] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrder (skip triggers): 14 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 19:46:03,027 - [24151] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 14) into ServiceCore.WorkOrder (triggers skipped) - __SPLIT__ 2026-04-06 19:46:04,201 - [24151] - src.utils.log - INFO - βœ… All 14 rows inserted successfully into ServiceCore.WorkOrder in 1 batches (triggers skipped) - __SPLIT__ 2026-04-06 19:46:05,171 - [24151] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-04-06 19:46:05,831 - [24151] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkorderId, WorkOrderNo FROM ServiceCore.WorkOrder wo WHERE wo.WorkOrderNo IN ('476397', '476398', '476399', '476400', '476401', '476402', '476403', '476404', '476405', '476406', '476407', '476408', '476409', '476410') AND wo.AccountNumber IN ('617248', '277955', '22503', '607643', '11147', '611183', '26011', '17383', '316903', '623484', '10684', '26066', '312996', '26427') AND wo.CompanyId = 133 ... (Thread: ThreadPoolExecutor-9_0) - __SPLIT__ 2026-04-06 19:46:06,542 - [24151] - src.utils.log - INFO - βœ… Fetched 14 rows - __SPLIT__ 2026-04-06 19:46:07,203 - [24151] - src.utils.log - INFO - Sequential fetching temp table records - __SPLIT__ 2026-04-06 19:46:07,858 - [24151] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationServices woag WHERE woag.WorkOrderAutoGenerationId in (643057, 643058, 643059, 643060, 643061, 643062, 643063, 643064, 643065, 643066, 643067, 643068, 643069, 643070)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 19:46:08,554 - [24151] - src.utils.log - INFO - βœ… Fetched 21 rows - __SPLIT__ 2026-04-06 19:46:09,217 - [24151] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SubWorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (643057, 643058, 643059, 643060, 643061, 643062, 643063, 643064, 643065, 643066, 643067, 643068, 643069, 643070)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 19:46:09,914 - [24151] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-06 19:46:10,575 - [24151] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationCrews woag WHERE woag.WorkOrderAutoGenerationId in (643057, 643058, 643059, 643060, 643061, 643062, 643063, 643064, 643065, 643066, 643067, 643068, 643069, 643070)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 19:46:11,274 - [24151] - src.utils.log - INFO - βœ… Fetched 13 rows - __SPLIT__ 2026-04-06 19:46:11,944 - [24151] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationSalesPersonCommission woag WHERE woag.WorkOrderAutoGenerationId in (643057, 643058, 643059, 643060, 643061, 643062, 643063, 643064, 643065, 643066, 643067, 643068, 643069, 643070)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 19:46:12,637 - [24151] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-06 19:46:13,301 - [24151] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupAutoGenerationSourceMapping woag WHERE woag.WorkOrderAutoGenerationId in (643057, 643058, 643059, 643060, 643061, 643062, 643063, 643064, 643065, 643066, 643067, 643068, 643069, 643070)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 19:46:14,017 - [24151] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-06 19:46:14,677 - [24151] - 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 (643057, 643058, 643059, 643060, 643061, 643062, 643063, 643064, 643065, 643066, 643067, 643068, 643069, 643070)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 19:46:15,398 - [24151] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-06 19:46:16,063 - [24151] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from CRM.LeadNote woag WHERE woag.RefId in (643057, 643058, 643059, 643060, 643061, 643062, 643063, 643064, 643065, 643066, 643067, 643068, 643069, 643070) and woag.RefType = 'TempWorkorder';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 19:46:16,778 - [24151] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-06 19:46:17,443 - [24151] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment woagca WHERE woagca.WorkOrderAutoGenerationId in (643057, 643058, 643059, 643060, 643061, 643062, 643063, 643064, 643065, 643066, 643067, 643068, 643069, 643070);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 19:46:18,131 - [24151] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-06 19:46:19,099 - [24151] - src.utils.log - INFO - Updating temp tables - __SPLIT__ 2026-04-06 19:46:19,787 - [24151] - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyKey FROM Common.CompanyMaster cm WHERE CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 19:46:20,487 - [24151] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-06 19:46:21,154 - [24151] - src.utils.log - INFO - πŸ” Fetching data: Select DiscountSetupId, [SysName] as DiscountSysName from Common.DiscountSetupMaster WHERE DiscountSetupId = 626 AND CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 19:46:21,848 - [24151] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-06 19:46:22,528 - [24151] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 133 AND EnitityNumberType in ('SubWorkOrder'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 19:46:23,215 - [24151] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-06 19:46:23,879 - [24151] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-06 19:46:24,554 - [24151] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishHistory: 14 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 19:46:25,323 - [24151] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 14) into ServiceCore.WorkOrderAutoGenerationPublishHistory - __SPLIT__ 2026-04-06 19:46:26,257 - [24151] - src.utils.log - INFO - βœ… All 14 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishHistory in 1 batches - __SPLIT__ 2026-04-06 19:46:26,929 - [24151] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationPublishHistoryId, WorkOrderNo, ServiceSetupId FROM ServiceCore.WorkOrderAutoGenerationPublishHistory WHERE ServiceSetupId IN (47479, 30496, 63793, 44790, 57232, 45766, 66082, 66096, 66113, 66153, 66154, 66165, 37346, 66148) AND WorkOrderNo IN ('2710905', '4767508', '1676515', '2457493', '6572616', '1564176', '6291289', '7680492', '6863697', '5999963', '6307145', '8186945', '3662902', '1985842') AND GenerateWorkOrderHistoryId = 24151;... (Thread: ThreadPoolExecutor-10_0) - __SPLIT__ 2026-04-06 19:46:27,865 - [24151] - src.utils.log - INFO - βœ… Fetched 14 rows - __SPLIT__ 2026-04-06 19:46:28,539 - [24151] - src.utils.log - INFO - 🏁 Final merged rows: 14 - __SPLIT__ 2026-04-06 19:46:29,212 - [24151] - src.utils.log - INFO - Sequential Insertion in work order tables begin - __SPLIT__ 2026-04-06 19:46:29,880 - [24151] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-06 19:46:30,550 - [24151] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderServices: 21 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 19:46:31,284 - [24151] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 21) into ServiceCore.WorkOrderServices - __SPLIT__ 2026-04-06 19:46:32,152 - [24151] - src.utils.log - INFO - βœ… All 21 rows inserted successfully into ServiceCore.WorkOrderServices in 1 batches - __SPLIT__ 2026-04-06 19:46:32,828 - [24151] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SubWorkOrder: - __SPLIT__ 2026-04-06 19:46:33,804 - [24151] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-06 19:46:34,481 - [24151] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.WorkOrderAppliedDiscount: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 19:46:35,229 - [24151] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceAuto.WorkOrderAppliedDiscount - __SPLIT__ 2026-04-06 19:46:36,046 - [24151] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceAuto.WorkOrderAppliedDiscount in 1 batches - __SPLIT__ 2026-04-06 19:46:36,723 - [24151] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-06 19:46:37,401 - [24151] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderSalesPersonCommission: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 19:46:38,122 - [24151] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderSalesPersonCommission - __SPLIT__ 2026-04-06 19:46:38,909 - [24151] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderSalesPersonCommission in 1 batches - __SPLIT__ 2026-04-06 19:46:39,584 - [24151] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderCommissionAdjustment: - __SPLIT__ 2026-04-06 19:46:40,262 - [24151] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-06 19:46:40,944 - [24151] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderCrew: 13 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 19:46:41,664 - [24151] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 13) into ServiceCore.WorkOrderCrew - __SPLIT__ 2026-04-06 19:46:42,456 - [24151] - src.utils.log - INFO - βœ… All 13 rows inserted successfully into ServiceCore.WorkOrderCrew in 1 batches - __SPLIT__ 2026-04-06 19:46:43,132 - [24151] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkorderSourceMapping: - __SPLIT__ 2026-04-06 19:46:43,806 - [24151] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-06 19:46:44,484 - [24151] - src.utils.log - INFO - πŸ“₯ Inserting into CRM.LeadNote: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 19:46:45,216 - [24151] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into CRM.LeadNote - __SPLIT__ 2026-04-06 19:46:46,013 - [24151] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into CRM.LeadNote in 1 batches - __SPLIT__ 2026-04-06 19:46:46,683 - [24151] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-06 19:46:47,358 - [24151] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishServices: 21 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 19:46:48,363 - [24151] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 21) into ServiceCore.WorkOrderAutoGenerationPublishServices - __SPLIT__ 2026-04-06 19:46:49,229 - [24151] - src.utils.log - INFO - βœ… All 21 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishServices in 1 batches - __SPLIT__ 2026-04-06 19:46:49,896 - [24151] - src.utils.log - INFO - πŸ” Fetching data: SELECT ss.ServiceSetupId as SetupId, ss.FrequencyScheduleId as setup_frequency_schedule_id, ss.AccountNumber, ss.CompanyId, ss.BillingLocationId, ss.ServiceLocationId, ss.TaxSysName, ss.TermId, ss.TaxPercent, ss.PoNumber, ss.IsTaxExempt, ss.DisplayServiceAsSeparateLineItem, ss.GenerateInvoice, ss.IsGenerateInvoiceforInitalSetup, ss.IsGenerateInvoiceforInitalSetupBilling, ss.IsBilling, t.NetDueIn, ptm.PaymentType, ssb.* FROM ServiceCore.ServiceSetup ss LEFT JOIN ServiceCore.ServiceSetupBilling ssb ON ss.ServiceSetupId = ssb.ServiceSetupId LEFT JOIN Billing.PaymentTypeMaster ptm ON ptm.PaymentTypeMasterId = ssb.PaymentTypeMasterId left join Billing.Term t on ss.TermId = t.TermId WHERE ss.ServiceSetupId in (47479, 30496, 63793, 44790, 57232, 45766, 66082, 66096, 66113, 66153, 66154, 66165, 37346, 66148)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 19:46:50,598 - [24151] - src.utils.log - INFO - βœ… Fetched 14 rows - __SPLIT__ 2026-04-06 19:46:51,279 - [24151] - src.utils.log - INFO - Size of Transaction: 14 - __SPLIT__ 2026-04-06 19:46:51,945 - [24151] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 14 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 19:46:52,678 - [24151] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 14) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-04-06 19:46:53,508 - [24151] - src.utils.log - INFO - βœ… All 14 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-04-06 19:46:54,190 - [24151] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-04-06 19:46:54,853 - [24151] - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionId, ModifiedBy, TransactionDate as InvoiceDate from Billing.[Transaction] t WHERE t.ModifiedBy in (12345678910, 12345678911, 12345678912, 12345678913, 12345678914, 12345678915, 12345678916, 12345678917, 12345678918, 12345678919, 12345678920, 12345678921, 12345678922, 12345678923) and t.CompanyId = 133 AND t.TransactionType ='Invoice' AND t.CreatedDate = '2026-04-06 15:46:51.275';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 19:46:55,704 - [24151] - src.utils.log - INFO - βœ… Fetched 14 rows - __SPLIT__ 2026-04-06 19:46:56,373 - [24151] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId in (30496, 37346, 44790, 45766, 47479, 57232, 63793, 66082, 66096, 66113, 66148, 66153, 66154, 66165);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 19:46:57,070 - [24151] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-06 19:46:57,744 - [24151] - src.utils.log - INFO - πŸ“ Executing: UPDATE Billing.[Transaction] SET ModifiedBy = NULL WHERE ModifiedBy IN (12345678910,12345678911,12345678912,12345678913,12345678914,12345678915,12345678916,12345678917,12345678918,12345678919,12345678920,12345678921,12345678922,12345678923) AND CreatedDate = '2026-04-06 15:46:51.275'; ... (Thread: ThreadPoolExecutor-11_0) - __SPLIT__ 2026-04-06 19:46:58,542 - [24151] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-04-06 19:46:59,214 - [24151] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-06 19:46:59,886 - [24151] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 14 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 19:47:00,613 - [24151] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 14) into Billing.Invoice - __SPLIT__ 2026-04-06 19:47:01,443 - [24151] - src.utils.log - INFO - βœ… All 14 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-04-06 19:47:02,110 - [24151] - src.utils.log - INFO - πŸ” Fetching data: SELECT InvoiceId, WorkOrderNo FROM Billing.Invoice i WHERE i.WorkOrderNo in ('476398', '476409', '476400', '476402', '476397', '476401', '476399', '476403', '476404', '476405', '476410', '476406', '476407', '476408')... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 19:47:03,588 - [24151] - src.utils.log - INFO - βœ… Fetched 14 rows - __SPLIT__ 2026-04-06 19:47:04,258 - [24151] - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceSetupId, sss.NonStdSoldServiceId as SoldServiceNonStandardId, sss.Qty as Quantity, sss.Price as Rate, sss.IsTaxable, sm.Name as NonStandardServiceName, sm.Description , sm.ServiceMasterId as ServiceId FROM ServiceCore.ServiceSetupServices sss join ServiceCore.ServiceMaster sm on sm.ServiceMasterId = sss.ServiceId where ServiceSetupId in (47479, 30496, 63793, 44790, 57232, 45766, 66082, 66096, 66113, 66153, 66154, 66165, 37346, 66148) and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 19:47:04,951 - [24151] - src.utils.log - INFO - βœ… Fetched 21 rows - __SPLIT__ 2026-04-06 19:47:05,619 - [24151] - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceSetupId, sss.NonStdSoldServiceId as SoldServiceNonStandardId, sss.Qty as Quantity, sss.Price as Rate, sss.IsTaxable, sm.Name as NonStandardServiceName, sm.Description , sm.ServiceMasterId as ServiceId FROM ServiceCore.ServiceSetupInitialServices sss join ServiceCore.ServiceMaster sm on sm.ServiceMasterId = sss.ServiceId where ServiceSetupId in (47479, 30496, 63793, 44790, 57232, 45766, 66082, 66096, 66113, 66153, 66154, 66165, 37346, 66148) and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 19:47:06,314 - [24151] - src.utils.log - INFO - βœ… Fetched 14 rows - __SPLIT__ 2026-04-06 19:47:06,978 - [24151] - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceSetupId, sss.NonStdSoldServiceId as SoldServiceNonStandardId, sss.Qty as Quantity, sss.Price as Rate, sss.IsTaxable, sm.servicename as NonStandardServiceName, sm.Description , sss.ServiceId FROM ServiceCore.ServiceSetupServices sss join ServiceCore.SoldServiceNonStandard sm on sm.SoldServiceNonStandardId = sss.NonStdSoldServiceId where ServiceSetupId in (47479, 30496, 63793, 44790, 57232, 45766, 66082, 66096, 66113, 66153, 66154, 66165, 37346, 66148) and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 19:47:07,667 - [24151] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-06 19:47:08,320 - [24151] - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceSetupId, sss.NonStdSoldServiceId as SoldServiceNonStandardId, sss.Qty as Quantity, sss.Price as Rate, sss.IsTaxable, sm.servicename as NonStandardServiceName, sm.Description , sss.ServiceId FROM ServiceCore.ServiceSetupInitialServices sss join ServiceCore.SoldServiceNonStandard sm on sm.SoldServiceNonStandardId = sss.NonStdSoldServiceId where ServiceSetupId in (47479, 30496, 63793, 44790, 57232, 45766, 66082, 66096, 66113, 66153, 66154, 66165, 37346, 66148) and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 19:47:09,013 - [24151] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-06 19:47:09,689 - [24151] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId in (47479, 30496, 63793, 44790, 57232, 45766, 66082, 66096, 66113, 66153, 66154, 66165, 37346, 66148);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 19:47:10,374 - [24151] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-06 19:47:11,041 - [24151] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId, AppliedDiscountAmt as AppliedDiscountAmount,IsActive ,ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId in (47479, 30496, 63793, 44790, 57232, 45766, 66082, 66096, 66113, 66153, 66154, 66165, 37346, 66148);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 19:47:11,730 - [24151] - src.utils.log - INFO - βœ… Fetched 6 rows - __SPLIT__ 2026-04-06 19:47:12,402 - [24151] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId,IsActive,DiscountAmount, IsDiscountPercent,DiscountPercent,DiscountDescription, ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId in (47479, 30496, 63793, 44790, 57232, 45766, 66082, 66096, 66113, 66153, 66154, 66165, 37346, 66148);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 19:47:13,095 - [24151] - src.utils.log - INFO - βœ… Fetched 6 rows - __SPLIT__ 2026-04-06 19:47:13,766 - [24151] - src.utils.log - INFO - Sequential Insertion in invoice tables begin - __SPLIT__ 2026-04-06 19:47:14,434 - [24151] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-06 19:47:15,099 - [24151] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.AccountDiscountSetup: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 19:47:15,809 - [24151] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into Billing.AccountDiscountSetup - __SPLIT__ 2026-04-06 19:47:16,577 - [24151] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into Billing.AccountDiscountSetup in 1 batches - __SPLIT__ 2026-04-06 19:47:17,563 - [24151] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-06 19:47:18,245 - [24151] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceCharges: 21 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 19:47:18,963 - [24151] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 21) into Billing.InvoiceCharges - __SPLIT__ 2026-04-06 19:47:19,790 - [24151] - src.utils.log - INFO - βœ… All 21 rows inserted successfully into Billing.InvoiceCharges in 1 batches - __SPLIT__ 2026-04-06 19:47:20,456 - [24151] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-06 19:47:21,126 - [24151] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.DiscountApplied: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 19:47:21,847 - [24151] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into Billing.DiscountApplied - __SPLIT__ 2026-04-06 19:47:22,631 - [24151] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into Billing.DiscountApplied in 1 batches - __SPLIT__ 2026-04-06 19:47:23,303 - [24151] - src.utils.log - INFO - Invoice Publish Done - __SPLIT__ 2026-04-06 19:47:23,978 - [24151] - src.utils.log - INFO - Updating Next GenerationDate - __SPLIT__ 2026-04-06 19:47:24,650 - [24151] - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, MAX(NextWorkOrderGenerationDate) AS MaxNextWorkOrderGeneration FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 24151 GROUP BY ServiceSetupId; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 19:47:25,352 - [24151] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-06 19:47:26,032 - [24151] - src.utils.log - INFO - πŸ”„ Updating next gen date sequentially: inside update_next_workorder_generation - __SPLIT__ 2026-04-06 19:47:26,712 - [24151] - src.utils.log - INFO - πŸ›  Creating temp table #tbl_08ea25b7d3 - __SPLIT__ 2026-04-06 19:47:27,418 - [24151] - src.utils.log - INFO - πŸ“Œ Bulk inserting 14 rows into #tbl_08ea25b7d3 - __SPLIT__ 2026-04-06 19:47:28,300 - [24151] - src.utils.log - INFO - πŸ” Running MERGE update to apply changes - __SPLIT__ 2026-04-06 19:47:29,021 - [24151] - src.utils.log - INFO - βœ” SQL reported affected rows: 14 - __SPLIT__ 2026-04-06 19:47:29,695 - [24151] - src.utils.log - INFO - πŸ” Verified successfully updated 14 rows via #tbl_08ea25b7d3 - __SPLIT__ 2026-04-06 19:47:30,350 - [24151] - src.utils.log - INFO - πŸŽ‰ Successfully updated NextGenerationDate using temp table #tbl_08ea25b7d3 - __SPLIT__ 2026-04-06 19:47:31,009 - [24151] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 24151 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 19:47:31,969 - [24151] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-06 19:47:32,623 - [24151] - src.utils.log - INFO - Sequential deletion from temp tables begin - __SPLIT__ 2026-04-06 19:47:33,270 - [24151] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId in (643057, 643058, 643059, 643060, 643061, 643062, 643063, 643064, 643065, 643066, 643067, 643068, 643069, 643070) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 19:47:33,959 - [24151] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-06 19:47:34,615 - [24151] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId in (643057, 643058, 643059, 643060, 643061, 643062, 643063, 643064, 643065, 643066, 643067, 643068, 643069, 643070) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 19:47:35,298 - [24151] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-06 19:47:35,950 - [24151] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId in (643057, 643058, 643059, 643060, 643061, 643062, 643063, 643064, 643065, 643066, 643067, 643068, 643069, 643070) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 19:47:36,635 - [24151] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-06 19:47:37,283 - [24151] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId in (643057, 643058, 643059, 643060, 643061, 643062, 643063, 643064, 643065, 643066, 643067, 643068, 643069, 643070) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 19:47:38,054 - [24151] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-06 19:47:38,712 - [24151] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId in (643057, 643058, 643059, 643060, 643061, 643062, 643063, 643064, 643065, 643066, 643067, 643068, 643069, 643070) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 19:47:39,431 - [24151] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-06 19:47:40,085 - [24151] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (643057, 643058, 643059, 643060, 643061, 643062, 643063, 643064, 643065, 643066, 643067, 643068, 643069, 643070) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 19:47:40,767 - [24151] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-06 19:47:41,418 - [24151] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId in (643057, 643058, 643059, 643060, 643061, 643062, 643063, 643064, 643065, 643066, 643067, 643068, 643069, 643070) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 19:47:42,097 - [24151] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-06 19:47:42,749 - [24151] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (643057, 643058, 643059, 643060, 643061, 643062, 643063, 643064, 643065, 643066, 643067, 643068, 643069, 643070) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 19:47:43,513 - [24151] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-06 19:47:44,166 - [24151] - src.utils.log - INFO - Work order published ids: (643057, 643058, 643059, 643060, 643061, 643062, 643063, 643064, 643065, 643066, 643067, 643068, 643069, 643070) - __SPLIT__ 2026-04-06 19:47:44,823 - [24151] - src.utils.log - INFO - Time took to perform operation in publishing [24151]: 127.26 - __SPLIT__ 2026-04-06 19:47:45,796 - [24151] - src.utils.log - INFO - Publish Completed for GenerateWorkOrderHistoryId: [24151] - __SPLIT__ 2026-04-06 19:47:46,469 - [24151] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-04-06 15:47:44.166' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 24151;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 19:47:47,168 - [24151] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-04-06 20:36:01,657 - 24160 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=24160 - __SPLIT__ 2026-04-06 20:36:02,609 - 24160 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 24160 - __SPLIT__ 2026-04-06 20:36:03,269 - 24160 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-04-06 20:36:03,927 - 24160 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 20:36:04,795 - 24160 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-06 20:36:05,461 - 24160 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-04-06 20:36:06,127 - 24160 - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-04-06 20:36:06,785 - 24160 - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-04-06 20:36:07,443 - 24160 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 24160;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 20:36:08,339 - 24160 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-04-06 20:36:08,998 - 24160 - 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 = 24160), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 24160), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 24160 AND ss.FrequencyScheduleId IS NOT NULL AND ss.IsActive = 1 AND ss.IsDeleted = 0 AND ss.Status <> 'Canceled';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 20:36:09,769 - 24160 - src.utils.log - INFO - βœ… Fetched 27 rows - __SPLIT__ 2026-04-06 20:36:10,434 - 24160 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 24160;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 20:36:11,122 - 24160 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-06 20:36:11,784 - 24160 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-04-06 20:36:12,439 - 24160 - src.utils.log - INFO - πŸ” Fetching data: SELECT fsd.IntervalDays, fs.CreatedDate ,f.FrequencyId , fs.FrequencyScheduleId, f.[SysName], f.FrequencyValue, f.YearlyOccurrence , fs.ScheduleFormat,fsd.Days, fsd.Weeks, fsd.Months,fsc.[Month] as sch_months, fsd.StartMonth , fsd.DateDay,fsd.DateMonth FROM [ServiceCore].[FrequencyMaster] f inner join [ServiceCore].[FrequencySchedule] fs on fs.FrequencyId = f.FrequencyId left join ServiceCore.FrequencyScheduleCycle fsc on fsc.FrequencyScheduleId = fs.FrequencyScheduleId left join [ServiceCore].[FrequencyScheduleDetail] fsd on fsd.FrequencyScheduleId = fs.FrequencyScheduleId WHERE fsd.FrequencyScheduleId in (14693, 14664, 14505, 14634, 14571, 14668, 14666, 14638, 14604, 13997, 14645, 14775, 14457, 14653)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 20:36:13,193 - 24160 - src.utils.log - INFO - βœ… Fetched 227 rows - __SPLIT__ 2026-04-06 20:36:13,858 - 24160 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-04-06 20:36:14,515 - 24160 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-04-06 20:36:15,178 - 24160 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId in (65025, 27401, 65673, 59283, 26395, 43807, 45728, 47009, 66080, 51623, 65191, 40627, 54453, 39481, 48573, 62405, 48334, 63573, 66135, 23134, 46434, 64994, 47333, 47462, 38249, 66028, 27247);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 20:36:15,877 - 24160 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-06 20:36:16,839 - 24160 - 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-04-06 00:00:00' and ServiceDate <= '2026-04-30 00:00:00' and ServiceSetupId in (65025, 27401, 65673, 59283, 26395, 43807, 45728, 47009, 66080, 51623, 65191, 40627, 54453, 39481, 48573, 62405, 48334, 63573, 66135, 23134, 46434, 64994, 47333, 47462, 38249, 66028, 27247) and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 20:36:17,548 - 24160 - src.utils.log - INFO - βœ… Fetched 5 rows - __SPLIT__ 2026-04-06 20:36:18,356 - 24160 - src.utils.log - INFO - Generating work orders for setup: 27247 - __SPLIT__ 2026-04-06 20:36:19,030 - 24160 - src.utils.log - INFO - Generating work orders for setup: 27401 - __SPLIT__ 2026-04-06 20:36:19,713 - 24160 - src.utils.log - INFO - Generating work orders for setup: 38249 - __SPLIT__ 2026-04-06 20:36:20,391 - 24160 - src.utils.log - INFO - Generating work orders for setup: 65025 - __SPLIT__ 2026-04-06 20:36:21,071 - 24160 - src.utils.log - INFO - Generating work orders for setup: 66028 - __SPLIT__ 2026-04-06 20:36:21,754 - 24160 - src.utils.log - INFO - Generating work orders for setup: 66080 - __SPLIT__ 2026-04-06 20:36:22,430 - 24160 - src.utils.log - INFO - Generating work orders for setup: 66135 - __SPLIT__ 2026-04-06 20:36:23,108 - 24160 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId in (11429.0, -1.0);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 20:36:23,810 - 24160 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-06 20:36:24,522 - 24160 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-04-06 20:36:25,198 - 24160 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=133 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 20:36:25,895 - 24160 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-06 20:36:26,567 - 24160 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-04-06 20:36:27,236 - 24160 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-04-06 20:36:27,912 - 24160 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (65025, 27401, 65673, 59283, 26395, 43807, 45728, 47009, 66080, 51623, 65191, 40627, 54453, 39481, 48573, 62405, 48334, 63573, 66135, 23134, 46434, 64994, 47333, 47462, 38249, 66028, 27247) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 20:36:28,629 - 24160 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-06 20:36:29,303 - 24160 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (65025, 27401, 65673, 59283, 26395, 43807, 45728, 47009, 66080, 51623, 65191, 40627, 54453, 39481, 48573, 62405, 48334, 63573, 66135, 23134, 46434, 64994, 47333, 47462, 38249, 66028, 27247) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 20:36:30,011 - 24160 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-06 20:36:30,958 - 24160 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (65025, 27401, 65673, 59283, 26395, 43807, 45728, 47009, 66080, 51623, 65191, 40627, 54453, 39481, 48573, 62405, 48334, 63573, 66135, 23134, 46434, 64994, 47333, 47462, 38249, 66028, 27247) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 20:36:31,643 - 24160 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-06 20:36:32,300 - 24160 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (65025, 27401, 65673, 59283, 26395, 43807, 45728, 47009, 66080, 51623, 65191, 40627, 54453, 39481, 48573, 62405, 48334, 63573, 66135, 23134, 46434, 64994, 47333, 47462, 38249, 66028, 27247) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 20:36:33,005 - 24160 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-06 20:36:33,662 - 24160 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (65025, 27401, 65673, 59283, 26395, 43807, 45728, 47009, 66080, 51623, 65191, 40627, 54453, 39481, 48573, 62405, 48334, 63573, 66135, 23134, 46434, 64994, 47333, 47462, 38249, 66028, 27247) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 20:36:34,357 - 24160 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-06 20:36:35,017 - 24160 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (65025, 27401, 65673, 59283, 26395, 43807, 45728, 47009, 66080, 51623, 65191, 40627, 54453, 39481, 48573, 62405, 48334, 63573, 66135, 23134, 46434, 64994, 47333, 47462, 38249, 66028, 27247) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 20:36:35,732 - 24160 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-06 20:36:36,389 - 24160 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (65025, 27401, 65673, 59283, 26395, 43807, 45728, 47009, 66080, 51623, 65191, 40627, 54453, 39481, 48573, 62405, 48334, 63573, 66135, 23134, 46434, 64994, 47333, 47462, 38249, 66028, 27247) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 20:36:37,070 - 24160 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-06 20:36:37,732 - 24160 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (65025, 27401, 65673, 59283, 26395, 43807, 45728, 47009, 66080, 51623, 65191, 40627, 54453, 39481, 48573, 62405, 48334, 63573, 66135, 23134, 46434, 64994, 47333, 47462, 38249, 66028, 27247) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 20:36:38,428 - 24160 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-06 20:36:39,087 - 24160 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-06 20:36:39,748 - 24160 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 4 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 20:36:40,485 - 24160 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 4) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-04-06 20:36:41,307 - 24160 - src.utils.log - INFO - βœ… All 4 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-04-06 20:36:41,965 - 24160 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 4 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-04-02 12:12:09.074' and ServiceSetupId in (65025, 27401, 65673, 59283, 26395, 43807, 45728, 47009, 66080, 51623, 65191, 40627, 54453, 39481, 48573, 62405, 48334, 63573, 66135, 23134, 46434, 64994, 47333, 47462, 38249, 66028, 27247)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 20:36:42,654 - 24160 - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-04-06 20:36:43,309 - 24160 - src.utils.log - INFO - Id's of work order inserted to DB: [643086 643087 643088 643089] - __SPLIT__ 2026-04-06 20:36:43,968 - 24160 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId in (65025, 27401, 65673, 59283, 26395, 43807, 45728, 47009, 66080, 51623, 65191, 40627, 54453, 39481, 48573, 62405, 48334, 63573, 66135, 23134, 46434, 64994, 47333, 47462, 38249, 66028, 27247);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 20:36:44,940 - 24160 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-06 20:36:45,603 - 24160 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-04-06 20:36:46,261 - 24160 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId in (27401, 38249, 27247, 66135)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 20:36:46,952 - 24160 - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-04-06 20:36:47,606 - 24160 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId in (27401, 38249, 27247, 66135)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 20:36:48,290 - 24160 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-06 20:36:48,946 - 24160 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId in (27401, 38249, 27247, 66135)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 20:36:49,639 - 24160 - src.utils.log - INFO - βœ… Fetched 5 rows - __SPLIT__ 2026-04-06 20:36:50,304 - 24160 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId in (27401, 38249, 27247, 66135)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 20:36:50,993 - 24160 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-06 20:36:51,650 - 24160 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId in (27401, 38249, 27247, 66135)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 20:36:52,340 - 24160 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-06 20:36:52,998 - 24160 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId in (27401, 38249, 27247, 66135);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 20:36:53,680 - 24160 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-06 20:36:54,343 - 24160 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId in (27401, 38249, 27247, 66135);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 20:36:55,029 - 24160 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-06 20:36:55,686 - 24160 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId in (27401, 38249, 27247, 66135);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 20:36:56,539 - 24160 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-06 20:36:57,200 - 24160 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId in (27401, 38249, 27247, 66135);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 20:36:57,882 - 24160 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-06 20:36:58,869 - 24160 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-04-06 20:36:59,545 - 24160 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-04-06 20:37:00,226 - 24160 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-04-06 20:37:00,903 - 24160 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.CommunicationPreferencesServiceReportNotification: - __SPLIT__ 2026-04-06 20:37:01,568 - 24160 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-04-06 20:37:02,244 - 24160 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-06 20:37:02,922 - 24160 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 643086 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 20:37:03,637 - 24160 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-06 20:37:04,309 - 24160 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.SetupAutoGenerationSourceMapping: 0 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 20:37:05,037 - 24160 - src.utils.log - INFO - βœ… All 0 rows inserted successfully into ServiceCore.SetupAutoGenerationSourceMapping in 0 batches - __SPLIT__ 2026-04-06 20:37:05,713 - 24160 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-04-06 20:37:06,389 - 24160 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-06 20:37:07,064 - 24160 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 643087 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 20:37:07,763 - 24160 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-06 20:37:08,441 - 24160 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationAppliedDiscount: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 20:37:09,177 - 24160 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderAutoGenerationAppliedDiscount - __SPLIT__ 2026-04-06 20:37:09,940 - 24160 - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationAppliedDiscount in 1 batches - __SPLIT__ 2026-04-06 20:37:10,612 - 24160 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-04-06 20:37:11,283 - 24160 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SubWorkOrderAutoGeneration: - __SPLIT__ 2026-04-06 20:37:11,962 - 24160 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-04-06 20:37:12,918 - 24160 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: - __SPLIT__ 2026-04-06 20:37:13,584 - 24160 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-04-06 20:37:14,250 - 24160 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: - __SPLIT__ 2026-04-06 20:37:14,914 - 24160 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-04-06 20:37:15,587 - 24160 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-06 20:37:16,268 - 24160 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (643088, 643089, 643086, 643087) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 20:37:16,968 - 24160 - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-04-06 20:37:17,639 - 24160 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationCrews: 4 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 20:37:18,382 - 24160 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 4) into ServiceCore.WorkOrderAutoGenerationCrews - __SPLIT__ 2026-04-06 20:37:19,139 - 24160 - src.utils.log - INFO - βœ… All 4 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationCrews in 1 batches - __SPLIT__ 2026-04-06 20:37:19,804 - 24160 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-04-06 20:37:20,478 - 24160 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationServices: - __SPLIT__ 2026-04-06 20:37:21,147 - 24160 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-04-06 20:37:21,818 - 24160 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-06 20:37:22,487 - 24160 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 4 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 20:37:23,203 - 24160 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 4) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-04-06 20:37:23,971 - 24160 - src.utils.log - INFO - βœ… All 4 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-04-06 20:37:24,638 - 24160 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-04-06 20:37:25,308 - 24160 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 24160;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 20:37:25,996 - 24160 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-04-06 20:37:26,949 - 24160 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-04-06 20:37:27,618 - 24160 - src.utils.log - INFO - Time took to perform operation: 83.68 - __SPLIT__ 2026-04-06 20:37:28,278 - 24160 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 24160;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 20:37:28,972 - 24160 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-04-06 20:37:29,639 - 24160 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET WorkOrderStatusDateTime = '2026-04-06 16:37:29.639' WHERE GenerateWorkOrderHistoryId = 24160;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 20:37:30,334 - 24160 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-04-06 21:34:53,469 - [24169] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[643102, 643103, 643104, 643105, 643106, 643107, 643108, 643112, 643111, 643110, 643109] user_id=43606 company_id=133 project_id=[24169] publish_all=False - __SPLIT__ 2026-04-06 21:34:54,455 - [24169] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[643102, 643103, 643104, 643105, 643106, 643107, 643108, 643112, 643111, 643110, 643109] user_id=43606 company_id=133 project_id=[24169] publish_all=False - __SPLIT__ 2026-04-06 21:34:55,130 - [24169] - src.utils.log - INFO - Sequential Work order publish in progress for GenerateWorkOrderHistoryId: [24169] - __SPLIT__ 2026-04-06 21:34:55,820 - [24169] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-04-06 21:34:56,506 - [24169] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 21:34:57,361 - [24169] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-06 21:34:58,036 - [24169] - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-04-06 21:34:58,716 - [24169] - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-04-06 21:34:59,395 - [24169] - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-04-06 21:35:00,079 - [24169] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'InProgress' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 24169;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 21:35:01,002 - [24169] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-04-06 21:35:01,685 - [24169] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (643102, 643103, 643104, 643105, 643106, 643107, 643108, 643112, 643111, 643110, 643109)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 21:35:02,393 - [24169] - src.utils.log - INFO - βœ… Fetched 11 rows - __SPLIT__ 2026-04-06 21:35:03,076 - [24169] - src.utils.log - INFO - Inside get_work_order_table - __SPLIT__ 2026-04-06 21:35:03,759 - [24169] - src.utils.log - INFO - πŸ” Fetching data: SELECT DISTINCT sss.ServiceSetupId, dm.DepartmentMasterId, bm.BranchMasterId FROM Common.DepartmentMaster dm JOIN Common.DivisionMaster d2 ON dm.DivisionMasterId = d2.DivisionMasterId JOIN Common.BranchMaster bm ON d2.BranchMasterId = bm.BranchMasterId JOIN ServiceCore.ServiceCategoryMaster c ON c.DepartmentId = dm.DepartmentMasterId JOIN ServiceCore.ServiceMaster sm ON c.CategoryId = sm.CategoryId JOIN ServiceCore.ServiceSetupServices sss ON sss.ServiceId = sm.ServiceMasterId WHERE dm.CompanyId = 133 AND d2.CompanyId = bm.CompanyId AND sss.ServiceSetupId in (63489, 25873, 33963, 29219, 38249, 65135, 23950, 65105, 66028, 66018, 66175) AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 21:35:04,473 - [24169] - src.utils.log - INFO - βœ… Fetched 11 rows - __SPLIT__ 2026-04-06 21:35:05,153 - [24169] - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceSetupId, dm.DepartmentMasterId, bm.BranchMasterId FROM Common.DepartmentMaster dm JOIN Common.DivisionMaster d2 ON dm.DivisionMasterId = d2.DivisionMasterId JOIN Common.BranchMaster bm ON d2.BranchMasterId = bm.BranchMasterId JOIN ServiceCore.SoldServiceNonStandard x on dm.DepartmentMasterId = x.DepartmentId JOIN ServiceCore.ServiceSetupServices sss ON sss.NonStdSoldServiceId = x.SoldServiceNonStandardId WHERE dm.CompanyId = 133 AND d2.CompanyId = bm.CompanyId AND sss.ServiceSetupId in (63489, 25873, 33963, 29219, 38249, 65135, 23950, 65105, 66028, 66018, 66175) AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 21:35:05,865 - [24169] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-06 21:35:06,544 - [24169] - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceSetupId, dm.DepartmentMasterId, bm.BranchMasterId FROM Common.DepartmentMaster dm Inner JOIN Common.DivisionMaster d2 ON dm.DivisionMasterId = d2.DivisionMasterId Inner JOIN Common.BranchMaster bm ON d2.BranchMasterId = bm.BranchMasterId Inner JOIN [ServiceCore].[ServiceCategoryMaster] scm ON dm.DepartmentMasterId = scm.DepartmentId Inner JOIN ServiceCore.ServiceMaster sm ON scm.CategoryId = sm.CategoryId Inner JOIN ServiceCore.SoldServiceStandard x on x.ServiceId = sm.ServiceMasterId Inner JOIN ServiceCore.ServiceSetupServices sss ON sss.StdSoldServiceId = x.SoldServiceStandardId WHERE dm.CompanyId = 133 AND d2.CompanyId = bm.CompanyId AND sss.ServiceSetupId in (63489, 25873, 33963, 29219, 38249, 65135, 23950, 65105, 66028, 66018, 66175) AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 21:35:07,266 - [24169] - src.utils.log - INFO - βœ… Fetched 6 rows - __SPLIT__ 2026-04-06 21:35:07,956 - [24169] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder,BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 21:35:08,958 - [24169] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-06 21:35:09,626 - [24169] - 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-04-06 21:35:10,327 - [24169] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-04-06 21:35:10,998 - [24169] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder, BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 21:35:11,692 - [24169] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-06 21:35:12,362 - [24169] - 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-04-06 21:35:13,057 - [24169] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-06 21:35:13,727 - [24169] - 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-04-06 21:35:14,424 - [24169] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-06 21:35:15,095 - [24169] - src.utils.log - INFO - πŸ” Fetching data: SELECT ss.ServiceSetupId as SetupId, ss.FrequencyScheduleId as setup_frequency_schedule_id, ss.AccountNumber, ss.CompanyId, ss.BillingLocationId, ss.ServiceLocationId, ss.TaxSysName, ss.TermId, ss.TaxPercent, ss.PoNumber, ss.IsTaxExempt, ss.DisplayServiceAsSeparateLineItem, ss.GenerateInvoice, ss.IsGenerateInvoiceforInitalSetup, ss.IsGenerateInvoiceforInitalSetupBilling, ss.IsBilling, t.NetDueIn, ptm.PaymentType, ssb.* FROM ServiceCore.ServiceSetup ss LEFT JOIN ServiceCore.ServiceSetupBilling ssb ON ss.ServiceSetupId = ssb.ServiceSetupId LEFT JOIN Billing.PaymentTypeMaster ptm ON ptm.PaymentTypeMasterId = ssb.PaymentTypeMasterId left join Billing.Term t on ss.TermId = t.TermId WHERE ss.ServiceSetupId in (63489, 25873, 33963, 29219, 38249, 65135, 23950, 65105, 66028, 66018, 66175)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 21:35:15,799 - [24169] - src.utils.log - INFO - βœ… Fetched 11 rows - __SPLIT__ 2026-04-06 21:35:16,477 - [24169] - src.utils.log - INFO - πŸ” Fetching data: SELECT x.CompanyId FROM CRM.CompanyMaster x WHERE CompanyKey = 'abcdallas';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 21:35:17,169 - [24169] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-06 21:35:17,836 - [24169] - src.utils.log - INFO - πŸ” Fetching data: SELECT CollectionStatus,IsHold,AccountNo FROM CRM.Account a WHERE a.AccountNo in ('25021', '218932', '335161', '20524', '271168', '316928', '296035', '15549', '268975', '325332', '239347') and a.CompanyId = 121;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 21:35:18,547 - [24169] - src.utils.log - INFO - βœ… Fetched 11 rows - __SPLIT__ 2026-04-06 21:35:19,226 - [24169] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderNo FROM ServiceCore.WorkOrder WHERE WorkOrderNo IN ('476471', '476472', '476473', '476474', '476475', '476476', '476477', '476478', '476479', '476480', '476481') AND CompanyId = 133 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 21:35:19,939 - [24169] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-06 21:35:20,613 - [24169] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrder (skip triggers): 11 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 21:35:21,377 - [24169] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 11) into ServiceCore.WorkOrder (triggers skipped) - __SPLIT__ 2026-04-06 21:35:22,276 - [24169] - src.utils.log - INFO - βœ… All 11 rows inserted successfully into ServiceCore.WorkOrder in 1 batches (triggers skipped) - __SPLIT__ 2026-04-06 21:35:23,227 - [24169] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-04-06 21:35:23,872 - [24169] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkorderId, WorkOrderNo FROM ServiceCore.WorkOrder wo WHERE wo.WorkOrderNo IN ('476471', '476472', '476473', '476474', '476475', '476476', '476477', '476478', '476479', '476480', '476481') AND wo.AccountNumber IN ('15549', '239347', '296035', '268975', '316928', '325332', '218932', '25021', '20524', '335161', '271168') AND wo.CompanyId = 133 ... (Thread: ThreadPoolExecutor-4_0) - __SPLIT__ 2026-04-06 21:35:24,549 - [24169] - src.utils.log - INFO - βœ… Fetched 11 rows - __SPLIT__ 2026-04-06 21:35:25,199 - [24169] - src.utils.log - INFO - Sequential fetching temp table records - __SPLIT__ 2026-04-06 21:35:25,847 - [24169] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationServices woag WHERE woag.WorkOrderAutoGenerationId in (643102, 643103, 643104, 643105, 643106, 643107, 643108, 643109, 643110, 643111, 643112)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 21:35:26,531 - [24169] - src.utils.log - INFO - βœ… Fetched 15 rows - __SPLIT__ 2026-04-06 21:35:27,176 - [24169] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SubWorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (643102, 643103, 643104, 643105, 643106, 643107, 643108, 643109, 643110, 643111, 643112)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 21:35:27,857 - [24169] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-06 21:35:28,504 - [24169] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationCrews woag WHERE woag.WorkOrderAutoGenerationId in (643102, 643103, 643104, 643105, 643106, 643107, 643108, 643109, 643110, 643111, 643112)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 21:35:29,189 - [24169] - src.utils.log - INFO - βœ… Fetched 11 rows - __SPLIT__ 2026-04-06 21:35:29,838 - [24169] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationSalesPersonCommission woag WHERE woag.WorkOrderAutoGenerationId in (643102, 643103, 643104, 643105, 643106, 643107, 643108, 643109, 643110, 643111, 643112)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 21:35:30,521 - [24169] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-06 21:35:31,173 - [24169] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupAutoGenerationSourceMapping woag WHERE woag.WorkOrderAutoGenerationId in (643102, 643103, 643104, 643105, 643106, 643107, 643108, 643109, 643110, 643111, 643112)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 21:35:31,855 - [24169] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-06 21:35:32,503 - [24169] - 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 (643102, 643103, 643104, 643105, 643106, 643107, 643108, 643109, 643110, 643111, 643112)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 21:35:33,210 - [24169] - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-04-06 21:35:33,857 - [24169] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from CRM.LeadNote woag WHERE woag.RefId in (643102, 643103, 643104, 643105, 643106, 643107, 643108, 643109, 643110, 643111, 643112) and woag.RefType = 'TempWorkorder';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 21:35:34,538 - [24169] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-06 21:35:35,182 - [24169] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment woagca WHERE woagca.WorkOrderAutoGenerationId in (643102, 643103, 643104, 643105, 643106, 643107, 643108, 643109, 643110, 643111, 643112);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 21:35:35,860 - [24169] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-06 21:35:36,818 - [24169] - src.utils.log - INFO - Updating temp tables - __SPLIT__ 2026-04-06 21:35:37,492 - [24169] - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyKey FROM Common.CompanyMaster cm WHERE CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 21:35:38,185 - [24169] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-06 21:35:38,890 - [24169] - src.utils.log - INFO - πŸ” Fetching data: Select DiscountSetupId, [SysName] as DiscountSysName from Common.DiscountSetupMaster WHERE DiscountSetupId IN (778, 844, 919) AND CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 21:35:39,583 - [24169] - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-04-06 21:35:40,246 - [24169] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 133 AND EnitityNumberType in ('SubWorkOrder'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 21:35:40,941 - [24169] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-06 21:35:41,610 - [24169] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-06 21:35:42,280 - [24169] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishHistory: 11 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 21:35:43,007 - [24169] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 11) into ServiceCore.WorkOrderAutoGenerationPublishHistory - __SPLIT__ 2026-04-06 21:35:43,841 - [24169] - src.utils.log - INFO - βœ… All 11 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishHistory in 1 batches - __SPLIT__ 2026-04-06 21:35:44,509 - [24169] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationPublishHistoryId, WorkOrderNo, ServiceSetupId FROM ServiceCore.WorkOrderAutoGenerationPublishHistory WHERE ServiceSetupId IN (63489, 25873, 33963, 29219, 38249, 65135, 23950, 65105, 66028, 66018, 66175) AND WorkOrderNo IN ('2957486', '8326618', '6775897', '3411420', '7964016', '6660970', '4682863', '6230107', '3206531', '8409661', '6652845') AND GenerateWorkOrderHistoryId = 24169;... (Thread: ThreadPoolExecutor-5_0) - __SPLIT__ 2026-04-06 21:35:45,281 - [24169] - src.utils.log - INFO - βœ… Fetched 11 rows - __SPLIT__ 2026-04-06 21:35:45,944 - [24169] - src.utils.log - INFO - 🏁 Final merged rows: 11 - __SPLIT__ 2026-04-06 21:35:46,611 - [24169] - src.utils.log - INFO - Sequential Insertion in work order tables begin - __SPLIT__ 2026-04-06 21:35:47,269 - [24169] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-06 21:35:47,931 - [24169] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderServices: 15 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 21:35:48,641 - [24169] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 15) into ServiceCore.WorkOrderServices - __SPLIT__ 2026-04-06 21:35:49,437 - [24169] - src.utils.log - INFO - βœ… All 15 rows inserted successfully into ServiceCore.WorkOrderServices in 1 batches - __SPLIT__ 2026-04-06 21:35:50,089 - [24169] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SubWorkOrder: - __SPLIT__ 2026-04-06 21:35:51,045 - [24169] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-06 21:35:51,704 - [24169] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.WorkOrderAppliedDiscount: 3 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 21:35:52,440 - [24169] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into ServiceAuto.WorkOrderAppliedDiscount - __SPLIT__ 2026-04-06 21:35:53,207 - [24169] - src.utils.log - INFO - βœ… All 3 rows inserted successfully into ServiceAuto.WorkOrderAppliedDiscount in 1 batches - __SPLIT__ 2026-04-06 21:35:53,876 - [24169] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderSalesPersonCommission: - __SPLIT__ 2026-04-06 21:35:54,539 - [24169] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderCommissionAdjustment: - __SPLIT__ 2026-04-06 21:35:55,200 - [24169] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-06 21:35:55,863 - [24169] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderCrew: 11 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 21:35:56,576 - [24169] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 11) into ServiceCore.WorkOrderCrew - __SPLIT__ 2026-04-06 21:35:57,346 - [24169] - src.utils.log - INFO - βœ… All 11 rows inserted successfully into ServiceCore.WorkOrderCrew in 1 batches - __SPLIT__ 2026-04-06 21:35:58,007 - [24169] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkorderSourceMapping: - __SPLIT__ 2026-04-06 21:35:58,668 - [24169] - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-04-06 21:35:59,328 - [24169] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-06 21:35:59,984 - [24169] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishServices: 15 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 21:36:00,690 - [24169] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 15) into ServiceCore.WorkOrderAutoGenerationPublishServices - __SPLIT__ 2026-04-06 21:36:01,463 - [24169] - src.utils.log - INFO - βœ… All 15 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishServices in 1 batches - __SPLIT__ 2026-04-06 21:36:02,123 - [24169] - src.utils.log - INFO - πŸ” Fetching data: SELECT ss.ServiceSetupId as SetupId, ss.FrequencyScheduleId as setup_frequency_schedule_id, ss.AccountNumber, ss.CompanyId, ss.BillingLocationId, ss.ServiceLocationId, ss.TaxSysName, ss.TermId, ss.TaxPercent, ss.PoNumber, ss.IsTaxExempt, ss.DisplayServiceAsSeparateLineItem, ss.GenerateInvoice, ss.IsGenerateInvoiceforInitalSetup, ss.IsGenerateInvoiceforInitalSetupBilling, ss.IsBilling, t.NetDueIn, ptm.PaymentType, ssb.* FROM ServiceCore.ServiceSetup ss LEFT JOIN ServiceCore.ServiceSetupBilling ssb ON ss.ServiceSetupId = ssb.ServiceSetupId LEFT JOIN Billing.PaymentTypeMaster ptm ON ptm.PaymentTypeMasterId = ssb.PaymentTypeMasterId left join Billing.Term t on ss.TermId = t.TermId WHERE ss.ServiceSetupId in (63489, 25873, 33963, 29219, 38249, 65135, 23950, 65105, 66028, 66018, 66175)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 21:36:02,811 - [24169] - src.utils.log - INFO - βœ… Fetched 11 rows - __SPLIT__ 2026-04-06 21:36:03,479 - [24169] - src.utils.log - INFO - Size of Transaction: 9 - __SPLIT__ 2026-04-06 21:36:04,149 - [24169] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 9 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 21:36:05,148 - [24169] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 9) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-04-06 21:36:05,929 - [24169] - src.utils.log - INFO - βœ… All 9 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-04-06 21:36:06,607 - [24169] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-04-06 21:36:07,273 - [24169] - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionId, ModifiedBy, TransactionDate as InvoiceDate from Billing.[Transaction] t WHERE t.ModifiedBy in (12345678910, 12345678911, 12345678912, 12345678913, 12345678914, 12345678915, 12345678916, 12345678917, 12345678918) and t.CompanyId = 133 AND t.TransactionType ='Invoice' AND t.CreatedDate = '2026-04-06 17:36:03.473';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 21:36:08,916 - [24169] - src.utils.log - INFO - βœ… Fetched 9 rows - __SPLIT__ 2026-04-06 21:36:09,588 - [24169] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId in (23950, 25873, 29219, 33963, 38249, 63489, 65105, 65135, 66018, 66028, 66175);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 21:36:10,280 - [24169] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-06 21:36:10,953 - [24169] - src.utils.log - INFO - πŸ“ Executing: UPDATE Billing.[Transaction] SET ModifiedBy = NULL WHERE ModifiedBy IN (12345678910,12345678911,12345678912,12345678913,12345678914,12345678915,12345678916,12345678917,12345678918) AND CreatedDate = '2026-04-06 17:36:03.473'; ... (Thread: ThreadPoolExecutor-6_0) - __SPLIT__ 2026-04-06 21:36:12,383 - [24169] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-04-06 21:36:13,051 - [24169] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-06 21:36:13,724 - [24169] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 9 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 21:36:14,437 - [24169] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 9) into Billing.Invoice - __SPLIT__ 2026-04-06 21:36:15,201 - [24169] - src.utils.log - INFO - βœ… All 9 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-04-06 21:36:15,870 - [24169] - src.utils.log - INFO - πŸ” Fetching data: SELECT InvoiceId, WorkOrderNo FROM Billing.Invoice i WHERE i.WorkOrderNo in ('476477', '476474', '476473', '476471', '476478', '476476', '476480', '476479', '476481')... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 21:36:17,268 - [24169] - src.utils.log - INFO - βœ… Fetched 9 rows - __SPLIT__ 2026-04-06 21:36:17,947 - [24169] - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceSetupId, sss.NonStdSoldServiceId as SoldServiceNonStandardId, sss.Qty as Quantity, sss.Price as Rate, sss.IsTaxable, sm.Name as NonStandardServiceName, sm.Description , sm.ServiceMasterId as ServiceId FROM ServiceCore.ServiceSetupServices sss join ServiceCore.ServiceMaster sm on sm.ServiceMasterId = sss.ServiceId where ServiceSetupId in (63489, 33963, 29219, 65135, 23950, 65105, 66028, 66018, 66175) and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 21:36:18,638 - [24169] - src.utils.log - INFO - βœ… Fetched 12 rows - __SPLIT__ 2026-04-06 21:36:19,308 - [24169] - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceSetupId, sss.NonStdSoldServiceId as SoldServiceNonStandardId, sss.Qty as Quantity, sss.Price as Rate, sss.IsTaxable, sm.Name as NonStandardServiceName, sm.Description , sm.ServiceMasterId as ServiceId FROM ServiceCore.ServiceSetupInitialServices sss join ServiceCore.ServiceMaster sm on sm.ServiceMasterId = sss.ServiceId where ServiceSetupId in (63489, 33963, 29219, 65135, 23950, 65105, 66028, 66018, 66175) and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 21:36:20,002 - [24169] - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-04-06 21:36:20,665 - [24169] - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceSetupId, sss.NonStdSoldServiceId as SoldServiceNonStandardId, sss.Qty as Quantity, sss.Price as Rate, sss.IsTaxable, sm.servicename as NonStandardServiceName, sm.Description , sss.ServiceId FROM ServiceCore.ServiceSetupServices sss join ServiceCore.SoldServiceNonStandard sm on sm.SoldServiceNonStandardId = sss.NonStdSoldServiceId where ServiceSetupId in (63489, 33963, 29219, 65135, 23950, 65105, 66028, 66018, 66175) and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 21:36:21,651 - [24169] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-06 21:36:22,312 - [24169] - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceSetupId, sss.NonStdSoldServiceId as SoldServiceNonStandardId, sss.Qty as Quantity, sss.Price as Rate, sss.IsTaxable, sm.servicename as NonStandardServiceName, sm.Description , sss.ServiceId FROM ServiceCore.ServiceSetupInitialServices sss join ServiceCore.SoldServiceNonStandard sm on sm.SoldServiceNonStandardId = sss.NonStdSoldServiceId where ServiceSetupId in (63489, 33963, 29219, 65135, 23950, 65105, 66028, 66018, 66175) and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 21:36:23,009 - [24169] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-06 21:36:23,693 - [24169] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId in (63489, 33963, 29219, 65135, 23950, 65105, 66028, 66018, 66175);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 21:36:24,387 - [24169] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-06 21:36:25,061 - [24169] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId, AppliedDiscountAmt as AppliedDiscountAmount,IsActive ,ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId in (63489, 33963, 29219, 65135, 23950, 65105, 66028, 66018, 66175);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 21:36:25,752 - [24169] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-04-06 21:36:26,435 - [24169] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId,IsActive,DiscountAmount, IsDiscountPercent,DiscountPercent,DiscountDescription, ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId in (63489, 33963, 29219, 65135, 23950, 65105, 66028, 66018, 66175);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 21:36:27,129 - [24169] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-04-06 21:36:27,811 - [24169] - src.utils.log - INFO - Sequential Insertion in invoice tables begin - __SPLIT__ 2026-04-06 21:36:28,482 - [24169] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-06 21:36:29,150 - [24169] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.AccountDiscountSetup: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 21:36:29,871 - [24169] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.AccountDiscountSetup - __SPLIT__ 2026-04-06 21:36:30,625 - [24169] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.AccountDiscountSetup in 1 batches - __SPLIT__ 2026-04-06 21:36:31,291 - [24169] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-06 21:36:31,960 - [24169] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceCharges: 12 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 21:36:32,693 - [24169] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 12) into Billing.InvoiceCharges - __SPLIT__ 2026-04-06 21:36:33,479 - [24169] - src.utils.log - INFO - βœ… All 12 rows inserted successfully into Billing.InvoiceCharges in 1 batches - __SPLIT__ 2026-04-06 21:36:34,197 - [24169] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-06 21:36:34,857 - [24169] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.DiscountApplied: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 21:36:35,858 - [24169] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.DiscountApplied - __SPLIT__ 2026-04-06 21:36:36,599 - [24169] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.DiscountApplied in 1 batches - __SPLIT__ 2026-04-06 21:36:37,261 - [24169] - src.utils.log - INFO - Invoice Publish Done - __SPLIT__ 2026-04-06 21:36:37,927 - [24169] - src.utils.log - INFO - Updating Next GenerationDate - __SPLIT__ 2026-04-06 21:36:38,599 - [24169] - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, MAX(NextWorkOrderGenerationDate) AS MaxNextWorkOrderGeneration FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 24169 GROUP BY ServiceSetupId; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 21:36:39,287 - [24169] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-06 21:36:39,954 - [24169] - src.utils.log - INFO - πŸ”„ Updating next gen date sequentially: inside update_next_workorder_generation - __SPLIT__ 2026-04-06 21:36:40,625 - [24169] - src.utils.log - INFO - πŸ›  Creating temp table #tbl_6851697c6d - __SPLIT__ 2026-04-06 21:36:41,320 - [24169] - src.utils.log - INFO - πŸ“Œ Bulk inserting 11 rows into #tbl_6851697c6d - __SPLIT__ 2026-04-06 21:36:42,105 - [24169] - src.utils.log - INFO - πŸ” Running MERGE update to apply changes - __SPLIT__ 2026-04-06 21:36:42,789 - [24169] - src.utils.log - INFO - βœ” SQL reported affected rows: 11 - __SPLIT__ 2026-04-06 21:36:43,463 - [24169] - src.utils.log - INFO - πŸ” Verified successfully updated 11 rows via #tbl_6851697c6d - __SPLIT__ 2026-04-06 21:36:44,129 - [24169] - src.utils.log - INFO - πŸŽ‰ Successfully updated NextGenerationDate using temp table #tbl_6851697c6d - __SPLIT__ 2026-04-06 21:36:44,790 - [24169] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 24169 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 21:36:45,470 - [24169] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-06 21:36:46,138 - [24169] - src.utils.log - INFO - Sequential deletion from temp tables begin - __SPLIT__ 2026-04-06 21:36:46,805 - [24169] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId in (643102, 643103, 643104, 643105, 643106, 643107, 643108, 643109, 643110, 643111, 643112) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 21:36:47,501 - [24169] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-06 21:36:48,170 - [24169] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId in (643102, 643103, 643104, 643105, 643106, 643107, 643108, 643109, 643110, 643111, 643112) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 21:36:48,859 - [24169] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-06 21:36:49,809 - [24169] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId in (643102, 643103, 643104, 643105, 643106, 643107, 643108, 643109, 643110, 643111, 643112) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 21:36:50,492 - [24169] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-06 21:36:51,154 - [24169] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId in (643102, 643103, 643104, 643105, 643106, 643107, 643108, 643109, 643110, 643111, 643112) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 21:36:51,901 - [24169] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-06 21:36:52,561 - [24169] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId in (643102, 643103, 643104, 643105, 643106, 643107, 643108, 643109, 643110, 643111, 643112) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 21:36:53,276 - [24169] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-06 21:36:53,939 - [24169] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (643102, 643103, 643104, 643105, 643106, 643107, 643108, 643109, 643110, 643111, 643112) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 21:36:54,628 - [24169] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-06 21:36:55,291 - [24169] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId in (643102, 643103, 643104, 643105, 643106, 643107, 643108, 643109, 643110, 643111, 643112) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 21:36:55,978 - [24169] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-06 21:36:56,637 - [24169] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (643102, 643103, 643104, 643105, 643106, 643107, 643108, 643109, 643110, 643111, 643112) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 21:36:57,390 - [24169] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-06 21:36:58,052 - [24169] - src.utils.log - INFO - Work order published ids: (643102, 643103, 643104, 643105, 643106, 643107, 643108, 643109, 643110, 643111, 643112) - __SPLIT__ 2026-04-06 21:36:58,716 - [24169] - src.utils.log - INFO - Time took to perform operation in publishing [24169]: 122.9 - __SPLIT__ 2026-04-06 21:36:59,397 - [24169] - src.utils.log - INFO - Publish Completed for GenerateWorkOrderHistoryId: [24169] - __SPLIT__ 2026-04-06 21:37:00,062 - [24169] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-04-06 17:36:58.052' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 24169;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-06 21:37:00,753 - [24169] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-04-07 10:53:01,956 - 56193 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=56193 - __SPLIT__ 2026-04-07 10:53:02,932 - 56193 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 56193 - __SPLIT__ 2026-04-07 10:53:03,602 - 56193 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-04-07 10:53:04,264 - 56193 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Samsung'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-07 10:53:05,186 - 56193 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-07 10:53:05,850 - 56193 - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-04-07 10:53:06,517 - 56193 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 56193;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-07 10:53:07,217 - 56193 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-04-07 10:53:07,879 - 56193 - 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 = 56193), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 56193), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 56193 AND ss.FrequencyScheduleId IS NOT NULL AND ss.IsActive = 1 AND ss.IsDeleted = 0 AND ss.Status <> 'Canceled';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-07 10:53:08,609 - 56193 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-07 10:53:09,274 - 56193 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 56193;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-07 10:53:09,968 - 56193 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-07 10:53:10,645 - 56193 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-04-07 10:53:11,308 - 56193 - 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 = 14898... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-07 10:53:12,006 - 56193 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-07 10:53:12,675 - 56193 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-04-07 10:53:13,344 - 56193 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-04-07 10:53:14,012 - 56193 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 95739;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-07 10:53:14,713 - 56193 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-07 10:53:15,381 - 56193 - 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-04-07 00:00:00' and ServiceDate <= '2027-01-01 00:00:00' and ServiceSetupId = 95739 and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-07 10:53:16,088 - 56193 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-07 10:53:17,134 - 56193 - src.utils.log - INFO - Generating work orders for setup: 95739 - __SPLIT__ 2026-04-07 10:53:17,860 - 56193 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 11461;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-07 10:53:18,551 - 56193 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-07 10:53:19,258 - 56193 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-04-07 10:53:19,940 - 56193 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=145 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-07 10:53:20,635 - 56193 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-07 10:53:21,307 - 56193 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-04-07 10:53:21,981 - 56193 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-04-07 10:53:22,656 - 56193 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 95739 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-07 10:53:23,383 - 56193 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-07 10:53:24,058 - 56193 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 95739 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-07 10:53:24,772 - 56193 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-07 10:53:25,445 - 56193 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 95739 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-07 10:53:26,164 - 56193 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-07 10:53:26,836 - 56193 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 95739 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-07 10:53:27,581 - 56193 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-07 10:53:28,251 - 56193 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 95739 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-07 10:53:28,973 - 56193 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-07 10:53:29,636 - 56193 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 95739 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-07 10:53:30,357 - 56193 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-07 10:53:31,332 - 56193 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 95739 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-07 10:53:32,038 - 56193 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-07 10:53:32,712 - 56193 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 95739 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-07 10:53:33,453 - 56193 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-04-07 10:53:34,114 - 56193 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-07 10:53:34,787 - 56193 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 9 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-07 10:53:35,518 - 56193 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 9) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-04-07 10:53:36,430 - 56193 - src.utils.log - INFO - βœ… All 9 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-04-07 10:53:37,103 - 56193 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 9 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-04-02 12:12:09.096' and ServiceSetupId = 95739... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-07 10:53:37,814 - 56193 - src.utils.log - INFO - βœ… Fetched 9 rows - __SPLIT__ 2026-04-07 10:53:38,483 - 56193 - src.utils.log - INFO - Id's of work order inserted to DB: [507579 507580 507581 507582 507583 507584 507585 507586 507587] - __SPLIT__ 2026-04-07 10:53:39,152 - 56193 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 95739;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-07 10:53:39,847 - 56193 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-07 10:53:40,523 - 56193 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-04-07 10:53:41,192 - 56193 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId = 95739... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-07 10:53:41,883 - 56193 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-07 10:53:42,552 - 56193 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId = 95739... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-07 10:53:43,252 - 56193 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-07 10:53:43,931 - 56193 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId = 95739... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-07 10:53:44,647 - 56193 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-07 10:53:45,604 - 56193 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId = 95739... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-07 10:53:46,307 - 56193 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-07 10:53:46,980 - 56193 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId = 95739... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-07 10:53:47,673 - 56193 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-07 10:53:48,337 - 56193 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId = 95739;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-07 10:53:49,035 - 56193 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-07 10:53:49,703 - 56193 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId = 95739;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-07 10:53:50,403 - 56193 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-04-07 10:53:51,082 - 56193 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId = 95739;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-07 10:53:52,405 - 56193 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-07 10:53:53,077 - 56193 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId = 95739;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-07 10:53:53,774 - 56193 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-04-07 10:53:54,453 - 56193 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-04-07 10:53:55,125 - 56193 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-04-07 10:53:55,792 - 56193 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-04-07 10:53:56,465 - 56193 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.CommunicationPreferencesServiceReportNotification: - __SPLIT__ 2026-04-07 10:53:57,144 - 56193 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-04-07 10:53:57,815 - 56193 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-07 10:53:58,490 - 56193 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ('507581', '507579', '507587', '507582', '507580', '507584', '507583', '507585', '507586') ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-07 10:53:59,185 - 56193 - src.utils.log - INFO - βœ… Fetched 9 rows - __SPLIT__ 2026-04-07 10:54:00,157 - 56193 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.SetupAutoGenerationSourceMapping: 0 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-07 10:54:00,881 - 56193 - src.utils.log - INFO - βœ… All 0 rows inserted successfully into ServiceCore.SetupAutoGenerationSourceMapping in 0 batches - __SPLIT__ 2026-04-07 10:54:01,583 - 56193 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-04-07 10:54:02,254 - 56193 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-07 10:54:02,929 - 56193 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (507584, 507585, 507586, 507587, 507580, 507581, 507582, 507583) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-07 10:54:03,633 - 56193 - src.utils.log - INFO - βœ… Fetched 8 rows - __SPLIT__ 2026-04-07 10:54:04,303 - 56193 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationAppliedDiscount: 8 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-07 10:54:05,043 - 56193 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 8) into ServiceCore.WorkOrderAutoGenerationAppliedDiscount - __SPLIT__ 2026-04-07 10:54:05,829 - 56193 - src.utils.log - INFO - βœ… All 8 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationAppliedDiscount in 1 batches - __SPLIT__ 2026-04-07 10:54:06,504 - 56193 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-04-07 10:54:07,196 - 56193 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-07 10:54:07,875 - 56193 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (507584, 507585, 507586, 507587, 507579, 507580, 507581, 507582, 507583) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-07 10:54:08,572 - 56193 - src.utils.log - INFO - βœ… Fetched 9 rows - __SPLIT__ 2026-04-07 10:54:09,240 - 56193 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.SubWorkOrderAutoGeneration: 9 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-07 10:54:09,963 - 56193 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 9) into ServiceCore.SubWorkOrderAutoGeneration - __SPLIT__ 2026-04-07 10:54:10,774 - 56193 - src.utils.log - INFO - βœ… All 9 rows inserted successfully into ServiceCore.SubWorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-04-07 10:54:11,449 - 56193 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-04-07 10:54:12,132 - 56193 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: - __SPLIT__ 2026-04-07 10:54:12,802 - 56193 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-04-07 10:54:13,471 - 56193 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: - __SPLIT__ 2026-04-07 10:54:14,438 - 56193 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-04-07 10:54:15,127 - 56193 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCrews: - __SPLIT__ 2026-04-07 10:54:15,793 - 56193 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-04-07 10:54:16,457 - 56193 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationServices: - __SPLIT__ 2026-04-07 10:54:17,130 - 56193 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-04-07 10:54:17,797 - 56193 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-04-07 10:54:18,467 - 56193 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 9 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-07 10:54:19,181 - 56193 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 9) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-04-07 10:54:19,954 - 56193 - src.utils.log - INFO - βœ… All 9 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-04-07 10:54:20,621 - 56193 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-04-07 10:54:21,291 - 56193 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 56193;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-07 10:54:21,980 - 56193 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-04-07 10:54:22,651 - 56193 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-04-07 10:54:23,313 - 56193 - src.utils.log - INFO - Time took to perform operation: 79.05 - __SPLIT__ 2026-04-07 10:54:23,977 - 56193 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 56193;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-07 10:54:24,666 - 56193 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-04-07 10:54:25,338 - 56193 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET WorkOrderStatusDateTime = '2026-04-07 06:54:25.338' WHERE GenerateWorkOrderHistoryId = 56193;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-04-07 10:54:26,035 - 56193 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__